/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[7],[function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return d})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return m}));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)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},r(t,b)};function o(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");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 f(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(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return l.a.extend({name:n||t.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:e}},render:function(e,n){var data=n.data,r=n.props,o=n.children;return data.staticClass="".concat(t," ").concat(data.staticClass||"").trim(),e(r.tag,data,o)}})}function h(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function o(c){n(c),t.removeEventListener(e,o,r)};t.addEventListener(e,o,r)}var f=!1;try{if("undefined"!=typeof window){var m=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("testListener",m,m),window.removeEventListener("testListener",m,m)}}catch(t){console.warn(t)}function v(t,e,n,r){t.addEventListener(e,n,!!f&&r)}function y(t,path,e){var n=path.length-1;if(n<0)return void 0===t?e:t;for(var i=0;i":">"};function k(t){return t.replace(/[&<>]/g,(function(t){return L[t]||t}))}function D(t,e){for(var n={},i=0;i1&&void 0!==arguments[1]?arguments[1]:"px";return null==t||""===t?void 0:isNaN(+t)?String(t):"".concat(Number(t)).concat(e)}function A(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function j(t){return null!==t&&"object"===Object(o.a)(t)}var E=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function Y(t,e){var component=t.$vuetify.icons.component;if(e.startsWith("$")){var n=w(t,"$vuetify.icons.values.".concat(e.split("$").pop().split(".").pop()),e);if("string"!=typeof n)return n;e=n}return null==component?e:{component:component,props:{icon:e}}}function P(t){return Object.keys(t)}var I=/-(\w)/g,x=function(t){return t.replace(I,(function(t,e){return e?e.toUpperCase():""}))};function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}function N(t,e,n){for(var r,o=e[0],c=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"default",data=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.$scopedSlots.hasOwnProperty(e)?t.$scopedSlots[e](data instanceof Function?data():data):!t.$slots.hasOwnProperty(e)||data&&!n?void 0:t.$slots[e]}function z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(e,Math.min(n,t))}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function K(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t){var n=source[e],r=t[e];j(n)&&j(r)?source[e]=J(n,r):source[e]=r}return source}function Q(t,e){return Array(t).fill(e)}function Z(t){if(t.composedPath)return t.composedPath();for(var path=[],e=t.target;e;){if(path.push(e),"HTML"===e.tagName)return path.push(document),path.push(window),path;e=e.parentElement}return path}},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function o(){return e.apply(null,arguments)}function c(t){e=t}function l(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function d(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function f(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(h(t,e))return!1;return!0}function m(input){return void 0===input}function v(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function y(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(t,e){var i,n=[];for(i=0;i>>0;for(i=0;i0)for(i=0;i=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},z={};function $(t,e,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),t&&(z[t]=o),e&&(z[e[0]]=function(){return V(o.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function K(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"")}function X(t){var i,e,n=t.match(G);for(i=0,e=n.length;i=0&&W.test(t);)t=t.replace(W,n),W.lastIndex=0,i-=1;return t}var Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tt(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(G).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var et="Invalid date";function nt(){return this._invalidDate}var it="%d",ot=/\d{1,2}/;function at(t){return this._ordinal.replace("%d",t)}var st={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ut(t,e,n,r){var output=this._relativeTime[n];return C(output)?output(t,e,n,r):output.replace(/%d/i,t)}function ct(t,output){var e=this._relativeTime[t>0?"future":"past"];return C(e)?e(output):e.replace(/%s/i,output)}var lt={};function ht(t,e){var n=t.toLowerCase();lt[n]=lt[n+"s"]=lt[e]=t}function ft(t){return"string"==typeof t?lt[t]||lt[t.toLowerCase()]:void 0}function pt(t){var e,n,r={};for(n in t)h(t,n)&&(e=ft(n))&&(r[e]=t[n]);return r}var mt={};function vt(t,e){mt[t]=e}function yt(t){var u,e=[];for(u in t)h(t,u)&&e.push({unit:u,priority:mt[u]});return e.sort((function(a,b){return a.priority-b.priority})),e}function _t(t){return t%4==0&&t%100!=0||t%400==0}function gt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function bt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=gt(e)),n}function wt(t,e){return function(n){return null!=n?(Tt(this,t,n),o.updateOffset(this,e),this):Mt(this,t)}}function Mt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&_t(t.year())&&1===t.month()&&29===t.date()?(n=bt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ce(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function St(t){return C(this[t=ft(t)])?this[t]():this}function Lt(t,e){if("object"==typeof t){var i,n=yt(t=pt(t));for(i=0;i68?1900:2e3)};var ke=wt("FullYear",!0);function De(){return _t(this.year())}function Oe(t,e,n,r,o,s,c){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,o,s,c),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,o,s,c),l}function Ae(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function je(t,e,n){var r=7+e-n;return-(7+Ae(t,0,r).getUTCDay()-e)%7+r-1}function Ee(t,e,n,r,o){var c,l,d=1+7*(e-1)+(7+n-r)%7+je(t,r,o);return d<=0?l=Le(c=t-1)+d:d>Le(t)?(c=t+1,l=d-Le(t)):(c=t,l=d),{year:c,dayOfYear:l}}function Ye(t,e,n){var r,o,c=je(t.year(),e,n),l=Math.floor((t.dayOfYear()-c-1)/7)+1;return l<1?r=l+Pe(o=t.year()-1,e,n):l>Pe(t.year(),e,n)?(r=l-Pe(t.year(),e,n),o=t.year()+1):(o=t.year(),r=l),{week:r,year:o}}function Pe(t,e,n){var r=je(t,e,n),o=je(t+1,e,n);return(Le(t)-r+o)/7}function Ie(t){return Ye(t,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),ht("week","w"),ht("isoWeek","W"),vt("week",5),vt("isoWeek",5),Wt("w",Yt),Wt("ww",Yt,Ot),Wt("W",Yt),Wt("WW",Yt,Ot),Xt(["w","ww","W","WW"],(function(input,t,e,n){t[n.substr(0,1)]=bt(input)}));var xe={dow:0,doy:6};function Ce(){return this._week.dow}function Ne(){return this._week.doy}function He(input){var t=this.localeData().week(this);return null==input?t:this.add(7*(input-t),"d")}function Re(input){var t=Ye(this,1,4).week;return null==input?t:this.add(7*(input-t),"d")}function Be(input,t){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=t.weekdaysParse(input))?input:null:parseInt(input,10)}function Fe(input,t){return"string"==typeof input?t.weekdaysParse(input)%7||7:isNaN(input)?null:input}function Ve(t,e){return t.slice(e,7).concat(t.slice(0,e))}$("d",0,"do","day"),$("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),$("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),$("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),ht("day","d"),ht("weekday","e"),ht("isoWeekday","E"),vt("day",11),vt("weekday",11),vt("isoWeekday",11),Wt("d",Yt),Wt("e",Yt),Wt("E",Yt),Wt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Wt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Wt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Xt(["dd","ddd","dddd"],(function(input,t,e,n){var r=e._locale.weekdaysParse(input,n,e._strict);null!=r?t.d=r:T(e).invalidWeekday=input})),Xt(["d","e","E"],(function(input,t,e,n){t[n]=bt(input)}));var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=Gt,$e=Gt,qe=Gt;function Ke(t,e){var n=l(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ve(n,this._week.dow):t?n[t.day()]:n}function Xe(t){return!0===t?Ve(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Je(t){return!0===t?Ve(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Qe(t,e,n){var i,r,o,c=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=w([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Qt.call(this._weekdaysParse,c))?r:null:"ddd"===e?-1!==(r=Qt.call(this._shortWeekdaysParse,c))?r:null:-1!==(r=Qt.call(this._minWeekdaysParse,c))?r:null:"dddd"===e?-1!==(r=Qt.call(this._weekdaysParse,c))||-1!==(r=Qt.call(this._shortWeekdaysParse,c))||-1!==(r=Qt.call(this._minWeekdaysParse,c))?r:null:"ddd"===e?-1!==(r=Qt.call(this._shortWeekdaysParse,c))||-1!==(r=Qt.call(this._weekdaysParse,c))||-1!==(r=Qt.call(this._minWeekdaysParse,c))?r:null:-1!==(r=Qt.call(this._minWeekdaysParse,c))||-1!==(r=Qt.call(this._weekdaysParse,c))||-1!==(r=Qt.call(this._shortWeekdaysParse,c))?r:null}function Ze(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Qe.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=w([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function tn(input){if(!this.isValid())return null!=input?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=Be(input,this.localeData()),this.add(input-t,"d")):t}function en(input){if(!this.isValid())return null!=input?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==input?t:this.add(input-t,"d")}function nn(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var t=Fe(input,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function rn(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function on(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function an(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sn(){function t(a,b){return b.length-a.length}var i,e,n,r,o,c=[],l=[],d=[],h=[];for(i=0;i<7;i++)e=w([2e3,1]).day(i),n=$t(this.weekdaysMin(e,"")),r=$t(this.weekdaysShort(e,"")),o=$t(this.weekdays(e,"")),c.push(n),l.push(r),d.push(o),h.push(n),h.push(r),h.push(o);c.sort(t),l.sort(t),d.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function un(){return this.hours()%12||12}function cn(){return this.hours()||24}function ln(t,e){$(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function dn(t,e){return e._meridiemParse}function hn(input){return"p"===(input+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,un),$("k",["kk",2],0,cn),$("hmm",0,0,(function(){return""+un.apply(this)+V(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+un.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),ln("a",!0),ln("A",!1),ht("hour","h"),vt("hour",13),Wt("a",dn),Wt("A",dn),Wt("H",Yt),Wt("h",Yt),Wt("k",Yt),Wt("HH",Yt,Ot),Wt("hh",Yt,Ot),Wt("kk",Yt,Ot),Wt("hmm",Pt),Wt("hmmss",It),Wt("Hmm",Pt),Wt("Hmmss",It),Kt(["H","HH"],ne),Kt(["k","kk"],(function(input,t,e){var n=bt(input);t[ne]=24===n?0:n})),Kt(["a","A"],(function(input,t,e){e._isPm=e._locale.isPM(input),e._meridiem=input})),Kt(["h","hh"],(function(input,t,e){t[ne]=bt(input),T(e).bigHour=!0})),Kt("hmm",(function(input,t,e){var n=input.length-2;t[ne]=bt(input.substr(0,n)),t[re]=bt(input.substr(n)),T(e).bigHour=!0})),Kt("hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[ne]=bt(input.substr(0,n)),t[re]=bt(input.substr(n,2)),t[ie]=bt(input.substr(r)),T(e).bigHour=!0})),Kt("Hmm",(function(input,t,e){var n=input.length-2;t[ne]=bt(input.substr(0,n)),t[re]=bt(input.substr(n))})),Kt("Hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[ne]=bt(input.substr(0,n)),t[re]=bt(input.substr(n,2)),t[ie]=bt(input.substr(r))}));var fn=/[ap]\.?m?\.?/i,pn=wt("Hours",!0);function mn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var vn,yn={calendar:B,longDateFormat:Z,invalidDate:et,ordinal:it,dayOfMonthOrdinalParse:ot,relativeTime:st,months:le,monthsShort:de,week:xe,weekdays:Ge,weekdaysMin:Ue,weekdaysShort:We,meridiemParse:fn},_n={},gn={};function bn(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i0;){if(r=Tn(o.slice(0,e).join("-")))return r;if(n&&n.length>=e&&bn(o,n)>=e-1)break;e--}i++}return vn}function Tn(e){var r=null;if(void 0===_n[e]&&void 0!==t&&t&&t.exports)try{r=vn._abbr,n(528)("./"+e),Sn(r)}catch(t){_n[e]=null}return _n[e]}function Sn(t,e){var data;return t&&((data=m(e)?Dn(t):Ln(t,e))?vn=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),vn._abbr}function Ln(t,e){if(null!==e){var n,r=yn;if(e.abbr=t,null!=_n[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=_n[t]._config;else if(null!=e.parentLocale)if(null!=_n[e.parentLocale])r=_n[e.parentLocale]._config;else{if(null==(n=Tn(e.parentLocale)))return gn[e.parentLocale]||(gn[e.parentLocale]=[]),gn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return _n[t]=new R(H(r,e)),gn[t]&&gn[t].forEach((function(t){Ln(t.name,t.config)})),Sn(t),_n[t]}return delete _n[t],null}function kn(t,e){if(null!=e){var n,r,o=yn;null!=_n[t]&&null!=_n[t].parentLocale?_n[t].set(H(_n[t]._config,e)):(null!=(r=Tn(t))&&(o=r._config),e=H(o,e),null==r&&(e.abbr=t),(n=new R(e)).parentLocale=_n[t],_n[t]=n),Sn(t)}else null!=_n[t]&&(null!=_n[t].parentLocale?(_n[t]=_n[t].parentLocale,t===Sn()&&Sn(t)):null!=_n[t]&&delete _n[t]);return _n[t]}function Dn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return vn;if(!l(t)){if(e=Tn(t))return e;t=[t]}return Mn(t)}function On(){return P(_n)}function An(t){var e,a=t._a;return a&&-2===T(t).overflow&&(e=a[te]<0||a[te]>11?te:a[ee]<1||a[ee]>ce(a[Zt],a[te])?ee:a[ne]<0||a[ne]>24||24===a[ne]&&(0!==a[re]||0!==a[ie]||0!==a[oe])?ne:a[re]<0||a[re]>59?re:a[ie]<0||a[ie]>59?ie:a[oe]<0||a[oe]>999?oe:-1,T(t)._overflowDayOfYear&&(eee)&&(e=ee),T(t)._overflowWeeks&&-1===e&&(e=ae),T(t)._overflowWeekday&&-1===e&&(e=se),T(t).overflow=e),t}var jn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yn=/Z|[+-]\d\d(?::?\d\d)?/,Pn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],In=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Hn(t){var i,e,n,r,o,c,l=t._i,d=jn.exec(l)||En.exec(l);if(d){for(T(t).iso=!0,i=0,e=Pn.length;iLe(o)||0===t._dayOfYear)&&(T(t)._overflowDayOfYear=!0),e=Ae(o,0,t._dayOfYear),t._a[te]=e.getUTCMonth(),t._a[ee]=e.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=input[i]=n[i];for(;i<7;i++)t._a[i]=input[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[ne]&&0===t._a[re]&&0===t._a[ie]&&0===t._a[oe]&&(t._nextDay=!0,t._a[ne]=0),t._d=(t._useUTC?Ae:Oe).apply(null,input),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ne]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(T(t).weekdayMismatch=!0)}}function Kn(t){var e,n,r,o,c,l,d,h,f;null!=(e=t._w).GG||null!=e.W||null!=e.E?(c=1,l=4,n=zn(e.GG,t._a[Zt],Ye(or(),1,4).year),r=zn(e.W,1),((o=zn(e.E,1))<1||o>7)&&(h=!0)):(c=t._locale._week.dow,l=t._locale._week.doy,f=Ye(or(),c,l),n=zn(e.gg,t._a[Zt],f.year),r=zn(e.w,f.week),null!=e.d?((o=e.d)<0||o>6)&&(h=!0):null!=e.e?(o=e.e+c,(e.e<0||e.e>6)&&(h=!0)):o=c),r<1||r>Pe(n,c,l)?T(t)._overflowWeeks=!0:null!=h?T(t)._overflowWeekday=!0:(d=Ee(n,r,o,c,l),t._a[Zt]=d.year,t._dayOfYear=d.dayOfYear)}function Xn(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],T(t).empty=!0;var i,e,n,r,c,l,d=""+t._i,h=d.length,f=0;for(n=Q(t._f,t._locale).match(G)||[],i=0;i0&&T(t).unusedInput.push(c),d=d.slice(d.indexOf(e)+e.length),f+=e.length),z[r]?(e?T(t).empty=!1:T(t).unusedTokens.push(r),Jt(r,e,t)):t._strict&&!e&&T(t).unusedTokens.push(r);T(t).charsLeftOver=h-f,d.length>0&&T(t).unusedInput.push(d),t._a[ne]<=12&&!0===T(t).bigHour&&t._a[ne]>0&&(T(t).bigHour=void 0),T(t).parsedDateParts=t._a.slice(0),T(t).meridiem=t._meridiem,t._a[ne]=Jn(t._locale,t._a[ne],t._meridiem),null!==(l=T(t).era)&&(t._a[Zt]=t._locale.erasConvertYear(l,t._a[Zt])),qn(t),An(t)}else Wn(t);else Hn(t)}function Jn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Qn(t){var e,n,r,i,o,c,l=!1;if(0===t._f.length)return T(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t:L()}));function ur(t,e){var n,i;if(1===e.length&&l(e[0])&&(e=e[0]),!e.length)return or();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ir(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,e={};return O(e,this),(e=nr(e))._a?(t=e._isUTC?w(e._a):or(e._a),this._isDSTShifted=this.isValid()&&wr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC}function Nr(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Hr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Br(input,t){var e,n,r,o=input,c=null;return _r(input)?o={ms:input._milliseconds,d:input._days,M:input._months}:v(input)||!isNaN(+input)?(o={},t?o[t]=+input:o.milliseconds=+input):(c=Hr.exec(input))?(e="-"===c[1]?-1:1,o={y:0,d:bt(c[ee])*e,h:bt(c[ne])*e,m:bt(c[re])*e,s:bt(c[ie])*e,ms:bt(gr(1e3*c[oe]))*e}):(c=Rr.exec(input))?(e="-"===c[1]?-1:1,o={y:Fr(c[2],e),M:Fr(c[3],e),w:Fr(c[4],e),d:Fr(c[5],e),h:Fr(c[6],e),m:Fr(c[7],e),s:Fr(c[8],e)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Gr(or(o.from),or(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new yr(o),_r(input)&&h(input,"_locale")&&(n._locale=input._locale),_r(input)&&h(input,"_isValid")&&(n._isValid=input._isValid),n}function Fr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Vr(base,t){var e={};return e.months=t.month()-base.month()+12*(t.year()-base.year()),base.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+base.clone().add(e.months,"M"),e}function Gr(base,t){var e;return base.isValid()&&t.isValid()?(t=Lr(t,base),base.isBefore(t)?e=Vr(base,t):((e=Vr(t,base)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function Wr(t,e){return function(n,r){var o;return null===r||isNaN(+r)||(x(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Ur(this,Br(n,r),t),this}}function Ur(t,e,n,r){var c=e._milliseconds,l=gr(e._days),d=gr(e._months);t.isValid()&&(r=null==r||r,d&&ge(t,Mt(t,"Month")+d*n),l&&Tt(t,"Date",Mt(t,"Date")+l*n),c&&t._d.setTime(t._d.valueOf()+c*n),r&&o.updateOffset(t,l||d))}Br.fn=yr.prototype,Br.invalid=vr;var zr=Wr(1,"add"),$r=Wr(-1,"subtract");function qr(input){return"string"==typeof input||input instanceof String}function Kr(input){return j(input)||y(input)||qr(input)||v(input)||Jr(input)||Xr(input)||null==input}function Xr(input){var i,t,e=d(input)&&!f(input),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(i=0;ie.valueOf():e.valueOf()9999?J(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",J(n,"Z")):J(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,o="moment",c="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",c="Z"),t="["+o+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=c+'[")]',this.format(t+e+n+r)}function pi(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var output=J(this,t);return this.localeData().postformat(output)}function mi(time,t){return this.isValid()&&(j(time)&&time.isValid()||or(time).isValid())?Br({to:this,from:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vi(t){return this.from(or(),t)}function yi(time,t){return this.isValid()&&(j(time)&&time.isValid()||or(time).isValid())?Br({from:this,to:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _i(t){return this.to(or(),t)}function gi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Dn(t))&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var bi=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function wi(){return this._locale}var Mi=1e3,Ti=60*Mi,Si=60*Ti,Li=3506328*Si;function ki(t,e){return(t%e+e)%e}function Di(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Li:new Date(t,e,n).valueOf()}function Oi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Li:Date.UTC(t,e,n)}function Ai(t){var time,e;if(void 0===(t=ft(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Oi:Di,t){case"year":time=e(this.year(),0,1);break;case"quarter":time=e(this.year(),this.month()-this.month()%3,1);break;case"month":time=e(this.year(),this.month(),1);break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=e(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=ki(time+(this._isUTC?0:this.utcOffset()*Ti),Si);break;case"minute":time=this._d.valueOf(),time-=ki(time,Ti);break;case"second":time=this._d.valueOf(),time-=ki(time,Mi)}return this._d.setTime(time),o.updateOffset(this,!0),this}function ji(t){var time,e;if(void 0===(t=ft(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Oi:Di,t){case"year":time=e(this.year()+1,0,1)-1;break;case"quarter":time=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=e(this.year(),this.month()+1,1)-1;break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=Si-ki(time+(this._isUTC?0:this.utcOffset()*Ti),Si)-1;break;case"minute":time=this._d.valueOf(),time+=Ti-ki(time,Ti)-1;break;case"second":time=this._d.valueOf(),time+=Mi-ki(time,Mi)-1}return this._d.setTime(time),o.updateOffset(this,!0),this}function Ei(){return this._d.valueOf()-6e4*(this._offset||0)}function Yi(){return Math.floor(this.valueOf()/1e3)}function Pi(){return new Date(this.valueOf())}function Ii(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ci(){return this.isValid()?this.toISOString():null}function Ni(){return S(this)}function Hi(){return _({},T(this))}function Ri(){return T(this).overflow}function Bi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fi(t,e){var i,n,r,c=this._eras||Dn("en")._eras;for(i=0,n=c.length;i=0)return l[i]}function Gi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*n}function Wi(){var i,t,e,n=this.localeData().eras();for(i=0,t=n.length;i(o=Pe(input,n,r))&&(t=o),lo.call(this,input,t,e,n,r))}function lo(t,e,n,r,o){var c=Ee(t,e,n,r,o),l=Ae(c.year,0,c.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}function ho(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Wt("N",Ji),Wt("NN",Ji),Wt("NNN",Ji),Wt("NNNN",Qi),Wt("NNNNN",Zi),Kt(["N","NN","NNN","NNNN","NNNNN"],(function(input,t,e,n){var r=e._locale.erasParse(input,n,e._strict);r?T(e).era=r:T(e).invalidEra=input})),Wt("y",Ht),Wt("yy",Ht),Wt("yyy",Ht),Wt("yyyy",Ht),Wt("yo",to),Kt(["y","yy","yyy","yyyy"],Zt),Kt(["yo"],(function(input,t,e,n){var r;e._locale._eraYearOrdinalRegex&&(r=input.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Zt]=e._locale.eraYearOrdinalParse(input,r):t[Zt]=parseInt(input,10)})),$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),no("gggg","weekYear"),no("ggggg","weekYear"),no("GGGG","isoWeekYear"),no("GGGGG","isoWeekYear"),ht("weekYear","gg"),ht("isoWeekYear","GG"),vt("weekYear",1),vt("isoWeekYear",1),Wt("G",Rt),Wt("g",Rt),Wt("GG",Yt,Ot),Wt("gg",Yt,Ot),Wt("GGGG",Ct,jt),Wt("gggg",Ct,jt),Wt("GGGGG",Nt,Et),Wt("ggggg",Nt,Et),Xt(["gggg","ggggg","GGGG","GGGGG"],(function(input,t,e,n){t[n.substr(0,2)]=bt(input)})),Xt(["gg","GG"],(function(input,t,e,n){t[n]=o.parseTwoDigitYear(input)})),$("Q",0,"Qo","quarter"),ht("quarter","Q"),vt("quarter",7),Wt("Q",Dt),Kt("Q",(function(input,t){t[te]=3*(bt(input)-1)})),$("D",["DD",2],"Do","date"),ht("date","D"),vt("date",9),Wt("D",Yt),Wt("DD",Yt,Ot),Wt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Kt(["D","DD"],ee),Kt("Do",(function(input,t){t[ee]=bt(input.match(Yt)[0])}));var fo=wt("Date",!0);function po(input){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?t:this.add(input-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),ht("dayOfYear","DDD"),vt("dayOfYear",4),Wt("DDD",xt),Wt("DDDD",At),Kt(["DDD","DDDD"],(function(input,t,e){e._dayOfYear=bt(input)})),$("m",["mm",2],0,"minute"),ht("minute","m"),vt("minute",14),Wt("m",Yt),Wt("mm",Yt,Ot),Kt(["m","mm"],re);var mo=wt("Minutes",!1);$("s",["ss",2],0,"second"),ht("second","s"),vt("second",15),Wt("s",Yt),Wt("ss",Yt,Ot),Kt(["s","ss"],ie);var vo,yo,_o=wt("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ht("millisecond","ms"),vt("millisecond",16),Wt("S",xt,Dt),Wt("SS",xt,Ot),Wt("SSS",xt,At),vo="SSSS";vo.length<=9;vo+="S")Wt(vo,Ht);function go(input,t){t[oe]=bt(1e3*("0."+input))}for(vo="S";vo.length<=9;vo+="S")Kt(vo,go);function bo(){return this._isUTC?"UTC":""}function wo(){return this._isUTC?"Coordinated Universal Time":""}yo=wt("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var Mo=A.prototype;function To(input){return or(1e3*input)}function So(){return or.apply(null,arguments).parseZone()}function Lo(t){return t}Mo.add=zr,Mo.calendar=ti,Mo.clone=ei,Mo.diff=ui,Mo.endOf=ji,Mo.format=pi,Mo.from=mi,Mo.fromNow=vi,Mo.to=yi,Mo.toNow=_i,Mo.get=St,Mo.invalidAt=Ri,Mo.isAfter=ni,Mo.isBefore=ri,Mo.isBetween=ii,Mo.isSame=oi,Mo.isSameOrAfter=ai,Mo.isSameOrBefore=si,Mo.isValid=Ni,Mo.lang=bi,Mo.locale=gi,Mo.localeData=wi,Mo.max=sr,Mo.min=ar,Mo.parsingFlags=Hi,Mo.set=Lt,Mo.startOf=Ai,Mo.subtract=$r,Mo.toArray=Ii,Mo.toObject=xi,Mo.toDate=Pi,Mo.toISOString=hi,Mo.inspect=fi,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mo.toJSON=Ci,Mo.toString=di,Mo.unix=Yi,Mo.valueOf=Ei,Mo.creationData=Bi,Mo.eraName=Wi,Mo.eraNarrow=Ui,Mo.eraAbbr=zi,Mo.eraYear=$i,Mo.year=ke,Mo.isLeapYear=De,Mo.weekYear=ro,Mo.isoWeekYear=io,Mo.quarter=Mo.quarters=ho,Mo.month=be,Mo.daysInMonth=we,Mo.week=Mo.weeks=He,Mo.isoWeek=Mo.isoWeeks=Re,Mo.weeksInYear=so,Mo.weeksInWeekYear=uo,Mo.isoWeeksInYear=oo,Mo.isoWeeksInISOWeekYear=ao,Mo.date=fo,Mo.day=Mo.days=tn,Mo.weekday=en,Mo.isoWeekday=nn,Mo.dayOfYear=po,Mo.hour=Mo.hours=pn,Mo.minute=Mo.minutes=mo,Mo.second=Mo.seconds=_o,Mo.millisecond=Mo.milliseconds=yo,Mo.utcOffset=Dr,Mo.utc=Ar,Mo.local=jr,Mo.parseZone=Er,Mo.hasAlignedHourOffset=Yr,Mo.isDST=Pr,Mo.isLocal=xr,Mo.isUtcOffset=Cr,Mo.isUtc=Nr,Mo.isUTC=Nr,Mo.zoneAbbr=bo,Mo.zoneName=wo,Mo.dates=Y("dates accessor is deprecated. Use date instead.",fo),Mo.months=Y("months accessor is deprecated. Use month instead",be),Mo.years=Y("years accessor is deprecated. Use year instead",ke),Mo.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Or),Mo.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ir);var ko=R.prototype;function Do(t,e,n,r){var o=Dn(),c=w().set(r,e);return o[n](c,t)}function Oo(t,e,n){if(v(t)&&(e=t,t=void 0),t=t||"",null!=e)return Do(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Do(t,i,n,"month");return r}function Ao(t,e,n,r){"boolean"==typeof t?(v(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,v(e)&&(n=e,e=void 0),e=e||"");var i,o=Dn(),c=t?o._week.dow:0,l=[];if(null!=n)return Do(e,(n+c)%7,r,"day");for(i=0;i<7;i++)l[i]=Do(e,(i+c)%7,r,"day");return l}function jo(t,e){return Oo(t,e,"months")}function Eo(t,e){return Oo(t,e,"monthsShort")}function Yo(t,e,n){return Ao(t,e,n,"weekdays")}function Po(t,e,n){return Ao(t,e,n,"weekdaysShort")}function Io(t,e,n){return Ao(t,e,n,"weekdaysMin")}ko.calendar=F,ko.longDateFormat=tt,ko.invalidDate=nt,ko.ordinal=at,ko.preparse=Lo,ko.postformat=Lo,ko.relativeTime=ut,ko.pastFuture=ct,ko.set=N,ko.eras=Fi,ko.erasParse=Vi,ko.erasConvertYear=Gi,ko.erasAbbrRegex=Ki,ko.erasNameRegex=qi,ko.erasNarrowRegex=Xi,ko.months=me,ko.monthsShort=ve,ko.monthsParse=_e,ko.monthsRegex=Te,ko.monthsShortRegex=Me,ko.week=Ie,ko.firstDayOfYear=Ne,ko.firstDayOfWeek=Ce,ko.weekdays=Ke,ko.weekdaysMin=Je,ko.weekdaysShort=Xe,ko.weekdaysParse=Ze,ko.weekdaysRegex=rn,ko.weekdaysShortRegex=on,ko.weekdaysMinRegex=an,ko.isPM=hn,ko.meridiem=mn,Sn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var b=t%10;return t+(1===bt(t%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),o.lang=Y("moment.lang is deprecated. Use moment.locale instead.",Sn),o.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",Dn);var xo=Math.abs;function Co(){var data=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),data.milliseconds=xo(data.milliseconds),data.seconds=xo(data.seconds),data.minutes=xo(data.minutes),data.hours=xo(data.hours),data.months=xo(data.months),data.years=xo(data.years),this}function No(t,input,e,n){var r=Br(input,e);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Ho(input,t){return No(this,input,t,1)}function Ro(input,t){return No(this,input,t,-1)}function Bo(t){return t<0?Math.floor(t):Math.ceil(t)}function Fo(){var t,e,n,r,o,c=this._milliseconds,l=this._days,d=this._months,data=this._data;return c>=0&&l>=0&&d>=0||c<=0&&l<=0&&d<=0||(c+=864e5*Bo(Go(d)+l),l=0,d=0),data.milliseconds=c%1e3,t=gt(c/1e3),data.seconds=t%60,e=gt(t/60),data.minutes=e%60,n=gt(e/60),data.hours=n%24,l+=gt(n/24),d+=o=gt(Vo(l)),l-=Bo(Go(o)),r=gt(d/12),d%=12,data.days=l,data.months=d,data.years=r,this}function Vo(t){return 4800*t/146097}function Go(t){return 146097*t/4800}function Wo(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=ft(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Vo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Go(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Uo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*bt(this._months/12):NaN}function zo(t){return function(){return this.as(t)}}var $o=zo("ms"),qo=zo("s"),Ko=zo("m"),Xo=zo("h"),Jo=zo("d"),Qo=zo("w"),Zo=zo("M"),ta=zo("Q"),ea=zo("y");function na(){return Br(this)}function ra(t){return t=ft(t),this.isValid()?this[t+"s"]():NaN}function ia(t){return function(){return this.isValid()?this._data[t]:NaN}}var oa=ia("milliseconds"),aa=ia("seconds"),sa=ia("minutes"),ua=ia("hours"),ca=ia("days"),la=ia("months"),da=ia("years");function ha(){return gt(this.days()/7)}var fa=Math.round,pa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ma(t,e,n,r,o){return o.relativeTime(e||1,!!n,t,r)}function va(t,e,n,r){var o=Br(t).abs(),c=fa(o.as("s")),l=fa(o.as("m")),d=fa(o.as("h")),h=fa(o.as("d")),f=fa(o.as("M")),m=fa(o.as("w")),v=fa(o.as("y")),a=c<=n.ss&&["s",c]||c0,a[4]=r,ma.apply(null,a)}function ya(t){return void 0===t?fa:"function"==typeof t&&(fa=t,!0)}function _a(t,e){return void 0!==pa[t]&&(void 0===e?pa[t]:(pa[t]=e,"s"===t&&(pa.ss=e-1),!0))}function ga(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,output,r=!1,th=pa;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(th=Object.assign({},pa,e),null!=e.s&&null==e.ss&&(th.ss=e.s-1)),output=va(this,!r,th,n=this.localeData()),r&&(output=n.pastFuture(+this,output)),n.postformat(output)}var ba=Math.abs;function wa(t){return(t>0)-(t<0)||+t}function Ma(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,s,r,o,c,l,d=ba(this._milliseconds)/1e3,h=ba(this._days),f=ba(this._months),m=this.asSeconds();return m?(t=gt(d/60),e=gt(t/60),d%=60,t%=60,n=gt(f/12),f%=12,s=d?d.toFixed(3).replace(/\.?0+$/,""):"",r=m<0?"-":"",o=wa(this._months)!==wa(m)?"-":"",c=wa(this._days)!==wa(m)?"-":"",l=wa(this._milliseconds)!==wa(m)?"-":"",r+"P"+(n?o+n+"Y":"")+(f?o+f+"M":"")+(h?c+h+"D":"")+(e||t||d?"T":"")+(e?l+e+"H":"")+(t?l+t+"M":"")+(d?l+s+"S":"")):"P0D"}var Ta=yr.prototype;return Ta.isValid=mr,Ta.abs=Co,Ta.add=Ho,Ta.subtract=Ro,Ta.as=Wo,Ta.asMilliseconds=$o,Ta.asSeconds=qo,Ta.asMinutes=Ko,Ta.asHours=Xo,Ta.asDays=Jo,Ta.asWeeks=Qo,Ta.asMonths=Zo,Ta.asQuarters=ta,Ta.asYears=ea,Ta.valueOf=Uo,Ta._bubble=Fo,Ta.clone=na,Ta.get=ra,Ta.milliseconds=oa,Ta.seconds=aa,Ta.minutes=sa,Ta.hours=ua,Ta.days=ca,Ta.weeks=ha,Ta.months=la,Ta.years=da,Ta.humanize=ga,Ta.toISOString=Ma,Ta.toString=Ma,Ta.toJSON=Ma,Ta.locale=gi,Ta.localeData=wi,Ta.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ma),Ta.lang=bi,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Wt("x",Rt),Wt("X",Vt),Kt("X",(function(input,t,e){e._d=new Date(1e3*parseFloat(input))})),Kt("x",(function(input,t,e){e._d=new Date(bt(input))})),o.version="2.29.1",c(or),o.fn=Mo,o.min=cr,o.max=lr,o.now=dr,o.utc=w,o.unix=To,o.months=jo,o.isDate=y,o.locale=Sn,o.invalid=L,o.duration=Br,o.isMoment=j,o.weekdays=Yo,o.parseZone=So,o.localeData=Dn,o.isDuration=_r,o.monthsShort=Eo,o.weekdaysMin=Io,o.defineLocale=Ln,o.updateLocale=kn,o.locales=On,o.weekdaysShort=Po,o.normalizeUnits=ft,o.relativeTimeRounding=ya,o.relativeTimeThreshold=_a,o.calendarFormat=Zr,o.prototype=Mo,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(527)(t))},,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"k",(function(){return w})),n.d(e,"m",(function(){return M})),n.d(e,"l",(function(){return T})),n.d(e,"e",(function(){return S})),n.d(e,"b",(function(){return L})),n.d(e,"s",(function(){return k})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return O})),n.d(e,"d",(function(){return A})),n.d(e,"r",(function(){return j})),n.d(e,"j",(function(){return E})),n.d(e,"t",(function(){return P})),n.d(e,"o",(function(){return x})),n.d(e,"q",(function(){return C})),n.d(e,"f",(function(){return N})),n.d(e,"c",(function(){return H})),n.d(e,"i",(function(){return R})),n.d(e,"p",(function(){return B})),n.d(e,"a",(function(){return $})),n.d(e,"v",(function(){return K})),n.d(e,"n",(function(){return X})),n.d(e,"u",(function(){return J}));n(69),n(14),n(81),n(86),n(19),n(10),n(20);var r=n(28),o=n(40),c=n(4),l=n(33),d=(n(114),n(6),n(11),n(519),n(30),n(36),n(50),n(16),n(53),n(58),n(46),n(26),n(55),n(68),n(204),n(259),n(92),n(91),n(169),n(38),n(66),n(3)),h=n.n(d),f=n(99);function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=y(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&S(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function L(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),v(v({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function k(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=h.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function D(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return D(t,e,"instances")}function A(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function j(t,e){return Promise.all(A(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(d=parseInt(window.sessionStorage.getItem("nuxt-reload")))||d+6e40){var r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,i){return"".concat(0===i?"---\x3e ":" ".repeat(5+2*i)).concat(Array.isArray(t)?"".concat(v(t[0]),"... (").concat(t[1]," recursive calls)"):v(t))})).join("\n")}return"\n\n(found in ".concat(v(t),")")}(e):"")}}function c(t,e,n){var r=o(t,e,n);null!=r&&console.warn(r)}function l(t,e,n){var r=o(t,e,n);null!=r&&console.error(r)}function d(t,e,n,r){c("[UPGRADE] '".concat(t,"' is deprecated, use '").concat(e,"' instead."),n,r)}function h(t,e,n,r){l("[BREAKING] '".concat(t,"' has been removed, use '").concat(e,"' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide"),n,r)}function f(t,e,n){c("[REMOVED] '".concat(t,"' has been removed. You can safely omit it."),e,n)}var m=/(?:^|[-_])(\w)/g;function v(t,e){if(t.$root===t)return"";var n="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},r=n.name||n._componentTag,o=n.__file;if(!r&&o){var c=o.match(/([^/\\]+)\.vue$/);r=c&&c[1]}return(r?"<".concat(r.replace(m,(function(t){return t.toUpperCase()})).replace(/[-_]/g,""),">"):"")+(o&&!1!==e?" at ".concat(o):"")}},function(t,e,n){"use strict";var r,o,c=n(0),l=n(15),d=n(113),h=n(73),f=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),m=new l.b("app","Firebase",f),v="@firebase/app",y="[DEFAULT]",_=((o={})[v]="fire-core",o["@firebase/analytics"]="fire-analytics",o["@firebase/app-check"]="fire-app-check",o["@firebase/auth"]="fire-auth",o["@firebase/database"]="fire-rtdb",o["@firebase/functions"]="fire-fn",o["@firebase/installations"]="fire-iid",o["@firebase/messaging"]="fire-fcm",o["@firebase/performance"]="fire-perf",o["@firebase/remote-config"]="fire-rc",o["@firebase/storage"]="fire-gcs",o["@firebase/firestore"]="fire-fst",o["fire-js"]="fire-js",o["firebase-wrapper"]="fire-js-all",o),w=new h.b("@firebase/app"),M=function(){function t(t,e,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=Object(l.f)(t),this.container=new d.b(e.name),this._addComponent(new d.a("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(component){return r._addComponent(component)}))}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){var n;void 0===e&&(e=y),this.checkDestroyed_();var r=this.container.getProvider(t);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=y),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(component){try{this.container.addComponent(component)}catch(t){w.debug("Component "+component.name+" failed to register with FirebaseApp "+this.name,t)}},t.prototype._addOrOverwriteComponent=function(component){this.container.addOrOverwriteComponent(component)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw m.create("app-deleted",{appName:this.name_})},t}();M.prototype.name&&M.prototype.options||M.prototype.delete||console.log("dc");var T=function t(){var e=function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,o){void 0===o&&(o={}),"object"==typeof o&&null!==o||(o={name:o});var c=o;void 0===c.name&&(c.name=y);var d=c.name;if("string"!=typeof d||!d)throw m.create("bad-app-name",{appName:String(d)});if(Object(l.c)(e,d))throw m.create("duplicate-app",{appName:d});var h=new t(n,c,r);return e[d]=h,h},app:o,registerVersion:function(t,e,n){var r,o=null!==(r=_[t])&&void 0!==r?r:t;n&&(o+="-"+n);var l=o.match(/\s|\//),h=e.match(/\s|\//);if(l||h){var f=['Unable to register library "'+o+'" with version "'+e+'":'];return l&&f.push('library name "'+o+'" contains illegal characters (whitespace or "/")'),l&&h&&f.push("and"),h&&f.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void w.warn(f.join(" "))}c(new d.a(o+"-version",(function(){return{library:o,version:e}}),"VERSION"))},setLogLevel:h.c,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw m.create("invalid-log-argument");Object(h.d)(t,e)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function o(t){if(t=t||y,!Object(l.c)(e,t))throw m.create("no-app",{appName:t});return e[t]}function c(component){var c=component.name;if(n.has(c))return w.debug("There were multiple attempts to register component "+c+"."),"PUBLIC"===component.type?r[c]:null;if(n.set(c,component),"PUBLIC"===component.type){var d=function(t){if(void 0===t&&(t=o()),"function"!=typeof t[c])throw m.create("invalid-app-argument",{appName:c});return t[c]()};void 0!==component.serviceProps&&Object(l.g)(d,component.serviceProps),r[c]=d,t.prototype[c]=function(){for(var t=[],e=0;e=0&&w.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=T.initializeApp;T.initializeApp=function(){for(var t=[],e=0;e>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},c={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(input,t){if(!Array.isArray(input))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var e=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,output=[],i=0;i>2,h=(3&n)<<4|o>>4,f=(15&o)<<2|l>>6,m=63&l;c||(m=64,r||(f=64)),output.push(e[d],e[h],e[f],e[m])}return output.join("")},encodeString:function(input,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(input):this.encodeByteArray(o(input),t)},decodeString:function(input,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(input):function(t){for(var e=[],n=0,r=0;n191&&o<224){var c=t[n++];e[r++]=String.fromCharCode((31&o)<<6|63&c)}else if(o>239&&o<365){var u=((7&o)<<18|(63&(c=t[n++]))<<12|(63&(l=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(1023&u))}else{c=t[n++];var l=t[n++];e[r++]=String.fromCharCode((15&o)<<12|(63&c)<<6|63&l)}}return e.join("")}(this.decodeStringToByteArray(input,t))},decodeStringToByteArray:function(input,t){this.init_();for(var e=t?this.charToByteMapWebSafe_:this.charToByteMap_,output=[],i=0;i>4;if(output.push(l),64!==o){var d=r<<4&240|o>>2;if(output.push(d),64!==c){var h=o<<6&192|c;output.push(h)}}}return output},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var i=0;i=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}},l=function(t){return function(t){var e=o(t);return c.encodeByteArray(e,!0)}(t).replace(/\./g,"")};function d(t){return h(void 0,t)}function h(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]=h(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 m(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=e||"demo-project",o=t.iat||0,sub=t.sub||t.user_id;if(!sub)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var c=Object(r.a)({iss:"https://securetoken.google.com/"+n,aud:n,iat:o,exp:o+3600,auth_time:o,sub:sub,user_id:sub,firebase:{sign_in_provider:"custom",identities:{}}},t);return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(c)),""].join(".")}function v(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function y(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(v())}function _(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}function w(){return"object"==typeof self&&self.self===self}function M(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function T(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function S(){return v().indexOf("Electron/")>=0}function L(){var t=v();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function k(){return v().indexOf("MSAppHost/")>=0}function D(){return!_()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var O=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,A.prototype.create),o}return Object(r.c)(e,t),e}(Error),A=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 E=/\{\$([^}]+)}/g;function Y(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],d=this.chain_[3],h=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(o=d^b&(l^d),c=1518500249):(o=b^l^d,c=1859775393):i<60?(o=b&l|d&(b|l),c=2400959708):(o=b^l^d,c=3395469782);r=(a<<5|a>>>27)+o+h+c+n[i]&4294967295;h=d,d=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]+d&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 P(t,e){var n=new I(t,e);return n.subscribe.bind(n)}var I=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;ne.maxRefDepth)return d(path);var m=0,v=f.length,y=Object.create(null);function _(t){t in y&&++m>=v&&d(path)}f.forEach((function(t){var sub=n[t],d=r[t],f=path+"."+t;if(y[f]=!0,sub){if(sub.path===d.path)return;sub.unsub()}n[t]={unsub:h({ref:d,target:o,path:f,depth:c,ops:l,resolve:_.bind(null,f)},e),path:d.path}}))}function d(t,e){var n=t.snapshot,r=t.target,path=t.path,c=t.subs,d=t.ops,h=t.depth;void 0===h&&(h=0);var f=t.resolve;void 0===e&&(e={maxRefDepth:2});var m=o(n,function(t,path){return path.split(".").reduce((function(t,e){return t[e]}),t)}(r,path)),data=m[0],v=m[1];d.set(r,path,data),l({data:data,subs:c,refs:v,target:r,path:path,ops:d,depth:h,resolve:f},e)}function h(t,e){var n=t.ref,o=t.target,path=t.path,l=t.depth,h=t.resolve,f=t.ops,m=Object.create(null),v=n.onSnapshot((function(t){t.exists?d({snapshot:r(t),target:o,path:path,ops:f,subs:m,depth:l,resolve:h},e):(f.set(o,path,null),h(path))}));return function(){v(),c(m)}}n.d(e,"a",(function(){return y.a})),n.d(e,"b",(function(){return k}));var f={set:function(t,e,n){return function(t,path,e){var n=(""+path).split("."),r=n.pop(),o=n.reduce((function(t,e){return t[e]}),t);return o.splice?o.splice(r,1,e):o[r]=e}(t,e,n)},add:function(t,e,data){return t.splice(e,0,data)},remove:function(t,e){return t.splice(e,1)}};function m(t,e){var n=t.vm,h=t.key,f=t.ref,m=t.ops;return void 0===e&&(e={maxRefDepth:2}),new Promise((function(t,v){var y;y=f.where?function(t,e){var n=t.vm,d=t.key,h=t.collection,f=t.ops,m=t.resolve,v=t.reject;void 0===e&&(e={maxRefDepth:2});var y,_=f.set(n,d,[]),w=m,M=[],T={added:function(t){var n=t.newIndex,c=t.doc;M.splice(n,0,Object.create(null));var d=M[n],h=o(r(c)),data=h[0],v=h[1];f.add(_,n,data),l({data:data,refs:v,subs:d,target:_,path:n,depth:0,ops:f,resolve:m.bind(null,c)},e)},modified:function(t){var n=t.oldIndex,c=t.newIndex,d=t.doc,h=M.splice(n,1)[0];M.splice(c,0,h);var v=f.remove(_,n)[0],y=o(r(d),v),data=y[0],w=y[1];f.add(_,c,data),l({data:data,refs:w,subs:h,ops:f,target:_,path:c,depth:0,resolve:m},e)},removed:function(t){var e=t.oldIndex;f.remove(_,e),c(M.splice(e,1)[0])}},S=h.onSnapshot((function(t){var e="function"==typeof t.docChanges?t.docChanges():t.docChanges;if(!y&&e.length){y=!0;var r=0,o=e.length,c=e.reduce((function(t,e){return t[e.doc.id]=!1,t}),Object.create(null));m=function(t){t.id in c&&++r>=o&&(w(n[d]),m=function(t){})}}e.forEach((function(t){T[t.type](t)})),e.length||m()}),v);return function(){S(),M.forEach(c)}}({vm:n,key:h,ops:m,collection:f,resolve:t,reject:v},e):function(t,e){var n,o,l,h=t.vm,f=t.key,m=t.document,v=t.resolve,y=t.reject,_=t.ops,w=Object.create(null);n=v,o=function(){return h[f]},v=function(){if(!l)return l=!0,n(o())};var M=m.onSnapshot((function(t){t.exists?d({snapshot:r(t),target:h,path:f,subs:w,ops:_,resolve:v},e):v()}),y);return function(){M(),c(w)}}({vm:n,key:h,ops:m,document:f,resolve:t,reject:v},e),n._firestoreUnbinds[h]=y}))}var v=function(t){var e=t.config.optionMergeStrategies;e.firestore=e.provide,t.mixin({created:function(){var t=this,e=this.$options.firestore;this._firestoreUnbinds=Object.create(null),this.$firestoreRefs=Object.create(null);var n="function"==typeof e?e.call(this):e;n&&Object.keys(n).forEach((function(e){t.$bind(e,n[e])}))},beforeDestroy:function(){for(var t in this._firestoreUnbinds)this._firestoreUnbinds[t]();this._firestoreUnbinds=null,this.$firestoreRefs=null}}),t.prototype.$bind=function(t,e,n){this._firestoreUnbinds[t]&&this.$unbind(t);var r=m({vm:this,key:t,ref:e,ops:f},n);return this.$firestoreRefs[t]=e,r},t.prototype.$unbind=function(t){this._firestoreUnbinds[t](),delete this._firestoreUnbinds[t],delete this.$firestoreRefs[t]}},y=n(13),_="8.10.0";y.a.registerVersion("firebase",_,"app"),y.a.SDK_VERSION=_;var w,M=n(44),T=n(113),S=(n(15),n(73),n(54),{Firestore:M.f,GeoPoint:M.a,Timestamp:M.c,Blob:M.j,Transaction:M.k,WriteBatch:M.g,DocumentReference:M.r,DocumentSnapshot:M.h,Query:M.q,QueryDocumentSnapshot:M.i,QuerySnapshot:M.l,CollectionReference:M.p,FieldPath:M.o,FieldValue:M.m,setLogLevel:M.d,CACHE_SIZE_UNLIMITED:M.b});(function(t,e){t.INTERNAL.registerComponent(new T.a("firestore",(function(t){return function(t,s){return new M.f(t,new M.e(t,s),new M.n)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},S)))})(w=y.a),w.registerVersion("@firebase/firestore","2.4.0");n(529);var L=n(3);n.n(L).a.use(v);var k=null;if(y.a.apps.length)y.a.app(),k=y.a.firestore();else{y.a.initializeApp({apiKey:"AIzaSyAg15XDMc9yGSlE1RfDTP1D16n5UOqmY08",databaseURL:"https://itweb-1274.firebaseio.com",projectId:"itweb-1274"});(k=y.a.firestore()).settings({})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return _})),n.d(e,"b",(function(){return w}));var r=n(1),o=n(239),c=n(240),l=n(155),d=n(243),h=n(238),f=n(241),m=n(132),v=Object(r.j)("v-list-item__action-text","span"),y=Object(r.j)("v-list-item__content","div"),_=Object(r.j)("v-list-item__title","div"),w=Object(r.j)("v-list-item__subtitle","div");o.a,c.a,l.a,h.a,f.a,d.a,m.a},,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return h}));n(16),n(14),n(11),n(6),n(19),n(10),n(20);var r=n(4),o=n(3);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof data.style?(Object(d.b)("style must be an object",this),data):"string"==typeof data.class?(Object(d.b)("class must be an object",this),data):(Object(h.d)(t)?data.style=m(m({},data.style),{},{"background-color":"".concat(t),"border-color":"".concat(t)}):t&&(data.class=m(m({},data.class),{},Object(o.a)({},t,!0))),data)},setTextColor:function(t){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof data.style)return Object(d.b)("style must be an object",this),data;if("string"==typeof data.class)return Object(d.b)("class must be an object",this),data;if(Object(h.d)(t))data.style=m(m({},data.style),{},{color:"".concat(t),"caret-color":"".concat(t)});else if(t){var e=t.toString().trim().split(" ",2),n=Object(r.a)(e,2),c=n[0],l=n[1];data.class=m(m({},data.class),{},Object(o.a)({},c+"--text",!0)),l&&(data.class["text--"+l]=!0)}return data}}})},,function(t,e,n){"use strict";n(68),n(6);var r=n(97),o=n.n(r),c="https://api.itweb.co.za",l=o.a.create({baseURL:c,timeout:12e4});l.interceptors.request.use((function(t){!t.url.startsWith("http")||t.url.indexOf(c);var e=window.localStorage.getItem("itw_access_token");return e&&(t.headers.Authorization="Bearer "+e),t})),l.interceptors.response.use(void 0,(function(t){return localStorage.getItem("itw_access_token")&&t.response&&401===t.response.status?o.a.post(baseUrl+"/auth/login",{grant_type:"refresh_token",client_id:2,client_secret:"bz80P5wNt4iEhnsHMANm8MbUxlFqQrvBnYYyFfRv"},{withCredentials:!0}).then((function(e){var n=e.data.access_token;return localStorage.setItem("itw_access_token",n),t.config.headers.Authorization="Bearer "+n,o()(t.config)})).catch((function(){return localStorage.removeItem("itw_access_token")})):Promise.reject(t)})),e.a=l},function(t,e){t.exports=function(component,t){var e="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(e.components=component.exports.options.components),e.components=e.components||{},t)e.components[i]=e.components[i]||t[i]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(197);var o=n(129),c=n(198);function l(t,i){return Object(r.a)(t)||function(t,i){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o=[],c=!0,l=!1;try{for(e=e.call(t);!(c=(n=e.next()).done)&&(o.push(n.value),!i||o.length!==i);c=!0);}catch(t){l=!0,r=t}finally{try{c||null==e.return||e.return()}finally{if(l)throw r}}return o}}(t,i)||Object(o.a)(t,i)||Object(c.a)()}},,,,,,function(t,e,n){"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e,n,r,o,c,l){try{var d=t[c](l),h=d.value}catch(t){return void n(t)}d.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 d(t){r(l,o,c,d,h,"next",t)}function h(t){r(l,o,c,d,h,"throw",t)}d(void 0)}))}}n.d(e,"a",(function(){return o}))},,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var i=0;ie?1:0}function O(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function A(t){return t+"\0"}var j=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,Math.floor(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._compareTo=function(t){return this.seconds===t.seconds?q(this.nanoseconds,t.nanoseconds):q(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}(),E=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new j(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function Y(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function P(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function I(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var x=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&T(),void 0===n?n=t.length-e:n>t.length-e&&T(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(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.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return t=void 0===t?1:t,this.construct(this.segments,this.offset+t,this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.lengtho)return 1}return t.lengthe.length?1:0},t}(),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n=0)throw new f(h.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter((function(t){return t.length>0})))}return new e(r)},e.emptyPath=function(){return new e([])},e}(x),N=/^[_a-zA-Z][_a-zA-Z0-9]*$/,H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.isValidIdentifier=function(t){return N.test(t)},e.prototype.canonicalString=function(){return this.toArray().map((function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i=Number.MIN_SAFE_INTEGER}var J=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(C.fromString(e))},t.fromName=function(e){return new t(C.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===C.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return C.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new C(e.slice()))},t}();function Q(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?rt(t)?4:10:T()}function Z(t,e){var n=Q(t);if(n!==Q(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return z(t).isEqual(z(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=V(t.timestampValue),r=V(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return W(t.bytesValue).isEqual(W(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return G(t.geoPointValue.latitude)===G(e.geoPointValue.latitude)&&G(t.geoPointValue.longitude)===G(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return G(t.integerValue)===G(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=G(t.doubleValue),r=G(e.doubleValue);return n===r?K(n)===K(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return O(t.arrayValue.values||[],e.arrayValue.values||[],Z);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]||!Z(n[i],r[i])))return!1;return!0}(t,e);default:return T()}}function tt(t,e){return void 0!==(t.values||[]).find((function(t){return Z(t,e)}))}function dt(t,e){var n=Q(t),r=Q(e);if(n!==r)return q(n,r);switch(n){case 0:return 0;case 1:return q(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=G(t.integerValue||t.doubleValue),r=G(e.integerValue||e.doubleValue);return nr?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return et(t.timestampValue,e.timestampValue);case 4:return et(z(t),z(e));case 5:return q(t.stringValue,e.stringValue);case 6:return function(t,e){var n=W(t),r=W(e);return n.compareTo(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 T()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}((function(){})),Mt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=J.fromName(r.referenceValue),i}return Object(r.c)(e,t),e.prototype.matches=function(t){var e=J.comparator(t.key,this.key);return this.m(e)},e}(wt),Tt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=Lt("in",n),r}return Object(r.c)(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(wt),St=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=Lt("not-in",n),r}return Object(r.c)(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(wt);function Lt(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return J.fromName(t.referenceValue)}))}var kt=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return Object(r.c)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return st(e)&&tt(e.arrayValue,this.value)},e}(wt),Dt=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return Object(r.c)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&tt(this.value.arrayValue,e)},e}(wt),Ot=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return Object(r.c)(e,t),e.prototype.matches=function(t){if(tt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!tt(this.value.arrayValue,e)},e}(wt),At=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return Object(r.c)(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!st(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return tt(e.value.arrayValue,t)}))},e}(wt),jt=function(t,e){this.position=t,this.before=e};function Et(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return nt(t)})).join(",")}var Yt=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Pt(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function It(t,e,n){for(var r=0,i=0;i0?t.explicitOrderBy[0].field:null}function Vt(t){for(var e=0,n=t.filters;e0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new Yt(H.keyField(),a))}}}return e.p}function Ut(t){var e=L(t);if(!e.T)if("F"===e.limitType)e.T=yt(e.path,e.collectionGroup,Wt(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=Wt(e);r0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return function(t){return t.field.canonicalString()+" ("+t.dir+")"}(t)})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Et(t.startAt)),t.endAt&&(e+=", endAt: "+Et(t.endAt)),"Target("+e+")"}(Ut(t))+"; limitType="+t.limitType+")"}function Xt(t,e){return e.isFoundDocument()&&function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(n):J.isDocumentKey(t.path)?t.path.isEqual(n):t.path.isImmediateParentOf(n)}(t,e)&&function(t,e){for(var n=0,r=t.explicitOrderBy;n0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.isEmpty();){var r=this.comparator(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.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.inorderTraversal((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new Ne(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new Ne(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new Ne(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new Ne(this.root,t,this.comparator,!0)},t}(),Ne=function(){function t(t,e,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!t.isEmpty();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.isReverse?t.left:t.right;else{if(0===i){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),He=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.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(e,i.key)){if(i.right.isEmpty())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=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.rotateRight=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.colorFlip=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.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw T();if(this.right.isRed())throw T();var t=this.left.check();if(t!==this.right.check())throw T();return t+(this.isRed()?0:1)},t}();He.EMPTY=null,He.RED=!0,He.BLACK=!1,He.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw T()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw T()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw T()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw T()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw T()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new He(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var Re=function(){function t(t){this.comparator=t,this.data=new Ce(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},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.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,t[1])>=0)return;e(r.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new Be(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new Be(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=function(t){var e=this;return e.size0&&(this.k=!0,this.C=t)},t.prototype.M=function(){var t=qe(),e=qe(),n=qe();return this.D.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:T()}})),new Qe(this.C,this.N,t,e,n)},t.prototype.L=function(){this.k=!1,this.D=an()},t.prototype.B=function(t,e){this.k=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.k=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.k=!0,this.N=!0},t}(),rn=function(){function t(t){this.W=t,this.G=new Map,this.H=Ve(),this.J=on(),this.Y=new Re(q)}return t.prototype.X=function(t){for(var e=0,n=t.v;e0?t.targetIds.forEach(e):this.G.forEach((function(t,r){n.st(r)&&e(r)}))},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,r=this.ot(e);if(r){var i=r.target;if(bt(i))if(0===n){var o=new J(i.path);this.tt(e,o,mt.newNoDocument(o,E.min()))}else S(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach((function(r,i){var o=e.ot(i);if(o){if(r.current&&bt(o.target)){var s=new J(o.target.path);null!==e.H.get(s)||e.at(i,s)||e.tt(i,s,mt.newNoDocument(s,t))}r.$&&(n.set(i,r.M()),r.L())}}));var r=qe();this.J.forEach((function(t,n){var i=!0;n.forEachWhile((function(t){var n=e.ot(t);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new Je(t,n,this.Y,this.H,r);return this.H=Ve(),this.J=on(),this.Y=new Re(q),i},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var r=this.nt(t);this.at(t,e)?r.B(e,1):r.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new nn,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new Re(q),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||y("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.F?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new nn),this.W.getRemoteKeysForTarget(t).forEach((function(n){e.tt(t,n,null)}))},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function on(){return new Ce(J.comparator)}function an(){return new Ce(J.comparator)}var sn={asc:"ASCENDING",desc:"DESCENDING"},un={"<":"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"},cn=function(t,e){this.databaseId=t,this.I=e};function ln(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function dn(t,e){return t.I?e.toBase64():e.toUint8Array()}function hn(t,e){return ln(t,e.toTimestamp())}function fn(t){return S(!!t),E.fromTimestamp(function(t){var e=V(t);return new j(e.seconds,e.nanos)}(t))}function pn(t,e){return function(t){return new C(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).canonicalString()}function mn(t){var e=C.fromString(t);return S(Rn(e)),e}function vn(t,e){return pn(t.databaseId,e.path)}function yn(t,e){var n=mn(e);if(n.get(1)!==t.databaseId.projectId)throw new f(h.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new f(h.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new J(wn(n))}function _n(t,e){return pn(t.databaseId,e)}function gn(t){var e=mn(t);return 4===e.length?C.emptyPath():wn(e)}function bn(t){return new C(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function wn(t){return S(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function Mn(t,e,n){return{name:vn(t,e),fields:n.value.mapValue.fields}}function Tn(t,e,n){var r=yn(t,e.name),i=fn(e.updateTime),o=new ft({mapValue:{fields:e.fields}}),s=mt.newFoundDocument(r,i,o);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function Sn(t,e){var n;if(e instanceof Se)n={update:Mn(t,e.key,e.value)};else if(e instanceof Ee)n={delete:vn(t,e.key)};else if(e instanceof Le)n={update:Mn(t,e.key,e.data),updateMask:Hn(e.fieldMask)};else{if(!(e instanceof Ye))return T();n={verify:vn(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 ae)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof se)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof ce)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof de)return{fieldPath:e.field.canonicalString(),increment:n.A};throw T()}(0,t)}))),e.precondition.isNone||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:hn(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:T()}(t,e.precondition)),n}function Ln(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?ve.updateTime(fn(t.updateTime)):void 0!==t.exists?ve.exists(t.exists):ve.none()}(e.currentDocument):ve.none(),r=e.updateTransforms?e.updateTransforms.map((function(e){return function(t,e){var n=null;if("setToServerValue"in e)S("REQUEST_TIME"===e.setToServerValue),n=new ae;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new se(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new ce(i)}else"increment"in e?n=new de(t,e.increment):T();var o=H.fromServerFormat(e.fieldPath);return new pe(o,n)}(t,e)})):[];if(e.update){e.update.name;var i=yn(t,e.update.name),o=new ft({mapValue:{fields:e.update.fields}});if(e.updateMask){var s=function(t){var e=t.fieldPaths||[];return new R(e.map((function(t){return H.fromServerFormat(t)})))}(e.updateMask);return new Le(i,o,s,n,r)}return new Se(i,o,n,r)}if(e.delete){var u=yn(t,e.delete);return new Ee(u,n)}if(e.verify){var a=yn(t,e.verify);return new Ye(a,n)}return T()}function kn(t,e){return{documents:[_n(t,e.path)]}}function Dn(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=_n(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=_n(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(ct(t.value))return{unaryFilter:{field:In(t.field),op:"IS_NAN"}};if(ut(t.value))return{unaryFilter:{field:In(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(ct(t.value))return{unaryFilter:{field:In(t.field),op:"IS_NOT_NAN"}};if(ut(t.value))return{unaryFilter:{field:In(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:In(t.field),op:Pn(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:In(t.field),direction:Yn(t.dir)}}(t)}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(t,e){return t.I||$(e)?e:{value:e}}(t,e.limit);return null!==s&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=jn(e.startAt)),e.endAt&&(n.structuredQuery.endAt=jn(e.endAt)),n}function On(t){var e=gn(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){S(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=An(n.where));var u=[];n.orderBy&&(u=n.orderBy.map((function(t){return function(t){return new Yt(xn(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 $(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=En(n.startAt));var l=null;return n.endAt&&(l=En(n.endAt)),Nt(e,i,u,s,a,"F",c,l)}function An(t){return t?void 0!==t.unaryFilter?[Nn(t)]:void 0!==t.fieldFilter?[Cn(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return An(t)})).reduce((function(t,e){return t.concat(e)})):T():[]}function jn(t){return{before:t.before,values:t.position}}function En(t){var e=!!t.before,n=t.values||[];return new jt(n,e)}function Yn(t){return sn[t]}function Pn(t){return un[t]}function In(t){return{fieldPath:t.canonicalString()}}function xn(t){return H.fromServerFormat(t.fieldPath)}function Cn(t){return wt.create(xn(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";default:return T()}}(t.fieldFilter.op),t.fieldFilter.value)}function Nn(t){switch(t.unaryFilter.op){case"IS_NAN":var e=xn(t.unaryFilter.field);return wt.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=xn(t.unaryFilter.field);return wt.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=xn(t.unaryFilter.field);return wt.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=xn(t.unaryFilter.field);return wt.create(i,"!=",{nullValue:"NULL_VALUE"});default:return T()}}function Hn(t){var e=[];return t.fields.forEach((function(t){return e.push(t.canonicalString())})),{fieldPaths:e}}function Rn(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function Bn(t){for(var e="",n=0;n0&&(e=Vn(e)),e=Fn(t.get(n),e);return Vn(e)}function Fn(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return S(""===t.charAt(0)&&""===t.charAt(1)),C.emptyPath();for(var n=e-2,r=[],i="",o=0;on)&&T(),t.charAt(s+1)){case"":var u=t.substring(o,s),a=void 0;0===i.length?a=u:(a=i+=u,i=""),r.push(a);break;case"":i+=t.substring(o,s),i+="\0";break;case"":i+=t.substring(o,s+1);break;default:T()}o=s+2}return new C(r)}var Gn=function(t,e){this.seconds=t,this.nanoseconds=e},Wn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Wn.store="owner",Wn.key="owner";var Un=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Un.store="mutationQueues",Un.keyPath="userId";var zn=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};zn.store="mutations",zn.keyPath="batchId",zn.userMutationsIndex="userMutationsIndex",zn.userMutationsKeyPath=["userId","batchId"];var $n=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Bn(e)]},t.key=function(t,e,n){return[t,Bn(e),n]},t}();$n.store="documentMutations",$n.PLACEHOLDER=new $n;var qn=function(t,e){this.path=t,this.readTime=e},Kn=function(t,e){this.path=t,this.version=e},Xn=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};Xn.store="remoteDocuments",Xn.readTimeIndex="readTimeIndex",Xn.readTimeIndexPath="readTime",Xn.collectionReadTimeIndex="collectionReadTimeIndex",Xn.collectionReadTimeIndexPath=["parentPath","readTime"];var Jn=function(t){this.byteSize=t};Jn.store="remoteDocumentGlobal",Jn.key="remoteDocumentGlobalKey";var hr=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};hr.store="targets",hr.keyPath="targetId",hr.queryTargetsIndexName="queryTargetsIndex",hr.queryTargetsKeyPath=["canonicalId","targetId"];var Qn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Qn.store="targetDocuments",Qn.keyPath=["targetId","path"],Qn.documentTargetsIndex="documentTargetsIndex",Qn.documentTargetsKeyPath=["path","targetId"];var Zn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Zn.key="targetGlobalKey",Zn.store="targetGlobal";var er=function(t,e){this.collectionId=t,this.parent=e};er.store="collectionParents",er.keyPath=["collectionId","parent"];var nr=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};nr.store="clientMetadata",nr.keyPath="clientId";var rr=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};rr.store="bundles",rr.keyPath="bundleId";var ir=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};ir.store="namedQueries",ir.keyPath="name";var or=Object(r.f)(Object(r.f)([],Object(r.f)(Object(r.f)([],Object(r.f)(Object(r.f)([],Object(r.f)(Object(r.f)([],[Un.store,zn.store,$n.store,Xn.store,hr.store,Wn.store,Zn.store,Qn.store]),[nr.store])),[Jn.store])),[er.store])),[rr.store,ir.store]),ar="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",sr=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach((function(t){return t()}))},t}(),br=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},ur=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)}),(function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.callbackAttached&&T(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t((function(t,i){r.nextCallback=function(n){r.wrapSuccess(e,n).next(t,i)},r.catchCallback=function(e){r.wrapFailure(n,e).next(t,i)}}))},t.prototype.toPromise=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction((function(){return e(n)})):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction((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.waitFor=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.or=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||r||s)},e.gt=function(){var e;return void 0!==t&&"YES"===(null===(e=t.env)||void 0===e?void 0:e.Tt)},e.It=function(t,e){return t.store(e)},e._t=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.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.At=function(t){return Object(r.b)(this,void 0,void 0,(function(){var e,n=this;return Object(r.d)(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(y("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 fr(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 f(h.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new fr(t,n))},i.onupgradeneeded=function(t){y("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion);var e=t.target.result;n.wt.Rt(e,i.transaction,t.oldVersion,n.version).next((function(){y("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}}))}))},e.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,i,n){return Object(r.b)(this,void 0,void 0,(function(){var o,s,u,a,c;return Object(r.d)(this,(function(l){switch(l.label){case 0:o="readonly"===e,s=0,u=function(){var e,u,c,l,d;return Object(r.d)(this,(function(r){switch(r.label){case 0:++s,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,a.At(t)];case 2:return a.db=r.sent(),e=cr.open(a.db,t,o?"readonly":"readwrite",i),u=n(e).catch((function(t){return e.abort(t),ur.reject(t)})).toPromise(),c={},u.catch((function(){})),[4,e.dt];case 3:return[2,(c.value=(r.sent(),u),c)];case 4:return l=r.sent(),d="FirebaseError"!==l.name&&s<3,y("SimpleDb","Transaction failed with error:",l.message,"Retrying:",d),a.close(),d?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}}))},a=this,l.label=1;case 1:return[5,u()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),dr=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return vr(this.Pt.delete())},t}(),fr=function(t){function e(e,n){var r=this;return(r=t.call(this,h.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return Object(r.c)(e,t),e}(f);function pr(t){return"IndexedDbTransactionError"===t.name}var mr=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(y("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(y("SimpleDb","PUT",this.store.name,"",t),n=this.store.put(t)),vr(n)},t.prototype.add=function(t){return y("SimpleDb","ADD",this.store.name,t,t),vr(this.store.add(t))},t.prototype.get=function(t){var e=this;return vr(this.store.get(t)).next((function(n){return void 0===n&&(n=null),y("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return y("SimpleDb","DELETE",this.store.name,t),vr(this.store.delete(t))},t.prototype.count=function(){return y("SimpleDb","COUNT",this.store.name),vr(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.xt(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.kt=function(t,e){y("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Ft=!1;var r=this.cursor(n);return this.xt(r,(function(t,e,n){return n.delete()}))},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.xt(r,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new ur((function(n,r){e.onerror=function(t){var e=_r(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.xt=function(t,e){var n=[];return new ur((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 dr(i),s=e(i.primaryKey,i.value,o);if(s instanceof ur){var u=s.catch((function(t){return o.done(),ur.reject(t)}));n.push(u)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}})).next((function(){return ur.waitFor(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.Ft?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function vr(t){return new ur((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=_r(t.target.error);n(e)}}))}var yr=!1;function _r(t){var e=lr._t(Object(o.i)());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new f("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 yr||(yr=!0,setTimeout((function(){throw r}),0)),r}}return t}var gr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Mt=e,r.currentSequenceNumber=n,r}return Object(r.c)(e,t),e}(sr);function wr(t,e){var n=L(t);return lr.It(n.Mt,e)}var Mr=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,r=0;r=r),o=Yr(n.R,e)),i.done()})).next((function(){return o}))},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Kr(t).$t({index:zn.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Kr(t).Nt(zn.userMutationsIndex,n).next((function(t){return t.map((function(t){return Yr(e.R,t)}))}))},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=$n.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Xr(t).$t({range:i},(function(r,i,s){var u=r[0],a=r[1],c=r[2],l=tr(a);if(u===n.userId&&e.path.isEqual(l))return Kr(t).get(c).next((function(t){if(!t)throw T();S(t.userId===n.userId),o.push(Yr(n.R,t))}));s.done()})).next((function(){return o}))},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new Re(q),i=[];return e.forEach((function(e){var o=$n.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),u=Xr(t).$t({range:s},(function(t,i,o){var s=t[0],u=t[1],a=t[2],c=tr(u);s===n.userId&&e.path.isEqual(c)?r=r.add(a):o.done()}));i.push(u)})),ur.waitFor(i).next((function(){return n.Wt(t,r)}))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,r=e.path,i=r.length+1,o=$n.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),u=new Re(q);return Xr(t).$t({range:s},(function(t,e,o){var s=t[0],a=t[1],c=t[2],l=tr(a);s===n.userId&&r.isPrefixOf(l)?l.length===i&&(u=u.add(c)):o.done()})).next((function(){return n.Wt(t,u)}))},t.prototype.Wt=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(Kr(t).get(e).next((function(t){if(null===t)throw T();S(t.userId===n.userId),r.push(Yr(n.R,t))})))})),ur.waitFor(i).next((function(){return r}))},t.prototype.removeMutationBatch=function(t,e){var n=this;return Ur(t.Mt,this.userId,e).next((function(r){return t.addOnCommittedListener((function(){n.Gt(e.batchId)})),ur.forEach(r,(function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)}))}))},t.prototype.Gt=function(t){delete this.Kt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next((function(n){if(!n)return ur.resolve();var r=IDBKeyRange.lowerBound($n.prefixForUser(e.userId)),i=[];return Xr(t).$t({range:r},(function(t,n,r){if(t[0]===e.userId){var o=tr(t[1]);i.push(o)}else r.done()})).next((function(){S(0===i.length)}))}))},t.prototype.containsKey=function(t,e){return qr(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return Jr(t).get(this.userId).next((function(t){return t||new Un(e.userId,-1,"")}))},t}();function qr(t,e,n){var r=$n.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return Xr(t).$t({range:o,Ft:!0},(function(t,n,r){var o=t[0],u=t[1];t[2],o===e&&u===i&&(s=!0),r.done()})).next((function(){return s}))}function Kr(t){return wr(t,zn.store)}function Xr(t){return wr(t,$n.store)}function Jr(t){return wr(t,Un.store)}var Qr=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),Zr=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next((function(n){var r=new Qr(n.highestTargetId);return n.highestTargetId=r.next(),e.Zt(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next((function(t){return E.fromTimestamp(new j(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.Xt(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Zt(t,i)}))},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next((function(){return n.Xt(t).next((function(r){return r.targetCount+=1,n.ee(e,r),n.Zt(t,r)}))}))},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next((function(){return ti(t).delete(e.targetId)})).next((function(){return n.Xt(t)})).next((function(e){return S(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)}))},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return ti(t).$t((function(s,u){var a=Pr(u);a.sequenceNumber<=e&&null===n.get(a.targetId)&&(i++,o.push(r.removeTargetData(t,a)))})).next((function(){return ur.waitFor(o)})).next((function(){return i}))},t.prototype.forEachTarget=function(t,e){return ti(t).$t((function(t,n){var r=Pr(n);e(r)}))},t.prototype.Xt=function(t){return li(t).get(Zn.key).next((function(t){return S(null!==t),t}))},t.prototype.Zt=function(t,e){return li(t).put(Zn.key,e)},t.prototype.te=function(t,e){return ti(t).put(Ir(this.R,e))},t.prototype.ee=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.getTargetCount=function(t){return this.Xt(t).next((function(t){return t.targetCount}))},t.prototype.getTargetData=function(t,e){var n=_t(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return ti(t).$t({range:r,index:hr.queryTargetsIndexName},(function(t,n,r){var o=Pr(n);gt(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],o=ei(t);return e.forEach((function(e){var s=Bn(e.path);i.push(o.put(new Qn(n,s))),i.push(r.referenceDelegate.addReference(t,n,e))})),ur.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=ei(t);return ur.forEach(e,(function(e){var o=Bn(e.path);return ur.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(t,n,e)])}))},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=ei(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=ei(t),i=qe();return r.$t({range:n,Ft:!0},(function(t,e,n){var r=tr(t[1]),o=new J(r);i=i.add(o)})).next((function(){return i}))},t.prototype.containsKey=function(t,e){var n=Bn(e.path),r=IDBKeyRange.bound([n],[A(n)],!1,!0),i=0;return ei(t).$t({index:Qn.documentTargetsIndex,Ft:!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.lt=function(t,e){return ti(t).get(e).next((function(t){return t?Pr(t):null}))},t}();function ti(t){return wr(t,hr.store)}function li(t){return wr(t,Zn.store)}function ei(t){return wr(t,Qn.store)}function ni(t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){if(t.code!==h.FAILED_PRECONDITION||t.message!==ar)throw t;return y("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function ri(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=q(n,i);return 0===s?q(r,o):s}var ii=function(){function t(t){this.ne=t,this.buffer=new Re(ri),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.sizel.params.maximumSequenceNumbersToCollect?(y("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.maximumSequenceNumbersToCollect+" from "+e),r=l.params.maximumSequenceNumbersToCollect):r=e,o=Date.now(),l.nthSequenceNumber(t,r)})).next((function(r){return n=r,s=Date.now(),l.removeTargets(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.removeOrphanedDocuments(t,n)})).next((function(t){return a=Date.now(),v()<=c.a.DEBUG&&y("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-d)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(a-u)+"ms\nTotal Duration: "+(a-d)+"ms"),ur.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:t})}))},t}(),si=function(){function t(t,e){this.db=t,this.garbageCollector=function(t,e){return new ai(t,e)}(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.de=function(t){var e=0;return this.le(t,(function(t){e++})).next((function(){return e}))},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,(function(t,n){return e(n)}))},t.prototype.addReference=function(t,e,n){return ui(t,n)},t.prototype.removeReference=function(t,e,n){return ui(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return ui(t,e)},t.prototype._e=function(t,e){return function(t,e){var n=!1;return Jr(t).Ot((function(r){return qr(t,r,e).next((function(t){return t&&(n=!0),ur.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(t,(function(s,u){if(u<=e){var a=n._e(t,s).next((function(e){if(!e)return o++,r.getEntry(t,s).next((function(){return r.removeEntry(s),ei(t).delete([0,Bn(s.path)])}))}));i.push(a)}})).next((function(){return ur.waitFor(i)})).next((function(){return r.apply(t)})).next((function(){return o}))},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return ui(t,e)},t.prototype.we=function(t,e){var n,r=ei(t),i=d.o;return r.$t({index:Qn.documentTargetsIndex},(function(t,r){var o=t[0];t[1];var s=r.path,u=r.sequenceNumber;0===o?(i!==d.o&&e(new J(tr(n)),i),i=u,n=s):i=d.o})).next((function(){i!==d.o&&e(new J(tr(n)),i)}))},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function ui(t,e){return ei(t).put(function(t,e){return new Qn(0,Bn(t.path),e)}(e,t.currentSequenceNumber))}var ci=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var r=0,i=n;r=0&&r<=11);var o=new cr("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Wn.store)}(t),function(t){t.createObjectStore(Un.store,{keyPath:Un.keyPath}),t.createObjectStore(zn.store,{keyPath:zn.keyPath,autoIncrement:!0}).createIndex(zn.userMutationsIndex,zn.userMutationsKeyPath,{unique:!0}),t.createObjectStore($n.store)}(t),_i(t),function(t){t.createObjectStore(Xn.store)}(t));var s=ur.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Qn.store),t.deleteObjectStore(hr.store),t.deleteObjectStore(Zn.store)}(t),_i(t)),s=s.next((function(){return function(t){var e=t.store(Zn.store),n=new Zn(0,0,E.min().toTimestamp(),0);return e.put(Zn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(t,e){return e.store(zn.store).Nt().next((function(n){t.deleteObjectStore(zn.store),t.createObjectStore(zn.store,{keyPath:zn.keyPath,autoIncrement:!0}).createIndex(zn.userMutationsIndex,zn.userMutationsKeyPath,{unique:!0});var r=e.store(zn.store),i=n.map((function(t){return r.put(t)}));return ur.waitFor(i)}))}(t,o)}))),s=s.next((function(){!function(t){t.createObjectStore(nr.store,{keyPath:nr.keyPath})}(t)}))),n<5&&r>=5&&(s=s.next((function(){return i.Re(o)}))),n<6&&r>=6&&(s=s.next((function(){return function(t){t.createObjectStore(Jn.store)}(t),i.be(o)}))),n<7&&r>=7&&(s=s.next((function(){return i.ve(o)}))),n<8&&r>=8&&(s=s.next((function(){return i.Pe(t,o)}))),n<9&&r>=9&&(s=s.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Xn.store);e.createIndex(Xn.readTimeIndex,Xn.readTimeIndexPath,{unique:!1}),e.createIndex(Xn.collectionReadTimeIndex,Xn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(s=s.next((function(){return i.Ve(o)}))),n<11&&r>=11&&(s=s.next((function(){!function(t){t.createObjectStore(rr.store,{keyPath:rr.keyPath})}(t),function(t){t.createObjectStore(ir.store,{keyPath:ir.keyPath})}(t)}))),s},t.prototype.be=function(t){var e=0;return t.store(Xn.store).$t((function(t,n){e+=zr(n)})).next((function(){var n=new Jn(e);return t.store(Jn.store).put(Jn.key,n)}))},t.prototype.Re=function(t){var e=this,n=t.store(Un.store),r=t.store(zn.store);return n.Nt().next((function(n){return ur.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(zn.userMutationsIndex,i).next((function(r){return ur.forEach(r,(function(r){S(r.userId===n.userId);var i=Yr(e.R,r);return Ur(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ve=function(t){var e=t.store(Qn.store),n=t.store(Xn.store);return t.store(Zn.store).get(Zn.key).next((function(t){var r=[];return n.$t((function(n,i){var o=new C(n),s=function(t){return[0,Bn(t)]}(o);r.push(e.get(s).next((function(n){return n?ur.resolve():function(n){return e.put(new Qn(0,Bn(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return ur.waitFor(r)}))}))},t.prototype.Pe=function(t,e){t.createObjectStore(er.store,{keyPath:er.keyPath});var n=e.store(er.store),r=new Br,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:Bn(i)})}};return e.store(Xn.store).$t({Ft:!0},(function(t,e){var n=new C(t);return i(n.popLast())})).next((function(){return e.store($n.store).$t({Ft:!0},(function(t,e){t[0];var n=t[1];t[2];var r=tr(n);return i(r.popLast())}))}))},t.prototype.Ve=function(t){var e=this,n=t.store(hr.store);return n.$t((function(t,r){var i=Pr(r),o=Ir(e.R,i);return n.put(o)}))},t}();function _i(t){t.createObjectStore(Qn.store,{keyPath:Qn.keyPath}).createIndex(Qn.documentTargetsIndex,Qn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(hr.store,{keyPath:hr.keyPath}).createIndex(hr.queryTargetsIndexName,hr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Zn.store)}var gi="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.",bi=function(){function t(e,n,r,i,o,s,u,a,c,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=s,this.document=u,this.De=c,this.Ce=l,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ke=null,this.inForeground=!1,this.Fe=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()},!t.yt())throw new f(h.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new si(this,i),this.Le=n+"main",this.R=new Lr(a),this.Be=new lr(this.Le,11,new yi(this.R)),this.qe=new Zr(this.referenceDelegate,this.R),this.Ut=new Fr,this.Ue=function(t,e){return new hi(t,e)}(this.R,this.Ut),this.Ke=new Cr,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===l&&_("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.je().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new f(h.FAILED_PRECONDITION,gi);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.qe.getHighestSequenceNumber(e)}))})).then((function(e){t.Ne=new d(e,t.De)})).then((function(){t.xe=!0})).catch((function(e){return t.Be&&t.Be.close(),Promise.reject(e)}))},t.prototype.He=function(t){var e=this;return this.Me=function(i){return Object(r.b)(e,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return this.started?[2,t(i)]:[2]}))}))},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt((function(i){return Object(r.b)(e,void 0,void 0,(function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return null===i.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget((function(){return Object(r.b)(e,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return Mi(e).put(new nr(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Je(e).next((function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable((function(){return t.Me(!1)})))}))})).next((function(){return t.Ye(e)})).next((function(n){return t.isPrimary&&!n?t.Xe(e).next((function(){return!1})):!!n&&t.Ze(e).next((function(){return!0}))}))})).catch((function(e){if(pr(e))return y("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return y("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Se.enqueueRetryable((function(){return t.Me(e)})),t.isPrimary=e}))},t.prototype.Je=function(t){var e=this;return wi(t).get(Wn.key).next((function(t){return ur.resolve(e.tn(t))}))},t.prototype.en=function(t){return Mi(t).delete(this.clientId)},t.prototype.nn=function(){return Object(r.b)(this,void 0,void 0,(function(){var t,e,n,i,o=this;return Object(r.d)(this,(function(r){switch(r.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(t){var e=wr(t,nr.store);return e.Nt().next((function(t){var n=o.rn(t,18e5),r=t.filter((function(t){return-1===n.indexOf(t)}));return ur.forEach(r,(function(t){return e.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(t=r.sent(),this.Qe)for(e=0,n=t;en&&(_("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fe=function(){t.Se.enqueueAndForget((function(){return t.inForeground="visible"===t.document.visibilityState,t.je()}))},this.document.addEventListener("visibilitychange",this.Fe),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.Fe&&(this.document.removeEventListener("visibilitychange",this.Fe),this.Fe=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.ke=function(){e.un(),Object(o.q)()&&navigator.appVersion.match("Version/14")&&e.Se.enterRestrictedMode(!0),e.Se.enqueueAndForget((function(){return e.shutdown()}))},this.window.addEventListener("pagehide",this.ke))},t.prototype.hn=function(){this.ke&&(this.window.removeEventListener("pagehide",this.ke),this.ke=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Qe)||void 0===e?void 0:e.getItem(this.on(t)));return y("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return _("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}catch(t){_("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function wi(t){return wr(t,Wn.store)}function Mi(t){return wr(t,nr.store)}function Ti(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var Si=function(t,e){this.progress=t,this.wn=e},Li=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next((function(r){return n.yn(t,e,r)}))},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next((function(t){for(var e=0,r=n;e0)},t.prototype.Dn=function(t,e){return v()<=c.a.DEBUG&&y("QueryEngine","Using full collection scan to execute query:",Kt(e)),this.Sn.getDocumentsMatchingQuery(t,e,E.min())},t}(),Oi=function(){function t(t,e,n,r){this.persistence=t,this.xn=e,this.R=r,this.kn=new Ce(q),this.Fn=new ci((function(t){return _t(t)}),gt),this.$n=E.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new Li(this.On,this._n,this.persistence.getIndexManager()),this.Ke=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.collect(n,e.kn)}))},t}();function Ai(t,e,n,r){return new Oi(t,e,n,r)}function ji(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=L(t),i=n._n,o=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",(function(t){var r;return n._n.getAllMutationBatches(t).next((function(s){return r=s,i=n.persistence.getMutationQueue(e),o=new Li(n.On,i,n.persistence.getIndexManager()),i.getAllMutationBatches(t)})).next((function(e){for(var n=[],i=[],s=qe(),u=0,a=r;u0){var c=u.withResumeToken(a,r).withSequenceNumber(t.currentSequenceNumber);i=i.insert(o,c),function(t,e,n){return S(e.resumeToken.approximateByteSize()>0),0===t.resumeToken.approximateByteSize()||e.snapshotVersion.toMicroseconds()-t.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(u,c,e)&&s.push(n.qe.updateTargetData(t,c))}}}));var u=Ve();if(e.documentUpdates.forEach((function(r,i){e.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(t,r))})),s.push(Ii(t,o,e.documentUpdates,r,void 0).next((function(t){u=t}))),!r.isEqual(E.min())){var a=n.qe.getLastRemoteSnapshotVersion(t).next((function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,r)}));s.push(a)}return ur.waitFor(s).next((function(){return o.apply(t)})).next((function(){return n.Mn.En(t,u)})).next((function(){return u}))})).then((function(t){return n.kn=i,t}))}function Ii(t,e,n,r,i){var o=qe();return n.forEach((function(t){return o=o.add(t)})),e.getEntries(t,o).next((function(t){var o=Ve();return n.forEach((function(n,s){var u=t.get(n),a=(null==i?void 0:i.get(n))||r;s.isNoDocument()&&s.version.isEqual(E.min())?(e.removeEntry(n,a),o=o.insert(n,s)):!u.isValidDocument()||s.version.compareTo(u.version)>0||0===s.version.compareTo(u.version)&&u.hasPendingWrites?(e.addEntry(s,a),o=o.insert(n,s)):y("LocalStore","Ignoring outdated watch update for ",n,". Current version:",u.version," Watch version:",s.version)})),o}))}function xi(t,e){var n=L(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)}))}function Ci(t,e){var n=L(t);return n.persistence.runTransaction("Allocate target","readwrite",(function(t){var r;return n.qe.getTargetData(t,e).next((function(i){return i?(r=i,ur.resolve(r)):n.qe.allocateTargetId(t).next((function(i){return r=new Sr(e,i,0,t.currentSequenceNumber),n.qe.addTargetData(t,r).next((function(){return r}))}))}))})).then((function(t){var r=n.kn.get(t.targetId);return(null===r||t.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.kn=n.kn.insert(t.targetId,t),n.Fn.set(e,t.targetId)),t}))}function Ni(t,e,i){return Object(r.b)(this,void 0,void 0,(function(){var n,o,s,u;return Object(r.d)(this,(function(r){switch(r.label){case 0:n=L(t),o=n.kn.get(e),s=i?"readwrite":"readwrite-primary",r.label=1;case 1:return r.trys.push([1,4,,5]),i?[3,3]:[4,n.persistence.runTransaction("Release target",s,(function(t){return n.persistence.referenceDelegate.removeTarget(t,o)}))];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:if(!pr(u=r.sent()))throw u;return y("LocalStore","Failed to update sequence numbers for target "+e+": "+u),[3,5];case 5:return n.kn=n.kn.remove(e),n.Fn.delete(o.target),[2]}}))}))}function Hi(t,e,n){var r=L(t),i=E.min(),o=qe();return r.persistence.runTransaction("Execute query","readonly",(function(t){return function(t,e,n){var r=L(t),i=r.Fn.get(n);return void 0!==i?ur.resolve(r.kn.get(i)):r.qe.getTargetData(e,n)}(r,t,Ut(e)).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(t,e.targetId).next((function(t){o=t}))})).next((function(){return r.xn.getDocumentsMatchingQuery(t,e,n?i:E.min(),n?o:qe())})).next((function(t){return{documents:t,Bn:o}}))}))}function Ri(t,e){var n=L(t),r=L(n.qe),i=n.kn.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.lt(t,e).next((function(t){return t?t.target:null}))}))}function Bi(t){var e=L(t);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return function(t,e,n){var r=L(t),i=Ve(),o=Or(n),s=mi(e),u=IDBKeyRange.lowerBound(o,!0);return s.$t({index:Xn.readTimeIndex,range:u},(function(t,e){var n=kr(r.R,e);i=i.insert(n.key,n),o=e.readTime})).next((function(){return{wn:i,readTime:Ar(o)}}))}(e.On,t,e.$n)})).then((function(t){var n=t.wn,r=t.readTime;return e.$n=r,n}))}function Fi(t){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.d)(this,(function(n){return[2,(e=L(t)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return function(t){var e=mi(t),n=E.min();return e.$t({index:Xn.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=Ar(e.readTime)),r.done()})).next((function(){return n}))}(t)})).then((function(t){e.$n=t}))]}))}))}function Vi(t,e,i,n){return Object(r.b)(this,void 0,void 0,(function(){var o,s,u,a,c,l,d,h,f,p;return Object(r.d)(this,(function(r){switch(r.label){case 0:for(o=L(t),s=qe(),u=Ve(),a=ze(),c=0,l=i;c=0)return o.Ke.saveNamedQuery(t,e);var s=n.withResumeToken(B.EMPTY_BYTE_STRING,r);return o.kn=o.kn.insert(s.targetId,s),o.qe.updateTargetData(t,s).next((function(){return o.qe.removeMatchingKeysForTargetId(t,n.targetId)})).next((function(){return o.qe.addMatchingKeys(t,i,n.targetId)})).next((function(){return o.Ke.saveNamedQuery(t,e)}))}))]}}))}))}var Wi=function(){function t(t){this.R=t,this.Qn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return ur.resolve(this.Qn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Qn.set(e.id,{id:(n=e).id,version:n.version,createTime:fn(n.createTime)}),ur.resolve()},t.prototype.getNamedQuery=function(t,e){return ur.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,function(t){return{name:t.name,query:xr(t.bundledQuery),readTime:fn(t.readTime)}}(e)),ur.resolve()},t}(),Ui=function(){function t(){this.Wn=new Re(zi.Gn),this.zn=new Re(zi.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new zi(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach((function(t){return n.addReference(t,e)}))},t.prototype.removeReference=function(t,e){this.Yn(new zi(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach((function(t){return n.removeReference(t,e)}))},t.prototype.Zn=function(t){var e=this,n=new J(new C([])),r=new zi(n,t),i=new zi(n,t+1),o=[];return this.zn.forEachInRange([r,i],(function(t){e.Yn(t),o.push(t.key)})),o},t.prototype.ts=function(){var t=this;this.Wn.forEach((function(e){return t.Yn(e)}))},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new J(new C([])),n=new zi(e,t),r=new zi(e,t+1),i=qe();return this.zn.forEachInRange([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.containsKey=function(t){var e=new zi(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),zi=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return J.comparator(t.key,e.key)||q(t.ns,e.ns)},t.Hn=function(t,e){return q(t.ns,e.ns)||J.comparator(t.key,e.key)},t}(),$i=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new Re(zi.Gn)}return t.prototype.checkEmpty=function(t){return ur.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,r){var i=this.ss;this.ss++,this._n.length>0&&this._n[this._n.length-1];var o=new Mr(i,e,n,r);this._n.push(o);for(var s=0,u=r;si?this._n[i]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return ur.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return ur.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new zi(e,0),i=new zi(e,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],(function(t){var e=n.os(t.ns);o.push(e)})),ur.resolve(o)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new Re(q);return e.forEach((function(t){var e=new zi(t,0),i=new zi(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,i],(function(t){r=r.add(t.ns)}))})),ur.resolve(this.us(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,r=n.length+1,i=n;J.isDocumentKey(i)||(i=i.child(""));var o=new zi(new J(i),0),s=new Re(q);return this.rs.forEachWhile((function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(s=s.add(t.ns)),!0)}),o),ur.resolve(this.us(s))},t.prototype.us=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.os(t);null!==r&&n.push(r)})),n},t.prototype.removeMutationBatch=function(t,e){var n=this;S(0===this.hs(e.batchId,"removed")),this._n.shift();var r=this.rs;return ur.forEach(e.mutations,(function(i){var o=new zi(i.key,e.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(t,i.key)})).next((function(){n.rs=r}))},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new zi(e,0),r=this.rs.firstAfterOrEqual(n);return ur.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return this._n.length,ur.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),qi=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new Ce(J.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.ls(e);return this.docs=this.docs.insert(r,{document:e.clone(),size:s,readTime:n}),this.size+=s-o,this.Ut.addToCollectionParentIndex(t,r.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return ur.resolve(n?n.document.clone():mt.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,r=Ve();return e.forEach((function(t){var e=n.docs.get(t);r=r.insert(t,e?e.document.clone():mt.newInvalidDocument(t))})),ur.resolve(r)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var r=Ve(),i=new J(e.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var s=o.getNext(),u=s.key,a=s.value,c=a.document,l=a.readTime;if(!e.path.isPrefixOf(u.path))break;l.compareTo(n)<=0||Xt(e,c)&&(r=r.insert(c.key,c.clone()))}return ur.resolve(r)},t.prototype.fs=function(t,e){return ur.forEach(this.docs,(function(t){return e(t)}))},t.prototype.newChangeBuffer=function(t){return new Ki(this)},t.prototype.getSize=function(t){return ur.resolve(this.size)},t}(),Ki=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return Object(r.c)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];return this.changes.forEach((function(r,i){i.document.isValidDocument()?n.push(e.Ie.addEntry(t,i.document,e.getReadTime(r))):e.Ie.removeEntry(r)})),ur.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(di),Xi=function(){function t(t){this.persistence=t,this.ds=new ci((function(t){return _t(t)}),gt),this.lastRemoteSnapshotVersion=E.min(),this.highestTargetId=0,this.ws=0,this._s=new Ui,this.targetCount=0,this.ys=Qr.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach((function(t,n){return e(n)})),ur.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return ur.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return ur.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),ur.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),ur.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new Qr(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,ur.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),ur.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,ur.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return this.ds.forEach((function(s,u){u.sequenceNumber<=e&&null===n.get(u.targetId)&&(r.ds.delete(s),o.push(r.removeMatchingKeysForTargetId(t,u.targetId)),i++)})),ur.waitFor(o).next((function(){return i}))},t.prototype.getTargetCount=function(t){return ur.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return ur.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),ur.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach((function(e){i.push(r.markPotentiallyOrphaned(t,e))})),ur.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),ur.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return ur.resolve(n)},t.prototype.containsKey=function(t,e){return ur.resolve(this._s.containsKey(e))},t}(),Ji=function(){function t(t,e){var n=this;this.gs={},this.Ne=new d(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new Xi(this),this.Ut=new Rr,this.Ue=function(t,e){return new qi(t,(function(t){return n.referenceDelegate.ps(t)}))}(this.Ut),this.R=new Lr(e),this.Ke=new Wi(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new $i(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var r=this;y("MemoryPersistence","Starting transaction:",t);var i=new Qi(this.Ne.next());return this.referenceDelegate.Es(),n(i).next((function(t){return r.referenceDelegate.Ts(i).next((function(){return t}))})).toPromise().then((function(t){return i.raiseOnCommittedEvent(),t}))},t.prototype.Is=function(t,e){return ur.or(Object.values(this.gs).map((function(n){return function(){return n.containsKey(t,e)}})))},t}(),Qi=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return Object(r.c)(e,t),e}(sr),Zi=function(){function t(t){this.persistence=t,this.As=new Ui,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw T()},enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),ur.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),ur.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),ur.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach((function(t){return n.vs.add(t.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(t,e.targetId).next((function(t){t.forEach((function(t){return n.vs.add(t.toString())}))})).next((function(){return r.removeTargetData(t,e)}))},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ur.forEach(this.vs,(function(r){var i=J.fromPath(r);return e.Ps(t,i).next((function(t){t||n.removeEntry(i)}))})).next((function(){return e.Rs=null,n.apply(t)}))},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next((function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())}))},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return ur.or([function(){return ur.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),to=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function eo(t,e){return"firestore_clients_"+t+"_"+e}function no(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(r+="_"+e.uid),r}function ro(t,e){return"firestore_targets_"+t+"_"+e}to.UNAUTHENTICATED=new to(null),to.GOOGLE_CREDENTIALS=new to("google-credentials-uid"),to.FIRST_PARTY=new to("first-party-uid"),to.MOCK_USER=new to("mock-user");var io=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vs=function(e,n,r){var i,o=JSON.parse(r),s="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return s&&o.error&&(s="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new f(o.error.code,o.error.message)),s?new t(e,n,o.state,i):(_("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Ss=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}(),oo=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=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 f(i.error.code,i.error.message)),o?new t(e,i.state,r):(_("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=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}(),ao=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Xe(),s=0;i&&s0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var u=function(t){var e=t.toLowerCase().replace(/_/g,"-");return Object.values(h).indexOf(e)>=0?e:h.UNKNOWN}(r.status);o(new f(u,r.message))}else o(new f(h.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new f(h.UNAVAILABLE,"Connection failed."));break;default:T()}}finally{y("Connection",'RPC "'+t+'" completed.')}}));var u=JSON.stringify(r);s.send(e,"POST",u,n,15)}))},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=Object(l.h)(),i=Object(l.i)(),c={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(c.xmlHttpFactory=new l.d({})),this.ki(c.initMessageHeaders,e),Object(o.n)()||Object(o.p)()||Object(o.l)()||Object(o.m)()||Object(o.r)()||Object(o.k)()||(c.httpHeadersOverwriteParam="$httpHeaders");var d=n.join("");y("Connection","Creating WebChannel: "+d,c);var m=r.createWebChannel(d,c),p=!1,v=!1,_=new mo({Ei:function(t){v?y("Connection","Not sending because WebChannel is closed:",t):(p||(y("Connection","Opening WebChannel transport."),m.open(),p=!0),y("Connection","WebChannel sending:",t),m.send(t))},Ti:function(){return m.close()}}),M=function(t,e,n){t.listen(e,(function(t){try{n(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return M(m,l.f.EventType.OPEN,(function(){v||y("Connection","WebChannel transport opened.")})),M(m,l.f.EventType.CLOSE,(function(){v||(v=!0,y("Connection","WebChannel transport closed"),_.Vi())})),M(m,l.f.EventType.ERROR,(function(t){v||(v=!0,w("Connection","WebChannel transport errored:",t),_.Vi(new f(h.UNAVAILABLE,"The operation could not be completed")))})),M(m,l.f.EventType.MESSAGE,(function(t){var e;if(!v){var n=t.data[0];S(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){y("Connection","WebChannel received error:",i);var o=i.status,s=function(t){var e=Ae[t];if(void 0!==e)return xe(e)}(o),u=i.message;void 0===s&&(s=h.INTERNAL,u="Unknown error status: "+o+" with message "+i.message),v=!0,_.Vi(new f(s,u)),m.close()}else y("Connection","WebChannel received:",n),_.Si(n)}})),M(i,l.b.STAT_EVENT,(function(t){t.stat===l.e.PROXY?y("Connection","Detected buffering proxy"):t.stat===l.e.NOPROXY&&y("Connection","Detected no buffering proxy")})),setTimeout((function(){_.Pi()}),0),_},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId;var e=t.ssl?"https":"http";this.Di=e+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,r){var i=this.xi(t,e);y("RestConnection","Sending: ",i,n);var o={};return this.ki(o,r),this.Fi(t,i,o,n).then((function(t){return y("RestConnection","Received: ",t),t}),(function(e){throw w("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.$i=function(t,e,n,r){return this.Ni(t,e,n,r)},t.prototype.ki=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.10.0",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){var n=po[t];return this.Di+"/v1/"+e+":"+n},t}());function yo(){return"undefined"!=typeof window?window:null}function _o(){return"undefined"!=typeof document?document:null}function go(t){return new cn(t,!0)}var bo=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.Se=t,this.timerId=e,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Qi=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Ki),i=Math.max(0,n-r);i>0&&y("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,(function(){return e.Ki=Date.now(),t()})),this.qi*=this.Li,this.qithis.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),wo=function(){function t(t,e,n,r,i,o){this.Se=t,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new bo(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,(function(){return t.rr()})))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return this.er()?[2,this.close(0)]:[2]}))}))},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===h.RESOURCE_EXHAUSTED?(_(e.toString()),_("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):e&&e.code===h.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then((function(e){t.Yi===n&&t.lr(e)}),(function(n){e((function(){var e=new f(h.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)}))}))},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii((function(){n((function(){return e.state=2,e.listener.Ii()}))})),this.stream.Ri((function(t){n((function(){return e.dr(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji((function(){return Object(r.b)(t,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.dr=function(t){return y("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget((function(){return e.Yi===t?n():(y("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Mo=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,s}return Object(r.c)(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.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:T()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.I?(S(void 0===e||"string"==typeof e),B.fromBase64String(e||"")):(S(void 0===e||e instanceof Uint8Array),B.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),s=(u=e.targetChange.cause)&&function(t){var e=void 0===t.code?h.UNKNOWN:xe(t.code);return new f(e,t.message||"")}(u);n=new en(r,i,o,s||null)}else if("documentChange"in e){e.documentChange,(r=e.documentChange).document,r.document.name,r.document.updateTime,i=yn(t,r.document.name),o=fn(r.document.updateTime);var u=new ft({mapValue:{fields:r.document.fields}}),a=(s=mt.newFoundDocument(i,o,u),r.targetIds||[]),c=r.removedTargetIds||[];n=new Ze(a,c,s.key,s)}else if("documentDelete"in e)e.documentDelete,(r=e.documentDelete).document,i=yn(t,r.document),o=r.readTime?fn(r.readTime):E.min(),u=mt.newNoDocument(i,o),s=r.removedTargetIds||[],n=new Ze([],s,u.key,u);else if("documentRemove"in e)e.documentRemove,(r=e.documentRemove).document,i=yn(t,r.document),o=r.removedTargetIds||[],n=new Ze([],o,i,null);else{if(!("filter"in e))return T();e.filter;var l=e.filter;l.targetId,r=l.count||0,i=new Pe(r),o=l.targetId,n=new tn(o,i)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return E.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?E.min():e.readTime?fn(e.readTime):E.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e={};e.database=bn(this.R),e.addTarget=function(t,e){var n,r=e.target;return(n=bt(r)?{documents:kn(t,r)}:{query:Dn(t,r)}).targetId=e.targetId,e.resumeToken.approximateByteSize()>0?n.resumeToken=dn(t,e.resumeToken):e.snapshotVersion.compareTo(E.min())>0&&(n.readTime=ln(t,e.snapshotVersion.toTimestamp())),n}(this.R,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 T()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(this.R,t);n&&(e.labels=n),this.cr(e)},e.prototype.yr=function(t){var e={};e.database=bn(this.R),e.removeTarget=t,this.cr(e)},e}(wo),To=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,s.gr=!1,s}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(S(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=function(t,e){return t&&t.length>0?(S(void 0!==e),t.map((function(t){return function(t,e){var n=t.updateTime?fn(t.updateTime):fn(e);return n.isEqual(E.min())&&(n=fn(e)),new me(n,t.transformResults||[])}(t,e)}))):[]}(t.writeResults,t.commitTime),n=fn(t.commitTime);return this.listener.Tr(n,e)}return S(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=bn(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return Sn(e.R,t)}))};this.cr(n)},e}(wo),So=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Hi=n,i.R=r,i.Rr=!1,i}return Object(r.c)(e,t),e.prototype.br=function(){if(this.Rr)throw new f(h.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Ni(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===h.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new f(h.UNKNOWN,t.toString())}))},e.prototype.$i=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.$i(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===h.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new f(h.UNKNOWN,t.toString())}))},e.prototype.terminate=function(){this.Rr=!0},e}((function(){})),Lo=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()})))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.kr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.kr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=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.Vr?(_(e),this.Vr=!1):y("OnlineStateTracker",e)},t.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),ko=function(t,e,i,n,s){var u=this;this.localStore=t,this.datastore=e,this.asyncQueue=i,this.remoteSyncer={},this.Fr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=s,this.Lr.di((function(t){i.enqueueAndForget((function(){return Object(r.b)(u,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return xo(this)?(y("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.d)(this,(function(n){switch(n.label){case 0:return(e=L(t)).Or.add(4),[4,Oo(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,Do(e)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))})),this.Br=new Lo(i,n)};function Do(t){return Object(r.b)(this,void 0,void 0,(function(){var e,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:if(!xo(t))return[3,4];e=0,n=t.Mr,r.label=1;case 1:return e0}function xo(t){return 0===L(t).Or.size}function Co(t){t.qr=void 0}function No(t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return t.$r.forEach((function(e,n){Eo(t,e)})),[2]}))}))}function Ho(t,e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(n){return Co(t),Io(t)?(t.Br.Nr(e),Po(t)):t.Br.set("Unknown"),[2]}))}))}function Ro(t,e,i){return Object(r.b)(this,void 0,void 0,(function(){var n,s,u;return Object(r.d)(this,(function(a){switch(a.label){case 0:if(t.Br.set("Online"),!(e instanceof en&&2===e.state&&e.cause))return[3,6];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,function(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s;return Object(r.d)(this,(function(r){switch(r.label){case 0:n=e.cause,i=0,o=e.targetIds,r.label=1;case 1:return i=0?[4,function(t,e){var n=t.qr.ut(e);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=t.$r.get(r);i&&t.$r.set(r,i.withResumeToken(n.resumeToken,e))}})),n.targetMismatches.forEach((function(e){var n=t.$r.get(e);if(n){t.$r.set(e,n.withResumeToken(B.EMPTY_BYTE_STRING,n.snapshotVersion)),Yo(t,e);var r=new Sr(n.target,e,1,n.sequenceNumber);Eo(t,r)}})),t.remoteSyncer.applyRemoteEvent(n)}(t,i)]:[3,10];case 9:a.sent(),a.label=10;case 10:return[3,13];case 11:return y("RemoteStore","Failed to raise snapshot:",u=a.sent()),[4,Bo(t,u)];case 12:return a.sent(),[3,13];case 13:return[2]}}))}))}function Bo(t,e,i){return Object(r.b)(this,void 0,void 0,(function(){var n=this;return Object(r.d)(this,(function(s){switch(s.label){case 0:if(!pr(e))throw e;return t.Or.add(1),[4,Oo(t)];case 1:return s.sent(),t.Br.set("Offline"),i||(i=function(){return Yi(t.localStore)}),t.asyncQueue.enqueueRetryable((function(){return Object(r.b)(n,void 0,void 0,(function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return y("RemoteStore","Retrying IndexedDB access"),[4,i()];case 1:return e.sent(),t.Or.delete(1),[4,Do(t)];case 2:return e.sent(),[2]}}))}))})),[2]}}))}))}function Fo(t,e){return e().catch((function(n){return Bo(t,n,e)}))}function Vo(t){return Object(r.b)(this,void 0,void 0,(function(){var e,n,i,o,s;return Object(r.d)(this,(function(r){switch(r.label){case 0:e=L(t),n=Jo(e),i=e.Fr.length>0?e.Fr[e.Fr.length-1].batchId:-1,r.label=1;case 1:if(!function(t){return xo(t)&&t.Fr.length<10}(e))return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,xi(e.localStore,i)];case 3:return null===(o=r.sent())?(0===e.Fr.length&&n.ir(),[3,7]):(i=o.batchId,function(t,e){t.Fr.push(e);var n=Jo(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,o),[3,6]);case 4:return s=r.sent(),[4,Bo(e,s)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return Go(e)&&Wo(e),[2]}}))}))}function Go(t){return xo(t)&&!Jo(t).tr()&&t.Fr.length>0}function Wo(t){Jo(t).start()}function Uo(t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return Jo(t).Ar(),[2]}))}))}function zo(t){return Object(r.b)(this,void 0,void 0,(function(){var e,n,i,o;return Object(r.d)(this,(function(r){for(e=Jo(t),n=0,i=t.Fr;n0&&(y("RemoteStore","Stopping write stream with "+t.Fr.length+" pending writes"),t.Fr=[]),e.label=4;case 4:return[2]}}))}))}))),t.Kr}var Qo=function(){function t(t,e,n,r,i){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new br,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(t){}))}return t.createAndSchedule=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout((function(){return e.handleDelayElapsed()}),t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new f(h.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget((function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then((function(e){return t.deferred.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function Zo(t,e){if(_("AsyncQueue",e+": "+t),pr(t))return new f(h.UNAVAILABLE,e+": "+t);throw t}var ta=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||J.comparator(e.key,n.key)}:function(t,e){return J.comparator(t.key,e.key)},this.keyedMap=We(),this.sortedSet=new Ce(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r},t}(),ea=function(){function t(){this.Qr=new Ce(J.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Qr.get(e);n?0!==t.type&&3===n.type?this.Qr=this.Qr.insert(e,t):3===t.type&&1!==n.type?this.Qr=this.Qr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Qr=this.Qr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Qr=this.Qr.remove(e):1===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):T():this.Qr=this.Qr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Qr.inorderTraversal((function(e,n){t.push(n)})),t},t}(),na=function(){function t(t,e,n,r,i,o,s,u){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=u}return t.fromInitialDocuments=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,ta.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&$t(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r=0&&(s.listeners.splice(u,1),o=0===s.listeners.length),o?[2,(n.queries.delete(i),n.onUnlisten(i))]:[2]}))}))}function sa(t,e){for(var n=L(t),r=!1,i=0,o=e;i0)return!0;var e=this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites;return!(!t.syncStateChanged&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=na.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),da=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),ha=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return yn(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?Tn(this.R,t.document,!1):mt.newNoDocument(this.qn(t.metadata.name),this.Kn(t.metadata.readTime))},t.prototype.Kn=function(t){return fn(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=fa(t)}t.prototype.oo=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.co=function(t){for(var e=new Map,n=new ha(this.R),r=0,i=t;r0||c&&n.lo(d,c)<0)&&(u=!0)):!l&&d?(r.track({type:0,doc:d}),p=!0):l&&!d&&(r.track({type:1,doc:l}),p=!0,(a||c)&&(u=!0)),p&&(d?(s=s.add(d),o=f?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))})),Rt(this.query)||Bt(this.query))for(;s.size>this.query.limit;){var l=Rt(this.query)?s.last():s.first();s=s.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fo:s,mo:r,Nn:u,mutatedKeys:o}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this,i=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var o=t.mo.jr();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 T()}};return n(t)-n(e)}(t.type,e.type)||r.lo(t.doc,e.doc)})),this.po(n);var s=e?this.Eo():[],u=0===this.ho.size&&this.current?1:0,a=u!==this.ao;return this.ao=u,0!==o.length||a?{snapshot:new na(this.query,t.fo,i,o,t.mutatedKeys,0===u,a,!1),To:s}:{To:s}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new ea,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;t&&(t.addedDocuments.forEach((function(t){return e.uo=e.uo.add(t)})),t.modifiedDocuments.forEach((function(t){})),t.removedDocuments.forEach((function(t){return e.uo=e.uo.delete(t)})),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=qe(),this.fo.forEach((function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))}));var n=[];return e.forEach((function(e){t.ho.has(e)||n.push(new ma(e))})),this.ho.forEach((function(t){e.has(t)||n.push(new pa(t))})),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=qe();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return na.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),ya=function(t,e,n){this.query=t,this.targetId=e,this.view=n},_a=function(t){this.key=t,this.bo=!1},ga=function(){function t(t,e,n,r,i,o){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new ci((function(t){return qt(t)}),$t),this.Vo=new Map,this.So=new Set,this.Do=new Ce(J.comparator),this.Co=new Map,this.No=new Ui,this.xo={},this.ko=new Map,this.Fo=Qr.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function ba(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,u,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=Ka(t),(s=n.Po.get(e))?(i=s.targetId,n.sharedClientState.addLocalQueryTarget(i),o=s.view.Ro(),[3,4]):[3,1];case 1:return[4,Ci(n.localStore,Ut(e))];case 2:return u=r.sent(),a=n.sharedClientState.addLocalQueryTarget(u.targetId),i=u.targetId,[4,wa(n,e,i,"current"===a)];case 3:o=r.sent(),n.isPrimaryClient&&Ao(n.remoteStore,u),r.label=4;case 4:return[2,o]}}))}))}function wa(t,e,i,n){return Object(r.b)(this,void 0,void 0,(function(){var s,u,a,o,c,l;return Object(r.d)(this,(function(d){switch(d.label){case 0:return t.Oo=function(e,i,n){return function(t,e,i,n){return Object(r.b)(this,void 0,void 0,(function(){var o,s,u;return Object(r.d)(this,(function(r){switch(r.label){case 0:return(o=e.view._o(i)).Nn?[4,Hi(t.localStore,e.query,!1).then((function(t){var n=t.documents;return e.view._o(n,o)}))]:[3,2];case 1:o=r.sent(),r.label=2;case 2:return s=n&&n.targetChanges.get(e.targetId),u=e.view.applyChanges(o,t.isPrimaryClient,s),[2,(Ia(t,e.targetId,u.To),u.snapshot)]}}))}))}(t,e,i,n)},[4,Hi(t.localStore,e,!0)];case 1:return s=d.sent(),u=new va(e,s.Bn),a=u._o(s.documents),o=Qe.createSynthesizedTargetChangeForCurrentChange(i,n&&"Offline"!==t.onlineState),c=u.applyChanges(a,t.isPrimaryClient,o),Ia(t,i,c.To),l=new ya(e,i,u),[2,(t.Po.set(e,l),t.Vo.has(i)?t.Vo.get(i).push(e):t.Vo.set(i,[e]),c.snapshot)]}}))}))}function Ma(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=L(t),i=n.Po.get(e),(o=n.Vo.get(i.targetId)).length>1?[2,(n.Vo.set(i.targetId,o.filter((function(t){return!$t(t,e)}))),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(i.targetId),n.sharedClientState.isActiveQueryTarget(i.targetId)?[3,2]:[4,Ni(n.localStore,i.targetId,!1).then((function(){n.sharedClientState.clearQueryState(i.targetId),jo(n.remoteStore,i.targetId),Ya(n,i.targetId)})).catch(ni)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return Ya(n,i.targetId),[4,Ni(n.localStore,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}}))}))}function Ta(t,e,i){return Object(r.b)(this,void 0,void 0,(function(){var n,o,s,u;return Object(r.d)(this,(function(r){switch(r.label){case 0:n=Xa(t),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,function(t,e){var n,r=L(t),i=j.now(),o=e.reduce((function(t,e){return t.add(e.key)}),qe());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(t){return r.Mn.pn(t,o).next((function(o){n=o;for(var s=[],u=0,a=e;u0?r.bo=!0:t.modifiedDocuments.size>0?S(r.bo):t.removedDocuments.size>0&&(S(r.bo),r.bo=!1))})),[4,Na(n,i,e)];case 3:return r.sent(),[3,6];case 4:return[4,ni(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))}function La(t,e,n){var r=L(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach((function(t,n){var r=n.view.zr(e);r.snapshot&&i.push(r.snapshot)})),function(t,e){var n=L(t);n.onlineState=e;var r=!1;n.queries.forEach((function(t,n){for(var i=0,o=n.listeners;i0&&t.Do.size0)throw new f(h.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,u,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=L(t),i=bn(n.R)+"/documents",o={documents:e.map((function(t){return vn(n.R,t)}))},[4,n.$i("BatchGetDocuments",i,o)];case 1:return s=r.sent(),u=new Map,s.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){S(!!e.found),e.found.name,e.found.updateTime;var n=yn(t,e.found.name),r=fn(e.found.updateTime),i=new ft({mapValue:{fields:e.found.fields}});return mt.newFoundDocument(n,r,i)}(t,e):"missing"in e?function(t,e){S(!!e.missing),S(!!e.readTime);var n=yn(t,e.missing),r=fn(e.readTime);return mt.newNoDocument(n,r)}(t,e):T()}(n.R,t);u.set(e.key.toString(),e)})),a=[],[2,(e.forEach((function(t){var e=u.get(t.toString());S(!!e),a.push(e)})),a)]}}))}))}(this.datastore,t)];case 1:return[2,((e=n.sent()).forEach((function(t){return i.recordVersion(t)})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(t){this.lastWriteError=t}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new Ee(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return Object(r.b)(this,void 0,void 0,(function(){var t,e=this;return Object(r.d)(this,(function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=J.fromPath(n);e.mutations.push(new Ye(r,e.precondition(r)))})),[4,function(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=L(t),i=bn(n.R)+"/documents",o={writes:e.map((function(t){return Sn(n.R,t)}))},[4,n.Ni("Commit",i,o)];case 1:return r.sent(),[2]}}))}))}(this.datastore,this.mutations)];case 1:return i.sent(),this.committed=!0,[2]}}))}))},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw T();e=E.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new f(h.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?ve.updateTime(e):ve.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(E.min()))throw new f(h.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ve.updateTime(e)}return ve.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),rs=function(){function t(t,e,n,r){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new bo(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.ec-=1,this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji((function(){return Object(r.b)(t,void 0,void 0,(function(){var t,e,n=this;return Object(r.d)(this,(function(r){return t=new ns(this.datastore),(e=this.sc(t))&&e.then((function(e){n.asyncQueue.enqueueAndForget((function(){return t.commit().then((function(){n.deferred.resolve(e)})).catch((function(t){n.ic(t)}))}))})).catch((function(t){n.ic(t)})),[2]}))}))}))},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!$(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget((function(){return e.nc(),Promise.resolve()}))):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Ie(e)}return!1},t}(),is=function(){function t(t,e,i){var n=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=i,this.user=to.UNAUTHENTICATED,this.clientId=D.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,(function(t){return Object(r.b)(n,void 0,void 0,(function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return y("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}}))}))}))}return t.prototype.getConfiguration=function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]}))}))},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new f(h.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new br;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((function(){return Object(r.b)(t,void 0,void 0,(function(){var t,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=r.sent(),n=Zo(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}}))}))})),e.promise},t}();function os(t,e){return Object(r.b)(this,void 0,void 0,(function(){var i,n,s=this;return Object(r.d)(this,(function(u){switch(u.label){case 0:return t.asyncQueue.verifyOperationInProgress(),y("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return i=u.sent(),[4,e.initialize(i)];case 2:return u.sent(),n=i.initialUser,t.setCredentialChangeListener((function(t){return Object(r.b)(s,void 0,void 0,(function(){return Object(r.d)(this,(function(r){switch(r.label){case 0:return n.isEqual(t)?[3,2]:[4,ji(e.localStore,t)];case 1:r.sent(),n=t,r.label=2;case 2:return[2]}}))}))})),e.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t.offlineComponents=e,[2]}}))}))}function as(t,e){return Object(r.b)(this,void 0,void 0,(function(){var i,n;return Object(r.d)(this,(function(s){switch(s.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,ss(t)];case 1:return i=s.sent(),y("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return n=s.sent(),[4,e.initialize(i,n)];case 3:return s.sent(),t.setCredentialChangeListener((function(t){return function(t,e){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return(n=L(t)).asyncQueue.verifyOperationInProgress(),y("RemoteStore","RemoteStore received new credentials"),i=xo(n),n.Or.add(3),[4,Oo(n)];case 1:return r.sent(),i&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return r.sent(),n.Or.delete(3),[4,Do(n)];case 3:return r.sent(),[2]}}))}))}(e.remoteStore,t)})),t.onlineComponents=e,[2]}}))}))}function ss(t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(y("FirestoreClient","Using default OfflineComponentProvider"),[4,os(t,new Ja)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}}))}))}function us(t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(y("FirestoreClient","Using default OnlineComponentProvider"),[4,as(t,new ts)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}}))}))}function cs(t){return ss(t).then((function(t){return t.persistence}))}function ls(t){return ss(t).then((function(t){return t.localStore}))}function ds(t){return us(t).then((function(t){return t.remoteStore}))}function hs(t){return us(t).then((function(t){return t.syncEngine}))}function fs(t){return Object(r.b)(this,void 0,void 0,(function(){var e,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,us(t)];case 1:return e=r.sent(),[2,((n=e.eventManager).onListen=ba.bind(null,e.syncEngine),n.onUnlisten=Ma.bind(null,e.syncEngine),n)]}}))}))}function ps(t,e,i){var n=this;void 0===i&&(i={});var s=new br;return t.asyncQueue.enqueueAndForget((function(){return Object(r.b)(n,void 0,void 0,(function(){var n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=function(t,e,n,r,i){var o=new es({next:function(o){e.enqueueAndForget((function(){return aa(t,s)}));var u=o.docs.has(n);!u&&o.fromCache?i.reject(new f(h.UNAVAILABLE,"Failed to get document because the client is offline.")):u&&o.fromCache&&r&&"server"===r.source?i.reject(new f(h.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),s=new la(Ht(n.path),o,{includeMetadataChanges:!0,so:!0});return oa(t,s)},[4,fs(t)];case 1:return[2,n.apply(void 0,[r.sent(),t.asyncQueue,e,i,s])]}}))}))})),s.promise}function ms(t,e,i){var n=this;void 0===i&&(i={});var s=new br;return t.asyncQueue.enqueueAndForget((function(){return Object(r.b)(n,void 0,void 0,(function(){var n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=function(t,e,n,r,i){var o=new es({next:function(n){e.enqueueAndForget((function(){return aa(t,s)})),n.fromCache&&"server"===r.source?i.reject(new f(h.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),s=new la(n,o,{includeMetadataChanges:!0,so:!0});return oa(t,s)},[4,fs(t)];case 1:return[2,n.apply(void 0,[r.sent(),t.asyncQueue,e,i,s])]}}))}))})),s.promise}var vs=function(t,e,n,r,i,o,s,u){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=u},ys=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{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}(),_s=new Map,gs=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},bs=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable((function(){return e(to.UNAUTHENTICATED)}))},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),ws=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable((function(){return e(n.token.user)}))},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Ms=function(){function t(t){var e=this;this.currentUser=to.UNAUTHENTICATED,this.oc=new br,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){e.cc++,e.currentUser=e.ac(),e.oc.resolve(),e.changeListener&&e.asyncQueue.enqueueRetryable((function(){return e.changeListener(e.currentUser)}))};var n=function(t){y("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.auth.addAuthTokenListener(e.uc)};t.onInit((function(t){return n(t)})),setTimeout((function(){if(!e.auth){var r=t.getImmediate({optional:!0});r?n(r):(y("FirebaseCredentialsProvider","Auth not yet detected"),e.oc.resolve())}}),0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.cc!==e?(y("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(S("string"==typeof n.accessToken),new gs(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){var i=this;this.asyncQueue=t,this.asyncQueue.enqueueRetryable((function(){return Object(r.b)(i,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,e(this.currentUser)];case 2:return t.sent(),this.changeListener=e,[2]}}))}))}))},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},t.prototype.ac=function(){var t=this.auth&&this.auth.getUid();return S(null===t||"string"==typeof t),new to(t)},t}(),Ts=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=to.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.lc},e=this.hc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.fc&&(t["X-Goog-Iam-Authorization-Token"]=this.fc),t},enumerable:!1,configurable:!0}),t}(),Ss=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new Ts(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable((function(){return e(to.FIRST_PARTY)}))},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function Ls(t,e,n){if(!n)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function ks(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new f(h.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Ds(t,e,n,r){if(!0===e&&!0===r)throw new f(h.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function Os(t){if(!J.isDocumentKey(t))throw new f(h.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function As(t){if(J.isDocumentKey(t))throw new f(h.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function js(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":T()}function Es(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new f(h.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=js(t);throw new f(h.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function Ys(t,e){if(e<=0)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var Ps=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new f(h.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 f(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,Ds("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&&this.useFetchStreams===t.useFetchStreams},t}(),Is=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Ps({}),this._settingsFrozen=!1,t instanceof ys?(this._databaseId=t,this._credentials=new bs):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new f(h.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ys(t.options.projectId)}(t),this._credentials=new Ms(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new f(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new f(h.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._settings=new Ps(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new bs;switch(t.type){case"gapi":var e=t.client;return S(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Ss(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new f(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return this,(t=_s.get(this))&&(y("ComponentProvider","Removing Datastore"),_s.delete(this),t.terminate()),Promise.resolve();var t},t}(),xs=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ns(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),Cs=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),Ns=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,Ht(r))||this)._path=r,i.type="collection",i}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new xs(this.firestore,null,new J(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(Cs);function Hs(t,e){for(var n,i=[],c=2;c0&&this.Zi.ji((function(){return e.bc()})),n.label=5;case 5:return[2]}}))}))},t.prototype.Rc=function(t){var e=this,n=this.dc.then((function(){return e.gc=!0,t().catch((function(t){throw e.yc=t,e.gc=!1,_("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.gc=!1,t}))}));return this.dc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.Ac(),this.Tc.indexOf(t)>-1&&(e=0);var i=Qo.createAndSchedule(this,t,e,n,(function(t){return r.vc(t)}));return this.mc.push(i),i},t.prototype.Ac=function(){this.yc&&T()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Pc=function(){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(e){switch(e.label){case 0:return[4,t=this.dc];case 1:e.sent(),e.label=2;case 2:if(t!==this.dc)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.Vc=function(t){for(var e=0,n=this.mc;e90)throw new f(h.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new f(h.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return q(this._lat,t._lat)||q(this._long,t._long)},t}(),tu=/^__.*__$/,eu=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new Le(t,this.data,this.fieldMask,e,this.fieldTransforms):new Se(t,this.data,e,this.fieldTransforms)},t}(),nu=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new Le(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function ru(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw T()}}var iu=function(){function t(t,e,n,r,i,o){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Cc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),t.prototype.xc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.kc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.xc({path:n,Fc:!1});return r.$c(t),r},t.prototype.Oc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.xc({path:n,Fc:!1});return r.Cc(),r},t.prototype.Mc=function(t){return this.xc({path:void 0,Fc:!0})},t.prototype.Lc=function(t){return Su(t,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find((function(e){return t.isPrefixOf(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.isPrefixOf(e.field)}))},t.prototype.Cc=function(){if(this.path)for(var t=0;t=0;--v)if(!Lu(d,u[v])){var p=u[v],y=a[v];y=Object(o.h)(y);var _=s.Oc(p);if(y instanceof uu)d.push(p);else{var w=yu(y,_);null!=w&&(d.push(p),m.set(p,w))}}var g=new R(d);return new nu(m,g,s.fieldTransforms)}function vu(t,e,n,r){return void 0===r&&(r=!1),yu(n,t.Uc(r?4:3,e))}function yu(t,e){if(gu(t=Object(o.h)(t)))return bu("Unsupported field value:",e,t),_u(t,e);if(t instanceof Qs)return function(t,e){if(!ru(e.Nc))throw e.Lc(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.Lc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Fc&&4!==e.Nc)throw e.Lc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i0&&e.fieldMask.push(e.path):P(t,(function(t,r){var i=yu(r,e.kc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function gu(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof j||t instanceof Zs||t instanceof Js||t instanceof xs||t instanceof Qs)}function bu(t,e,n){if(!gu(n)||!function(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}(n)){var r=js(n);throw"an object"===r?e.Lc(t+" a custom object"):e.Lc(t+" "+r)}}function wu(t,e,n){if((e=Object(o.h)(e))instanceof Xs)return e._internalPath;if("string"==typeof e)return Tu(t,e);throw Su("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Mu=new RegExp("[~\\*/\\[\\]]");function Tu(t,e,n){if(e.search(Mu)>=0)throw Su("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(Xs.bind.apply(Xs,Object(r.f)([void 0],e.split(".")))))._internalPath}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.isEmpty(),s=void 0!==i,u="Function "+e+"() called with invalid data";n&&(u+=" (via `toFirestore()`)");var a="";return(o||s)&&(a+=" (found",o&&(a+=" in field "+r),s&&(a+=" in document "+i),a+=")"),new f(h.INVALID_ARGUMENT,(u+=". ")+t+a)}function Lu(t,e){return t.some((function(t){return t.isEqual(e)}))}var ku=function(){function t(t,e,n,r,i){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new xs(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new Du(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(Ou("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),Du=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(ku);function Ou(t,e){return"string"==typeof e?Tu(t,e):e instanceof Xs?e._internalPath:e._delegate._internalPath}var Au=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}(),ju=function(t){function e(e,n,r,i,o,s){var u=this;return(u=t.call(this,e,n,r,i,s)||this)._firestore=e,u._firestoreImpl=e,u.metadata=o,u}return Object(r.c)(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new Eu(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(Ou("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(ku),Eu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(ju),Yu=function(){function t(t,e,n,r){this._firestore=t,this._userDataWriter=e,this._snapshot=r,this.metadata=new Au(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._snapshot.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._snapshot.docs.forEach((function(r){t.call(e,new Eu(n._firestore,n._userDataWriter,r.key,r,new Au(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new f(h.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map((function(e){return{type:"added",doc:new Eu(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Au(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}}))}var r=t._snapshot.oldDocs;return t._snapshot.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var n=new Eu(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Au(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),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:Pu(e.type),doc:n,oldIndex:i,newIndex:o}}))}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function Pu(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return T()}}function Iu(t,e){return t instanceof ju&&e instanceof ju?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof Yu&&e instanceof Yu&&t._firestore===e._firestore&&Fs(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function xu(t){if(Bt(t)&&0===t.explicitOrderBy.length)throw new f(h.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Cu=function(){};function Nu(t){for(var e=[],n=1;n, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=Ft(t);null!==r&&zu(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 f(h.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new f(h.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,m),m}(t._query,0,e,t.firestore._databaseId,this.jc,this.Wc,this.Gc);return new Cs(t.firestore,t.converter,function(t,e){var n=t.filters.concat([e]);return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}(t._query,n))},e}(Cu),Ru=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jc=e,r.zc=n,r.type="orderBy",r}return Object(r.c)(e,t),e.prototype._apply=function(t){var e=function(t,e,n){if(null!==t.startAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Yt(e,n);return function(t,e){if(null===Ft(t)){var n=Vt(t);null!==n&&zu(t,n,e.field)}}(t,r),r}(t._query,this.jc,this.zc);return new Cs(t.firestore,t.converter,function(t,e){var n=t.explicitOrderBy.concat([e]);return new Ct(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(t._query,e))},e}(Cu),Bu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Hc=n,i.Jc=r,i}return Object(r.c)(e,t),e.prototype._apply=function(t){return new Cs(t.firestore,t.converter,zt(t._query,this.Hc,this.Jc))},e}(Cu),Fu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Yc=n,i.Xc=r,i}return Object(r.c)(e,t),e.prototype._apply=function(t){var e=Gu(t,this.type,this.Yc,this.Xc);return new Cs(t.firestore,t.converter,function(t,e){return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}(t._query,e))},e}(Cu),Vu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Yc=n,i.Xc=r,i}return Object(r.c)(e,t),e.prototype._apply=function(t){var e=Gu(t,this.type,this.Yc,this.Xc);return new Cs(t.firestore,t.converter,function(t,e){return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,e)}(t._query,e))},e}(Cu);function Gu(t,e,n,r){if(n[0]=Object(o.h)(n[0]),n[0]instanceof ku)return function(t,e,n,r,i){if(!r)throw new f(h.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,u=Wt(t);ss.length)throw new f(h.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 u=[],a=0;a10)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function zu(t,e,n){if(!n.isEqual(e))throw new f(h.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.")}var $u=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),Q(t)){case 0:return null;case 1:return t.booleanValue;case 2:return G(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(W(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw T()}},t.prototype.convertObject=function(t,e){var n=this,r={};return P(t.fields,(function(t,i){r[t]=n.convertValue(i,e)})),r},t.prototype.convertGeoPoint=function(t){return new Zs(G(t.latitude),G(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map((function(t){return n.convertValue(t,e)}))},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=U(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(z(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=V(t);return new j(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=C.fromString(t);S(Rn(n));var r=new ys(n.get(1),n.get(3)),i=new J(n.popFirst(5));return r.isEqual(e)||_("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),i},t}();function qu(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var Ku=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(r.c)(e,t),e.prototype.convertBytes=function(t){return new Js(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new xs(this.firestore,null,e)},e}($u),Xu=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=au(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var r=Ju(t,this._firestore),i=qu(r.converter,e,n),o=su(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,ve.none())),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new f(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function Ju(t,e){if((t=Object(o.h)(t)).firestore!==e)throw new f(h.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var Qu=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(r.c)(e,t),e.prototype.convertBytes=function(t){return new Js(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new xs(this.firestore,null,e)},e}($u);function Zu(t,e,n){for(var r=[],i=3;i=0)throw new f(h.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Cs(t,null,function(t){return new Ct(C.emptyPath(),t)}(e))}(this._delegate,t))}catch(t){throw mc(t,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e=this;return function(t,e){return function(t,e){var i=this,n=new br;return t.asyncQueue.enqueueAndForget((function(){return Object(r.b)(i,void 0,void 0,(function(){var o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,function(t){return us(t).then((function(t){return t.datastore}))}(t)];case 1:return o=r.sent(),new rs(t.asyncQueue,o,e,n).run(),[2]}}))}))})),n.promise}(zs(t),(function(n){return e(new rc(t,n))}))}(this._delegate,(function(n){return t(new dc(e,n))}))},t.prototype.batch=function(){var t=this;return zs(this._delegate),new hc(new Xu(this._delegate,(function(e){return ec(t._delegate,e)})))},t.prototype.loadBundle=function(t){throw new f(h.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new f(h.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),cc=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(r.c)(e,t),e.prototype.convertBytes=function(t){return new ac(new Js(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return pc.eu(e,this.firestore,null)},e}($u);function lc(t){var e;e=t,m.setLogLevel(e)}var dc=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new cc(t)}return t.prototype.get=function(t){var e=this,n=Sc(t);return this._delegate.get(n).then((function(t){return new _c(e._firestore,new ju(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))}))},t.prototype.set=function(t,e,n){var r=Sc(t);return n?(ks("Transaction.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var i,o=[],s=3;s0&&void 0!==arguments[0]?arguments[0]:"value",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return c.a.extend({name:"toggleable",model:{prop:e,event:n},props:Object(r.a)({},e,{required:!1}),data:function(){return{isActive:!!this[e]}},watch:(t={},Object(r.a)(t,e,(function(t){this.isActive=!!t})),Object(r.a)(t,"isActive",(function(t){!!t!==this[e]&&this.$emit(n,t)})),t)})}var d=l();e.a=d},,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return _r})),n.d(e,"b",(function(){return wr})),n.d(e,"c",(function(){return gr})),n.d(e,"d",(function(){return Tr})),n.d(e,"e",(function(){return Mr})),n.d(e,"f",(function(){return Sr})),n.d(e,"g",(function(){return Lr})),n.d(e,"h",(function(){return vr})),n.d(e,"i",(function(){return yr}));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)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},r(t,b)};function o(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=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:{},d=d||{},h=l||self;function f(){}function m(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 p(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var v="closure_uid_"+(1e9*Math.random()>>>0),y=0;function _(a,b,t){return a.call.apply(a.bind,arguments)}function w(a,b,t){if(!a)throw Error();if(2b?1:0}t:{var x=h.navigator;if(x){var C=x.userAgent;if(C){E=C;break t}}E=""}function N(a,b,t){for(var e in a)b.call(t,a[e],e,a)}function H(a){var b={};for(var t in a)b[t]=a[t];return b}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function B(a,b){for(var t,e,n=1;nparseFloat(J)){V=String(Z);break t}}V=J}var tt,et={};function nt(){return function(a){var b=et;return Object.prototype.hasOwnProperty.call(b,9)?b[9]:b[9]=a(9)}((function(){for(var a=0,b=Y(String(V)).split("."),t=Y("9").split("."),e=Math.max(b.length,t.length),n=0;0==a&&n>>0);function At(a){return"function"==typeof a?a:(a[Ot]||(a[Ot]=function(b){return a.handleEvent(b)}),a[Ot])}function jt(){S.call(this),this.i=new mt(this),this.P=this,this.I=null}function Et(a,b){var t,e=a.I;if(e)for(t=[];e;e=e.I)t.push(e);if(a=a.P,e=b.type||b,"string"==typeof b)b=new st(b,a);else if(b instanceof st)b.target=b.target||a;else{var n=b;B(b=new st(e,a),n)}if(n=!0,t)for(var r=t.length-1;0<=r;r--){var o=b.g=t[r];n=Yt(o,e,!0,b)&&n}if(n=Yt(o=b.g=a,e,!0,b)&&n,n=Yt(o,e,!1,b)&&n,t)for(r=0;rb.h&&(b.h++,a.next=b.g,b.g=a)}Ft=!1}function Wt(a,b){jt.call(this),this.h=a||1,this.g=b||h,this.j=q(this.kb,this),this.l=Date.now()}function Ut(a){a.da=!1,a.S&&(a.g.clearTimeout(a.S),a.S=null)}function zt(a,b,t){if("function"==typeof a)t&&(a=q(a,t));else{if(!a||"function"!=typeof a.handleEvent)throw Error("Invalid listener argument");a=q(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 o=1;ob.length?Se:(b=b.substr(e,t),a.C=e+t,b))}function je(a){a.Y=Date.now()+a.P,Ee(a,a.P)}function Ee(a,b){if(null!=a.B)throw Error("WatchDog timer not null");a.B=ce(q(a.eb,a),b)}function Ye(a){a.B&&(h.clearTimeout(a.B),a.B=null)}function Pe(a){0==a.l.G||a.I||rr(a.l,a)}function Ie(a){Ye(a);var b=a.L;b&&"function"==typeof b.na&&b.na(),a.L=null,Ut(a.W),Qt(a.V),a.g&&(b=a.g,a.g=null,b.abort(),b.na())}function xe(a,b){try{var t=a.l;if(0!=t.G&&(t.g==a||pn(t.i,a)))if(t.I=a.N,!a.J&&pn(t.i,a)&&3==t.G){try{var e=t.Ca.g.parse(b)}catch(r){e=null}if(Array.isArray(e)&&3==e.length){var n=e;if(0==n[0]){t:if(!t.u){if(t.g){if(!(t.g.F+3e3n[2]&&t.N&&0==t.A&&!t.v&&(t.v=ce(q(t.ab,t),6e3));if(1>=fn(t.i)&&t.ka){try{t.ka()}catch(r){}t.ka=void 0}}else or(t,11)}else if((a.J||t.g==a)&&nr(t),!j(b))for(n=t.Ca.g.parse(b),b=0;bt)&&(3!=t||z||this.g&&(this.h.h||this.g.ga()||Rn(this.g)))){this.I||4!=t||7==b||oe(8==b||0>=e?3:2),Ye(this);var n=this.g.ba();this.N=n;e:if(De(this)){var r=Rn(this.g);a="";var o=r.length,c=4==Hn(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){Ie(this),Pe(this);var l="";break e}this.h.i=new h.TextDecoder}for(b=0;bb)throw Error("Bad port number "+b);a.m=b}else a.m=null}function ze(a,b,t){b instanceof rn?(a.h=b,function(a,b){b&&!a.j&&(on(a),a.i=null,a.g.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(dd(this,e),sn(this,n,t))}),a)),a.j=b}(a.h,a.g)):(t||(b=Xe(b,en)),a.h=new rn(b,a.g))}function $e(a,b,t){a.h.set(b,t)}function qe(a){return $e(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),a}function Ke(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Xe(a,b,t){return"string"==typeof a?(a=encodeURI(a).replace(b,Je),t&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Je(a){return"%"+((a=a.charCodeAt(0))>>4&15).toString(16)+(15&a).toString(16)}Fe.prototype.toString=function(){var a=[],b=this.j;b&&a.push(Xe(b,Qe,!0),":");var t=this.i;return(t||"file"==b)&&(a.push("//"),(b=this.s)&&a.push(Xe(b,Qe,!0),"@"),a.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.m)&&a.push(":",String(t))),(t=this.l)&&(this.i&&"/"!=t.charAt(0)&&a.push("/"),a.push(Xe(t,"/"==t.charAt(0)?tn:Ze,!0))),(t=this.h.toString())&&a.push("?",t),(t=this.o)&&a.push("#",Xe(t,nn)),a.join("")};var Qe=/[#\/\?@]/g,Ze=/[#\?:]/g,tn=/[#\?]/g,en=/[#\?@]/g,nn=/#/g;function rn(a,b){this.h=this.g=null,this.i=a||null,this.j=!!b}function on(a){a.g||(a.g=new Ne,a.h=0,a.i&&function(a,b){if(a){a=a.split("&");for(var t=0;t2*a.i&&He(a)))}function an(a,b){return on(a),b=un(a,b),Re(a.g.h,b)}function sn(a,b,t){dd(a,b),0=a.j}function fn(a){return a.h?1:a.g?a.g.size:0}function pn(a,b){return a.h?a.h==b:!!a.g&&a.g.has(b)}function mn(a,b){a.g?a.g.add(b):a.h=b}function vn(a,b){a.h&&a.h==b?a.h=null:a.g&&a.g.has(b)&&a.g.delete(b)}function yn(a){var t,e;if(null!=a.h)return a.i.concat(a.h.D);if(null!=a.g&&0!==a.g.size){var b=a.i;try{for(var n=o(a.g.values()),r=n.next();!r.done;r=n.next()){var c=r.value;b=b.concat(c.D)}}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 A(a.i)}function _n(){}function gn(){this.g=new _n}function bn(a,b,t){var e=t||"";try{Ce(a,(function(t,n){var r=t;p(t)&&(r=Pt(t)),b.push(e+n+"="+encodeURIComponent(r))}))}catch(t){throw b.push(e+"type="+encodeURIComponent("_badmap")),t}}function wn(a,b,t,e,n){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,n(e)}catch(t){}}function Mn(a){this.l=a.$b||null,this.j=a.ib||!1}function Tn(a,b){jt.call(this),this.D=a,this.u=b,this.m=void 0,this.readyState=Sn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}ln.prototype.cancel=function(){var t,e;if(this.i=yn(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=o(this.g.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.g.clear()}},_n.prototype.stringify=function(a){return h.JSON.stringify(a,void 0)},_n.prototype.parse=function(a){return h.JSON.parse(a,void 0)},T(Mn,he),Mn.prototype.g=function(){return new Tn(this.l,this.j)},Mn.prototype.i=function(a){return function(){return a}}({}),T(Tn,jt);var Sn=0;function Ln(a){a.j.read().then(a.Sa.bind(a)).catch(a.ha.bind(a))}function td(a){a.readyState=4,a.l=null,a.j=null,a.A=null,kn(a)}function kn(a){a.onreadystatechange&&a.onreadystatechange.call(a)}(c=Tn.prototype).open=function(a,b){if(this.readyState!=Sn)throw this.abort(),Error("Error reopening a connection");this.C=a,this.B=b,this.readyState=1,kn(this)},c.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var b={headers:this.v,method:this.C,credentials:this.m,cache:void 0};a&&(b.body=a),(this.D||h).fetch(new Request(this.B,b)).then(this.Va.bind(this),this.ha.bind(this))},c.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,td(this)),this.readyState=Sn},c.Va=function(a){if(this.g&&(this.l=a,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=a.headers,this.readyState=2,kn(this)),this.g&&(this.readyState=3,kn(this),this.g)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==h.ReadableStream&&"body"in a){if(this.j=a.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Ln(this)}else a.text().then(this.Ua.bind(this),this.ha.bind(this))},c.Sa=function(a){if(this.g){if(this.u&&a.value)this.response.push(a.value);else if(!this.u){var b=a.value?a.value:new Uint8Array(0);(b=this.A.decode(b,{stream:!a.done}))&&(this.response=this.responseText+=b)}a.done?td(this):kn(this),3==this.readyState&&Ln(this)}},c.Ua=function(a){this.g&&(this.response=this.responseText=a,td(this))},c.Ta=function(a){this.g&&(this.response=a,td(this))},c.ha=function(){this.g&&td(this)},c.setRequestHeader=function(a,b){this.v.append(a,b)},c.getResponseHeader=function(a){return this.h&&this.h.get(a.toLowerCase())||""},c.getAllResponseHeaders=function(){if(!this.h)return"";for(var a=[],b=this.h.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(Tn.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(a){this.m=a?"include":"same-origin"}});var Dn=h.JSON.parse;function On(a){jt.call(this),this.headers=new Ne,this.u=a||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=An,this.K=this.L=!1}T(On,jt);var An="",jn=/^https?$/i,En=["POST","PUT"];function Yn(a){return"content-type"==a.toLowerCase()}function Pn(a,b){a.h=!1,a.g&&(a.l=!0,a.g.abort(),a.l=!1),a.j=b,a.m=5,In(a),Cn(a)}function In(a){a.D||(a.D=!0,Et(a,"complete"),Et(a,"error"))}function xn(a){if(a.h&&void 0!==d&&(!a.C[1]||4!=Hn(a)||2!=a.ba()))if(a.v&&4==Hn(a))zt(a.Fa,0,a);else if(Et(a,"readystatechange"),4==Hn(a)){a.h=!1;try{var t,e=a.ba();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.H).match(Be)[1]||null;if(!r&&h.self&&h.self.location){var o=h.self.location.protocol;r=o.substr(0,o.length-1)}n=!jn.test(r?r.toLowerCase():"")}t=n}if(t)Et(a,"complete"),Et(a,"success");else{a.m=6;try{var c=2(l-=r))r=Math.max(0,n[u].h-100),c=!1;else try{bn(d,o,"req"+l+"_")}catch(t){e&&e(d)}}if(c){e=o.join("&");break t}}return a=a.l.splice(0,t),b.D=a,e}function Jn(a){a.g||a.u||(a.Y=1,Bt(a.Ga,a),a.A=0)}function Qn(a){return!(a.g||a.u||3<=a.A)&&(a.Y++,a.u=ce(q(a.Ga,a),ir(a,a.A)),a.A++,!0)}function Zn(a){null!=a.B&&(h.clearTimeout(a.B),a.B=null)}function er(a){a.g=new be(a,a.h,"rpc",a.Y),null===a.o&&(a.g.H=a.s),a.g.O=0;var b=Ve(a.oa);$e(b,"RID","rpc"),$e(b,"SID",a.J),$e(b,"CI",a.N?"0":"1"),$e(b,"AID",a.U),Kn(a,b),$e(b,"TYPE","xmlhttp"),a.o&&a.s&&Bn(b,a.o,a.s),a.K&&a.g.setTimeout(a.K);var t=a.g;a=a.la,t.K=1,t.v=qe(Ve(b)),t.s=null,t.U=!0,ke(t,a)}function nr(a){null!=a.v&&(h.clearTimeout(a.v),a.v=null)}function rr(a,b){var t=null;if(a.g==b){nr(a),Zn(a),a.g=null;var e=2}else{if(!pn(a.i,b))return;t=b.D,vn(a.i,b),e=1}if(a.I=b.N,0!=a.G)if(b.i)if(1==e){t=b.s?b.s.length:0,b=Date.now()-b.F;var n=a.C;Et(e=re(),new ue(e,t,b,n)),$n(a)}else Jn(a);else if(3==(n=b.o)||0==n&&0=a.i.j-(a.m?1:0)||(a.m?(a.l=b.D.concat(a.l),0):1==a.G||2==a.G||a.C>=(a.Xa?0:a.Ya)||(a.m=ce(q(a.Ha,a,b),ir(a,a.C)),a.C++,0)))}(a,b)||2==e&&Qn(a)))switch(t&&0b?null:"string"==typeof a?a.charAt(b):a[b]}(n.T()),t=h.FormData&&a instanceof h.FormData,!(0<=k(En,b))||e||t||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n.forEach((function(t,e){this.g.setRequestHeader(e,t)}),this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Nn(this),0=this.O)){var a=2*this.O;this.h.info("BP detection timer enabled: "+a),this.B=ce(q(this.bb,this),a)}},c.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,se(10),Wn(this),er(this))},c.ab=function(){null!=this.v&&(this.v=null,Wn(this),Qn(this),se(19))},c.jb=function(a){a?(this.h.info("Successfully pinged google.com"),se(2)):(this.h.info("Failed to ping google.com"),se(1))},(c=cr.prototype).xa=function(){},c.wa=function(){},c.va=function(){},c.ua=function(){},c.Oa=function(){},lr.prototype.g=function(a,b){return new dr(a,b)},T(dr,jt),dr.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var a=this.g,b=this.l,t=this.h||void 0;a.Wa&&(a.h.info("Origin Trials enabled."),Bt(q(a.hb,a,b))),se(0),a.W=b,a.aa=t||{},a.N=a.X,a.F=sr(a,null,a.W),$n(a)},dr.prototype.close=function(){Gn(this.g)},dr.prototype.u=function(a){if("string"==typeof a){var b={};b.__data__=a,zn(this.g,b)}else this.v?((b={}).__data__=Pt(a),zn(this.g,b)):zn(this.g,a)},dr.prototype.M=function(){this.g.j=null,delete this.j,Gn(this.g),delete this.g,dr.Z.M.call(this)},T(fr,ye),T(pr,_e),T(mr,cr),mr.prototype.xa=function(){Et(this.g,"a")},mr.prototype.wa=function(a){Et(this.g,new fr(a))},mr.prototype.va=function(a){Et(this.g,new pr(a))},mr.prototype.ua=function(){Et(this.g,"b")},lr.prototype.createWebChannel=lr.prototype.g,dr.prototype.send=dr.prototype.u,dr.prototype.open=dr.prototype.m,dr.prototype.close=dr.prototype.close,le.NO_ERROR=0,le.TIMEOUT=8,le.HTTP_ERROR=6,de.COMPLETE="complete",pe.EventType=ve,ve.OPEN="a",ve.CLOSE="b",ve.ERROR="c",ve.MESSAGE="d",jt.prototype.listen=jt.prototype.N,On.prototype.listenOnce=On.prototype.O,On.prototype.getLastError=On.prototype.La,On.prototype.getLastErrorCode=On.prototype.Da,On.prototype.getStatus=On.prototype.ba,On.prototype.getResponseJson=On.prototype.Qa,On.prototype.getResponseText=On.prototype.ga,On.prototype.send=On.prototype.ea;var vr=function(){return new lr},yr=function(){return re()},_r=le,gr=de,wr=ee,Mr={rb:0,ub:1,vb:2,Ob:3,Tb:4,Qb:5,Rb:6,Pb:7,Nb:8,Sb:9,PROXY:10,NOPROXY:11,Lb:12,Hb:13,Ib:14,Gb:15,Jb:16,Kb:17,nb:18,mb:19,ob:20},Tr=Mn,Sr=pe,Lr=On}).call(this,n(85))},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(28);function o(t,e){if(e&&("object"===Object(r.a)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(42),o=n(43),c=function(){function t(){Object(r.a)(this,t),this.framework={}}return Object(o.a)(t,[{key:"init",value:function(t,e){}}]),t}()},function(t,e,n){"use strict";function r(t,p){return r=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},r(t,p)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}n.d(e,"a",(function(){return o}))},,,,,,,function(t,e,n){"use strict";n(16),n(14),n(11),n(6),n(19),n(10),n(20);var r=n(4),o=(n(532),n(102)),c=n(29),l=n(193),d=n(130),h=n(131),f=n(22),m=n(8);function v(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function y(t){for(var i=1;i=(null!=r?r:e.logLevel)&&t({level:c[n].toLowerCase(),message:d,args:o,type:e.name})}},r=0,o=l;r0&&void 0!==arguments[0]?arguments[0]:[];return o.a.extend({name:"positionable",props:t.length?Object(c.o)(l,t):l})}e.a=d()},function(t,e,n){"use strict";var r=n(154);e.a=r.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(156);var o=n(199),c=n(129);function l(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(c.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return T}));n(46),n(6),n(30),n(69),n(53),n(14),n(81),n(86),n(58),n(11),n(19),n(10),n(20);var r=n(4),o=n(33),c=(n(26),n(67),n(84),n(16),n(36),n(1));function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i16777215||isNaN(e))&&(Object(r.c)("'".concat(t,"' is not a valid rgb color")),e=16777215),e}function l(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function d(t){return l(c(t))}},,,,,,function(t,e,n){"use strict";n(16),n(14),n(11),n(6),n(19),n(10),n(20);var r=n(4),o=(n(489),n(84),n(36),n(26),n(55),n(3)),c=n.n(o),l=n(101),d=n(1);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function f(t){for(var i=1;i"],["manual-scroll",''],["clipped-left",""],["clipped-right",""],["inverted-scroll",""],["scroll-off-screen",""],["scroll-target",""],["scroll-threshold",""],["card",""]].forEach((function(e){var n=Object(r.a)(e,2),o=n[0],c=n[1];t.$attrs.hasOwnProperty(o)&&Object(h.a)(o,c,t)}))},methods:{genBackground:function(){var t={height:Object(d.h)(this.computedHeight),src:this.src},image=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(l.a,{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[image])},genContent:function(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(d.h)(this.computedContentHeight)}},Object(d.t)(this))},genExtension:function(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(d.h)(this.extensionHeight)}},Object(d.t)(this,"extension"))}},render:function(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;var e=[this.genContent()],data=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,data,e)}})},,,function(t,e,n){"use strict";n(16),n(14),n(19),n(10),n(20);var r=n(4),o=(n(25),n(11),n(6),n(50),n(26),n(67),n(36),n(557),n(79)),c=n(172),l=(n(559),n(29)),d=n(22),h=n(8),f=n(1),m=Object(h.a)(l.a,d.a).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(f.t)(this,"default",{message:t,key:e})||[t])}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),v=n(102),y=n(200),_=n(82);function w(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var M=Object(h.a)(v.a,y.a).extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return function(t){for(var i=1;i0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var t=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(e){if("string"==typeof e)return e;var n=e(t.internalValue);return"string"==typeof n?n:""})).filter((function(t){return""!==t})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=this["".concat(t,"Icon")],l="click:".concat(Object(f.x)(t)),d=!(!this.listeners$[l]&&!e),data=Object(_.a)({attrs:{"aria-label":d?Object(f.x)(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:d?{click:function(t){t.preventDefault(),t.stopPropagation(),n.$emit(l,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0},r);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--".concat(Object(f.x)(t)):void 0},[this.$createElement(o.a,data,c)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(f.h)(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(c.a,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;return this.showDetails?this.$createElement(m,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(e){return Object(f.t)(t,"message",e)}}}):null},genSlot:function(t,e,slot){if(!slot.length)return null;var n="".concat(t,"-").concat(e);return this.$createElement("div",{staticClass:"v-input__".concat(n),ref:n},slot)},genPrependSlot:function(){var slot=[];return this.$slots.prepend?slot.push(this.$slots.prepend):this.prependIcon&&slot.push(this.genIcon("prepend")),this.genSlot("prepend","outer",slot)},genAppendSlot:function(){var slot=[];return this.$slots.append?slot.push(this.$slots.append):this.appendIcon&&slot.push(this.genIcon("append")),this.genSlot("append","outer",slot)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});e.a=M},function(t,e,n){"use strict";function r(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}n.d(e,"a",(function(){return r}))},,,,function(t,e,n){"use strict";var r=n(28);n(6);function o(t,e,n){var r,o=null==(r=t._observe)?void 0:r[n.context._uid];o&&(o.observer.unobserve(t),delete t._observe[n.context._uid])}var c={inserted:function(t,e,n){if("undefined"!=typeof window&&"IntersectionObserver"in window){var c=e.modifiers||{},l=e.value,d="object"===Object(r.a)(l)?l:{handler:l,options:{}},h=d.handler,f=d.options,m=new IntersectionObserver((function(){var r,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0,f=null==(r=t._observe)?void 0:r[n.context._uid];if(f){var m=l.some((function(t){return t.isIntersecting}));!h||c.quiet&&!f.init||c.once&&!m&&!f.init||h(l,d,m),m&&c.once?o(t,e,n):f.init=!0}}),f);t._observe=Object(t._observe),t._observe[n.context._uid]={init:!1,observer:m},m.observe(t)}},unbind:o};e.a=c},,function(t,e,n){"use strict";n.d(e,"b",(function(){return gn})),n.d(e,"a",(function(){return P}));n(16),n(14),n(11),n(19),n(10),n(20);var r=n(40),o=n(4),c=(n(114),n(30),n(6),n(50),n(26),n(55),n(3)),l=n.n(c),d=n(139),h=n(476),f=n(247),m=n.n(f),v=n(134),y=n.n(v),_=(n(53),n(58),n(248)),w=n(99),M=n(5);"scrollRestoration"in window.history&&(Object(M.u)("manual"),window.addEventListener("beforeunload",(function(){Object(M.u)("auto")})),window.addEventListener("load",(function(){Object(M.u)("manual")})));function T(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:L,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(w.c)(t)),o(t,e,n)},n}var O={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,d=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var f=l[h]||d,m={};A.forEach((function(t){void 0!==f[t]&&(m[t]=f[t])}));var v={};j.forEach((function(t){"function"==typeof f[t]&&(v[t]=f[t].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===f.css){var _=v.leave;(!_||_.length<2)&&(v.leave=function(t,e){_&&_.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:m,on:v},[w])}},A=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],j=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],E={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},Y=(n(525),n(24)),P=Object(Y.a)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),n("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?n("p",{staticClass:"description"},[void 0===t.$route?n("a",{staticClass:"error-link",attrs:{href:"/"}}):n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logo"},[n("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[t._v("Nuxt")])])}],!1,null,null,null).exports,I=n(33),x=(n(92),{name:"Nuxt",components:{NuxtChild:O,NuxtError:P},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(M.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(I.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){l.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(P,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),C=(n(46),n(69),n(81),n(86),n(45),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),N=(n(526),Object(Y.a)(C,undefined,undefined,!1,null,null,null).exports),H=n(196),R={components:{authentication:H.a},created:function(){this.$store.dispatch("user/get")}},B=n(32),F=n.n(B),V=(n(562),n(22)),G=n(8);function W(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function U(t){for(var i=1;it.computedScrollThreshold&&t.thresholdMet()})))},thresholdMet:function(){}}}),At=n(52),jt=n(1);function Et(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Yt(t){for(var i=1;i0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll})},scrollRatio:function(){var t=this.computedScrollThreshold;return Math.max((t-this.currentScroll)/t,0)},computedContentHeight:function(){if(!this.shrinkOnScroll)return Mt.a.options.computed.computedContentHeight.call(this);var t=this.dense?48:56;return t+(this.computedOriginalHeight-t)*this.scrollRatio},computedFontSize:function(){if(this.isProminent){return 1.25+.25*this.scrollRatio}},computedLeft:function(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop:function(){return this.app?this.$vuetify.application.bar:0},computedOpacity:function(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight:function(){var t=Mt.a.options.computed.computedContentHeight.call(this);return this.isExtended&&(t+=parseInt(this.extensionHeight)),t},computedRight:function(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform:function(){if(!this.canScroll||this.elevateOnScroll&&0===this.currentScroll&&this.isActive)return 0;if(this.isActive)return 0;var t=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?t:-t},hideShadow:function(){return this.elevateOnScroll&&this.isExtended?this.currentScroll0:Mt.a.options.computed.isCollapsed.call(this)},isProminent:function(){return Mt.a.options.computed.isProminent.call(this)||this.shrinkOnScroll},styles:function(){return Yt(Yt({},Mt.a.options.computed.styles.call(this)),{},{fontSize:Object(jt.h)(this.computedFontSize,"rem"),marginTop:Object(jt.h)(this.computedMarginTop),transform:"translateY(".concat(Object(jt.h)(this.computedTransform),")"),left:Object(jt.h)(this.computedLeft),right:Object(jt.h)(this.computedRight)})}},watch:{canScroll:"onScroll",computedTransform:function(){this.canScroll&&(this.clippedLeft||this.clippedRight)&&this.callUpdate()},invertedScroll:function(t){this.isActive=!t||0!==this.currentScroll},hideOnScroll:function(t){this.isActive=!t||this.currentScrollthis.computedScrollThreshold:(this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight:function(t){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(!this.right&&t.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;var t=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(t)?this.$el.clientWidth:t},updateMiniVariant:function(t){this.miniVariant!==t&&this.$emit("update:mini-variant",t)}},render:function(t){var e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||Object(jt.t)(this,"img"))&&e.unshift(this.genBackground()),t(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}}),Kt=Object(Y.a)(wt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobileOrTablet?n("v-app-bar",{attrs:{color:"primary",app:"","hide-on-scroll":"",fixed:"",height:"56px"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between",align:"center"}},[n("v-app-bar-nav-icon",{on:{click:function(e){t.drawer=!0}}}),t._v(" "),n("img",{staticStyle:{"max-height":"40px"},attrs:{src:"https://itweb.co.za/static/webinars/stratuswebinar-edgecomputing/images/2020_06_23_01_05_ITWeb-Webinar_logo%20(1).png"}}),t._v(" "),n("div",{staticStyle:{width:"48px",height:"1px"}})],1)],1):t._e(),t._v(" "),t.isMobileOrTablet?n("v-navigation-drawer",{attrs:{app:"",clipped:""},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[n("v-row",{staticClass:"pa-2",attrs:{"no-gutters":""}}),t._v(" "),n("v-divider"),t._v(" "),n("v-list",{attrs:{dense:"",nav:""}},[t._l(t.webinar.menu.items,(function(e){return[e.children?n("v-list-group",{attrs:{"no-action":""},scopedSlots:t._u([{key:"activator",fn:function(){return[n("v-list-item-title",[t._v(" "+t._s(e.name))])]},proxy:!0}],null,!0)},[t._v(" "),t._l(e.children,(function(e,r){return[e.url.startsWith("#")?n("v-list-item",{staticClass:"pl-5",on:{click:function(n){return t.lazyScroll(e.url)}}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1):e.url.startsWith("http")?n("v-list-item",{staticClass:"pl-5",attrs:{href:e.url,target:"_blank"}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1):n("v-list-item",{staticClass:"pl-5",attrs:{exact:"",to:{name:e.url}}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1)]}))],2):e.url.startsWith("#")?n("v-list-item",{on:{click:function(n){return t.lazyScroll(e.url)}}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1):e.url.startsWith("http")?n("v-list-item",{attrs:{href:e.url,target:"_blank"}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1):n("v-list-item",{attrs:{exact:"",to:{name:e.url},link:""}},[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.name))])],1)],1)]}))],2)],1):t._e()],1)}),[],!1,null,null,null),Xt=Kt.exports;F()(Kt,{VAppBar:Pt,VAppBarNavIcon:Nt,VDivider:nt.a,VList:ft.a,VListGroup:Ht.a,VListItem:pt.a,VListItemContent:mt.a,VListItemTitle:mt.c,VNavigationDrawer:qt,VRow:it.a});var Jt=n(478),Qt=n.n(Jt),Zt=(n(564),{components:{itwFooter:at,wHeader:ct,wMenu:_t,mobileLayout:Xt},mounted:function(){Qt.a.init({offset:200,duration:600,easing:"ease-in-sine",delay:100})},computed:{webinar:function(){return this.$store.state.webinar}}}),te=(n(574),Object(Y.a)(Zt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",{staticClass:"default-layout"},[n("mobile-layout"),t._v(" "),n("v-main",{staticClass:"white"},[t.webinar?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"itw-page itw-app",attrs:{cols:"12"}},[n("w-header",{attrs:{classes:"my-2"}}),t._v(" "),t.isDesktop?n("w-menu",{staticStyle:{top:"140px"}}):t._e(),t._v(" "),n("nuxt")],1)],1):t._e()],1),t._v(" "),n("itw-footer")],1)}),[],!1,null,null,null)),ee=te.exports;F()(te,{VApp:z,VCol:et.a,VMain:K,VRow:it.a});n(91);var ne=n(17),re={mixins:[n(251).a],props:{bottom:{type:Boolean,required:!1,default:!1}},data:function(){return{showClose:!1}},watch:{model:{handler:function(t){var e=this;t&&(this.showClose=!1,setTimeout((function(){return e.showClose=!0}),5e3))},immediate:!0}},computed:{shoutoutSnackbar:function(){return this.$store.state.shoutoutSnackbar}}},ie=n(650),oe=Object(Y.a)(re,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-snackbar",{staticStyle:{"z-index":"555555555555555555555555555"},attrs:{color:t.shoutoutSnackbar.color,top:"",timeout:t.shoutoutSnackbar.timeout,bottom:t.bottom},model:{value:t.model,callback:function(e){t.model=e},expression:"model"}},[n("v-row",{attrs:{align:"center"}},[n("v-col",{attrs:{cols:"1"}},[t.shoutoutSnackbar.icon?n("v-icon",{staticClass:"mr-3"},[t._v(t._s(t.shoutoutSnackbar.icon))]):t._e()],1),t._v(" "),n("v-col",{staticClass:"text-center subtitle-1 white--text",attrs:{cols:"11"},domProps:{innerHTML:t._s(t.shoutoutSnackbar.text)}})],1),t._v(" "),t.showClose?n("v-btn",{staticStyle:{top:"0",right:"0"},attrs:{icon:"",absolute:"",right:"",top:"",text:""},on:{click:function(e){t.model=!1}}},[n("v-icon",[t._v("mdi-close")])],1):t._e()],1)}),[],!1,null,null,null),ae=oe.exports;F()(oe,{VBtn:tt.a,VCol:et.a,VIcon:ht.a,VRow:it.a,VSnackbar:ie.a});var se={components:{shoutoutSnackbar:ae},data:function(){return{shoutouts:null}},firestore:function(){return{shoutouts:ne.b.collection("events").doc("KwbrpO7gKN7DLZn4").collection("shoutouts").orderBy("created_at","desc").limit(1)}},methods:{setSnackbar:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.$store.commit("setShoutoutSnackbarColor",t),this.$store.commit("setShoutoutSnackbarText",e),this.$store.commit("setShoutoutSnackbarDisplay",!0),this.$store.commit("setShoutoutSnackbarTimeout",n),this.$store.commit("setShoutoutSnackbarIcon",r)}},computed:{shoutout:function(){return this.$store.state.shoutoutSnackbar}},watch:{shoutouts:{deep:!0,handler:function(t){if(t.length){var e=1e3*t[0].created_at.seconds;if(bt()().add(-1,"m").isBefore(bt()(e).format("DD MMM YYYY, HH:mm"))){var n=t[0].duration?1e3*Number(t[0].duration):1e4;this.setSnackbar("#20D5D2",'').concat(t[0].message,""),n,"mdi-bullhorn");try{document.getElementById("announcementAudio").play()}catch(t){}}}}}}},ue=n(474),ce=(n(67),{mixins:[n(258).a],data:function(){return{requests:[],states:[{state:"online",title:"Online",color:"green"},{state:"away",title:"Away",color:"orange"},{state:"offline",title:"Do not disturb",color:"red"}]}},firestore:function(){return{requests:ne.b.collection("users").doc(this.user.id).collection("friendRequests")}},methods:{getColor:function(t){switch(t){case"online":return"green";case"away":return"orange";case"offline":return"red"}},setState:function(t){var e=this;ne.b.collection("users").doc(this.user.id).set({state:t},{merge:!0}),ne.b.collection("users").doc(this.user.id).collection("friends").get().then((function(n){n.docs.map((function(t){return t.data()})).forEach((function(n){ne.b.collection("users").doc(n.id).collection("friends").doc(e.user.id).set({state:t},{merge:!0})}))}))},logout:function(){this.$store.dispatch("user/logout")},getInitials:function(t){return t.name.split(" ").map((function(t){return t.charAt(0)})).join("").slice(0,2)}},computed:{pendingRequests:function(){return this.requests.filter((function(t){return"pending"===t.state}))},initials:function(){return this.firebaseUser?this.firebaseUser.name.split(" ").map((function(t){return t.charAt(0)})).join("").slice(0,2):""}}}),le=n(242),de=n(651),he=n(238),fe=n(241),pe=n(132),me=Object(Y.a)(ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"z-index":"888888888888888888888",display:"flex","justify-content":"center","align-items":"center"}},[t.isDesktop?n("h5",{staticClass:"font-weight-medium mr-3"},[t._v("\n Welcome, "+t._s(t.firebaseUser.name)+"\n ")]):t._e(),t._v(" "),n("v-menu",{attrs:{"offset-y":"","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,o=e.attrs;return[n("v-badge",{attrs:{bordered:"",dark:"",color:t.getColor(t.firebaseUser.state),dot:"","offset-x":"12","offset-y":"12"}},[n("v-avatar",t._g(t._b({attrs:{size:"48px",color:"primary"}},"v-avatar",o,!1),r),[n("span",{staticClass:"white--text font-weight-bold"},[t._v(t._s(t.initials))])])],1)]}}])},[t._v(" "),n("v-list",{staticClass:"py-0"},[n("v-list-item",{attrs:{link:"",to:{name:"account"}}},[n("v-list-item-avatar",{staticStyle:{overflow:"visible"},attrs:{size:"48px"}},[n("v-badge",{attrs:{bordered:"",dark:"",color:t.getColor(t.firebaseUser.state),dot:"","offset-x":"12","offset-y":"12"}},[n("v-avatar",{attrs:{size:"48px",color:"black"}},[n("span",{staticClass:"white--text font-weight-bold"},[t._v(t._s(t.initials))])])],1)],1),t._v(" "),n("v-list-item-content",[n("v-list-item-title",[t._v("\n "+t._s(t.firebaseUser.name)+"\n ")]),t._v(" "),n("v-list-item-subtitle",[t._v(t._s(t.firebaseUser.email))])],1),t._v(" "),n("v-list-item-action")],1),t._v(" "),n("v-divider"),t._v(" "),t._l(t.states,(function(e){return[n("v-list-item",{style:[{"background-color":t.firebaseUser.state===e.state?"#f2f4f8":"#fff"}],on:{click:function(n){return t.setState(e.state)}}},[n("v-list-item-action",[n("v-icon",{attrs:{color:e.color,"x-small":""}},[t._v("mdi-checkbox-blank-circle")])],1),t._v(" "),n("v-list-item-title",[t._v(t._s(e.title))])],1)]})),t._v(" "),n("v-divider"),t._v(" "),n("v-list-item",{on:{click:t.logout}},[n("v-list-item-icon",[n("v-icon",{attrs:{small:""}},[t._v("mdi-logout")])],1),t._v(" "),n("v-list-item-title",[t._v("Logout")])],1)],2)],1),t._v(" "),t.pendingRequests.length?n("v-menu",{attrs:{"min-width":"300px",tile:"","offset-y":"","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,o=e.attrs;return[n("v-badge",{attrs:{bordered:"",color:"error",content:t.pendingRequests.length,overlap:""}},[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{icon:"",small:"",color:"primary"}},"v-btn",o,!1),r),[n("v-icon",[t._v("mdi-bell-ring")])],1)],1)]}}],null,!1,3409293055)},[t._v(" "),n("v-list",{staticClass:"py-0"},[t._l(t.pendingRequests,(function(e,i){return[n("v-row",{staticClass:"px-3 py-2",attrs:{justify:"space-between",align:"center","no-gutters":""}},[n("div",[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-avatar",{staticClass:"mr-3",attrs:{size:"32px",color:"#cc2c0e"}},[n("span",{staticClass:"white--text subtitle-2"},[t._v(t._s(t.getInitials(e)))])]),t._v(" "),n("span",{staticClass:"subtitle-2"},[t._v("\n "+t._s(e.name)+"\n ")])],1)],1),t._v(" "),n("div",[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{icon:"",color:"green"},on:{click:function(n){return t.friendRequestResponse(e,"accept")}}},[n("v-icon",[t._v("mdi-account-plus")])],1),t._v(" "),n("v-btn",{attrs:{icon:"",color:"red"},on:{click:function(n){return t.friendRequestResponse(e,"reject")}}},[n("v-icon",[t._v("mdi-account-remove")])],1)],1)],1)]),t._v(" "),i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(M.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(M.q)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=De(Object(M.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(M.q)(e.$options.asyncData,t.context).then((function(t){for(var n in t)l.a.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(M.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(P.options||P).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&Ae["_"+t]||(t="default"),this.layoutName=t,this.layout=Ae["_"+t],this.layout},loadLayout:function(t){return t&&Ae["_"+t]||(t="default"),Promise.resolve(Ae["_"+t])}},components:{NuxtLoading:N}};n(38);function Ee(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ye(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!e.length||o&&1===e.length)return t;var c=e.shift();return t.modules[c]=t.modules[c]||{},t.modules[c].namespaced=!0,t.modules[c].modules=t.modules[c].modules||{},He(t.modules[c],e,{isProperty:o})}function Re(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var Be=n(158),Fe={theme:{options:{customProperties:!0},dark:!1,themes:{light:{primary:"#cb2129",accent:"#f6f6f6",secondary:"#a66efa",info:"#000",ibmpurple:"#4F2196",warning:"#ffc107",error:"#dd2c00",success:"#00e676"},dark:{primary:"#ffa800",accent:"#101820",secondary:"#4d4d4d",info:"#26a69a",warning:"#ffc107",error:"#dd2c00",success:"#00e676"}}},options:{minifyTheme:function(t){return t.replace(/[\r\n|\r|\n]/g,"")}}};l.a.use(Be.a,{});var Ve=function(t){var e="function"==typeof Fe?Fe(t):Fe;e.icons=e.icons||{},e.icons.iconfont="mdi";var n=new Be.a(e);t.app.vuetify=n,t.$vuetify=n.framework},Ge=n(97),We=n.n(Ge);function Ue(t){return null!==t&&"object"===Object(Tt.a)(t)}function ze(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!Ue(e))return ze(t,{},n,r);var o=Object.assign({},e);for(var c in t)if("__proto__"!==c&&"constructor"!==c){var l=t[c];null!=l&&(r&&r(o,c,l,n)||(Array.isArray(l)&&Array.isArray(o[c])?o[c]=o[c].concat(l):Ue(l)&&Ue(o[c])?o[c]=ze(l,o[c],(n?"".concat(n,"."):"")+c.toString(),r):o[c]=l))}return o}function $e(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=Qe(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return on(Ke(t,this.defaults))}},en=function(){var t=rn[nn];tn["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},nn=0,rn=["request","delete","get","head","options","post","put","patch"];nn has been deprecated and will be removed in Nuxt 3, please use instead")),y.a.render(t,e)}})),l.a.component(O.name,O),l.a.component("NChild",O),l.a.component(x.name,x),Object.defineProperty(l.a.prototype,"$nuxt",{get:function(){var t=this.$root.$options.$nuxt;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),l.a.use(h.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var _n={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};d.a.Store.prototype.registerModule;function gn(t){return bn.apply(this,arguments)}function bn(){return bn=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,o,c,d,h,f,path,m,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),c[t]=d[t];var n="__nuxt_"+t+"_installed__";l.a[n]||(l.a[n]=!0,l.a.use((function(){Object.prototype.hasOwnProperty.call(l.a.prototype,t)||Object.defineProperty(l.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=4,D(0,n);case 4:return o=t.sent,(c=xe(e)).$router=o,d=yn({head:{meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"},{rel:"stylesheet",type:"text/css",href:"https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"}],style:[],script:[]},store:c,router:o,nuxt:{defaultTransition:_n,transitions:[_n],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},_n,{name:t}):Object.assign({},_n,t):_n})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(M.p)(t):null;var n=d.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},je),c.app=d,h=e?e.next:function(t){return d.router.push(t)},e?f=o.resolve(e.url).route:(path=Object(M.f)(o.options.base,o.options.mode),f=o.resolve(path).route),t.next=13,Object(M.t)(d,{store:c,route:f,next:h,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 13:return m("config",n),window.__NUXT__&&window.__NUXT__.state&&c.replaceState(window.__NUXT__.state),d.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.previewData=Object.assign({},t),m("preview",t)},t.next=19,Ve(d.context);case 19:return t.next=22,sn(d.context,m);case 22:t.next=25;break;case 25:t.next=28;break;case 28:if("function"!=typeof dn.a){t.next=31;break}return t.next=31,dn()(d.context,m);case 31:if("function"!=typeof hn){t.next=34;break}return t.next=34,hn(d.context,m);case 34:t.next=37;break;case 37:return t.next=40,fn(d.context);case 40:t.next=43;break;case 43:return d.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=46,new Promise((function(t,e){if(!o.resolve(d.context.route.fullPath).route.matched.length)return t();o.replace(d.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var c=o.afterEach(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(M.j)(n);case 3:d.context.route=e.sent,d.context.params=n.params||{},d.context.query=n.query||{},c(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 46:return t.abrupt("return",{store:c,app:d,router:o});case 47:case"end":return t.stop()}}),t)}))),bn.apply(this,arguments)}},function(t,e,n){"use strict";n(30),n(36),n(45),n(25),n(544);var r=n(1);function o(t,e){t.style.transform=e,t.style.webkitTransform=e}function c(t){return"TouchEvent"===t.constructor.name}function l(t){return"KeyboardEvent"===t.constructor.name}var d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,o=0;if(!l(t)){var d=e.getBoundingClientRect(),h=c(t)?t.touches[t.touches.length-1]:t;r=h.clientX-d.left,o=h.clientY-d.top}var f=0,m=.3;e._ripple&&e._ripple.circle?(m=.15,f=e.clientWidth/2,f=n.center?f:f+Math.sqrt(Math.pow(r-f,2)+Math.pow(o-f,2))/4):f=Math.sqrt(Math.pow(e.clientWidth,2)+Math.pow(e.clientHeight,2))/2;var v="".concat((e.clientWidth-2*f)/2,"px"),y="".concat((e.clientHeight-2*f)/2,"px"),_=n.center?v:"".concat(r-f,"px"),w=n.center?y:"".concat(o-f,"px");return{radius:f,scale:m,x:_,y:w,centerX:v,centerY:y}},h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e._ripple&&e._ripple.enabled){var r=document.createElement("span"),c=document.createElement("span");r.appendChild(c),r.className="v-ripple__container",n.class&&(r.className+=" ".concat(n.class));var l=d(t,e,n),h=l.radius,f=l.scale,m=l.x,v=l.y,y=l.centerX,_=l.centerY,w="".concat(2*h,"px");c.className="v-ripple__animation",c.style.width=w,c.style.height=w,e.appendChild(r);var M=window.getComputedStyle(e);M&&"static"===M.position&&(e.style.position="relative",e.dataset.previousPosition="static"),c.classList.add("v-ripple__animation--enter"),c.classList.add("v-ripple__animation--visible"),o(c,"translate(".concat(m,", ").concat(v,") scale3d(").concat(f,",").concat(f,",").concat(f,")")),c.dataset.activated=String(performance.now()),setTimeout((function(){c.classList.remove("v-ripple__animation--enter"),c.classList.add("v-ripple__animation--in"),o(c,"translate(".concat(y,", ").concat(_,") scale3d(1,1,1)"))}),0)}},f=function(t){if(t&&t._ripple&&t._ripple.enabled){var e=t.getElementsByClassName("v-ripple__animation");if(0!==e.length){var n=e[e.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var r=performance.now()-Number(n.dataset.activated),o=Math.max(250-r,0);setTimeout((function(){n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout((function(){1===t.getElementsByClassName("v-ripple__animation").length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)}),300)}),o)}}}};function m(t){return void 0===t||!!t}function v(t){var e={},element=t.currentTarget;if(element&&element._ripple&&!element._ripple.touched&&!t.rippleStop){if(t.rippleStop=!0,c(t))element._ripple.touched=!0,element._ripple.isTouch=!0;else if(element._ripple.isTouch)return;if(e.center=element._ripple.centered||l(t),element._ripple.class&&(e.class=element._ripple.class),c(t)){if(element._ripple.showTimerCommit)return;element._ripple.showTimerCommit=function(){h(t,element,e)},element._ripple.showTimer=window.setTimeout((function(){element&&element._ripple&&element._ripple.showTimerCommit&&(element._ripple.showTimerCommit(),element._ripple.showTimerCommit=null)}),80)}else h(t,element,e)}}function y(t){var element=t.currentTarget;if(element&&element._ripple){if(window.clearTimeout(element._ripple.showTimer),"touchend"===t.type&&element._ripple.showTimerCommit)return element._ripple.showTimerCommit(),element._ripple.showTimerCommit=null,void(element._ripple.showTimer=setTimeout((function(){y(t)})));window.setTimeout((function(){element._ripple&&(element._ripple.touched=!1)})),f(element)}}function _(t){var element=t.currentTarget;element&&element._ripple&&(element._ripple.showTimerCommit&&(element._ripple.showTimerCommit=null),window.clearTimeout(element._ripple.showTimer))}var w=!1;function M(t){w||t.keyCode!==r.y.enter&&t.keyCode!==r.y.space||(w=!0,v(t))}function T(t){w=!1,y(t)}function S(t){!0===w&&(w=!1,y(t))}function L(t,e,n){var r=m(e.value);r||f(t),t._ripple=t._ripple||{},t._ripple.enabled=r;var o=e.value||{};o.center&&(t._ripple.centered=!0),o.class&&(t._ripple.class=e.value.class),o.circle&&(t._ripple.circle=o.circle),r&&!n?(t.addEventListener("touchstart",v,{passive:!0}),t.addEventListener("touchend",y,{passive:!0}),t.addEventListener("touchmove",_,{passive:!0}),t.addEventListener("touchcancel",y),t.addEventListener("mousedown",v),t.addEventListener("mouseup",y),t.addEventListener("mouseleave",y),t.addEventListener("keydown",M),t.addEventListener("keyup",T),t.addEventListener("blur",S),t.addEventListener("dragstart",y,{passive:!0})):!r&&n&&k(t)}function k(t){t.removeEventListener("mousedown",v),t.removeEventListener("touchstart",v),t.removeEventListener("touchend",y),t.removeEventListener("touchmove",_),t.removeEventListener("touchcancel",y),t.removeEventListener("mouseup",y),t.removeEventListener("mouseleave",y),t.removeEventListener("keydown",M),t.removeEventListener("keyup",T),t.removeEventListener("dragstart",y),t.removeEventListener("blur",S)}var D={bind:function(t,e,n){L(t,e,!1)},unbind:function(t){delete t._ripple,k(t)},update:function(t,e){e.value!==e.oldValue&&L(t,e,m(e.oldValue))}};e.a=D},function(t,e,n){"use strict";var r=n(3),o=n.n(r);function c(t){return function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(e,r)||this.$delete(this.$data[t],r);for(var o in e)this.$set(this.$data[t],o,e[o])}}e.a=o.a.extend({data:function(){return{attrs$:{},listeners$:{}}},created:function(){this.$watch("$attrs",c("attrs$"),{immediate:!0}),this.$watch("$listeners",c("listeners$"),{immediate:!0})}})},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var r=n(1),o=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],c=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},l=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function h(t){for(var e=Array(3),n=c,l=o,i=0;i<3;++i)e[i]=Math.round(255*Object(r.f)(n(l[i][0]*t[0]+l[i][1]*t[1]+l[i][2]*t[2])));return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function f(t){for(var e=[0,0,0],n=d,r=l,o=n((t>>16&255)/255),g=n((t>>8&255)/255),b=n((t>>0&255)/255),i=0;i<3;++i)e[i]=r[i][0]*o+r[i][1]*g+r[i][2]*b;return e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return h}));var r=n(236),o=n(1),c=Object(o.j)("v-card__actions"),l=Object(o.j)("v-card__subtitle"),d=Object(o.j)("v-card__text"),h=Object(o.j)("v-card__title");r.a},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return h}));var r=n(0),o=n(15),c=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),l="[DEFAULT]",d=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new o.a;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:e});r&&n.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),r=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(t){if(r)return null;throw t}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(component){var t,e;if(component.name!==this.name)throw Error("Mismatching Component "+component.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=component,this.shouldAutoInitialize()){if(function(component){return"EAGER"===component.instantiationMode}(component))try{this.getOrInitializeService({instanceIdentifier:l})}catch(t){}try{for(var n=Object(r.g)(this.instancesDeferred.entries()),o=n.next();!o.done;o=n.next()){var c=Object(r.e)(o.value,2),d=c[0],h=c[1],f=this.normalizeInstanceIdentifier(d);try{var m=this.getOrInitializeService({instanceIdentifier:f});h.resolve(m)}catch(t){}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=l),this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(Object(r.f)(Object(r.f)([],Object(r.e)(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))),Object(r.e)(t.filter((function(t){return"_delete"in t})).map((function(t){return t._delete()})))))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t=l),this.instances.has(t)},t.prototype.getOptions=function(t){return void 0===t&&(t=l),this.instancesOptions.get(t)||{}},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var o=t.options,c=void 0===o?{}:o,l=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(l))throw Error(this.name+"("+l+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var d=this.getOrInitializeService({instanceIdentifier:l,options:c});try{for(var h=Object(r.g)(this.instancesDeferred.entries()),f=h.next();!f.done;f=h.next()){var m=Object(r.e)(f.value,2),v=m[0],y=m[1];l===this.normalizeInstanceIdentifier(v)&&y.resolve(d)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return d},t.prototype.onInit=function(t,e){var n,r=this.normalizeInstanceIdentifier(e),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(t),this.onInitCallbacks.set(r,o);var c=this.instances.get(r);return c&&t(c,r),function(){o.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,o,c=this.onInitCallbacks.get(e);if(c)try{for(var l=Object(r.g)(c),d=l.next();!d.done;d=l.next()){var h=d.value;try{h(t,e)}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e,n=t.instanceIdentifier,r=t.options,o=void 0===r?{}:r,c=this.instances.get(n);if(!c&&this.component&&(c=this.component.instanceFactory(this.container,{instanceIdentifier:(e=n,e===l?void 0:e),options:o}),this.instances.set(n,c),this.instancesOptions.set(n,o),this.invokeOnInitCallbacks(c,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,c)}catch(t){}return c||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t=l),this.component?this.component.multipleInstances?t:l:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();var h=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(component){var t=this.getProvider(component.name);if(t.isComponentSet())throw new Error("Component "+component.name+" has already been registered with "+this.name);t.setComponent(component)},t.prototype.addOrOverwriteComponent=function(component){this.getProvider(component.name).isComponentSet()&&this.providers.delete(component.name),this.addComponent(component)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new d(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var r=n(4),o=(n(36),n(3)),c=n.n(o),l=n(12);function d(t,e){return function(){return Object(l.c)("The ".concat(t," component must be used inside a ").concat(e))}}function h(t,e,n){var o=e&&n?{register:d(e,n),unregister:d(e,n)}:null;return c.a.extend({name:"registrable-inject",inject:Object(r.a)({},t,{default:o})})}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c.a.extend({name:"registrable-provide",provide:function(){return Object(r.a)({},t,e?this:{register:this.register,unregister:this.unregister})}})}},,,,,,,,,,function(t,e,n){"use strict";var r={inserted:function(t,e,n){var r=e.value,o=e.options||{passive:!0};window.addEventListener("resize",r,o),t._onResize=Object(t._onResize),t._onResize[n.context._uid]={callback:r,options:o},e.modifiers&&e.modifiers.quiet||r()},unbind:function(t,e,n){var r;if(null!=(r=t._onResize)&&r[n.context._uid]){var o=t._onResize[n.context._uid],c=o.callback,l=o.options;window.removeEventListener("resize",c,l),delete t._onResize[n.context._uid]}}};e.a=r},function(t,e,n){"use strict";var r=n(3),o=n.n(r);e.a=o.a.extend({name:"ssr-bootable",data:function(){return{isBooted:!1}},mounted:function(){var t=this;window.requestAnimationFrame((function(){t.$el.setAttribute("data-booted","true"),t.isBooted=!0}))}})},function(t,e,n){"use strict";var r=n(72);e.a=r.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(156);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},function(t,e,n){"use strict";n(25);var r=n(1),o=n(3),c=n.n(o);e.a=c.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var t={},e=Object(r.h)(this.height),n=Object(r.h)(this.minHeight),o=Object(r.h)(this.minWidth),c=Object(r.h)(this.maxHeight),l=Object(r.h)(this.maxWidth),d=Object(r.h)(this.width);return e&&(t.height=e),n&&(t.minHeight=n),o&&(t.minWidth=o),c&&(t.maxHeight=c),l&&(t.maxWidth=l),d&&(t.width=d),t}}})},function(t,e,n){"use strict";var r=n(4),o=(n(26),n(67),n(91),n(46),n(6),n(30),n(69),n(53),n(14),n(81),n(86),n(58),n(3)),c=n.n(o);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0?Object(r.a)({},t.join(" "),!0):{}}}})},function(t,e,n){"use strict";n(84);var r=n(3),o=n.n(r);e.a=o.a.extend({name:"v-list-item-icon",functional:!0,render:function(t,e){var data=e.data,n=e.children;return data.staticClass="v-list-item__icon ".concat(data.staticClass||"").trim(),t("div",data,n)}})},function(t,e,n){"use strict";function r(t){if("function"!=typeof t.getRootNode){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}var e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}n.d(e,"a",(function(){return r}))},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 d=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||d)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||d):l.length>0?l.map((function(){return t(!1)})):t(!1))}};t.exports=r},,function(t,e,n){"use strict";n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return M})),n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return S}));n(36);var r=n(82);function o(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:e}},render:function(e,n){var c="transition".concat(n.props.group?"-group":""),data={props:{name:t,mode:n.props.mode},on:{beforeEnter:function(t){t.style.transformOrigin=n.props.origin,t.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(data.on.leave=o(data.on.leave,(function(t){var e=t.offsetTop,n=t.offsetLeft,r=t.offsetWidth,o=t.offsetHeight;t._transitionInitialStyles={position:t.style.position,top:t.style.top,left:t.style.left,width:t.style.width,height:t.style.height},t.style.position="absolute",t.style.top=e+"px",t.style.left=n+"px",t.style.width=r+"px",t.style.height=o+"px"})),data.on.afterLeave=o(data.on.afterLeave,(function(t){if(t&&t._transitionInitialStyles){var e=t._transitionInitialStyles,n=e.position,r=e.top,o=e.left,c=e.width,l=e.height;delete t._transitionInitialStyles,t.style.position=n||"",t.style.top=r||"",t.style.left=o||"",t.style.width=c||"",t.style.height=l||""}}))),n.props.hideOnLeave&&(data.on.leave=o(data.on.leave,(function(t){t.style.setProperty("display","none","important")}))),e(c,Object(r.a)(n.data,data),n.children)}}}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:t,functional:!0,props:{mode:{type:String,default:n}},render:function(n,o){return n("transition",Object(r.a)(o.data,{props:{name:t},on:e}),o.children)}}}var d=n(4),h=n(1),f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?"width":"height",r="offset".concat(Object(h.H)(n));return{beforeEnter:function(t){t._parent=t.parentNode,t._initialStyle=Object(d.a)({transition:t.style.transition,overflow:t.style.overflow},n,t.style[n])},enter:function(e){var o=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.overflow="hidden";var c="".concat(e[r],"px");e.style[n]="0",e.offsetHeight,e.style.transition=o.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame((function(){e.style[n]=c}))},afterEnter:c,enterCancelled:c,leave:function(t){t._initialStyle=Object(d.a)({transition:"",overflow:t.style.overflow},n,t.style[n]),t.style.overflow="hidden",t.style[n]="".concat(t[r],"px"),t.offsetHeight,requestAnimationFrame((function(){return t.style[n]="0"}))},afterLeave:o,leaveCancelled:o};function o(e){t&&e._parent&&e._parent.classList.remove(t),c(e)}function c(t){var e=t._initialStyle[n];t.style.overflow=t._initialStyle.overflow,null!=e&&(t.style[n]=e),delete t._initialStyle}},m=(c("carousel-transition"),c("carousel-reverse-transition"),c("tab-transition")),v=c("tab-reverse-transition"),y=(c("menu-transition"),c("fab-transition","center center","out-in")),_=(c("dialog-transition"),c("dialog-bottom-transition"),c("dialog-top-transition"),c("fade-transition")),w=c("scale-transition"),M=(c("scroll-x-transition"),c("scroll-x-reverse-transition"),c("scroll-y-transition"),c("scroll-y-reverse-transition"),c("slide-x-transition")),T=(c("slide-x-reverse-transition"),c("slide-y-transition"),c("slide-y-reverse-transition"),l("expand-transition",f())),S=l("expand-x-transition",f("",!0))},function(t,e,n){"use strict";var r=n(242);e.a=r.a},,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(28),o=(n(38),n(16),n(6),n(30),n(167)),c=n(52),l=n(8),d=n(1),h=n(12),f=Object(l.a)(o.a,c.a);e.a=f.extend({name:"activatable",props:{activator:{default:null,validator:function(t){return["string","object"].includes(Object(r.a)(t))}},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:function(){return{activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}},watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted:function(){var t=Object(d.u)(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&Object(h.b)('The activator slot must be bound, try \'