1(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}}},"+umK":function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},"+v3u":function(t,e,n){n("q94Q")("match")},"//qW":function(t,e,n){"use strict";var r=n("Gp07"),i=n("LX9C"),o=n("stQs"),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i,!0),e.index+=t.length,{value:t,done:!1})})},"/WYv":function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},0:function(t,e,n){t.exports=n("zUnb")},"0/uQ":function(t,e,n){"use strict";var r=n("6blF"),i=n("/WYv"),o=n("2ePl"),a=n("xTla"),s=n("En8+"),u=n("IUTb"),l=n("pugT"),c=n("S5XQ"),h=n("u67D"),f=n("JcRv"),d=n("Fxb1");function p(t,e){if(!e)return t instanceof r.a?t:new r.a(Object(d.a)(t));if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a(e?function(n){var r=new l.a;return r.add(e.schedule(function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:Object(f.a)(t))}(t,e);if(Object(i.a)(t))return function(t,e){return new r.a(e?function(n){var r=new l.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:Object(c.a)(t))}(t,e);if(Object(o.a)(t))return Object(u.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(e?function(n){var r,i=new l.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[s.a](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:Object(h.a)(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}n.d(e,"a",function(){return p})},"0Bu/":function(t,e,n){var r=n("kpns"),i=n("bcPd");t.exports=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},"0HDe":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"0PDZ":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()},"0i0S":function(t,e){t.exports={}},"0idE":function(t,e,n){var r=n("57wU"),i=n("SAp2"),o=n("qBi7")("IE_PROTO"),a=n("S5sp"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"0s59":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()},"15JJ":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),a=n("zotm"),s=n("67Y/"),u=n("0/uQ");function l(t,e){return"function"==typeof e?function(n){return n.pipe(l(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(a.a)(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},"1VRj":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"1f/i":function(t,e,n){var r=n("ysHE"),i=n("wBs/"),o=n("57wU"),a=n("nX7E"),s=n("5eG6"),u=n("LX9C"),l=u.get,c=u.enforce,h=String(s).split("toString");n("MfhB")("inspectSource",function(t){return s.call(t)}),(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n)):l?t[e]=n:a(e,n
1)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s.call(this)})},"26FU":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("K9Ia"),o=n("8g8A"),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},"2Bdj":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},"2F3y":function(t,e,n){n("q94Q")("asyncIterator")},"2Hee":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"2ePl":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"2g2N":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("ZZ/e"),i=n("CcnG"),o=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},a=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=function(){function t(t){this.toastController=t}return t.prototype.makeToast=function(t){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.toastController.create({message:t,duration:5e3,position:"top",showCloseButton:!0,closeButtonText:"Chiudi",color:"danger"})];case 1:return e.sent().present(),[2]}})})},t.prototype.makeToastSuccess=function(t){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.toastController.create({message:t,duration:5e3,position:"top",showCloseButton:!0,closeButtonText:"Chiudi",color:"success"})];case 1:return e.sent().present(),[2]}})})},t.prototype.makeToastError=function(t){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.toastController.create({message:t,duration:5e3,position:"top",showCloseButton:!0,closeButtonText:"Chiudi",color:"danger"})];case 1:return e.sent().present(),[2]}})})},t.ngInjectableDef=i.T({factory:function(){return new t(i.X(r.Qb))},token:t,providedIn:"root"}),t}()},"2w5C":function(t,e,n){var r=n("57wU"),i=n("IutQ"),o=n("55jA")(!1),a=n("vcTx");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},"3Gxb":function(t,e,n){var r=n("2w5C"),i=n("o9j8").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"44fV":function(t,e,n){"use strict";var r=n("ysHE"),i=n("57wU"),o=n("lb/b"),a=n("U5J1"),s=n("pSMy"),u=n("1f/i"),l=n("vcTx"),c=n("0HDe"),h=n("MfhB"),f=n("S4gH"),d=n("ptKZ"),p=n("aXXJ"),m=n("ahhG"),g=n("q94Q"),v=n("SIcJ"),y=n("k2qa"),b=n("bcPd"),w=n("kpns"),_=n("IutQ"),S=n("ehg7"),E=n("2Hee"),C=n("tzov"),I=n("zkF/"),k=n("pYsU"),T=n("TIpl"),O=n("iCuu"),A=n("wBs/"),x=n("Q2Kg"),D=n("qBi7")("hidden"),P=n("LX9C"),N=P.set,j=P.getterFor("Symbol"),R=k.f,M=T.f,L=I.f,F=r.Symbol,V=r.JSON,U=V&&V.stringify,q=p("toPrimitive"),B=O.f,z=h("symbol-registry"),H=h("symbols"),G=h("op-symbol
1s"),$=h("wks"),K=Object.prototype,W=r.QObject,Q=n("mk1t"),J=!W||!W.prototype||!W.prototype.findChild,X=o&&c(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=R(K,e);r&&delete K[e],M(t,e,n),r&&t!==K&&M(K,e,r)}:M,Y=function(t,e){var n=H[t]=C(F.prototype);return N(n,{type:"Symbol",tag:t,description:e}),o||(n.description=e),n},Z=Q&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof F},tt=function(t,e,n){return t===K&&tt(G,e,n),b(t),e=S(e,!0),b(n),i(H,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=C(n,{enumerable:E(0,!1)})):(i(t,D)||M(t,D,E(1,{})),t[D][e]=!0),X(t,e,n)):M(t,e,n)},et=function(t,e){b(t);for(var n,r=v(e=_(e)),i=0,o=r.length;o>i;)tt(t,n=r[i++],e[n]);return t},nt=function(t){var e=B.call(this,t=S(t,!0));return!(this===K&&i(H,t)&&!i(G,t))&&(!(e||!i(this,t)||!i(H,t)||i(this,D)&&this[D][t])||e)},rt=function(t,e){if(t=_(t),e=S(e,!0),t!==K||!i(H,e)||i(G,e)){var n=R(t,e);return!n||!i(H,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},it=function(t){for(var e,n=L(_(t)),r=[],o=0;n.length>o;)i(H,e=n[o++])||i(l,e)||r.push(e);return r},ot=function(t){for(var e,n=t===K,r=L(n?G:_(t)),o=[],a=0;r.length>a;)!i(H,e=r[a++])||n&&!i(K,e)||o.push(H[e]);return o};Q||(u((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor");var t=void 0===arguments[0]?void 0:String(arguments[0]),e=d(t),n=function(t){this===K&&n.call(G,t),i(this,D)&&i(this[D],e)&&(this[D][e]=!1),X(this,e,E(1,t))};return o&&J&&X(K,e,{configurable:!0,set:n}),Y(e,t)}).prototype,"toString",function(){return j(this).tag}),O.f=nt,T.f=tt,k.f=rt,n("3Gxb").f=I.f=it,n("fw2a").f=ot,o&&(M(F.prototype,"description",{configurable:!0,get:function(){return j(this).description}}),a||u(K,"propertyIsEnumerable",nt,{unsafe:!0})),m.f=function(t){return Y(p(t),t)}),s({global:!0,wrap:!0,forced:!Q,sham:!Q},{Symbol:F});for(var at=x($),st=0;at.length>st;)g(at[st++]);s({target:"Symbol",stat:!0,forced:!Q},{for:function(t){return i(z,t+="")?z[t]:z[t]=F(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol");for(var e in z)if(z[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),s({target:"Object",stat:!0,forced:!Q,sham:!o},{create:function(t,e){return void 0===e?C(t):et(C(t),e)},defineProperty:tt,defineProperties:et,getOwnPropertyDescriptor:rt}),s({target:"Object",stat:!0,forced:!Q},{getOwnPropertyNames:it,getOwnPropertySymbols:ot}),V&&s({target:"JSON",stat:!0,forced:!Q||c(function(){var t=F();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))})},{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(w(e)||void 0!==t)&&!Z(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,U.apply(V,r)}}),F.prototype[q]||A(F.prototype,q,F.prototype.valueOf),f(F,"Symbol"),l[D]=!0},"4Ea8":function(t,e,n){t.exports=n("ysHE")},"4mOR":function(t,e,n){"use strict";var r=n("vQkR")(6),i=!0;"findIndex"in[]&&Array(1).findIndex(function(){i=!1}),n("pSMy")({target:"Array",proto:!0,forced:i},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("gJLK")("findIndex")},"4pTB":function(t,e){},"55jA":function(t,e,n){var r=n("IutQ"),i=n("H6ty"),o=n("GJzV");t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},"57wU":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"5Aeh":function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return u}),n("5x/H"),n("iTTW");var r=n("Wcq6"),i=n("0/uQ"),o=n("h3nO"),a=n("CcnG");function s(t){var e=new o.a;return console.log({data:t}),t&&t.displayName?(e.uid=t.uid,e.displayName=t.displayName,e.email=t.email,e.photoURL=t.photoURL,e.customClaims=t.customClaims||t.claims,e):null}var u=function(){function t(){}return t.prototype.create=function(t){return null},t.prototype.update=function(t){return null},t.prototype.findByEmail=function(t){var e=r.functions().httpsCallable("getUserByEmail"),n={email:t};return Object(i.a)(e(n).then(function(t){return s(t.data)}))},t.prototype.find=function(t){var e=r.functions().httpsCallable("getUser"),n={uid:t};return Object(i.a)(e(n).then(function(t){return s(t.data)}))},t.prototype.delete=function(t){return null},t.prototype.query=function(t,e){var n=r.functions().httpsCallable("allUsers"),o=this,a={};return t&&this.lastVisible&&(a.nextPageToken=this.lastVisible),Object(i.a)(n(a).then(function(t){return o.lastVisible=t.data.pageToken,t.data.users.map(function(t){return s(t)})}
1))},t.prototype.setLastVisible=function(t){return this.lastVisible=t.docs[t.docs.length-1],t},t.ngInjectableDef=a.T({factory:function(){return new t},token:t,providedIn:"root"}),t}()},"5eG6":function(t,e,n){t.exports=n("MfhB")("native-function-to-string",Function.toString)},"5x/H":function(t,e,n){"use strict";n("6Joi")},"67Y/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.a)},"6Joi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r,o=n("q/0M"),a=n("mrSG"),s=n("x7I3"),u=n("zVF4"),l=i.SDK_VERSION,c=new o.Logger("@firebase/firestore"),h=function(t){return t[t.DEBUG=0]="DEBUG",t[t.ERROR=1]="ERROR",t[t.SILENT=2]="SILENT",t}({});function f(){return c.logLevel===o.LogLevel.DEBUG?h.DEBUG:c.logLevel===o.LogLevel.SILENT?h.SILENT:h.ERROR}function d(t){switch(t){case h.DEBUG:c.logLevel=o.LogLevel.DEBUG;break;case h.ERROR:c.logLevel=o.LogLevel.ERROR;break;case h.SILENT:c.logLevel=o.LogLevel.SILENT;break;default:c.error("Firestore ("+l+"): Invalid value passed to `setLogLevel`")}}function p(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(c.logLevel<=o.LogLevel.DEBUG){var i=n.map(g);c.debug.apply(c,["Firestore ("+l+") ["+t+"]: "+e].concat(i))}}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(c.logLevel<=o.LogLevel.ERROR){var r=e.map(g);c.error.apply(c,["Firestore ("+l+"): "+t].concat(r))}}function g(t){if("string"==typeof t)return t;var e=b.getPlatform();try{return e.formatJSON(t)}catch(n){return t}}function v(t){var e="FIRESTORE ("+l+") INTERNAL ASSERTION FAILED: "+t;throw m(e),new Error(e)}function y(t,e){t||v(e)}var b=function(){function t(){}return t.setPlatform=function(e){t.platform&&v("Platform already defined"),t.platform=e},t.getPlatform=function(){return t.platform||v("Platform not set"),t.platform},t}();function w(){return b.getPlatform().emptyByteString}var _={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},S=function(t){function e(e,n){var r=t.call(this,n)||this;return r.code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return a.__extends(e,t),e}(Error);function E(t,e){function n(){var t="This constructor is private.";throw e&&(t+=" ",t+=e),new S(_.INVALID_ARGUMENT,t)}for(var r in n.prototype=t.prototype,t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function I(t,e){return void 0!==t?t:e}function k(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Number(n);isNaN(r)||e(r,t[n])}}function T(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function O(t){for(var e in y(null!=t&&"object"==typeof t,"isEmpty() expects object parameter."),t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function A(t,e){if(0!==e.length)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+G(e.length,"argument")+".")}
1function x(t,e,n){if(e.length!==n)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires "+G(n,"argument")+", but was called with "+G(e.length,"argument")+".")}function D(t,e,n){if(e.length<n)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires at least "+G(n,"argument")+", but was called with "+G(e.length,"argument")+".")}function P(t,e,n,r){if(e.length<n||e.length>r)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+G(e.length,"argument")+".")}function N(t,e,n,r){F(t,e,H(n)+" argument",r)}function j(t,e,n,r){void 0!==r&&N(t,e,n,r)}function R(t,e,n,r){F(t,e,n+" option",r)}function M(t,e,n,r){void 0!==r&&R(t,e,n,r)}function L(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(U(u))}var l=U(r);throw new S(_.INVALID_ARGUMENT,"Invalid value "+l+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function F(t,e,n,r){if(!("object"===e?V(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=U(r);throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function V(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function U(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":v("Unknown wrong type: "+typeof t)}function q(t,e,n){if(void 0===n)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+H(e)+" argument, but it was undefined.")}function B(t,e,n){T(e,function(e,r){if(n.indexOf(e)<0)throw new S(_.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))})}function z(t,e,n,r){var i=U(r);return new S(_.INVALID_ARGUMENT,"Function "+t+"() requires its "+H(n)+" argument to be a "+e+", but it was: "+i)}function H(t){switch(t){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return t+"th"}}function G(t,e){return t+" "+e+(1===t?"":"s")}var $=function(){function t(){}return t.newId=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e="",n=0;n<20;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return y(20===e.length,"Invalid auto ID: "+e),e},t}();function K(t,e){return t<e?-1:t>e?1:0}function W(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].isEqual(e[n]))return!1;return!0}function Q(t){return t+"\0"}function J(){if("undefined"==typeof Uint8Array)throw new S(_.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function X(){if(!b.getPlatform().base64Available)throw new S(_.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Y=function(){function t(t){X(),this._binaryString=t}return t.fromBase64String=function(e){x("Blob.fromBase64String",arguments,1),N("Blob.fromBase64String","string",1,e),X();try{return new t(b.getPlatform().atob(e))}catch(n){throw new S(_.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+n)}},t.fromUint8Array=function(e){if(x("Blob.fromUint8Array",arguments,1),J(),!(e instanceof Uint8Array))throw z("Blob.fromUint8Array","Uint8Array",1,e);return new t(Array.prototype.map.call(e,function(t){return String.fromCharCode(t)}).join(""))},t.prototype.toBase64=function(){return x("Blob.toBase64",arguments,0),X(),b.getPlatform().btoa(this._binaryString)},t.prototype.toUint8Array=function(){x("Blob.toUint8Array",arguments,0),J();for(var t=new Uint8Array(this._binaryString.length),e=0;e<this._binaryString.length;e++)t[e]=this._binaryString.charCodeAt(e);return t},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._binaryString===t._binaryString},t.prototype._compareTo=function(t){return K(this._binaryString,t._binaryString)},t}(),Z=E(Y,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),tt=function(){function t(t,e){if(x("GeoPoint",arguments,2),N("GeoPoint","number",1,t),N("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new S(_.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new S(_.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:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype._compareTo=function(t){return K(this._lat,t._lat)||K(this._long,t._long)},t}(),et=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new S(_.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new S(_.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new S(_.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new S(_.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype._compareTo=function(t){return this.seconds===t.seconds?K(this.nanoseconds,t.nanoseconds):K(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}(),nt=function(){return function(t,e,n,r,i){this.databaseId=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i}}(),rt="(default)",it=function(){function t(t,e){this.projectId=t,this.database=e||rt}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return this.database===rt},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.compareTo=function(t){return K(this.projectId,t.projectId)||K(this.database,t.database)},t}(),ot=function(){function t(t,e,n){this.init(t,e,n)}return t.prototype.init=function(t,e,n){void 0===e?e=0:e>t.length&&v("offset "+e+" out of range "+t.length),void 0===n?n=t.length-e:n>t.length-e&&v("length "+n+" out of range "+(t.length-e)),this.segments=t,this.offset=e,this.len=n},t.prototype.construct=function(t,e,n){var r=Object.create(Object.getPrototypeOf(this));return r.init(t,e,n),r},Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!0,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)}):"string"==typeof e?n.push(e):v("Unknown parameter type for Path.child(): "+e),this.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return y(this.length>
1=(t=void 0===t?1:t),"Can't call popFirst() with less segments"),this.construct(this.segments,this.offset+t,this.length-t)},t.prototype.popLast=function(){return y(!this.isEmpty(),"Can't call popLast() on empty path"),this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return y(!this.isEmpty(),"Can't call firstSegment() on empty path"),this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return y(t<this.length,"Index out of range"),this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.isImmediateParentOf=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(t){if(t.indexOf("//")>=0)throw new S(_.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter(function(t){return t.length>0}))},e.EMPTY_PATH=new e([]),e}(ot),st=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.isValidIdentifier=function(t){return st.test(t)},e.prototype.canonicalString=function(){return this.toArray().map(function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),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 S(_.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new S(_.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new S(_.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new S(_.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.EMPTY_PATH=new e([]),e}(ot),lt=function(){function t(e){this.path=e,y(t.isDocumentKey(e),"Invalid DocumentKey with an odd number of segments: "+e.toArray().join("/"))}return 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===at.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return at.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new at(e.slice()))},t.fromPathString=function(e){return new t(at.fromString(e))},t.EMPTY=new t(new at([])),t}(),ct=function(){function t(t,e){this.key=t,this.version=e}return t.compareByKey=function(t,e){return lt.comparator(t.key,e.key)},t}(),ht=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.data=r,a.proto=o,a.hasLocalMutations=!!i.hasLocalMutations,a.hasCommittedMutations=!!i.hasCommittedMutations,a}return a.__extends(e,t),e.prototype.field=function(t){return this.data.field(t)},e.prototype.fieldValue=function(t){var e=this.field(t);return e?e.value():void 0},e.prototype.value=function(){return this.data.value()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.data.isEqual(t.data)&&this.hasLocalMutations===t.hasLocalMutations&&this.hasCommittedMutations===t.hasCommittedMutations},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.data.toString()+", {hasLocalMutations: "+this.hasLocalMutations+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!0,configurable:!0}),e.compareByField=function(t,e,n){var r=e.field(t),i=n.field(t);return void 0!==r&&void 0!==i?r.compareTo(i):v("Trying to compare documents on fields that don't exist")},e}(ct),ft=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return a.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(ct),dt=function(t){function e(e,n){return t.call(this,e,n)||this}return a.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(ct),pt=function(){function t(t,e){this.comparator=t,this.root=e||gt.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,gt.BLACK,null,
1null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,gt.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.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:!0,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 mt(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new mt(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new mt(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new mt(this.root,t,this.comparator,!0)},t}(),mt=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(){y(this.nodeStack.length>0,"getNext() called on iterator when hasNext() is false.");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}(),gt=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 v("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed())throw v("Right child of ("+this.key+","+this.value+") is red");var t=this.left.check();if(t!==this.right.check())throw v("Black depths differ");return t+(this.isRed()?0:1)},t.EMPTY=null,t.RED=!0,t.BLACK=!1,t}(),vt=function(){function t(){this.size=0}return t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new gt(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}();
1gt.EMPTY=new vt;var yt=function(t){return t[t.NullValue=0]="NullValue",t[t.BooleanValue=1]="BooleanValue",t[t.NumberValue=2]="NumberValue",t[t.TimestampValue=3]="TimestampValue",t[t.StringValue=4]="StringValue",t[t.BlobValue=5]="BlobValue",t[t.RefValue=6]="RefValue",t[t.GeoPointValue=7]="GeoPointValue",t[t.ArrayValue=8]="ArrayValue",t[t.ObjectValue=9]="ObjectValue",t}({}),bt=function(t){return t[t.Default=0]="Default",t[t.Estimate=1]="Estimate",t[t.Previous=2]="Previous",t}({}),wt=function(){function t(t,e){this.serverTimestampBehavior=t,this.timestampsInSnapshots=e}return t.fromSnapshotOptions=function(e,n){switch(e.serverTimestamps){case"estimate":return new t(bt.Estimate,n);case"previous":return new t(bt.Previous,n);case"none":case void 0:return new t(bt.Default,n);default:return v("fromSnapshotOptions() called with invalid options.")}},t}(),_t=function(){function t(){}return t.prototype.toString=function(){var t=this.value();return null===t?"null":t.toString()},t.prototype.defaultCompareTo=function(t){return y(this.typeOrder!==t.typeOrder,"Default compareTo should not be used for values of same type."),K(this.typeOrder,t.typeOrder)},t}(),St=function(t){function e(){var e=t.call(this)||this;return e.typeOrder=yt.NullValue,e.internalValue=null,e}return a.__extends(e,t),e.prototype.value=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e},e.prototype.compareTo=function(t){return t instanceof e?0:this.defaultCompareTo(t)},e.INSTANCE=new e,e}(_t),Et=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.BooleanValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue===t.internalValue},e.prototype.compareTo=function(t){return t instanceof e?K(this,t):this.defaultCompareTo(t)},e.of=function(t){return t?e.TRUE:e.FALSE},e.TRUE=new e(!0),e.FALSE=new e(!1),e}(_t),Ct=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.NumberValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue},e.prototype.compareTo=function(t){return t instanceof e?(n=this.internalValue)<(r=t.internalValue)?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1:this.defaultCompareTo(t);var n,r},e}(_t);function It(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}var kt=function(t){function e(e){return t.call(this,e)||this}return a.__extends(e,t),e.prototype.isEqual=function(t){return t instanceof e&&It(this.internalValue,t.internalValue)},e}(Ct),Tt=function(t){function e(e){var n=t.call(this,e)||this;return n.internalValue=e,n}return a.__extends(e,t),e.prototype.isEqual=function(t){return t instanceof e&&It(this.internalValue,t.internalValue)},e.NAN=new e(NaN),e.POSITIVE_INFINITY=new e(1/0),e.NEGATIVE_INFINITY=new e(-1/0),e}(Ct),Ot=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.StringValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue===t.internalValue},e.prototype.compareTo=function(t){return t instanceof e?K(this.internalValue,t.internalValue):this.defaultCompareTo(t)},e}(_t),At=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.TimestampValue,n}return a.__extends(e,t),e.prototype.value=function(t){return!t||t.timestampsInSnapshots?this.internalValue:this.internalValue.toDate()},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue.isEqual(t.internalValue)},e.prototype.compareTo=function(t){return t instanceof e?this.internalValue._compareTo(t.internalValue):t instanceof xt?-1:this.defaultCompareTo(t)},e}(_t),xt=function(t){function e(e,n){var r=t.call(this)||this;return r.localWriteTime=e,r.previousValue=n,r.typeOrder=yt.TimestampValue,r}return a.__extends(e,t),e.prototype.value=function(t){return t&&t.serverTimestampBehavior===bt.Estimate?new At(this.localWriteTime).value(t):t&&t.serverTimestampBehavior===bt.Previous&&this.previousValue?this.previousValue.value(t):null},e.prototype.isEqual=function(t){return t instanceof e&&this.localWriteTime.isEqual(t.localWriteTime)},e.prototype.compareTo=function(t){return t instanceof e?this.localWriteTime._compareTo(t.localWriteTime):t instanceof At?1:this.defaultCompareTo(t)},e.prototype.toString=function(){return"<ServerTimestamp localTime="+this.localWriteTime.toString()+">"},e}(_t),Dt=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.BlobValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue.isEqual(t.internalValue)},e.prototype.compareTo=function(t){return t instanceof e?this.internalValue._compareTo(t.internalValue):this.defaultCompareTo(t)},e}
1(_t),Pt=function(t){function e(e,n){var r=t.call(this)||this;return r.databaseId=e,r.key=n,r.typeOrder=yt.RefValue,r}return a.__extends(e,t),e.prototype.value=function(t){return this.key},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.databaseId.isEqual(t.databaseId)},e.prototype.compareTo=function(t){if(t instanceof e){var n=this.databaseId.compareTo(t.databaseId);return 0!==n?n:lt.comparator(this.key,t.key)}return this.defaultCompareTo(t)},e}(_t),Nt=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.GeoPointValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue.isEqual(t.internalValue)},e.prototype.compareTo=function(t){return t instanceof e?this.internalValue._compareTo(t.internalValue):this.defaultCompareTo(t)},e}(_t),jt=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.ObjectValue,n}return a.__extends(e,t),e.prototype.value=function(t){var e={};return this.internalValue.inorderTraversal(function(n,r){e[n]=r.value(t)}),e},e.prototype.forEach=function(t){this.internalValue.inorderTraversal(t)},e.prototype.isEqual=function(t){if(t instanceof e){for(var n=this.internalValue.getIterator(),r=t.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext();if(i.key!==o.key||!i.value.isEqual(o.value))return!1}return!n.hasNext()&&!r.hasNext()}return!1},e.prototype.compareTo=function(t){if(t instanceof e){for(var n=this.internalValue.getIterator(),r=t.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext(),a=K(i.key,o.key)||i.value.compareTo(o.value);if(a)return a}return K(n.hasNext(),r.hasNext())}return this.defaultCompareTo(t)},e.prototype.set=function(t,n){if(y(!t.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===t.length)return this.setChild(t.firstSegment(),n);var r=this.child(t.firstSegment());r instanceof e||(r=e.EMPTY);var i=r.set(t.popFirst(),n);return this.setChild(t.firstSegment(),i)},e.prototype.delete=function(t){if(y(!t.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===t.length)return new e(this.internalValue.remove(t.firstSegment()));var n=this.child(t.firstSegment());if(n instanceof e){var r=n.delete(t.popFirst());return new e(this.internalValue.insert(t.firstSegment(),r))}return this},e.prototype.contains=function(t){return void 0!==this.field(t)},e.prototype.field=function(t){y(!t.isEmpty(),"Can't get field of empty path");var n=this;return t.forEach(function(t){n=n instanceof e&&n.internalValue.get(t)||void 0}),n},e.prototype.toString=function(){return this.internalValue.toString()},e.prototype.child=function(t){return this.internalValue.get(t)||void 0},e.prototype.setChild=function(t,n){return new e(this.internalValue.insert(t,n))},e.EMPTY=new e(new pt(K)),e}(_t),Rt=function(t){function e(e){var n=t.call(this)||this;return n.internalValue=e,n.typeOrder=yt.ArrayValue,n}return a.__extends(e,t),e.prototype.value=function(t){return this.internalValue.map(function(e){return e.value(t)})},e.prototype.forEach=function(t){this.internalValue.forEach(t)},e.prototype.isEqual=function(t){if(t instanceof e){if(this.internalValue.length!==t.internalValue.length)return!1;for(var n=0;n<this.internalValue.length;n++)if(!this.internalValue[n].isEqual(t.internalValue[n]))return!1;return!0}return!1},e.prototype.compareTo=function(t){if(t instanceof e){for(var n=Math.min(this.internalValue.length,t.internalValue.length),r=0;r<n;r++){var i=this.internalValue[r].compareTo(t.internalValue[r]);if(i)return i}return K(this.internalValue.length,t.internalValue.length)}return this.defaultCompareTo(t)},e.prototype.toString=function(){return"["+this.internalValue.map(function(t){return t.toString()}).join(",")+"]"},e}(_t),Mt=Number,Lt=Mt.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),Ft=Mt.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Vt=Mt.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function Ut(t){return null==t}function qt(t){return Vt(t)&&t<=Ft&&t>=Lt}var Bt=function(){function t(t,e,n,r,i,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.memoizedCanonicalId=null,this.memoizedOrderBy=null,this.startAt&&this.assertValidBound(this.startAt),this.endAt&&this.assertValidBound(this.endAt)}return t.atPath=function(e){return new t(e)},Object.defineProperty(t.prototype,"orderBy",{get:function(){if(null===this.memoizedOrderBy){var t=this.getInequalityFilterField(),e=this.getFirstOrderByField();if(null!==t&&null===e)this.memoizedOrderBy=t.isKeyField()?[Xt]:[new Jt(t),Xt];else{y(null===t||null!==e&&t.isEqual(e),"First orderBy should match inequality field."),this.memoizedOrderBy=[];for(var n=!1,r=0,i=this.explicitOrderBy;r<i.length;r++){var o=i[r];this.memoizedOrderBy.push(o),o.field.isKeyField()&&(n=!0)}n||this.memoizedOrderBy.push((this.explicitOrderBy.length>0?this.explicitOrderBy[this.explicitOrderBy.length-1].dir:Wt.ASCENDING)===Wt.ASCENDING?Xt:Yt)}}return this.memoizedOrderBy},enumerable:!0,configurable:!0}),t.prototype.addFilter=function(e){y(null==this.getInequalityFilterField()||!(e instanceof Gt)||!e.isInequality()||e.field.isEqual(this.getInequalityFilterField()),"Query must only have one inequality field."),y(!this.isDocumentQuery(),"No filtering allowed for document query");var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.explicitOrderBy.slice(),n,this.limit,this.startAt,this.endAt)},t.prototype.addOrderBy=function(e){y(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.explicitOrderBy.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.startAt,this.endAt)},t.prototype.withLimit=function(e){return new t(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),e,this.startAt,this.endAt)},t.prototype.withStartAt=function(e){return new t(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,e,this.endAt)},t.prototype.withEndAt=function(e){return new t(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.startAt,e)},t.prototype.asCollectionQueryAtPath=function(e){return new t(e,null,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.startAt,this.endAt)},t.prototype.canonicalId=function(){if(null===this.memoizedCanonicalId){var t=this.path.canonicalString();this.isCollectionGroupQuery()&&(t+="|cg:"+this.collectionGroup),t+="|f:";for(var e=0,n=this.filters;e<n.length;e++)t+=n[e].canonicalId(),t+=",";t+="|ob:";for(var r=0,i=this.orderBy;r<i.length;r++)t+=i[r].canonicalId(),t+=",";Ut(this.limit)||(t+="|l:",t+=this.limit),this.startAt&&(t+="|lb:",t+=this.startAt.canonicalId()),this.endAt&&(t+="|ub:",t+=this.endAt.canonicalId()),this.memoizedCanonicalId=t}return this.memoizedCanonicalId}
1,t.prototype.toString=function(){var t="Query("+this.path.canonicalString();return this.isCollectionGroupQuery()&&(t+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(t+=", filters: ["+this.filters.join(", ")+"]"),Ut(this.limit)||(t+=", limit: "+this.limit),this.explicitOrderBy.length>0&&(t+=", orderBy: ["+this.explicitOrderBy.join(", ")+"]"),this.startAt&&(t+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(t+=", endAt: "+this.endAt.canonicalId()),t+")"},t.prototype.isEqual=function(t){if(this.limit!==t.limit)return!1;if(this.orderBy.length!==t.orderBy.length)return!1;for(var e=0;e<this.orderBy.length;e++)if(!this.orderBy[e].isEqual(t.orderBy[e]))return!1;if(this.filters.length!==t.filters.length)return!1;for(e=0;e<this.filters.length;e++)if(!this.filters[e].isEqual(t.filters[e]))return!1;return this.collectionGroup===t.collectionGroup&&!!this.path.isEqual(t.path)&&!(null!==this.startAt?!this.startAt.isEqual(t.startAt):null!==t.startAt)&&(null!==this.endAt?this.endAt.isEqual(t.endAt):null===t.endAt)},t.prototype.docComparator=function(t,e){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],a=o.compare(t,e);if(0!==a)return a;n=n||o.field.isKeyField()}return y(n,"orderBy used that doesn't compare on key field"),0},t.prototype.matches=function(t){return this.matchesPathAndCollectionGroup(t)&&this.matchesOrderBy(t)&&this.matchesFilters(t)&&this.matchesBounds(t)},t.prototype.hasLimit=function(){return!Ut(this.limit)},t.prototype.getFirstOrderByField=function(){return this.explicitOrderBy.length>0?this.explicitOrderBy[0].field:null},t.prototype.getInequalityFilterField=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n instanceof Gt&&n.isInequality())return n.field}return null},t.prototype.hasArrayContainsFilter=function(){return void 0!==this.filters.find(function(t){return t instanceof Gt&&t.op===Ht.ARRAY_CONTAINS})},t.prototype.isDocumentQuery=function(){return lt.isDocumentKey(this.path)&&null===this.collectionGroup&&0===this.filters.length},t.prototype.isCollectionGroupQuery=function(){return null!==this.collectionGroup},t.prototype.matchesPathAndCollectionGroup=function(t){var e=t.key.path;return null!==this.collectionGroup?t.key.hasCollectionId(this.collectionGroup)&&this.path.isPrefixOf(e):lt.isDocumentKey(this.path)?this.path.isEqual(e):this.path.isImmediateParentOf(e)},t.prototype.matchesOrderBy=function(t){for(var e=0,n=this.explicitOrderBy;e<n.length;e++){var r=n[e];if(!r.field.isKeyField()&&void 0===t.field(r.field))return!1}return!0},t.prototype.matchesFilters=function(t){for(var e=0,n=this.filters;e<n.length;e++)if(!n[e].matches(t))return!1;return!0},t.prototype.matchesBounds=function(t){return!(this.startAt&&!this.startAt.sortsBeforeDocument(this.orderBy,t)||this.endAt&&this.endAt.sortsBeforeDocument(this.orderBy,t))},t.prototype.assertValidBound=function(t){y(t.position.length<=this.orderBy.length,"Bound is longer than orderBy")},t}(),zt=function(){function t(){}return t.create=function(t,e,n){if(n.isEqual(St.INSTANCE)){if(e!==Ht.EQUAL)throw new S(_.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on null.");return new $t(t)}if(n.isEqual(Tt.NAN)){if(e!==Ht.EQUAL)throw new S(_.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on NaN.");return new Kt(t)}return new Gt(t,e,n)},t}(),Ht=function(){function t(t){this.name=t}return t.fromString=function(e){switch(e){case"<":return t.LESS_THAN;case"<=":return t.LESS_THAN_OR_EQUAL;case"==":return t.EQUAL;case">=":return t.GREATER_THAN_OR_EQUAL;case">":return t.GREATER_THAN;case"array-contains":return t.ARRAY_CONTAINS;default:return v("Unknown relation: "+e)}},t.prototype.toString=function(){return this.name},t.prototype.isEqual=function(t){return this.name===t.name},t.LESS_THAN=new t("<"),t.LESS_THAN_OR_EQUAL=new t("<="),t.EQUAL=new t("=="),t.GREATER_THAN=new t(">"),t.GREATER_THAN_OR_EQUAL=new t(">="),t.ARRAY_CONTAINS=new t("array-contains"),t}(),Gt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.field=e,i.op=n,i.value=r,i}return a.__extends(e,t),e.prototype.matches=function(t){if(this.field.isKeyField()){y(this.value instanceof Pt,"Comparing on key, but filter value not a RefValue"),y(this.op!==Ht.ARRAY_CONTAINS,"array-contains queries don't make sense on document keys.");var e=lt.comparator(t.key,this.value.key);return this.matchesComparison(e)}var n=t.field(this.field);return void 0!==n&&this.matchesValue(n)},e.prototype.matchesValue=function(t){var e=this;return this.op===Ht.ARRAY_CONTAINS?t instanceof Rt&&void 0!==t.internalValue.find(function(t){return t.isEqual(e.value)}):this.value.typeOrder===t.typeOrder&&this.matchesComparison(t.compareTo(this.value))},e.prototype.matchesComparison=function(t){switch(this.op){case Ht.LESS_THAN:return t<0;case Ht.LESS_THAN_OR_EQUAL:return t<=0;case Ht.EQUAL:return 0===t;case Ht.GREATER_THAN:return t>0;case Ht.GREATER_THAN_OR_EQUAL:return t>=0;default:return v("Unknown relation op"+this.op)}},e.prototype.isInequality=function(){return this.op!==Ht.EQUAL&&this.op!==Ht.ARRAY_CONTAINS},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.op.toString()+this.value.toString()},e.prototype.isEqual=function(t){return t instanceof e&&this.op.isEqual(t.op)&&this.field.isEqual(t.field)&&this.value.isEqual(t.value)},e.prototype.toString=function(){return this.field.canonicalString()+" "+this.op+" "+this.value.value()},e}(zt),$t=function(t){function e(e){var n=t.call(this)||this;return n.field=e,n}return a.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return void 0!==e&&null===e.value()},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS null"},e.prototype.toString=function(){return this.field.canonicalString()+" IS null"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}(zt),Kt=function(t){function e(e){var n=t.call(this)||this;return n.field=e,n}return a.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field),n=e&&e.value();return"number"==typeof n&&isNaN(n)},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.toString=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}(zt),Wt=function(){function t(t){this.name=t}return t.prototype.toString=function(){return this.name},t.ASCENDING=new t("asc"),t.DESCENDING=new t("desc"),t}(),Qt=function(){function t(t,e){this.position=t,this.before=e}return t.prototype.canonicalId=function(){for(var t=this.before?"b:":"a:",e=0,n=this.position;e<n.length;e++)t+=n[e].toString();return t},t.prototype.sortsBeforeDocument=function(t,e){y(this.position.length<=t.length,"Bound has more components than query's orderBy");for(var n=0,r=0;r<this.position.length;r++){var i=t[r],o=this.position[r];
1if(i.field.isKeyField())y(o instanceof Pt,"Bound has a non-key value where the key path is being used."),n=lt.comparator(o.key,e.key);else{var a=e.field(i.field);y(void 0!==a,"Field should exist since document matched the orderBy already."),n=o.compareTo(a)}if(i.dir===Wt.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},t.prototype.isEqual=function(t){if(null===t)return!1;if(this.before!==t.before||this.position.length!==t.position.length)return!1;for(var e=0;e<this.position.length;e++)return this.position[e].isEqual(t.position[e]);return!0},t}(),Jt=function(){function t(t,e){this.field=t,void 0===e&&(e=Wt.ASCENDING),this.dir=e,this.isKeyOrderBy=t.isKeyField()}return t.prototype.compare=function(t,e){var n=this.isKeyOrderBy?ht.compareByKey(t,e):ht.compareByField(this.field,t,e);switch(this.dir){case Wt.ASCENDING:return n;case Wt.DESCENDING:return-1*n;default:return v("Unknown direction: "+this.dir)}},t.prototype.canonicalId=function(){return this.field.canonicalString()+this.dir.toString()},t.prototype.toString=function(){return this.field.canonicalString()+" ("+this.dir+")"},t.prototype.isEqual=function(t){return this.dir===t.dir&&this.field.isEqual(t.field)},t}(),Xt=new Jt(ut.keyField(),Wt.ASCENDING),Yt=new Jt(ut.keyField(),Wt.DESCENDING),Zt=function(){function t(t){this.timestamp=t}return t.fromMicroseconds=function(e){var n=Math.floor(e/1e6);return new t(new et(n,e%1e6*1e3))},t.fromTimestamp=function(e){return new t(e)},t.forDeletedDoc=function(){return t.MIN},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.MIN=new t(new et(0,0)),t}(),te=function(t){return t[t.Listen=0]="Listen",t[t.ExistenceFilterMismatch=1]="ExistenceFilterMismatch",t[t.LimboResolution=2]="LimboResolution",t}({}),ee=function(){function t(t,e,n,r,i,o){void 0===i&&(i=Zt.MIN),void 0===o&&(o=w()),this.query=t,this.targetId=e,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.resumeToken=o}return t.prototype.copy=function(e){return new t(this.query,this.targetId,this.purpose,void 0===e.sequenceNumber?this.sequenceNumber:e.sequenceNumber,void 0===e.snapshotVersion?this.snapshotVersion:e.snapshotVersion,void 0===e.resumeToken?this.resumeToken:e.resumeToken)},t.prototype.isEqual=function(t){return this.targetId===t.targetId&&this.purpose===t.purpose&&this.sequenceNumber===t.sequenceNumber&&this.snapshotVersion.isEqual(t.snapshotVersion)&&this.resumeToken===t.resumeToken&&this.query.isEqual(t.query)},t}(),ne=function(){function t(t){this.comparator=t,this.data=new pt(this.comparator)}return t.fromMapKeys=function(e){var n=new t(e.comparator);return e.forEach(function(t){n=n.add(t)}),n},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:!0,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 re(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new re(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 t.forEach(function(t){e=e.add(t)}),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.getIterator(),r=e.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},t.prototype.toArray=function(){var t=[];return this.forEach(function(e){t.push(e)}),t},t.prototype.toString=function(){var t=[];return this.forEach(function(e){return t.push(e)}),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.comparator);return n.data=e,n},t}
1(),re=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),ie=function(){function t(t){this.fields=t}return t.fromSet=function(e){return new t(e)},t.fromArray=function(e){var n=new ne(ut.comparator);return e.forEach(function(t){return n=n.add(t)}),new t(n)},t.prototype.covers=function(t){var e=!1;return this.fields.forEach(function(n){n.isPrefixOf(t)&&(e=!0)}),e},t.prototype.applyTo=function(t){var e=jt.EMPTY;return this.fields.forEach(function(n){if(n.isEmpty())return t;var r=t.field(n);void 0!==r&&(e=e.set(n,r))}),e},t.prototype.isEqual=function(t){return this.fields.isEqual(t.fields)},t}(),oe=function(){function t(t,e){this.field=t,this.transform=e}return Object.defineProperty(t.prototype,"isIdempotent",{get:function(){return this.transform.isIdempotent},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.field.isEqual(t.field)&&this.transform.isEqual(t.transform)},t}(),ae=function(){return function(t,e){this.version=t,this.transformResults=e}}(),se=function(t){return t[t.Set=0]="Set",t[t.Patch=1]="Patch",t[t.Transform=2]="Transform",t[t.Delete=3]="Delete",t}({}),ue=function(){function t(t,e){this.updateTime=t,this.exists=e,y(void 0===t||void 0===e,'Precondition can specify "exists" or "updateTime" but not both')}return t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),t.prototype.isValidFor=function(t){return void 0!==this.updateTime?t instanceof ht&&t.version.isEqual(this.updateTime):void 0!==this.exists?this.exists===t instanceof ht:(y(this.isNone,"Precondition should be empty"),!0)},t.prototype.isEqual=function(t){return n=t.updateTime,(null!=(e=this.updateTime)?!(!n||!e.isEqual(n)):e===n)&&this.exists===t.exists;var e,n},t.NONE=new t,t}(),le=function(){function t(){}return t.prototype.verifyKeyMatches=function(t){null!=t&&y(t.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},t.getPostMutationVersion=function(t){return t instanceof ht?t.version:Zt.MIN},t}(),ce=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.value=n,i.precondition=r,i.type=se.Set,i}return a.__extends(e,t),e.prototype.applyToRemoteDocument=function(t,e){return this.verifyKeyMatches(t),y(null==e.transformResults,"Transform results received by SetMutation."),new ht(this.key,e.version,this.value,{hasCommittedMutations:!0})},e.prototype.applyToLocalView=function(t,e,n){if(this.verifyKeyMatches(t),!this.precondition.isValidFor(t))return t;var r=le.getPostMutationVersion(t);return new ht(this.key,r,this.value,{hasLocalMutations:!0})},Object.defineProperty(e.prototype,"isIdempotent",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fieldMask",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.value.isEqual(t.value)&&this.precondition.isEqual(t.precondition)},e}(le),he=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.key=e,o.data=n,o.fieldMask=r,o.precondition=i,o.type=se.Patch,o}return a.__extends(e,t),e.prototype.applyToRemoteDocument=function(t,e){if(this.verifyKeyMatches(t),y(null==e.transformResults,"Transform results received by PatchMutation."),!this.precondition.isValidFor(t))return new dt(this.key,e.version);var n=this.patchDocument(t);return new ht(this.key,e.version,n,{hasCommittedMutations:!0})},e.prototype.applyToLocalView=function(t,e,n){if(this.verifyKeyMatches(t),!this.precondition.isValidFor(t))return t;var r=le.getPostMutationVersion(t),i=this.patchDocument(t);return new ht(this.key,r,i,{hasLocalMutations:!0})},Object.defineProperty(e.prototype,"isIdempotent",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.fieldMask.isEqual(t.fieldMask)&&this.prec
1ondition.isEqual(t.precondition)},e.prototype.patchDocument=function(t){return this.patchObject(t instanceof ht?t.data:jt.EMPTY)},e.prototype.patchObject=function(t){var e=this;return this.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var r=e.data.field(n);t=void 0!==r?t.set(n,r):t.delete(n)}}),t},e}(le),fe=function(t){function e(e,n){var r=t.call(this)||this;return r.key=e,r.fieldTransforms=n,r.type=se.Transform,r.precondition=ue.exists(!0),r}return a.__extends(e,t),e.prototype.applyToRemoteDocument=function(t,e){if(this.verifyKeyMatches(t),y(null!=e.transformResults,"Transform results missing for TransformMutation."),!this.precondition.isValidFor(t))return new dt(this.key,e.version);var n=this.requireDocument(t),r=this.serverTransformResults(t,e.transformResults),i=e.version,o=this.transformObject(n.data,r);return new ht(this.key,i,o,{hasCommittedMutations:!0})},e.prototype.applyToLocalView=function(t,e,n){if(this.verifyKeyMatches(t),!this.precondition.isValidFor(t))return t;var r=this.requireDocument(t),i=this.localTransformResults(n,e),o=this.transformObject(r.data,i);return new ht(this.key,r.version,o,{hasLocalMutations:!0})},Object.defineProperty(e.prototype,"isIdempotent",{get:function(){for(var t=0,e=this.fieldTransforms;t<e.length;t++)if(!e[t].isIdempotent)return!1;return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fieldMask",{get:function(){var t=new ne(ut.comparator);
1return this.fieldTransforms.forEach(function(e){return t=t.add(e.field)}),new ie(t)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&W(this.fieldTransforms,t.fieldTransforms)&&this.precondition.isEqual(t.precondition)},e.prototype.requireDocument=function(t){y(t instanceof ht,"Unknown MaybeDocument type "+t);var e=t;return y(e.key.isEqual(this.key),"Can only transform a document with the same key"),e},e.prototype.serverTransformResults=function(t,e){var n=[];y(this.fieldTransforms.length===e.length,"server transform result count ("+e.length+") should match field transform count ("+this.fieldTransforms.length+")");for(var r=0;r<e.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;t instanceof ht&&(a=t.field(i.field)||null),n.push(o.applyToRemoteDocument(a,e[r]))}return n},e.prototype.localTransformResults=function(t,e){for(var n=[],r=0,i=this.fieldTransforms;r<i.length;r++){var o=i[r],a=o.transform,s=null;e instanceof ht&&(s=e.field(o.field)||null),n.push(a.applyToLocalView(s,t))}return n},e.prototype.transformObject=function(t,e){y(e.length===this.fieldTransforms.length,"TransformResults length mismatch.");for(var n=0;n<this.fieldTransforms.length;n++)t=t.set(this.fieldTransforms[n].field,e[n]);return t},e}(le),de=function(t){function e(e,n){var r=t.call(this)||this;return r.key=e,r.precondition=n,r.type=se.Delete,r}return a.__extends(e,t),e.prototype.applyToRemoteDocument=function(t,e){return this.verifyKeyMatches(t),y(null==e.transformResults,"Transform results received by DeleteMutation."),new ft(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.applyToLocalView=function(t,e,n){return this.verifyKeyMatches(t),this.precondition.isValidFor(t)?(t&&y(t.key.isEqual(this.key),"Can only apply mutation to document with same key"),new ft(this.key,Zt.forDeletedDoc())):t},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.precondition.isEqual(t.precondition)},Object.defineProperty(e.prototype,"isIdempotent",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fieldMask",{get:function(){return null},enumerable:!0,configurable:!0}),e}(le),pe=function(){function t(){this.isIdempotent=!0}return t.prototype.applyToLocalView=function(t,e){return new xt(e,t)},t.prototype.applyToRemoteDocument=function(t,e){return e},t.prototype.isEqual=function(e){return e instanceof t},t.instance=new t,t}(),me=function(){function t(t){this.elements=t,this.isIdempotent=!0}return t.prototype.applyToLocalView=function(t,e){return this.apply(t)},t.prototype.applyToRemoteDocument=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=ye(t),n=function(t){e.find(function(e){return e.isEqual(t)})||e.push(t)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return new Rt(e)},t.prototype.isEqual=function(e){return e instanceof t&&W(e.elements,this.elements)},t}(),ge=function(){function t(t){this.elements=t,this.isIdempotent=!0}return t.prototype.applyToLocalView=function(t,e){return this.apply(t)},t.prototype.applyToRemoteDocument=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=ye(t),n=function(t){e=e.filter(function(e){return!e.isEqual(t)})},r=0,i=this.elements;r<i.length;r++)n(i[r]);return new Rt(e)},t.prototype.isEqual=function(e){return e instanceof t&&W(e.elements,this.elements)},t}(),ve=function(){function t(t){this.operand=t,this.isIdempotent=!1}return t.prototype.applyToLocalView=function(t,e){return t instanceof kt&&this.operand instanceof kt?new kt(t.internalValue+this.operand.internalValue):t instanceof Ct?new Tt(t.internalValue+this.operand.internalValue):this.operand},t.prototype.applyToRemoteDocument=function(t,e){return y(null!==e,"Didn't receive transformResult for NUMERIC_ADD transform"),e},t.prototype.isEqual=function(e){return e instanceof t&&this.operand.isEqual(e.operand)},t}();function ye(t){return t instanceof Rt?t.internalValue.slice():[]}var be=function(){function t(t){this.count=t}return t.prototype.isEqual=function(t){return t&&t.count===this.count},t}(),we=function(t){return t[t.OK=0]="OK",t[t.CANCELLED=1]="CANCELLED",t[t.UNKNOWN=2]="UNKNOWN",t[t.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",t[t.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",t[t.NOT_FOUND=5]="NOT_FOUND",t[t.ALREADY_EXISTS=6]="ALREADY_EXISTS",t[t.PERMISSION_DENIED=7]="PERMISSION_DENIED",t[t.UNAUTHENTICATED=16]="UNAUTHENTICATED",t[t.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",t[t.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",t[t.ABORTED=10]="ABORTED",t[t.OUT_OF_RANGE=11]="OUT_OF_RANGE",t[t.UNIMPLEMENT
1ED=12]="UNIMPLEMENTED",t[t.INTERNAL=13]="INTERNAL",t[t.UNAVAILABLE=14]="UNAVAILABLE",t[t.DATA_LOSS=15]="DATA_LOSS",t}({});function _e(t){switch(t){case _.OK:return v("Treated status OK as error");case _.CANCELLED:case _.UNKNOWN:case _.DEADLINE_EXCEEDED:case _.RESOURCE_EXHAUSTED:case _.INTERNAL:case _.UNAVAILABLE:case _.UNAUTHENTICATED:return!1;case _.INVALID_ARGUMENT:case _.NOT_FOUND:case _.ALREADY_EXISTS:case _.PERMISSION_DENIED:case _.FAILED_PRECONDITION:case _.ABORTED:case _.OUT_OF_RANGE:case _.UNIMPLEMENTED:case _.DATA_LOSS:return!0;default:return v("Unknown status code: "+t)}}function Se(t){if(void 0===t)return m("GRPC error has no .code"),_.UNKNOWN;switch(t){case we.OK:return _.OK;case we.CANCELLED:return _.CANCELLED;case we.UNKNOWN:return _.UNKNOWN;case we.DEADLINE_EXCEEDED:return _.DEADLINE_EXCEEDED;case we.RESOURCE_EXHAUSTED:return _.RESOURCE_EXHAUSTED;case we.INTERNAL:return _.INTERNAL;case we.UNAVAILABLE:return _.UNAVAILABLE;case we.UNAUTHENTICATED:return _.UNAUTHENTICATED;case we.INVALID_ARGUMENT:return _.INVALID_ARGUMENT;case we.NOT_FOUND:return _.NOT_FOUND;case we.ALREADY_EXISTS:return _.ALREADY_EXISTS;case we.PERMISSION_DENIED:return _.PERMISSION_DENIED;case we.FAILED_PRECONDITION:return _.FAILED_PRECONDITION;case we.ABORTED:return _.ABORTED;case we.OUT_OF_RANGE:return _.OUT_OF_RANGE;case we.UNIMPLEMENTED:return _.UNIMPLEMENTED;case we.DATA_LOSS:return _.DATA_LOSS;default:return v("Unknown status code: "+t)}}function Ee(t){if(void 0===t)return we.OK;switch(t){case _.OK:return we.OK;case _.CANCELLED:return we.CANCELLED;case _.UNKNOWN:return we.UNKNOWN;case _.DEADLINE_EXCEEDED:return we.DEADLINE_EXCEEDED;case _.RESOURCE_EXHAUSTED:return we.RESOURCE_EXHAUSTED;case _.INTERNAL:return we.INTERNAL;case _.UNAVAILABLE:return we.UNAVAILABLE;case _.UNAUTHENTICATED:return we.UNAUTHENTICATED;case _.INVALID_ARGUMENT:return we.INVALID_ARGUMENT;case _.NOT_FOUND:return we.NOT_FOUND;case _.ALREADY_EXISTS:return we.ALREADY_EXISTS;case _.PERMISSION_DENIED:return we.PERMISSION_DENIED;case _.FAILED_PRECONDITION:return we.FAILED_PRECONDITION;case _.ABORTED:return we.ABORTED;case _.OUT_OF_RANGE:return we.OUT_OF_RANGE;case _.UNIMPLEMENTED:return we.UNIMPLEMENTED;case _.DATA_LOSS:return we.DATA_LOSS;default:return v("Unknown status code: "+t)}}var Ce=new pt(lt.comparator);function Ie(){return Ce}function ke(){return Ie()}var Te=new pt(lt.comparator);function Oe(){return Te}var Ae=new pt(lt.comparator);function xe(){return Ae}var De=new ne(lt.comparator);function Pe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=De,r=0,i=t;r<i.length;r++)n=n.add(i[r]);return n}var Ne=new ne(K);function je(){return Ne}var Re=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||lt.comparator(e.key,n.key)}:function(t,e){return lt.comparator(t.key,e.key)},this.keyedMap=Oe(),this.sortedSet=new pt(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:!0,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}(),Me=function(t){return t[t.Added=0]="Added",t[t.Removed=1]="Removed",t[t.Modified=2]="Modified",t[t.Metadata=3]="Metadata",t}({}),Le=function(t){return t[t.Local=0]="Local",t[t.Synced=1]="Synced",t}({}),Fe=function(){function t(){this.changeMap=new pt(lt.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.changeMap.get(e);n?t.type!==Me.Added&&n.type===Me.Metadata?this.changeMap=this.changeMap.insert(e,t):t.type===Me.Metadata&&n.type!==Me.Removed?this.changeMap=this.changeMap.insert(e,{type:n.type,doc:t.doc}):t.type===Me.Modified&&n.type===Me.Modified?this.changeMap=this.changeMap.insert(e,{type:Me.Modified,doc:t.doc}):t.type===Me.Modified&&n.type===Me.Added?this.changeMap=this.changeMap.insert(e,{type:Me.Added,doc:t.doc}):t.type===Me.Removed&&n.type===Me.Added?this.changeMap=this.changeMap.remove(e):t.type===Me.Removed&&n.type===Me.Modified?this.changeMap=this.changeMap.insert(e,{type:Me.Removed,doc:n.doc}):t.type===Me.Added&&n.type===Me.Removed?this.changeMap=this.changeMap.insert(e,{type:Me.Modified,doc:t.doc}):v("unsupported combination of changes: "+JSON.stringify(t)+" after "+JSON.stringify(n)):this.changeMap=this.changeMap.insert(e,t)},t.prototype.getChanges=function(){var t=[];return this.changeMap.inorderTraversal(function(e,n){t.push(n)}),t},t}(),Ve=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return t.fromInitialDocuments=function(e,n,r,i){var o=[];
1return n.forEach(function(t){o.push({type:Me.Added,doc:t})}),new t(e,n,Re.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&this.query.isEqual(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<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),Ue=function(){function t(t,e,n,r,i){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var r,i=((r={})[e]=qe.createSynthesizedTargetChangeForCurrentChange(e,n),r);return new t(Zt.MIN,i,je(),Ie(),Pe())},t}(),qe=function(){function t(t,e,n,r,i){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(w(),n,Pe(),Pe(),Pe())},t}(),Be=function(){return function(t,e,n,r){this.updatedTargetIds=t,this.removedTargetIds=e,this.key=n,this.newDoc=r}}(),ze=function(){return function(t,e){this.targetId=t,this.existenceFilter=e}}(),He=function(t){return t[t.NoChange=0]="NoChange",t[t.Added=1]="Added",t[t.Removed=2]="Removed",t[t.Current=3]="Current",t[t.Reset=4]="Reset",t}({}),Ge=function(){return function(t,e,n,r){void 0===n&&(n=w()),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r}}(),$e=function(){function t(){this.pendingResponses=0,this.documentChanges=Qe(),this._resumeToken=w(),this._current=!1,this._hasPendingChanges=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this._resumeToken},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPending",{get:function(){return 0!==this.pendingResponses},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingChanges",{get:function(){return this._hasPendingChanges},enumerable:!0,configurable:!0}),t.prototype.updateResumeToken=function(t){t.length>0&&(this._hasPendingChanges=!0,this._resumeToken=t)},t.prototype.toTargetChange=function(){var t=Pe(),e=Pe(),n=Pe();
1return this.documentChanges.forEach(function(r,i){switch(i){case Me.Added:t=t.add(r);break;case Me.Modified:e=e.add(r);break;case Me.Removed:n=n.add(r);break;default:v("Encountered invalid change type: "+i)}}),new qe(this._resumeToken,this._current,t,e,n)},t.prototype.clearPendingChanges=function(){this._hasPendingChanges=!1,this.documentChanges=Qe()},t.prototype.addDocumentChange=function(t,e){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.insert(t,e)},t.prototype.removeDocumentChange=function(t){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.remove(t)},t.prototype.recordPendingTargetRequest=function(){this.pendingResponses+=1},t.prototype.recordTargetResponse=function(){this.pendingResponses-=1},t.prototype.markCurrent=function(){this._hasPendingChanges=!0,this._current=!0},t}(),Ke=function(){function t(t){this.metadataProvider=t,this.targetStates={},this.pendingDocumentUpdates=Ie(),this.pendingDocumentTargetMapping=We(),this.pendingTargetResets=new ne(K)}return t.prototype.handleDocumentChange=function(t){for(var e=0,n=t.updatedTargetIds;e<n.length;e++){var r=n[e];t.newDoc instanceof ht?this.addDocumentToTarget(r,t.newDoc):t.newDoc instanceof ft&&this.removeDocumentFromTarget(r,t.key,t.newDoc)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)this.removeDocumentFromTarget(r=o[i],t.key,t.newDoc)},t.prototype.handleTargetChange=function(t){var e=this;this.forEachTarget(t,function(n){var r=e.ensureTargetState(n);switch(t.state){case He.NoChange:e.isActiveTarget(n)&&r.updateResumeToken(t.resumeToken);break;case He.Added:r.recordTargetResponse(),r.isPending||r.clearPendingChanges(),r.updateResumeToken(t.resumeToken);break;case He.Removed:r.recordTargetResponse(),r.isPending||e.removeTarget(n),y(!t.cause,"WatchChangeAggregator does not handle errored targets");break;case He.Current:e.isActiveTarget(n)&&(r.markCurrent(),r.updateResumeToken(t.resumeToken));break;case He.Reset:e.isActiveTarget(n)&&(e.resetTarget(n),r.updateResumeToken(t.resumeToken));break;default:v("Unknown target watch change state: "+t.state)}})},t.prototype.forEachTarget=function(t,e){t.targetIds.length>0?t.targetIds.forEach(e):k(this.targetStates,e)},t.prototype.handleExistenceFilter=function(t){var e=t.targetId,n=t.existenceFilter.count,r=this.queryDataForActiveTarget(e);if(r){var i=r.query;if(i.isDocumentQuery())if(0===n){var o=new lt(i.path);this.removeDocumentFromTarget(e,o,new ft(o,Zt.forDeletedDoc()))}else y(1===n,"Single document existence filter with count: "+n);else this.getCurrentDocumentCountForTarget(e)!==n&&(this.resetTarget(e),this.pendingTargetResets=this.pendingTargetResets.add(e))}},t.prototype.createRemoteEvent=function(t){var e=this,n={};k(this.targetStates,function(r,i){var o=e.queryDataForActiveTarget(r);if(o){if(i.current&&o.query.isDocumentQuery()){var a=new lt(o.query.path);null!==e.pendingDocumentUpdates.get(a)||e.targetContainsDocument(r,a)||e.removeDocumentFromTarget(r,a,new ft(a,t))}i.hasPendingChanges&&(n[r]=i.toTargetChange(),i.clearPendingChanges())}});var r=Pe();this.pendingDocumentTargetMapping.forEach(function(t,n){var i=!0;n.forEachWhile(function(t){var n=e.queryDataForActiveTarget(t);return!n||n.purpose===te.LimboResolution||(i=!1,!1)}),i&&(r=r.add(t))});var i=new Ue(t,n,this.pendingTargetResets,this.pendingDocumentUpdates,r);return this.pendingDocumentUpdates=Ie(),this.pendingDocumentTargetMapping=We(),this.pendingTargetResets=new ne(K),i},t.prototype.addDocumentToTarget=function(t,e){if(this.isActiveTarget(t)){var n=this.targetContainsDocument(t,e.key)?Me.Modified:Me.Added;this.ensureTargetState(t).addDocumentChange(e.key,n),this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(e.key,e),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e.key,this.ensureDocumentTargetMapping(e.key).add(t))}},t.prototype.removeDocumentFromTarget=function(t,e,n){if(this.isActiveTarget(t)){var r=this.ensureTargetState(t);this.targetContainsDocument(t,e)?r.addDocumentChange(e,Me.Removed):r.removeDocumentChange(e),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e,this.ensureDocumentTargetMapping(e).delete(t)),n&&(this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(e,n))}},t.prototype.removeTarget=function(t){delete this.targetStates[t]},t.prototype.getCurrentDocumentCountForTarget=function(t){var e=this.ensureTargetState(t).toTargetChange();return this.metadataProvider.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.recordPendingTargetRequest=function(t){this.ensureTargetState(t).recordPendingTargetRequest
1()},t.prototype.ensureTargetState=function(t){return this.targetStates[t]||(this.targetStates[t]=new $e),this.targetStates[t]},t.prototype.ensureDocumentTargetMapping=function(t){var e=this.pendingDocumentTargetMapping.get(t);return e||(e=new ne(K),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t,e)),e},t.prototype.isActiveTarget=function(t){return null!==this.queryDataForActiveTarget(t)},t.prototype.queryDataForActiveTarget=function(t){var e=this.targetStates[t];return e&&e.isPending?null:this.metadataProvider.getQueryDataForTarget(t)},t.prototype.resetTarget=function(t){var e=this;y(!this.targetStates[t].isPending,"Should only reset active targets"),this.targetStates[t]=new $e,this.metadataProvider.getRemoteKeysForTarget(t).forEach(function(n){e.removeDocumentFromTarget(t,n,null)})},t.prototype.targetContainsDocument=function(t,e){return this.metadataProvider.getRemoteKeysForTarget(t).has(e)},t}();function We(){return new pt(lt.comparator)}function Qe(){return new pt(lt.comparator)}var Je,Xe,Ye=((Je={})[Wt.ASCENDING.name]="ASCENDING",Je[Wt.DESCENDING.name]="DESCENDING",Je),Ze=((Xe={})[Ht.LESS_THAN.name]="LESS_THAN",Xe[Ht.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",Xe[Ht.GREATER_THAN.name]="GREATER_THAN",Xe[Ht.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",Xe[Ht.EQUAL.name]="EQUAL",Xe[Ht.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",Xe),tn=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function en(t,e){y(!Ut(t),e+" is missing")}function nn(t){return"number"==typeof t?t:"string"==typeof t?Number(t):v("can't parse "+t)}var rn=function(){function t(t,e){this.databaseId=t,this.options=e}return t.prototype.emptyByteString=function(){return this.options.useProto3Json?"":new Uint8Array(0)},t.prototype.unsafeCastProtoByteString=function(t){return t},t.prototype.fromRpcStatus=function(t){var e=void 0===t.code?_.UNKNOWN:Se(t.code);return new S(e,t.message||"")},t.prototype.toInt32Value=function(t){return Ut(t)?void 0:{value:t}},t.prototype.fromInt32Value=function(t){var e;return Ut(e="object"==typeof t?t.value:t)?null:e},t.prototype.toTimestamp=function(t){return{seconds:t.seconds,nanos:t.nanoseconds}},t.prototype.fromTimestamp=function(t){if("string"==typeof t)return this.fromIso8601String(t);y(!!t,"Cannot deserialize null or undefined timestamp.");var e=nn(t.seconds||"0");return new et(e,t.nanos||0)},t.prototype.fromIso8601String=function(t){var e=0,n=tn.exec(t);if(y(!!n,"invalid timestamp: "+t),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t),o=Math.floor(i.getTime()/1e3);return new et(o,e)},t.prototype.toBytes=function(t){return this.options.useProto3Json?t.toBase64():this.unsafeCastProtoByteString(t.toUint8Array())},t.prototype.fromBlob=function(t){return"string"==typeof t?(y(this.options.useProto3Json,"Expected bytes to be passed in as Uint8Array, but got a string instead."),Y.fromBase64String(t)):(y(!this.options.useProto3Json,"Expected bytes to be passed in as string, but got something else instead."),Y.fromUint8Array(t))},t.prototype.toVersion=function(t){return this.toTimestamp(t.toTimestamp())},t.prototype.fromVersion=function(t){return y(!!t,"Trying to deserialize version that isn't set"),Zt.fromTimestamp(this.fromTimestamp(t))},t.prototype.toResourceName=function(t,e){return this.fullyQualifiedPrefixPath(t).child("documents").child(e).canonicalString()},t.prototype.fromResourceName=function(t){var e=at.fromString(t);return y(this.isValidResourceName(e),"Tried to deserialize invalid key "+e.toString()),e},t.prototype.toName=function(t){return this.toResourceName(this.databaseId,t.path)},t.prototype.fromName=function(t){var e=this.fromResourceName(t);return y(e.get(1)===this.databaseId.projectId,"Tried to deserialize key from different project: "+e.get(1)+" vs "+this.databaseId.projectId),y(!e.get(3)&&!this.databaseId.database||e.get(3)===this.databaseId.database,"Tried to deserialize key from different database: "+e.get(3)+" vs "+this.databaseId.database),new lt(this.extractLocalPathFromResourceName(e))},t.prototype.toQueryPath=function(t){return this.toResourceName(this.databaseId,t)},t.prototype.fromQueryPath=function(t){var e=this.fromResourceName(t);return 4===e.length?at.EMPTY_PATH:this.extractLocalPathFromResourceName(e)},Object.defineProperty(t.prototype,"encodedDatabaseId",{get:function(){return new at(["projects",this.databaseId.projectId,"databases",this.databaseId.database]).canonicalString()},enumerable:!0,configurable:!0}),t.prototype.fullyQualifiedPrefixPath=function(t){return new at(["projects",t.projectId,"databases",t.database])},t.prototype.extractLocalPathFromResourceName=function(t){return y(t.length>4&&"documents"===t.get(4),"tried to deserialize invalid key "+t.toString()),t.popFirst(5)},t.prototype.isValidResourceName=function(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)},t.prototype.toValue=function(t){if(t instanceof St)return{nullValue:"NULL_VALUE"};if(t instanceof Et)return{booleanValue:t.value()};if(t instanceof kt)return{integerValue:""+t.value()};if(t instanceof Tt){var e=t.value();if(this.options.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:t.value()}}return t instanceof Ot?{stringValue:t.value()}:t instanceof jt?{mapValue:this.toMapValue(t)}:t instanceof Rt?{arrayValue:this.toArrayValue(t)}
1:t instanceof At?{timestampValue:this.toTimestamp(t.internalValue)}:t instanceof Nt?{geoPointValue:{latitude:t.value().latitude,longitude:t.value().longitude}}:t instanceof Dt?{bytesValue:this.toBytes(t.value())}:t instanceof Pt?{referenceValue:this.toResourceName(t.databaseId,t.key.path)}:v("Unknown FieldValue "+JSON.stringify(t))},t.prototype.fromValue=function(t){var e=this,n=t.value_type;if(on(t,n,"nullValue"))return St.INSTANCE;if(on(t,n,"booleanValue"))return Et.of(t.booleanValue);if(on(t,n,"integerValue"))return new kt(nn(t.integerValue));if(on(t,n,"doubleValue")){if(this.options.useProto3Json){if("NaN"===t.doubleValue)return Tt.NAN;if("Infinity"===t.doubleValue)return Tt.POSITIVE_INFINITY;if("-Infinity"===t.doubleValue)return Tt.NEGATIVE_INFINITY}return new Tt(t.doubleValue)}if(on(t,n,"stringValue"))return new Ot(t.stringValue);if(on(t,n,"mapValue"))return this.fromFields(t.mapValue.fields||{});if(on(t,n,"arrayValue"))return en(t.arrayValue,"arrayValue"),new Rt((t.arrayValue.values||[]).map(function(t){return e.fromValue(t)}));if(on(t,n,"timestampValue"))return en(t.timestampValue,"timestampValue"),new At(this.fromTimestamp(t.timestampValue));if(on(t,n,"geoPointValue"))return en(t.geoPointValue,"geoPointValue"),new Nt(new tt(t.geoPointValue.latitude||0,t.geoPointValue.longitude||0));if(on(t,n,"bytesValue")){en(t.bytesValue,"bytesValue");var r=this.fromBlob(t.bytesValue);return new Dt(r)}if(on(t,n,"referenceValue")){en(t.referenceValue,"referenceValue");var i=this.fromResourceName(t.referenceValue),o=new it(i.get(1),i.get(3)),a=new lt(this.extractLocalPathFromResourceName(i));return new Pt(o,a)}return v("Unknown Value proto "+JSON.stringify(t))},t.prototype.toMutationDocument=function(t,e){return{name:this.toName(t),fields:this.toFields(e)}},t.prototype.toDocument=function(t){return y(!t.hasLocalMutations,"Can't serialize documents with mutations."),{name:this.toName(t.key),fields:this.toFields(t.data),updateTime:this.toTimestamp(t.version.toTimestamp())}},t.prototype.fromDocument=function(t,e){return new ht(this.fromName(t.name),this.fromVersion(t.updateTime),this.fromFields(t.fields||{}),{hasCommittedMutations:!!e})},t.prototype.toFields=function(t){var e=this,n={};return t.forEach(function(t,r){n[t]=e.toValue(r)}),n},t.prototype.fromFields=function(t){var e=this,n=jt.EMPTY;return T(t,function(t,r){n=n.set(new ut([t]),e.fromValue(r))}),n},t.prototype.toMapValue=function(t){return{fields:this.toFields(t)}},t.prototype.toArrayValue=function(t){var e=this,n=[];return t.forEach(function(t){n.push(e.toValue(t))}),{values:n}},t.prototype.fromFound=function(t){y(!!t.found,"Tried to deserialize a found document from a missing document."),en(t.found.name,"doc.found.name"),en(t.found.updateTime,"doc.found.updateTime");var e=this.fromName(t.found.name),n=this.fromVersion(t.found.updateTime),r=this.fromFields(t.found.fields||{});return new ht(e,n,r,{},t.found)},t.prototype.fromMissing=function(t){y(!!t.missing,"Tried to deserialize a missing document from a found document."),y(!!t.readTime,"Tried to deserialize a missing document without a read time.");var e=this.fromName(t.missing),n=this.fromVersion(t.readTime);return new ft(e,n)},t.prototype.fromMaybeDocument=function(t){var e=t.result;return on(t,e,"found")?this.fromFound(t):on(t,e,"missing")?this.fromMissing(t):v("invalid batch get response: "+JSON.stringify(t))},t.prototype.toWatchTargetChangeState=function(t){switch(t){case He.Added:return"ADD";case He.Current:return"CURRENT";case He.NoChange:return"NO_CHANGE";case He.Removed:return"REMOVE";case He.Reset:return"RESET";default:return v("Unknown WatchTargetChangeState: "+t)}},t.prototype.toTestWatchChange=function(t){if(t instanceof ze)return{filter:{count:t.existenceFilter.count,targetId:t.targetId}};if(t instanceof Be){var e;if(t.newDoc instanceof ht)return{documentChange:{document:{name:this.toName((e=t.newDoc).key),fields:this.toFields(e.data),updateTime:this.toVersion(e.version)},targetIds:t.updatedTargetIds,removedTargetIds:t.removedTargetIds}};if(t.newDoc instanceof ft)return{documentDelete:{document:this.toName((e=t.newDoc).key),readTime:this.toVersion(e.version),removedTargetIds:t.removedTargetIds}};if(null===t.newDoc)return{documentRemove:{document:this.toName(t.key),removedTargetIds:t.removedTargetIds}}}if(t instanceof Ge){var n=void 0;return t.cause&&(n={code:Ee(t.cause.code),message:t.cause.message}),{targetChange:{targetChangeType:this.toWatchTargetChangeState(t.state),targetIds:t.targetIds,resumeToken:this.unsafeCastProtoByteString(t.resumeToken),cause:n}}}
1return v("Unrecognized watch change: "+JSON.stringify(t))},t.prototype.fromWatchChange=function(t){var e,n=t.response_type;if(on(t,n,"targetChange")){en(t.targetChange,"targetChange");var r=this.fromWatchTargetChangeState(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=t.targetChange.resumeToken||this.emptyByteString(),a=t.targetChange.cause,s=a&&this.fromRpcStatus(a);e=new Ge(r,i,o,s||null)}else if(on(t,n,"documentChange")){en(t.documentChange,"documentChange"),en(t.documentChange.document,"documentChange.name"),en(t.documentChange.document.name,"documentChange.document.name"),en(t.documentChange.document.updateTime,"documentChange.document.updateTime");var u=t.documentChange,l=this.fromName(u.document.name),c=this.fromVersion(u.document.updateTime),h=this.fromFields(u.document.fields||{}),f=new ht(l,c,h,{},u.document);e=new Be(u.targetIds||[],u.removedTargetIds||[],f.key,f)}else if(on(t,n,"documentDelete")){en(t.documentDelete,"documentDelete"),en(t.documentDelete.document,"documentDelete.document");var d=t.documentDelete;l=this.fromName(d.document),c=d.readTime?this.fromVersion(d.readTime):Zt.forDeletedDoc(),f=new ft(l,c),e=new Be([],d.removedTargetIds||[],f.key,f)}else if(on(t,n,"documentRemove")){en(t.documentRemove,"documentRemove"),en(t.documentRemove.document,"documentRemove");var p=t.documentRemove;l=this.fromName(p.document),e=new Be([],p.removedTargetIds||[],l,null)}else{if(!on(t,n,"filter"))return v("Unknown change type "+JSON.stringify(t));en(t.filter,"filter"),en(t.filter.targetId,"filter.targetId");var m=t.filter,g=new be(m.count||0);e=new ze(m.targetId,g)}return e},t.prototype.fromWatchTargetChangeState=function(t){return"NO_CHANGE"===t?He.NoChange:"ADD"===t?He.Added:"REMOVE"===t?He.Removed:"CURRENT"===t?He.Current:"RESET"===t?He.Reset:v("Got unexpected TargetChange.state: "+t)},t.prototype.versionFromListenResponse=function(t){if(!on(t,t.response_type,"targetChange"))return Zt.MIN;var e=t.targetChange;return e.targetIds&&e.targetIds.length?Zt.MIN:e.readTime?this.fromVersion(e.readTime):Zt.MIN},t.prototype.toMutation=function(t){var e,n=this;if(t instanceof ce)e={update:this.toMutationDocument(t.key,t.value)};else if(t instanceof de)e={delete:this.toName(t.key)};else if(t instanceof he)e={update:this.toMutationDocument(t.key,t.data),updateMask:this.toDocumentMask(t.fieldMask)};else{if(!(t instanceof fe))return v("Unknown mutation type "+t.type);e={transform:{document:this.toName(t.key),fieldTransforms:t.fieldTransforms.map(function(t){return n.toFieldTransform(t)})}}}return t.precondition.isNone||(e.currentDocument=this.toPrecondition(t.precondition)),e},t.prototype.fromMutation=function(t){var e=this,n=t.currentDocument?this.fromPrecondition(t.currentDocument):ue.NONE;if(t.update){en(t.update.name,"name");var r=this.fromName(t.update.name),i=this.fromFields(t.update.fields||{});if(t.updateMask){var o=this.fromDocumentMask(t.updateMask);return new he(r,i,o,n)}return new ce(r,i,n)}if(t.delete)return r=this.fromName(t.delete),new de(r,n);if(t.transform){r=this.fromName(t.transform.document);var a=t.transform.fieldTransforms.map(function(t){return e.fromFieldTransform(t)});return y(!0===n.exists,'Transforms only support precondition "exists == true"'),new fe(r,a)}return v("unknown mutation proto: "+JSON.stringify(t))},t.prototype.toPrecondition=function(t){return y(!t.isNone,"Can't serialize an empty precondition"),void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:v("Unknown precondition")},t.prototype.fromPrecondition=function(t){return void 0!==t.updateTime?ue.updateTime(this.fromVersion(t.updateTime)):void 0!==t.exists?ue.exists(t.exists):ue.NONE},t.prototype.fromWriteResult=function(t,e){var n=this,r=this.fromVersion(t.updateTime?t.updateTime:e),i=null;return t.transformResults&&t.transformResults.length>0&&(i=t.transformResults.map(function(t){return n.fromValue(t)})),new ae(r,i)},t.prototype.fromWriteResults=function(t,e){var n=this;return t&&t.length>0?(y(void 0!==e,"Received a write result without a commit time"),t.map(function(t){return n.fromWriteResult(t,e)})):[]},t.prototype.toFieldTransform=function(t){var e=this,n=t.transform;if(n instanceof pe)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof me)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements.map(function(t){return e.toValue(t)})}};if(n instanceof ge)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements.map(function(t){return e.toValue(t)})}};if(n instanceof ve)return{fieldPath:t.field.canonicalString(),increment:this.toValue(n.operand)};
1throw v("Unknown transform: "+t.transform)},t.prototype.fromFieldTransform=function(t){var e=this,n=t.transform_type,r=null;if(on(t,n,"setToServerValue"))y("REQUEST_TIME"===t.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(t)),r=pe.instance;else if(on(t,n,"appendMissingElements"))r=new me((t.appendMissingElements.values||[]).map(function(t){return e.fromValue(t)}));else if(on(t,n,"removeAllFromArray"))r=new ge((t.removeAllFromArray.values||[]).map(function(t){return e.fromValue(t)}));else if(on(t,n,"increment")){var i=this.fromValue(t.increment);y(i instanceof Ct,"NUMERIC_ADD transform requires a NumberValue"),r=new ve(i)}else v("Unknown transform proto: "+JSON.stringify(t));var o=ut.fromServerFormat(t.fieldPath);return new oe(o,r)},t.prototype.toDocumentsTarget=function(t){return{documents:[this.toQueryPath(t.path)]}},t.prototype.fromDocumentsTarget=function(t){var e=t.documents.length;return y(1===e,"DocumentsTarget contained other than 1 document: "+e),Bt.atPath(this.fromQueryPath(t.documents[0]))},t.prototype.toQueryTarget=function(t){var e={structuredQuery:{}},n=t.path;null!==t.collectionGroup?(y(n.length%2==0,"Collection Group queries should be within a document path or root."),e.parent=this.toQueryPath(n),e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(y(n.length%2!=0,"Document queries with filters are not supported."),e.parent=this.toQueryPath(n.popLast()),e.structuredQuery.from=[{collectionId:n.lastSegment()}]);var r=this.toFilter(t.filters);r&&(e.structuredQuery.where=r);var i=this.toOrder(t.orderBy);i&&(e.structuredQuery.orderBy=i);var o=this.toInt32Value(t.limit);return void 0!==o&&(e.structuredQuery.limit=o),t.startAt&&(e.structuredQuery.startAt=this.toCursor(t.startAt)),t.endAt&&(e.structuredQuery.endAt=this.toCursor(t.endAt)),e},t.prototype.fromQueryTarget=function(t){var e=this.fromQueryPath(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){y(1===r,"StructuredQuery.from with more than one collection is not supported.");var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=this.fromFilter(n.where));var s=[];n.orderBy&&(s=this.fromOrder(n.orderBy));var u=null;n.limit&&(u=this.fromInt32Value(n.limit));var l=null;n.startAt&&(l=this.fromCursor(n.startAt));var c=null;return n.endAt&&(c=this.fromCursor(n.endAt)),new Bt(e,i,s,a,u,l,c)},t.prototype.toListenRequestLabels=function(t){var e=this.toLabel(t.purpose);return null==e?null:{"goog-listen-tags":e}},t.prototype.toLabel=function(t){switch(t){case te.Listen:return null;case te.ExistenceFilterMismatch:return"existence-filter-mismatch";case te.LimboResolution:return"limbo-document";default:return v("Unrecognized query purpose: "+t)}},t.prototype.toTarget=function(t){var e,n=t.query;return(e=n.isDocumentQuery()?{documents:this.toDocumentsTarget(n)}:{query:this.toQueryTarget(n)}).targetId=t.targetId,t.resumeToken.length>0&&(e.resumeToken=this.unsafeCastProtoByteString(t.resumeToken)),e},t.prototype.toFilter=function(t){var e=this;if(0!==t.length){var n=t.map(function(t){return t instanceof Gt?e.toRelationFilter(t):e.toUnaryFilter(t)});return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},t.prototype.fromFilter=function(t){var e=this;return t?void 0!==t.unaryFilter?[this.fromUnaryFilter(t)]:void 0!==t.fieldFilter?[this.fromRelationFilter(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return e.fromFilter(t)}).reduce(function(t,e){return t.concat(e)}):v("Unknown filter: "+JSON.stringify(t)):[]},t.prototype.toOrder=function(t){var e=this;if(0!==t.length)return t.map(function(t){return e.toPropertyOrder(t)})},t.prototype.fromOrder=function(t){var e=this;return t.map(function(t){return e.fromPropertyOrder(t)})},t.prototype.toCursor=function(t){var e=this;return{before:t.before,values:t.position.map(function(t){return e.toValue(t)})}},t.prototype.fromCursor=function(t){var e=this,n=!!t.before,r=t.values.map(function(t){return e.fromValue(t)});return new Qt(r,n)},t.prototype.toDirection=function(t){return Ye[t.name]},t.prototype.fromDirection=function(t){switch(t){case"ASCENDING":return Wt.ASCENDING;case"DESCENDING":return Wt.DESCENDING;default:return}},t.prototype.toOperatorName=function(t){return Ze[t.name]},t.prototype.fromOperatorName=function(t){switch(t){case"EQUAL":return Ht.EQUAL;case"GREATER_THAN":return Ht.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return Ht.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return Ht.LESS_THAN;case"LESS_THAN_OR_EQUAL":return Ht.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return Ht.ARRAY_CONTAINS;case"OPERATOR_UNSPECIFIED":return v("Unspecified relation");default:return v("Unknown relation")}},t.prototype.toFieldPathReference=function(t){return{fieldPath:t.canonicalString()}},t.prototype.fromFieldPathReference=function(t){return ut.fromServerFormat(t.fieldPath)},t.prototype.toPropertyOrder=function(t){return{field:this.toFieldPathReference(t.field),direction:this.toDirection(t.dir)}},t.prototype.fromPropertyOrder=function(t){return new Jt(this.fromFieldPathReference(t.field),this.fromDirection(t.direction))},t.prototype.toRelationFilter=function(t){return t instanceof Gt?{fieldFilter:{field:this.toFieldPathReference(t.field),op:this.toOperatorName(t.op),value:this.toValue(t.value)}}:v("Unrecognized filter: "+JSON.stringify(t))},t.prototype.fromRelationFilter=function(t){return new Gt(this.fromFieldPathReference(t.fieldFilter.field),this.fromOperatorName(t.fieldFilter.op),this.fromValue(t.fieldFilter.value))},t.prototype.toUnaryFilter=function(t){return t instanceof Kt?{unaryFilter:{field:this.toFieldPathReference(t.field),op:"IS_NAN"}}:t instanceof $t?{unaryFilter:{field:this.toFieldPathReference(t.field),op:"IS_NULL"}}:v("Unrecognized filter: "+JSON.stringify(t))},t.prototype.fromUnaryFilter=function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=this.fromFieldPathReference(t.unaryFilter.field);return new Kt(e);case"IS_NULL":var n=this.fromFieldPathReference(t.unaryFilter.field);return new $t(n);case"OPERATOR_UNSPECIFIED":return v("Unspecified filter");default:return v("Unknown filter")}},t.prototype.toDocumentMask=function(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}},t.prototype.fromDocumentMask=function(t){var e=(t.fieldPaths||[]).map(function(t){return ut.fromServerFormat(t)});return ie.fromArray(e)},t}();function on(t,e,n){return e===n||!e&&n in t}var an=function(){function t(t){this.sendFn=t.sendFn,this.closeFn=t.closeFn}return t.prototype.onOpen=function(t){y(!this.wrappedOnOpen,"Called onOpen on stream twice!"),this.wrappedOnOpen=t},t.prototype.onClose=function(t){y(!this.wrappedOnClose,"Called onClose on stream twice!"),this.wrappedOnClose=t},t.prototype.onMessage=function(t){y(!this.wrappedOnMessage,"Called onMessage on stream twice!"),this.wrappedOnMessage=t},t.prototype.close=function(){this.closeFn()},t.prototype.send=function(t){this.sendFn(t)},t.prototype.callOnOpen=function(){y(void 0!==this.wrappedOnOpen,"Cannot call onOpen because no callback was set"),this.wrappedOnOpen()},t.prototype.callOnClose=function(t){y(void 0!==this.wrappedOnClose,"Cannot call onClose because no callback was set"),this.wrappedOnClose(t)},t.prototype.callOnMessage=function(t){y(void 0!==this.wrappedOnMessage,"Cannot call onMessage because no callback was set"),this.wrappedOnMessage(t)},t}(),sn="Connection",un={BatchGetDocuments:"batchGet",Commit:"commit"},ln="gl-js/ fire/"+l,cn=function(){function t(t){this.databaseId=t.databaseId,this.baseUrl=(t.ssl?"https":"http")+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.modifyHeadersForRequest=function(t,e){if(e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n]);t["X-Goog-Api-Client"]=ln},t.prototype.invokeRPC=function(t,e,n){var r=this,i=this.makeUrl(t);return new Promise(function(o,a){var u=new s.XhrIo;
1u.listenOnce(s.EventType.COMPLETE,function(){try{switch(u.getLastErrorCode()){case s.ErrorCode.NO_ERROR:var e=u.getResponseJson();p(sn,"XHR received:",JSON.stringify(e)),o(e);break;case s.ErrorCode.TIMEOUT:p(sn,'RPC "'+t+'" timed out'),a(new S(_.DEADLINE_EXCEEDED,"Request time out"));break;case s.ErrorCode.HTTP_ERROR:var n=u.getStatus();p(sn,'RPC "'+t+'" failed with status:',n,"response text:",u.getResponseText()),n>0?a(new S(function(t){switch(t){case 200:return _.OK;case 400:return _.INVALID_ARGUMENT;case 401:return _.UNAUTHENTICATED;case 403:return _.PERMISSION_DENIED;case 404:return _.NOT_FOUND;case 409:return _.ABORTED;case 416:return _.OUT_OF_RANGE;case 429:return _.RESOURCE_EXHAUSTED;case 499:return _.CANCELLED;case 500:return _.UNKNOWN;case 501:return _.UNIMPLEMENTED;case 503:return _.UNAVAILABLE;case 504:return _.DEADLINE_EXCEEDED;default:return t>=200&&t<300?_.OK:t>=400&&t<500?_.FAILED_PRECONDITION:t>=500&&t<600?_.INTERNAL:_.UNKNOWN}}(n),"Server responded with status "+u.getStatusText())):(p(sn,'RPC "'+t+'" failed'),a(new S(_.UNAVAILABLE,"Connection failed.")));break;default:v('RPC "'+t+'" failed with unanticipated webchannel error '+u.getLastErrorCode()+": "+u.getLastError()+", giving up.")}}finally{p(sn,'RPC "'+t+'" completed.')}});var l=JSON.stringify(e);p(sn,"XHR sending: ",i+" "+l);var c={"Content-Type":"text/plain"};r.modifyHeadersForRequest(c,n),u.send(i,"POST",l,c,15)})},t.prototype.invokeStreamingRPC=function(t,e,n){return this.invokeRPC(t,e,n)},t.prototype.openStream=function(t,e){var n=[this.baseUrl,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=s.createWebChannelTransport(),i={backgroundChannelTest:!0,httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.modifyHeadersForRequest(i.initMessageHeaders,e),u.isReactNative()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");p(sn,"Creating WebChannel: "+o+" "+i);var a=r.createWebChannel(o,i),l=!1,c=!1,h=new an({sendFn:function(t){c?p(sn,"Not sending because WebChannel is closed:",t):(l||(p(sn,"Opening WebChannel transport."),a.open(),l=!0),p(sn,"WebChannel sending:",t),a.send(t))},closeFn:function(){return a.close()}}),f=function(t,e){a.listen(t,function(t){try{e(t)}catch(n){setTimeout(function(){throw n},0)}})};return f(s.WebChannel.EventType.OPEN,function(){c||p(sn,"WebChannel transport opened.")}),f(s.WebChannel.EventType.CLOSE,function(){c||(c=!0,p(sn,"WebChannel transport closed"),h.callOnClose())}),f(s.WebChannel.EventType.ERROR,function(t){c||(c=!0,p(sn,"WebChannel transport errored:",t),h.callOnClose(new S(_.UNAVAILABLE,"The operation could not be completed")))}),f(s.WebChannel.EventType.MESSAGE,function(t){if(!c){var e=t.data[0];y(!!e,"Got a webchannel message without data.");var n=e.error||e[0]&&e[0].error;if(n){p(sn,"WebChannel received error:",n);var r=n.status,i=function(t){var e=we[r];if(void 0!==e)return Se(e)}(),o=n.message;void 0===i&&(i=_.INTERNAL,o="Unknown error status: "+r+" with message "+n.message),c=!0,h.callOnClose(new S(i,o)),a.close()}else p(sn,"WebChannel received:",e),h.callOnMessage(e)}}),setTimeout(function(){h.callOnOpen()},0),h},t.prototype.makeUrl=function(t){var e=un[t];y(void 0!==e,"Unknown REST mapping for: "+t);var n=[this.baseUrl,"/","v1"];return n.push("/projects/"),n.push(this.databaseId.projectId),n.push("/databases/"),n.push(this.databaseId.database),n.push("/documents"),n.push(":"),n.push(e),n.join("")},t}();b.setPlatform(new(function(){function t(){this.emptyByteString="",this.base64Available="undefined"!=typeof atob}return Object.defineProperty(t.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),t.prototype.loadConnection=function(t){return Promise.resolve(new cn(t))}
1,t.prototype.newSerializer=function(t){return new rn(t,{useProto3Json:!0})},t.prototype.formatJSON=function(t){return JSON.stringify(t)},t.prototype.atob=function(t){return atob(t)},t.prototype.btoa=function(t){return btoa(t)},t}()));var hn,fn=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.setPreviousValue(t)},this.writeNewSequenceNumber=function(t){return e.writeSequenceNumber(t)})}return t.prototype.setPreviousValue=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.writeNewSequenceNumber&&this.writeNewSequenceNumber(t),t},t.INVALID=-1,t}(),dn=function(){return function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}}();!function(t){t.All="all",t.ListenStreamIdle="listen_stream_idle",t.ListenStreamConnectionBackoff="listen_stream_connection_backoff",t.WriteStreamIdle="write_stream_idle",t.WriteStreamConnectionBackoff="write_stream_connection_backoff",t.OnlineStateTimeout="online_state_timeout",t.ClientMetadataRefresh="client_metadata_refresh",t.LruGarbageCollection="lru_garbage_collection"}(hn||(hn={}));var pn=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 dn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.catch=this.deferred.promise.catch.bind(this.deferred.promise),this.deferred.promise.catch(function(t){})}return t.createAndSchedule=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.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 S(_.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},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}(),mn=function(){function t(){this.tail=Promise.resolve(),this.delayedOperations=[],this.operationInProgress=!1}return t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueue=function(t){var e=this;this.verifyNotFailed();var n=this.tail.then(function(){return e.operationInProgress=!0,t().catch(function(t){e.failure=t,e.operationInProgress=!1;var n=t.stack||t.message||"";throw m("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout(function(){throw t},0),t}).then(function(t){return e.operationInProgress=!1,t})});return this.tail=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.verifyNotFailed(),y(e>=0,"Attempted to schedule an operation with a negative delay of "+e),y(!this.containsDelayedOperation(t),"Attempted to schedule multiple operations with timer id "+t+".");var i=pn.createAndSchedule(this,t,e,n,function(t){return r.removeDelayedOperation(t)});return this.delayedOperations.push(i),i},t.prototype.verifyNotFailed=function(){this.failure&&v("AsyncQueue is already failed: "+(this.failure.stack||this.failure.message))},t.prototype.verifyOperationInProgress=function(){y(this.operationInProgress,"verifyOpInProgress() called when no op in progress on this queue.")},t.prototype.drain=function(){return this.enqueue(function(){return Promise.resolve()})},t.prototype.containsDelayedOperation=function(t){for(var e=0,n=this.delayedOperations;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.runDelayedOperationsEarly=function(t){var e=this;return this.drain().then(function(){y(t===hn.All||e.containsDelayedOperation(t),"Attempted to drain to missing operation "+t),e.delayedOperations.sort(function(t,e){return t.targetTimeMs-e.targetTimeMs});for(var n=0,r=e.delayedOperations;n<r.length;n++){var i=r[n];if(i.skipDelay(),t!==hn.All&&i.timerId===t)break}return e.drain()})},t.prototype.removeDelayedOperation=function(t){var e=this.delayedOperations.indexOf(t);y(e>=0,"Delayed operation not found."),this.delayedOperations.splice(e,1)},t}(),gn="\x01",vn="\x01",yn="\x10",bn="\x11";function wn(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Sn(e)),e=_n(t.get(n),e);return Sn(e)}function _n(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+=gn+yn;break;case gn:n+=gn+bn;break;default:n+=o}}return n}function Sn(t){return t+gn+vn}function En(t){var e=t.length;if(y(e>=2,"Invalid path "+t),2===e)return y(t.charAt(0)===gn&&t.charAt(1)===vn,"Non-empty path "+t+" had length 2"),at.EMPTY_PATH;for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf(gn,o);switch((a<0||a>n)&&v('Invalid encoded resource path: "'+t+'"'),t.charAt(a+1)){case vn:var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case yn:i+=t.substring(o,a),i+="\0";break;case bn:i+=t.substring(o,a+1);break;default:v('Invalid encoded resource path: "'+t+'"')}o=a+2}return new at(r)}var Cn=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r,y(r.length>0,"Cannot create an empty mutation batch")}return t.prototype.applyToRemoteDocument=function(t,e,n){e&&y(e.key.isEqual(t),"applyToRemoteDocument: key "+t+" should match maybeDoc key\n "+e.key);var r=n.mutationResults;y(r.length===this.mutations.length,"Mismatch between mutations length\n ("+this.mutations.length+") and mutation results length\n ("+r.length+").");for(var i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=o.applyToRemoteDocument(e,r[i]))}return e},t.prototype.applyToLocalView=function(t,e){e&&y(e.key.isEqual(t),"applyToLocalDocument: key "+t+" should match maybeDoc key\n "+e.key);for(var n=0,r=this.baseMutations;n<r.length;n++)(s=r[n]).key.isEqual(t)&&(e=s.applyToLocalView(e,e,this.localWriteTime));for(var i=e,o=0,a=this.mutations;o<a.length;o++){var s;(s=a[o]).key.isEqual(t)&&(e=s.applyToLocalView(e,i,this.localWriteTime))}return e},t.prototype.applyToLocalDocumentSet=function(t){var e=this,n=t;return this.mutations.forEach(function(r){var i=e.applyToLocalView(r.key,t.get(r.key));i&&(n=n.insert(r.key,i))}),n},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},Pe())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&W(this.mutations,t.mutations)&&W(this.baseMutations,t.baseMutations)},t}(),In=function(){function t(t,e,n,r,i){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.streamToken=r,this.docVersions=i}return t.from=function(e,n,r,i){y(e.mutations.length===r.length,"Mutations sent "+e.mutations.length+" must equal results received "+r.length);for(var o=xe(),a=e.mutations,s=0;s<a.length;s++)o=o.insert(a[s].key,r[s].version);return new t(e,n,r,i,o)},t}(),kn=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&&v("Called next() or catch() twice for PersistencePromise"),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(r){return t.reject(r)}},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;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach(function(t,i){r.push(e.call(n,t,i))}),this.waitFor(r)},t}(),Tn=function(){function t(t,e,n,r){this.userId=t,this.serializer
1=e,this.indexManager=n,this.referenceDelegate=r,this.documentKeysByBatchId={}}return t.forUser=function(e,n,r,i){return y(""!==e.uid,"UserID must not be an empty string."),new t(e.isAuthenticated()?e.uid:"",n,r,i)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Dn(t).iterate({index:cr.userMutationsIndex,range:n},function(t,n,r){e=!1,r.done()}).next(function(){return e})},t.prototype.acknowledgeBatch=function(t,e,n){return this.getMutationQueueMetadata(t).next(function(e){return e.lastStreamToken=xn(n),Nn(t).put(e)})},t.prototype.getLastStreamToken=function(t){return this.getMutationQueueMetadata(t).next(function(t){return t.lastStreamToken})},t.prototype.setLastStreamToken=function(t,e){return this.getMutationQueueMetadata(t).next(function(n){return n.lastStreamToken=xn(e),Nn(t).put(n)})},t.prototype.addMutationBatch=function(t,e,n,r){var i=this,o=Pn(t),a=Dn(t);return a.add({}).next(function(s){y("number"==typeof s,"Auto-generated key is not a number");var u=new Cn(s,e,n,r),l=i.serializer.toDbMutationBatch(i.userId,u);i.documentKeysByBatchId[s]=u.keys();for(var c=[],h=0,f=r;h<f.length;h++){var d=f[h],p=hr.key(i.userId,d.key.path,s);c.push(a.put(l)),c.push(o.put(p,hr.PLACEHOLDER)),c.push(i.indexManager.addToCollectionParentIndex(t,d.key.path.popLast()))}return kn.waitFor(c).next(function(){return u})})},t.prototype.lookupMutationBatch=function(t,e){var n=this;return Dn(t).get(e).next(function(t){return t?(y(t.userId===n.userId,"Unexpected user '"+t.userId+"' for mutation batch "+e),n.serializer.fromDbMutationBatch(t)):null})},t.prototype.lookupMutationKeys=function(t,e){var n=this;return this.documentKeysByBatchId[e]?kn.resolve(this.documentKeysByBatchId[e]):this.lookupMutationBatch(t,e).next(function(t){if(t){var r=t.keys();return n.documentKeysByBatchId[e]=r,r}return null})},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this;return this.getMutationQueueMetadata(t).next(function(r){var i=e+1,o=IDBKeyRange.lowerBound([n.userId,i]),a=null;return Dn(t).iterate({index:cr.userMutationsIndex,range:o},function(t,e,r){e.userId===n.userId&&(y(e.batchId>=i,"Should have found mutation after "+i),a=n.serializer.fromDbMutationBatch(e)),r.done()}).next(function(){return a})})},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Dn(t).loadAll(cr.userMutationsIndex,n).next(function(t){return t.map(function(t){return e.serializer.fromDbMutationBatch(t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=hr.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Pn(t).iterate({range:i},function(r,i,a){var s=r[0],u=r[2],l=En(r[1]);if(s===n.userId&&e.path.isEqual(l))return Dn(t).get(u).next(function(t){if(!t)throw v("Dangling document-mutation reference found: "+r+" which points to "+u);y(t.userId===n.userId,"Unexpected user '"+t.userId+"' for mutation batch "+u),o.push(n.serializer.fromDbMutationBatch(t))});a.done()}).next(function(){return o})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new ne(K),i=[];return e.forEach(function(e){var o=hr.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=Pn(t).iterate({range:a},function(t,i,o){var a=t[0],s=t[2],u=En(t[1]);a===n.userId&&e.path.isEqual(u)?r=r.add(s):o.done()});i.push(s)}),kn.waitFor(i).next(function(){return n.lookupMutationBatches(t,r)})},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this;y(!e.isDocumentQuery(),"Document queries shouldn't go down this path"),y(!e.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var r=e.path,i=r.length+1,o=hr.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new ne(K);return Pn(t).iterate({range:a},function(t,e,o){var a=t[0],u=t[2],l=En(t[1]);a===n.userId&&r.isPrefixOf(l)?l.length===i&&(s=s.add(u)):o.done()}).next(function(){return n.lookupMutationBatches(t,s)})},t.prototype.lookupMutationBatches=function(t,e){var n=this,r=[],i=[];return e.forEach(function(e){i.push(Dn(t).get(e).next(function(t){if(null===t)throw v("Dangling document-mutation reference found, which points to "+e);y(t.userId===n.userId,"Unexpected user '"+t.userId+"' for mutation batch "+e),r.push(n.serializer.fromDbMutationBatch(t))}))}),kn.waitFor(i).next(function(){return r})},t.prototype.removeMutationBatch=function(t,e){var n=this;return An(t.simpleDbTransaction,this.userId,e).next(function(r){return n.removeCachedMutationKeys(e.batchId),kn.forEach(r,function(e){return n.referenceDelegate.removeMutationReference(t,e)})})},t.prototype.removeCachedMutationKeys=function(t){delete this.documentKeysByBatchId[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next(function(n){if(!n)return kn.resolve();
1var r=IDBKeyRange.lowerBound(hr.prefixForUser(e.userId)),i=[];return Pn(t).iterate({range:r},function(t,n,r){if(t[0]===e.userId){var o=En(t[1]);i.push(o)}else r.done()}).next(function(){y(0===i.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+i.map(function(t){return t.canonicalString()}))})})},t.prototype.containsKey=function(t,e){return On(t,this.userId,e)},t.prototype.getMutationQueueMetadata=function(t){var e=this;return Nn(t).get(this.userId).next(function(t){return t||new lr(e.userId,-1,"")})},t}();function On(t,e,n){var r=hr.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Pn(t).iterate({range:o,keysOnly:!0},function(t,n,r){t[0]===e&&t[1]===i&&(a=!0),r.done()}).next(function(){return a})}function An(t,e,n){var r=t.store(cr.store),i=t.store(hr.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.iterate({range:a},function(t,e,n){return s++,n.delete()});o.push(u.next(function(){y(1===s,"Dangling document-mutation reference found: Missing batch "+n.batchId)}));for(var l=[],c=0,h=n.mutations;c<h.length;c++){var f=h[c],d=hr.key(e,f.key.path,n.batchId);o.push(i.delete(d)),l.push(f.key)}return kn.waitFor(o).next(function(){return l})}function xn(t){return t instanceof Uint8Array?(y("YES"===process.env.USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence."),t.toString()):t}function Dn(t){return Fr.getStore(t,cr.store)}function Pn(t){return Fr.getStore(t,hr.store)}function Nn(t){return Fr.getStore(t,lr.store)}var jn=1,Rn=function(t){return t[t.QueryCache=0]="QueryCache",t[t.SyncEngine=1]="SyncEngine",t}({}),Mn=function(){function t(t,e){this.generatorId=t,y((t&jn)===t,"Generator ID "+t+" contains more than "+jn+" reserved bits"),this.seek(void 0!==e?e:this.generatorId)}return t.prototype.next=function(){var t=this.nextId;return this.nextId+=1<<jn,t},t.prototype.after=function(t){return this.seek(t+(1<<jn)),this.next()},t.prototype.seek=function(t){y((t&jn)===this.generatorId,"Cannot supply target ID from different generator ID"),this.nextId=t},t.forQueryCache=function(){return new t(Rn.QueryCache,2)},t.forSyncEngine=function(){return new t(Rn.SyncEngine)},t}(),Ln=function(){function t(t){this.db=t}return t.openOrCreate=function(e,n,r){return y(t.isAvailable(),"IndexedDB not supported in current environment."),p("SimpleDb","Opening database:",e),new kn(function(i,o){var a=window.indexedDB.open(e,n);a.onsuccess=function(e){i(new t(e.target.result))},a.onblocked=function(){o(new S(_.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},a.onerror=function(t){var e=t.target.error;o("VersionError"===e.name?new S(_.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."):e)},a.onupgradeneeded=function(t){p("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion);var n=t.target.result,i=new Vn(a.transaction);r.createOrUpgrade(n,i,t.oldVersion,or).next(function(){p("SimpleDb","Database upgrade to version "+or+" complete")})}}).toPromise()},t.delete=function(t){return p("SimpleDb","Removing database:",t),qn(window.indexedDB.deleteDatabase(t)).toPromise()},t.isAvailable=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(void 0===window.navigator)return"YES"===process.env.USE_MOCK_PERSISTENCE;var e=window.navigator.userAgent,n=t.getIOSVersion(e),r=0<n&&n<10,i=t.getAndroidVersion(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.getStore=function(t,e){return t.store(e)},t.getIOSVersion=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_")[0]:"-1";return Number(n)},t.getAndroidVersion=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.runTransaction=function(t,e,n){var r=Vn.open(this.db,t,e),i=n(r).catch(function(t){return r.abort(t),kn.reject(t)}).toPromise();return i.catch(function(){}),r.completionPromise.then(function(){return i})},t.prototype.close=function(){this.db.close()},t}(),Fn=function(){function t(t){this.dbCursor=t,this.shouldStop=!1,this.nextKey=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.shouldStop},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipToKey",{get:function(){return this.nextKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.dbCursor=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.shouldStop=!0},t.prototype.skip=function(t){this.nextKey=t},t.prototype.delete=function(){return qn(this.dbCursor.delete())},t}(),Vn=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.completionDeferred=new dn,this.transaction.oncomplete=function(){e.completionDeferred.resolve()},this.transaction.onabort=function(){t.error?e.completionDeferred.reject(t.error):e.completionDeferred.resolve()},this.transaction.onerror=function(t){e.completionDeferred.reject(t.target.error)}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"completionPromise",{get:function(){return this.completionDeferred.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.completionDeferred.reject(t),this.aborted||(p("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return y(!!e,"Object store not part of transaction: "+t),new Un(e)},t}(),Un=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(p("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),qn(n)},t.prototype.add=function(t){return p("SimpleDb","ADD",this.store.name,t,t),qn(this.store.add(t))},t.prototype.get=function(t){var e=this;return qn(this.store.get(t)).next(function(n){return void 0===n&&(n=null),p("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return p("SimpleDb","DELETE",this.store.name,t),qn(this.store.delete(t))},t.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),qn(this.store.count())},t.prototype.loadAll=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.iterateCursor(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.deleteAll=function(t,e){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.keysOnly=!1;var r=this.cursor(n);return this.iterateCursor(r,function(t,e,n){return n.delete()})},t.prototype.iterate=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.iterateCursor(r,e)},t.prototype.iterateSerial=function(t){var e=this.cursor({});return new kn(function(n,r){e.onerror=function(t){r(t.target.error)},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.iterateCursor=function(t,e){var n=[];return new kn(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 Fn(i),a=e(i.primaryKey,i.value,o);if(a instanceof kn){var s=a.catch(function(t){return o.done(),kn.reject(t)});n.push(s)}o.isDone?r():null===o.skipToKey?i.continue():i.continue(o.skipToKey)}else r()}}).next(function(){return kn.waitFor(n)})},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:(y(void 0===e,"3rd argument must not be defined if 2nd is a range."),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.keysOnly?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function qn(t){return new kn(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){n(t.target.error)}})}var Bn=function(){function t(t,e){this.referenceDelegate=t,this.serializer
1=e,this.targetIdGenerator=Mn.forQueryCache()}return t.prototype.allocateTargetId=function(t){var e=this;return this.retrieveMetadata(t).next(function(n){return n.highestTargetId=e.targetIdGenerator.after(n.highestTargetId),e.saveMetadata(t,n).next(function(){return n.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.retrieveMetadata(t).next(function(t){return Zt.fromTimestamp(new et(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return Gn(t.simpleDbTransaction)},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.retrieveMetadata(t).next(function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.saveMetadata(t,i)})},t.prototype.addQueryData=function(t,e){var n=this;return this.saveQueryData(t,e).next(function(){return n.retrieveMetadata(t).next(function(r){return r.targetCount+=1,n.updateMetadataFromQueryData(e,r),n.saveMetadata(t,r)})})},t.prototype.updateQueryData=function(t,e){return this.saveQueryData(t,e)},t.prototype.removeQueryData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next(function(){return zn(t).delete(e.targetId)}).next(function(){return n.retrieveMetadata(t)}).next(function(e){return y(e.targetCount>0,"Removing from an empty query cache"),e.targetCount-=1,n.saveMetadata(t,e)})},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return zn(t).iterate(function(a,s){var u=r.serializer.fromDbTarget(s);u.sequenceNumber<=e&&void 0===n[u.targetId]&&(i++,o.push(r.removeQueryData(t,u)))}).next(function(){return kn.waitFor(o)}).next(function(){return i})},t.prototype.forEachTarget=function(t,e){var n=this;return zn(t).iterate(function(t,r){var i=n.serializer.fromDbTarget(r);e(i)})},t.prototype.retrieveMetadata=function(t){return Hn(t.simpleDbTransaction)},t.prototype.saveMetadata=function(t,e){return(n=t,Fr.getStore(n,yr.store)).put(yr.key,e);var n},t.prototype.saveQueryData=function(t,e){return zn(t).put(this.serializer.toDbTarget(e))},t.prototype.updateMetadataFromQueryData=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.getQueryCount=function(t){return this.retrieveMetadata(t).next(function(t){return t.targetCount})},t.prototype.getQueryData=function(t,e){var n=this,r=e.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return zn(t).iterate({range:i,index:gr.queryTargetsIndexName},function(t,r,i){var a=n.serializer.fromDbTarget(r);e.isEqual(a.query)&&(o=a,i.done())}).next(function(){return o})},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],o=$n(t);return e.forEach(function(e){var a=wn(e.path);i.push(o.put(new vr(n,a))),i.push(r.referenceDelegate.addReference(t,e))}),kn.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=$n(t);return kn.forEach(e,function(e){var o=wn(e.path);return kn.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(t,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=$n(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=$n(t),i=Pe();return r.iterate({range:n,keysOnly:!0},function(t,e,n){var r=En(t[1]),o=new lt(r);i=i.add(o)}).next(function(){return i})},t.prototype.containsKey=function(t,e){var n=wn(e.path),r=IDBKeyRange.bound([n],[Q(n)],!1,!0),i=0;return $n(t).iterate({index:vr.documentTargetsIndex,keysOnly:!0,range:r},function(t,e,n){0!==t[0]&&(i++,n.done())}).next(function(){return i>0})},t.prototype.getQueryDataForTarget=function(t,e){var n=this;return zn(t).get(e).next(function(t){return t?n.serializer.fromDbTarget(t):null})},t}();function zn(t){return Fr.getStore(t,gr.store)}function Hn(t){return Ln.getStore(t,yr.store).get(yr.key).next(function(t){return y(null!==t,"Missing metadata row."),t})}function Gn(t){return Hn(t).next(function(t){return t.highestListenSequenceNumber})}function $n(t){return Fr.getStore(t,vr.store)}var Kn=function(){function t(t){this.mapKeyFn=t,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<i.length;r++){var o=i[r],a=o[1];if(o[0].isEqual(t))return a}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(t))return void(r[i]=[t,e]);r.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(t))return 1===n.length?delete this.inner[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){T(this.inner,function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];t(o[0],o[1])}})},t.prototype.isEmpty=function(){return O(this.inner)},t}(),Wn=function(){function t(){this.changes=Ie(),this.documentSizes=new Kn(function(t){return t.toString()})}return t.prototype.addEntry=function(t){var e=this.assertChanges();this.changes=e.insert(t.key,t)},t.prototype.getEntry=function(t,e){var n=this,r=this.assertChanges().get(e);return r?kn.resolve(r):this.getFromCache(t,e).next(function(t){return null===t?(n.documentSizes.set(e,0),null):(n.documentSizes.set(e,t.size),t.maybeDocument)})},t.prototype.getEntries=function(t,e){var n=this;return this.getAllFromCache(t,e).next(function(t){var e=t.maybeDocuments;
1return t.sizeMap.forEach(function(t,e){n.documentSizes.set(t,e)}),e})},t.prototype.apply=function(t){var e=this.applyChanges(t);return this.changes=null,e},t.prototype.assertChanges=function(){return y(null!==this.changes,"Changes have already been applied."),this.changes},t}(),Qn="The remote document changelog no longer contains all changes for all local query views. It may be necessary to rebuild these views.",Jn=function(){function t(t,e,n){this.serializer=t,this.indexManager=e,this.keepDocumentChangeLog=n,this._lastProcessedDocumentChangeId=0}return Object.defineProperty(t.prototype,"lastProcessedDocumentChangeId",{get:function(){return this._lastProcessedDocumentChangeId},enumerable:!0,configurable:!0}),t.prototype.start=function(t){var e=Ln.getStore(t,_r.store);return this.synchronizeLastDocumentChangeId(e)},t.prototype.addEntries=function(t,e,n){var r=[];if(e.length>0){for(var i=Zn(t),o=Pe(),a=0,s=e;a<s.length;a++){var u=s[a],l=u.key,c=u.doc;r.push(i.put(er(l),c)),o=o.add(l),r.push(this.indexManager.addToCollectionParentIndex(t,l.path.popLast()))}this.keepDocumentChangeLog&&r.push(tr(t).put({changes:this.serializer.toDbResourcePaths(o)})),r.push(this.updateSize(t,n))}return kn.waitFor(r)},t.prototype.removeEntry=function(t,e){var n=Zn(t),r=er(e);return n.get(r).next(function(t){return t?n.delete(r).next(function(){return nr(t)}):kn.resolve(0)})},t.prototype.getEntry=function(t,e){var n=this;return Zn(t).get(er(e)).next(function(t){return t?n.serializer.fromDbRemoteDocument(t):null})},t.prototype.getSizedEntry=function(t,e){var n=this;return Zn(t).get(er(e)).next(function(t){return t?{maybeDocument:n.serializer.fromDbRemoteDocument(t),size:nr(t)}:null})},t.prototype.getEntries=function(t,e){var n=this,r=ke();return this.forEachDbEntry(t,e,function(t,e){r=r.insert(t,e?n.serializer.fromDbRemoteDocument(e):null)}).next(function(){return r})},t.prototype.getSizedEntries=function(t,e){var n=this,r=ke(),i=new pt(lt.comparator);return this.forEachDbEntry(t,e,function(t,e){e?(r=r.insert(t,n.serializer.fromDbRemoteDocument(e)),i=i.insert(t,nr(e))):(r=r.insert(t,null),i=i.insert(t,0))}).next(function(){return{maybeDocuments:r,sizeMap:i}})},t.prototype.forEachDbEntry=function(t,e,n){if(e.isEmpty())return kn.resolve();var r=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),i=e.getIterator(),o=i.getNext();return Zn(t).iterate({range:r},function(t,e,r){for(var a=lt.fromSegments(t);o&<.comparator(o,a)<0;)n(o,null),o=i.getNext();o&&o.isEqual(a)&&(n(o,e),o=i.hasNext()?i.getNext():null),o?r.skip(o.path.toArray()):r.done()}).next(function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null})},t.prototype.getDocumentsMatchingQuery=function(t,e){var n=this;y(!e.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var r=Oe(),i=e.path.length+1,o=e.path.toArray(),a=IDBKeyRange.lowerBound(o);return Zn(t).iterate({range:a},function(t,o,a){if(t.length===i){var s=n.serializer.fromDbRemoteDocument(o);e.path.isPrefixOf(s.key.path)?s instanceof ht&&e.matches(s)&&(r=r.insert(s.key,s)):a.done()}}).next(function(){return r})},t.prototype.getNewDocumentChanges=function(t){var e=this;y(this.keepDocumentChangeLog,"Can only call getNewDocumentChanges() when document change log is enabled");var n=Pe(),r=Ie(),i=IDBKeyRange.lowerBound(this._lastProcessedDocumentChangeId+1),o=!0,a=tr(t);return a.iterate({range:i},function(t,r){if(o&&(o=!1,e._lastProcessedDocumentChangeId+1!==r.id))return e.synchronizeLastDocumentChangeId(a).next(function(){return kn.reject(new S(_.DATA_LOSS,Qn))});n=n.unionWith(e.serializer.fromDbResourcePaths(r.changes)),e._lastProcessedDocumentChangeId=r.id}).next(function(){var i=[];return n.forEach(function(n){i.push(e.getEntry(t,n).next(function(t){var e=t||new ft(n,Zt.forDeletedDoc());r=r.insert(n,e)}))}),kn.waitFor(i)}).next(function(){return r})},t.prototype.removeDocumentChangesThroughChangeId=function(t,e){var n=IDBKeyRange.upperBound(e);return tr(t).delete(n)},t.prototype.synchronizeLastDocumentChangeId=function(t){var e=this;return this._lastProcessedDocumentChangeId=0,t.iterate({keysOnly:!0,reverse:!0},function(t,n,r){e._lastProcessedDocumentChangeId=t,r.done()})},t.prototype.newChangeBuffer=function(){return new Yn(this)},t.prototype.getSize=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return Xn(t).get(mr.key).next(function(t){return y(!!t,"Missing document cache metadata"),t})},t.prototype.setMetadata=function(t,e){return Xn(t).put(mr.key,e)},t.prototype.updateSize=function(t,e){var n=this;return this.getMetadata(t).next(function(r){return r.byteSize+=e,n.setMetadata(t,r)})},t}();function Xn(t){return Fr.getStore(t,mr.store)}var Yn=function(t){function e(e){var n=t.call(this)||this;return n.documentCache=e,n}return a.__extends(e,t),e.prototype.applyChanges=function(t){var e=this,n=this.assertChanges(),r=0,i=[];
1return n.forEach(function(t,n){var o=e.documentCache.serializer.toDbRemoteDocument(n),a=e.documentSizes.get(t);y(void 0!==a,"Attempting to change document "+t.toString()+" without having read it first");var s=nr(o);r+=s-a,i.push({key:t,doc:o})}),this.documentCache.addEntries(t,i,r)},e.prototype.getFromCache=function(t,e){return this.documentCache.getSizedEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.documentCache.getSizedEntries(t,e)},e}(Wn);function Zn(t){return Fr.getStore(t,pr.store)}function tr(t){return Fr.getStore(t,_r.store)}function er(t){return t.path.toArray()}function nr(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw v("Unknown remote document type");e=t.noDocument}return JSON.stringify(e).length}var rr=function(){function t(){this.collectionParentIndex=new ir}return t.prototype.addToCollectionParentIndex=function(t,e){return this.collectionParentIndex.add(e),kn.resolve()},t.prototype.getCollectionParents=function(t,e){return kn.resolve(this.collectionParentIndex.getEntries(e))},t}(),ir=function(){function t(){this.index={}}return t.prototype.add=function(t){y(t.length%2==1,"Expected a collection path.");var e=t.lastSegment(),n=t.popLast(),r=this.index[e]||new ne(at.comparator),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.getEntries=function(t){return(this.index[t]||new ne(at.comparator)).toArray()},t}(),or=8,ar=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;y(n<r&&n>=0&&r<=or,"Unexpected schema upgrade from v"+n+" to v{toVersion}."),n<1&&r>=1&&(function(t){t.createObjectStore(ur.store)}(t),function(t){t.createObjectStore(lr.store,{keyPath:lr.keyPath}),t.createObjectStore(cr.store,{keyPath:cr.keyPath,autoIncrement:!0}).createIndex(cr.userMutationsIndex,cr.userMutationsKeyPath,{unique:!0}),t.createObjectStore(hr.store)}(t),wr(t),function(t){t.createObjectStore(pr.store)}(t));var o=kn.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(vr.store),t.deleteObjectStore(gr.store),t.deleteObjectStore(yr.store)}(t),wr(t)),o=o.next(function(){return function(t){var e=t.store(yr.store),n=new yr(0,0,Zt.MIN.toTimestamp(),0);return e.put(yr.key,n)}(e)})),n<4&&r>=4&&(0!==n&&(o=o.next(function(){return function(t,e){return e.store(cr.store).loadAll().next(function(n){t.deleteObjectStore(cr.store),t.createObjectStore(cr.store,{keyPath:cr.keyPath,autoIncrement:!0}).createIndex(cr.userMutationsIndex,cr.userMutationsKeyPath,{unique:!0});var r=e.store(cr.store),i=n.map(function(t){return r.put(t)});return kn.waitFor(i)})}(t,e)})),o=o.next(function(){!function(t){t.createObjectStore(Sr.store,{keyPath:Sr.keyPath})}(t),function(t){t.createObjectStore(_r.store,{keyPath:"id",autoIncrement:!0})}(t)})),n<5&&r>=5&&(o=o.next(function(){return i.removeAcknowledgedMutations(e)})),n<6&&r>=6&&(o=o.next(function(){return function(t){t.createObjectStore(mr.store)}(t),i.addDocumentGlobal(e)})),n<7&&r>=7&&(o=o.next(function(){return i.ensureSequenceNumbers(e)})),n<8&&r>=8&&(o=o.next(function(){return i.createCollectionParentIndex(t,e)})),o},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(pr.store).iterate(function(t,n){e+=nr(n)}).next(function(){var n=new mr(e);return t.store(mr.store).put(mr.key,n)})},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(lr.store),r=t.store(cr.store);return n.loadAll().next(function(n){return kn.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.loadAll(cr.userMutationsIndex,i).next(function(r){return kn.forEach(r,function(r){y(r.userId===n.userId,"Cannot process batch "+r.batchId+" from unexpected user");var i=e.serializer.fromDbMutationBatch(r);return An(t,n.userId,i).next(function(){})})})})})},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(vr.store),n=t.store(pr.store);return Gn(t).next(function(t){var r=[];return n.iterate(function(n,i){var o=new at(n),a=function(t){return[0,wn(t)]}(o);r.push(e.get(a).next(function(n){return n?kn.resolve():function(n){return e.put(new vr(0,wn(n),t))}(o)}))}).next(function(){return kn.waitFor(r)})})},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(br.store,{keyPath:br.keyPath});var n=e.store(br.store),r=new ir,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:wn(i)})}};return e.store(pr.store).iterate({keysOnly:!0},function(t,e){var n=new at(t);return i(n.popLast())}).next(function(){return e.store(hr.store).iterate({keysOnly:!0},function(t,e){var n=En(t[1]);return i(n.popLast())})})},t}(),sr=function(){return function(t,e){this.seconds=t,this.nanoseconds=e}}(),ur=function(){function t(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n}return t.store="owner",t.key="owner",t}(),lr=function(){function t(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n}
1return t.store="mutationQueues",t.keyPath="userId",t}(),cr=function(){function t(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i}return t.store="mutations",t.keyPath="batchId",t.userMutationsIndex="userMutationsIndex",t.userMutationsKeyPath=["userId","batchId"],t}(),hr=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,wn(e)]},t.key=function(t,e,n){return[t,wn(e),n]},t.store="documentMutations",t.PLACEHOLDER=new t,t}(),fr=function(){return function(t,e){this.path=t,this.readTime=e}}(),dr=function(){return function(t,e){this.path=t,this.version=e}}(),pr=function(){function t(t,e,n,r){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r}return t.store="remoteDocuments",t}(),mr=function(){function t(t){this.byteSize=t}return t.store="remoteDocumentGlobal",t.key="remoteDocumentGlobalKey",t}(),gr=function(){function t(t,e,n,r,i,o){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.query=o}return t.store="targets",t.keyPath="targetId",t.queryTargetsIndexName="queryTargetsIndex",t.queryTargetsKeyPath=["canonicalId","targetId"],t}(),vr=function(){function t(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n,y(0===t==(void 0!==n),"A target-document row must either have targetId == 0 and a defined sequence number, or a non-zero targetId and no sequence number")}return t.store="targetDocuments",t.keyPath=["targetId","path"],t.documentTargetsIndex="documentTargetsIndex",t.documentTargetsKeyPath=["path","targetId"],t}(),yr=function(){function t(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r}return t.key="targetGlobalKey",t.store="targetGlobal",t}(),br=function(){function t(t,e){this.collectionId=t,this.parent=e}return t.store="collectionParents",t.keyPath=["collectionId","parent"],t}();function wr(t){t.createObjectStore(vr.store,{keyPath:vr.keyPath}).createIndex(vr.documentTargetsIndex,vr.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(gr.store,{keyPath:gr.keyPath}).createIndex(gr.queryTargetsIndexName,gr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(yr.store)}var _r=function(){function t(t){this.changes=t}return t.store="remoteDocumentChanges",t.keyPath="id",t}(),Sr=function(){function t(t,e,n,r,i){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r,this.lastProcessedDocumentChangeId=i}return t.store="clientMetadata",t.keyPath="clientId",t}(),Er=[lr.store,cr.store,hr.store,pr.store,gr.store,ur.store,yr.store,vr.store].concat([Sr.store,_r.store]).concat([mr.store]).concat([br.store]),Cr=function(){function t(){this.collectionParentsCache=new ir}return t.prototype.addToCollectionParentIndex=function(t,e){if(y(e.length%2==1,"Expected a collection path."),this.collectionParentsCache.add(e)){y(e.length>=1,"Invalid collection path.");var n=e.lastSegment(),r=e.popLast();return Ir(t).put({collectionId:n,parent:wn(r)})}return kn.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Q(e),""],!1,!0);return Ir(t).loadAll(r).next(function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(En(o.parent))}return n})},t}();function Ir(t){return Fr.getStore(t,br.store)}var kr=function(){function t(t){this.remoteSerializer=t}return t.prototype.fromDbRemoteDocument=function(t){if(t.document)return this.remoteSerializer.fromDocument(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=lt.fromSegments(t.noDocument.path),n=this.fromDbTimestamp(t.noDocument.readTime);return new ft(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}return t.unknownDocument?(e=lt.fromSegments(t.unknownDocument.path),n=this.fromDbTimestamp(t.unknownDocument.version),new dt(e,n)):v("Unexpected DbRemoteDocument")},t.prototype.toDbRemoteDocument=function(t){if(t instanceof ht){var e=t.proto?t.proto:this.remoteSerializer.toDocument(t);return new pr(null,null,e,i=t.hasCommittedMutations)}if(t instanceof ft){var n=t.key.path.toArray(),r=this.toDbTimestamp(t.version),i=t.hasCommittedMutations;return new pr(null,new fr(n,r),null,i)}return t instanceof dt?(n=t.key.path.toArray(),r=this.toDbTimestamp(t.version),new pr(new dr(n,r),null,null,!0)):v("Unexpected MaybeDocumment")},t.prototype.toDbTimestamp=function(t){var e=t.toTimestamp();return new sr(e.seconds,e.nanoseconds)},t.prototype.fromDbTimestamp=function(t){var e=new et(t.seconds,t.nanoseconds);return Zt.fromTimestamp(e)},t.prototype.toDbMutationBatch=function(t,e){var n=this,r=e.baseMutations.map(function(t){return n.remoteSeri
1alizer.toMutation(t)}),i=e.mutations.map(function(t){return n.remoteSerializer.toMutation(t)});return new cr(t,e.batchId,e.localWriteTime.toMillis(),r,i)},t.prototype.fromDbMutationBatch=function(t){var e=this,n=(t.baseMutations||[]).map(function(t){return e.remoteSerializer.fromMutation(t)}),r=t.mutations.map(function(t){return e.remoteSerializer.fromMutation(t)}),i=et.fromMillis(t.localWriteTimeMs);return new Cn(t.batchId,i,n,r)},t.prototype.toDbResourcePaths=function(t){var e=[];return t.forEach(function(t){e.push(wn(t.path))}),e},t.prototype.fromDbResourcePaths=function(t){for(var e=Pe(),n=0,r=t;n<r.length;n++)e=e.add(new lt(En(r[n])));return e},t.prototype.fromDbTarget=function(t){var e,n=this.fromDbTimestamp(t.readTime);return e=void 0!==t.query.documents?this.remoteSerializer.fromDocumentsTarget(t.query):this.remoteSerializer.fromQueryTarget(t.query),new ee(e,t.targetId,te.Listen,t.lastListenSequenceNumber,n,t.resumeToken)},t.prototype.toDbTarget=function(t){y(te.Listen===t.purpose,"Only queries with purpose "+te.Listen+" may be stored, got "+t.purpose);var e,n,r=this.toDbTimestamp(t.snapshotVersion);return e=t.query.isDocumentQuery()?this.remoteSerializer.toDocumentsTarget(t.query):this.remoteSerializer.toQueryTarget(t.query),t.resumeToken instanceof Uint8Array?(y("YES"===process.env.USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence ."),n=t.resumeToken.toString()):n=t.resumeToken,new gr(t.targetId,t.query.canonicalId(),r,n,t.sequenceNumber,e)},t}();function Tr(t,e){var n=t[1],r=e[1],i=K(t[0],e[0]);return 0===i?K(n,r):i}var Or=function(){function t(t){this.maxElements=t,this.buffer=new ne(Tr),this.previousIndex=0}return t.prototype.nextIndex=function(){return++this.previousIndex},t.prototype.addElement=function(t){var e=[t,this.nextIndex()];if(this.buffer.size<this.maxElements)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();Tr(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),t}(),Ar={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},xr=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t.COLLECTION_DISABLED=-1,t.MINIMUM_CACHE_SIZE_BYTES=1048576,t.DEFAULT=new t(t.DEFAULT_CACHE_SIZE_BYTES=41943040,t.DEFAULT_COLLECTION_PERCENTILE=10,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3),t.DISABLED=new t(t.COLLECTION_DISABLED,0,0),t}(),Dr=function(){function t(t,e,n){this.garbageCollector=t,this.asyncQueue=e,this.localStore=n,this.gcTask=null}return t.prototype.start=function(){y(null===this.gcTask,"Cannot start an already started LruScheduler"),this.garbageCollector.params.cacheSizeCollectionThreshold!==xr.COLLECTION_DISABLED&&this.scheduleGC()},t.prototype.stop=function(){this.gcTask&&(this.gcTask.cancel(),this.gcTask=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.gcTask},enumerable:!0,configurable:!0}),t.prototype.scheduleGC=function(){var t=this;y(null===this.gcTask,"Cannot schedule GC while a task is pending");var e=this.hasRun?3e5:6e4;p("LruGarbageCollector","Garbage collection scheduled in "+e+"ms"),this.gcTask=this.asyncQueue.enqueueAfterDelay(hn.LruGarbageCollection,e,function(){return t.gcTask=null,t.hasRun=!0,t.localStore.collectGarbage(t.garbageCollector).then(function(){return t.scheduleGC()}).catch(Vr)})},t}(),Pr=function(){function t(t,e){this.delegate=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.delegate.getSequenceNumberCount(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return kn.resolve(fn.INVALID);var r=new Or(e);return this.delegate.forEachTarget(t,function(t){return r.addElement(t.sequenceNumber)}).next(function(){return n.delegate.forEachOrphanedDocumentSequenceNumber(t,function(t){return r.addElement(t)})}).next(function(){return r.maxValue})},t.prototype.removeTargets=function(t,e,n){return this.delegate.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.delegate.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return this.params.cacheSizeCollectionThreshold===xr.COLLECTION_DISABLED?(p("LruGarbageCollector","Garbage collection skipped; disabled"),kn.resolve(Ar)):this.getCacheSize(t).next(function(r){return r<n.params.cacheSizeCollectionThreshold?(p("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),Ar):n.runGarbageCollection(t,e)})},t.prototype.getCacheSize=function(t){return this.delegate.getCacheSize(t)}
1,t.prototype.runGarbageCollection=function(t,e){var n,r,i,o,a,s,u,l,c=this;return o=Date.now(),this.calculateTargetCount(t,this.params.percentileToCollect).next(function(e){return e>c.params.maximumSequenceNumbersToCollect?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.maximumSequenceNumbersToCollect+" from "+e),r=c.params.maximumSequenceNumbersToCollect):r=e,a=Date.now(),c.nthSequenceNumber(t,r)}).next(function(r){return n=r,s=Date.now(),c.removeTargets(t,n,e)}).next(function(e){return i=e,u=Date.now(),c.removeOrphanedDocuments(t,n)}).next(function(t){return l=Date.now(),f()<=h.DEBUG&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-o)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(l-u)+"ms\nTotal Duration: "+(l-o)+"ms"),kn.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:t})})},t}(),Nr="IndexedDbPersistence",jr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Rr="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `experimentalTabSynchronization:true` in all tabs.",Mr="This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.",Lr=function(t){function e(e,n){var r=t.call(this)||this;return r.simpleDbTransaction=e,r.currentSequenceNumber=n,r}return a.__extends(e,t),e}(function(){return function(){}}
1()),Fr=function(){function t(e,n,r,i,o,a,s){if(this.persistenceKey=e,this.clientId=n,this.queue=i,this.multiClientParams=s,this._started=!1,this.isPrimary=!1,this.networkEnabled=!0,this.inForeground=!1,this.lastGarbageCollectionTime=Number.NEGATIVE_INFINITY,this.primaryStateListener=function(t){return Promise.resolve()},!t.isAvailable())throw new S(_.UNIMPLEMENTED,Mr);if(this.referenceDelegate=new Br(this,a),this.dbName=e+t.MAIN_DATABASE,this.serializer=new kr(o),this.document=r.document,this.allowTabSynchronization=void 0!==s,this.queryCache=new Bn(this.referenceDelegate,this.serializer),this.indexManager=new Cr,this.remoteDocumentCache=new Jn(this.serializer,this.indexManager,this.allowTabSynchronization),!r.window||!r.window.localStorage)throw new S(_.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=r.window,this.webStorage=this.window.localStorage}return t.getStore=function(t,e){if(t instanceof Lr)return Ln.getStore(t.simpleDbTransaction,e);throw v("IndexedDbPersistence must use instances of IndexedDbTransaction")},t.createIndexedDbPersistence=function(e,n,r,i,o,s){return a.__awaiter(this,void 0,void 0,function(){var u;return a.__generator(this,function(a){switch(a.label){case 0:return[4,(u=new t(e,n,r,i,o,s)).start()];case 1:return a.sent(),[2,u]}})})},t.createMultiClientIndexedDbPersistence=function(e,n,r,i,o,s,u){return a.__awaiter(this,void 0,void 0,function(){var l;return a.__generator(this,function(a){switch(a.label){case 0:return[4,(l=new t(e,n,r,i,o,s,u)).start()];case 1:return a.sent(),[2,l]}})})},t.prototype.start=function(){var t=this;return y(!this.started,"IndexedDbPersistence double-started!"),y(null!==this.window,"Expected 'window' to be defined"),Ln.openOrCreate(this.dbName,or,new ar(this.serializer)).then(function(e){return t.simpleDb=e,t.updateClientMetadataAndTryBecomePrimary()}).then(function(){return t.attachVisibilityHandler(),t.attachWindowUnloadHook(),t.scheduleClientMetadataAndPrimaryLeaseRefreshes(),t.startRemoteDocumentCache()}).then(function(){return t.simpleDb.runTransaction("readonly",[yr.store],function(e){return Gn(e).next(function(e){t.listenSequence=new fn(e,t.multiClientParams?t.multiClientParams.sequenceNumberSyncer:void 0)})})}).then(function(){t._started=!0}).catch(function(e){return t.simpleDb&&t.simpleDb.close(),Promise.reject(e)})},t.prototype.startRemoteDocumentCache=function(){var t=this;return this.simpleDb.runTransaction("readonly",Er,function(e){return t.remoteDocumentCache.start(e)})},t.prototype.setPrimaryStateListener=function(t){var e=this;return this.primaryStateListener=function(n){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(e){return this.started?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.queue.enqueueAndForget(function(){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.started?[4,this.updateClientMetadataAndTryBecomePrimary()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.updateClientMetadataAndTryBecomePrimary=function(){var t=this;return this.simpleDb.runTransaction("readwrite",Er,function(e){return qr(e).put(new Sr(t.clientId,Date.now(),t.networkEnabled,t.inForeground,t.remoteDocumentCache.lastProcessedDocumentChangeId)).next(function(){if(t.isPrimary)return t.verifyPrimaryLease(e).next(function(e){e||(t.isPrimary=!1,t.queue.enqueueAndForget(function(){return t.primaryStateListener(!1)}))})}).next(function(){return t.canActAsPrimary(e)}).next(function(n){var r=t.isPrimary;return t.isPrimary=n,r!==t.isPrimary&&t.queue.enqueueAndForget(function(){return t.primaryStateListener(t.isPrimary)}),r&&!t.isPrimary?t.releasePrimaryLeaseIfHeld(e):t.isPrimary?t.acquireOrExtendPrimaryLease(e):void 0})})},t.prototype.verifyPrimaryLease=function(t){var e=this;return Ur(t).get(ur.key).next(function(t){return kn.resolve(e.isLocalClient(t))})},t.prototype.removeClientMetadata=function(t){return qr(t).delete(this.clientId)},t.prototype.maybeGarbageCollectMultiClientState=function(){return a.__awaiter(this,void 0,void 0,function(){var e,n,r=this;return a.__generator(this,function(i){switch(i.label){case 0:return!this.isPrimary||this.isWithinAge(this.lastGarbageCollectionTime,18e5)?[3,2]:(this.lastGarbageCollectionTime=Date.now(),n=[],[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(i){var o=t.getStore(i,Sr.store);return o.loadAll().next(function(t){e=r.filterActiveClients(t,18e5),n=t.filter(function(t){return-1===e.indexOf(t)})}).next(function(){return kn.forEach(n,function(t){return o.delete(t.clientId)})}).next(function(){if((e=e.filter(function(t){return t.clientId!==r.clientId})).length>0){var t=e.map(function(t){return t.lastProcessedDocumentChangeId||0}),n=Math.min.apply(Math,t);return r.remoteDocumentCache.removeDocumentChangesThroughChangeId(i,n)}})})]);
1case 1:i.sent(),n.forEach(function(t){r.window.localStorage.removeItem(r.zombiedClientLocalStorageKey(t.clientId))}),i.label=2;case 2:return[2]}})})},t.prototype.scheduleClientMetadataAndPrimaryLeaseRefreshes=function(){var t=this;this.clientMetadataRefresher=this.queue.enqueueAfterDelay(hn.ClientMetadataRefresh,4e3,function(){return t.updateClientMetadataAndTryBecomePrimary().then(function(){return t.maybeGarbageCollectMultiClientState()}).then(function(){return t.scheduleClientMetadataAndPrimaryLeaseRefreshes()})})},t.prototype.isLocalClient=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.canActAsPrimary=function(t){var e=this;return Ur(t).get(ur.key).next(function(n){if(null!==n&&e.isWithinAge(n.leaseTimestampMs,5e3)&&!e.isClientZombied(n.ownerId)){if(e.isLocalClient(n)&&e.networkEnabled)return!0;if(!e.isLocalClient(n)){if(!n.allowTabSynchronization)throw new S(_.FAILED_PRECONDITION,Rr);return!1}}return!(!e.networkEnabled||!e.inForeground)||qr(t).loadAll().next(function(t){return void 0===e.filterActiveClients(t,5e3).find(function(t){return!(e.clientId===t.clientId||!(!e.networkEnabled&&t.networkEnabled||!e.inForeground&&t.inForeground&&e.networkEnabled===t.networkEnabled))})})}).next(function(t){return e.isPrimary!==t&&p(Nr,"Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.shutdown=function(){return a.__awaiter(this,void 0,void 0,function(){var t=this;return a.__generator(this,function(e){switch(e.label){case 0:return this._started=!1,this.markClientZombied(),this.clientMetadataRefresher&&this.clientMetadataRefresher.cancel(),this.detachVisibilityHandler(),this.detachWindowUnloadHook(),[4,this.simpleDb.runTransaction("readwrite",[ur.store,Sr.store],function(e){return t.releasePrimaryLeaseIfHeld(e).next(function(){return t.removeClientMetadata(e)})})];case 1:return e.sent(),this.simpleDb.close(),this.removeClientZombiedEntry(),[2]}})})},t.prototype.filterActiveClients=function(t,e){var n=this;return t.filter(function(t){return n.isWithinAge(t.updateTimeMs,e)&&!n.isClientZombied(t.clientId)})},t.prototype.getActiveClients=function(){var t=this;return this.simpleDb.runTransaction("readonly",[Sr.store],function(e){return qr(e).loadAll().next(function(e){return t.filterActiveClients(e,18e5).map(function(t){return t.clientId})})})},t.clearPersistence=function(e){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(n){switch(n.label){case 0:return t.isAvailable()?[4,Ln.delete(e+t.MAIN_DATABASE)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}})})},Object.defineProperty(t.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),t.prototype.getMutationQueue=function(t){return y(this.started,"Cannot initialize MutationQueue before persistence is started."),Tn.forUser(t,this.serializer,this.indexManager,this.referenceDelegate)},t.prototype.getQueryCache=function(){return y(this.started,"Cannot initialize QueryCache before persistence is started."),this.queryCache},t.prototype.getRemoteDocumentCache=function(){return y(this.started,"Cannot initialize RemoteDocumentCache before persistence is started."),this.remoteDocumentCache},t.prototype.getIndexManager=function(){return y(this.started,"Cannot initialize IndexManager before persistence is started."),this.indexManager},t.prototype.runTransaction=function(t,e,n){var r=this;return p(Nr,"Starting transaction:",t),this.simpleDb.runTransaction("readonly"===e?"readonly":"readwrite",Er,function(i){return"readwrite-primary"===e?r.verifyPrimaryLease(i).next(function(e){if(!e)throw m("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.queue.enqueueAndForget(function(){return r.primaryStateListener(!1)}),new S(_.FAILED_PRECONDITION,jr);return n(new Lr(i,r.listenSequence.next()))}).next(function(t){return r.acquireOrExtendPrimaryLease(i).next(function(){return t})}):r.verifyAllowTabSynchronization(i).next(function(){return n(new Lr(i,r.listenSequence.next()))})})},t.prototype.verifyAllowTabSynchronization=function(t){var e=this;return Ur(t).get(ur.key).next(function(t){if(null!==t&&e.isWithinAge(t.leaseTimestampMs,5e3)&&!e.isClientZombied(t.ownerId)&&!e.isLocalClient(t)&&!t.allowTabSynchronization)throw new S(_.FAILED_PRECONDITION,Rr)})},t.prototype.acquireOrExtendPrimaryLease=function(t){var e=new ur(this.clientId,this.allowTabSynchronization,Date.now());return Ur(t).put(ur.key,e)},t.isAvailable=function(){return Ln.isAvailable()},t.buildStoragePrefix=function(t){var e=t.databaseId.projectId;return t.databaseId.isDefaultDatabase||(e+="."+t.databaseId.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.releasePrimaryLeaseIfHeld=function(t){var e=this,n=Ur(t);return n.get(ur.key).next(function(t){return e.isLocalClient(t)?(p(Nr,"Releasing primary lease."),n.delete(ur.key)):kn.resolve()})},t.prototype.isWithinAge=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(m("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.attachVisibilityHandler=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.documentVisibilityHandler=function(){t.queue.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.updateClientMetadataAndTryBecomePrimary()})},this.document.addEventListener("visibilitychange",this.documentVisibilityHandler),this.inForeground="visible"===this.document.visibilityState)},t.prototype.detachVisibilityHandler=function(){this.documentVisibilityHandler&&(y(null!==this.document&&"function"==typeof this.document.addEventListener,"Expected 'document.addEventListener' to be a function"),this.document.removeEventListener("visibilitychange",this.documentVisibilityHandler),this.documentVisibilityHandler=null)},t.prototype.attachWindowUnloadHook=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.windowUnloadHandler=function(){t.markClientZombied(),t.queue.enqueueAndForget(function(){return t.shutdown()})},this.window.addEventListener("unload",this.windowUnloadHandler))},t.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(y("function"==typeof this.window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),this.window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},t.prototype.isClientZombied=function(t){try{var e=null!==this.webStorage.getItem(this.zombiedClientLocalStorageKey(t));return p(Nr,"Client '"+t+"' "+(e?"is":"is not")+" zombied in LocalStorage"),e}catch(n){return m(Nr,"Failed to get zombied client id.",n),!1}},t.prototype.markClientZombied=function(){try{this.webStorage.setItem(this.zombiedClientLocalStorageKey(this.clientId),String(Date.now()))}catch(t){m("Failed to set zombie client id.",t)}},t.prototype.removeClientZombiedEntry=function(){try{this.webStorage.removeItem(this.zombiedClientLocalStorageKey(this.clientId))}catch(t){}},t.prototype.zombiedClientLocalStorageKey=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t.MAIN_DATABASE="main",t}();function Vr(t){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){if(!function(t){return t.code===_.FAILED_PRECONDITION&&t.message===jr}(t))throw t;return p(Nr,"Unexpectedly lost primary lease"),[2]})})}function Ur(t){return t.store(ur.store)}function qr(t){return t.store(Sr.store)}var Br=function(){function t(t,e){this.db=t,this.garbageCollector=new Pr(this,e)}return t.prototype.getSequenceNumberCount=function(t){var e=this.orphanedDocmentCount(t);return this.db.getQueryCache().getQueryCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.orphanedDocmentCount=function(t){var e=0;return this.forEachOrphanedDocumentSequenceNumber(t,function(t){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getQueryCache().forEac
1hTarget(t,e)},t.prototype.forEachOrphanedDocumentSequenceNumber=function(t,e){return this.forEachOrphanedDocument(t,function(t,n){return e(n)})},t.prototype.setInMemoryPins=function(t){this.inMemoryPins=t},t.prototype.addReference=function(t,e){return zr(t,e)},t.prototype.removeReference=function(t,e){return zr(t,e)},t.prototype.removeTargets=function(t,e,n){return this.db.getQueryCache().removeTargets(t,e,n)},t.prototype.removeMutationReference=function(t,e){return zr(t,e)},t.prototype.isPinned=function(t,e){return this.inMemoryPins.containsKey(e)?kn.resolve(!0):function(t,e){var n=!1;return Nn(t).iterateSerial(function(r){return On(t,r,e).next(function(t){return t&&(n=!0),kn.resolve(!t)})}).next(function(){return n})}(t,e)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=0,i=0,o=[];return this.forEachOrphanedDocument(t,function(a,s){if(s<=e){var u=n.isPinned(t,a).next(function(e){if(!e)return r++,n.removeOrphanedDocument(t,a).next(function(t){i+=t})});o.push(u)}}).next(function(){return kn.waitFor(o)}).next(function(){return n.db.getRemoteDocumentCache().updateSize(t,-i)}).next(function(){return r})},t.prototype.removeOrphanedDocument=function(t,e){var n,r=0,i=this.db.getRemoteDocumentCache();return kn.waitFor([$n(t).delete((n=e,[0,wn(n.path)])),i.removeEntry(t,e).next(function(t){r+=t})]).next(function(){return r})},t.prototype.removeTarget=function(t,e){var n=e.copy({sequenceNumber:t.currentSequenceNumber});return this.db.getQueryCache().updateQueryData(t,n)},t.prototype.updateLimboDocument=function(t,e){return zr(t,e)},t.prototype.forEachOrphanedDocument=function(t,e){var n,r=$n(t),i=fn.INVALID;return r.iterate({index:vr.documentTargetsIndex},function(t,r){var o=r.path,a=r.sequenceNumber;0===t[0]?(i!==fn.INVALID&&e(new lt(En(n)),i),i=a,n=o):i=fn.INVALID}).next(function(){i!==fn.INVALID&&e(new lt(En(n)),i)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function zr(t,e){return $n(t).put(function(t,e){return new vr(0,wn(t.path),e)}(e,t.currentSequenceNumber))}var Hr=function(){function t(t,e,n){this.remoteDocumentCache=t,this.mutationQueue=e,this.indexManager=n}return t.prototype.getDocument=function(t,e){var n=this;return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(t,e).next(function(r){return n.getDocumentInternal(t,e,r)})},t.prototype.getDocumentInternal=function(t,e,n){return this.remoteDocumentCache.getEntry(t,e).next(function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].applyToLocalView(e,t);return t})},t.prototype.applyLocalMutationsToDocuments=function(t,e,n){var r=ke();return e.forEach(function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].applyToLocalView(t,e);r=r.insert(t,e)}),r},t.prototype.getDocuments=function(t,e){var n=this;return this.remoteDocumentCache.getEntries(t,e).next(function(e){return n.getLocalViewOfDocuments(t,e)})},t.prototype.getLocalViewOfDocuments=function(t,e){var n=this;return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(t,e).next(function(r){var i=n.applyLocalMutationsToDocuments(t,e,r),o=Ie();return i.forEach(function(t,e){e||(e=new ft(t,Zt.forDeletedDoc())),o=o.insert(t,e)}),o})},t.prototype.getDocumentsMatchingQuery=function(t,e){return e.isDocumentQuery()?this.getDocumentsMatchingDocumentQuery(t,e.path):e.isCollectionGroupQuery()?this.getDocumentsMatchingCollectionGroupQuery(t,e):this.getDocumentsMatchingCollectionQuery(t,e)},t.prototype.getDocumentsMatchingDocumentQuery=function(t,e){return this.getDocument(t,new lt(e)).next(function(t){var e=Oe();return t instanceof ht&&(e=e.insert(t.key,t)),e})},t.prototype.getDocumentsMatchingCollectionGroupQuery=function(t,e){var n=this;y(e.path.isEmpty(),"Currently we only support collection group queries at the root.");var r=e.collectionGroup,i=Oe();return this.indexManager.getCollectionParents(t,r).next(function(o){return kn.forEach(o,function(o){var a=e.asCollectionQueryAtPath(o.child(r));return n.getDocumentsMatchingCollectionQuery(t,a).next(function(t){t.forEach(function(t,e){i=i.insert(t,e)})})}).next(function(){return i})})},t.prototype.getDocumentsMatchingCollectionQuery=function(t,e){var n,r=this;return this.remoteDocumentCache.getDocumentsMatchingQuery(t,e).next(function(i){return n=i,r.mutation
1Queue.getAllMutationBatchesAffectingQuery(t,e)}).next(function(t){for(var r=0,i=t;r<i.length;r++)for(var o=i[r],a=0,s=o.mutations;a<s.length;a++){var u=s[a],l=u.key;if(e.path.isImmediateParentOf(l.path)){var c=n.get(l),h=u.applyToLocalView(c,c,o.localWriteTime);n=h instanceof ht?n.insert(l,h):n.remove(l)}}}).next(function(){return n.forEach(function(t,r){e.matches(r)||(n=n.remove(t))}),n})},t}(),Gr=function(){function t(){this.refsByKey=new ne($r.compareByKey),this.refsByTarget=new ne($r.compareByTargetId)}return t.prototype.isEmpty=function(){return this.refsByKey.isEmpty()},t.prototype.addReference=function(t,e){var n=new $r(t,e);this.refsByKey=this.refsByKey.add(n),this.refsByTarget=this.refsByTarget.add(n)},t.prototype.addReferences=function(t,e){var n=this;t.forEach(function(t){return n.addReference(t,e)})},t.prototype.removeReference=function(t,e){this.removeRef(new $r(t,e))},t.prototype.removeReferences=function(t,e){var n=this;t.forEach(function(t){return n.removeReference(t,e)})},t.prototype.removeReferencesForId=function(t){var e=this,n=lt.EMPTY,r=new $r(n,t),i=new $r(n,t+1),o=[];return this.refsByTarget.forEachInRange([r,i],function(t){e.removeRef(t),o.push(t.key)}),o},t.prototype.removeAllReferences=function(){var t=this;this.refsByKey.forEach(function(e){return t.removeRef(e)})},t.prototype.removeRef=function(t){this.refsByKey=this.refsByKey.delete(t),this.refsByTarget=this.refsByTarget.delete(t)},t.prototype.referencesForId=function(t){var e=lt.EMPTY,n=new $r(e,t),r=new $r(e,t+1),i=Pe();return this.refsByTarget.forEachInRange([n,r],function(t){i=i.add(t.key)}),i},t.prototype.containsKey=function(t){var e=new $r(t,0),n=this.refsByKey.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),$r=function(){function t(t,e){this.key=t,this.targetOrBatchId=e}return t.compareByKey=function(t,e){return lt.comparator(t.key,e.key)||K(t.targetOrBatchId,e.targetOrBatchId)},t.compareByTargetId=function(t,e){return K(t.targetOrBatchId,e.targetOrBatchId)||lt.comparator(t.key,e.key)},t}(),Kr=function(){function t(t,e){this.persistence=t,this.localViewReferences=new Gr,this.queryDataByTarget={},y(t.started,"LocalStore was passed an unstarted persistence implementation"),this.persistence.referenceDelegate.setInMemoryPins(this.localViewReferences),this.mutationQueue=t.getMutationQueue(e),this.remoteDocuments=t.getRemoteDocumentCache(),this.queryCache=t.getQueryCache(),this.localDocuments=new Hr(this.remoteDocuments,this.mutationQueue,this.persistence.getIndexManager())}return t.prototype.handleUserChange=function(t){var e=this;return this.persistence.runTransaction("Handle user change","readonly",function(n){var r;return e.mutationQueue.getAllMutationBatches(n).next(function(i){return r=i,e.mutationQueue=e.persistence.getMutationQueue(t),e.localDocuments=new Hr(e.remoteDocuments,e.mutationQueue,e.persistence.getIndexManager()),e.mutationQueue.getAllMutationBatches(n)}).next(function(t){for(var i=[],o=[],a=Pe(),s=0,u=r;s<u.length;s++){i.push((d=u[s]).batchId);for(var l=0,c=d.mutations;l<c.length;l++)a=a.add(c[l].key)}for(var h=0,f=t;h<f.length;h++){var d;o.push((d=f[h]).batchId);for(var p=0,m=d.mutations;p<m.length;p++)a=a.add(m[p].key)}return e.localDocuments.getDocuments(n,a).next(function(t){return{affectedDocuments:t,removedBatchIds:i,addedBatchIds:o}})})})},t.prototype.localWrite=function(t){var e=this,n=et.now(),r=t.reduce(function(t,e){return t.add(e.key)},Pe());return this.persistence.runTransaction("Locally write mutations","readwrite",function(i){return e.localDocuments.getDocuments(i,r).next(function(r){for(var o=[],a=0,s=t;a<s.length;a++){var u=s[a],l=r.get(u.key);if(!u.isIdempotent){var c=u.fieldMask;if(c){var h=l instanceof ht?c.applyTo(l.data):jt.EMPTY;o.push(new he(u.key,h,c,ue.exists(!0)))}}}return e.mutationQueue.addMutationBatch(i,n,o,t).next(function(t){var e=t.applyToLocalDocumentSet(r);return{batchId:t.batchId,changes:e}})})})},t.prototype.lookupMutationDocuments=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",function(n){return e.mutationQueue.lookupMutationKeys(n,t).next(function(t){return t?e.localDocuments.getDocuments(n,t):kn.resolve(null)})})},t.prototype.acknowledgeBatch=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(n){var r=t.batch.keys(),i=e.remoteDocuments.newChangeBuffer();
1return e.mutationQueue.acknowledgeBatch(n,t.batch,t.streamToken).next(function(){return e.applyWriteToRemoteDocuments(n,t,i)}).next(function(){return i.apply(n)}).next(function(){return e.mutationQueue.performConsistencyCheck(n)}).next(function(){return e.localDocuments.getDocuments(n,r)})})},t.prototype.rejectBatch=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",function(n){var r;return e.mutationQueue.lookupMutationBatch(n,t).next(function(t){return y(null!==t,"Attempt to reject nonexistent batch!"),r=t.keys(),e.mutationQueue.removeMutationBatch(n,t)}).next(function(){return e.mutationQueue.performConsistencyCheck(n)}).next(function(){return e.localDocuments.getDocuments(n,r)})})},t.prototype.getLastStreamToken=function(){var t=this;return this.persistence.runTransaction("Get last stream token","readonly",function(e){return t.mutationQueue.getLastStreamToken(e)})},t.prototype.setLastStreamToken=function(t){var e=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",function(n){return e.mutationQueue.setLastStreamToken(n,t)})},t.prototype.getLastRemoteSnapshotVersion=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",function(e){return t.queryCache.getLastRemoteSnapshotVersion(e)})},t.prototype.applyRemoteEvent=function(e){var n=this,r=this.remoteDocuments.newChangeBuffer();return this.persistence.runTransaction("Apply remote event","readwrite-primary",function(i){var o=[],a=Pe();k(e.targetChanges,function(r,s){var u=n.queryDataByTarget[r];if(u){s.addedDocuments.forEach(function(t){a=a.add(t)}),s.modifiedDocuments.forEach(function(t){a=a.add(t)}),o.push(n.queryCache.removeMatchingKeys(i,s.removedDocuments,r).next(function(){return n.queryCache.addMatchingKeys(i,s.addedDocuments,r)}));var l=s.resumeToken;if(l.length>0){var c=u;u=u.copy({resumeToken:l,snapshotVersion:e.snapshotVersion}),n.queryDataByTarget[r]=u,t.shouldPersistQueryData(c,u,s)&&o.push(n.queryCache.updateQueryData(i,u))}}});var s=Ie(),u=Pe();e.documentUpdates.forEach(function(t,e){u=u.add(t)}),o.push(r.getEntries(i,u).next(function(t){e.documentUpdates.forEach(function(u,l){var c=t.get(u);null==c||l.version.isEqual(Zt.MIN)||a.has(l.key)&&!c.hasPendingWrites||l.version.compareTo(c.version)>=0?(r.addEntry(l),s=s.insert(u,l)):p("LocalStore","Ignoring outdated watch update for ",u,". Current version:",c.version," Watch version:",l.version),e.resolvedLimboDocuments.has(u)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(i,u))})}));var l=e.snapshotVersion;if(!l.isEqual(Zt.MIN)){var c=n.queryCache.getLastRemoteSnapshotVersion(i).next(function(t){return y(l.compareTo(t)>=0,"Watch stream reverted to previous snapshot?? "+l+" < "+t),n.queryCache.setTargetsMetadata(i,i.currentSequenceNumber,l)});o.push(c)}return kn.waitFor(o).next(function(){return r.apply(i)}).next(function(){return n.localDocuments.getLocalViewOfDocuments(i,s)})})},t.shouldPersistQueryData=function(t,e,n){return 0!==e.resumeToken.length&&(0===t.resumeToken.length||e.snapshotVersion.toMicroseconds()-t.snapshotVersion.toMicroseconds()>=this.RESUME_TOKEN_MAX_AGE_MICROS||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)},t.prototype.notifyLocalViewChanges=function(t){var e=this;return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(n){return kn.forEach(t,function(t){return e.localViewReferences.addReferences(t.addedKeys,t.targetId),e.localViewReferences.removeReferences(t.removedKeys,t.targetId),kn.forEach(t.removedKeys,function(t){return e.persistence.referenceDelegate.removeReference(n,t)})})})},t.prototype.nextMutationBatch=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",function(n){return void 0===t&&(t=-1),e.mutationQueue.getNextMutationBatchAfterBatchId(n,t)})},t.prototype.readDocument=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",function(n){return e.localDocuments.getDocument(n,t)})},t.prototype.allocateQuery=function(t){var e=this;return this.persistence.runTransaction("Allocate query","readwrite",function(n){var r;return e.queryCache.getQueryData(n,t).next(function(i){return i?(r=i,kn.resolve()):e.queryCache.allocateTargetId(n).next(function(i){return r=new ee(t,i,te.Listen,n.currentSequenceNumber),e.queryCache.addQueryData(n,r)})}).next(function(){return y(!e.queryDataByTarget[r.targetId],"Tried to allocate an already allocated query: "+t),e.queryDataByTarget[r.targetId]=r,r})})},t.prototype.releaseQuery=function(t,e){var n=this;return this.persistence.runTransaction("Release query",e?"readwrite":"readwrite-primary",function(r){return n.queryCache.getQueryData(r,t).next(function(i){y(null!=i,"Tried to release nonexistent query: "+t);var o=i.targetId,a=n.queryDataByTarget[o],s=n.localViewReferences.removeReferencesForId(o);
1return delete n.queryDataByTarget[o],e?kn.resolve():kn.forEach(s,function(t){return n.persistence.referenceDelegate.removeReference(r,t)}).next(function(){return n.persistence.referenceDelegate.removeTarget(r,a)})})})},t.prototype.executeQuery=function(t){var e=this;return this.persistence.runTransaction("Execute query","readonly",function(n){return e.localDocuments.getDocumentsMatchingQuery(n,t)})},t.prototype.remoteDocumentKeys=function(t){var e=this;return this.persistence.runTransaction("Remote document keys","readonly",function(n){return e.queryCache.getMatchingKeysForTargetId(n,t)})},t.prototype.getActiveClients=function(){return this.persistence.getActiveClients()},t.prototype.removeCachedMutationBatchMetadata=function(t){this.mutationQueue.removeCachedMutationKeys(t)},t.prototype.setNetworkEnabled=function(t){this.persistence.setNetworkEnabled(t)},t.prototype.applyWriteToRemoteDocuments=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=kn.resolve();return o.forEach(function(r){a=a.next(function(){return n.getEntry(t,r)}).next(function(t){var o=t,a=e.docVersions.get(r);y(null!==a,"ackVersions should contain every doc in the write."),(!o||o.version.compareTo(a)<0)&&((o=i.applyToRemoteDocument(r,o,e))?n.addEntry(o):y(!t,"Mutation batch "+i+" applied to document "+t+" resulted in null"))})}),a.next(function(){return r.mutationQueue.removeMutationBatch(t,i)})},t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.collect(n,e.queryDataByTarget)})},t.prototype.getQueryForTarget=function(t){var e=this;return this.queryDataByTarget[t]?Promise.resolve(this.queryDataByTarget[t].query):this.persistence.runTransaction("Get query data","readonly",function(n){return e.queryCache.getQueryDataForTarget(n,t).next(function(t){return t?t.query:null})})},t.prototype.getNewDocumentChanges=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",function(e){return t.remoteDocuments.getNewDocumentChanges(e)})},t.RESUME_TOKEN_MAX_AGE_MICROS=3e8,t}(),Wr=function(){function t(t,e){this.indexManager=t,this.referenceDelegate=e,this.mutationQueue=[],this.nextBatchId=1,this.lastStreamToken=w(),this.batchesByDocumentKey=new ne($r.compareByKey)}return t.prototype.checkEmpty=function(t){return kn.resolve(0===this.mutationQueue.length)},t.prototype.acknowledgeBatch=function(t,e,n){var r=e.batchId,i=this.indexOfExistingBatchId(r,"acknowledged");y(0===i,"Can only acknowledge the first batch in the mutation queue");var o=this.mutationQueue[i];return y(r===o.batchId,"Queue ordering failure: expected batch "+r+", got batch "+o.batchId),this.lastStreamToken=n,kn.resolve()},t.prototype.getLastStreamToken=function(t){return kn.resolve(this.lastStreamToken)},t.prototype.setLastStreamToken=function(t,e){return this.lastStreamToken=e,kn.resolve()},t.prototype.addMutationBatch=function(t,e,n,r){y(0!==r.length,"Mutation batches should not be empty");var i=this.nextBatchId;this.nextBatchId++,this.mutationQueue.length>0&&y(this.mutationQueue[this.mutationQueue.length-1].batchId<i,"Mutation batchIDs must be monotonically increasing order");var o=new Cn(i,e,n,r);this.mutationQueue.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.batchesByDocumentKey=this.batchesByDocumentKey.add(new $r(u.key,i)),this.indexManager.addToCollectionParentIndex(t,u.key.path.popLast())}return kn.resolve(o)},t.prototype.lookupMutationBatch=function(t,e){return kn.resolve(this.findMutationBatch(e))},t.prototype.lookupMutationKeys=function(t,e){var n=this.findMutationBatch(e);return y(null!=n,"Failed to find local mutation batch."),kn.resolve(n.keys())},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.indexOfBatchId(e+1),r=n<0?0:n;return kn.resolve(this.mutationQueue.length>r?this.mutationQueue[r]:null)},t.prototype.getAllMutationBatches=function(t){return kn.resolve(this.mutationQueue.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new $r(e,0),i=new $r(e,Number.POSITIVE_INFINITY),o=[];
1return this.batchesByDocumentKey.forEachInRange([r,i],function(t){y(e.isEqual(t.key),"Should only iterate over a single key's batches");var r=n.findMutationBatch(t.targetOrBatchId);y(null!==r,"Batches in the index must exist in the main table"),o.push(r)}),kn.resolve(o)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new ne(K);return e.forEach(function(t){var e=new $r(t,0),i=new $r(t,Number.POSITIVE_INFINITY);n.batchesByDocumentKey.forEachInRange([e,i],function(e){y(t.isEqual(e.key),"For each key, should only iterate over a single key's batches"),r=r.add(e.targetOrBatchId)})}),kn.resolve(this.findMutationBatches(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){y(!e.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var n=e.path,r=n.length+1,i=n;lt.isDocumentKey(i)||(i=i.child(""));var o=new $r(new lt(i),0),a=new ne(K);return this.batchesByDocumentKey.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(a=a.add(t.targetOrBatchId)),!0)},o),kn.resolve(this.findMutationBatches(a))},t.prototype.findMutationBatches=function(t){var e=this,n=[];return t.forEach(function(t){var r=e.findMutationBatch(t);null!==r&&n.push(r)}),n},t.prototype.removeMutationBatch=function(t,e){var n=this;y(0===this.indexOfExistingBatchId(e.batchId,"removed"),"Can only remove the first entry of the mutation queue"),this.mutationQueue.shift();var r=this.batchesByDocumentKey;return kn.forEach(e.mutations,function(i){var o=new $r(i.key,e.batchId);return r=r.delete(o),n.referenceDelegate.removeMutationReference(t,i.key)}).next(function(){n.batchesByDocumentKey=r})},t.prototype.removeCachedMutationKeys=function(t){},t.prototype.containsKey=function(t,e){var n=new $r(e,0),r=this.batchesByDocumentKey.firstAfterOrEqual(n);return kn.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return 0===this.mutationQueue.length&&y(this.batchesByDocumentKey.isEmpty(),"Document leak -- detected dangling mutation references when queue is empty."),kn.resolve()},t.prototype.indexOfExistingBatchId=function(t,e){var n=this.indexOfBatchId(t);return y(n>=0&&n<this.mutationQueue.length,"Batches must exist to be "+e),n},t.prototype.indexOfBatchId=function(t){return 0===this.mutationQueue.length?0:t-this.mutationQueue[0].batchId},t.prototype.findMutationBatch=function(t){var e=this.indexOfBatchId(t);if(e<0||e>=this.mutationQueue.length)return null;var n=this.mutationQueue[e];return y(n.batchId===t,"If found batch must match"),n},t}(),Qr=function(){function t(t){this.persistence=t,this.queries=new Kn(function(t){return t.canonicalId()}),this.lastRemoteSnapshotVersion=Zt.MIN,this.highestTargetId=0,this.highestSequenceNumber=0,this.references=new Gr,this.targetCount=0,this.targetIdGenerator=Mn.forQueryCache()}return t.prototype.getTargetCount=function(t){return kn.resolve(this.targetCount)},t.prototype.forEachTarget=function(t,e){return this.queries.forEach(function(t,n){return e(n)}),kn.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return kn.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return kn.resolve(this.highestSequenceNumber)},t.prototype.allocateTargetId=function(t){var e=this.targetIdGenerator.after(this.highestTargetId);return this.highestTargetId=e,kn.resolve(e)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.highestSequenceNumber&&(this.highestSequenceNumber=e),kn.resolve()},t.prototype.saveQueryData=function(t){this.queries.set(t.query,t);var e=t.targetId;e>this.highestTargetId&&(this.highestTargetId=e),t.sequenceNumber>this.highestSequenceNumber&&(this.highestSequenceNumber=t.sequenceNumber)},t.prototype.addQueryData=function(t,e){return y(!this.queries.has(e.query),"Adding a query that already exists"),this.saveQueryData(e),this.targetCount+=1,kn.resolve()},t.prototype.updateQueryData=function(t,e){return y(this.queries.has(e.query),"Updating a non-existent query"),this.saveQueryData(e),kn.resolve()},t.prototype.removeQueryData=function(t,e){return y(this.targetCount>0,"Removing a target from an empty cache"),y(this.queries.has(e.query),"Removing a non-existent target from the cache"),this.queries.delete(e.query),this.references.removeReferencesForId(e.targetId),this.targetCount-=1,kn.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];
1return this.queries.forEach(function(a,s){s.sequenceNumber<=e&&!n[s.targetId]&&(r.queries.delete(a),o.push(r.removeMatchingKeysForTargetId(t,s.targetId)),i++)}),kn.waitFor(o).next(function(){return i})},t.prototype.getQueryCount=function(t){return kn.resolve(this.targetCount)},t.prototype.getQueryData=function(t,e){var n=this.queries.get(e)||null;return kn.resolve(n)},t.prototype.getQueryDataForTarget=function(t,e){return v("Not yet implemented.")},t.prototype.addMatchingKeys=function(t,e,n){this.references.addReferences(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach(function(e){i.push(r.addReference(t,e))}),kn.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){this.references.removeReferences(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach(function(e){i.push(r.removeReference(t,e))}),kn.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this.references.removeReferencesForId(e),kn.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this.references.referencesForId(e);return kn.resolve(n)},t.prototype.containsKey=function(t,e){return kn.resolve(this.references.containsKey(e))},t}(),Jr=function(){function t(t,e){this.indexManager=t,this.sizer=e,this.docs=new pt(lt.comparator),this.newDocumentChanges=Pe(),this.size=0}return t.prototype.addEntries=function(t,e,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.maybeDocument.key;this.docs=this.docs.insert(s,a),this.newDocumentChanges=this.newDocumentChanges.add(s),r.push(this.indexManager.addToCollectionParentIndex(t,s.path.popLast()))}return this.size+=n,kn.waitFor(r)},t.prototype.removeEntry=function(t,e){var n=this.docs.get(e);return n?(this.docs=this.docs.remove(e),this.size-=n.size,kn.resolve(n.size)):kn.resolve(0)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return kn.resolve(n?n.maybeDocument:null)},t.prototype.getSizedEntry=function(t,e){return kn.resolve(this.docs.get(e))},t.prototype.getEntries=function(t,e){var n=this,r=ke();return e.forEach(function(t){var e=n.docs.get(t);r=r.insert(t,e?e.maybeDocument:null)}),kn.resolve(r)},t.prototype.getSizedEntries=function(t,e){var n=this,r=ke(),i=new pt(lt.comparator);return e.forEach(function(t){var e=n.docs.get(t);r=r.insert(t,e?e.maybeDocument:null),i=i.insert(t,e?e.size:0)}),kn.resolve({maybeDocuments:r,sizeMap:i})},t.prototype.getDocumentsMatchingQuery=function(t,e){y(!e.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");for(var n=Oe(),r=new lt(e.path.child("")),i=this.docs.getIteratorFrom(r);i.hasNext();){var o=i.getNext(),a=o.value.maybeDocument;if(!e.path.isPrefixOf(o.key.path))break;a instanceof ht&&e.matches(a)&&(n=n.insert(a.key,a))}return kn.resolve(n)},t.prototype.forEachDocumentKey=function(t,e){return kn.forEach(this.docs,function(t){return e(t)})},t.prototype.getNewDocumentChanges=function(t){var e=this,n=Ie();
1return this.newDocumentChanges.forEach(function(t){var r=e.docs.get(t),i=r?r.maybeDocument:new ft(t,Zt.forDeletedDoc());n=n.insert(t,i)}),this.newDocumentChanges=Pe(),kn.resolve(n)},t.prototype.newChangeBuffer=function(){return new Xr(this.sizer,this)},t.prototype.getSize=function(t){return kn.resolve(this.size)},t}(),Xr=function(t){function e(e,n){var r=t.call(this)||this;return r.sizer=e,r.documentCache=n,r}return a.__extends(e,t),e.prototype.applyChanges=function(t){var e=this,n=this.assertChanges(),r=0,i=[];return n.forEach(function(t,n){var o=e.documentSizes.get(t);y(void 0!==o,"Attempting to change document "+t.toString()+" without having read it first");var a=e.sizer(n);r+=a-o,i.push({maybeDocument:n,size:a})}),this.documentCache.addEntries(t,i,r)},e.prototype.getFromCache=function(t,e){return this.documentCache.getSizedEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.documentCache.getSizedEntries(t,e)},e}(Wn),Yr=function(){function t(t,e){var n=this;this.clientId=t,this.mutationQueues={},this.listenSequence=new fn(0),this._started=!1,this._started=!0,this.referenceDelegate=e(this),this.queryCache=new Qr(this),this.indexManager=new rr,this.remoteDocumentCache=new Jr(this.indexManager,function(t){return n.referenceDelegate.documentSize(t)})}return t.createLruPersistence=function(e,n,r){return new t(e,function(t){return new ei(t,new kr(n),r)})},t.createEagerPersistence=function(e){return new t(e,function(t){return new ti(t)})},t.prototype.shutdown=function(){return this._started=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),t.prototype.getActiveClients=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){return[2,[this.clientId]]})})},t.prototype.setPrimaryStateListener=function(t){return t(!0)},t.prototype.setNetworkEnabled=function(t){},t.prototype.getIndexManager=function(){return this.indexManager},t.prototype.getMutationQueue=function(t){var e=this.mutationQueues[t.toKey()];return e||(e=new Wr(this.indexManager,this.referenceDelegate),this.mutationQueues[t.toKey()]=e),e},t.prototype.getQueryCache=function(){return this.queryCache},t.prototype.getRemoteDocumentCache=function(){return this.remoteDocumentCache},t.prototype.runTransaction=function(t,e,n){var r=this;p("MemoryPersistence","Starting transaction:",t);var i=new Zr(this.listenSequence.next());return this.referenceDelegate.onTransactionStarted(),n(i).next(function(t){return r.referenceDelegate.onTransactionCommitted(i).next(function(){return t})}).toPromise()},t.prototype.mutationQueuesContainKey=function(t,e){return kn.or((n=this.mutationQueues,r=[],T(n,function(t,e){return r.push(e)}),r).map(function(n){return function(){return n.containsKey(t,e)}}));var n,r},t}(),Zr=function(){return function(t){this.currentSequenceNumber=t}}(),ti=function(){function t(t){this.persistence=t}return t.prototype.setInMemoryPins=function(t){this.inMemoryPins=t},t.prototype.addReference=function(t,e){return this.orphanedDocuments.delete(e),kn.resolve()},t.prototype.removeReference=function(t,e){return this.orphanedDocuments.add(e),kn.resolve()},t.prototype.removeMutationReference=function(t,e){return this.orphanedDocuments.add(e),kn.resolve()},t.prototype.removeTarget=function(t,e){var n=this,r=this.persistence.getQueryCache();return r.getMatchingKeysForTargetId(t,e.targetId).next(function(t){t.forEach(function(t){return n.orphanedDocuments.add(t)})}).next(function(){return r.removeQueryData(t,e)})},t.prototype.onTransactionStarted=function(){this.orphanedDocuments=new Set},t.prototype.onTransactionCommitted=function(t){var e=this,n=this.persistence.getRemoteDocumentCache();return kn.forEach(this.orphanedDocuments,function(r){return e.isReferenced(t,r).next(function(e){return e?kn.resolve():n.removeEntry(t,r).next(function(){})})})},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.isReferenced(t,e).next(function(t){t?n.orphanedDocuments.delete(e):n.orphanedDocuments.add(e)})},t.prototype.documentSize=function(t){return 0},t.prototype.isReferenced=function(t,e){var n=this;return kn.or([function(){return n.persistence.getQueryCache().containsKey(t,e)}
1,function(){return n.persistence.mutationQueuesContainKey(t,e)},function(){return kn.resolve(n.inMemoryPins.containsKey(e))}])},t}(),ei=function(){function t(t,e,n){this.persistence=t,this.serializer=e,this.orphanedSequenceNumbers=new Kn(function(t){return wn(t.path)}),this.garbageCollector=new Pr(this,n)}return t.prototype.onTransactionStarted=function(){},t.prototype.onTransactionCommitted=function(t){return kn.resolve()},t.prototype.forEachTarget=function(t,e){return this.persistence.getQueryCache().forEachTarget(t,e)},t.prototype.getSequenceNumberCount=function(t){var e=this.orphanedDocumentCount(t);return this.persistence.getQueryCache().getTargetCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.orphanedDocumentCount=function(t){var e=0;return this.forEachOrphanedDocumentSequenceNumber(t,function(t){e++}).next(function(){return e})},t.prototype.forEachOrphanedDocumentSequenceNumber=function(t,e){var n=this;return kn.forEach(this.orphanedSequenceNumbers,function(r,i){return n.isPinned(t,r,i).next(function(t){return t?kn.resolve():e(i)})})},t.prototype.setInMemoryPins=function(t){this.inMemoryPins=t},t.prototype.removeTargets=function(t,e,n){return this.persistence.getQueryCache().removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=0,i=this.persistence.getRemoteDocumentCache();return i.forEachDocumentKey(t,function(o){return n.isPinned(t,o,e).next(function(e){return e?kn.resolve():(r++,i.removeEntry(t,o).next())})}).next(function(){return r})},t.prototype.removeMutationReference=function(t,e){return this.orphanedSequenceNumbers.set(e,t.currentSequenceNumber),kn.resolve()},t.prototype.removeTarget=function(t,e){var n=e.copy({sequenceNumber:t.currentSequenceNumber});return this.persistence.getQueryCache().updateQueryData(t,n)},t.prototype.addReference=function(t,e){return this.orphanedSequenceNumbers.set(e,t.currentSequenceNumber),kn.resolve()},t.prototype.removeReference=function(t,e){return this.orphanedSequenceNumbers.set(e,t.currentSequenceNumber),kn.resolve()},t.prototype.updateLimboDocument=function(t,e){return this.orphanedSequenceNumbers.set(e,t.currentSequenceNumber),kn.resolve()},t.prototype.documentSize=function(t){var e,n=this.serializer.toDbRemoteDocument(t);if(n.document)e=n.document;else if(n.unknownDocument)e=n.unknownDocument;else{if(!n.noDocument)throw v("Unknown remote document type");e=n.noDocument}return JSON.stringify(e).length},t.prototype.isPinned=function(t,e,n){var r=this;return kn.or([function(){return r.persistence.mutationQueuesContainKey(t,e)},function(){return kn.resolve(r.inMemoryPins.containsKey(e))},function(){return r.persistence.getQueryCache().containsKey(t,e)},function(){var t=r.orphanedSequenceNumbers.get(e);return kn.resolve(void 0!==t&&t>n)}])},t.prototype.getCacheSize=function(t){return this.persistence.getRemoteDocumentCache().getSize(t)},t}(),ni=function(){function t(t,e,n,r,i){this.queue=t,this.timerId=e,this.initialDelayMs=n,this.backoffFactor=r,this.maxDelayMs=i,this.timerPromise=null,this.lastAttemptTime=Date.now(),this.reset()}return t.prototype.reset=function(){this.currentBaseMs=0},t.prototype.resetToMax=function(){this.currentBaseMs=this.maxDelayMs},t.prototype.backoffAndRun=function(t){var e=this;this.cancel();var n=Math.floor(this.currentBaseMs+this.jitterDelayMs()),r=Math.max(0,Date.now()-this.lastAttemptTime),i=Math.max(0,n-r);this.currentBaseMs>0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.currentBaseMs+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.timerPromise=this.queue.enqueueAfterDelay(this.timerId,i,function(){return e.lastAttemptTime=Date.now(),t()}),this.currentBaseMs*=this.backoffFactor,this.currentBaseMs<this.initialDelayMs&&(this.currentBaseMs=this.initialDelayMs),this.currentBaseMs>this.maxDelayMs&&(this.currentBaseMs=this.maxDelayMs)},t.prototype.cancel=function(){null!==this.timerPromise&&(this.timerPromise.cancel(),this.timerPromise=null)},t.prototype.jitterDelayMs=function(){return(Math.random()-.5)*this.currentBaseMs},t}(),ri=function(t){return t[t.Initial=0]="Initial",t[t.Starting=1]="Starting",t[t.Open=2]="Open",t[t.Error=3]="Error",t[t.Backoff=4]="Backoff",t}({}),ii=1e3,oi=6e4,ai=1.5,si=function(){function t(t,e,n,r,i,o){this.queue=t,this.idleTimerId=n,this.connection=r,this.credentialsProvider=i,this.listener=o,this.state=ri.Initial,this.closeCount=0,this.idleTimer=null,this.stream=null,this.backoff=new ni(t,e,
1ii,ai,oi)}return t.prototype.isStarted=function(){return this.state===ri.Starting||this.state===ri.Open||this.state===ri.Backoff},t.prototype.isOpen=function(){return this.state===ri.Open},t.prototype.start=function(){this.state!==ri.Error?(y(this.state===ri.Initial,"Already started"),this.auth()):this.performBackoff()},t.prototype.stop=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.isStarted()?[4,this.close(ri.Initial)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.inhibitBackoff=function(){y(!this.isStarted(),"Can only inhibit backoff in a stopped state"),this.state=ri.Initial,this.backoff.reset()},t.prototype.markIdle=function(){var t=this;this.isOpen()&&null===this.idleTimer&&(this.idleTimer=this.queue.enqueueAfterDelay(this.idleTimerId,6e4,function(){return t.handleIdleCloseTimer()}))},t.prototype.sendRequest=function(t){this.cancelIdleCheck(),this.stream.send(t)},t.prototype.handleIdleCloseTimer=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){return this.isOpen()?[2,this.close(ri.Initial)]:[2]})})},t.prototype.cancelIdleCheck=function(){this.idleTimer&&(this.idleTimer.cancel(),this.idleTimer=null)},t.prototype.close=function(t,e){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(n){switch(n.label){case 0:return y(this.isStarted(),"Only started streams should be closed."),y(t===ri.Error||Ut(e),"Can't provide an error when not in an error state."),this.cancelIdleCheck(),this.backoff.cancel(),this.closeCount++,t!==ri.Error?this.backoff.reset():e&&e.code===_.RESOURCE_EXHAUSTED?(m(e.toString()),m("Using maximum backoff delay to prevent overloading the backend."),this.backoff.resetToMax()):e&&e.code===_.UNAUTHENTICATED&&this.credentialsProvider.invalidateToken(),null!==this.stream&&(this.tearDown(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.onClose(e)];case 1:return n.sent(),[2]}})})},t.prototype.tearDown=function(){},t.prototype.auth=function(){var t=this;y(this.state===ri.Initial,"Must be in initial state to auth"),this.state=ri.Starting;var e=this.getCloseGuardedDispatcher(this.closeCount),n=this.closeCount;this.credentialsProvider.getToken().then(function(e){t.closeCount===n&&t.startStream(e)},function(n){e(function(){var e=new S(_.UNKNOWN,"Fetching auth token failed: "+n.message);return t.handleStreamClose(e)})})},t.prototype.startStream=function(t){var e=this;y(this.state===ri.Starting,"Trying to start stream in a non-starting state");var n=this.getCloseGuardedDispatcher(this.closeCount);this.stream=this.startRpc(t),this.stream.onOpen(function(){n(function(){return y(e.state===ri.Starting,"Expected stream to be in state Starting, but was "+e.state),e.state=ri.Open,e.listener.onOpen()})}),this.stream.onClose(function(t){n(function(){return e.handleStreamClose(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.performBackoff=function(){var t=this;y(this.state===ri.Error,"Should only perform backoff when in Error state"),this.state=ri.Backoff,this.backoff.backoffAndRun(function(){return a.__awaiter(t,void 0,void 0,function(){return a.__generator(this,function(t){return y(this.state===ri.Backoff,"Backoff elapsed but state is now: "+this.state),this.state=ri.Initial,this.start(),y(this.isStarted(),"PersistentStream should have started"),[2]})})})},t.prototype.handleStreamClose=function(t){return y(this.isStarted(),"Can't handle server close on non-started stream"),p("PersistentStream","close with error: "+t),this.stream=null,this.close(ri.Error,t)},t.prototype.getCloseGuardedDispatcher=function(t){var e=this;return function(n){e.queue.enqueueAndForget(function(){return e.closeCount===t?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),ui=function(t){function e(e,n,r,i,o){var a=t.call(this,e,hn.ListenStreamConnectionBackoff,hn.ListenStreamIdle,n,r,o)||this;return a.serializer=i,a}return a.__extends(e,t),e.prototype.startRpc=function(t){return this.connection.openStream("Listen",t)},e.prototype.onMessage=function(t){this.backoff.reset();var e=this.serializer.fromWatchChange(t),n=this.serializer.versionFromListenResponse(t);return this.listener.onWatchChange(e,n)},e.prototype.watch=function(t){var e={};e.database=this.serializer.encodedDatabaseId,e.addTarget=this.serializer.toTarget(t);var n=this.serializer.toListenRequestLabels(t);n&&(e.labels=n),this.sendRequest(e)},e.prototype.unwatch=function(t){var e={};e.database=this.serializer.encodedDatabaseId,e.removeTarget=t,this.sendRequest(e)},e}(si),li=function(t){function e(e,n,r,i,o){var a=t.call(this,e,hn.WriteStreamConnectionBackoff,hn.WriteStreamIdle,n,r,o)||this;
1return a.serializer=i,a.handshakeComplete_=!1,a}return a.__extends(e,t),Object.defineProperty(e.prototype,"handshakeComplete",{get:function(){return this.handshakeComplete_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.handshakeComplete_=!1,t.prototype.start.call(this)},e.prototype.tearDown=function(){this.handshakeComplete_&&this.writeMutations([])},e.prototype.startRpc=function(t){return this.connection.openStream("Write",t)},e.prototype.onMessage=function(t){if(y(!!t.streamToken,"Got a write response without a stream token"),this.lastStreamToken=t.streamToken,this.handshakeComplete_){this.backoff.reset();var e=this.serializer.fromWriteResults(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.onMutationResult(n,e)}return y(!t.writeResults||0===t.writeResults.length,"Got mutation results for handshake"),this.handshakeComplete_=!0,this.listener.onHandshakeComplete()},e.prototype.writeHandshake=function(){y(this.isOpen(),"Writing handshake requires an opened stream"),y(!this.handshakeComplete_,"Handshake already completed");var t={};t.database=this.serializer.encodedDatabaseId,this.sendRequest(t)},e.prototype.writeMutations=function(t){var e=this;y(this.isOpen(),"Writing mutations requires an opened stream"),y(this.handshakeComplete_,"Handshake must be complete before writing mutations"),y(this.lastStreamToken.length>0,"Trying to write mutation without a token");var n={streamToken:this.lastStreamToken,writes:t.map(function(t){return e.serializer.toMutation(t)})};this.sendRequest(n)},e}(si),ci=function(){function t(t,e,n,r){this.queue=t,this.connection=e,this.credentials=n,this.serializer=r}return t.prototype.newPersistentWriteStream=function(t){return new li(this.queue,this.connection,this.credentials,this.serializer,t)},t.prototype.newPersistentWatchStream=function(t){return new ui(this.queue,this.connection,this.credentials,this.serializer,t)},t.prototype.commit=function(t){var e=this,n={database:this.serializer.encodedDatabaseId,writes:t.map(function(t){return e.serializer.toMutation(t)})};return this.invokeRPC("Commit",n).then(function(t){return e.serializer.fromWriteResults(t.writeResults,t.commitTime)})},t.prototype.lookup=function(t){var e=this,n={database:this.serializer.encodedDatabaseId,documents:t.map(function(t){return e.serializer.toName(t)})};return this.invokeStreamingRPC("BatchGetDocuments",n).then(function(n){var r=Ie();n.forEach(function(t){var n=e.serializer.fromMaybeDocument(t);r=r.insert(n.key,n)});var i=[];return t.forEach(function(t){var e=r.get(t);y(!!e,"Missing entity in write response for "+t),i.push(e)}),i})},t.prototype.invokeRPC=function(t,e){var n=this;return this.credentials.getToken().then(function(r){return n.connection.invokeRPC(t,e,r)}).catch(function(t){throw t.code===_.UNAUTHENTICATED&&n.credentials.invalidateToken(),t})},t.prototype.invokeStreamingRPC=function(t,e){var n=this;return this.credentials.getToken().then(function(r){return n.connection.invokeStreamingRPC(t,e,r)}).catch(function(t){throw t.code===_.UNAUTHENTICATED&&n.credentials.invalidateToken(),t})},t}(),hi=function(){function t(t){this.datastore=t,this.readVersions=xe(),this.mutations=[],this.committed=!1}return t.prototype.recordVersion=function(t){var e;if(t instanceof ht)e=t.version;else{if(!(t instanceof ft))throw v("Document in a transaction was a "+t.constructor.name);e=Zt.forDeletedDoc()}var n=this.readVersions.get(t.key);if(null!==n){if(!e.isEqual(n))throw new S(_.ABORTED,"Document version changed between two reads.")}else this.readVersions=this.readVersions.insert(t.key,e)},t.prototype.lookup=function(t){var e=this;return this.committed?Promise.reject("Transaction has already completed."):this.mutations.length>0?Promise.reject("Transactions lookups are invalid after writes."):this.datastore.lookup(t).then(function(t){return t.forEach(function(t){t instanceof ft||t instanceof ht?e.recordVersion(t):v("Document in a transaction was a "+t.constructor.name)}),t})},t.prototype.write=function(t){if(this.committed)throw new S(_.FAILED_PRECONDITION,"Transaction has already completed.");this.mutations=this.mutations.concat(t)},t.prototype.precondition=function(t){var e=this.readVersions.get(t);return e?ue.updateTime(e):ue.NONE},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t);if(e&&e.isEqual(Zt.forDeletedDoc()))throw new S(_.FAILED_PRECONDITION,"Can't update a document that doesn't exist.");return e?ue.updateTime(e):ue.exists(!0)},t.prototype.set=function(t,e){this.write(e.toMutations(t,this.prec
1ondition(t)))},t.prototype.update=function(t,e){this.write(e.toMutations(t,this.preconditionForUpdate(t)))},t.prototype.delete=function(t){this.write([new de(t,this.precondition(t))]),this.readVersions=this.readVersions.insert(t,Zt.forDeletedDoc())},t.prototype.commit=function(){var t=this,e=this.readVersions;return this.mutations.forEach(function(t){e=e.remove(t.key)}),e.isEmpty()?this.datastore.commit(this.mutations).then(function(){t.committed=!0}):Promise.reject(Error("Every document read in a transaction must also be written."))},t}(),fi=function(t){return t[t.Unknown=0]="Unknown",t[t.Online=1]="Online",t[t.Offline=2]="Offline",t}({}),di=function(t){return t[t.RemoteStore=0]="RemoteStore",t[t.SharedClientState=1]="SharedClientState",t}({}),pi=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state=fi.Unknown,this.watchStreamFailures=0,this.onlineStateTimer=null,this.shouldWarnClientIsOffline=!0}return t.prototype.handleWatchStreamStart=function(){var t=this;0===this.watchStreamFailures&&(this.setAndBroadcast(fi.Unknown),y(null===this.onlineStateTimer,"onlineStateTimer shouldn't be started yet"),this.onlineStateTimer=this.asyncQueue.enqueueAfterDelay(hn.OnlineStateTimeout,1e4,function(){return t.onlineStateTimer=null,y(t.state===fi.Unknown,"Timer should be canceled if we transitioned to a different state."),t.logClientOfflineWarningIfNecessary("Backend didn't respond within 10 seconds."),t.setAndBroadcast(fi.Offline),Promise.resolve()}))},t.prototype.handleWatchStreamFailure=function(t){this.state===fi.Online?(this.setAndBroadcast(fi.Unknown),y(0===this.watchStreamFailures,"watchStreamFailures must be 0"),y(null===this.onlineStateTimer,"onlineStateTimer must be null")):(this.watchStreamFailures++,this.watchStreamFailures>=1&&(this.clearOnlineStateTimer(),this.logClientOfflineWarningIfNecessary("Connection failed 1 times. Most recent error: "+t.toString()),this.setAndBroadcast(fi.Offline)))},t.prototype.set=function(t){this.clearOnlineStateTimer(),this.watchStreamFailures=0,t===fi.Online&&(this.shouldWarnClientIsOffline=!1),this.setAndBroadcast(t)},t.prototype.setAndBroadcast=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.logClientOfflineWarningIfNecessary=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.shouldWarnClientIsOffline?(m(e),this.shouldWarnClientIsOffline=!1):p("OnlineStateTracker",e)},t.prototype.clearOnlineStateTimer=function(){null!==this.onlineStateTimer&&(this.onlineStateTimer.cancel(),this.onlineStateTimer=null)},t}(),mi=function(){function t(t,e,n,r){this.localStore=t,this.datastore=e,this.writePipeline=[],this.listenTargets={},this.watchChangeAggregator=null,this.networkEnabled=!1,this.isPrimary=!1,this.onlineStateTracker=new pi(n,r),this.watchStream=this.datastore.newPersistentWatchStream({onOpen:this.onWatchStreamOpen.bind(this),onClose:this.onWatchStreamClose.bind(this),onWatchChange:this.onWatchStreamChange.bind(this)}),this.writeStream=this.datastore.newPersistentWriteStream({onOpen:this.onWriteStreamOpen.bind(this),onClose:this.onWriteStreamClose.bind(this),onHandshakeComplete:this.onWriteHandshakeComplete.bind(this),onMutationResult:this.onMutationResult.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return a.__awaiter(this,void 0,void 0,function(){var t;return a.__generator(this,function(e){switch(e.label){case 0:return this.networkEnabled=!0,this.canUseNetwork()?(t=this.writeStream,[4,this.localStore.getLastStreamToken()]):[3,3];case 1:return t.lastStreamToken=e.sent(),this.shouldStartWatchStream()?this.startWatchStream():this.onlineStateTracker.set(fi.Unknown),[4,this.fillWritePipeline()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.disableNetwork=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return t.sent(),this.onlineStateTracker.set(fi.Offline),[2]}})})},t.prototype.disableNetworkInternal=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return[4,this.writeStream.stop()];case 1:return t.sent(),[4,this.watchStream.stop()];case 2:return t.sent(),this.writePipeline.length>0&&(p("RemoteStore","Stopping write stream with "+this.writePipeline.length+" pending writes"),this.writePipeline=[]),this.cleanUpWatchStreamState(),[2]}})})},t.prototype.shutdown=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return p("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return t.sent(),this.onlineStateTracker.set(fi.Unknown),[2]}})})},t.prototype.listen=function(t){y(!C(this.listenTargets,t.targetId),"listen called with duplicate targetId!"),this.listenTargets[t.targetId]=t,this.shouldStartWatchStream()?this.startWatchStream():this.watchStream.isOpen()&&this.sendWatchRequest(t)},t.prototype.unlisten=function(t){y(C(this.listenTargets,t),"unlisten called without assigned target ID!"),delete this.listenTargets[t],this.watchStream.isOpen()&&this.sendUnwatchRequest(t),O(this.listenTargets)&&(this.watchStream.isOpen()?this.watchStream.markIdle():this.canUseNetwork()&&this.onlineStateTracker.set(fi.Unknown))},t.prototype.getQueryDataForTarget=function(t){return this.listenTargets[t]||null},t.prototype.getRemoteKeysForTarget=function(t){return this.syncEngine.getRemoteKeysForTarget(t)}
1,t.prototype.sendWatchRequest=function(t){this.watchChangeAggregator.recordPendingTargetRequest(t.targetId),this.watchStream.watch(t)},t.prototype.sendUnwatchRequest=function(t){this.watchChangeAggregator.recordPendingTargetRequest(t),this.watchStream.unwatch(t)},t.prototype.startWatchStream=function(){y(this.shouldStartWatchStream(),"startWatchStream() called when shouldStartWatchStream() is false."),this.watchChangeAggregator=new Ke(this),this.watchStream.start(),this.onlineStateTracker.handleWatchStreamStart()},t.prototype.shouldStartWatchStream=function(){return this.canUseNetwork()&&!this.watchStream.isStarted()&&!O(this.listenTargets)},t.prototype.canUseNetwork=function(){return this.isPrimary&&this.networkEnabled},t.prototype.cleanUpWatchStreamState=function(){this.watchChangeAggregator=null},t.prototype.onWatchStreamOpen=function(){return a.__awaiter(this,void 0,void 0,function(){var t=this;return a.__generator(this,function(e){return k(this.listenTargets,function(e,n){t.sendWatchRequest(n)}),[2]})})},t.prototype.onWatchStreamClose=function(t){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){return void 0===t&&y(!this.shouldStartWatchStream(),"Watch stream was stopped gracefully while still needed."),this.cleanUpWatchStreamState(),this.shouldStartWatchStream()?(this.onlineStateTracker.handleWatchStreamFailure(t),this.startWatchStream()):this.onlineStateTracker.set(fi.Unknown),[2]})})},t.prototype.onWatchStreamChange=function(t,e){return a.__awaiter(this,void 0,void 0,function(){var n;return a.__generator(this,function(r){switch(r.label){case 0:return this.onlineStateTracker.set(fi.Online),t instanceof Ge&&t.state===He.Removed&&t.cause?[2,this.handleTargetError(t)]:(t instanceof Be?this.watchChangeAggregator.handleDocumentChange(t):t instanceof ze?this.watchChangeAggregator.handleExistenceFilter(t):(y(t instanceof Ge,"Expected watchChange to be an instance of WatchTargetChange"),this.watchChangeAggregator.handleTargetChange(t)),e.isEqual(Zt.MIN)?[3,3]:[4,this.localStore.getLastRemoteSnapshotVersion()]);case 1:return n=r.sent(),e.compareTo(n)>=0?[4,this.raiseWatchSnapshot(e)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.raiseWatchSnapshot=function(t){var e=this;y(!t.isEqual(Zt.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.watchChangeAggregator.createRemoteEvent(t);return k(n.targetChanges,function(n,r){if(r.resumeToken.length>0){var i=e.listenTargets[n];i&&(e.listenTargets[n]=i.copy({resumeToken:r.resumeToken,snapshotVersion:t}))}}),n.targetMismatches.forEach(function(t){var n=e.listenTargets[t];if(n){e.listenTargets[t]=n.copy({resumeToken:w()}),e.sendUnwatchRequest(t);var r=new ee(n.query,t,te.ExistenceFilterMismatch,n.sequenceNumber);e.sendWatchRequest(r)}}),this.syncEngine.applyRemoteEvent(n)},t.prototype.handleTargetError=function(t){var e=this;y(!!t.cause,"Handling target error without a cause");var n=t.cause,r=Promise.resolve();return t.targetIds.forEach(function(t){r=r.then(function(){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(e){return C(this.listenTargets,t)?(delete this.listenTargets[t],this.watchChangeAggregator.removeTarget(t),[2,this.syncEngine.rejectListen(t,n)]):[2]})})})}),r},t.prototype.fillWritePipeline=function(){return a.__awaiter(this,void 0,void 0,function(){var t;return a.__generator(this,function(e){switch(e.label){case 0:return this.canAddToWritePipeline()?[4,this.localStore.nextMutationBatch(this.writePipeline.length>0?this.writePipeline[this.writePipeline.length-1].batchId:-1)]:[3,4];case 1:return null!==(t=e.sent())?[3,2]:(0===this.writePipeline.length&&this.writeStream.markIdle(),[3,4]);case 2:return this.addToWritePipeline(t),[4,this.fillWritePipeline()];case 3:e.sent(),e.label=4;case 4:return this.shouldStartWriteStream()&&this.startWriteStream(),[2]}})})},t.prototype.canAddToWritePipeline=function(){return this.canUseNetwork()&&this.writePipeline.length<10},t.prototype.outstandingWrites=function(){return this.writePipeline.length},t.prototype.addToWritePipeline=function(t){y(this.canAddToWritePipeline(),"addToWritePipeline called when pipeline is full"),this.writePipeline.push(t),this.writeStream.isOpen()&&this.writeStream.handshakeComplete&&this.writeStream.writeMutations(t.mutations)},t.prototype.shouldStartWriteStream=function(){return this.canUseNetwork()&&!this.writeStream.isStarted()&&this.writePipeline.length>0},t.prototype.startWriteStream=function(){y(this.shouldStartWriteStream(),"startWriteStream() called when shouldStartWriteStream() is false."),this.writeStream.start()},t.prototype.onWriteStreamOpen=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){return this.writeStream.writeHandshake(),[2]})})},t.prototype.onWriteHandshakeComplete=function(){var t=this;return this.localStore.setLastStreamToken(this.writeStream.lastStreamToken).then(function(){for(var e=0,n=t.writePipeline;e<n.length;e++)t.writeStream.writeMutations(n[e].mutations)}).catch(Vr)},t.prototype.onMutationResult=function(t,e){var n=this;y(this.writePipeline.length>0,"Got result for empty write pipeline");var r=this.writePipeline.shift(),i=In.from(r,t,e,this.writeStream.lastStreamToken);return this.syncEngine.applySuccessfulWrite(i).then(function(){return n.fillWritePipeline()})},t.prototype.onWriteStreamClose=function(t){return a.__awaiter(this,void 0,void 0,function(){var e=this;return a.__generator(this,function(n){return void 0===t&&y(!this.shouldStartWriteStream(),"Write stream was stopped gracefully while still needed."),t&&this.writePipeline.length>0?[2,(this.writeStream.handshakeComplete?this.handleWriteError(t):this.handleHandshakeError(t)).then(function(){e.shouldStartWriteStream()&&e.startWriteStream()})]:[2]})})},t.prototype.handleHandshakeError=function(t){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){return _e(t.code)?(p("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.writeStream.lastStreamToken),this.writeStream.lastStreamToken=w(),[2,this.localStore.setLastStreamToken(w()).catch(Vr)]):[2]})})},t.prototype.handleWriteError=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n=this;return a.__generator(this,function(r){return _e(i=t.code)&&i!==_.ABORTED?(e=this.writePipeline.shift(),this.writeStream.inhibitBackoff(),[2,this.syncEngine.rejectFailedWrite(e.batchId,t).then(function(){return n.fillWritePipeline()})]):[2];var i})})},t.prototype.createTransaction=function(){return new hi(this.datastore)},t.prototype.handleCredentialChange=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.canUseNetwork()?(p("RemoteStore","RemoteStore restarting streams for new credential"),this.networkEnabled=!1,[4,this.disableNetworkInternal()]):[3,3];case 1:return t.sent(),this.onlineStateTracker.set(fi.Unknown),[4,this.enableNetwork()];case 2:t.sent(),t.label=3;case 3:return[2]}})})},t.prototype.applyPrimaryState=function(t){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return this.isPrimary=t,t&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return e.sent(),[3,4];case 2:return t?[3,4]:[4,this.disableNetworkInternal()];case 3:e.sent(),this.onlineStateTracker.set(fi.Unknown),e.label=4;case 4:return[2]}})})},t}(),gi=function(){return function(){this.listeners=[]}}(),vi=function(){function t(t){this.syncEngine=t,this.queries=new Kn(function(t){return t.canonicalId()}),this.onlineState=fi.Unknown,this.syncEngine.subscribe(this)}return t.prototype.listen=function(t){var e=t.query,n=!1,r=this.queries.get(e);return r||(n=!0,r=new gi,this.queries.set(e,r)),r.listeners.push(t),t.applyOnlineStateChange(this.onlineState),r.viewSnap&&t.onViewSnapsh
1ot(r.viewSnap),n?this.syncEngine.listen(e).then(function(t){return r.targetId=t,t}):Promise.resolve(r.targetId)},t.prototype.unlisten=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n,r,i;return a.__generator(this,function(o){return n=!1,(r=this.queries.get(e=t.query))&&(i=r.listeners.indexOf(t))>=0&&(r.listeners.splice(i,1),n=0===r.listeners.length),n?(this.queries.delete(e),[2,this.syncEngine.unlisten(e)]):[2]})})},t.prototype.onWatchChange=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e],i=this.queries.get(r.query);if(i){for(var o=0,a=i.listeners;o<a.length;o++)a[o].onViewSnapshot(r);i.viewSnap=r}}},t.prototype.onWatchError=function(t,e){var n=this.queries.get(t);if(n)for(var r=0,i=n.listeners;r<i.length;r++)i[r].onError(e);this.queries.delete(t)},t.prototype.onOnlineStateChange=function(t){this.onlineState=t,this.queries.forEach(function(e,n){for(var r=0,i=n.listeners;r<i.length;r++)i[r].applyOnlineStateChange(t)})},t}(),yi=function(){function t(t,e,n){this.query=t,this.queryObserver=e,this.raisedInitialEvent=!1,this.onlineState=fi.Unknown,this.options=n||{}}return t.prototype.onViewSnapshot=function(t){if(y(t.docChanges.length>0||t.syncStateChanged,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];i.type!==Me.Metadata&&e.push(i)}t=new Ve(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}this.raisedInitialEvent?this.shouldRaiseEvent(t)&&this.queryObserver.next(t):this.shouldRaiseInitialEvent(t,this.onlineState)&&this.raiseInitialEvent(t),this.snap=t},t.prototype.onError=function(t){this.queryObserver.error(t)},t.prototype.applyOnlineStateChange=function(t){this.onlineState=t,this.snap&&!this.raisedInitialEvent&&this.shouldRaiseInitialEvent(this.snap,t)&&this.raiseInitialEvent(this.snap)},t.prototype.shouldRaiseInitialEvent=function(t,e){return y(!this.raisedInitialEvent,"Determining whether to raise first event but already had first event"),!t.fromCache||(this.options.waitForSyncWhenOnline&&e!==fi.Offline?(y(t.fromCache,"Waiting for sync, but snapshot is not from cache"),!1):!t.docs.isEmpty()||e===fi.Offline)},t.prototype.shouldRaiseEvent=function(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.snap&&this.snap.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.raiseInitialEvent=function(t){y(!this.raisedInitialEvent,"Trying to raise initial events for second time"),t=Ve.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.raisedInitialEvent=!0,this.queryObserver.next(t)},t}(),bi=function(){function t(t,e,n){this.targetId=t,this.addedKeys=e,this.removedKeys=n}return t.fromSnapshot=function(e,n){for(var r=Pe(),i=Pe(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case Me.Added:r=r.add(s.doc.key);break;case Me.Removed:i=i.add(s.doc.key)}}return new t(e,r,i)},t}(),wi=function(){return function(t){this.key=t}}(),_i=function(){return function(t){this.key=t}}(),Si=function(){function t(t,e){this.query=t,this._syncedDocuments=e,this.syncState=null,this.current=!1,this.limboDocuments=Pe(),this.mutatedKeys=Pe(),this.documentSet=new Re(t.docComparator.bind(t))}return Object.defineProperty(t.prototype,"syncedDocuments",{get:function(){return this._syncedDocuments},enumerable:!0,configurable:!0}),t.prototype.computeDocChanges=function(t,e){var n=this,r=e?e.changeSet:new Fe,i=e?e.documentSet:this.documentSet,o=e?e.mutatedKeys:this.mutatedKeys,a=i,s=!1,u=this.query.hasLimit()&&i.size===this.query.limit?i.last():null;if(t.inorderTraversal(function(t,e){var l=i.get(t),c=e instanceof ht?e:null;c&&(y(t.isEqual(c.key),"Mismatching keys found in document changes: "+t+" != "+c.key),c=n.query.matches(c)?c:null);var h=!!l&&n.mutatedKeys.has(l.key),f=!!c&&(c.hasLocalMutations||n.mutatedKeys.has(c.key)&&c.hasCommittedMutations),d=!1;l&&c?l.data.isEqual(c.data)?h!==f&&(r.track({type:Me.Metadata,doc:c}),d=!0):n.shouldWaitForSyncedDocument(l,c)||(r.track({type:Me.Modified,doc:c}),d=!0,u&&n.query.docComparator(c,u)>0&&(s=!0)):!l&&c?(r.track({type:Me.Added,doc:c}),d=!0):l&&!c&&(r.track({type:Me.Removed,doc:l}),d=!0,u&&(s=!0)),d&&(c?(a=a.add(c),o=f?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))}),this.query.hasLimit())for(;a.size>this.query.limit;){var l=a.last();a=a.delete(l.key),o=o.delete(l.key),r.track({type:Me.Removed,doc:l})}return y(!s||!e,"View was refilled using docs that themselves needed refilling."),{documentSet
1:a,changeSet:r,needsRefill:s,mutatedKeys:o}},t.prototype.shouldWaitForSyncedDocument=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this;y(!t.needsRefill,"Cannot apply changes that need a refill");var i=this.documentSet;this.documentSet=t.documentSet,this.mutatedKeys=t.mutatedKeys;var o=t.changeSet.getChanges();o.sort(function(t,e){return function(t,e){var n=function(t){switch(t){case Me.Added:return 1;case Me.Modified:case Me.Metadata:return 2;case Me.Removed:return 0;default:return v("Unknown ChangeType: "+t)}};return n(t)-n(e)}(t.type,e.type)||r.query.docComparator(t.doc,e.doc)}),this.applyTargetChange(n);var a=e?this.updateLimboDocuments():[],s=0===this.limboDocuments.size&&this.current?Le.Synced:Le.Local,u=s!==this.syncState;return this.syncState=s,0!==o.length||u?{snapshot:new Ve(this.query,t.documentSet,i,o,t.mutatedKeys,s===Le.Local,u,!1),limboChanges:a}:{limboChanges:a}},t.prototype.applyOnlineStateChange=function(t){return this.current&&t===fi.Offline?(this.current=!1,this.applyChanges({documentSet:this.documentSet,changeSet:new Fe,mutatedKeys:this.mutatedKeys,needsRefill:!1},!1)):{limboChanges:[]}},t.prototype.shouldBeInLimbo=function(t){return!this._syncedDocuments.has(t)&&!!this.documentSet.has(t)&&!this.documentSet.get(t).hasLocalMutations},t.prototype.applyTargetChange=function(t){var e=this;t&&(t.addedDocuments.forEach(function(t){return e._syncedDocuments=e._syncedDocuments.add(t)}),t.modifiedDocuments.forEach(function(t){return y(e._syncedDocuments.has(t),"Modified document "+t+" not found in view.")}),t.removedDocuments.forEach(function(t){return e._syncedDocuments=e._syncedDocuments.delete(t)}),this.current=t.current)},t.prototype.updateLimboDocuments=function(){var t=this;if(!this.current)return[];var e=this.limboDocuments;this.limboDocuments=Pe(),this.documentSet.forEach(function(e){t.shouldBeInLimbo(e.key)&&(t.limboDocuments=t.limboDocuments.add(e.key))});var n=[];return e.forEach(function(e){t.limboDocuments.has(e)||n.push(new _i(e))}),this.limboDocuments.forEach(function(t){e.has(t)||n.push(new wi(t))}),n},t.prototype.synchronizeWithPersistedState=function(t,e){this._syncedDocuments=e,this.limboDocuments=Pe();var n=this.computeDocChanges(t);return this.applyChanges(n,!0)},t.prototype.computeInitialSnapshot=function(){return Ve.fromInitialDocuments(this.query,this.documentSet,this.mutatedKeys,this.syncState===Le.Local)},t}(),Ei=function(){return function(t,e,n){this.query=t,this.targetId=e,this.view=n}}(),Ci=function(){return function(t){this.key=t}}(),Ii=function(){function t(t,e,n,r){this.localStore=t,this.remoteStore=e,this.sharedClientState=n,this.currentUser=r,this.syncEngineListener=null,this.queryViewsByQuery=new Kn(function(t){return t.canonicalId()}),this.queryViewsByTarget={},this.limboTargetsByKey=new pt(lt.comparator),this.limboResolutionsByTarget={},this.limboDocumentRefs=new Gr,this.mutationUserCallbacks={},this.limboTargetIdGenerator=Mn.forSyncEngine(),this.isPrimary=void 0,this.onlineState=fi.Unknown}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){y(null!==t,"SyncEngine listener cannot be null"),y(null===this.syncEngineListener,"SyncEngine already has a subscriber."),this.syncEngineListener=t},t.prototype.listen=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n,r,i,o;return a.__generator(this,function(a){switch(a.label){case 0:return this.assertSubscribed("listen()"),(r=this.queryViewsByQuery.get(t))?(this.sharedClientState.addLocalQueryTarget(e=r.targetId),n=r.view.computeInitialSnapshot(),[3,4]):[3,1];case 1:return[4,this.localStore.allocateQuery(t)];case 2:return i=a.sent(),o=this.sharedClientState.addLocalQueryTarget(i.targetId),e=i.targetId,[4,this.initializeViewAndComputeSnapshot(i,"current"===o)];case 3:n=a.sent(),this.isPrimary&&this.remoteStore.listen(i),a.label=4;case 4:return this.syncEngineListener.onWatchChange([n]),[2,e]}})})},t.prototype.initializeViewAndComputeSnapshot=function(t,e){var n=this,r=t.query;return this.localStore.executeQuery(r).then(function(i){return n.localStore.remoteDocumentKeys(t.targetId).then(function(o){var a=new Si(r,o),s=a.computeDocChanges(i),u=qe.createSynthesizedTargetChangeForCurrentChange(t.targetId,e&&n.onlineState!==fi.Offline),l=a.applyChanges(s,
1!0===n.isPrimary,u);y(0===l.limboChanges.length,"View returned limbo docs before target ack from the server."),y(!!l.snapshot,"applyChanges for new view should always return a snapshot");var c=new Ei(r,t.targetId,a);return n.queryViewsByQuery.set(r,c),n.queryViewsByTarget[t.targetId]=c,l.snapshot})})},t.prototype.synchronizeViewAndComputeSnapshot=function(t){var e=this;return this.localStore.executeQuery(t.query).then(function(n){return e.localStore.remoteDocumentKeys(t.targetId).then(function(r){return a.__awaiter(e,void 0,void 0,function(){var e;return a.__generator(this,function(i){return e=t.view.synchronizeWithPersistedState(n,r),this.isPrimary&&this.updateTrackedLimbos(t.targetId,e.limboChanges),[2,e]})})})})},t.prototype.unlisten=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n=this;return a.__generator(this,function(r){switch(r.label){case 0:return this.assertSubscribed("unlisten()"),y(!!(e=this.queryViewsByQuery.get(t)),"Trying to unlisten on query not found:"+t),this.isPrimary?(this.sharedClientState.removeLocalQueryTarget(e.targetId),this.sharedClientState.isActiveQueryTarget(e.targetId)?[3,2]:[4,this.localStore.releaseQuery(t,!1).then(function(){n.sharedClientState.clearQueryState(e.targetId),n.remoteStore.unlisten(e.targetId),n.removeAndCleanupQuery(e)}).catch(Vr)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return this.removeAndCleanupQuery(e),[4,this.localStore.releaseQuery(t,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.write=function(t,e){var n=this;return this.assertSubscribed("write()"),this.localStore.localWrite(t).then(function(t){return n.sharedClientState.addPendingMutation(t.batchId),n.addMutationCallback(t.batchId,e),n.emitNewSnapsAndNotifyLocalStore(t.changes)}).then(function(){return n.remoteStore.fillWritePipeline()})},t.prototype.wrapUpdateFunctionError=function(t){return t},t.prototype.runTransaction=function(t,e){var n=this;void 0===e&&(e=5),y(e>=0,"Got negative number of retries for transaction.");var r=this.remoteStore.createTransaction();return function(){try{var e=t(r);return!Ut(e)&&e.catch&&e.then?e.catch(function(t){return Promise.reject(n.wrapUpdateFunctionError(t))}):Promise.reject(Error("Transaction callback must return a Promise"))}catch(i){return Promise.reject(n.wrapUpdateFunctionError(i))}}().then(function(i){return r.commit().then(function(){return i}).catch(function(r){return 0===e?Promise.reject(r):n.runTransaction(t,e-1)})})},t.prototype.applyRemoteEvent=function(t){var e=this;return this.assertSubscribed("applyRemoteEvent()"),this.localStore.applyRemoteEvent(t).then(function(n){return T(t.targetChanges,function(t,n){var r=e.limboResolutionsByTarget[t];r&&(y(n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size<=1,"Limbo resolution for single document contains multiple changes."),n.addedDocuments.size>0?r.receivedDocument=!0:n.modifiedDocuments.size>0?y(r.receivedDocument,"Received change for limbo target document without add."):n.removedDocuments.size>0&&(y(r.receivedDocument,"Received remove for limbo target document without add."),r.receivedDocument=!1))}),e.emitNewSnapsAndNotifyLocalStore(n,t)}).catch(Vr)},t.prototype.applyOnlineStateChange=function(t,e){if(this.isPrimary&&e===di.RemoteStore||!this.isPrimary&&e===di.SharedClientState){var n=[];this.queryViewsByQuery.forEach(function(e,r){var i=r.view.applyOnlineStateChange(t);y(0===i.limboChanges.length,"OnlineState should not affect limbo documents."),i.snapshot&&n.push(i.snapshot)}),this.syncEngineListener.onOnlineStateChange(t),this.syncEngineListener.onWatchChange(n),this.onlineState=t,this.isPrimary&&this.sharedClientState.setOnlineState(t)}},t.prototype.rejectListen=function(t,e){return a.__awaiter(this,void 0,void 0,function(){var n,r,i,o,s,u,l=this;return a.__generator(this,function(a){switch(a.label){case 0:return this.assertSubscribed("rejectListens()"),this.sharedClientState.updateQueryState(t,"rejected",e),(r=(n=this.limboResolutionsByTarget[t])&&n.key)?(this.limboTargetsByKey=this.limboTargetsByKey.remove(r),delete this.limboResolutionsByTarget[t],i=(i=new pt(lt.comparator)).insert(r,new ft(r,Zt.forDeletedDoc())),o=Pe().add(r),s=new Ue(Zt.MIN,{},new ne(K),i,o),[2,this.applyRemoteEvent(s)]):[3,1];case 1:return y(!!(u=this.queryViewsByTarget[t]),"Unknown targetId: "+t),[4,this.localStore.releaseQuery(u.query,!1).then(function(){return l.removeAndCleanupQuery(u)}).catch(Vr)];case 2:a.sent(),this.syncEngineListener.onWatchError(u.query,e),a.label=3;case 3:return[2]}})})},t.prototype.applyBatchState=function(t,e,n){return a.__awaiter(this,void 0,void 0,function(){var r;return a.__generator(this,function(i){switch(i.label){case 0:return this.assertSubscribed("applyBatchState()"),[4,this.localStore.lookupMutationDocuments(t)];case 1:return null===(r=i.sent())?(p("SyncEngine","Cannot apply mutation batch with id: "+t),[2]):"pending"!==e?[3,3]:[4,this.remoteStore.fillWritePipeline()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.processUserCallback(t,n||null),this.localStore.removeCachedMutationBatchMetadata(t)):v("Unknown batchState: "+e),i.label=4;case 4:return[4,this.emitNewSnapsAndNotifyLocalStore(r)];case 5:return i.sent(),[2]}})})},t.prototype.applySuccessfulWrite=function(t){var e=this;this.assertSubscribed("applySuccessfulWrite()");var n=t.batch.batchId;return this.processUserCallback(n,null),this.localStore.acknowledgeBatch(t).then(function(t){return e.sharedCl
1ientState.updateMutationState(n,"acknowledged"),e.emitNewSnapsAndNotifyLocalStore(t)}).catch(Vr)},t.prototype.rejectFailedWrite=function(t,e){var n=this;return this.assertSubscribed("rejectFailedWrite()"),this.processUserCallback(t,e),this.localStore.rejectBatch(t).then(function(r){return n.sharedClientState.updateMutationState(t,"rejected",e),n.emitNewSnapsAndNotifyLocalStore(r)}).catch(Vr)},t.prototype.addMutationCallback=function(t,e){var n=this.mutationUserCallbacks[this.currentUser.toKey()];n||(n=new pt(K)),n=n.insert(t,e),this.mutationUserCallbacks[this.currentUser.toKey()]=n},t.prototype.processUserCallback=function(t,e){var n=this.mutationUserCallbacks[this.currentUser.toKey()];if(n){var r=n.get(t);r&&(y(t===n.minKey(),"Mutation callbacks processed out-of-order?"),e?r.reject(e):r.resolve(),n=n.remove(t)),this.mutationUserCallbacks[this.currentUser.toKey()]=n}},t.prototype.removeAndCleanupQuery=function(t){var e=this;if(this.sharedClientState.removeLocalQueryTarget(t.targetId),this.queryViewsByQuery.delete(t.query),delete this.queryViewsByTarget[t.targetId],this.isPrimary){var n=this.limboDocumentRefs.referencesForId(t.targetId);this.limboDocumentRefs.removeReferencesForId(t.targetId),n.forEach(function(t){e.limboDocumentRefs.containsKey(t)||e.removeLimboTarget(t)})}},t.prototype.removeLimboTarget=function(t){var e=this.limboTargetsByKey.get(t);null!==e&&(this.remoteStore.unlisten(e),this.limboTargetsByKey=this.limboTargetsByKey.remove(t),delete this.limboResolutionsByTarget[e])},t.prototype.updateTrackedLimbos=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof wi?(this.limboDocumentRefs.addReference(i.key,t),this.trackLimboChange(i)):i instanceof _i?(p("SyncEngine","Document no longer in limbo: "+i.key),this.limboDocumentRefs.removeReference(i.key,t),this.limboDocumentRefs.containsKey(i.key)||this.removeLimboTarget(i.key)):v("Unknown limbo change: "+JSON.stringify(i))}},t.prototype.trackLimboChange=function(t){var e=t.key;if(!this.limboTargetsByKey.get(e)){p("SyncEngine","New document in limbo: "+e);var n=this.limboTargetIdGenerator.next(),r=Bt.atPath(e.path);this.limboResolutionsByTarget[n]=new Ci(e),this.remoteStore.listen(new ee(r,n,te.LimboResolution,fn.INVALID)),this.limboTargetsByKey=this.limboTargetsByKey.insert(e,n)}},t.prototype.currentLimboDocs=function(){return this.limboTargetsByKey},t.prototype.emitNewSnapsAndNotifyLocalStore=function(t,e){return a.__awaiter(this,void 0,void 0,function(){var n,r,i,o=this;return a.__generator(this,function(a){switch(a.label){case 0:return n=[],r=[],i=[],this.queryViewsByQuery.forEach(function(a,s){i.push(Promise.resolve().then(function(){var e=s.view.computeDocChanges(t);return e.needsRefill?o.localStore.executeQuery(s.query).then(function(t){return s.view.computeDocChanges(t,e)}):e}).then(function(t){var i=s.view.applyChanges(t,!0===o.isPrimary,e&&e.targetChanges[s.targetId]);if(o.updateTrackedLimbos(s.targetId,i.limboChanges),i.snapshot){o.isPrimary&&o.sharedClientState.updateQueryState(s.targetId,i.snapshot.fromCache?"not-current":"current"),n.push(i.snapshot);var a=bi.fromSnapshot(s.targetId,i.snapshot);r.push(a)}}))}),[4,Promise.all(i)];case 1:return a.sent(),this.syncEngineListener.onWatchChange(n),[4,this.localStore.notifyLocalViewChanges(r)];case 2:return a.sent(),[2]}})})},t.prototype.assertSubscribed=function(t){y(null!==this.syncEngineListener,"Trying to call "+t+" before calling subscribe().")},t.prototype.handleCredentialChange=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n;return a.__generator(this,function(r){switch(r.label){case 0:return e=!this.currentUser.isEqual(t),this.currentUser=t,e?[4,this.localStore.handleUserChange(t)]:[3,3];case 1:return n=r.sent(),this.sharedClientState.handleUserChange(t,n.removedBatchIds,n.addedBatchIds),[4,this.emitNewSnapsAndNotifyLocalStore(n.affectedDocuments)];case 2:r.sent(),r.label=3;case 3:return[4,this.remoteStore.handleCredentialChange()];case 4:return r.sent(),[2]}})})},t.prototype.applyPrimaryState=function(t){return a.__awaiter(this,void 0,void 0,function(){var e,n,r,i,o,s,u=this;return a.__generator(this,function(a){switch(a.label){case 0:return!0!==t||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.remoteStore.applyPrimaryState(!0)]);
1case 1:return a.sent(),e=this.sharedClientState.getAllActiveQueryTargets(),[4,this.synchronizeQueryViewsAndRaiseSnapshots(e.toArray())];case 2:for(n=a.sent(),r=0,i=n;r<i.length;r++)this.remoteStore.listen(i[r]);return[3,7];case 3:return!1!==t||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,o=[],s=Promise.resolve(),k(this.queryViewsByTarget,function(t,e){u.sharedClientState.isLocalQueryTarget(t)?o.push(t):s=s.then(function(){return u.unlisten(e.query)}),u.remoteStore.unlisten(e.targetId)}),[4,s]);case 4:return a.sent(),[4,this.synchronizeQueryViewsAndRaiseSnapshots(o)];case 5:return a.sent(),this.resetLimboDocuments(),[4,this.remoteStore.applyPrimaryState(!1)];case 6:a.sent(),a.label=7;case 7:return[2]}})})},t.prototype.resetLimboDocuments=function(){var t=this;k(this.limboResolutionsByTarget,function(e){t.remoteStore.unlisten(e)}),this.limboDocumentRefs.removeAllReferences(),this.limboResolutionsByTarget=[],this.limboTargetsByKey=new pt(lt.comparator)},t.prototype.synchronizeQueryViewsAndRaiseSnapshots=function(t){for(var e=this,n=Promise.resolve(),r=[],i=[],o=function(t){n=n.then(function(){return a.__awaiter(e,void 0,void 0,function(){var e,n,o,s;return a.__generator(this,function(a){switch(a.label){case 0:return(n=this.queryViewsByTarget[t])?[4,this.localStore.releaseQuery(n.query,!0)]:[3,4];case 1:return a.sent(),[4,this.localStore.allocateQuery(n.query)];case 2:return e=a.sent(),[4,this.synchronizeViewAndComputeSnapshot(n)];case 3:return(o=a.sent()).snapshot&&i.push(o.snapshot),[3,8];case 4:return y(!0===this.isPrimary,"A secondary tab should never have an active query without an active view."),[4,this.localStore.getQueryForTarget(t)];case 5:return y(!!(s=a.sent()),"Query data for target "+t+" not found"),[4,this.localStore.allocateQuery(s)];case 6:return e=a.sent(),[4,this.initializeViewAndComputeSnapshot(e,!1)];case 7:a.sent(),a.label=8;case 8:return r.push(e),[2]}})})})},s=0,u=t;s<u.length;s++)o(u[s]);return n.then(function(){return e.syncEngineListener.onWatchChange(i),r})},t.prototype.getActiveClients=function(){return this.localStore.getActiveClients()},t.prototype.applyTargetState=function(t,e,n){return a.__awaiter(this,void 0,void 0,function(){var r,i=this;return a.__generator(this,function(o){switch(o.label){case 0:if(this.isPrimary)return p("SyncEngine","Ignoring unexpected query state notification."),[2];if(!this.queryViewsByTarget[t])return[3,5];switch(e){case"current":case"not-current":return[3,1];case"rejected":return[3,2]}return[3,4];case 1:return[2,this.localStore.getNewDocumentChanges().then(function(n){return a.__awaiter(i,void 0,void 0,function(){var r;return a.__generator(this,function(i){switch(i.label){case 0:return r=Ue.createSynthesizedRemoteEventForCurrentChange(t,"current"===e),[4,this.emitNewSnapsAndNotifyLocalStore(n,r)];case 1:return i.sent(),[2]}})})},function(t){return a.__awaiter(i,void 0,void 0,function(){var e;return a.__generator(this,function(n){switch(n.label){case 0:return function(t){return t.code===_.DATA_LOSS&&t.message===Qn}(t)?(e=[],k(this.queryViewsByTarget,function(t){return e.push(t)}),[4,this.synchronizeQueryViewsAndRaiseSnapshots(e)]):[3,2];case 1:return n.sent(),[3,3];case 2:throw t;case 3:return[2]}})})})];case 2:return this.removeAndCleanupQuery(r=this.queryViewsByTarget[t]),[4,this.localStore.releaseQuery(r.query,!0)];case 3:return o.sent(),this.syncEngineListener.onWatchError(r.query,n),[3,5];case 4:v("Unexpected target state: "+e),o.label=5;case 5:return[2]}})})},t.prototype.applyActiveTargetsChange=function(t,e){return a.__awaiter(this,void 0,void 0,function(){var n,r,i,o,s,u,l,c,h,f=this;return a.__generator(this,function(d){switch(d.label){case 0:if(!this.isPrimary)return[2];n=0,r=t,d.label=1;case 1:return n<r.length?(y(!this.queryViewsByTarget[h=r[n]],"Trying to add an already active target"),[4,this.localStore.getQueryForTarget(h)]):[3,6];case 2:return y(!!(i=d.sent()),"Query data for active target "+h+" not found"),[4,this.localStore.allocateQuery(i)];case 3:return o=d.sent(),[4,this.initializeViewAndComputeSnapshot(o,!1)];case 4:d.sent(),this.remoteStore.listen(o),d.label=5;case 5:return n++,[3,1];case 6:s=function(t){var e;return a.__generator(this,function(n){switch(n.label){case 0:return(e=u.queryViewsByTarget[t])?[4,u.localStore.releaseQuery(e.query,!1).then(function(){f.remoteStore.unlisten(t),f.removeAndCleanupQuery(e)}).catch(Vr)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})},u=this,l=0,c=e,d.label=7;case 7:return l<c.length?[5,s(h=c[l])]:[3,10];case 8:d.sent(),d.label=9;case 9:return l++,[3,7];case 10:return[2]}})})},t.prototype.enableNetwork=function(){return this.localStore.setNetworkEnabled(!0),this.remoteStore.enableNetwork()},t.prototype.disableNetwork=function(){return this.localStore.setNetworkEnabled(!1),this.remoteStore.disableNetwork()},t.prototype.getRemoteKeysForTarget=function(t){var e=this.limboResolutionsByTarget[t];return e&&e.receivedDocument?Pe().add(e.key):this.queryViewsByTarget[t]?this.queryViewsByTarget[t].view.syncedDocuments:Pe()},t}(),ki=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.UNAUTHENTICATED=new t(null),t.GOOGLE_CREDENTIALS=new t("google-credentials-uid"),t.FIRST_PARTY=new t("first-party-uid"),t}
1(),Ti="SharedClientState",Oi="firestore_clients",Ai="firestore_mutations",xi="firestore_targets",Di="firestore_online_state",Pi="firestore_sequence_number",Ni=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r,y(void 0!==r==("rejected"===n),"MutationMetadata must contain an error iff state is 'rejected'")}return t.fromWebStorageEntry=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new S(i.error.code,i.error.message)),o?new t(e,n,i.state,a):(m(Ti,"Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.toWebStorageJSON=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}(),ji=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n,y(void 0!==n==("rejected"===e),"QueryTargetMetadata must contain an error iff state is 'rejected'")}return t.fromWebStorageEntry=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new S(r.error.code,r.error.message)),i?new t(e,r.state,o):(m(Ti,"Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.toWebStorageJSON=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}(),Ri=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.fromWebStorageEntry=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=je(),a=0;i&&a<r.activeTargetIds.length;++a)i=qt(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new t(e,o):(m(Ti,"Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Mi=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.fromWebStorageEntry=function(e){var n=JSON.parse(e);return"object"==typeof n&&void 0!==fi[n.onlineState]&&"string"==typeof n.clientId?new t(n.clientId,fi[n.onlineState]):(m(Ti,"Failed to parse online state: "+e),null)},t}(),Li=function(){function t(){this.activeTargetIds=je()}return t.prototype.addQueryTarget=function(t){y(!this.activeTargetIds.has(t),"Target with ID '"+t+"' already active."),this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.removeQueryTarget=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.toWebStorageJSON=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Fi=function(){function t(e,n,r,i,o){if(this.queue=e,this.platform=n,this.persistenceKey=r,this.localClientId=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.activeClients={},this.storageListener=this.handleWebStorageEvent.bind(this),this.started=!1,this.earlyEvents=[],!t.isAvailable(this.platform))throw new S(_.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.localClientStorageKey=this.toWebStorageClientStateKey(this.localClientId),this.sequenceNumberKey=Pi+"_"+r,this.activeClients[this.localClientId]=new Li,this.clientStateKeyRe=new RegExp("^"+Oi+"_"+a+"_([^_]*)$"),this.mutationBatchKeyRe=new RegExp("^"+Ai+"_"+a+"_(\\d+)(?:_(.*))?$"),this.queryTargetKeyRe=new RegExp("^"+xi+"_"+a+"_(\\d+)$"),this.onlineStateKey=Di+"_"+r,this.platform.window.addEventListener("storage",this.storageListener)}return t.isAvailable=function(t){return!(!t.window||null==t.window.localStorage)},t.prototype.start=function(){return a.__awaiter(this,void 0,void 0,function(){var t,e,n,r,i,o,s,u,l,c,h=this;return a.__generator(this,function(a){switch(a.label){case 0:return y(!this.started,"WebStorageSharedCl
1ientState already started"),y(null!==this.syncEngine,"syncEngine property must be set before calling start()"),y(null!==this.onlineStateHandler,"onlineStateHandler property must be set before calling start()"),[4,this.syncEngine.getActiveClients()];case 1:for(t=a.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.localClientId&&(i=this.getItem(this.toWebStorageClientStateKey(r)))&&(o=Ri.fromWebStorageEntry(r,i))&&(this.activeClients[o.clientId]=o);for(this.persistClientState(),(s=this.storage.getItem(this.onlineStateKey))&&(u=this.fromWebStorageOnlineState(s))&&this.handleOnlineStateEvent(u),l=0,c=this.earlyEvents;l<c.length;l++)this.handleWebStorageEvent(c[l]);return this.earlyEvents=[],this.platform.window.addEventListener("unload",function(){return h.shutdown()}),this.started=!0,[2]}})})},t.prototype.writeSequenceNumber=function(t){this.setItem(this.sequenceNumberKey,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){var t=je();return T(this.activeClients,function(e,n){t=t.unionWith(n.activeTargetIds)}),t},t.prototype.isActiveQueryTarget=function(t){for(var e in this.activeClients)if(this.activeClients.hasOwnProperty(e)&&this.activeClients[e].activeTargetIds.has(t))return!0;return!1},t.prototype.addPendingMutation=function(t){this.persistMutationState(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.persistMutationState(t,e,n),this.removeMutationState(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(this.toWebStorageQueryTargetMetadataKey(t));if(n){var r=ji.fromWebStorageEntry(t,n);r&&(e=r.state)}}return this.localClientState.addQueryTarget(t),this.persistClientState(),e},t.prototype.removeLocalQueryTarget=function(t){this.localClientState.removeQueryTarget(t),this.persistClientState()},t.prototype.isLocalQueryTarget=function(t){return this.localClientState.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(this.toWebStorageQueryTargetMetadataKey(t))},t.prototype.updateQueryState=function(t,e,n){this.persistQueryTargetState(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var r=this;e.forEach(function(t){r.removeMutationState(t)}),this.currentUser=t,n.forEach(function(t){r.addPendingMutation(t)})},t.prototype.setOnlineState=function(t){this.persistOnlineState(t)},t.prototype.shutdown=function(){this.started&&(this.platform.window.removeEventListener("storage",this.storageListener),this.removeItem(this.localClientStorageKey),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return p(Ti,"READ",t,e),e},t.prototype.setItem=function(t,e){p(Ti,"SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){p(Ti,"REMOVE",t),this.storage.removeItem(t)},t.prototype.handleWebStorageEvent=function(t){var e=this;if(t.storageArea===this.storage){if(p(Ti,"EVENT",t.key,t.newValue),t.key===this.localClientStorageKey)return void m("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.queue.enqueueAndForget(function(){return a.__awaiter(e,void 0,void 0,function(){var e,n,r,i,o,s;return a.__generator(this,function(a){if(!this.started)return this.earlyEvents.push(t),[2];if(null===t.key)return[2];if(this.clientStateKeyRe.test(t.key)){if(null==t.newValue)return n=this.fromWebStorageClientStateKey(t.key),[2,this.handleClientStateEvent(n,null)];if(e=this.fromWebStorageClientState(t.key,t.newValue))return[2,this.handleClientStateEvent(e.clientId,e)]}else if(this.mutationBatchKeyRe.test(t.key)){if(null!==t.newValue&&(r=this.fromWebStorageMutationMetadata(t.key,t.newValue)))return[2,this.handleMutationBatchEvent(r)]}else if(this.queryTargetKeyRe.test(t.key)){if(null!==t.newValue&&(i=this.fromWebStorageQueryTargetMetadata(t.key,t.newValue)))return[2,this.handleQueryTargetEvent(i)]}else if(t.key===this.onlineStateKey){if(null!==t.newValue&&(o=this.fromWebStorageOnlineState(t.newValue)))return[2,this.handleOnlineStateEvent(o)]}else t.key===this.sequenceNumberKey&&(y(!!this.sequenceNumberHandler,"Missing sequenceNumberHandler"),(s=function(t){var e=fn.INVALID;if(null!=t)try{var n=JSON.parse(t);y("number"==typeof n,"Found non-numeric sequence number"),e=n}catch(r){m(Ti,"Failed to read sequence number from WebStorage",r)}return e}(t.newValue))!==fn.INVALID&&this.sequenceNumberHandler(s));return[2]})})})}},Object.defineProperty(t.prototype,"localClientState",{get:function(){return this.activeClients[this.localClientId]},enumerable:!0,configurable:!0}),t.prototype.persistClientState=function(){this.setItem(this.localClientStorageKey,this.localClientState.toWebStorageJSON())},t.prototype.persistMutationState=function(t,e,n){var r=new Ni(this.currentUser,t,e,n),i=this.toWeb
1StorageMutationBatchKey(t);this.setItem(i,r.toWebStorageJSON())},t.prototype.removeMutationState=function(t){var e=this.toWebStorageMutationBatchKey(t);this.removeItem(e)},t.prototype.persistOnlineState=function(t){this.storage.setItem(this.onlineStateKey,JSON.stringify({clientId:this.localClientId,onlineState:fi[t]}))},t.prototype.persistQueryTargetState=function(t,e,n){var r=this.toWebStorageQueryTargetMetadataKey(t),i=new ji(t,e,n);this.setItem(r,i.toWebStorageJSON())},t.prototype.toWebStorageClientStateKey=function(t){return y(-1===t.indexOf("_"),"Client key cannot contain '_', but was '"+t+"'"),Oi+"_"+this.persistenceKey+"_"+t},t.prototype.toWebStorageQueryTargetMetadataKey=function(t){return xi+"_"+this.persistenceKey+"_"+t},t.prototype.toWebStorageMutationBatchKey=function(t){var e=Ai+"_"+this.persistenceKey+"_"+t;return this.currentUser.isAuthenticated()&&(e+="_"+this.currentUser.uid),e},t.prototype.fromWebStorageClientStateKey=function(t){var e=this.clientStateKeyRe.exec(t);return e?e[1]:null},t.prototype.fromWebStorageClientState=function(t,e){var n=this.fromWebStorageClientStateKey(t);return y(null!==n,"Cannot parse client state key '"+t+"'"),Ri.fromWebStorageEntry(n,e)},t.prototype.fromWebStorageMutationMetadata=function(t,e){var n=this.mutationBatchKeyRe.exec(t);y(null!==n,"Cannot parse mutation batch key '"+t+"'");var r=Number(n[1]);return Ni.fromWebStorageEntry(new ki(void 0!==n[2]?n[2]:null),r,e)},t.prototype.fromWebStorageQueryTargetMetadata=function(t,e){var n=this.queryTargetKeyRe.exec(t);y(null!==n,"Cannot parse query target key '"+t+"'");var r=Number(n[1]);return ji.fromWebStorageEntry(r,e)},t.prototype.fromWebStorageOnlineState=function(t){return Mi.fromWebStorageEntry(t)},t.prototype.handleMutationBatchEvent=function(t){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){return t.user.uid!==this.currentUser.uid?(p(Ti,"Ignoring mutation for non-active user "+t.user.uid),[2]):[2,this.syncEngine.applyBatchState(t.batchId,t.state,t.error)]})})},t.prototype.handleQueryTargetEvent=function(t){return this.syncEngine.applyTargetState(t.targetId,t.state,t.error)},t.prototype.handleClientStateEvent=function(t,e){var n=this,r=this.getAllActiveQueryTargets();e?this.activeClients[t]=e:delete this.activeClients[t];var i=this.getAllActiveQueryTargets(),o=[],s=[];return i.forEach(function(t){return a.__awaiter(n,void 0,void 0,function(){return a.__generator(this,function(e){return r.has(t)||o.push(t),[2]})})}),r.forEach(function(t){return a.__awaiter(n,void 0,void 0,function(){return a.__generator(this,function(e){return i.has(t)||s.push(t),[2]})})}),this.syncEngine.applyActiveTargetsChange(o,s)},t.prototype.handleOnlineStateEvent=function(t){this.activeClients[t.clientId]&&this.onlineStateHandler(t.onlineState)},t}(),Vi=function(){function t(){this.localState=new Li,this.queryState={},this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.localState.addQueryTarget(t),this.queryState[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.queryState[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.localState.removeQueryTarget(t)},t.prototype.isLocalQueryTarget=function(t){return this.localState.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.queryState[t]},t.prototype.getAllActiveQueryTargets=function(){return this.localState.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.localState.activeTargetIds.has(t)},t.prototype.start=function(){return this.localState=new Li,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t}(),Ui=function(){function t(t,e){this.cacheSizeBytes=t,this.experimentalTabSynchronization=e}return t.prototype.lruParams=function(){return xr.withCacheSize(this.cacheSizeBytes)},t}(),qi=function(){return function(){}}(),Bi=function(){function t(t,e,n,r){this.platform=t,this.databaseInfo=e,this.credentials=n,this.asyncQueue=r,this.clientId=$.newId(),this.isShutdown=!1}return t.prototype.start=function(t){var e=this;this.verifyNotShutdown();var n=new dn,r=new dn,i=!1;return this.credentials.setChangeListener(function(o){i?e.asyncQueue.enqueueAndForget(function(){return e.handleCredentialChange(o)}):(i=!0,e.initializePersistence(t,r,o).then(function(t){return e.initializeRest(o,t)}
1).then(n.resolve,n.reject))}),this.asyncQueue.enqueueAndForget(function(){return n.promise}),r.promise},t.prototype.enableNetwork=function(){var t=this;return this.verifyNotShutdown(),this.asyncQueue.enqueue(function(){return t.syncEngine.enableNetwork()})},t.prototype.initializePersistence=function(t,e,n){var r=this;return t instanceof Ui?this.startIndexedDbPersistence(n,t).then(function(t){return e.resolve(),t}).catch(function(t){if(e.reject(t),!r.canFallback(t))throw t;return console.warn("Error enabling offline storage. Falling back to storage disabled: "+t),r.startMemoryPersistence()}):(e.resolve(),this.startMemoryPersistence())},t.prototype.canFallback=function(t){return t instanceof S?t.code===_.FAILED_PRECONDITION||t.code===_.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code},t.prototype.verifyNotShutdown=function(){if(this.isShutdown)throw new S(_.FAILED_PRECONDITION,"The client has already been shutdown.")},t.prototype.startIndexedDbPersistence=function(t,e){var n=this,r=Fr.buildStoragePrefix(this.databaseInfo),i=new rn(this.databaseInfo.databaseId,{useProto3Json:!0});return Promise.resolve().then(function(){return a.__awaiter(n,void 0,void 0,function(){var n,o;return a.__generator(this,function(a){switch(a.label){case 0:if(e.experimentalTabSynchronization&&!Fi.isAvailable(this.platform))throw new S(_.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");return o=e.lruParams(),e.experimentalTabSynchronization?(this.sharedClientState=new Fi(this.asyncQueue,this.platform,r,this.clientId,t),[4,Fr.createMultiClientIndexedDbPersistence(r,this.clientId,this.platform,this.asyncQueue,i,o,{sequenceNumberSyncer:this.sharedClientState})]):[3,2];case 1:return n=a.sent(),[3,4];case 2:return this.sharedClientState=new Vi,[4,Fr.createIndexedDbPersistence(r,this.clientId,this.platform,this.asyncQueue,i,o)];case 3:n=a.sent(),a.label=4;case 4:return this.persistence=n,[2,n.referenceDelegate.garbageCollector]}})})})},t.prototype.startMemoryPersistence=function(){return this.persistence=Yr.createEagerPersistence(this.clientId),this.sharedClientState=new Vi,Promise.resolve(null)},t.prototype.initializeRest=function(t,e){var n=this;return p("FirestoreClient","Initializing. user=",t.uid),this.platform.loadConnection(this.databaseInfo).then(function(r){return a.__awaiter(n,void 0,void 0,function(){var n,i,o,s=this;return a.__generator(this,function(u){switch(u.label){case 0:return this.localStore=new Kr(this.persistence,t),e&&(this.lruScheduler
1=new Dr(e,this.asyncQueue,this.localStore)),n=this.platform.newSerializer(this.databaseInfo.databaseId),i=new ci(this.asyncQueue,r,this.credentials,n),o=function(t){return s.syncEngine.applyOnlineStateChange(t,di.SharedClientState)},this.remoteStore=new mi(this.localStore,i,this.asyncQueue,function(t){return s.syncEngine.applyOnlineStateChange(t,di.RemoteStore)}),this.syncEngine=new Ii(this.localStore,this.remoteStore,this.sharedClientState,t),this.sharedClientState.onlineStateHandler=o,this.remoteStore.syncEngine=this.syncEngine,this.sharedClientState.syncEngine=this.syncEngine,this.eventMgr=new vi(this.syncEngine),[4,this.sharedClientState.start()];case 1:return u.sent(),[4,this.remoteStore.start()];case 2:return u.sent(),[4,this.persistence.setPrimaryStateListener(function(t){return a.__awaiter(s,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return[4,this.syncEngine.applyPrimaryState(t)];case 1:return e.sent(),this.lruScheduler&&(t&&!this.lruScheduler.started?this.lruScheduler.start():t||this.lruScheduler.stop()),[2]}})})})];case 3:return u.sent(),[2]}})})})},t.prototype.handleCredentialChange=function(t){return this.asyncQueue.verifyOperationInProgress(),p("FirestoreClient","Credential Changed. Current user: "+t.uid),this.syncEngine.handleCredentialChange(t)},t.prototype.disableNetwork=function(){var t=this;return this.verifyNotShutdown(),this.asyncQueue.enqueue(function(){return t.syncEngine.disableNetwork()})},t.prototype.shutdown=function(){var t=this;return!0===this.isShutdown?Promise.resolve():this.asyncQueue.enqueue(function(){return a.__awaiter(t,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.lruScheduler&&this.lruScheduler.stop(),[4,this.remoteStore.shutdown()];case 1:return t.sent(),[4,this.sharedClientState.shutdown()];case 2:return t.sent(),[4,this.persistence.shutdown()];case 3:return t.sent(),this.credentials.removeChangeListener(),this.isShutdown=!0,[2]}})})})},t.prototype.listen=function(t,e,n){var r=this;this.verifyNotShutdown();var i=new yi(t,e,n);return this.asyncQueue.enqueueAndForget(function(){return r.eventMgr.listen(i)}),i},t.prototype.unlisten=function(t){var e=this;this.verifyNotShutdown(),this.asyncQueue.enqueueAndForget(function(){return e.eventMgr.unlisten(t)})},t.prototype.getDocumentFromLocalCache=function(t){var e=this;return this.verifyNotShutdown(),this.asyncQueue.enqueue(function(){return e.localStore.readDocument(t)}).then(function(t){if(t instanceof ht)return t;if(t instanceof ft)return null;throw new S(_.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")})},t.prototype.getDocumentsFromLocalCache=function(t){var e=this;return this.verifyNotShutdown(),this.asyncQueue.enqueue(function(){return e.localStore.executeQuery(t)}).then(function(e){var n=Pe(),r=new Si(t,n),i=r.computeDocChanges(e);return r.applyChanges(i,!1).snapshot})},t.prototype.write=function(t){var e=this;this.verifyNotShutdown();var n=new dn;return this.asyncQueue.enqueueAndForget(function(){return e.syncEngine.write(t,n)}),n.promise},t.prototype.databaseId=function(){return this.databaseInfo.databaseId},t.prototype.transaction=function(t){var e=this;return this.verifyNotShutdown(),this.asyncQueue.enqueue(function(){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(t){return[2]})})}).then(function(){return e.syncEngine.runTransaction(t)})},t}(),zi=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.scheduleEvent(this.observer.next,t)},t.prototype.error=function(t){this.scheduleEvent(this.observer.error,t)},t.prototype.mute=function(){this.muted=!0},t.prototype.scheduleEvent=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),Hi=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];!function(e,n,r,i){if(!(t instanceof Array)||t.length<1)throw new S(_.INVA
1LID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+G(1,"element")+".")}();for(var n=0;n<t.length;++n)if(N("FieldPath","string",n,t[n]),0===t[n].length)throw new S(_.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ut(t)}return t.documentId=function(){return t._DOCUMENT_ID},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","FieldPath",1,e);return this._internalPath.isEqual(e._internalPath)},t._DOCUMENT_ID=new t(ut.keyField().canonicalString()),t}(),Gi=new RegExp("[~\\*/\\[\\]]"),$i=function(){return function(t,e){this.user=e,this.type="OAuth",this.authHeaders={Authorization:"Bearer "+t}}}(),Ki=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t){y(!this.changeListener,"Can only call setChangeListener() once."),this.changeListener=t,t(ki.UNAUTHENTICATED)},t.prototype.removeChangeListener=function(){y(null!==this.changeListener,"removeChangeListener() when no listener registered"),this.changeListener=null},t}(),Wi=function(){function t(t){var e=this;this.app=t,this.tokenListener=null,this.tokenCounter=0,this.changeListener=null,this.forceRefresh=!1,this.tokenListener=function(){e.tokenCounter++,e.currentUser=e.getUser(),e.changeListener&&e.changeListener(e.currentUser)},this.tokenCounter=0,this.app.INTERNAL.addAuthTokenListener(this.tokenListener)}return t.prototype.getToken=function(){var t=this;y(null!=this.tokenListener,"getToken cannot be called after listener removed.");var e=this.tokenCounter,n=this.forceRefresh;return this.forceRefresh=!1,this.app.INTERNAL.getToken(n).then(function(n){if(t.tokenCounter!==e)throw new S(_.ABORTED,"getToken aborted due to token change.");return n?(y("string"==typeof n.accessToken,"Invalid tokenData returned from getToken():"+n),new $i(n.accessToken,t.currentUser)):null})},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t){y(!this.changeListener,"Can only call setChangeListener() once."),this.changeListener=t,this.currentUser&&t(this.currentUser)},t.prototype.removeChangeListener=function(){y(null!=this.tokenListener,"removeChangeListener() called twice"),y(null!==this.changeListener,"removeChangeListener() called when no listener registered"),this.app.INTERNAL.removeAuthTokenListener(this.tokenListener),this.tokenListener=null,this.changeListener=null},t.prototype.getUser=function(){var t=this.app.INTERNAL.getUid();return y(null===t||"string"==typeof t,"Received invalid UID: "+t),new ki(t)},t}(),Qi=function(){function t(t,e){this.gapi=t,this.sessionIndex=e,this.type="FirstParty",this.user=ki.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.sessionIndex},e=this.gapi.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),t},enumerable:!0,configurable:!0}),t}(),Ji=function(){function t(t,e){this.gapi=t,this.sessionIndex=e}return t.prototype.getToken=function(){return Promise.resolve(new Qi(this.gapi,this.sessionIndex))},t.prototype.setChangeListener=function(t){t(ki.FIRST_PARTY)},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function Xi(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var Yi=function(){function t(t){this._methodName=t}return t.delete=function(){return A("FieldValue.delete",arguments),Zi.instance},t.serverTimestamp=function(){return A("FieldValue.serverTimestamp",arguments),to.instance},t.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D("FieldValue.arrayUnion",arguments,1),new eo(t)},t.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D("FieldValue.arrayRemove",arguments,1),new no(t)},t.increment=function(t){return N("FieldValue.increment","number",1,t),x("FieldValue.increment",arguments,1
1),new ro(t)},t.prototype.isEqual=function(t){return this===t},t}(),Zi=function(t){function e(){return t.call(this,"FieldValue.delete")||this}return a.__extends(e,t),e.instance=new e,e}(Yi),to=function(t){function e(){return t.call(this,"FieldValue.serverTimestamp")||this}return a.__extends(e,t),e.instance=new e,e}(Yi),eo=function(t){function e(e){var n=t.call(this,"FieldValue.arrayUnion")||this;return n._elements=e,n}return a.__extends(e,t),e}(Yi),no=function(t){function e(e){var n=t.call(this,"FieldValue.arrayRemove")||this;return n._elements=e,n}return a.__extends(e,t),e}(Yi),ro=function(t){function e(e){var n=t.call(this,"FieldValue.increment")||this;return n._operand=e,n}return a.__extends(e,t),e}(Yi),io=E(Yi,"Use FieldValue.<field>() instead."),oo=/^__.*__$/,ao=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutations=function(t,e){var n=[];return n.push(null!==this.fieldMask?new he(t,this.data,this.fieldMask,e):new ce(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new fe(t,this.fieldTransforms)),n},t}(),so=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutations=function(t,e){var n=[new he(t,this.data,this.fieldMask,e)];return this.fieldTransforms.length>0&&n.push(new fe(t,this.fieldTransforms)),n},t}(),uo=function(t){return t[t.Set=0]="Set",t[t.Update=1]="Update",t[t.MergeSet=2]="MergeSet",t[t.Argument=3]="Argument",t}({});function lo(t){switch(t){case uo.Set:case uo.MergeSet:case uo.Update:return!0;case uo.Argument:return!1;default:throw v("Unexpected case for UserDataSource: "+t)}}var co=function(){function t(t,e,n,r,i,o){this.dataSource=t,this.methodName=e,this.path=n,this.arrayElement=r,void 0===i&&this.validatePath(),this.arrayElement=void 0!==r&&r,this.fieldTransforms=i||[],this.fieldMask=o||[]}return t.prototype.childContextForField=function(e){var n=null==this.path?null:this.path.child(e),r=new t(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePathSegment(e),r},t.prototype.childContextForFieldPath=function(e){var n=null==this.path?null:this.path.child(e),r=new t(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePath(),r},t.prototype.childContextForArray=function(e){return new t(this.dataSource,this.methodName,null,!0,this.fieldTransforms,this.fieldMask)},t.prototype.createError=function(t){var e=null===this.path||this.path.isEmpty()?"":" (found in field "+this.path.toString()+")";return new S(_.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+t+e)},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.validatePath=function(){if(null!==this.path)for(var t=0;t<this.path.length;t++)this.validatePathSegment(this.path.get(t))},t.prototype.validatePathSegment=function(t){if(lo(this.dataSource)&&oo.test(t))throw this.createError("Document fields cannot begin and end with __")},t}(),ho=function(){return function(t,e){this.databaseId=t,this.key=e}}(),fo=function(){function t(t){this.preConverter=t}return t.prototype.parseSetData=function(t,e){var n=new co(uo.Set,t,ut.EMPTY_PATH);mo("Data must be an object, but it was:",n,e);var r=this.parseData(e,n);return new ao(r,null,n.fieldTransforms)},t.prototype.parseMergeData=function(t,e,n){var r=new co(uo.MergeSet,t,ut.EMPTY_PATH);mo("Data must be an object, but it was:",r,e);var i,o,a=this.parseData(e,r);if(n){for(var s=new ne(ut.comparator),u=0,l=n;u<l.length;u++){var c=l[u],h=void 0;if(c instanceof Hi)h=c._internalPath;else{if("string"!=typeof c)throw v("Expected stringOrFieldPath to be a string or a FieldPath");h=vo(t,c)}if(!r.contains(h))throw new S(_.INVALID_ARGUMENT,"Field '"+h+"' is specified in your field mask but missing from your input data.");s=s.add(h)}i=ie.fromSet(s),o=r.fieldTransforms.filter(function(t){return i.covers(t.field)})}else i=ie.fromArray(r.fieldMask),o=r.fieldTransforms;return new ao(a,i,o)}
1,t.prototype.parseUpdateData=function(t,e){var n=this,r=new co(uo.Update,t,ut.EMPTY_PATH);mo("Data must be an object, but it was:",r,e);var i=new ne(ut.comparator),o=jt.EMPTY;T(e,function(e,a){var s=vo(t,e),u=r.childContextForFieldPath(s);if((a=n.runPreConverter(a,u))instanceof Zi)i=i.add(s);else{var l=n.parseData(a,u);null!=l&&(i=i.add(s),o=o.set(s,l))}});var a=ie.fromSet(i);return new so(o,a,r.fieldTransforms)},t.prototype.parseUpdateVarargs=function(t,e,n,r){var i=new co(uo.Update,t,ut.EMPTY_PATH),o=[go(t,e)],a=[n];if(r.length%2!=0)throw new S(_.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push(go(t,r[s])),a.push(r[s+1]);var u=new ne(ut.comparator),l=jt.EMPTY;for(s=0;s<o.length;++s){var c=o[s],h=i.childContextForFieldPath(c),f=this.runPreConverter(a[s],h);if(f instanceof Zi)u=u.add(c);else{var d=this.parseData(f,h);null!=d&&(u=u.add(c),l=l.set(c,d))}}var p=ie.fromSet(u);return new so(l,p,i.fieldTransforms)},t.prototype.parseQueryValue=function(t,e){var n=new co(uo.Argument,t,ut.EMPTY_PATH),r=this.parseData(e,n);return y(null!=r,"Parsed data should not be null."),y(0===n.fieldTransforms.length,"Field transforms should have been disallowed."),r},t.prototype.runPreConverter=function(t,e){try{return this.preConverter(t)}catch(r){var n=yo(r);throw e.createError(n)}},t.prototype.parseData=function(t,e){if(po(t=this.runPreConverter(t,e)))return mo("Unsupported field value:",e,t),this.parseObject(t,e);if(t instanceof Yi)return this.parseSentinelFieldValue(t,e),null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.arrayElement)throw e.createError("Nested arrays are not supported");return this.parseArray(t,e)}return this.parseScalarValue(t,e)},t.prototype.parseObject=function(t,e){var n=this,r=new pt(K);return O(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):T(t,function(t,i){var o=n.parseData(i,e.childContextForField(t));null!=o&&(r=r.insert(t,o))}),new jt(r)},t.prototype.parseArray=function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=this.parseData(o[i],e.childContextForArray(r));null==a&&(a=St.INSTANCE),n.push(a),r++}return new Rt(n)},t.prototype.parseSentinelFieldValue=function(t,e){if(!lo(e.dataSource))throw e.createError(t._methodName+"() can only be used with update() and set()");if(null===e.path)throw e.createError(t._methodName+"() is not currently supported inside arrays");if(t instanceof Zi){if(e.dataSource!==uo.MergeSet)throw e.dataSource===uo.Update?(y(e.path.length>0,"FieldValue.delete() at the top level should have already been handled."),e.createError("FieldValue.delete() can only appear at the top level of your update data")):e.createError("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");e.fieldMask.push(e.path)}else if(t instanceof to)e.fieldTransforms.push(new oe(e.path,pe.instance));else if(t instanceof eo){var n=this.parseArrayTransformElements(t._methodName,t._elements),r=new me(n);e.fieldTransforms.push(new oe(e.path,r))}else if(t instanceof no){n=this.parseArrayTransformElements(t._methodName,t._elements);var i=new ge(n);e.fieldTransforms.push(new oe(e.path,i))}else if(t instanceof ro){var o=this.parseQueryValue("FieldValue.increment",t._operand),a=new ve(o);e.fieldTransforms.push(new oe(e.path,a))}else v("Unknown FieldValue type: "+t)},t.prototype.parseScalarValue=function(t,e){if(null===t)return St.INSTANCE;if("number"==typeof t)return qt(t)?new kt(t):new Tt(t);if("boolean"==typeof t)return Et.of(t);if("string"==typeof t)return new Ot(t);if(t instanceof Date)return new At(et.fromDate(t));if(t instanceof et)return new At(new et(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)));if(t instanceof tt)return new Nt(t);if(t instanceof Y)return new Dt(t);if(t instanceof ho)return new Pt(t.databaseId,t.key);throw e.createError("Unsupported field value: "+U(t))},t.prototype.parseArrayTransformElements=function(t,e){var n=this;return e.map(function(e,r){var i=new co(uo.Argument,t,ut.EMPTY_PATH);return n.parseData(e,i.childContextForArray(r))})},t}();function po(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof et||t instanceof tt||t instanceof Y||t instanceof ho||t instanceof Yi)}function mo(t,e,n){if(!po(n)||!V(n)){var r=U(n);throw e.createError("an object"===r?t+" a custom object":t+" "+r)}}function go(t,e){if(e instanceof Hi)return e._internalPath;if("string"==typeof e)return vo(t,e);
1throw new S(_.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function vo(t,e){try{return function(t){if(t.search(Gi)>=0)throw new S(_.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Hi.bind.apply(Hi,[void 0].concat(t.split("."))))}catch(e){throw new S(_.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e)._internalPath}catch(r){var n=yo(r);throw new S(_.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. "+n)}}function yo(t){return t instanceof Error?t.message:t.toString()}var bo="firestore.googleapis.com",wo=!0,_o=!0,So=!1,Eo=xr.COLLECTION_DISABLED,Co=function(){function t(t){if(void 0===t.host){if(void 0!==t.ssl)throw new S(_.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=bo,this.ssl=wo}else R("settings","non-empty string","host",t.host),this.host=t.host,M("settings","boolean","ssl",t.ssl),this.ssl=I(t.ssl,wo);if(B("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),M("settings","object","credentials",t.credentials),this.credentials=t.credentials,M("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),!0===t.timestampsInSnapshots?m("\n The timestampsInSnapshots setting now defaults to true and you no\n longer need to explicitly set it. In a future release, the setting\n will be removed entirely and so it is recommended that you remove it\n from your firestore.settings() call now."):!1===t.timestampsInSnapshots&&m("\n The timestampsInSnapshots setting will soon be removed. YOU MUST UPDATE\n YOUR CODE.\n\n To hide this warning, stop using the timestampsInSnapshots setting in your\n firestore.settings({ ... }) call.\n\n Once you remove the setting, Timestamps stored in Cloud Firestore will be\n read back as Firebase Timestamp objects instead of as system Date objects.\n So you will also need to update code expecting a Date to instead expect a\n Timestamp. For example:\n\n // Old:\n const date = snapshot.get('created_at');\n // New:\n const timestamp = snapshot.get('created_at'); const date =\n timestamp.toDate();\n\n Please audit all existing usages of Date when you enable the new\n behavior."),this.timestampsInSnapshots=I(t.timestampsInSnapshots,_o),M("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=xr.DEFAULT_CACHE_SIZE_BYTES;else{if(t.cacheSizeBytes!==Eo&&t.cacheSizeBytes<xr.MINIMUM_CACHE_SIZE_BYTES)throw new S(_.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+xr.MINIMUM_CACHE_SIZE_BYTES);this.cacheSizeBytes=t.cacheSizeBytes}M("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=void 0===t.experimentalForceLongPolling?So:t.experimentalForceLongPolling}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.forceLongPolling===t.forceLongPolling},t}(),Io=function(){return function(){}}(),ko=function(){function t(e){var n=this;this._queue=new mn,this.INTERNAL={delete:function(){return a.__awaiter(n,void 0,void 0,function(){return a.__generator(this,function(t){switch(t.label){case 0:return this.ensureClientConfigured(),[4,this._firestoreClient.shutdown()];case 1:return t.sent(),this.clientRunning=!1,[2]}})})}},this.clientRunning=!1;var r=new Io;if("object"==typeof e.options){var i=e;r.firebaseApp=i,r.databaseId=t.databaseIdFromApp(i),r.persistenceKey=r.firebaseApp.name,r.credentials=new Wi(i)}else{var o=e;if(!o.projectId)throw new S(_.INVALID_ARGUMENT,"Must provide projectId");r.databaseId=new it(o.projectId,o.database),r.persistenceKey="[DEFAULT]",r.credentials=new Ki}r.settings=new Co({}),this._config=r,this._databaseId=r.databaseId}return t.prototype.settings=function(t){if(x("Firestore.settings",arguments,1),N("Firestore.settings","object",1,t),C(t,"persistence"))throw new S(_.INVA
1LID_ARGUMENT,'"persistence" is now specified with a separate call to firestore.enablePersistence().');var e=new Co(t);if(this._firestoreClient&&!this._config.settings.isEqual(e))throw new S(_.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this._config.settings=e,void 0!==e.credentials&&(this._config.credentials=function(t){if(!t)return new Ki;switch(t.type){case"gapi":var e=t.client;return y(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty),"unexpected gapi interface"),new Ji(e,t.sessionIndex||"0");case"provider":return t.client;default:throw new S(_.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.enableNetwork()},t.prototype.disableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.disableNetwork()},t.prototype.enablePersistence=function(t){if(this._firestoreClient)throw new S(_.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");return this.configureClient(new Ui(this._config.settings.cacheSizeBytes,void 0!==t&&I(t.experimentalTabSynchronization,!1)))},t.prototype._clearPersistence=function(){if(this.clientRunning)throw new S(_.FAILED_PRECONDITION,"Persistence cannot be cleared while the client is running");var t=Fr.buildStoragePrefix(this.makeDatabaseInfo());return Fr.clearPersistence(t)},t.prototype.ensureClientConfigured=function(){return this._firestoreClient||this.configureClient(new qi),this._firestoreClient},t.prototype.makeDatabaseInfo=function(){return new nt(this._config.databaseId,this._config.persistenceKey,this._config.settings.host,this._config.settings.ssl,this._config.settings.forceLongPolling)},t.prototype.configureClient=function(t){var e=this;y(!!this._config.settings.host,"FirestoreSettings.host cannot be falsey"),y(!this._firestoreClient,"configureClient() called multiple times"),this.clientRunning=!0;var n=this.makeDatabaseInfo();return this._dataConverter=new fo(function(t){if(t instanceof Ao){var n=e._config.databaseId,r=t.firestore._config.databaseId;if(!r.isEqual(n))throw new S(_.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new ho(e._config.databaseId,t._key)}return t}),this._firestoreClient=new Bi(b.getPlatform(),n,this._config.credentials,this._queue),this._firestoreClient.start(t)},t.databaseIdFromApp=function(t){var e=t.options;if(!C(e,"projectId"))throw new S(_.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var n=e.projectId;if(!n||"string"!=typeof n)throw new S(_.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new it(n)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this._config.firebaseApp)throw new S(_.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._config.firebaseApp},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return x("Firestore.collection",arguments,1),N("Firestore.collection","non-empty string",1,t),this.ensureClientConfigured(),new Ro(at.fromString(t),this)},t.prototype.doc=function(t){return x("Firestore.doc",arguments,1),N("Firestore.doc","non-empty string",1,t),this.ensureClientConfigured(),Ao.forPath(at.fromString(t),this)},t.prototype._collectionGroup=function(t){if(x("Firestore.collectionGroup",arguments,1),N("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new S(_.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.ensureClientConfigured(),new No(new Bt(at.EMPTY_PATH,t),this)},t.prototype.runTransaction=function(t){var e=this;
1return x("Firestore.runTransaction",arguments,1),N("Firestore.runTransaction","function",1,t),this.ensureClientConfigured().transaction(function(n){return t(new To(e,n))})},t.prototype.batch=function(){return this.ensureClientConfigured(),new Oo(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(f()){case h.DEBUG:return"debug";case h.ERROR:return"error";case h.SILENT:return"silent";default:return v("Unknown log level: "+f())}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){switch(x("Firestore.setLogLevel",arguments,1),N("Firestore.setLogLevel","non-empty string",1,t),t){case"debug":d(h.DEBUG);break;case"error":d(h.ERROR);break;case"silent":d(h.SILENT);break;default:throw new S(_.INVALID_ARGUMENT,"Invalid log level: "+t)}},t.prototype._areTimestampsInSnapshotsEnabled=function(){return this._config.settings.timestampsInSnapshots},t}(),To=function(){function t(t,e){this._firestore=t,this._transaction=e}return t.prototype.get=function(t){var e=this;x("Transaction.get",arguments,1);var n=Vo("Transaction.get",t,this._firestore);return this._transaction.lookup([n._key]).then(function(t){if(!t||1!==t.length)return v("Mismatch in docs returned from document lookup.");var r=t[0];if(r instanceof ft)return new Do(e._firestore,n._key,null,!1,!1);if(r instanceof ht)return new Do(e._firestore,n._key,r,!1,!1);throw v("BatchGetDocumentsRequest returned unexpected document type: "+r.constructor.name)})},t.prototype.set=function(t,e,n){P("Transaction.set",arguments,2,3);var r=Vo("Transaction.set",t,this._firestore),i=(n=Mo("Transaction.set",n)).merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("Transaction.set",e,n.mergeFields):this._firestore._dataConverter.parseSetData("Transaction.set",e);return this._transaction.set(r._key,i),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof e||e instanceof Hi?(D("Transaction.update",arguments,3),r=Vo("Transaction.update",t,this._firestore),i=this._firestore._dataConverter.parseUpdateVarargs("Transaction.update",e,n,o)):(x("Transaction.update",arguments,2),r=Vo("Transaction.update",t,this._firestore),i=this._firestore._dataConverter.parseUpdateData("Transaction.update",e)),this._transaction.update(r._key,i),this},t.prototype.delete=function(t){x("Transaction.delete",arguments,1);var e=Vo("Transaction.delete",t,this._firestore);return this._transaction.delete(e._key),this},t}(),Oo=function(){function t(t){this._firestore=t,this._mutations=[],this._committed=!1}return t.prototype.set=function(t,e,n){P("WriteBatch.set",arguments,2,3),this.verifyNotCommitted();var r=Vo("WriteBatch.set",t,this._firestore),i=(n=Mo("WriteBatch.set",n)).merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("WriteBatch.set",e,n.mergeFields):this._firestore._dataConverter.parseSetData("WriteBatch.set",e);return this._mutations=this._mutations.concat(i.toMutations(r._key,ue.NONE)),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.verifyNotCommitted(),"string"==typeof e||e instanceof Hi?(D("WriteBatch.update",arguments,3),r=Vo("WriteBatch.update",t,this._firestore),i=this._firestore._dataConverter.parseUpdateVarargs("WriteBatch.update",e,n,o)):(x("WriteBatch.update",arguments,2),r=Vo("WriteBatch.update",t,this._firestore),i=this._firestore._dataConverter.parseUpdateData("WriteBatch.update",e)),this._mutations=this._mutations.concat(i.toMutations(r._key,ue.exists(!0))),this},t.prototype.delete=function(t){x("WriteBatch.delete",arguments,1),this.verifyNotCommitted();var e=Vo("WriteBatch.delete",t,this._firestore);return this._mutations=this._mutations.concat(new de(e._key,ue.NONE)),this},t.prototype.commit=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(t){return this.verifyNotCommitted(),this._committed=!0,this._mutations.length>0?[2,this._firestore.ensureClientConfigured().write(this._mutations)]:[2]})})},t.prototype.verifyNotCommitted=function(){if(this._committed)throw new S(_.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Ao=function(){function t(t,e){this._key=t,this.firestore=e,this._firestoreClient=this.firestore.ensureClientConfigured()}return t.forPath=function(e,n){if(e.length%2!=0)throw new S(_.INVA
1LID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(new lt(e),n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ro(this._key.path.popLast(),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){if(x("DocumentReference.collection",arguments,1),N("DocumentReference.collection","non-empty string",1,t),!t)throw new S(_.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=at.fromString(t);return new Ro(this._key.path.child(e),this.firestore)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","DocumentReference",1,e);return this.firestore===e.firestore&&this._key.isEqual(e._key)},t.prototype.set=function(t,e){P("DocumentReference.set",arguments,1,2);var n=(e=Mo("DocumentReference.set",e)).merge||e.mergeFields?this.firestore._dataConverter.parseMergeData("DocumentReference.set",t,e.mergeFields):this.firestore._dataConverter.parseSetData("DocumentReference.set",t);return this._firestoreClient.write(n.toMutations(this._key,ue.NONE))},t.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof Hi?(D("DocumentReference.update",arguments,2),n=this.firestore._dataConverter.parseUpdateVarargs("DocumentReference.update",t,e,r)):(x("DocumentReference.update",arguments,1),n=this.firestore._dataConverter.parseUpdateData("DocumentReference.update",t)),this._firestoreClient.write(n.toMutations(this._key,ue.exists(!0)))},t.prototype.delete=function(){return x("DocumentReference.delete",arguments,0),this._firestoreClient.write([new de(this._key,ue.NONE)])},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];P("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof t[i]||Xi(t[i])||(B("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),M("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Xi(t[i])?n=t[i]:(N("DocumentReference.onSnapshot","function",i,t[i]),j("DocumentReference.onSnapshot","function",i+1,t[i+1]),j("DocumentReference.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.onSnapshotInternal(o,n)},t.prototype.onSnapshotInternal=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new zi({next:function(t){if(e.next){y(t.docs.size<=1,"Too many documents returned on a document query");var r=t.docs.get(n._key);e.next(new Do(n.firestore,n._key,r,t.fromCache,t.hasPendingWrites))}},error:r}),o=this._firestoreClient.listen(Bt.atPath(this._key.path),i,t);return function(){i.mute(),n._firestoreClient.unlisten(o)}},t.prototype.get=function(t){var e=this;return P("DocumentReference.get",arguments,0,1),Fo("DocumentReference.get",t),new Promise(function(n,r){t&&"cache"===t.source?e.firestore.ensureClientConfigured().getDocumentFromLocalCache(e._key).then(function(t){n(new Do(e.firestore,e._key,t,!0,t instanceof ht&&t.hasLocalMutations))},r):e.getViaSnapshotListener(n,r,t)})},t.prototype.getViaSnapshotListener=function(t,e,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?e(new S(_.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?e(new S(_.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):t(i)},error:e})},t}(),xo=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}(),Do=function(){function t(t,e,n,r,i){this._firestore=t,this._key=e,this._document=n,this._fromCache=r,this._hasPendingWrites=i}return t.prototype.data=function(t){return P("DocumentSnapshot.data",arguments,0,1),t=Lo("DocumentSnapshot.data",t),this._document?this.convertObject(this._document.data,wt.fromSnapshotOptions(t,this._firestore._areTimestampsInSnapshotsEnabled())):void 0},t.prototype.get=function(t,e){if(P("DocumentSnapshot.get",arguments,1,2),e=Lo("DocumentSnapshot.get",e),this._document){var n=this._document.data.field(go("DocumentSnapshot.get",t));if(void 0!==n)return this.convertValue(n,wt.fromSnapshotOptions(e,this._firestore._areTimestampsInSnapshotsEnabled()))}},Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Ao(this._key,this._firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this._document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new xo(this._hasPendingWrites,this._fromCache)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","DocumentSnapshot",1,e);return this._firestore===e._firestore&&this._fromCache===e._fromCache&&this._key.isEqual(e._key)&&(null===this._document?null===e._document:this._document.isEqual(e._document))},t.prototype.convertObject=function(t,e){var n=this,r={};return t.forEach(function(t,i){r[t]=n.convertValue(i,e)}),r},t.prototype.convertValue=function(t,e){if(t instanceof jt)return this.convertObject(t,e);if(t instanceof Rt)return this.convertArray(t,e);if(t instanceof Pt){var n=t.value(e),r=this._firestore.ensureClientConfigured().databaseId();return t.databaseId.isEqual(r)||m("Document "+this._key.path+" contains a document reference within a different database ("+t.databaseId.projectId+"/"+t.databaseId.database+") which is not supported. It will be treated as a reference in the current database ("+r.projectId+"/"+r.database+") instead."),new Ao(n,this._firestore)}return t.value(e)},t.prototype.convertArray=function(t,e){var n=this;return t.internalValue.map(function(t){return n.convertValue(t,e)})},t}(),Po=function(t){function e(e,n,r,i,o){return t.call(this,e,n,r,i,o)||this}return a.__extends(e,t),e.prototype.data=function(e){var n=t.prototype.data.call(this,e);return y("object"==typeof n,"Document in a QueryDocumentSnapshot should exist"),n},e}
1(Do),No=function(){function t(t,e){this._query=t,this.firestore=e}return t.prototype.where=function(e,n,r){var i;x("Query.where",arguments,3),q("Query.where",3,r),function(t,e,n,r){if(!e.some(function(t){return t===r}))throw new S(_.INVALID_ARGUMENT,"Invalid value "+U(r)+" provided to function Query.where() for its "+H(2)+" argument. Acceptable values: "+e.join(", "))}(0,["<","<=","==",">=",">","array-contains"],0,n);var o=go("Query.where",e),a=Ht.fromString(n);if(o.isKeyField()){if(a===Ht.ARRAY_CONTAINS)throw new S(_.INVALID_ARGUMENT,"Invalid Query. You can't perform array-contains queries on FieldPath.documentId() since document IDs are not arrays.");if("string"==typeof r){if(""===r)throw new S(_.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a valid document ID if the first parameter is FieldPath.documentId(), but it was an empty string.");if(!this._query.isCollectionGroupQuery()&&-1!==r.indexOf("/"))throw new S(_.INVALID_ARGUMENT,"Invalid third parameter to Query.where(). When querying a collection by FieldPath.documentId(), the value provided must be a plain document ID, but '"+r+"' contains a slash.");var s=this._query.path.child(at.fromString(r));if(!lt.isDocumentKey(s))throw new S(_.INVALID_ARGUMENT,"Invalid third parameter to Query.where(). When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+s+"' is not because it has an odd number of segments ("+s.length+").");i=new Pt(this.firestore._databaseId,new lt(s))}else{if(!(r instanceof Ao))throw new S(_.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a string or a DocumentReference if the first parameter is FieldPath.documentId(), but it was: "+U(r)+".");i=new Pt(this.firestore._databaseId,r._key)}}else i=this.firestore._dataConverter.parseQueryValue("Query.where",r);var u=zt.create(o,a,i);return this.validateNewFilter(u),new t(this._query.addFilter(u),this.firestore)},t.prototype.orderBy=function(e,n){var r;if(P("Query.orderBy",arguments,1,2),j("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r=Wt.ASCENDING;else{if("desc"!==n)throw new S(_.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=Wt.DESCENDING}if(null!==this._query.startAt)throw new S(_.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this._query.endAt)throw new S(_.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=go("Query.orderBy",e),o=new Jt(i,r);return this.validateNewOrderBy(o),new t(this._query.addOrderBy(o),this.firestore)},t.prototype.limit=function(e){if(x("Query.limit",arguments,1),N("Query.limit","number",1,e),e<=0)throw new S(_.INVALID_ARGUMENT,"Invalid Query. Query limit ("+e+") is invalid. Limit must be positive.");return new t(this._query.withLimit(e),this.firestore)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.startAt",arguments,1);var i=this.boundFromDocOrFields("Query.startAt",e,n,!0);return new t(this._query.withStartAt(i),this.firestore)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.startAfter",arguments,1);var i=this.boundFromDocOrFields("Query.startAfter",e,n,!1);return new t(this._query.withStartAt(i),this.firestore)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.endBefore",arguments,1);var i=this.boundFromDocOrFields("Query.endBefore",e,n,!0);return new t(this._query.withEndAt(i),this.firestore)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.endAt",arguments,1);var i=this.boundFromDocOrFields("Query.endAt",e,n,!1);return new t(this._query.withEndAt(i),this.firestore)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","Query",1,e);return this.firestore===e.firestore&&this._query.isEqual(e._query)},t.prototype.boundFromDocOrFields=function(t,e,n,r){if(q(t,1,e),e instanceof Do){if
1(n.length>0)throw new S(_.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var i=e;if(!i.exists)throw new S(_.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+t+"().");return this.boundFromDocument(t,i._document,r)}var o=[e].concat(n);return this.boundFromFields(t,o,r)},t.prototype.boundFromDocument=function(t,e,n){for(var r=[],i=0,o=this._query.orderBy;i<o.length;i++){var a=o[i];if(a.field.isKeyField())r.push(new Pt(this.firestore._databaseId,e.key));else{var s=e.field(a.field);if(s instanceof xt)throw new S(_.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(void 0===s){var u=a.field.canonicalString();throw new S(_.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}r.push(s)}}return new Qt(r,n)},t.prototype.boundFromFields=function(t,e,n){var r=this._query.explicitOrderBy;if(e.length>r.length)throw new S(_.INVALID_ARGUMENT,"Too many arguments provided to "+t+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<e.length;o++){var a=e[o];if(r[o].field.isKeyField()){if("string"!=typeof a)throw new S(_.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof a);if(!this._query.isCollectionGroupQuery()&&-1!==a.indexOf("/"))throw new S(_.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+t+"() must be a plain document ID, but '"+a+"' contains a slash.");var s=this._query.path.child(at.fromString(a));if(!lt.isDocumentKey(s))throw new S(_.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+t+"() must result in a valid document path, but '"+s+"' is not because it contains an odd number of segments.");var u=new lt(s);i.push(new Pt(this.firestore._databaseId,u))}else{var l=this.firestore._dataConverter.parseQueryValue(t,a);i.push(l)}}return new Qt(i,n)},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];P("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof t[i]||Xi(t[i])||(B("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),M("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Xi(t[i])?n=t[i]:(N("Query.onSnapshot","function",i,t[i]),j("Query.onSnapshot","function",i+1,t[i+1]),j("Query.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.onSnapshotInternal(r,n)},t.prototype.onSnapshotInternal=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new zi({next:function(t){e.next&&e.next(new jo(n.firestore,n._query,t))},error:r}),o=this.firestore.ensureClientConfigured(),a=o.listen(this._query,i,t);return function(){i.mute(),o.unlisten(a)}},t.prototype.get=function(t){var e=this;return P("Query.get",arguments,0,1),Fo("Query.get",t),new Promise(function(n,r){t&&"cache"===t.source?e.firestore.ensureClientConfigured().getDocumentsFromLocalCache(e._query).then(function(t){n(new jo(e.firestore,e._query,t))},r):e.getViaSnapshotListener(n,r,t)})},t.prototype.getViaSnapshotListener=function(t,e,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?e(new S(_.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):t(i)},error:e})},t.prototype.validateNewFilter=function(t){if(t instanceof Gt)if(t.isInequality()){var e=this._query.getInequalityFilterField();if(null!==e&&!e.isEqual(t.field))throw new S(_.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+e.toString()+"' and '"+t.field.toString()+"'");var n=this._query.getFirstOrderByField();null!==n&&this.validateOrderByAndInequalityMatch(t.field,n)}else if(t.op===Ht.ARRAY_CONTAINS&&this._query.hasArrayContainsFilter())throw new S(_.INVA
1LID_ARGUMENT,"Invalid query. Queries only support a single array-contains filter.")},t.prototype.validateNewOrderBy=function(t){if(null===this._query.getFirstOrderByField()){var e=this._query.getInequalityFilterField();null!==e&&this.validateOrderByAndInequalityMatch(e,t.field)}},t.prototype.validateOrderByAndInequalityMatch=function(t,e){if(!e.isEqual(t))throw new S(_.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e.toString()+"' instead.")},t}(),jo=function(){function t(t,e,n){this._firestore=t,this._originalQuery=e,this._snapshot=n,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new xo(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;P("QuerySnapshot.forEach",arguments,1,2),N("QuerySnapshot.forEach","function",1,t),this._snapshot.docs.forEach(function(r){t.call(e,n.convertToDocumentImpl(r))})},Object.defineProperty(t.prototype,"query",{get:function(){return new No(this._originalQuery,this._firestore)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(B("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),M("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this._snapshot.excludesMetadataChanges)throw new S(_.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,n){if(n.oldDocs.isEmpty()){var r,i=0;return n.docChanges.map(function(e){var o=new Po(t,e.doc.key,e.doc,n.fromCache,n.mutatedKeys.has(e.doc.key));return y(e.type===Me.Added,"Invalid event type for first snapshot"),y(!r||n.query.docComparator(r,e.doc)<0,"Got added events in wrong order"),r=e.doc,{type:"added",doc:o,oldIndex:-1,newIndex:i++}})}var o=n.oldDocs;return n.docChanges.filter(function(t){return e||t.type!==Me.Metadata}).map(function(e){var r=new Po(t,e.doc.key,e.doc,n.fromCache,n.mutatedKeys.has(e.doc.key)),i=-1,a=-1;return e.type!==Me.Added&&(y((i=o.indexOf(e.doc.key))>=0,"Index for document not found"),o=o.delete(e.doc.key)),e.type!==Me.Removed&&(a=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:Uo(e.type),doc:r,oldIndex:i,newIndex:a}})}(this._firestore,e,this._snapshot),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","QuerySnapshot",1,e);return this._firestore===e._firestore&&this._originalQuery.isEqual(e._originalQuery)&&this._snapshot.isEqual(e._snapshot)},t.prototype.convertToDocumentImpl=function(t){return new Po(this._firestore,t.key,t,this.metadata.fromCache,this._snapshot.mutatedKeys.has(t.key))},t}();["length","forEach","map"].concat("undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach(function(t){try{Object.defineProperty(jo.prototype.docChanges,t,{get:function(){return function(){throw new S(_.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(e){}});var Ro=function(t){function e(e,n){var r=t.call(this,Bt.atPath(e),n)||this;if(e.length%2!=1)throw new S(_.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.canonicalString()+" has "+e.length);return r}return a.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._query.path.popLast();return t.isEmpty()?null:new Ao(new lt(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.
1canonicalString()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){if(P("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=$.newId()),N("CollectionReference.doc","non-empty string",1,t),""===t)throw new S(_.INVALID_ARGUMENT,"Document path must be a non-empty string");var e=at.fromString(t);return Ao.forPath(this._query.path.child(e),this.firestore)},e.prototype.add=function(t){x("CollectionReference.add",arguments,1),N("CollectionReference.add","object",1,t);var e=this.doc();return e.set(t).then(function(){return e})},e}(No);function Mo(t,e){if(void 0===e)return{merge:!1};if(B(t,e,["merge","mergeFields"]),M(t,"boolean","merge",e.merge),"mergeFields","a string or a FieldPath",void 0!==(n=e.mergeFields)&&function(t,e,n,r,i){if(!(r instanceof Array))throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires its mergeFields option to be an array, but it was: "+U(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new S(_.INVALID_ARGUMENT,"Function "+t+"() requires all mergeFields elements to be a string or a FieldPath, but the value at index "+o+" was: "+U(r[o]))}(t,0,0,n,function(t){return"string"==typeof t||t instanceof Hi}),void 0!==e.mergeFields&&void 0!==e.merge)throw new S(_.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');var n;return e}function Lo(t,e){return void 0===e?{}:(B(t,e,["serverTimestamps"]),L(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function Fo(t,e){j(t,"object",1,e),e&&(B(t,e,["source"]),L(t,0,"source",e.source,["default","server","cache"]))}function Vo(t,e,n){if(e instanceof Ao){if(e.firestore!==n)throw new S(_.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw z(t,"DocumentReference",1,e)}function Uo(t){switch(t){case Me.Added:return"added";case Me.Modified:case Me.Metadata:return"modified";case Me.Removed:return"removed";default:return v("Unknown change type: "+t)}}var qo=E(ko,"Use firebase.firestore() instead."),Bo=E(To,"Use firebase.firestore().runTransaction() instead."),zo=E(Oo,"Use firebase.firestore().batch() instead."),Ho=E(Ao,"Use firebase.firestore().doc() instead."),Go=E(Do),$o=E(Po),Ko=E(No),Wo=E(jo),Qo=E(Ro,"Use firebase.firestore().collection() instead."),Jo={Firestore:qo,GeoPoint:tt,Timestamp:et,Blob:Z,Transaction:Bo,WriteBatch:zo,DocumentReference:Ho,DocumentSnapshot:Go,Query:Ko,QueryDocumentSnapshot:$o,QuerySnapshot:Wo,CollectionReference:Qo,FieldPath:Hi,FieldValue:io,setLogLevel:ko.setLogLevel,CACHE_SIZE_UNLIMITED:Eo};function Xo(t){t.INTERNAL.registerService("firestore",function(t){return new ko(t)},function(t){y(t&&"object"==typeof t,"shallowCopy() expects object parameter.");var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(Jo))}Xo(i),e.registerFirestore=Xo},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),a=n("xTla"),s=n("y3By"),u=n("iLxQ");n.d(e,"a",function(){return l});var l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(s.add(a?a.call(s,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof r.a?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(s.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function c(t){if(t||(t=u.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},"6nsN":function(t,e,n){"use strict";n.r(e);var r=n("wj3C"),i=n.n(r);(function(){var t,e=e||{},n=this;function r(t){return"string"==typeof t}function o(t){return"boolean"==typeof t}var a=/^[\w+\/_-]+[=]{0,2}$/,s=null;function u(){}function l(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function c(t){return null===t}function h(t){return"array"==l(t)}function f(t){var e=l(t);return"array"==e||"object"==e&&"number"==typeof t.length}function d(t){return"function"==l(t)}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var m="closure_uid_"+(1e9*Math.random()>>>0),g=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function y(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function b(t,e,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:y).apply(null,arguments)}
1function w(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var _=Date.now||function(){return+new Date};function S(t,e){function n(){}n.prototype=e.prototype,t.pb=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.gd=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function E(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(e){return!1}}function C(t){if(Error.captureStackTrace)Error.captureStackTrace(this,C);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function I(t,e){for(var n="",r=(t=t.split("%s")).length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");C.call(this,n+t[r])}function k(t,e){throw new I("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function T(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function O(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function A(){this.b=this.a=null}S(C,Error),C.prototype.name="CustomError",S(I,C),I.prototype.name="AssertionError",T.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var x=new T(function(){return new P},function(t){t.reset()});function D(){var t=pt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function P(){this.next=this.b=this.a=null}A.prototype.add=function(t,e){var n=x.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},P.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},P.prototype.reset=function(){this.next=this.b=this.a=null};var N=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(r(t))return r(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},j=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,o=r(t)?t.split(""):t,a=0;a<i;a++)a in o&&e.call(n,o[a],a,t)},R=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),o=r(t)?t.split(""):t,a=0;a<n;a++)a in o&&(i[a]=e.call(void 0,o[a],a,t));return i},M=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=r(t)?t.split(""):t,o=0;o<n;o++)if(o in i&&e.call(void 0,i[o],o,t))return!0;return!1};function L(t,e){return 0<=N(t,e)}function F(t,e){var n;return(n=0<=(e=N(t,e)))&&Array.prototype.splice.call(t,e,1),n}function V(t,e){!function(t,e){for(var n=r(t)?t.split(""):t,i=t.length-1;0<=i;--i)i in n&&e.call(void 0,n[i],i,t)}(t,function(n,r){e.call(void 0,n,r,t)&&Array.prototype.splice.call(t,r,1)})}function U(t){return Array.prototype.concat.apply([],arguments)}function q(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}var B,z=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},H=/&/g,G=/</g,$=/>/g,K=/"/g,W=/'/g,Q=/\x00/g,J=/[\x00&<>"']/;function X(t,e){return-1!=t.indexOf(e)}function Y(t,e){return t<e?-1:t>e?1:0}t:{var Z=n.navigator;if(Z){var tt=Z.userAgent;if(tt){B=tt;break t}}B=""}function et(t){return X(B,t)}function nt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function rt(t){for(var e in t)return!1;return!0}function it(t){var e,n={};for(e in t)n[e]=t[e];return n}var ot,at,st="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ut(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<st.length;o++)n=st[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function lt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function ct(t){return J.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(H,"&")),-1!=t.indexOf("<")&&(t=t.replace(G,"<")),-1!=t.indexOf(">")&&(t=t.replace($,">")),-1!=t.indexOf('"')&&(t=t.replace(K,""")),-1!=t.indexOf("'")&&(t=t.replace(W,"'")),-1!=t.indexOf("\0")&&(t=t.replace(Q,"�"))),t}function ht(t){n.setTimeout(function(){throw t},0)}function ft(t,e){at||function(){if(n.Promise&&n.Promise.resolve){var t=n.Promise.resolve(void 0);at=function(){t.then(mt)}}else at=function(){var t=mt;!d(n.setImmediate)||n.Window&&n.Window.prototype&&!et("Edge")&&n.Window.prototype.setImmediate==n.setImmediate?(ot||(ot=function(){var t=n.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!et("Presto")&&(t=function(){var t=document.createElement("IF
1RAME");t.style.display="none",t.src="",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(""),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=b(function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),void 0!==t&&!et("Trident")&&!et("MSIE")){var e=new t,r={},i=r;return e.port1.onmessage=function(){if(void 0!==r.next){var t=(r=r.next).xb;r.xb=null,t()}},function(t){i.next={xb:t},i=i.next,e.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){n.setTimeout(t,0)}}()),ot(t)):n.setImmediate(t)}}(),dt||(at(),dt=!0),pt.add(t,e)}var dt=!1,pt=new A;function mt(){for(var t;t=D();){try{t.a.call(t.b)}catch(e){ht(e)}O(x,t)}dt=!1}function gt(t,e){if(this.a=vt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=u)try{var n=this;t.call(e,function(t){At(n,yt,t)},function(t){if(!(t instanceof Mt))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}At(n,bt,t)})}catch(r){At(this,bt,r)}}var vt=0,yt=2,bt=3;function wt(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}wt.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var _t=new T(function(){return new wt},function(t){t.reset()});function St(t,e,n){var r=_t.get();return r.g=t,r.b=e,r.f=n,r}function Et(t){if(t instanceof gt)return t;var e=new gt(u);return At(e,yt,t),e}
1function Ct(t){return new gt(function(e,n){n(t)})}function It(t,e,n){xt(t,e,n,null)||ft(w(e,t))}function kt(t){return new gt(function(e){var n=t.length,r=[];if(n)for(var i=function(t,i,o){n--,r[t]=i?{Eb:!0,value:o}:{Eb:!1,reason:o},0==n&&e(r)},o=0;o<t.length;o++)It(t[o],w(i,o,!0),w(i,o,!1));else e(r)})}function Tt(t,e){t.b||t.a!=yt&&t.a!=bt||Dt(t),t.f?t.f.next=e:t.b=e,t.f=e}function Ot(t,e,n,r){var i=St(null,null,null);return i.a=new gt(function(t,o){i.g=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.b=n?function(e){try{var i=n.call(r,e);void 0===i&&e instanceof Mt?o(e):t(i)}catch(a){o(a)}}:o}),i.a.c=t,Tt(t,i),i.a}function At(t,e,n){t.a==vt&&(t===n&&(e=bt,n=new TypeError("Promise cannot resolve to itself")),t.a=1,xt(n,t.Pc,t.Qc,t)||(t.i=n,t.a=e,t.c=null,Dt(t),e!=bt||n instanceof Mt||function(t,e){t.g=!0,ft(function(){t.g&&Rt.call(null,e)})}(t,n)))}function xt(t,e,n,r){if(t instanceof gt)return Tt(t,St(e||u,n||null,r)),!0;if(E(t))return t.then(e,n,r),!0;if(p(t))try{var i=t.then;if(d(i))return function(t,e,n,r,i){function o(t){a||(a=!0,r.call(i,t))}var a=!1;try{e.call(t,function(t){a||(a=!0,n.call(i,t))},o)}catch(s){o(s)}}(t,i,e,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Dt(t){t.h||(t.h=!0,ft(t.Yb,t))}function Pt(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Nt(t,e,n,r){if(n==bt&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,jt(e,n,r);else try{e.c?e.g.call(e.f):jt(e,n,r)}catch(i){Rt.call(null,i)}O(_t,e)}function jt(t,e,n){e==yt?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}gt.prototype.then=function(t,e,n){return Ot(this,d(t)?t:null,d(e)?e:null,n)},gt.prototype.$goog_Thenable=!0,(t=gt.prototype).ia=function(t,e){return(t=St(t,t,e)).c=!0,Tt(this,t),this},t.s=function(t,e){return Ot(this,null,t,e)},t.cancel=function(t){this.a==vt&&ft(function(){!function t(e,n){if(e.a==vt)if(e.c){var r=e.c;if(r.b){for(var i=0,o=null,a=null,s=r.b;s&&(s.c||(i++,s.a==e&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);o&&(r.a==vt&&1==i?t(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):Pt(r),Nt(r,o,bt,n)))}e.c=null}else At(e,bt,n)}(this,new Mt(t))},this)},t.Pc=function(t){this.a=vt,At(this,yt,t)},t.Qc=function(t){this.a=vt,At(this,bt,t)},t.Yb=function(){for(var t;t=Pt(this);)Nt(this,t,this.a,this.i);this.h=!1};var Rt=ht;function Mt(t){C.call(this,t)}function Lt(){0!=Ft&&(Vt[this[m]||(this[m]=++g)]=this),this.qa=this.qa,this.ja=this.ja}S(Mt,C),Mt.prototype.name="cancel";var Ft=0,Vt={};function Ut(t){if(!t.qa&&(t.qa=!0,t.va(),0!=Ft)){var e=t[m]||(t[m]=++g);if(0!=Ft&&t.ja&&0<t.ja.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Vt[e]}}function qt(t){return qt[" "](t),t}Lt.prototype.qa=!1,Lt.prototype.va=function(){if(this.ja)for(;this.ja.length;)this.ja.shift()()},qt[" "]=u;var Bt,zt,Ht=et("Opera"),Gt=et("Trident")||et("MSIE"),$t=et("Edge"),Kt=$t||Gt,Wt=et("Gecko")&&!(X(B.toLowerCase(),"webkit")&&!et("Edge"))&&!(et("Trident")||et("MSIE"))&&!et("Edge"),Qt=X(B.toLowerCase(),"webkit")&&!et("Edge");function Jt(){var t=n.document;return t?t.documentMode:void 0}t:{var Xt="",Yt=(zt=B,Wt?/rv:([^\);]+)(\)|;)/.exec(zt):$t?/Edge\/([\d\.]+)/.exec(zt):Gt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(zt):Qt?/WebKit\/(\S+)/.exec(zt):Ht?/(?:Version)[ \/]?(\S+)/.exec(zt):void 0);if(Yt&&(Xt=Yt?Yt[1]:""),Gt){var Zt=Jt();if(null!=Zt&&Zt>parseFloat(Xt)){Bt=String(Zt);break t}}Bt=Xt}var te,ee={};function ne(t){return function(t,e){var n=ee;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=z(String(Bt)).split("."),r=z(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=Y(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||Y(0==a[2].length,0==s[2].length)||Y(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var re=n.document;te=re&&Gt?Jt()||("CSS1Compat"==re.compatMode?parseInt(Bt,10):5):void 0;var ie=Object.freeze||function(t){return t},oe=!Gt||9<=Number(te),ae=Gt&&!ne("9"),se=function(){if(!n.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{n.addEventListener("test",u,e),n.removeEventListener("test",u,e)}catch(r){}return t}();function ue(t,e){this.type=t,this.b=this.target=e,this.Kb=!0}function le(t,e){if(ue.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(Wt){t:{try{qt(e.nodeName);var o=!0;break t}catch(a){}o=!1}o||(e=null)}}
1else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=r(t.pointerType)?t.pointerType:ce[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}ue.prototype.preventDefault=function(){this.Kb=!1},S(le,ue);var ce=ie({2:"touch",3:"pen",4:"mouse"});le.prototype.preventDefault=function(){le.pb.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,ae)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},le.prototype.f=function(){return this.a};var he="closure_listenable_"+(1e6*Math.random()|0),fe=0;function de(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Ma=i,this.key=++fe,this.oa=this.Ia=!1}function pe(t){t.oa=!0,t.listener=null,t.proxy=null,t.src=null,t.Ma=null}function me(t){this.src=t,this.a={},this.b=0}function ge(t,e){var n=e.type;n in t.a&&F(t.a[n],e)&&(pe(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function ve(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.oa&&o.listener==e&&o.capture==!!n&&o.Ma==r)return i}return-1}me.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=ve(t,e,r,i);return-1<a?(e=t[a],n||(e.Ia=!1)):((e=new de(e,this.src,o,!!r,i)).Ia=n,t.push(e)),e};var ye="closure_lm_"+(1e6*Math.random()|0),be={};function we(t,e,n,r,i){if(r&&r.once)Se(t,e,n,r,i);else if(h(e))for(var o=0;o<e.length;o++)we(t,e[o],n,r,i);else n=De(n),t&&t[he]?Ne(t,e,n,p(r)?!!r.capture:!!r,i):_e(t,e,n,!1,r,i)}function _e(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=p(i)?!!i.capture:!!i,s=Ae(t);if(s||(t[ye]=s=new me(t)),!(n=s.add(e,n,r,a,o)).proxy)if(r=function(){var t=Oe,e=oe?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)se||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Ie(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}}function Se(t,e,n,r,i){if(h(e))for(var o=0;o<e.length;o++)Se(t,e[o],n,r,i);else n=De(n),t&&t[he]?je(t,e,n,p(r)?!!r.capture:!!r,i):_e(t,e,n,!0,r,i)}function Ee(t,e,n,r,i){if(h(e))for(var o=0;o<e.length;o++)Ee(t,e[o],n,r,i);else r=p(r)?!!r.capture:!!r,n=De(n),t&&t[he]?(t=t.o,(e=String(e).toString())in t.a&&-1<(n=ve(o=t.a[e],n,r,i))&&(pe(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=Ae(t))&&(e=t.a[e.toString()],t=-1,e&&(t=ve(e,n,r,i)),(n=-1<t?e[t]:null)&&Ce(n))}function Ce(t){if("number"!=typeof t&&t&&!t.oa){var e=t.src;if(e&&e[he])ge(e.o,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Ie(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Ae(e))?(ge(n,t),0==n.b&&(n.src=null,e[ye]=null)):pe(t)}}}function Ie(t){return t in be?be[t]:be[t]="on"+t}function ke(t,e,n,r){var i=!0;if((t=Ae(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.oa&&(o=Te(o,r),i=i&&!1!==o)}return i}function Te(t,e){var n=t.listener,r=t.Ma||t.src;return t.Ia&&Ce(t),n.call(r,e)}function Oe(t,e){if(t.oa)return!0;if(!oe){if(!e)t:{e=["window","event"];for(var r=n,i=0;i<e.length;i++)if(null==(r=r[e[i]])){e=null;break t}e=r}if(e=new le(i=e,this),r=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var o=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(s){o=!0}(o||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],o=e.b;o;o=o.parentNode)i.push(o);for(t=t.type,o=i.length-1;0<=o;o--){e.b=i[o];var a=ke(i[o],t,!0,e);r=r&&a}for(o=0;o<i.length;o++)e.b=i[o],a=ke(i[o],t,!1,e),r=r&&a}return r}return Te(t,new le(e,this))}function Ae(t){return(t=t[ye])instanceof me?t:null}var xe="__closure_events_fn_"+(1e9*Math.random()>>>0);function De(t){return d(t)?t:(t[xe]||(t[xe]=function(e){return t.handleEvent(e)}),t[xe])}function Pe(){Lt.call(this),this.o=new me(this),this.Rb=this,this.Wa=null}function Ne(t,e,n,r,i){t.o.add(String(e),n,!1,r,i)}function je(t,e,n,r,i){t.o.add(String(e),n,!0,r,i)}function Re(t,e,n,r){if(!(e=t.o.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.oa&&a.capture==n){var s=a.listener,u=a.Ma||a.src;a.Ia&&ge(t.o,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Kb}function Me(t,e,r){if(d(t))r&&(t=b(t,r));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=b(t.handleEvent,t)}return 2147483647<Number(e)?-1:n.setTimeout(t,e||0)}function Le(t){var e=null;return new gt(function(n,r){-1==(e=Me(function(){n(void 0)},t))&&r(Error("Failed to schedule timer."))}).s(function(t){throw n.clearTimeout(e),t})}function Fe(t){if(t.S&&"function"==typeof t.S)return t.S();if(r(t))return t.split("");
1if(f(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}function Ve(t){if(t.U&&"function"==typeof t.U)return t.U();if(!t.S||"function"!=typeof t.S){if(f(t)||r(t)){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var i in e=[],n=0,t)e[n++]=i;return e}}function Ue(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Ue)for(n=t.U(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function qe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Be(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)Be(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Be(t,e){return Object.prototype.hasOwnProperty.call(t,e)}S(Pe,Lt),Pe.prototype[he]=!0,Pe.prototype.addEventListener=function(t,e,n,r){we(this,t,e,n,r)},Pe.prototype.removeEventListener=function(t,e,n,r){Ee(this,t,e,n,r)},Pe.prototype.dispatchEvent=function(t){var e,n=this.Wa;if(n)for(e=[];n;n=n.Wa)e.push(n);n=this.Rb;var i=t.type||t;if(r(t))t=new ue(t,n);else if(t instanceof ue)t.target=t.target||n;else{var o=t;ut(t=new ue(i,n),o)}if(o=!0,e)for(var a=e.length-1;0<=a;a--){var s=t.b=e[a];o=Re(s,i,!0,t)&&o}if(o=Re(s=t.b=n,i,!0,t)&&o,o=Re(s,i,!1,t)&&o,e)for(a=0;a<e.length;a++)o=Re(s=t.b=e[a],i,!1,t)&&o;return o},Pe.prototype.va=function(){if(Pe.pb.va.call(this),this.o){var t,e=this.o;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)pe(n[r]);delete e.a[t],e.b--}}this.Wa=null},(t=Ue.prototype).S=function(){qe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.U=function(){return qe(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return Be(this.b,t)?this.b[t]:e},t.set=function(t,e){Be(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.U(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var ze=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function He(t,e){if(this.b=this.o=this.c="",this.i=null,this.h=this.g="",this.f=!1,t instanceof He){this.f=void 0!==e?e:t.f,Ge(this,t.c),this.o=t.o,this.b=t.b,$e(this,t.i),this.g=t.g,e=t.a;var n=new sn;n.c=e.c,e.a&&(n.a=new Ue(e.a),n.b=e.b),Ke(this,n),this.h=t.h}else t&&(n=String(t).match(ze))?(this.f=!!e,Ge(this,n[1]||"",!0),this.o=Ye(n[2]||""),this.b=Ye(n[3]||"",!0),$e(this,n[4]),this.g=Ye(n[5]||"",!0),Ke(this,n[6]||"",!0),this.h=Ye(n[7]||"")):(this.f=!!e,this.a=new sn(null,this.f))}function Ge(t,e,n){t.c=n?Ye(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function $e(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.i=e}else t.i=null}function Ke(t,e,n){e instanceof sn?(t.a=e,function(t,e){e&&!t.f&&(un(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(cn(this,e),fn(this,n,t))},t)),t.f=e}(t.a,t.f)):(n||(e=Ze(e,on)),t.a=new sn(e,t.f))}function We(t,e,n){t.a.set(e,n)}function Qe(t,e){return t.a.get(e)}function Je(t){return t instanceof He?new He(t):new He(t,void 0)}function Xe(t,e){var n=new He(null,void 0);return Ge(n,"https"),t&&(n.b=t),e&&(n.g=e),n}function Ye(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ze(t,e,n){return r(t)?(t=encodeURI(t).replace(e,tn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function tn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}He.prototype.toString=function(){var t=[],e=this.c;e&&t.push(Ze(e,en,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.o)&&t.push(Ze(e,en,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&t.push(":",String(n))),(n=this.g)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Ze(n,"/"==n.charAt(0)?rn:nn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.h)&&t.push("#",Ze(n,an)),t.join("")};var en=/[#\/\?@]/g,nn=/[#\?:]/g,rn=/[#\?]/g,on=/[#\?@]/g,an=/#/g;function sn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function un(t){t.a||(t.a=new Ue,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function ln(t){var e=Ve(t);
1if(void 0===e)throw Error("Keys are undefined");var n=new sn(null,void 0);t=Fe(t);for(var r=0;r<e.length;r++){var i=e[r],o=t[r];h(o)?fn(n,i,o):n.add(i,o)}return n}function cn(t,e){un(t),e=dn(t,e),Be(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Be((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&qe(t)))}function hn(t,e){return un(t),e=dn(t,e),Be(t.a.b,e)}function fn(t,e,n){cn(t,e),0<n.length&&(t.c=null,t.a.set(dn(t,e),q(n)),t.b+=n.length)}function dn(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}(t=sn.prototype).add=function(t,e){un(this),this.c=null,t=dn(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,e){un(this),this.a.forEach(function(n,r){j(n,function(n){t.call(e,n,r,this)},this)},this)},t.U=function(){un(this);for(var t=this.a.S(),e=this.a.U(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},t.S=function(t){un(this);var e=[];if(r(t))hn(this,t)&&(e=U(e,this.a.get(dn(this,t))));else{t=this.a.S();for(var n=0;n<t.length;n++)e=U(e,t[n])}return e},t.set=function(t,e){return un(this),this.c=null,hn(this,t=dn(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},t.get=function(t,e){return t&&0<(t=this.S(t)).length?String(t[0]):e},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.U(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.S(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var pn=!Gt||9<=Number(te);function mn(t,e){this.a=t===yn&&e||"",this.b=vn}function gn(t){return t instanceof mn&&t.constructor===mn&&t.b===vn?t.a:(k("expected object of type Const, got '"+t+"'"),"type_error:Const")}mn.prototype.na=!0,mn.prototype.ma=function(){return this.a},mn.prototype.toString=function(){return"Const{"+this.a+"}"};var vn={},yn={};function bn(){this.a="",this.b=Cn}function wn(t){return t instanceof bn&&t.constructor===bn&&t.b===Cn?t.a:(k("expected object of type TrustedResourceUrl, got '"+t+"' of type "+l(t)),"type_error:TrustedResourceUrl")}function _n(t,e){var n=gn(t);if(!En.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(t){var e=new bn;return e.a=t,e}(t=n.replace(Sn,function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[r])instanceof mn?gn(t):encodeURIComponent(String(t))}))}bn.prototype.na=!0,bn.prototype.ma=function(){return this.a.toString()},bn.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Sn=/%{(\w+)}/g,En=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^\/\\]|[^:\/\\%]+\/|[^:\/\\%]*[?#]|about:blank#)/i,Cn={};function In(){this.a="",this.b=An}function kn(t){return t instanceof In&&t.constructor===In&&t.b===An?t.a:(k("expected object of type SafeUrl, got '"+t+"' of type "+l(t)),"type_error:SafeUrl")}In.prototype.na=!0,In.prototype.ma=function(){return this.a.toString()},In.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Tn=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i;function On(t){return t instanceof In?t:(t="object"==typeof t&&t.na?t.ma():String(t),Tn.test(t)||(t="about:invalid#zClosurez"),xn(t))}var An={};function xn(t){var e=new In;return e.a=t,e}function Dn(){this.a="",this.b=Pn}xn("about:blank"),Dn.prototype.na=!0,Dn.prototype.ma=function(){return this.a.toString()},Dn.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Pn={};function Nn(t){var e=new Dn;return e.a=t,e}function jn(t){var e=document;return r(t)?e.getElementById(t):t}function Rn(t,e){nt(e,function(e,n){e&&"object"==typeof e&&e.na&&(e=e.ma()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:Mn.hasOwnProperty(n)?t.setAttribute(Mn[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}Nn("<!DOCTYPE html>"),Nn(""),Nn("<br>");var Mn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Ln(t){if(t&&"number"==typeof t.length){if(p(t))return"function"==typeof t.item||"string"==typeof t.item;if(d(t))return"function"==typeof t.item}return!1}function Fn(t){var e=[];return function t(e,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(h(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),t(e,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&"function"!=typeof(a=n[i])&&(r.push(o),Bn(i,r),r.push(":"),t(e,a,r),o=",");return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":Bn(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new Vn,t,e),e.join("")}function Vn(){}var Un={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},qn=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Bn(t,e){e.push('"',t.replace(qn,function(t){var e=Un[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Un[t]=e),e}),'"')}function zn(){var t=ur();return Gt&&!!te&&11==te||/Edge\/\d+/.test(t)}function Hn(){return n.window&&n.window.location.href||self&&self.location&&self.location.href||""}function Gn(t,e){e=e||n.window;var r="about:blank";t&&(r=kn(On(t)).toString()),e.location.href=r}function $n(t){return!!((t=(t||ur()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function Kn(t){t=t||n.window;try{t.close()}catch(e){}}function Wn(t,e,n){var r=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=ur().toLowerCase(),r&&(e.target=r,X(n,"crios/")&&(e.target="_blank")),or(ur())==rr&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof In?n:On(void 0!==n.href?n.href:String(n)),n=t.target||n.target,i=[],t)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(t[a]?1:0))}var a=i.join(",");if((et("iPhone")&&!et("iPod")&&!et("iPad")||et("iPad")||et("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(a=r.document.createElement("A"),e instanceof In||e instanceof In||(e="object"==typeof e&&e.na?e.ma():String(e),Tn.test(e)||(e="about:invalid#zClosurez"),e=xn(e)),a.href=kn(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=r.open("",n,a),t=kn(e).toString(),a&&(Kt&&X(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=Nn('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ct(t)+'">'),a.document.write(function(t){return t instanceof Dn&&t.constructor===Dn&&t.b===Pn?t.a:(k("expected object of type SafeHtml, got '"+t+"' of type "+l(t)),"type_error:SafeHtml")}(t)),a.document.close())):(a=r.open(kn(e).toString(),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var Qn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Jn=/^[^@]+@[^@]+$/;function Xn(){var t=null;return new gt(function(e){"complete"==n.document.readyState?e():(t=function(){e()},Se(window,"load",t))}).s(function(e){throw Ee(window,"load",t),e})}function Yn(t){return t=t||ur(),!("file:"!==dr()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Zn(){var t=n.window;try{return!(!t||t==t.top)}catch(e){return!1}}function tr(){return void 0!==n.WorkerGlobalScope&&"function"==typeof n.importScripts}function er(){return i.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.a.INT
1ERNAL.hasOwnProperty("node")?"Node":tr()?"Worker":"Browser"}function nr(){var t=er();return"ReactNative"===t||"Node"===t}var rr="Firefox",ir="Chrome";function or(t){var e=t.toLowerCase();return X(e,"opera/")||X(e,"opr/")||X(e,"opios/")?"Opera":X(e,"iemobile")?"IEMobile":X(e,"msie")||X(e,"trident/")?"IE":X(e,"edge/")?"Edge":X(e,"firefox/")?rr:X(e,"silk/")?"Silk":X(e,"blackberry")?"Blackberry":X(e,"webos")?"Webos":!X(e,"safari/")||X(e,"chrome/")||X(e,"crios/")||X(e,"android")?!X(e,"chrome/")&&!X(e,"crios/")||X(e,"edge/")?X(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":ir:"Safari"}var ar={Wc:"FirebaseCore-web",Yc:"FirebaseUI-web"};function sr(t,e){e=e||[];var n,r=[],i={};for(n in ar)i[ar[n]]=!0;for(n=0;n<e.length;n++)void 0!==i[e[n]]&&(delete i[e[n]],r.push(e[n]));return r.sort(),(e=r).length||(e=["FirebaseCore-web"]),"Browser"===(r=er())?r=or(i=ur()):"Worker"===r&&(r=or(i=ur())+"-"+r),r+"/JsCore/"+t+"/"+e.join(",")}function ur(){return n.navigator&&n.navigator.userAgent||""}function lr(t,e){t=t.split("."),e=e||n;for(var r=0;r<t.length&&"object"==typeof e&&null!=e;r++)e=e[t[r]];return r!=t.length&&(e=void 0),e}function cr(){try{var t=n.localStorage,e=yr();if(t)return t.setItem(e,"1"),t.removeItem(e),!zn()||!!n.indexedDB}catch(r){return tr()&&!!n.indexedDB}return!1}function hr(){return(fr()||"chrome-extension:"===dr()||Yn())&&!nr()&&cr()&&!tr()}function fr(){return"http:"===dr()||"https:"===dr()}function dr(){return n.location&&n.location.protocol||null}function pr(t){return!$n(t=t||ur())&&or(t)!=rr}function mr(t){return void 0===t?null:Fn(t)}function gr(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function vr(t){if(null!==t)return JSON.parse(t)}function yr(t){return t||Math.floor(1e9*Math.random()).toString()}function br(t){return"Safari"!=or(t=t||ur())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function wr(){var t=n.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var r=0;r<t.CP.length;r++)t.CP[r]=null}function _r(t,e){if(t>e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=ur(),e=er(),this.b=$n(t)||"ReactNative"===e}function Sr(){var t=n.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Er(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Cr(){return!(!lr("fireauth.oauthhelper",n)&&!lr("fireauth.iframe",n))}_r.prototype.get=function(){var t=n.navigator;return!t||"boolean"!=typeof t.onLine||!fr()&&"chrome-extension:"!==dr()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ir,kr={};function Tr(t){kr[t]||(kr[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Or={};Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:2}),Ir=2==Or.abcd}catch(zt){Ir=!1}function Ar(t,e,n){Ir?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function xr(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Ar(t,n,e[n])}function Dr(t){var e={};return xr(e,t),e}function Pr(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Ar(e,n,Pr(t[n]));return e}function Nr(t){var e={},n=t[Rr],r=t[Mr];if(!(t=t[Lr])||t!=jr&&!n)throw Error("Invalid provider user info!");e[Vr]=r||null,e[Fr]=n||null,Ar(this,qr,t),Ar(this,Ur,Pr(e))}var jr="EMAIL_SIGNIN",Rr="email",Mr="newEmail",Lr="requestType",Fr="email",Vr="fromEmail",Ur="data",qr="operation";function Br(t,e){this.code=Hr+t,this.message=e||Gr[t]||""}function zr(t){var e=t&&t.code;return e?new Br(e.substring(Hr.length),t.message):null}S(Br,Error),Br.prototype.w=function(){return{code:this.code,message:this.message}},Br.prototype.toJSON=function(){return this.w()};var Hr="auth/",Gr={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invali
1d-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The OIDC ID token requires a valid unhashed nonce.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};function $r(t){var e=t[Xr];if(void 0===e)throw new Br("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new Br("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Kr];if(n&&"object"==typeof n){e=n[ti];var r=n[Yr];if(n=n[Zr],"string"==typeof e&&e.length){if(this.a=e,void 0!==r&&"boolean"!=typeof r)throw new Br("argument-error",Yr+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new Br("argument-error",Zr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new Br("argument-error",ti+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new Br("missing-android-pkg-name")}}else if(void 0!==n)throw new Br("argument-error",Kr+" property must be a non null object when specified.");if(this.f=null,(e=t[Jr])&&"object"==typeof e){if("string"==typeof(e=e[ei])&&e.length)this.f=e;else if(void 0!==e)throw new Br("argument-error",ei+" property must be a non empty string when specified.")}else if(void 0!==e)throw new Br("argument-error",Jr+" property must be a non null object when specified.");if(void 0!==(e=t[Qr])&&"boolean"!=typeof e)throw new Br("argument-error",Qr+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Wr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new Br("argument-error",Wr+" property must be a non empty string when specified.");this.i=t||null}var Kr="android",Wr="dynamicLinkDomain",Qr="handleCodeInApp",Jr="iOS",Xr="url",Yr="installApp",Zr="minimumVersion",ti="packageName",ei="bundleId";function ni(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var ri=null,ii=null;function oi(t){this.c=t.sub,_(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function ai(t){return(t=si(t))&&t.sub&&t.iss&&t.aud&&t.exp?new oi(t):null}function si(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{return JSON.parse(function(t){var e="";return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=ii[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!ri){ri={},ii={};for(var t=0;65>t;t++)ri[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=".charAt(t),ii[ri[t]]=t,62<=t&&(ii["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(t)]=t)}}();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;e(i<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){e+=String.fromCharCode(t)}),e}(t))}catch(r){}return null}oi.prototype.f=function(){return this.b};var ui,li={bd:{bb:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",jb:"https://securetoken.googleapis.com/v1/token",id:"p"},dd:{bb:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",jb:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},ed:{bb:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",jb:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};function ci(t){for(var e in li)if(li[e].id===t)return{firebaseEndpoint:(t=li[e]).bb,secureTokenEndpoint:t.jb};return null}ui=ci("__EID__")?"__EID__":void 0;var hi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),fi=["client_id","response_type","scope","redirect_uri","state"],di={Xc:{Na:"locale",Ba:500,Aa:600,Oa:"facebook.com",ib:fi},Zc:{Na:null,Ba:500,Aa:620,Oa:"github.com",ib:fi},$c:{Na:"hl",Ba:515,Aa:680,Oa:"google.com",ib:fi},fd:{Na:"lang",Ba:485,Aa:705,Oa:"twitter.com",ib:hi}};function pi(t){for(var e in di)if(di[e].Oa==t)return di[e];return null}function mi(t){var e={};e["facebook.com"]=wi,e["google.com"]=Si,e["github.com"]=_i,e["twitter.com"]=Ei;var n=t&&t[vi];try{if(n)return e[n]?new e[n](t):new bi(t);if(void 0!==t[gi])return new yi(t)}catch(r){}return null}var gi="idToken",vi="providerId";function yi(t){var e=t[vi];if(!e&&t[gi]){var n=ai(t[gi]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Ar(this,"providerId",e),Ar(this,"isNewUser",n)}function bi(t){yi.call(this,t),Ar(this,"profile",Pr((t=vr(t.rawUserInfo||"{}"))||{}))}function wi(t){if(bi.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function _i(t){if(bi.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Ar(this,"username",this.profile&&this.profile.login||null)}function Si(t){if(bi.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ei(t){if(bi.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Ar(this,"username",t.screenName||null)}function Ci(t){this.a=Je(t)}function Ii(t){var e=Je(t),n=Qe(e,"link"),r=Qe(Je(n),"link");return e=Qe(e,"deep_link_id"),Qe(Je(e),"link")||e||r||n||t}function ki(){}function Ti(t,e){return t.then(function(t){if(t[da]){var n=ai(t[da]);if(!n||e!=n.c)throw new Br("user-mismatch");return t}throw new Br("user-mismatch")}).s(function(t){throw t&&t.code&&t.code==Hr+"user-not-found"?new Br("user-mismatch"):t})}function Oi(t,e){if(!e)throw new Br("internal-error","failed to construct a credential");this.a=e,Ar(this,"providerId",t),Ar(this,"signInMethod",t)}function Ai(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function xi(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new Oi(t.providerId,t.pendingToken)}catch(e){}return null}function Di(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Ar(this,"idToken",e.idToken),e.accessToken&&Ar(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Ar(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new Br("internal-error","failed to construct a credential");Ar(this,"accessToken",e.oauthToken),Ar(this,"secret",e.oauthTokenSecret)}Ar(this,"providerId",t),Ar(this,"signInMethod",n)}function Pi(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:ln(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function Ni(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new Di(t.providerId,e,t.signInMethod)}catch(n){}}return null}function ji(t,e){this.Fc=e||[],xr(this,{providerId:t,isOAuthProvider:!0}),this.zb={},this.eb=(pi(t)||{}).Na||null,this.ab=null}function Ri(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new Br("argument-error",'SAML provider IDs must be prefixed with "saml."');
1ji.call(this,t,[])}function Mi(t){ji.call(this,t,fi),this.a=[]}function Li(){Mi.call(this,"facebook.com")}function Fi(t){if(!t)throw new Br("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return p(t)&&(e=t.accessToken),(new Li).credential({accessToken:e})}function Vi(){Mi.call(this,"github.com")}function Ui(t){if(!t)throw new Br("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return p(t)&&(e=t.accessToken),(new Vi).credential({accessToken:e})}function qi(){Mi.call(this,"google.com"),this.ua("profile")}function Bi(t,e){var n=t;return p(t)&&(n=t.idToken,e=t.accessToken),(new qi).credential({idToken:n,accessToken:e})}function zi(){ji.call(this,"twitter.com",hi)}function Hi(t,e){var n=t;if(p(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new Br("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Di("twitter.com",n,"twitter.com")}function Gi(t,e,n){this.a=t,this.c=e,Ar(this,"providerId","password"),Ar(this,"signInMethod",n===Ki.EMAIL_LINK_SIGN_IN_METHOD?Ki.EMAIL_LINK_SIGN_IN_METHOD:Ki.EMAIL_PASSWORD_SIGN_IN_METHOD)}function $i(t){return t&&t.email&&t.password?new Gi(t.email,t.password,t.signInMethod):null}function Ki(){xr(this,{providerId:"password",isOAuthProvider:!1})}function Wi(t,e){if(!(e=Qi(e)))throw new Br("argument-error","Invalid email link!");return new Gi(t,e,Ki.EMAIL_LINK_SIGN_IN_METHOD)}function Qi(t){var e=Qe((t=new Ci(t=Ii(t))).a,"oobCode")||null;return"signIn"===(Qe(t.a,"mode")||null)&&e?e:null}function Ji(t){if(!(t.Ua&&t.Ta||t.Fa&&t.$))throw new Br("internal-error");this.a=t,Ar(this,"providerId","phone"),Ar(this,"signInMethod","phone")}function Xi(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return j(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new Ji(e)}return null}function Yi(t){return t.a.Fa&&t.a.$?{temporaryProof:t.a.Fa,phoneNumber:t.a.$}:{sessionInfo:t.a.Ua,code:t.a.Ta}}function Zi(t){try{this.a=t||i.a.auth()}catch(e){throw new Br("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}xr(this,{providerId:"phone",isOAuthProvider:!1})}function to(t,e){if(!t)throw new Br("missing-verification-id");if(!e)throw new Br("missing-verification-code");return new Ji({Ua:t,Ta:e})}function eo(t){if(t.temporaryProof&&t.phoneNumber)return new Ji({Fa:t.temporaryProof,$:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return Bi(o,n);case"facebook.com":return Fi(n);case"github.com":return Ui(n);case"twitter.com":return Hi(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new Oi(e,a):new Di(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new Mi(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function no(t){if(!t.isOAuthProvider)throw new Br("invalid-oauth-provider")}function ro(t,e,n,r,i,o){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.h=o||null,this.a=i||null,!this.g&&!this.a)throw new Br("invalid-auth-event");if(this.g&&this.a)throw new Br("invalid-auth-event");if(this.g&&!this.f)throw new Br("invalid-auth-event")}function io(t){return(t=t||{}).type?new ro(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&zr(t.error),t.postBody):null}function oo(){this.b=null,this.a=[]}S(bi,yi),S(wi,bi),S(_i,bi),S(Si,bi),S(Ei,bi),Oi.prototype.la=function(t){return Da(t,Ai(this))},Oi.prototype.b=function(t,e){var n=Ai(this);return n.idToken=e,Pa(t,n)},Oi.prototype.f=function(t,e){return Ti(Na(t,Ai(this)),e)},Oi.prototype.w=function(){return{providerId:this.providerId,sign
1InMethod:this.signInMethod,pendingToken:this.a}},Di.prototype.la=function(t){return Da(t,Pi(this))},Di.prototype.b=function(t,e){var n=Pi(this);return n.idToken=e,Pa(t,n)},Di.prototype.f=function(t,e){return Ti(Na(t,Pi(this)),e)},Di.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},ji.prototype.Da=function(t){return this.zb=it(t),this},S(Ri,ji),S(Mi,ji),Mi.prototype.ua=function(t){return L(this.a,t)||this.a.push(t),this},Mi.prototype.Fb=function(){return q(this.a)},Mi.prototype.credential=function(t,e){var n;if(!(n=p(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new Br("argument-error","credential failed: must provide the ID token and/or the access token.");return new Di(this.providerId,n,this.providerId)},S(Li,Mi),Ar(Li,"PROVIDER_ID","facebook.com"),Ar(Li,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(Vi,Mi),Ar(Vi,"PROVIDER_ID","github.com"),Ar(Vi,"GITHUB_SIGN_IN_METHOD","github.com"),S(qi,Mi),Ar(qi,"PROVIDER_ID","google.com"),Ar(qi,"GOOGLE_SIGN_IN_METHOD","google.com"),S(zi,ji),Ar(zi,"PROVIDER_ID","twitter.com"),Ar(zi,"TWITTER_SIGN_IN_METHOD","twitter.com"),Gi.prototype.la=function(t){return this.signInMethod==Ki.EMAIL_LINK_SIGN_IN_METHOD?us(t,qa,{email:this.a,oobCode:this.c}):us(t,is,{email:this.a,password:this.c})},Gi.prototype.b=function(t,e){return this.signInMethod==Ki.EMAIL_LINK_SIGN_IN_METHOD?us(t,Ba,{idToken:e,email:this.a,oobCode:this.c}):us(t,Ya,{idToken:e,email:this.a,password:this.c})},Gi.prototype.f=function(t,e){return Ti(this.la(t),e)},Gi.prototype.w=function(){return{email:this.a,password:this.c,signInMethod:this.signInMethod}},xr(Ki,{PROVIDER_ID:"password"}),xr(Ki,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),xr(Ki,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ji.prototype.la=function(t){return t.Va(Yi(this))},Ji.prototype.b=function(t,e){var n=Yi(this);return n.idToken=e,us(t,as,n)},Ji.prototype.f=function(t,e){var n=Yi(this);return n.operation="REAUTH",Ti(t=us(t,ss,n),e)},Ji.prototype.w=function(){var t={providerId:"phone"};return this.a.Ua&&(t.verificationId=this.a.Ua),this.a.Ta&&(t.verificationCode=this.a.Ta),this.a.Fa&&(t.temporaryProof=this.a.Fa),this.a.$&&(t.phoneNumber=this.a.$),t},Zi.prototype.Va=function(t,e){var n=this.a.b;return Et(e.verify()).then(function(i){if(!r(i))throw new Br("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":return function(t,e){return us(n,Ja,e)}(0,{phoneNumber:t,recaptchaToken:i}).then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t});default:throw new Br("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},xr(Zi,{PROVIDER_ID:"phone"}),xr(Zi,{PHONE_SIGN_IN_METHOD:"phone"}),ro.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.i&&t.push(this.i),t.join("-")},ro.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.h,error:this.a&&this.a.w()}};var ao,so=null;function uo(t){var e="unauthorized-domain",n=void 0,r=Je(t);t=r.b,"chrome-extension"==(r=r.c)?n=lt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=lt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",Br.call(this,e,n)}function lo(t,e,n){Br.call(this,t,n),(t=e||{}).Ab&&Ar(this,"email",t.Ab),t.$&&Ar(this,"phoneNumber",t.$),t.credential&&Ar(this,"credential",t.credential)}function co(t){if(t.code){var e=t.code||"";0==e.indexOf(Hr)&&(e=e.substring(Hr.length));var n={credential:eo(t)};if(t.email)n.Ab=t.email;else if(t.phoneNumber)n.$=t.phoneNumber;else if(!n.credential)return new Br(e,t.message||void 0);return new lo(e,n,t.message)}return null}function ho(){}function fo(){}function po(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var r=e[n];try{return new ActiveXObject(r),t.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function mo(){}function go(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=b(this.fc,this),this.a.onerror=b(this.Gb,this),this.a.onprogress=b(this.gc,this),this.a.ontimeout=b(this.kc,this)}function vo(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function yo(t,e,n){this.reset(t,e,n,void 0,void 0)}function bo(t){this.f=t,this.b=this.c=this.a=null}function wo(t,e){this.name=t,this.value=e}oo.prototype.subscribe=function(t){var e=this;this.a.push(t),this.b||(this.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=lr("universalLinks.subscribe",n))&&t(null,this.b))},oo.prototype.unsubscribe=function(t){V(this.a,function(e){return e==t})},S(uo,Br),S(lo,Br),lo.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber);var e=this.credential&&this.credential.w();return e&&ut(t,e),t},lo.prototype.toJSON=function(){return this.w()},ho.prototype.c=null,S(fo,ho),fo.prototype.a=function(){var t=po(this);return t?new ActiveXObject(t):new XMLHttpRequest},fo.prototype.b=function(){var t={};return po(this)&&(t[0]=!0,t[1]=!0),t},ao=new fo,S(mo,ho),mo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new go;throw Error("Unsupported browser")},mo.prototype.b=function(){return{}},(t=go.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.fc=function(){this.status=200,this.response=this.responseText=this.a.responseText,vo(this,4)},t.Gb=function(){this.status=500,this.response=this.responseText="",vo(this,4)},t.kc=function(){this.Gb()},t.gc=function(){this.status=200,vo(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},yo.prototype.a=null,yo.prototype.reset=function(t,e,n,r,i){r||_(),delete this.a},wo.prototype.toString=function(){return this.name};var _o=new wo("SEVERE",1e3),So=new wo("WARNING",900),Eo=new wo("CONFIG",700),Co=new wo("FINE",500);bo.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(k("Root logger has no level set."),null)}(this).value)for(d(e)&&(e=e()),t=new yo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var Io={},ko=null;function To(t){var e;if(ko||(ko=new bo(""),Io[""]=ko,ko.c=Eo),!(e=Io[t])){e=new bo(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=To(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,Io[t]=e}return e}function Oo(t,e){t&&t.log(Co,e,void 0)}function Ao(t){this.f=t}function xo(t){Pe.call(this),this.u=t,this.readyState=Do,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=To("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}S(Ao,ho),Ao.prototype.a=function(){return new xo(this.f)},Ao.prototype.b=function(t){return function(){return t}}({}),S(xo,Pe);var Do=0;function Po(t){t.c.read().then(t.ec.bind(t)).catch(t.La.bind(t))}function No(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,jo(t)}function jo(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function Ro(t){Pe.call(this),this.headers=new Ue,this.D=t||null,this.c=!1,this.A=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.m=Mo,this.v=this.O=!1}(t=xo.prototype).open=function(t,e){if(this.readyState!=Do)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,jo(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
1t&&(e.body=t),this.u.fetch(new Request(this.g,e)).then(this.jc.bind(this),this.La.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,No(this,!1)),this.readyState=Do},t.jc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,jo(this)),this.a&&(this.readyState=3,jo(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.hc.bind(this),this.La.bind(this)):void 0!==n.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,Po(this)):t.text().then(this.ic.bind(this),this.La.bind(this)))))},t.ec=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?No(this,!0):jo(this),3==this.readyState&&Po(this)}},t.ic=function(t){this.a&&(this.response=this.responseText=t,No(this,!0))},t.hc=function(t){this.a&&(this.response=t,No(this,!0))},t.La=function(t){var e=this.h;e&&e.log(So,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&No(this,!0)},t.setRequestHeader=function(t,e){this.i.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(So,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(So,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},S(Ro,Pe);var Mo="";Ro.prototype.b=To("goog.net.XhrIo");var Lo=/^https?$/i,Fo=["POST","PUT"];function Vo(t){return"content-type"==t.toLowerCase()}function Uo(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,qo(t),zo(t)}function qo(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Bo(t){if(t.c&&void 0!==e)if(t.A[1]&&4==Go(t)&&2==$o(t))Oo(t.b,Ko(t,"Local request error detected and ignored"));else if(t.i&&4==Go(t))Me(t.Jb,0,t);else if(t.dispatchEvent("readystatechange"),4==Go(t)){Oo(t.b,Ko(t,"Request complete")),t.c=!1;try{var r,i=$o(t);t:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break t;default:o=!1}if(!(r=o)){var a;if(a=0===i){var s=String(t.l).match(ze)[1]||null;if(!s&&n.self&&n.self.location){var u=n.self.location.protocol;s=u.substr(0,u.length-1)}a=!Lo.test(s?s.toLowerCase():"")}r=a}if(r)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var l=2<Go(t)?t.a.statusText:""}catch(c){Oo(t.b,"Can not get status: "+c.message),l=""}t.h=l+" ["+$o(t)+"]",qo(t)}}finally{zo(t)}}}function zo(t,e){if(t.a){Ho(t);var n=t.a,r=t.A[0]?u:null;t.a=null,t.A=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(t=t.b)&&t.log(_o,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function Ho(t){t.a&&t.v&&(t.a.ontimeout=null),t.u&&(n.clearTimeout(t.u),t.u=null)}function Go(t){return t.a?t.a.readyState:0}function $o(t){try{return 2<Go(t)?t.a.status:-1}catch(e){return-1}}function Ko(t,e){return e+" ["+t.N+" "+t.l+" "+$o(t)+"]"}function Wo(t){var e=oa;this.g=[],this.v=e,this.u=t||null,this.f=this.a=!1,this.c=void 0,this.l=this.A=this.i=!1,this.h=0,this.b=null,this.o=0}function Qo(t,e,n){t.a=!0,t.c=n,t.f=!e,Zo(t)}function Jo(t){if(t.a){if(!t.l)throw new ta(t);t.l=!1}}function Xo(t,e,n,r){t.g.push([e,n,r]),t.a&&Zo(t)}function Yo(t){return M(t.g,function(t){return d(t[1])})}function Zo(t){if(t.h&&t.a&&Yo(t)){var e=t.h,r=ra[e];r&&(n.clearTimeout(r.a),delete ra[e]),t.h=0}t.b&&(t.b.o--,delete t.b),e=t.c;for(var i=r=!1;t.g.length&&!t.i;){var o=t.g.shift(),a=o[0],s=o[1];if(o=o[2],a=t.f?s:a)try{var u=a.call(o||t.u,e);void 0!==u&&(t.f=t.f&&(u==e||u instanceof Error),t.c=e=u),(E(e)||"function"==typeof n.Promise&&e instanceof n.Promise)&&(i=!0,t.i=!0)}catch(l){e=l,t.f=!0,Yo(t)||(r=!0)}}t.c=e,i&&(u=b(t.m,t,!0),i=b(t.m,t,!1),e instanceof Wo?(Xo(e,u,i),e.A=!0):e.then(u,i)),r&&(e=new na(e),ra[e.a]=e,t.h=e.a)}function ta(){C.call(this)}function ea(){C.call(this)}function na(t){this.a=n.setTimeout(b(this.c,this),0),this.b=t}(t=Ro.prototype).Ga=function(){void 0!==e&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Oo(this.b,Ko(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(Oo(this.b,Ko(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zo(this))},t.va=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),zo(this,!0)),Ro.pb.va.call(this)},t.Jb=function(){this.qa||(this.I||this.i||this.f?Bo(this):this.yc())},t.yc=function(){Bo(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Mo:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(_o,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return Oo(this.b,"Can not get response: "+e.message),null}},Wo.prototype.cancel=function(t){if(this.a)this.c instanceof Wo&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.o--,0>=e.o&&e.cancel())}this.v?this.v.call(this.u,this):this.l=!0,this.a||(t=new ea(this),Jo(this),Qo(this,!1,t))}},Wo.prototype.m=function(t,e){this.i=!1,Qo(this,t,e)},Wo.prototype.then=function(t,e,n){var r,i,o=new gt(function(t,e){r=t,i=e});return Xo(this,r,function(t){t instanceof ea?o.cancel():i(t)}),o.then(t,e,n)}
1,Wo.prototype.$goog_Thenable=!0,S(ta,C),ta.prototype.message="Deferred has already fired",ta.prototype.name="AlreadyCalledError",S(ea,C),ea.prototype.message="Deferred was canceled",ea.prototype.name="CanceledError",na.prototype.c=function(){throw delete ra[this.a],this.b};var ra={};function ia(t){var e={},r=e.document||document,i=wn(t).toString(),o=document.createElement("SCRIPT"),u={Lb:o,Ga:void 0},l=new Wo(u),c=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(c=window.setTimeout(function(){aa(o,!0);var t=new la(ua,"Timeout reached for loading script "+i);Jo(l),Qo(l,!1,t)},h),u.Ga=c),o.onload=o.onreadystatechange=function(){o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(aa(o,e.hd||!1,c),Jo(l),Qo(l,!0,null))},o.onerror=function(){aa(o,!0,c);var t=new la(sa,"Error while loading script "+i);Jo(l),Qo(l,!1,t)},ut(u=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),Rn(o,u),function(t,e){t.src=wn(e),null===s&&(s=(e=(e=n.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&a.test(e)?e:""),(e=s)&&t.setAttribute("nonce",e)}(o,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(r).appendChild(o),l}function oa(){if(this&&this.Lb){var t=this.Lb;t&&"SCRIPT"==t.tagName&&aa(t,!0,this.Ga)}}function aa(t,e,r){null!=r&&n.clearTimeout(r),t.onload=u,t.onerror=u,t.onreadystatechange=u,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var sa=0,ua=1;function la(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),C.call(this,n),this.code=t}function ca(t){this.f=t}function ha(t,e,r){if(this.b=t,this.i=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.o=t.secureTokenTimeout||pa,this.f=it(t.secureTokenHeaders||ma),this.g=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.h=t.firebaseTimeout||ga,this.a=it(t.firebaseHeaders||va),r&&(this.a["X-Client-Version"]=r,this.f["X-Client-Version"]=r),r="Node"==er(),!(r=n.XMLHttpRequest||r&&i.a.INTERNAL.node&&i.a.INTERNAL.node.XMLHttpRequest)&&!tr())throw new Br("internal-error","The XMLHttpRequest compatibility library was not found.");this.c=void 0,this.c=tr()?new Ao(self):nr()?new ca(r):new mo}S(la,C),S(ca,ho),ca.prototype.a=function(){return new this.f},ca.prototype.b=function(){return{}};var fa,da="idToken",pa=new _r(3e4,6e4),ma={"Content-Type":"application/x-www-form-urlencoded"},ga=new _r(3e4,6e4),va={"Content-Type":"application/json"};function ya(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function ba(t,e){e?(t.a["X-Client-Version"]=e,t.f["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.f["X-Client-Version"])}function wa(t,e,r,i,o,a,s){(function(){var t=ur();return!((t=or(t)!=ir?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Gt&&te&&!(9<te))})()||tr()?t=b(t.m,t):(fa||(fa=new gt(function(t,e){!function(t,e){if(((window.gapi||{}).client||{}).request)t();else{n[Sa]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))};var r=_n(_a,{onload:Sa});!function(t,e){Xo(ia(r),null,e,void 0)}(0,function(){e(Error("CORS_UNSUPPORTED"))})}}(t,e)})),t=b(t.l,t)),t(e,r,i,o,a,s)}
1ha.prototype.m=function(t,e,i,o,a,s){if(tr()&&(void 0===n.fetch||void 0===n.Headers||void 0===n.Request))throw new Br("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var u=new Ro(this.c);if(s){u.g=Math.max(0,s);var l=setTimeout(function(){u.dispatchEvent("timeout")},s)}Ne(u,"complete",function(){l&&clearTimeout(l);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return Oo(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)}),je(u,"ready",function(){l&&clearTimeout(l),Ut(this)}),je(u,"timeout",function(){l&&clearTimeout(l),Ut(this),e&&e(null)}),function(t,e,i,o,a){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);i=i?i.toUpperCase():"GET",t.l=e,t.h="",t.N=i,t.G=!1,t.c=!0,t.a=t.D?t.D.a():ao.a(),t.A=function(t){return t.c||(t.c=t.b())}(t.D?t.D:ao),t.a.onreadystatechange=b(t.Jb,t);try{Oo(t.b,Ko(t,"Opening Xhr")),t.I=!0,t.a.open(i,String(e),!0),t.I=!1}catch(u){return Oo(t.b,Ko(t,"Error opening Xhr: "+u.message)),void Uo(t,u)}e=o||"";var s=new Ue(t.headers);a&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||r(t))j(t,e,void 0);else for(var n=Ve(t),i=Fe(t),o=i.length,a=0;a<o;a++)e.call(void 0,i[a],n&&n[a],t)}(a,function(t,e){s.set(e,t)}),a=function(t){t:{for(var e=Vo,n=t.length,i=r(t)?t.split(""):t,o=0;o<n;o++)if(o in i&&e.call(void 0,i[o],o,t)){e=o;break t}e=-1}return 0>e?null:r(t)?t.charAt(e):t[e]}(s.U()),o=n.FormData&&e instanceof n.FormData,!L(Fo,i)||a||o||s.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),s.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.O&&(t.a.withCredentials=t.O);try{Ho(t),0<t.g&&(t.v=function(t){return Gt&&ne(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),Oo(t.b,Ko(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.v)),t.v?(t.a.timeout=t.g,t.a.ontimeout=b(t.Ga,t)):t.u=Me(t.Ga,t.g,t)),Oo(t.b,Ko(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(u){Oo(t.b,Ko(t,"Send error: "+u.message)),Uo(t,u)}}(u,t,i,o,a)};var _a=new mn(yn,"https://apis.google.com/js/client.js?onload=%{onload}"),Sa="__fcb"+Math.floor(1e6*Math.random()).toString();function Ea(t){if(!r(t=t.email)||!Jn.test(t))throw new Br("invalid-email")}function Ca(t){"email"in t&&Ea(t)}function Ia(t){if(!t[da])throw new Br("internal-error")}function ka(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new Br("internal-error")}else{if(!t.sessionInfo)throw new Br("missing-verification-id");if(!t.code)throw new Br("missing-verification-code")}}ha.prototype.l=function(t,e,n,r,i){var o=this;fa.then(function(){window.gapi.client.setApiKey(o.b);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:r,headers:i,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})}).s(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},ha.prototype.Ra=function(){return us(this,Za,{})},ha.prototype.qb=function(t,e){return us(this,Xa,{idToken:t,email:e})},ha.prototype.rb=function(t,e){return us(this,Ya,{idToken:t,password:e})};var Ta={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function Oa(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new Br("internal-error")}function Aa(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&hn(t=new sn(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function xa(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=co(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=co(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=co(t)):t.errorMessage&&(e=ls(t.errorMessage)),e)throw e;if(!t[da])throw new Br("internal-error")}function Da(t,e){return e.returnIdpCredential=!0,us(t,ts,e)}function Pa(t,e){return e.returnIdpCredential=!0,us(t,ns,e)}function Na(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,us(t,es,e)}function ja(t){if(!t.oobCode)throw new Br("invalid-action-code")}(t=ha.prototype).sb=function(t,e){var n={idToken:t},r=[];return nt(Ta,function(t,i){var o=e[i];null===o?r.push(t):i in e&&(n[i]=o)}),r.length&&(n.deleteAttribute=r),us(this,Xa,n)},t.lb=function(t,e){return ut(t={requestType:"PASSWORD_RESET",email:t},e),us(this,$a,t)},t.mb=function(t,e){return ut(t={requestType:"EMAIL_SIGNIN",email:t},e),us(this,Ha,t)},t.kb=function(t,e){return ut(t={requestType:"VERIFY_EMAIL",idToken:t},e),us(this,Ga,t)},t.Va=function(t){return us(this,os,t)},t.$a=function(t,e){return us(this,Qa,{oobCode:t,newPassword:e})},t.Ja=function(t){return us(this,Ma,{oobCode:t})},t.Xa=function(t){return us(this,Ra,{oobCode:t})};var Ra={endpoint:"setAccountInfo",C:ja,da:"email"},Ma={endpoint:"resetPassword",C:ja,J:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e)throw new Br("internal-error")}},La={endpoint:"signupNewUser",C:function(t){if(Ea(t),!t.password)throw new Br("weak-
1password")},J:Ia,R:!0},Fa={endpoint:"createAuthUri"},Va={endpoint:"deleteAccount",T:["idToken"]},Ua={endpoint:"setAccountInfo",T:["idToken","deleteProvider"],C:function(t){if(!h(t.deleteProvider))throw new Br("internal-error")}},qa={endpoint:"emailLinkSignin",T:["email","oobCode"],C:Ea,J:Ia,R:!0},Ba={endpoint:"emailLinkSignin",T:["idToken","email","oobCode"],C:Ea,J:Ia,R:!0},za={endpoint:"getAccountInfo"},Ha={endpoint:"getOobConfirmationCode",T:["requestType"],C:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new Br("internal-error");Ea(t)},da:"email"},Ga={endpoint:"getOobConfirmationCode",T:["idToken","requestType"],C:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new Br("internal-error")},da:"email"},$a={endpoint:"getOobConfirmationCode",T:["requestType"],C:function(t){if("PASSWORD_RESET"!=t.requestType)throw new Br("internal-error");Ea(t)},da:"email"},Ka={vb:!0,endpoint:"getProjectConfig",Ib:"GET"},Wa={vb:!0,endpoint:"getRecaptchaParam",Ib:"GET",J:function(t){if(!t.recaptchaSiteKey)throw new Br("internal-error")}},Qa={endpoint:"resetPassword",C:ja,da:"email"},Ja={endpoint:"sendVerificationCode",T:["phoneNumber","recaptchaToken"],da:"sessionInfo"},Xa={endpoint:"setAccountInfo",T:["idToken"],C:Ca,R:!0},Ya={endpoint:"setAccountInfo",T:["idToken"],C:function(t){if(Ca(t),!t.password)throw new Br("weak-password")},J:Ia,R:!0},Za={endpoint:"signupNewUser",J:Ia,R:!0},ts={endpoint:"verifyAssertion",C:Oa,Pa:Aa,J:xa,R:!0},es={endpoint:"verifyAssertion",C:Oa,Pa:Aa,J:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new Br("user-not-found");if(t.errorMessage)throw ls(t.errorMessage);if(!t[da])throw new Br("internal-error")},R:!0},ns={endpoint:"verifyAssertion",C:function(t){if(Oa(t),!t.idToken)throw new Br("internal-error")},Pa:Aa,J:xa,R:!0},rs={endpoint:"verifyCustomToken",C:function(t){if(!t.token)throw new Br("invalid-custom-token")},J:Ia,R:!0},is={endpoint:"verifyPassword",C:function(t){if(Ea(t),!t.password)throw new Br("wrong-password")},J:Ia,R:!0},os={endpoint:"verifyPhoneNumber",C:ka,J:Ia},as={endpoint:"verifyPhoneNumber",C:function(t){if(!t.idToken)throw new Br("internal-error");ka(t)},J:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",co(t);Ia(t)}},ss={Xb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",C:ka,J:Ia};function us(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var r=t[e[n]];if(null==r||""===r)return!1}return!0}(n,e.T))return Ct(new Br("internal-error"));var r,i=e.Ib||"POST";return Et(n).then(e.C).then(function(){return e.R&&(n.returnSecureToken=!0),function(t,e,n,r,i,o){var a=Je(t.g+e);We(a,"key",t.b),o&&We(a,"cb",_().toString());var s="GET"==n;if(s)for(var u in r)r.hasOwnProperty(u)&&We(a,u,r[u]);return new gt(function(e,o){wa(t,a.toString(),function(t){t?t.error?o(cs(t,i||{})):e(t):o(new Br("network-request-failed"))},n,s?void 0:Fn(gr(r)),t.a,t.h.get())})}(t,e.endpoint,i,n,e.Xb,e.vb||!1)}).then(function(t){return r=t,e.Pa?e.Pa(n,r):r}).then(e.J).then(function(){if(!e.da)return r;if(!(e.da in r))throw new Br("internal-error");return r[e.da]})}function ls(t){return cs({error:{errors:[{message:t}],code:400,message:t}})}function cs(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new Br(r[n]):null)return n;for(var i in n=t.error&&t.error.message||"",ut(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",ADMIN_ONLY_OPERATION:"admin-restricted-operation"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*(.*)$/))&&1<e.length?e[1]:void 0,r)if(0===n.indexOf(i))return new Br(r[i],e);return!e&&t&&(e=mr(t)),new Br("internal-error",e)}function hs(t){this.b=t,this.a=null,this.gb=function(t){return(ms||(ms=new gt(function(t,e){function r(){wr(),lr("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){wr(),e(Error("Network Error"))},timeout:ds.get()})}if(lr("gapi.iframes.Iframe"))t();else if(lr("gapi.load"))r();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();n[i]=function(){lr("gapi.load")?r():e(Error("Network Error"))},Et(ia(i=_n(fs,{onload:i}))).s(function(){e(Error("Network Error"))})}}).s(function(t){throw ms=null,t}))).then(function(){return new gt(function(e,n){lr("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:lr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(r){function i(){clearTimeout(o),e()}t.a=r,t.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},ps.get());r.ping(i).then(i,function(){n(Error("Network Error"))})})})})}(this)}var fs=new mn(yn,"https://apis.google.com/js/api.js?onload=%{onload}"),ds=new _r(3e4,6e4),ps=new _r(5e3,15e3),ms=null;function gs(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=Xe(this.i,"/__/auth/iframe"),We(this.a,"apiKey",this.g),We(this.a,"appName",this.h),this.b=null,this.c=[]}function vs(t,e,n,r,i){this.m=t,this.l=e,this.c=n,this.o=r,this.h=this.g=this.i=null,this.a=i,this.f=null}function ys(t){try{return i.a.app(t).auth().ya()}catch(e){return[]}}function bs(t,e,n,r,i){this.l=t,this.f=e,this.b=n,this.c=r||null,this.h=i||null,this.m=this.u=this.v=null,this.g=[],this.o=this.a=null}function ws(t){var e=Hn();return function(t){return us(t,Ka,{}).then(function(t){return t.authorizedDomains||[]})}(t).then(function(t){t:{var n=Je(e),r=n.c;n=n.b;for(var i=0;i<t.length;i++){var o=t[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=Je(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:Qn.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new uo(Hn())})}function _s(t){return t.o?t.o:(t.o=Xn().then(function(){if(!t.u){var e=t.c,n=t.h,r=ys(t.b),i=new gs(t.l,t.f,t.b);i.f=e,i.b=n,i.c=q(r||[]),t.u=i.toString()}t.i=new hs(t.u),function(t){if(!t.i)throw Error("IfcHandler must be initialized!");!function(t,e){t.gb.then(function(){t.a.register("authEvent",e,lr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(t.i,function(e){var n={};if(e&&e.authEvent){var r=!1;for(e=io(e.authEvent),n=0;n<t.g.length;n++)r=t.g[n](e)||r;return(n={}).status=r?"ACK":"ERROR",Et(n)}return n.status="ERROR",Et(n)})}(t)}),t.o)}
1function Ss(t){return t.m||(t.v=t.c?sr(t.c,ys(t.b)):null,t.m=new ha(t.f,ci(t.h),t.v)),t.m}function Es(t,e,n,r,i,o,a,s,u,l){return(t=new vs(t,e,n,r,i)).i=o,t.g=a,t.h=s,t.b=it(u||null),t.f=l,t.toString()}function Cs(t){if(this.a=t||i.a.INTERNAL.reactNative&&i.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new Br("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Is(t){this.b=t,this.a={},this.c=b(this.f,this)}gs.prototype.toString=function(){return this.f?We(this.a,"v",this.f):cn(this.a.a,"v"),this.b?We(this.a,"eid",this.b):cn(this.a.a,"eid"),this.c.length?We(this.a,"fw",this.c.join(",")):cn(this.a.a,"fw"),this.a.toString()},vs.prototype.toString=function(){var t=Xe(this.m,"/__/auth/handler");if(We(t,"apiKey",this.l),We(t,"appName",this.c),We(t,"authType",this.o),this.a.isOAuthProvider){var e=this.a;try{var n=i.a.app(this.c).auth().ea()}catch(u){n=null}for(var r in e.ab=n,We(t,"providerId",this.a.providerId),n=gr((e=this.a).zb))n[r]=n[r].toString();r=e.Fc,n=it(n);for(var o=0;o<r.length;o++){var a=r[o];a in n&&delete n[a]}e.eb&&e.ab&&!n[e.eb]&&(n[e.eb]=e.ab),rt(n)||We(t,"customParameters",mr(n))}if("function"==typeof this.a.Fb&&(e=this.a.Fb()).length&&We(t,"scopes",e.join(",")),this.i?We(t,"redirectUrl",this.i):cn(t.a,"redirectUrl"),this.g?We(t,"eventId",this.g):cn(t.a,"eventId"),this.h?We(t,"v",this.h):cn(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Qe(t,s)&&We(t,s,this.b[s]);return this.f?We(t,"eid",this.f):cn(t.a,"eid"),(s=ys(this.c)).length&&We(t,"fw",s.join(",")),t.toString()},(t=bs.prototype).Ea=function(t,e,n){var r=new Br("popup-closed-by-user"),i=new Br("web-storage-unsupported"),o=this,a=!1;return this.ga().then(function(){(function(t){var e={type:"webStorageSupport"};return _s(t).then(function(){return function(t,e){return t.gb.then(function(){return new gt(function(n){t.a.send(e.type,e,n,lr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(t.i,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})})(o).then(function(n){n||(t&&Kn(t),e(i),a=!0)})}).s(function(){}).then(function(){if(!a)return function(t){return new gt(function(e){return function n(){Le(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}(t)}).then(function(){if(!a)return Le(n).then(function(){e(r)})})},t.Mb=function(){var t=ur();return!pr(t)&&!br(t)},t.Hb=function(){return!1},t.Db=function(t,e,n,r,i,o,a){if(!t)return Ct(new Br("popup-blocked"));if(a&&!pr())return this.ga().s(function(e){Kn(t),i(e)}),r(),Et();this.a||(this.a=ws(Ss(this)));var s=this;return this.a.then(function(){var e=s.ga().s(function(e){throw Kn(t),i(e),e});return r(),e}).then(function(){no(n),a||Gn(Es(s.l,s.f,s.b,e,n,null,o,s.c,void 0,s.h),t)}).s(function(t){throw"auth/network-request-failed"==t.code&&(s.a=null),t})},t.Ca=function(t,e,n){this.a||(this.a=ws(Ss(this)));var r=this;return this.a.then(function(){no(e),Gn(Es(r.l,r.f,r.b,t,e,Hn(),n,r.c,void 0,r.h))}).s(function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t})},t.ga=function(){var t=this;return _s(this).then(function(){return t.i.gb}).s(function(){throw t.a=null,new Br("network-request-failed")})},t.Qb=function(){return!0},t.wa=function(t){this.g.push(t)},t.Ka=function(t){V(this.g,function(e){return e==t})},(t=Cs.prototype).get=function(t){return Et(this.a.getItem(t)).then(function(t){return t&&vr(t)})},t.set=function(t,e){return Et(this.a.setItem(t,mr(e)))},t.P=function(t){return Et(this.a.removeItem(t))},t.Y=function(){},t.ca=function(){};var ks,Ts=[];function Os(t){this.a=t}function As(t){this.c=t,this.b=!1,this.a=[]}function xs(t,e,n,r){var i,o,a,s,u=n||{},l=null;if(t.b)return Ct(Error("connection_unavailable"));var c=r?800:50,h="undefined"!=typeof MessageChannel?new MessageChannel:null;return new gt(function(n,r){h?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),a=setTimeout(function(){r(Error("unsupported_event"))},c),t.a.push(l={messageChannel:h,onMessage:o=function(t){t.data.eventId===i&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout(function(){r(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?n(t.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))}}),h.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:i,data:u},[h.port2])):r(Error("connection_unavailable"))}).then(function(e){return Ds(t,l),e}).s(function(e){throw Ds(t,l),e})}function Ds(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),V(t.a,function(t){return t==e})}}function Ps(){if(!js())throw new Br("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.l=n.indexedDB,this.type="indexedDB",this.g=this.o=this.f=this.i=null,this.u=!1,this.h=null;var t=this;tr()&&self?(this.o=function(){var t=tr()?self:null;if(j(Ts,function(n){n.b==t&&(e=n)}),!e){var e=new Is(t);Ts.push(e)}return e}(),this.o.subscribe("keyChanged",function(e,n){return Vs(t).then(function(e){return 0<e.length&&j(t.a,function(t){t(e)}),{keyProcessed:L(e,n.key)}})}),this.o.subscribe("ping",function(){return Et(["keyChanged"])})):function(){var t=n.navigator;return t&&t.serviceWorker?Et().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).s(function(){return null}):Et(null)}().then(function(e){(t.h=e)&&(t.g=new As(new Os(e)),xs(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&L(e[0].value,"keyChanged")&&(t.u=!0)}).s(function(){}))})}function Ns(t){return t.m||(t.m=function t(e){return new gt(function(n,r){var i=e.l.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(e){}r(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){r(e)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(i):function(t){return new gt(function(e,n){var r=t.l.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){e()},r.onerror=function(t){n(Error(t.target.error))}})}(e).then(function(){return t(e)}).then(function(t){n(t)}).s(function(t){r(t)})}})}(t)),t.m}function js(){try{return!!n.indexedDB}catch(zt){return!1}}function Rs(t){return t.objectStore("firebaseLocalStorage")}function Ms(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Ls(t){return new gt(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function Fs(t,e){return t.g&&t.h&&function(){var t=n.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?xs(t.g,"keyChanged",{key:e},t.u).then(function(){}).s(function(){}):Et()}function Vs(t){return Ns(t).then(function(t){var e=Rs(Ms(t,!1));return e.getAll?Ls(e.getAll()):new gt(function(t,n){var r=[],i=e.openCursor();i.onsuccess=function(e){(e=e.target.result)?(r.push(e.value),e.continue()):t(r)},i.onerror=function(t){n(t.target.error)}})}).then(function(e){var n={},r=[];if(0==t.b){for(r=0;r<e.length;r++)n[e[r].fbase_key]=e[r].value;r=function t(e,n){var r,i=[];for(r in e)r in n?typeof e[r]!=typeof n[r]?i.push(r):"object"==typeof e[r]&&null!=e[r]&&null!=n[r]?0<t(e[r],n[r]).length&&i.push(r):e[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in e||i.push(r);return i}(t.c,n),t.c=n}return r})}function Us(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function qs(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Et().then(function(){if(js()){var t=yr(),r="__sak"+t;return ks||(ks=new Ps),(n=ks).set(r,t).then(function(){return n.get(r)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return n.P(r)}).then(function(){return n}).s(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.Y(function(t){j(e.a,function(e){e(t)})}),t})}function Bs(){this.a={},this.type="inMemory"}function zs(){if(!function(){var t="Node"==er();if(!(t=Hs()||t&&i.a.INTERNAL.node&&i.a.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==er())throw new Br("internal-error","The LocalStorage compatibility library was not found.");throw new Br("web-storage-unsupported")}this.a=Hs()||i.a.INTERNAL.node.localStorage,this.type="localStorage"}function Hs(){try{var t=n.localStorage,e=yr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(r){return null}}function Gs(){this.type="nullStorage"}function $s(){if(!function(){var t="Node"==er();if(!(t=Ks()||t&&i.a.INTERNAL.node&&i.a.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==er())throw new Br("internal-error","The SessionStorage compatibility library was not found.");throw new Br("web-storage-unsupported")}this.a=Ks()||i.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Ks(){try{var t=n.sessionStorage,e=yr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(r){return null}}function Ws(){var t={};t.Browser=Xs,t.Node=Ys,t.ReactNative=Zs,t.Worker=tu,this.a=t[er()]}Is.prototype.f=function(t){var e=t.data.eventType,n=t.data.eventId,r=this.a[e];if(r&&0<r.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var i=[];j(r,function(e){i.push(Et().then(function(){return e(t.origin,t.data.data)}))}),kt(i).then(function(r){var i=[];j(r,function(t){i.push({fulfilled:t.Eb,value:t.value,reason:t.reason?t.reason.message:void 0})}),j(i,function(t){for(var e in t)void 0===t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:i})})}},Is.prototype.subscribe=function(t,e){rt(this.a)&&this.b.addEventListener("message",this.c),void 0===this.a[t]&&(this.a[t]=[]),this.a[t].push(e)},Is.prototype.unsubscribe=function(t,e){void 0!==this.a[t]&&e?(V(this.a[t],function(t){return t==e}),0==this.a[t].length&&delete this.a[t]):e||delete this.a[t],rt(this.a)&&this.b.removeEventListener("message",this.c)},Os.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},As.prototype.close=function(){for(;0<this.a.length;)Ds(this,this.a[0]);this.b=!0},(t=Ps.prototype).set=function(t,e){var n,r=!1,i=this;
1return Ns(this).then(function(e){return Ls((e=Rs(Ms(n=e,!0))).get(t))}).then(function(o){var a=Rs(Ms(n,!0));return o?(o.value=e,Ls(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=t,o.value=e,Ls(a.add(o)))}).then(function(){return i.c[t]=e,Fs(i,t)}).ia(function(){r&&i.b--})},t.get=function(t){return Ns(this).then(function(e){return Ls(Rs(Ms(e,!1)).get(t))}).then(function(t){return t&&t.value})},t.P=function(t){var e=!1,n=this;return Ns(this).then(function(r){return e=!0,n.b++,Ls(Rs(Ms(r,!0)).delete(t))}).then(function(){return delete n.c[t],Fs(n,t)}).ia(function(){e&&n.b--})},t.Y=function(t){0==this.a.length&&function(t){Us(t),function e(){t.f=setTimeout(function(){t.i=Vs(t).then(function(e){0<e.length&&j(t.a,function(t){t(e)})}).then(function(){e()}).s(function(t){"STOP_EVENT"!=t.message&&e()})},800)}()}(this),this.a.push(t)},t.ca=function(t){V(this.a,function(e){return e==t}),0==this.a.length&&Us(this)},(t=qs.prototype).get=function(t){return this.b.then(function(e){return e.get(t)})},t.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},t.P=function(t){return this.b.then(function(e){return e.P(t)})},t.Y=function(t){this.a.push(t)},t.ca=function(t){V(this.a,function(e){return e==t})},(t=Bs.prototype).get=function(t){return Et(this.a[t])},t.set=function(t,e){return this.a[t]=e,Et()},t.P=function(t){return delete this.a[t],Et()},t.Y=function(){},t.ca=function(){},(t=zs.prototype).get=function(t){var e=this;return Et().then(function(){return vr(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Et().then(function(){var r=mr(e);null===r?n.P(t):n.a.setItem(t,r)})},t.P=function(t){var e=this;return Et().then(function(){e.a.removeItem(t)})},t.Y=function(t){n.window&&we(n.window,"storage",t)},t.ca=function(t){n.window&&Ee(n.window,"storage",t)},(t=Gs.prototype).get=function(){return Et(null)},t.set=function(){return Et()},t.P=function(){return Et()},t.Y=function(){},t.ca=function(){},(t=$s.prototype).get=function(t){var e=this;return Et().then(function(){return vr(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Et().then(function(){var r=mr(e);null===r?n.P(t):n.a.setItem(t,r)})},t.P=function(t){var e=this;return Et().then(function(){e.a.removeItem(t)})},t.Y=function(){},t.ca=function(){};var Qs,Js,Xs={B:zs,Sa:$s},Ys={B:zs,Sa:$s},Zs={B:Cs,Sa:Gs},tu={B:zs,Sa:Gs},eu={ad:"local",NONE:"none",cd:"session"};function nu(){var t=!(br(ur())||!Zn()),e=pr(),r=cr();this.m=t,this.h=e,this.o=r,this.a={},Qs||(Qs=new Ws),t=Qs;try{this.g=!zn()&&Cr()||!n.indexedDB?new t.a.B:new qs(tr()?new Bs:new t.a.B)}catch(i){this.g=new Bs,this.h=!0}try{this.i=new t.a.Sa}catch(i){this.i=new Bs}this.l=new Bs,this.f=b(this.Pb,this),this.b={}}function ru(){return Js||(Js=new nu),Js}function iu(t,e){switch(e){case"session":return t.i;case"none":return t.l;default:return t.g}}function ou(t,e){return"firebase:"+t.name+(e?":"+e:"")}function au(t,e,n){return n=ou(e,n),"local"==e.B&&(t.b[n]=null),iu(t,e.B).P(n)}function su(t){t.c&&(clearInterval(t.c),t.c=null)}function uu(t){this.a=t,this.b=ru()}(t=nu.prototype).get=function(t,e){return iu(this,t.B).get(ou(t,e))},t.set=function(t,e,n){var r=ou(t,n),i=this,o=iu(this,t.B);return o.set(r,e).then(function(){return o.get(r)}).then(function(e){"local"==t.B&&(i.b[r]=e)})},t.addListener=function(t,e,r){t=ou(t,e),this.o&&(this.b[t]=n.localStorage.getItem(t)),rt(this.a)&&(iu(this,"local").Y(this.f),this.h||(zn()||!Cr())&&n.indexedDB||!this.o||function(t){su(t),t.c=setInterval(function(){for(var e in t.a){var r=n.localStorage.getItem(e),i=t.b[e];r!=i&&(t.b[e]=r,r=new le({type:"storage",key:e,target:window,oldValue:i,newValue:r,a:!0}),t.Pb(r))}},1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(r)},t.removeListener=function(t,e,n){t=ou(t,e),this.a[t]&&(V(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),rt(this.a)&&(iu(this,"local").ca(this.f),su(this))},t.Pb=function(t){if(t&&t.f){var e=t.a.key;if(null==e)for(var r in this.a){var i=this.b[r];void 0===i&&(i=null);var o=n.localStorage.getItem(r);o!==i&&(this.b[r]=o,this.Ya(r))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?iu(this,"local").ca(this.f):su(this),this.m)if(r=n.localStorage.getItem(e),(i=t.a.newValue)!==r)null!==i?n.localStorage.setItem(e,i):n.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var a=this;r=function(){void 0===t.a.a&&a.b[e]===n.localStorage.getItem(e)||(a.b[e]=n.localStorage.getItem(e),a.Ya(e))},Gt&&te&&10==te&&n.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(r,10):r()}}else j(t,b(this.Ya,this))},t.Ya=function(t){this.a[t]&&j(this.a[t],function(t){t()})};var lu,cu={name:"authEvent",B:"local"};function hu(){this.a=ru()}function fu(t,e){this.b=du,this.f=n.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.o=n.Int32Array?new Int32Array(64):Array(64),void 0!==lu||(lu=n.Int32Array?new Int32Array(wu):wu),this.reset()}S(fu,function(){this.b=-1});for(var du=64,pu=du-1,mu=[],gu=0;gu<pu;gu++)mu[gu]=0;var vu=U(128,mu);function yu(t){for(var e=t.f,n=t.o,r=0,i=0;i<e.length;)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3],i=4*r;for(e=16;64>e;e++){var o=(0|n[e-16])+(((i=0|n[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+(((r=0|n[e-2])>>>17|r<<15)^(r>>
1>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],l=0|t.a[4],c=0|t.a[5],h=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0)+((a=(a=l&c^~l&h)+(0|lu[e])|0)+(0|n[e])|0)|0,o=h,h=c,c=l,l=u+a|0,u=s,s=i,i=r,r=a+f|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+l|0,t.a[5]=t.a[5]+c|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function bu(t,e,n){void 0===n&&(n=e.length);var i=0,o=t.c;if(r(e))for(;i<n;)t.f[o++]=e.charCodeAt(i++),o==t.b&&(yu(t),o=0);else{if(!f(e))throw Error("message must be string or array");for(;i<n;){var a=e[i++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");t.f[o++]=a,o==t.b&&(yu(t),o=0)}}t.c=o,t.g+=n}fu.prototype.reset=function(){this.g=this.c=0,this.a=n.Int32Array?new Int32Array(this.h):q(this.h)};var wu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function _u(){fu.call(this,8,Su)}S(_u,fu);var Su=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Eu(t,e,n,r,i){this.l=t,this.i=e,this.o=n,this.m=r||null,this.u=i||null,this.h=e+":"+n,this.v=new hu,this.g=new uu(this.h),this.f=null,this.b=[],this.a=this.c=null}function Cu(t){return new Br("invalid-cordova-configuration",t)}function Iu(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(r){}}function ku(t){return t.f||(t.f=t.ga().then(function(){return new gt(function(e){t.wa(function n(r){return e(r),t.Ka(n),!1}),function(t){function e(e){i=!0,o&&o.cancel(),Tu(t).then(function(n){var i=r;if(n&&e&&e.url){var o=null;-1!=(i=Ii(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=vr(Qe(o=Je(i),"firebaseError")||null))?zr(o):null)?new ro(n.c,n.b,null,null,o):new ro(n.c,n.b,i,n.f)),i=o||r}Iu(t,i)})}var r=new ro("unknown",null,null,null,new Br("no-auth-event")),i=!1,o=Le(500).then(function(){return Tu(t).then(function(){i||Iu(t,r)})}),a=n.handleOpenURL;n.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(lr("BuildInfo.packageName",n).toLowerCase()+"://")&&e({url:t}),"function"==typeof a)try{a(t)}catch(r){console.error(r)}},so||(so=new oo),so.subscribe(e)}(t)})})),t.f}function Tu(t){var e=null;return function(t){return t.b.get(cu,t.a).then(function(t){return io(t)})}(t.g).then(function(n){return e=n,au((n=t.g).b,cu,n.a)}).then(function(){return e})}function Ou(t){this.a=t,this.b=ru()}(t=Eu.prototype).ga=function(){return this.za?this.za:this.za=(Yn(void 0)?Xn().then(function(){return new gt(function(t,e){var r=n.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);r.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):Ct(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof lr("universalLinks.subscribe",n))throw Cu("cordova-universal-links-plugin-fix is not installed");if(void 0===lr("BuildInfo.packageName",n))throw Cu("cordova-plugin-buildinfo is not installed");if("function"!=typeof lr("cordova.plugins.browsertab.openUrl",n))throw Cu("cordova-plugin-browsertab is not installed");if("function"!=typeof lr("cordova.InAppBrowser.open",n))throw Cu("cordova-plugin-inappbrowser is not installed")},function(){throw new Br("cordova-not-ready")})},t.Ea=function(t,e){return e(new Br("operation-not-supported-in-this-environment")),Et()},t.Db=function(){return Ct(new Br("operation-not-supported-in-this-environment"))},t.Qb=function(){return!1},t.Mb=function(){return!0},t.Hb=function(){return!0},t.Ca=function(t,e,r){if(this.c)return Ct(new Br("redirect-operation-pending"));var i=this,o=n.document,a=null,s=null,u=null,l=null;return this.c=Et().then(function(){return no(e),ku(i)}).then(function(){return function(t,e,r,i){var o=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),a=new ro(e,i,null,o,new Br("no-auth-event")),s=lr("BuildInfo.packageName",n);if("string"!=typeof s)throw new Br("invalid-cordova-configuration");var u=lr("BuildInfo.displayName",n),l={};if(ur().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=s;else{if(!ur().toLowerCase().match(/android/))return Ct(new Br("operation-not-supported-in-this-environment"));l.apn=s}u&&(l.appDisplayName=u),o=function(t){var e=new _u;bu(e,t),t=[];var n=8*e.g;bu(e,vu,56>e.c?56-e.c:e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(yu(e),r=n=0;r<e.i;r++)for(var i=24;0<=i;i-=8)t[n++]=e.a[r]>>i&255;return function(t){return R(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(o),l.sessionId=o;var c=Es(t.l,t.i,t.o,e,r,null,i,t.m,l,t.u);return t.ga().then(function(){var e=t.h;return t.v.a.set(cu,a.w(),e)}
1).then(function(){var e=lr("cordova.plugins.browsertab.isAvailable",n);if("function"!=typeof e)throw new Br("invalid-cordova-configuration");var r=null;e(function(e){if(e){if("function"!=typeof(r=lr("cordova.plugins.browsertab.openUrl",n)))throw new Br("invalid-cordova-configuration");r(c)}else{if("function"!=typeof(r=lr("cordova.InAppBrowser.open",n)))throw new Br("invalid-cordova-configuration");e=ur(),t.a=r(c,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(i,t,e,r)}).then(function(){return new gt(function(t,e){s=function(){var e=lr("cordova.plugins.browsertab.close",n);return t(),"function"==typeof e&&e(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.wa(s),l=function(){Sr()&&u()},o.addEventListener("resume",u=function(){a||(a=Le(2e3).then(function(){e(new Br("redirect-cancelled-by-user"))}))},!1),ur().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)}).s(function(t){return Tu(i).then(function(){throw t})})}).ia(function(){u&&o.removeEventListener("resume",u,!1),l&&o.removeEventListener("visibilitychange",l,!1),a&&a.cancel(),s&&i.Ka(s),i.c=null})},t.wa=function(t){this.b.push(t),ku(this).s(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new ro("unknown",null,null,null,new Br("no-auth-event")),t(e))})},t.Ka=function(t){V(this.b,function(e){return e==t})};var Au={name:"pendingRedirect",B:"session"};function xu(t){return au(t.b,Au,t.a)}function Du(t,e,n){this.i={},this.u=0,this.A=t,this.l=e,this.m=n,this.h=[],this.f=!1,this.o=b(this.cb,this),this.b=new qu,this.v=new Gu,this.g=new Ou(this.l+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.v,this.c.linkViaPopup=this.v,this.c.reauthViaPopup=this.v,this.a=Pu(this.A,this.l,this.m,ui)}function Pu(t,e,n,r){var o=i.a.SDK_VERSION||null;return Yn()?new Eu(t,e,n,o,r):new bs(t,e,n,o,r)}function Nu(t){t.f||(t.f=!0,t.a.wa(t.o));var e=t.a;return t.a.ga().s(function(n){throw t.a==e&&t.reset(),n})}function ju(t){t.a.Mb()&&Nu(t).s(function(e){var n=new ro("unknown",null,null,null,new Br("operation-not-supported-in-this-environment"));Fu(e)&&t.cb(n)}),t.a.Hb()||Bu(t.b)}(t=Du.prototype).reset=function(){this.f=!1,this.a.Ka(this.o),this.a=Pu(this.A,this.l,this.m),this.i={}},t.Za=function(){this.b.Za()},t.subscribe=function(t){if(L(this.h,t)||this.h.push(t),!this.f){var e=this;(function(t){return t.b.get(Au,t.a).then(function(t){return"pending"==t})})(this.g).then(function(t){t?xu(e.g).then(function(){Nu(e).s(function(t){var n=new ro("unknown",null,null,null,new Br("operation-not-supported-in-this-environment"));Fu(t)&&e.cb(n)})}):ju(e)}).s(function(){ju(e)})}},t.unsubscribe=function(t){V(this.h,function(e){return e==t})},t.cb=function(t){if(!t)throw new Br("invalid-auth-event");if(6e5<=_()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.wb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,r),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=_())),e=!0;break}}return Bu(this.b),e};var Ru=new _r(2e3,1e4),Mu=new _r(3e4,6e4);function Lu(t,e,n,r,i,o){return t.a.Db(e,n,r,function(){t.f||(t.f=!0,t.a.wa(t.o))},function(){t.reset()},i,o)}function Fu(t){return!(!t||"auth/cordova-not-ready"!=t.code)}Du.prototype.fa=function(){return this.b.fa()},Du.prototype.Ca=function(t,e,n){var r,i=this;return function(t){return t.b.set(Au,"pending",t.a)}(this.g).then(function(){return i.a.Ca(t,e,n).s(function(t){if(Fu(t))throw new Br("operation-not-supported-in-this-environment");return r=t,xu(i.g).then(function(){throw r})}).then(function(){return i.a.Qb()?new gt(function(){}):xu(i.g).then(function(){return i.fa()}).then(function(){}).s(function(){})})})},Du.prototype.Ea=function(t,e,n,r){return this.a.Ea(n,function(n){t.ha(e,null,n,r)},Ru.get())};var Vu={};function Uu(t,e,n){var r=e+":"+n;return Vu[r]||(Vu[r]=new Du(t,e,n)),Vu[r]}function qu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Bu(t){t.g||(t.g=!0,Hu(t,!1,null,null))}function zu(t,e){if(t.b=function(){return Et(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Hu(t,e,n,r){e?r?function(t,e){if(t.b=function(){return Ct(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,r):zu(t,n):zu(t,{user:null}),t.f=[],t.c=[]}function Gu(){}function $u(){this.tb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.tb},set:function(t){this.tb=t},enumerable:!1})}function Ku(t,e){this.a=e,Ar(this,"verificationId",t)}function Wu(t,e,n,r){return new Zi(t).Va(e,n).then(function(t){return new Ku(t,r)})}function Qu(t){var e=si(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new Br("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");xr(this,{token:t,expirationTime:Er(1e3*e.exp),authTime:Er(1e3*e.auth_time),issuedAtTime:Er(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,claims:e})}function Ju(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Xu(t){this.f=t,this.b=this.a=null,this.c=0}function Yu(t,e){var n=e[da],r=e.refreshToken;
1e=Zu(e.expiresIn),t.b=n,t.c=e,t.a=r}function Zu(t){return _()+1e3*parseInt(t,10)}function tl(t,e){this.a=t||null,this.b=e||null,xr(this,{lastSignInTime:Er(e||null),creationTime:Er(t||null)})}function el(t,e,n,r,i,o){xr(this,{uid:t,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:e})}function nl(t,e){for(var n in ue.call(this,t),e)this[n]=e[n]}function rl(t,e,n){this.G=[],this.l=t.apiKey,this.m=t.appName,this.u=t.authDomain||null,t=i.a.SDK_VERSION?sr(i.a.SDK_VERSION):null,this.b=new ha(this.l,ci(ui),t),this.h=new Xu(this.b),cl(this,e[da]),Yu(this.h,e),Ar(this,"refreshToken",this.h.a),dl(this,n||{}),Pe.call(this),this.I=!1,this.u&&hr()&&(this.a=Uu(this.u,this.l,this.m)),this.N=[],this.i=null,this.A=function(t){return new Ju(function(){return t.F(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.h.c-_()-3e5;return 0<e?e:0})}(this),this.V=b(this.Ha,this);var r=this;this.ka=null,this.ta=function(t){r.pa(t.g)},this.X=null,this.O=[],this.sa=function(t){ol(r,t.c)},this.W=null}function il(t,e){t.X&&Ee(t.X,"languageCodeChanged",t.ta),(t.X=e)&&we(e,"languageCodeChanged",t.ta)}function ol(t,e){t.O=e,ba(t.b,i.a.SDK_VERSION?sr(i.a.SDK_VERSION,t.O):null)}function al(t,e){t.W&&Ee(t.W,"frameworkChanged",t.sa),(t.W=e)&&we(e,"frameworkChanged",t.sa)}function sl(t){try{return i.a.app(t.m).auth()}catch(e){throw new Br("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function ul(t){t.D||t.A.b||(t.A.start(),Ee(t,"tokenChanged",t.V),we(t,"tokenChanged",t.V))}function ll(t){Ee(t,"tokenChanged",t.V),t.A.stop()}function cl(t,e){t.ra=e,Ar(t,"_lat",e)}function hl(t){for(var e=[],n=0;n<t.N.length;n++)e.push(t.N[n](t));return kt(e).then(function(){return t})}function fl(t){t.a&&!t.I&&(t.I=!0,t.a.subscribe(t))}function dl(t,e){xr(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,metadata:new tl(e.createdAt,e.lastLoginAt),providerData:[]})}function pl(){}function ml(t){return Et().then(function(){if(t.D)throw new Br("app-deleted")})}function gl(t){return R(t.providerData,function(t){return t.providerId})}function vl(t,e){e&&(yl(t,e.providerId),t.providerData.push(e))}function yl(t,e){V(t.providerData,function(t){return t.providerId==e})}function bl(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Ar(t,e,n)}function wl(t,e){t!=e&&(xr(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,providerData:[]}),Ar(t,"metadata",e.metadata?function(t){return new tl(t.a,t.b)}(e.metadata):new tl),j(e.providerData,function(e){vl(t,e)}),function(t,e){t.b=e.b,t.a=e.a,t.c=e.c}(t.h,e.h),Ar(t,"refreshToken",t.h.a))}function _l(t){return t.F().then(function(e){var n=t.isAnonymous;return function(t,e){return us(t.b,za,{idToken:e}).then(b(t.zc,t))}(t,e).then(function(){return n||bl(t,"isAnonymous",!1),e})})}function Sl(t,e){e[da]&&t.ra!=e[da]&&(Yu(t.h,e),t.dispatchEvent(new nl("tokenChanged")),cl(t,e[da]),bl(t,"refreshToken",t.h.a))}function El(t,e){return _l(t).then(function(){if(L(gl(t),e))return hl(t).then(function(){throw new Br("provider-already-linked")})})}function Cl(t,e,n){return Dr({user:t,credential:eo(e),additionalUserInfo:e=mi(e),operationType:n})}function Il(t,e){return Sl(t,e),t.reload().then(function(){return t})}function kl(t,e,n,r,o){if(!hr())return Ct(new Br("operation-not-supported-in-this-environment"));if(t.i&&!o)return Ct(t.i);var a=pi(n.providerId),s=yr(t.uid+":::"),u=null;(!pr()||Zn())&&t.u&&n.isOAuthProvider&&(u=Es(t.u,t.l,t.m,e,n,null,s,i.a.SDK_VERSION||null));var l=Wn(u,a&&a.Ba,a&&a.Aa);return r=r().then(function(){if(Ol(t),!o)return t.F().then(function(){})}).then(function(){return Lu(t.a,l,e,n,s,!!u)}).then(function(){return new gt(function(n,r){t.ha(e,null,new Br("cancelled-popup-request"),t.g||null),t.f=n,t.v=r,t.g=s,t.c=t.a.Ea(t,e,l,s)})}).then(function(t){return l&&Kn(l),t?Dr(t):null}).s(function(t){throw l&&Kn(l),t}),Al(t,r,o)}function Tl(t,e,n,r,i){if(!hr())return Ct(new Br("operation-not-supported-in-this-environment"));if(t.i&&!i)return Ct(t.i);
1var o=null,a=yr(t.uid+":::");return r=r().then(function(){if(Ol(t),!i)return t.F().then(function(){})}).then(function(){return t.aa=a,hl(t)}).then(function(e){return t.ba&&(e=(e=t.ba).b.set(Pl,t.w(),e.a)),e}).then(function(){return t.a.Ca(e,n,a)}).s(function(e){if(o=e,t.ba)return Nl(t.ba);throw o}).then(function(){if(o)throw o}),Al(t,r,i)}function Ol(t){if(!t.a||!t.I){if(t.a&&!t.I)throw new Br("internal-error");throw new Br("auth-domain-config-required")}}function Al(t,e,n){var r=function(t,e,n){return t.i&&!n?(e.cancel(),Ct(t.i)):e.s(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.i||t.dispatchEvent(new nl("userInvalidated")),t.i=e),e})}(t,e,n);return t.G.push(r),r.ia(function(){F(t.G,r)}),r}function xl(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName},n={};if(!(t.stsTokenManager&&t.stsTokenManager.accessToken&&t.stsTokenManager.expirationTime))return null;n[da]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null,n.expiresIn=(t.stsTokenManager.expirationTime-_())/1e3;var r=new rl(e,n,t);return t.providerData&&j(t.providerData,function(t){t&&vl(r,Dr(t))}),t.redirectEventId&&(r.aa=t.redirectEventId),r}function Dl(t){this.a=t,this.b=ru()}qu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},qu.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,r=t.b,i=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?t.a?(Hu(this,!0,null,t.a),Et()):e.xa(n,r)?function(t,e,n){n=n.xa(e.c,e.b);var r=e.g,i=e.f,o=e.h,a=!!e.c.match(/Redirect$/);n(r,i,o).then(function(e){Hu(t,a,e,null)}).s(function(e){Hu(t,a,null,e)})}(this,t,e):Ct(new Br("invalid-auth-event")):(Hu(this,!1,null,null),Et())}else Ct(new Br("invalid-auth-event"))},qu.prototype.Za=function(){this.g&&!this.i&&Hu(this,!1,null,null)},qu.prototype.fa=function(){var t=this;return new gt(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new Br("timeout");t.a&&t.a.cancel(),t.a=Le(Mu.get()).then(function(){t.b||(t.g=!0,Hu(t,!0,null,e))})}(t))})},Gu.prototype.h=function(t,e){if(t){var n=t.c,r=t.b;t.a?(e.ha(t.c,null,t.a,t.b),Et()):e.xa(n,r)?function(t,e){var n=t.b,r=t.c;e.xa(r,n)(t.g,t.f,t.h).then(function(t){e.ha(r,t,null,n)}).s(function(t){e.ha(r,null,t,n)})}(t,e):Ct(new Br("invalid-auth-event"))}else Ct(new Br("invalid-auth-event"))},Ku.prototype.confirm=function(t){return t=to(this.verificationId,t),this.a(t)},Ju.prototype.start=function(){this.a=this.c,function t(e,r){e.stop(),e.b=Le(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(e,r)).then(function(){return t=n.document,e=null,Sr()||!t?Et():new gt(function(n){e=function(){Sr()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).s(function(n){throw t.removeEventListener("visibilitychange",e,!1),n});var t,e}).then(function(){return e.h()}).then(function(){t(e,!0)}).s(function(n){e.i(n)&&t(e,!1)})}(this,!0)},Ju.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Xu.prototype.w=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},Xu.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Ct(new Br("user-token-expired")):t||!this.b||_()>this.c-3e4?this.a?function(t,e){return function(t,e){return new gt(function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?wa(t,t.i+"?key="+encodeURIComponent(t.b),function(t){t?t.error?r(cs(t)):t.access_token&&t.refresh_token?n(t):r(new Br("internal-error")):r(new Br("network-request-failed"))},"POST",ln(e).toString(),t.f,t.o.get()):r(new Br("internal-error"))})}(t.f,e).then(function(e){return t.b=e.access_token,t.c=Zu(e.expires_in),t.a=e.refresh_token,{accessToken:t.b,expirationTime:t.c,refreshToken:t.a}}).s(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Et(null):Et({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},tl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(nl,ue),S(rl,Pe),rl.prototype.pa=function(t){this.ka=t,ya(this.b,t)},rl.prototype.ea=function(){return this.ka},rl.prototype.ya=function(){return q(this.O)},rl.prototype.Ha=function(){this.A.b&&(this.A.stop(),this.A.start())},Ar(rl.prototype,"providerId","firebase"),(t=rl.prototype).reload=function(){var t=this;return Al(this,ml(this).then(function(){return _l(t).then(function(){return hl(t)}).then(pl)}))},t.dc=function(t){return this.F(t).then(function(t){return new Qu(t)})},t.F=function(t){var e=this;return Al(this,ml(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new Br("internal-error");return t.accessToken!=e.ra&&(cl(e,t.accessToken),e.dispatchEvent(new nl("tokenChanged"))),bl(e,"refreshToken",t.refreshToken),t.accessToken}))},t.zc=function(t){if(!(t=t.users)||!t.length)throw new Br("internal-error");dl(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?R(t,function(t){return new el(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;n<e.length;n++)vl(this,e[n]);bl(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length))},t.hb=function(t){var e=this,n=null;return Al(this,t.f(this.b,this.uid).then(function(t){return Sl(e,t),n=Cl(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},t.Ac=function(t){return Tr("firebase.User.prototype.reauthenticateWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential instead."),this.hb(t).then(function(){})},t.fb=function(t){var e=this,n=null;return Al(this,El(this,t.providerId).then(function(){return e.F()}).then(function(n){return t.b(e.b,n)}).then(function(t){return n=Cl(e,t,"link"),Il(e,t)}).then(function(){return n}))},t.rc=function(t){return Tr("firebase.User.prototype.linkWithCredential is deprecated. Please use firebase.User.prototype.linkAndRetrieveDataWithCredential instead."),this.fb(t).then(function(t){return t.user})},t.sc=function(t,e){var n=this;return Al(this,El(this,"phone").then(function(){return Wu(sl(n),t,e,b(n.fb,n))}))},t.Bc=function(t,e){var n=this;return Al(this,Et().then(function(){return Wu(sl(n),t,e,b(n.hb,n))}),!0)},t.qb=function(t){var e=this;return Al(this,this.F().then(function(n){return e.b.qb(n,t)}).then(function(t){return Sl(e,t),e.reload()}))},t.Tc=function(t){var e=this;return Al(this,this.F().then(function(n){return t.b(e.b,n)}).then(function(t){return Sl(e,t),e.reload()}))},t.rb=function(t){var e=this;return Al(this,this.F().then(function(n){return e.b.rb(n,t)}).then(function(t){return Sl(e,t),e.reload()}))},t.sb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return ml(this);var e=this;return Al(this,this.F().then(function(n){return e.b.sb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return Sl(e,t),bl(e,"displayName",t.displayName||null),bl(e,"photoURL",t.photoUrl||null),j(e.providerData,function(t){"password"===t.providerId&&(Ar(t,"displayName",e.displayName),Ar(t,"photoURL",e.photoURL))}),hl(e)}).then(pl))},t.Rc=function(t){var e=this;return Al(this,_l(this).then(function(n){return L(gl(e),t)?function(t,e,n){return us(t,Ua,{idToken:e,deleteProvider:n})}(e.b,n,[t]).then(function(t){var n={};return j(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),j(gl(e),function(t){n[t]||yl(e,t)}),n[Zi.PROVIDER_ID]||Ar(e,"phoneNumber",null),hl(e)}):hl(e).then(function(){throw new Br("no-such-provider")})}))},t.delete=function(){var t=this;return Al(this,this.F().then(function(e){return us(t.b,Va,{idToken:e})}).then(function(){t.dispatchEvent(new nl("userDeleted"))})).then(function(){for(var e=0;e<t.G.length;e++)t.G[e].cancel("app-deleted");il(t,null),al(t,null),t.G=[],t.D=!0,ll(t),Ar(t,"refreshToken",null),t.a&&t.a.unsubscribe(t)})},t.wb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.aa||null)==e||"reauthViaRedirect"==t&&(this.aa||null)==e)},t.ha=function(t,e,n,r){"linkViaPopup"!=t&&"reauthViaPopup"!=t||r!=(this.g||null)||(n&&this.v?this.v(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},t.xa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?b(this.Bb,this):"reauthViaPopup"==t&&e==(this.g||null)?b(this.Cb,this):"linkViaRedirect"==t&&(this.aa||null)==e?b(this.Bb,this):"reauthViaRedirect"==t&&(this.aa||null)==e?b(this.Cb,this):null},t.tc=function(t){var e=this;return kl(this,"linkViaPopup",t,function(){return El(e,t.providerId).then(function(){return hl(e)})},!1)},t.Cc=function(t){return kl(this,"reauthViaPopup",t,function(){return Et()},!0)},t.uc=function(t){var e=this;return Tl(this,"linkViaRedirect",t,function(){return El(e,t.providerId)},!1)},t.Dc=function(t){return Tl(this,"reauthViaRedirect",t,function(){return Et()},!0)},t.Bb=function(t,e,n){var r=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Al(this,this.F().then(function(i){return Pa(r.b,{requestUri:t,postBody:n,sessionId:e,idToken:i})}).then(function(t){return i=Cl(r,t,"link"),Il(r,t)}).then(function(){return i}))},t.Cb=function(t,e,n){var r=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Al(this,Et().then(function(){return Ti(Na(r.b,{requestUri:t,sessionId:e,postBody:n}),r.uid)}).then(function(t){return i=Cl(r,t,"reauthenticate"),Sl(r,t),r.i=null,r.reload()}).then(function(){return i}),!0)},t.kb=function(t){var e=this,n=null;return Al(this,this.F().then(function(e){return n=e,void 0===t||rt(t)?{}:ni(new $r(t))}).then(function(t){return e.b.kb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},t.toJSON=function(){return this.w()},t.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.u,stsTokenManager:this.h.w(),redirectEventId:this.aa||null};return this.metadata&&ut(t,this.metadata.w()),j(this.providerData,function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))}),t};var Pl={name:"redirectUser",B:"session"};function Nl(t){return au(t.b,Pl,t.a)}
1function jl(t){this.a=t,this.b=ru(),this.c=null,this.f=function(t){var e=Ll("local"),r=Ll("session"),i=Ll("none");return function(t,e,r){var i=ou(e,r),o=iu(t,e.B);return t.get(e,r).then(function(a){var s=null;try{s=vr(n.localStorage.getItem(i))}catch(u){}if(s&&!a)return n.localStorage.removeItem(i),t.set(e,s,r);s&&a&&"localStorage"!=o.type&&n.localStorage.removeItem(i)})}(t.b,e,t.a).then(function(){return t.b.get(r,t.a)}).then(function(n){return n?r:t.b.get(i,t.a).then(function(n){return n?i:t.b.get(e,t.a).then(function(n){return n?e:t.b.get(Ml,t.a).then(function(t){return t?Ll(t):e})})})}).then(function(e){return t.c=e,Rl(t,e.B)}).s(function(){t.c||(t.c=e)})}(this),this.b.addListener(Ll("local"),this.a,b(this.g,this))}function Rl(t,e){var n,r=[];for(n in eu)eu[n]!==e&&r.push(au(t.b,Ll(eu[n]),t.a));return r.push(au(t.b,Ml,t.a)),function(t){return new gt(function(e,n){var r=t.length,i=[];if(r)for(var o=function(t,n){r--,i[t]=n,0==r&&e(i)},a=function(t){n(t)},s=0;s<t.length;s++)It(t[s],w(o,s),a);else e(i)})}(r)}jl.prototype.g=function(){var t=this,e=Ll("local");ql(this,function(){return Et().then(function(){return t.c&&"local"!=t.c.B?t.b.get(e,t.a):null}).then(function(n){if(n)return Rl(t,"local").then(function(){t.c=e})})})};var Ml={name:"persistence",B:"session"};function Ll(t){return{name:"authUser",B:t}}function Fl(t,e){return ql(t,function(){return t.b.set(t.c,e.w(),t.a)})}function Vl(t){return ql(t,function(){return au(t.b,t.c,t.a)})}function Ul(t,e){return ql(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),xl(t||{})})})}function ql(t,e){return t.f=t.f.then(e,e),t.f}function Bl(t){if(this.l=!1,Ar(this,"settings",new $u),Ar(this,"app",t),!Ql(this).options||!Ql(this).options.apiKey)throw new Br("invalid-api-key");t=i.a.SDK_VERSION?sr(i.a.SDK_VERSION):null,this.b=new ha(Ql(this).options&&Ql(this).options.apiKey,ci(ui),t),this.N=[],this.m=[],this.I=[],this.Tb=i.a.INTERNAL.createSubscribe(b(this.oc,this)),this.O=void 0,this.Ub=i.a.INTERNAL.createSubscribe(b(this.pc,this)),Kl(this,null),this.h=new jl(Ql(this).options.apiKey+":"+Ql(this).name),this.A=new Dl(Ql(this).options.apiKey+":"+Ql(this).name),this.V=Zl(this,function(t){var e=Ql(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Pl,t.a).then(function(t){return t&&e&&(t.authDomain=e),xl(t||{})})}(t.A,Ql(t).options.authDomain).then(function(e){return(t.D=e)&&(e.ba=t.A),Nl(t.A)});return Zl(t,e)}(t).then(function(){return Ul(t.h,e)}).then(function(e){return e?(e.ba=t.A,t.D&&(t.D.aa||null)==(e.aa||null)?e:e.reload().then(function(){return Fl(t.h,e).then(function(){return e})}).s(function(n){return"auth/network-request-failed"==n.code?e:Vl(t.h)})):null}).then(function(e){Kl(t,e||null)});return Zl(t,n)}(this)),this.i=Zl(this,function(t){return t.V.then(function(){return t.fa()}).s(function(){}).then(function(){if(!t.l)return t.ka()}).s(function(){}).then(function(){if(!t.l){t.X=!0;var e=t.h;e.b.addListener(Ll("local"),e.a,t.ka)}})}(this)),this.X=!1,this.ka=b(this.Oc,this),this.Ha=b(this.Z,this),this.ra=b(this.bc,this),this.sa=b(this.mc,this),this.ta=b(this.nc,this),function(t){var e=Ql(t).options.authDomain,n=Ql(t).options.apiKey;e&&hr()&&(t.Sb=t.V.then(function(){if(!t.l){if(t.a=Uu(e,n,Ql(t).name),t.a.subscribe(t),Jl(t)&&fl(Jl(t)),t.D){fl(t.D);var r=t.D;r.pa(t.ea()),il(r,t),ol(r=t.D,t.G),al(r,t),t.D=null}return t.a}}))}(this),this.INTERNAL={},this.INTERNAL.delete=b(this.delete,this),this.INTERNAL.logFramework=b(this.vc,this),this.u=0,Pe.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ea()},set:function(t){this.pa(t)},enumerable:!1}),t.W=null}(this),this.G=[]}function zl(t){ue.call(this,"languageCodeChanged"),this.g=t}function Hl(t){ue.call(this,"frameworkChanged"),this.c=t}function Gl(t){return t.Sb||Ct(new Br("auth-domain-config-required"))}function $l(t,e){var n={};return n.apiKey=Ql(t).options.apiKey,n.authDomain=Ql(t).options.authDomain,n.appName=Ql(t).name,t.V.then(function(){return function(t,e,n,r){var i=new rl(t,e);return n&&(i.ba=n),r&&ol(i,r),i.reload().then(function(){return i})}(n,e,t.A,t.ya())}).then(function(e){return Jl(t)&&e.uid==Jl(t).uid?(wl(Jl(t),e),t.Z(e)):(Kl(t,e),fl(e),t.Z(e))}).then(function(){Yl(t)})}function Kl(t,e){Jl(t)&&(function(t,e){V(t.N,function(t){return t==e})}(Jl(t),t.Ha),Ee(Jl(t),"tokenChanged",t.ra),Ee(Jl(t),"userDeleted",t.sa),Ee(Jl(t),"userInvalidated",t.ta),ll(Jl(t))),e&&(e.N.push(t.Ha),we(e,"tokenChanged",t.ra),we(e,"userDeleted",t.sa),we(e,"userInvalidated",t.ta),0<t.u&&ul(e)),Ar(t,"currentUser",e),e&&(e.pa(t.ea()),il(e,t),ol(e,t.G),al(e,t))}function Wl(t,e){var n=null,r=null;return Zl(t,e.then(function(e){return n=eo(e),r=mi(e),$l(t,e)}).then(function(){return Dr({user:Jl(t),credential:n,additionalUserInfo:r,operationType:"signIn"})}))}function Ql(t){return t.app}function Jl(t){return t.currentUser}function Xl(t){return Jl(t)&&Jl(t)._lat||null}function Yl(t){if(t.X){for(var e=0;e<t.m.length;e++)t.m[e]&&t.m[e](Xl(t));if(t.O!==t.getUid()&&t.I.length)for(t.O=t.getUid(),e=0;e<t.I.length;e++)t.I[e]&&t.I[e](Xl(t))}}function Zl(t,e){return t.N.push(e),e.ia(function(){F(t.N,e)}),e}function tc(){}function ec(){this.a={},this.b=1e12}jl.prototype.nb=function(t){var e=null,n=this;return function(t){var e=new Br("invalid-persistence-type"),n=new Br("unsupported-persistence-type");t:{for(r in eu)if(eu[r]==t){var r=!0;break t}r=!1}if(!r||"string"!=typeof t)throw e;switch(er()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;default:if(!cr()&&"none"!==t)throw n}}(t),ql(this,function(){return t!=n.c.B?n.b.get(n.c,n.a).then(function(r){return e=r,Rl(n,t)}).then(function(){if(n.c=Ll(t),e)return n.b.set(n.c,e,n.a)}):Et()})},S(Bl,Pe),S(zl,ue),S(Hl,ue),(t=Bl.prototype).nb=function(t){return Zl(this,t=this.h.nb(t))},t.pa=function(t){this.W===t||this.l||(this.W=t,ya(this.b,this.W),this.dispatchEvent(new zl(this.ea())))},t.ea=function(){return this.W},t.Uc=function(){var t=n.navigator;this.pa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)}
1,t.vc=function(t){this.G.push(t),ba(this.b,i.a.SDK_VERSION?sr(i.a.SDK_VERSION,this.G):null),this.dispatchEvent(new Hl(this.G))},t.ya=function(){return q(this.G)},t.toJSON=function(){return{apiKey:Ql(this).options.apiKey,authDomain:Ql(this).options.authDomain,appName:Ql(this).name,currentUser:Jl(this)&&Jl(this).w()}},t.wb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},t.ha=function(t,e,n,r){"signInViaPopup"==t&&this.g==r&&(n&&this.v?this.v(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},t.xa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?b(this.ac,this):null},t.ac=function(t,e,n){var r=this;t={requestUri:t,postBody:n,sessionId:e},this.c&&(this.c.cancel(),this.c=null);var i=null,o=null,a=Da(r.b,t).then(function(t){return i=eo(t),o=mi(t),t});return Zl(this,t=r.V.then(function(){return a}).then(function(t){return $l(r,t)}).then(function(){return Dr({user:Jl(r),credential:i,additionalUserInfo:o,operationType:"signIn"})}))},t.Mc=function(t){if(!hr())return Ct(new Br("operation-not-supported-in-this-environment"));var e=this,n=pi(t.providerId),r=yr(),o=null;(!pr()||Zn())&&Ql(this).options.authDomain&&t.isOAuthProvider&&(o=Es(Ql(this).options.authDomain,Ql(this).options.apiKey,Ql(this).name,"signInViaPopup",t,null,r,i.a.SDK_VERSION||null));var a=Wn(o,n&&n.Ba,n&&n.Aa);return Zl(this,n=Gl(this).then(function(e){return Lu(e,a,"signInViaPopup",t,r,!!o)}).then(function(){return new gt(function(t,n){e.ha("signInViaPopup",null,new Br("cancelled-popup-request"),e.g),e.f=t,e.v=n,e.g=r,e.c=e.a.Ea(e,"signInViaPopup",a,r)})}).then(function(t){return a&&Kn(a),t?Dr(t):null}).s(function(t){throw a&&Kn(a),t}))},t.Nc=function(t){if(!hr())return Ct(new Br("operation-not-supported-in-this-environment"));var e=this;return Zl(this,Gl(this).then(function(){return ql(t=e.h,function(){return t.b.set(Ml,t.c.B,t.a)});var t}).then(function(){return e.a.Ca("signInViaRedirect",t)}))},t.fa=function(){if(!hr())return Ct(new Br("operation-not-supported-in-this-environment"));var t=this;return Zl(this,Gl(this).then(function(){return t.a.fa()}).then(function(t){return t?Dr(t):null}))},t.Sc=function(t){if(!t)return Ct(new Br("null-user"));var e=this,n={};n.apiKey=Ql(this).options.apiKey,n.authDomain=Ql(this).options.authDomain,n.appName=Ql(this).name;var r=function(t,e,n,r){e=e||{apiKey:t.l,authDomain:t.u,appName:t.m};var i=t.h,o={};return o[da]=i.b,o.refreshToken=i.a,o.expiresIn=(i.c-_())/1e3,e=new rl(e,o),n&&(e.ba=n),r&&ol(e,r),wl(e,t),e}(t,n,e.A,e.ya());return Zl(this,this.i.then(function(){if(Ql(e).options.apiKey!=t.l)return r.reload()}).then(function(){return Jl(e)&&t.uid==Jl(e).uid?(wl(Jl(e),t),e.Z(t)):(Kl(e,r),fl(r),e.Z(r))}).then(function(){Yl(e)}))},t.ob=function(){var t=this;return Zl(this,this.i.then(function(){return Jl(t)?(Kl(t,null),Vl(t.h).then(function(){Yl(t)})):Et()}))},t.Oc=function(){var t=this;return Ul(this.h,Ql(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=Jl(t)&&e){n=Jl(t).uid;var r=e.uid;n=null!=n&&""!==n&&null!=r&&""!==r&&n==r}if(n)return wl(Jl(t),e),Jl(t).F();(Jl(t)||e)&&(Kl(t,e),e&&(fl(e),e.ba=t.A),t.a&&t.a.subscribe(t),Yl(t))}})},t.Z=function(t){return Fl(this.h,t)},t.bc=function(){Yl(this),this.Z(Jl(this))},t.mc=function(){this.ob()},t.nc=function(){this.ob()},t.oc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(Jl(e))})},t.pc=function(t){var e=this;!function(t,e){t.I.push(e),Zl(t,t.i.then(function(){!t.l&&L(t.I,e)&&t.O!==t.getUid()&&(t.O=t.getUid(),e(Xl(t)))}))}(this,function(){t.next(Jl(e))})},t.xc=function(t,e,n){var r=this;return this.X&&i.a.Promise.resolve().then(function(){d(t)?t(Jl(r)):d(t.next)&&t.next(Jl(r))}),this.Tb(t,e,n)},t.wc=function(t,e,n){var r=this;return this.X&&i.a.Promise.resolve().then(function(){r.O=r.getUid(),d(t)?t(Jl(r)):d(t.next)&&t.next(Jl(r))}),this.Ub(t,e,n)},t.cc=function(t){var e=this;return Zl(this,this.i.then(function(){return Jl(e)?Jl(e).F(t).then(function(t){return{accessToken:t}}):null}))},t.Nb=function(t){var e=this;return this.i.then(function(){return Wl(e,us(e.b,rs,{token:t}))}).then(function(t){var n=t.user;return bl(n,"isAnonymous",!1),e.Z(n),t})},t.Gc=function(t){return Tr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCustomToken is deprecated. Please use firebase.auth.Auth.prototype.signInWithCustomToken instead."),this.Nb(t)},t.Hc=function(t,e){return Tr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.signInWithEmailAndPassword instead."),this.Ob(t,e)},t.Ob=function(t,e){var n=this;return this.i.then(function(){return Wl(n,us(n.b,is,{email:t,password:e}))})},t.yb=function(t,e){var n=this;return this.i.then(function(){return Wl(n,us(n.b,La,{email:t,password:e}))})},t.Wb=function(t,e){return Tr("firebase.auth.Auth.prototype.createUserAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.createUserWithEmailAndPassword instead."),this.yb(t,e)},t.Jc=function(t){return Tr("firebase.auth.Auth.prototype.signInWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential instead."),this.Qa(t).then(function(t){return t.user})},t.Qa=function(t){var e=this;return this.i.then(function(){return Wl(e,t.la(e.b))})},t.Ra=function(){var t=this;return this.i.then(function(){var e=Jl(t);if(e&&e.isAnonymous){var n=Dr({providerId:null,isNewUser:!1});return Dr({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return Wl(t,t.b.Ra()).then(function(e){var n=e.user;return bl(n,"isAnonymous",!0),t.Z(n),e})})},t.Ic=function(){return Tr("firebase.auth.Auth.prototype.signInAnonymouslyAndRetrieveData is deprecated. Please use firebase.auth.Auth.prototype.signInAnonymously instead."),this.Ra()},t.getUid=function(){return Jl(this)&&Jl(this).uid||null},t.Vb=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&Jl(this)&&ul(Jl(this))},t.Ec=function(t){var e=this;j(this.m,function(n){n==t&&e.u--}),0>this.u&&(this.u=0),0==this.u&&Jl(this)&&ll(Jl(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.m.push(t),Zl(this,this.i.then(function(){e.l||L(e.m,t)&&t(Xl(e))}))},t.removeAuthTokenListener=function(t){V(this.m,function(e){return e==t})},t.delete=function(){this.l=!0;for(var t=0;t<this.N.length;t++)this.N[t].cancel("app-deleted");return this.N=[],this.h&&(t=this.h).b.removeListener(Ll("local"),t.a,this.ka),this.a&&(this.a.unsubscribe(this),this.a.Za()),i.a.Promise.resolve()},t.Zb=function(t){return Tr("firebase.auth.Auth.prototype.fetchProvi
1dersForEmail is deprecated. Please use firebase.auth.Auth.prototype.fetchSignInMethodsForEmail instead."),Zl(this,function(t,e){return us(t,Fa,{identifier:e,continueUri:fr()?Hn():"http://localhost"}).then(function(t){return t.allProviders||[]})}(this.b,t))},t.$b=function(t){return Zl(this,function(t,e){return us(t,Fa,{identifier:e,continueUri:fr()?Hn():"http://localhost"}).then(function(t){return t.signinMethods||[]})}(this.b,t))},t.qc=function(t){return!!Qi(t)},t.mb=function(t,e){var n=this;return Zl(this,Et().then(function(){var t=new $r(e);if(!t.c)throw new Br("argument-error",Qr+" must be true when sending sign in link to email");return ni(t)}).then(function(e){return n.b.mb(t,e)}).then(function(){}))},t.Vc=function(t){return this.Ja(t).then(function(t){return t.data.email})},t.$a=function(t,e){return Zl(this,this.b.$a(t,e).then(function(){}))},t.Ja=function(t){return Zl(this,this.b.Ja(t).then(function(t){return new Nr(t)}))},t.Xa=function(t){return Zl(this,this.b.Xa(t).then(function(){}))},t.lb=function(t,e){var n=this;return Zl(this,Et().then(function(){return void 0===e||rt(e)?{}:ni(new $r(e))}).then(function(e){return n.b.lb(t,e)}).then(function(){}))},t.Lc=function(t,e){return Zl(this,Wu(this,t,e,b(this.Qa,this)))},t.Kc=function(t,e){var n=this;return Zl(this,Et().then(function(){var r=Wi(t,e||Hn());return n.Qa(r)}))},tc.prototype.render=function(){},tc.prototype.reset=function(){},tc.prototype.getResponse=function(){},tc.prototype.execute=function(){};var nc=null;function rc(t,e){return(e=ic(e))&&t.a[e]||null}function ic(t){return(t=void 0===t?1e12:t)?t.toString():null}function oc(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=jn(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():we(this.f,"click",this.i)}function ac(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function sc(){}ec.prototype.render=function(t,e){return this.a[this.b.toString()]=new oc(t,e),this.b++},ec.prototype.reset=function(t){var e=rc(this,t);t=ic(t),e&&t&&(e.delete(),delete this.a[t])},ec.prototype.getResponse=function(t){return(t=rc(this,t))?t.getResponse():null},ec.prototype.execute=function(t){(t=rc(this,t))&&t.execute()},oc.prototype.getResponse=function(){return ac(this),this.b},oc.prototype.execute=function(){ac(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(r){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(r){}t.h&&t.execute()},6e4)},500))},oc.prototype.delete=function(){ac(this),this.g=!0,clearTimeout(this.a),this.a=null,Ee(this.f,"click",this.i)},sc.prototype.g=function(){return nc||(nc=new ec),Et(nc)},sc.prototype.c=function(){};var uc=null;function lc(){this.b=n.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var cc=new mn(yn,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),hc=new _r(3e4,6e4);lc.prototype.g=function(t){var e=this;return new gt(function(r,i){var o=setTimeout(function(){i(new Br("network-request-failed"))},hc.get());!n.grecaptcha||t!==e.f&&!e.b?(n[e.a]=function(){if(n.grecaptcha){e.f=t;var a=n.grecaptcha.render;n.grecaptcha.render=function(t,n){return t=a(t,n),e.b++,t},clearTimeout(o),r(n.grecaptcha)}else clearTimeout(o),i(new Br("internal-error"));delete n[e.a]},Et(ia(_n(cc,{onload:e.a,hl:t||""}))).s(function(){clearTimeout(o),i(new Br("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(o),r(n.grecaptcha))})},lc.prototype.c=function(){this.b--};var fc=null;
1function dc(t,e,r,i,o,a,s){if(Ar(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.l=e,this.g=null,s?(uc||(uc=new sc),s=uc):(fc||(fc=new lc),s=fc),this.m=s,this.a=r||{theme:"light",type:"image"},this.h=[],this.a[gc])throw new Br("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[vc],!n.document)throw new Br("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!jn(e)||!this.i&&jn(e).hasChildNodes())throw new Br("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.u=new ha(t,a||null,o||null),this.v=i||function(){return null};var u=this;this.o=[];var l=this.a[pc];this.a[pc]=function(t){if(yc(u,t),"function"==typeof l)l(t);else if("string"==typeof l){var e=lr(l,n);"function"==typeof e&&e(t)}};var c=this.a[mc];this.a[mc]=function(){if(yc(u,null),"function"==typeof c)c();else if("string"==typeof c){var t=lr(c,n);"function"==typeof t&&t()}}}var pc="callback",mc="expired-callback",gc="sitekey",vc="size";function yc(t,e){for(var n=0;n<t.o.length;n++)try{t.o[n](e)}catch(r){}}function bc(t,e){return t.h.push(e),e.ia(function(){F(t.h,e)}),e}function wc(t){if(t.D)throw new Br("internal-error","RecaptchaVerifier instance has been destroyed.")}function _c(t,e,n){var r=!1;try{this.b=n||i.a.app()}catch(s){throw new Br("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new Br("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().ya()}catch(s){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=i.a.SDK_VERSION?sr(i.a.SDK_VERSION,a):null,dc.call(this,n,t,e,function(){try{var t=o.b.auth().ea()}catch(e){t=null}return t},a,ci(ui),r)}function Sc(t,e,n,r){t:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new Br("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=e.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=e[i].optional&&void 0===n[i],!e[i].M(n[i])&&!o){if(e=e[i],0>i||i>=Ec.length)throw new Br("internal-error","Argument validator received an unsupported number of arguments.");n=Ec[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}r=null}}if(r)throw new Br("argument-error",t+" failed: "+r)}(t=dc.prototype).za=function(){var t=this;return this.f?this.f:this.f=bc(this,Et().then(function(){if(fr()&&!tr())return Xn();throw new Br("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.m.g(t.v())}).then(function(e){return t.g=e,us(t.u,Wa,{})}).then(function(e){t.a[gc]=e.recaptchaSiteKey}).s(function(e){throw t.f=null,e}))},t.render=function(){wc(this);var t=this;return bc(this,this.za().then(function(){if(null===t.c){var e=t.l;if(!t.i){var n=jn(e);e=function(t,e,n){var i=arguments,o=document,a=String(i[0]),s=i[1];if(!pn&&s&&(s.name||s.type)){if(a=["<",a],s.name&&a.push(' name="',ct(s.name),'"'),s.type){a.push(' type="',ct(s.type),'"');var u={};ut(u,s),delete u.type,s=u}a.push(">"),a=a.join("")}return a=o.createElement(a),s&&(r(s)?a.className=s:h(s)?a.className=s.join(" "):Rn(a,s)),2<i.length&&function(t,e,n){function i(n){n&&e.appendChild(r(n)?t.createTextNode(n):n)}for(var o=2;o<n.length;o++){var a=n[o];!f(a)||p(a)&&0<a.nodeType?i(a):j(Ln(a)?q(a):a,i)}}(o,a,i),a}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},t.verify=function(){wc(this);var t=this;return bc(this,this.render().then(function(e){return new gt(function(n){var r=t.g.getResponse(e);if(r)n(r);else{var i=function(e){e&&(function(t,e){V(t.o,function(t){return t==e})}(t,i),n(e))};t.o.push(i),t.i&&t.g.execute(t.c)}})}))},t.reset=function(){wc(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){wc(this),this.D=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=jn(this.l);for(var e;e=t.firstChild;)t.removeChild(e)}},S(_c,dc);var Ec="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Cc(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:r}}function Ic(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:o}}function kc(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:p}}function Tc(t,e){return{name:t||"",K:"a function",optional:!!e,M:d}}function Oc(t,e){return{name:t||"",K:"null",optional:!!e,M:c}}function Ac(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){return!!e&&!(!e.la||t&&e.providerId!==t)}}}function xc(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!!(t&&r(t.type)&&d(t.verify))}}}function Dc(t,e,n,r){return{name:n||"",K:t.K+" or "+e.K,optional:!!r,M:function(n){return t.M(n)||e.M(n)}}}function Pc(t,e){for(var n in e){var r=e[n].name;t[r]=Rc(r,t[n],e[n].j)}}function Nc(t,e){for(var n in e){var r=e[n].name;r!==n&&Object.defineProperty(t,r,{get:w(function(t){return this[t]}
1,n),set:w(function(t,e,n,r){Sc(t,[n],[r],!0),this[e]=r},r,n,e[n].ub),enumerable:!0})}}function jc(t,e,n,r){t[e]=Rc(e,n,r)}function Rc(t,e,n){function r(){var t=Array.prototype.slice.call(arguments);return Sc(o,n,t),e.apply(this,t)}if(!n)return e;var i,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(i in e)r[i]=e[i];for(i in e.prototype)r.prototype[i]=e.prototype[i];return r}Pc(Bl.prototype,{Xa:{name:"applyActionCode",j:[Cc("code")]},Ja:{name:"checkActionCode",j:[Cc("code")]},$a:{name:"confirmPasswordReset",j:[Cc("code"),Cc("newPassword")]},yb:{name:"createUserWithEmailAndPassword",j:[Cc("email"),Cc("password")]},Wb:{name:"createUserAndRetrieveDataWithEmailAndPassword",j:[Cc("email"),Cc("password")]},Zb:{name:"fetchProvidersForEmail",j:[Cc("email")]},$b:{name:"fetchSignInMethodsForEmail",j:[Cc("email")]},fa:{name:"getRedirectResult",j:[]},qc:{name:"isSignInWithEmailLink",j:[Cc("emailLink")]},wc:{name:"onAuthStateChanged",j:[Dc(kc(),Tc(),"nextOrObserver"),Tc("opt_error",!0),Tc("opt_completed",!0)]},xc:{name:"onIdTokenChanged",j:[Dc(kc(),Tc(),"nextOrObserver"),Tc("opt_error",!0),Tc("opt_completed",!0)]},lb:{name:"sendPasswordResetEmail",j:[Cc("email"),Dc(kc("opt_actionCodeSettings",!0),Oc(null,!0),"opt_actionCodeSettings",!0)]},mb:{name:"sendSignInLinkToEmail",j:[Cc("email"),kc("actionCodeSettings")]},nb:{name:"setPersistence",j:[Cc("persistence")]},Qa:{name:"signInAndRetrieveDataWithCredential",j:[Ac()]},Ra:{name:"signInAnonymously",j:[]},Ic:{name:"signInAnonymouslyAndRetrieveData",j:[]},Jc:{name:"signInWithCredential",j:[Ac()]},Nb:{name:"signInWithCustomToken",j:[Cc("token")]},Gc:{name:"signInAndRetrieveDataWithCustomToken",j:[Cc("token")]},Ob:{name:"signInWithEmailAndPassword",j:[Cc("email"),Cc("password")]},Kc:{name:"signInWithEmailLink",j:[Cc("email"),Cc("emailLink",!0)]},Hc:{name:"signInAndRetrieveDataWithEmailAndPassword",j:[Cc("email"),Cc("password")]},Lc:{name:"signInWithPhoneNumber",j:[Cc("phoneNumber"),xc()]},Mc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Sc:{name:"updateCurrentUser",j:[Dc({name:"user",K:"an instance of Firebase User",optional:!1,M:function(t){return!!(t&&t instanceof rl)}},Oc(),"user")]},ob:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Cc(null,!0)]},Uc:{name:"useDeviceLanguage",j:[]},Vc:{name:"verifyPasswordResetCode",j:[Cc("code")]}}),Nc(Bl.prototype,{lc:{name:"languageCode",ub:Dc(Cc(),Oc(),"languageCode")}}),(Bl.Persistence=eu).LOCAL="local",Bl.Persistence.SESSION="session",Bl.Persistence.NONE="none",Pc(rl.prototype,{delete:{name:"delete",j:[]},dc:{name:"getIdTokenResult",j:[Ic("opt_forceRefresh",!0)]},F:{name:"getIdToken",j:[Ic("opt_forceRefresh",!0)]},fb:{name:"linkAndRetrieveDataWithCredential",j:[Ac()]},rc:{name:"linkWithCredential",j:[Ac()]},sc:{name:"linkWithPhoneNumber",j:[Cc("phoneNumber"),xc()]},tc:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},uc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},hb:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Ac()]},Ac:{name:"reauthenticateWithCredential",j:[Ac()]},Bc:{name:"reauthenticateWithPhoneNumber",j:[Cc("phoneNumber"),xc()]},Cc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},kb:{name:"sendEmailVerification",j:[Dc(kc("opt_actionCodeSettings",!0),Oc(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Cc(null,!0)]},Rc:{name:"unlink",j:[Cc("provider")]},qb:{name:"updateEmail",j:[Cc("email")]}
1,rb:{name:"updatePassword",j:[Cc("password")]},Tc:{name:"updatePhoneNumber",j:[Ac("phone")]},sb:{name:"updateProfile",j:[kc("profile")]}}),Pc(ec.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Pc(tc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Pc(gt.prototype,{ia:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Nc($u.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",ub:Ic("appVerificationDisabledForTesting")}}),Pc(Ku.prototype,{confirm:{name:"confirm",j:[Cc("verificationCode")]}}),jc(ki,"fromJSON",function(t){t=r(t)?JSON.parse(t):t;for(var e,n=[Ni,$i,Xi,xi],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[Dc(Cc(),kc(),"json")]),jc(Ki,"credential",function(t,e){return new Gi(t,e)},[Cc("email"),Cc("password")]),Pc(Gi.prototype,{w:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(Li.prototype,{ua:{name:"addScope",j:[Cc("scope")]},Da:{name:"setCustomParameters",j:[kc("customOAuthParameters")]}}),jc(Li,"credential",Fi,[Dc(Cc(),kc(),"token")]),jc(Ki,"credentialWithLink",Wi,[Cc("email"),Cc("emailLink")]),Pc(Vi.prototype,{ua:{name:"addScope",j:[Cc("scope")]},Da:{name:"setCustomParameters",j:[kc("customOAuthParameters")]}}),jc(Vi,"credential",Ui,[Dc(Cc(),kc(),"token")]),Pc(qi.prototype,{ua:{name:"addScope",j:[Cc("scope")]},Da:{name:"setCustomParameters",j:[kc("customOAuthParameters")]}}),jc(qi,"credential",Bi,[Dc(Cc(),Dc(kc(),Oc()),"idToken"),Dc(Cc(),Oc(),"accessToken",!0)]),Pc(zi.prototype,{Da:{name:"setCustomParameters",j:[kc("customOAuthParameters")]}}),jc(zi,"credential",Hi,[Dc(Cc(),kc(),"token"),Cc("secret",!0)]),Pc(Mi.prototype,{ua:{name:"addScope",j:[Cc("scope")]},credential:{name:"credential",j:[Dc(Cc(),Dc(kc(),Oc()),"optionsOrIdToken"),Dc(Cc(),Oc(),"accessToken",!0)]},Da:{name:"setCustomParameters",j:[kc("customOAuthParameters")]}}),Pc(Di.prototype,{w:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(Oi.prototype,{w:{name:"toJSON",j:[Cc(null,!0)]}}),jc(Zi,"credential",to,[Cc("verificationId"),Cc("verificationCode")]),Pc(Zi.prototype,{Va:{name:"verifyPhoneNumber",j:[Cc("phoneNumber"),xc()]}}),Pc(Ji.prototype,{w:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(Br.prototype,{toJSON:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(lo.prototype,{toJSON:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(uo.prototype,{toJSON:{name:"toJSON",j:[Cc(null,!0)]}}),Pc(_c.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),function(){if(void 0===i.a||!i.a.INTERNAL||!i.a.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={Auth:Bl,AuthCredential:ki,Error:Br};jc(t,"EmailAuthProvider",Ki,[]),jc(t,"FacebookAuthProvider",Li,[]),jc(t,"GithubAuthProvider",Vi,[]),jc(t,"GoogleAuthProvider",qi,[]),jc(t,"TwitterAuthProvider",zi,[]),jc(t,"OAuthProvider",Mi,[Cc("providerId")]),jc(t,"SAMLAuthProvider",Ri,[Cc("providerId")]),jc(t,"PhoneAuthProvider",Zi,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof Bl)}}]),jc(t,"RecaptchaVerifier",_c,[Dc(Cc(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),kc("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.a.app.App)}}]),i.a.INTERNAL.registerService("auth",function(t,e){return e({INTERNAL:{getUid:b((t=new Bl(t)).getUid,t),getToken:b(t.cc,t),addAuthTokenListener:b(t.Vb,t),removeAuthTokenListener:b(t.Ec,t)}}),t},t,function(t,e){if("create"===t)try{e.auth()}catch(n){}}),i.a.INTERNAL.extendNamespace({User:rl})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},"73IE":function(t,e,n){"use strict";var r=n("H6ty"),i=n("hEy5"),o=n("z5ME")("startsWith"),a="".startsWith;n("pSMy")({target:"String",proto:!0,forced:!o},{startsWith:function(t){var e=i(this,t,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return a?a.call(e,o,n):e.slice(n,n+o.length)===o}})},"7xuS":function(t,e,n){t.exports=n("T3Qk")},"8JzM":function(t,e,n){"use strict";var r=n("CcnG"),i=n("oBZk"),o=n("ZZ/e"),a=n("Ip0R"),s=n("ZYCi");n("np0s"),n("8s+1"),n("KWWs"),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return E});
1var u=r.ob({encapsulation:0,styles:[["ion-avatar[_ngcontent-%COMP%]{width:42px;height:42px;margin-right:1em}ion-item[_ngcontent-%COMP%]{--background:transparent}ion-label[_ngcontent-%COMP%]{margin:0}ion-text[_ngcontent-%COMP%]{color:#fff}"]],data:{}});function l(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-back-button",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,2).onClick(n)&&i),i},i.Q,i.c)),r.pb(1,49152,null,0,o.g,[r.h,r.k,r.z],{defaultHref:[0,"defaultHref"]},null),r.pb(2,16384,null,0,o.h,[[2,o.ib],o.Ib],{defaultHref:[0,"defaultHref"]},null)],function(t,e){var n=e.component;t(e,1,0,r.sb(1,"",n.defaultBackHref,"")),t(e,2,0,r.sb(1,"",n.defaultBackHref,""))},null)}function c(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"ion-menu-button",[],null,null,null,i.lb,i.x)),r.pb(1,49152,null,0,o.R,[r.h,r.k,r.z],null,null)],null,null)}function h(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,2,"ion-badge",[["color","warning"],["item-end",""],["style","margin: -40px 0 -20px -20px;"]],null,null,null,i.R,i.d)),r.pb(2,49152,null,0,o.j,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(3,0,["",""]))],function(t,e){t(e,2,0,"warning")},function(t,e){t(e,3,0,e.context.ngIf)})}function f(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,18,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,5,"ion-buttons",[["slot","start"]],null,null,null,i.T,i.f)),r.pb(2,49152,null,0,o.l,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,l)),r.pb(4,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,c)),r.pb(6,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(7,0,null,null,11,"ion-buttons",[["slot","end"]],null,null,null,i.T,i.f)),r.pb(8,49152,null,0,o.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(9,0,null,0,9,"ion-button",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,11).onClick()&&i),"click"===e&&(i=!1!==r.Ab(t,13).onClick(n)&&i),i},i.S,i.e)),r.pb(10,49152,null,0,o.k,[r.h,r.k,r.z],null,null),r.pb(11,16384,null,0,s.o,[s.n,s.a,[8,null],r.D,r.k],{routerLink:[0,"routerLink"]},null),r.Bb(12,3),r.pb(13,737280,null,0,o.Nb,[a.i,o.Ib,r.k,s.n,[2,s.o]],null,null),(t()(),r.qb(14,0,null,0,1,"ion-icon",[["slot","start"],["src","/assets/icon/chat.svg"]],null,null,null,i.cb,i.o)),r.pb(15,49152,null,0,o.C,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.hb(16777216,null,0,2,null,h)),r.pb(17,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,a.b,[r.h])],function(t,e){var n=e.component;t(e,4,0,n.back),t(e,6,0,n.menu);var i,o=t(e,12,0,"/",n.pvr.domainName,"chat");t(e,11,0,o),t(e,13,0),t(e,15,0,"/assets/icon/chat.svg"),t(e,17,0,null==(i=r.Ib(e,17,0,r.Ab(e,18).transform(n.notifications$)))?null:i.messages)},null)}function d(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function p(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.user.photoURL)})}function m(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,5,"ion-avatar",[["slot","start"]],null,null,null,i.P,i.b)),r.pb(1,49152,null,0,o.f,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,d)),r.pb(3,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,p)),r.pb(5,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,!n.user.photoURL),t(e,5,0,n.user.photoURL)},null)}function g(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,2,"ion-text",[],null,null,null,i.xb,i.J)),r.pb(2,49152,null,0,o.xb,[r.h,r.k,r.z],null,null),(t()(),r.Hb(3,0,["",""]))],null,function(t,e){t(e,3,0,e.component.title)})}function v(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,2,"ion-text",[],null,null,null,i.xb,i.J)),r.pb(2,49152,null,0,o.xb,[r.h,r.k,r.z],null,null),(t()(),r.Hb(3,0,["",""]))],null,function(t,e){t(e,3,0,e.component.pvr.name)}
1)}function y(t){return r.Jb(0,[(t()(),r.hb(16777216,null,null,1,null,v)),r.pb(1,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(0,null,null,0))],function(t,e){t(e,1,0,e.component.pvr)},null)}function b(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,2,"ion-label",[],null,null,null,i.ib,i.u)),r.pb(2,49152,null,0,o.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,0,"img",[["style","height: 50px"]],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,3,0,r.sb(1,"",e.component.pvr.logo,""))})}function w(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/fsp-logo-white.svg"],["style","height: 50px"]],null,null,null,null,null))],null,null)}function _(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/fsp-logo-icon.svg"],["style","height: 50px"]],null,null,null,null,null))],null,null)}function S(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,5,"ion-label",[],null,null,null,i.ib,i.u)),r.pb(1,49152,null,0,o.N,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,w)),r.pb(3,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,_)),r.pb(5,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.platform.is("desktop")),t(e,5,0,n.platform.is("mobile"))},null)}function E(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,13,"ion-toolbar",[],null,
1null,null,i.Bb,i.N)),r.pb(1,49152,null,0,o.Cb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.hb(16777216,null,0,1,null,f)),r.pb(3,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,m)),r.pb(5,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(6,0,null,0,7,"ion-item",[["class","ion-text-center"],["lines","none"]],null,null,null,i.hb,i.t)),r.pb(7,49152,null,0,o.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.hb(16777216,null,0,1,null,g)),r.pb(9,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),r.hb(0,[["notitle",2]],0,0,null,y)),(t()(),r.hb(16777216,null,0,1,null,b)),r.pb(12,16384,null,0,a.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),r.hb(0,[["defaultLogo",2]],0,0,null,S))],function(t,e){var n=e.component;t(e,1,0,n.color),t(e,3,0,n.pvr),t(e,5,0,n.user),t(e,7,0,"none"),t(e,9,0,n.title,r.Ab(e,10)),t(e,12,0,n.pvr,r.Ab(e,13))},null)}},"8g8A":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"8s+1":function(t,e,n){"use strict";n.d(e,"a",function(){return p}),n("6nsN");var r=n("ZZ/e"),i=n("Wcq6"),o=n("6blF"),a=n("F/XL"),s=n("0/uQ"),u=n("xMyE"),l=n("67Y/"),c=(n("uxqg"),n("5Aeh")),h=n("CcnG"),f=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},d=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},p=function(){function t(t){this.loadingController=t}return t.prototype.identity=function(){return this.user},t.prototype.pvr=function(){return this._pvr},t.prototype.getAuthenticationState=function(){return o.a.create(function(t){return i.auth().onAuthStateChanged(t)}).pipe(Object(u.a)(console.log),Object(l.a)(function(t){return Object(c.b)(t)}))},t.prototype.identityWithClaim=function(t){var e=this;if(this.user&&!t)return Object(a.a)(this.user);this.presentLoading();var n=i.functions().httpsCallable("identity");return Object(s.a)(n().then(function(t){return e.user=Object(c.b)(t.data),e.dismissLoading(),e.user}).catch(function(t){return console.log(t),e.dismissLoading(),null}))},t.prototype.presentLoading=function(){return f(this,void 0,void 0,function(){var t;return d(this,function(e){switch(e.label){case 0:return t=this,[4,this.loadingController.create({message:"Please Wait...",id:"login"})];case 1:return t.loading=e.sent(),[4,this.loading.present()];case 2:return[2,e.sent()]}})})},t.prototype.dismissLoading=function(){return f(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this.loading];case 1:return[2,t.sent()?this.loading.dismiss():null]}})})},t.prototype.setPvr=function(t){this._pvr=t},t.ngInjectableDef=h.T({factory:function(){return new t(h.X(r.Gb))},token:t,providedIn:"root"}),t}()},"99Un":function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l});var r=n("F/XL"),i=n("xMyE"),o=n("8s+1"),a=n("xZjr"),s=n("CcnG"),u=function(){function t(t,e){this.principal=t,this.restService=e}return t.prototype.resolve=function(t,e){var n=this;return Object(r.a)(this.principal.pvr()).pipe(Object(i.a)(function(t){return n.restService.setUrl(t.getCMSList())}))},t.ngInjectableDef=s.T({factory:function(){return new t(s.X(o.a),s.X(a.a))},token:t,providedIn:"root"}),t}(),l=function(){return function(){}}()},"9Nts":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"9UdO":function(t,e,n){n("q94Q")("dispose")},"9Z1F":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),a=n("zotm");function s(t){return function(e){var n=new u(t),r=e.lift(n);return n.caught=r}}var u=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.selector,this.caught))},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new o.a(this,void 0,void 0);this.add(r),Object(a.a)(this,n,void 0,void 0,r)}},e}(i.a)},"9r11":function(t,e,n){t.exports=n("ArVK")},A9d8:function(t,e,n){"use strict";var r=n("YxH6").IteratorPrototype,i=n("tzov"),o=n("2Hee"),a=n("S4gH"),s=n("0i0S"),u=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,l,!1,!0),s[l]=u,t}},ABqa:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r,o=n("mrSG"),a={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},s=function(t){function e(n,r,i){var o=t.call(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o.code=n,o.details=i,o}return o.__extends(e,t),e}(Error),u=function(){function t(t){this.app=t}return t.prototype.getAuthToken=function(){return o.__awaiter(this,void 0,void 0,function(){var t;return o.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.app.INTERNAL.getToken()];case 1:return(t=e.sent())?[2,t.accessToken]:[2,void 0];case 2:return e.sent(),[2,void 0];case 3:return[2]}})})},t.prototype.getInstanceIdToken=function(){return o.__awaiter(this,void 0,void 0,function(){var t;return o.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.app.messaging?[4,this.app.messaging().getToken()]:[2,void 0];case 1:return(t=e.sent())?[2,t]:[2,void 0];case 2:return e.sent(),[2,void 0];case 3:return[2]}})})},t.prototype.getContext=function(){return o.__awaiter(this,void 0,void 0,function(){var t,e;return o.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return t=n.sent(),[4,this.getInstanceIdToken()];case 2:return e=n.sent(),[2,{authToken:t,instanceIdToken:e}]}})})},t}();function l(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}var c=function(){function t(){}return t.prototype.encode=function(t){var e=this;if(null==t)return null;if(t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&isFinite(t))return t;if(!0===t||!1===t)return t;if("[object String]"===Object.prototype.toString.call(t))return t;if(Array.isArray(t))return t.map(function(t){return e.encode(t)});if("function"==typeof t||"object"==typeof t)return l(t,function(t){return e.encode(t)});throw new Error("Data cannot be encoded in JSON: "+t)},t.prototype.decode=function(t){var e=this;if(null===t)return t;if(t["@type"])switch(t["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=parseFloat(t.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+t);return n;default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map(function(t){return e.decode(t)}):"function"==typeof t||"object"==typeof t?l(t,function(t){return e.decode(t)}):t},t}(),h=function(){function t(t,e){var n=this;void 0===e&&(e="us-central1"),this.app_=t,this.region_=e,this.serializer=new c,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return n.deleteService()}},this.contextProvider=new u(t),this.cancelAllRequests=new Promise(function(t){n.deleteService=function(){return t()}})}return Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),t.prototype._url=function(t){var e=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+e+"/"+n+"/"+t:"https://"+n+"-"+e+".cloudfunctions.net/"+t},t.prototype.useFunctionsEmulator=function(t){this.emulatorOrigin=t},t.prototype.httpsCallable=function(t,e){var n=this;return function(r){return n.call(t,r,e||{})}},t.prototype.postJSON=function(t,e,n){return o.__awaiter(this,void 0,void 0,function(){var r,i;return o.__generator(this,function(o){switch(o.label){case 0:n.append("Content-Type","application/json"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(t,{method:"POST",body:JSON.stringify(e),headers:n})];case 2:return r=o.sent(),[3,4];case 3:return o.sent(),[2,{status:0,json:null}];case 4:i=null,o.label=5;case 5:return o.trys.push([5,7,,8]),[4,r.json()];case 6:return i=o.sent(),[3,8];case 7:return o.sent(),[3,8];case 8:return[2,{status:r.status,json:i}]}})})},t.prototype.call=function(t,e,n){return o.__awaiter(this,void 0,void 0,function(){var r,i,u,l,c,h,f,d;return o.__generator(this,function(o){switch(o.label){case 0:return r=this._url(t),e=this.serializer.encode(e),i={data:e},u=new Headers,[4,this.contextProvider.getContext()];case 1:return(l=o.sent()).authToken&&u.append("Authorization","Bearer "+l.authToken),l.instanceIdToken&&u.append("Firebase-Instance-ID-Token",l.instanceIdToken),c=n.timeout||7e4,[4,Promise.race([this.postJSON(r,i,u),(p=c,new Promise(function(t,e){setTimeout(function(){e(new s("deadline-exceeded","deadline-exceeded"))},p)})),this.cancelAllRequests])];case 2:if(!(h=o.sent()))throw new s("cancelled","Firebase Functions instance was deleted.");
1if(f=function(t,e,n){var r=function(t){if(t>=200&&t<300)return"ok";switch(t){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(h.status),i=r,o=void 0;try{var u=e.error;if(u){var l=u.status;if("string"==typeof l){if(!a[l])return new s("internal","internal");r=a[l]}i=l;var c=u.message;"string"==typeof c&&(i=c),void 0!==(o=u.details)&&(o=n.decode(o))}}catch(f){}return"ok"===r?null:new s(r,i,o)}(0,h.json,this.serializer))throw f;if(!h.json)throw new s("internal","Response is not valid JSON object.");if(void 0===(d=h.json.data)&&(d=h.json.result),void 0===d)throw new s("internal","Response is missing data field.");return[2,{data:this.serializer.decode(d)}]}var p})})},t}(),f="functions";function d(t,e,n){return new h(t,n)}function p(t){t.INTERNAL.registerService(f,d,{Functions:h},void 0,!0)}p(i),e.registerFunctions=p},ArVK:function(t,e,n){n("d8cw"),t.exports=n("vLVD")("Array","find")},AytR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={production:!0,firebase_config:{apiKey:"AIzaSyA_h_On7Q8yTaZIgc8nQQRvQSdP34hD3B4",authDomain:"isitech.firebaseapp.com",databaseURL:"https://isitech.firebaseio.com",projectId:"isitech",storageBucket:"isitech.appspot.com",messagingSenderId:"948189380720"},fcm_messaging_public_key:"BLcRoOmCMQkpnWA76UjRvJ_h8oNkZjlw_r6xD8dv_oaIEUsgTc_BPMkpu9Q9mjmbFaBOfVY7kUW4ypVJAArhT2o",VERSION:"1.0.11",REGISTRATION_PAGE:"https://www.scommettendo.it/affiliati.jsp",REGISTRATION_PAGE_MOBILE:"https://www.scommettendo.it/affiliati.jsp",SELF_SERVICE_PAGE:"https://secure1.puntoricarica.it/ScMobileService/RicaricheTel.aspx"}},AzFY:function(t,e,n){t.exports=n("tuBy")},"B+2a":function(t,e,n){"use strict";n.d(e,"c",function(){return d}),n.d(e,"b",function(){return p}),n.d(e,"a",function(){return m});var r=n("mrSG"),i=(n("6nsN"),n("5x/H"),n("Wcq6")),o=n("0/uQ"),a=n("F/XL"),s=n("xMyE"),u=n("67Y/"),l=n("uxqg"),c=n("tnAE"),h=n("8s+1"),f=n("CcnG");function d(t){var e=i.firestore(),n="websites/"+t;return console.log("here is the hostname: ",n),n?(console.log('Recived request for : GET "'+n+'"'),Object(o.a)(e.doc(n).get().then(function(t){if(t.exists)return"pvr/"+t.data().pvr;throw new Error("Dominio non corretto o non agganciato.")}).then(function(t){return e.doc(t).get()}).then(function(t){return console.log('Fetch finished loading: GET "'+n+'"',t.data()),Object(l.b)(t.data())}).catch(function(t){return console.log("error",n,t),new l.a}))):null}var p=function(){function t(t){this.principal=t}return t.prototype.resolve=function(t,e){var n=this;if(this.principal.pvr())return Object(a.a)(this.principal.pvr());var r=t.paramMap.get("pvr");return console.log("parameter pvr:",r),d(r).pipe(Object(s.a)(function(t){return console.log("set pvr",t)}),Object(s.a)(function(t){return n.principal.setPvr(t)}))},t.ngInjectableDef=f.T({factory:function(){return new t(f.X(h.a))},token:t,providedIn:"root"}),t}(),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getUrl=function(){return"pvr"},e}return Object(r.__extends)(e,t),e.prototype.checkDomainNameTaken=function(t){return this.query(!1,{field:"domainName",operator:"==",value:t}).pipe(Object(u.a)(function(t){return!(t&&t.length)}))},e}(c.a)},B9Yq:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},BPfQ:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n("ZZ/e");var r=function(){function t(t,e){this.navParams=t,this.modalController=e}return t.prototype.ngOnInit=function(){this.navParams.data&&this.navParams.data.message&&(this.message=this.navParams.data.message)},t.prototype.dismiss=function(){this.modalController.dismiss({action:"cancel"})},t}()},BloW:function(t,e,n){var r=n("5eG6"),i=n("ysHE").WeakMap;t.exports="function"==typeof i&&/native code/.test(r.call(i))},C9U0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}
1,t}()},CS9Q:function(t,e,n){"use strict";var r=n("mrSG"),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}();n.d(e,"a",function(){return o});var o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},CcnG:function(t,e,n){"use strict";var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),a=n("6blF"),s=n("p0ib"),u=n("FFOo");function l(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(u.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new i.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=i.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return l()(this)},e}(a.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function m(){return new o.a}function g(t){for(var e in t)if(t[e]===g)return e;throw Error("Could not find renamed property on target object.")}function v(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}n.d(e,"jb",function(){return No}),n.d(e,"kb",function(){return jo}),n.d(e,"lb",function(){return Ro}),n.d(e,"ib",function(){return di}),n.d(e,"g",function(){return Xi}),n.d(e,"S",function(){return Ki}),n.d(e,"y",function(){return $i}),n.d(e,"U",function(){return _r}),n.d(e,"Y",function(){return wr}),n.d(e,"c",function(){return fi}),n.d(e,"C",function(){return mi}),n.d(e,"B",function(){return gi}),n.d(e,"b",function(){return vi}),n.d(e,"d",function(){return ci}),n.d(e,"e",function(){return hi}),n.d(e,"W",function(){return po}),n.d(e,"M",function(){return Ui}),n.d(e,"ab",function(){return Bi}),n.d(e,"u",function(){return Po}),n.d(e,"f",function(){return Mo}),n.d(e,"m",function(){return $r}),n.d(e,"l",function(){return si}
1),n.d(e,"G",function(){return ur}),n.d(e,"H",function(){return sr}),n.d(e,"a",function(){return N}),n.d(e,"n",function(){return ti}),n.d(e,"r",function(){return Zr}),n.d(e,"Q",function(){return $}),n.d(e,"O",function(){return lr}),n.d(e,"N",function(){return cr}),n.d(e,"T",function(){return C}),n.d(e,"V",function(){return H}),n.d(e,"q",function(){return gn}),n.d(e,"X",function(){return zt}),n.d(e,"p",function(){return T}),n.d(e,"o",function(){return Rt}),n.d(e,"A",function(){return Mt}),n.d(e,"I",function(){return Ft}),n.d(e,"z",function(){return Ni}),n.d(e,"D",function(){return or}),n.d(e,"E",function(){return rr}),n.d(e,"F",function(){return ir}),n.d(e,"i",function(){return ki}),n.d(e,"j",function(){return Wn}),n.d(e,"k",function(){return tr}),n.d(e,"v",function(){return Yn}),n.d(e,"x",function(){return Xn}),n.d(e,"w",function(){return Yr}),n.d(e,"J",function(){return no}),n.d(e,"K",function(){return to}),n.d(e,"L",function(){return Kr}),n.d(e,"P",function(){return oo}),n.d(e,"h",function(){return so}),n.d(e,"s",function(){return ko}),n.d(e,"t",function(){return To}),n.d(e,"R",function(){return Ae}),n.d(e,"Z",function(){return Do}),n.d(e,"tb",function(){return De}),n.d(e,"db",function(){return yi}),n.d(e,"bb",function(){return xn}),n.d(e,"cb",function(){return Qn}),n.d(e,"eb",function(){return Br}),n.d(e,"fb",function(){return Xr}),n.d(e,"gb",function(){return Ir}),n.d(e,"rb",function(){return M}),n.d(e,"wb",function(){return q}),n.d(e,"Gb",function(){return B}),n.d(e,"ub",function(){return li}),n.d(e,"vb",function(){return ui}),n.d(e,"hb",function(){return Aa}),n.d(e,"mb",function(){return Qa}),n.d(e,"nb",function(){return tl}),n.d(e,"ob",function(){return ta}),n.d(e,"pb",function(){return bs}),n.d(e,"qb",function(){return xa}),n.d(e,"sb",function(){return Ta}),n.d(e,"xb",function(){return Ua}),n.d(e,"yb",function(){return Va}),n.d(e,"zb",function(){return qs}),n.d(e,"Ab",function(){return as}),n.d(e,"Cb",function(){return ws}),n.d(e,"Eb",function(){return _s}),n.d(e,"Bb",function(){return Hs}),n.d(e,"Db",function(){return zs}),n.d(e,"Fb",function(){return Ms}),n.d(e,"Hb",function(){return $s}),n.d(e,"Ib",function(){return Xo}),n.d(e,"Jb",function(){return Qs});var y=g({ngComponentDef:g}),b=g({ngInjectableDef:g}),w=g({ngInjectorDef:g}),_=g({ngModuleDef:g}),S=g({ngBaseDef:g}),E=g({__NG_ELEMENT_ID__:g});function C(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function I(t){return t&&t.hasOwnProperty(b)?t[b]:null}function k(t){return t&&t.hasOwnProperty(w)?t[w]:null}var T=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?C({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),O="__parameters__",A="__prop__metadata__";function x(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var i=t.apply(void 0,Object(r.__spread)(e));for(var o in i)this[o]=i[o]}}}function D(t,e,n){var i=x(e);function o(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof o)return i.apply(this,e),this;var a=new((t=o).bind.apply(t,Object(r.__spread)([void 0],e)));return s.annotation=a,s;function s(t,e,n){for(var r=t.hasOwnProperty(O)?t[O]:Object.defineProperty(t,O,{value:[]})[O];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(a),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function P(t,e,n,i){var o=x(e);function a(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof a)return o.apply(this,e),this;var s=new((t=a).bind.apply(t,Object(r.__spread)([void 0],e)));return function(t,n){var o=t.constructor,a=o.hasOwnProperty(A)?o[A]:Object.defineProperty(o,A,{value:{}})[A];a[n]=a.hasOwnProperty(n)&&a[n]||[],a[n].unshift(s),i&&i.apply(void 0,Object(r.__spread)([t,n],e))}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a}var N=new T("AnalyzeForEntryComponents"),j="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global||j||R,L=Promise.resolve(0),F=null;function V(){if(!F){var t=M.Symbol;if(t&&t.iterator)F=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(F=r)}}return F}function U(t){"undefined"==typeof Zone?L.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function q(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function B(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(B).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}var z=g({__forward_ref__:g});function H(t){return t.__forward_ref__=H,t.toString=function(){return B(this())},t}function G(t){var e=t;return"function"==typeof e&&e.hasOwnProperty(z)&&e.__forward_ref__===H?e():t}var $=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),K=0,W=1,Q=2,J=3,X=5,Y=6,Z=7,tt=8,et=9,nt=10,rt=11,it=12,ot=13,at=15,st=17,ut=18,lt=0,ct=1,ht=6,ft=8,dt="__ngContext__",pt=8,mt=8,gt=9,vt=-1,yt=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}
1(),bt=yt.prototype;function wt(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":"object"==typeof t&&"function"==typeof t.type?t.type.name||t.type:""+t}function _t(t){for(;Array.isArray(t);)t=t[X];return t}function St(t,e){return _t(e[t.index])}function Et(t,e){var n=e[t];return n.length>=ut?n:n[X]}function Ct(t){return null!==t.template}function It(t){return t[dt]}function kt(t){var e=It(t);return e?Array.isArray(e)?e:e.lView:null}function Tt(t){return 32767&t}function Ot(t,e){for(var n=t>>16,r=e;n>0;)r=r[st],n--;return r}var At=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(M);function xt(t){for(var e=t[Y];e&&2===e.type;)e=(t=t[st])[Y];return t}var Dt,Pt,Nt,jt,Rt=D("Inject",function(t){return{token:t}}),Mt=D("Optional"),Lt=D("Self"),Ft=D("SkipSelf"),Vt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({}),Ut=void 0;function qt(t){var e=Ut;return Ut=t,e}function Bt(t){var e=Dt;return Dt=t,e}function zt(t,e){return void 0===e&&(e=Vt.Default),(Dt||function(t,e){if(void 0===e&&(e=Vt.Default),void 0===Ut)throw new Error("inject() must be called from an injection context");return null===Ut?Ht(t,void 0,e):Ut.get(t,e&Vt.Optional?null:void 0,e)})(t,e)}function Ht(t,e,n){var r=I(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Vt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+B(t)+"]")}function Gt(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=Vt.Default,a=0;a<r.length;a++){var s=r[a];s instanceof Mt||"Optional"===s.ngMetadataName?o|=Vt.Optional:s instanceof Ft||"SkipSelf"===s.ngMetadataName?o|=Vt.SkipSelf:s instanceof Lt||"Self"===s.ngMetadataName?o|=Vt.Self:i=s instanceof Rt?s.token:s}e.push(zt(i,o))}else e.push(zt(r))}return e}function $t(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function Kt(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function Wt(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function Qt(t,e,n,r){if(!r){var i=2&t[W]?e:n;i&&Jt(t,i)}}function Jt(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}function Xt(){return jt}function Yt(){return Pt}function Zt(t){Pt=t}function te(t,e){Pt=t,jt=e}function ee(){return Nt}function ne(t){Nt=t}function re(t){return void 0===t&&(t=jt),1==(1&t[W])}var ie=!1;function oe(){return ie}function ae(t){ie=t}var se=!0;function ue(){return se}function le(t){se=t}function ce(t,e){var n=jt;t&&(se=t[K].firstTemplatePass);return Pt=e,Nt=!0,jt=t,n}function he(t){var e=jt[K];re(jt)?jt[W]&=-2:(Qt(jt,e.viewHooks,e.viewCheckHooks,ie),jt[W]&=-11,jt[W]|=32,jt[Z]=e.bindingStartIndex),ce(t,null)}var fe=!0;function de(t){var e=fe;return fe=t,e}var pe=255,me=0;function ge(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+mt]?-1:t.injectorIndex}function ye(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[Y],r=1;n&&-1===n.injectorIndex;)n=(e=e[st])?e[Y]:null,r++;return n?n.injectorIndex|r<<16:-1}var be={};function we(t,e,n,r,i,o){var a=e[K],s=a.data[t+pt],u=function(t,e,n,r,i){for(var o=t.providerIndexes,a=e[K].data,s=65535&o,u=t.directiveStart,l=o>>16,c=i?s+l:t.directiveEnd,h=r?s:s+l;h<c;h++){var f=a[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var d=a[u];if(d&&Ct(d)&&d.type===n)return u}return null}(s,e,n,null==r?function(t){return 1==(1&t.flags)}(s)&&fe:r!=a&&3===s.type,i&Vt.Host&&o===s);return null!==u?_e(a.data,e,u,s):be}function _e(t,e,n,r){var i,o=e[n];if(null!=(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==bt){var a=o;if(a.resolving)throw new Error("Circular dep for "+wt(t[n]));var s=de(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Bt(a.injectImpl));var l=Yt(),c=Xt();te(r,e);try{o=e[n]=a.factory(null,t,e,r)}finally{a.injectImpl&&Bt(u),de(s),a.resolving=!1,te(l,c)}}return o}function Se(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<<t)}function Ee(t,e){return!(t&Vt.Self||t&Vt.Host&&e)}var Ce=function(){function t(t,e){this._tNode=t,this._lView=e}return t.prototype.get=function(t,e){return function(t,e,n,r,i){if(void 0===r&&(r=Vt.Default),t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[E];return"number"==typeof e?e&pe:e}(n);if("function"==typeof o){var a=Yt(),s=Xt();te(t,e);try{var u=o();if(null!=u||r&Vt.Optional)return u;throw new Error("No provider for "+wt(n)+"!")}finally{te(a,s)}}else if("number"==typeof o){var l=null,c=ve(t,e),h=vt,f=r&Vt.Host?xt(e)[Y]:null;for((-1===c||r&Vt.SkipSelf)&&(h=-1===c?ye(t,e):e[c+mt],Ee(r,!1)?(l=e[K],c=Tt(h),e=Ot(h,e)):c=-1);-1!==c;){h=e[c+mt];var d=e[K];if(Se(o,c,d.data)){var p=we(c,e,n,l,r,f);if(p!==be)return p}Ee(r,e[K].data[c+pt]===f)&&Se(o,c,e)?(l=d,c=Tt(h),e=Ot(h,e)):c=-1}}}if(r&Vt.Optional&&void 0===i&&(i=null),0==(r&(Vt.Self|Vt.Host))){var m=e[nt];return m?m.get(n,i,r&Vt.Optional):Ht(n,i,r&Vt.Optional)}if(r&Vt.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+wt(n)+"]")}(this._tNode,this._lView,t,void 0,e)},t}();function Ie(t,e){t[dt]=e}var ke=/([A-Z])/g;function Te(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Oe(t,e){var n=De(t),r=De(e);return n&&r?function(t,e,n){for(var r=t[V()](),i=e[V()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;
1if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,Oe):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||q(t,e)}var Ae=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),xe=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function De(t){return!!Pe(t)&&(Array.isArray(t)||!(t instanceof Map)&&V()in t)}function Pe(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Ne={},je="ngProjectAs";function Re(t){return!!t.listen}var Me={createRenderer:function(t,e){return document}},Le=[];function Fe(t,e,n,r,i){0===t?Re(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Re(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function Ve(t){var e=t[K].childIndex;return-1===e?null:t[e]}function Ue(t,e){var n;return t.length>=ut&&(n=t[Y])&&2===n.type?function(e,n){if(-1===e.index){var r=t[at];return r>-1?t[Q][r]:null}return t[Q][e.parent.index]}(n):t[Q]===e?null:t[Q]}function qe(t){if(t.length>=ut){var e=t;!function(t){var e,n=t[K];null!=n&&null!=(e=n.destroyHooks)&&Jt(t,e)}(e),(i=(r=e)[K]&&r[K].pipeDestroyHooks)&&Jt(r,i),function(t){var e=t[K].cleanup;if(null!=e){for(var n=t[tt],r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){var i=n[e[r+2]],o=_t(t[e[r+1]]),a=e[r+3];"boolean"==typeof a?o.removeEventListener(e[r],i,a):a>=0?n[a]():n[-a].unsubscribe(),r+=2}else"number"==typeof e[r]?(0,n[e[r]])():e[r].call(n[e[r+1]]);t[tt]=null}}(e);var n=e[Y];n&&3===n.type&&Re(e[it])&&e[it].destroy()}var r,i}var Be="@",ze=Promise.resolve(null);function He(t){var e=t[K];if(e.firstTemplatePass=!1,le(!1),!re(t)){var n=oe();(function(t,e,n){!n&&32&t[W]&&(Qt(t,e.initHooks,e.checkHooks,n),t[W]&=-33)})(t,e,n),function(t){for(var e=Ve(t);null!==e;e=e[J])if(e.length<ut&&-1===e[lt])for(var n=e,r=0;r<n[ct].length;r++){var i=n[ct][r];Ke(i,i[K],i[et])}}(t),function(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.data[n].contentQueriesRefresh(n-ut,t.contentQueries[e+1])}}(e),Qt(t,e.contentHooks,e.contentCheckHooks,n),function(t,e){if(t.expandoInstructions)for(var n=e[Z]=t.expandoStartIndex,r=-1,i=-1,o=0;o<t.expandoInstructions.length;o++){var a=t.expandoInstructions[o];if("number"==typeof a)if(a<=0){i=-a;var s=t.expandoInstructions[++o];r=n+=gt+s}else n+=a;else null!==a&&(e[Z]=n,a(2,_t(e[r]),i)),r++}}(e,t)}!function(t){if(null!=t)for(var e=0;e<t.length;e++)void 0,void 0,16==(16&(n=Et(t[e],Xt()))[W])&&12&n[W]&&(function(t){for(var e=t[K],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(n),rn(n,n[et]));var n}(e.components)}function Ge(t,e,n,r,i,o,a,s){var u=e.blueprint.slice();return u[W]=51|r,u[Q]=u[st]=t,u[et]=n,u[rt]=i||t&&t[rt],u[it]=o||t&&t[it],u[ot]=a||t&&t[ot]||null,u[nt]=s||t&&t[nt]||null,u}function $e(t,e,n,r,i){var o=Xt(),a=o[K],s=t+ut;o[s]=n;var u=a.data[s];null==u&&(u=a.data[s]=Ze(o,e,s,r,i,null));var l=Yt(),c=ee();return l&&(!c||null!=l.child||null===u.parent&&2!==l.type?c||(l.next=u):l.child=u),null==a.firstChild&&(a.firstChild=u),Zt(u),ne(!0),u}function Ke(t,e,n){var r,i=ee(),o=Yt();if(ne(!0),Zt(null),128&t[W])tn(function(t){for(var e=Array.isArray(t)?t:kt(t);e&&!(128&e[W]);)e=e[Q];return e}(t)[et]);else try{ne(!0),Zt(null),r=ce(t,t[Y]),Xe(),e.template(Qe(t),n),t[K].firstTemplatePass=!1,le(!1),He(t)}finally{he(r),ne(i),Zt(o)}}function We(t,e,n){var r=t[rt],i=ce(t,t[Y]),o=!oe();try{o&&r.begin&&r.begin(),re(t)&&(n&&(Xe(),n(1,e)),He(t),t[W]&=-2),n&&n(2,e),He(t)}finally{o&&r.end&&r.end(),he(i)}}function Qe(t){return re(t)?1:2}var Je=null;function Xe(){Je=null}function Ye(t,e,n,r,i,o,a){var s=ut+n,u=s+r,l=function(t,e){var n=new Array(e).fill(null,0,t).fill(Ne,t);return n[at]=-1,n[Z]=t,n}(s,u);return l[K]={id:t,blueprint:l,template:e,viewQuery:a,node:null,data:l.slice(),childIndex:-1,bindingStartIndex:s,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null}}function Ze(t,e,n,r,i,o){var a=Yt(),s=ee()?a:a&&a.parent,u=s&&t&&s!==t[Y]?s:null;return{type:e,index:n,injectorIndex:u?u.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,flags:0,providerIndexes:0,tagName:r,attrs:i,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:u,detached:null,stylingTemplate:null,projection:null}}function tn(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];We(kt(n),n)}}function en(t,e){var n=t[rt];n.begin&&n.begin(),re(t)&&rn(t,e),rn(t,e),n.end&&n.end()}function nn(t){tn(t[et])}function rn(t,e){var n=t[K],r=ce(t,t[Y]),i=n.template,o=n.viewQuery;try{Xe(),function(e,n,r){e&&re(t)&&e(1,r)}(o,0,e),i(Qe(t),e),He(t),function(e,n,r){e&&!re(t)&&e(2,r)}(o,0,e)}finally{he(r)}}var on=ze;function an(t,e,n,r,i,o){Nt=!1,Pt=null;var a,s=n[K],u=Ge(n,(a=e.template).ngPrivateData||(a.ngPrivateData=Ye(-1,a,e.consts,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery)),null,e.onPush?8:4,r,i,o),l=$e(0,3,t,null,null);return s.firstTemplatePass&&(function(t,e,n){var r="string"!=typeof n?n[E]:n.charCodeAt(0)||0;null==r&&(r=n[E]=me++);var i=r&pe,o=1<<i,a=64&i,s=32&i,u=e.data;128&i?a?s?u[t+7]|=o:u[t+6]|=o:s?u[t+5]|=o:u[t+4]|=o:a?s?u[t+3]|=o:u[t+2]|=o:s?u[t+1]|=o:u[t]|=o}(function(t,e){var n=ve(t,e);if(-1!==n)return n;var r=e[K];r.firstTemplatePass&&(t.injectorIndex=e.length,ge(r.data,t),ge(e,null),ge(r.blueprint,null));var i=ye(t,e),o=Tt(i),a=Ot(i,e),s=t.injectorIndex;if(i!==vt)for(var u=a[K].data,l=0;l<8;l++)e[s+l]=a[o+l]|u[o+l];return e[s+mt]=i,s}
1(l,n),n[K],e.type),l.flags=1,function(t,e,n){t.flags=1&t.flags,t.directiveStart=e,t.directiveEnd=e+1,t.providerIndexes=e}(l,n.length),function(t){var e=Xt()[K];(e.components||(e.components=[])).push(t.index)}(l)),u[X]=n[ut],u[Y]=l,n[ut]=u}function sn(t,e,n,r,i){var o=n[K],a=function(t,e,n){var r=Yt();t.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),function(t,e,n){var i=-(r.index-ut),o=t.data.length-(65535&r.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,o,1)}(t),function(t,e,n,r){t.data.push(n);var i=new yt(r,Ct(n),null);t.blueprint.push(i),e.push(i)}(t,e,n,n.factory));var i=_e(t.data,e,e.length-1,r);return function(t,e,n,r){var i=St(e,t);Ie(n,t),i&&Ie(i,t),null!=r.attributes&&3==e.type&&function(t,e){for(var n=Xt()[it],r=Re(n),i=0;i<e.length;){var o=e[i++];if("number"==typeof o){if(0!==o)break;var a=e[i++],s=e[i++],u=e[i++];r?n.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u)}else u=e[i++],o!==je&&(o[0]===Be?r&&n.setProperty(t,o,u):r?n.setAttribute(t,o,u):t.setAttribute(o,u))}}(i,r.attributes)}(e,r,i,n),i}(o,n,e);if(r.components.push(a),t[et]=a,i&&i.forEach(function(t){return t(a,e)}),o.firstTemplatePass&&e.hostBindings){var s=Yt();e.hostBindings(1,a,s.index-ut)}return a}function un(t,e){return{components:[],scheduler:t||At,clean:on,playerHandler:e||null,flags:0}}function ln(t,e){var n,r,i,o,a=kt(t)[K],s=a.data.length-1;n=s,i=e.doCheck,o=a,(r=e.onInit)&&(o.initHooks||(o.initHooks=[])).push(n,r),i&&((o.initHooks||(o.initHooks=[])).push(n,i),(o.checkHooks||(o.checkHooks=[])).push(n,i)),function(t,e){if(t.firstTemplatePass)for(var n=e.directiveStart,r=e.directiveEnd;n<r;n++){var i=t.data[n];$t(i,t,n),Kt(i,t,n),Wt(i,t,n)}}(a,{directiveStart:s,directiveEnd:s+1})}function cn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var hn="__source",fn=new Object,dn=fn,pn=new T("INJECTOR"),mn=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=fn),e===fn)throw new Error("NullInjectorError: No provider for "+B(t)+"!");return e},t}(),gn=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new kn(t,e):new kn(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=fn,t.NULL=new mn,t.ngInjectableDef=C({providedIn:"any",factory:function(){return zt(pn)}}),t.__NG_ELEMENT_ID__=function(){return vn()},t}(),vn=cn,yn=function(t){return t},bn=[],wn=yn,_n=function(){return Array.prototype.slice.call(arguments)},Sn=g({provide:String,useValue:g}),En=gn.NULL,Cn=/\n/gm,In="\u0275",kn=function(){function t(t,e,n){void 0===e&&(e=En),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(gn,{token:gn,fn:yn,deps:bn,value:this,useNew:!1}),r.set(pn,{token:pn,fn:yn,deps:bn,value:this,useNew:!1}),function t(e,n){if(n)if((n=G(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw An("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw An("Unexpected provider",n);var i=G(n.provide),o=function(t){var e=function(t){var e=bn,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=G(n[r]))instanceof Array)for(var o=0,a=u;o<a.length;o++){var s=a[o];s instanceof Mt||s==Mt?i|=1:s instanceof Ft||s==Ft?i&=-3:s instanceof Lt||s==Lt?i&=-5:u=s instanceof Rt?s.token:G(s)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=G(t.useExisting),options:6}]}else if(!(n||Sn in t))throw An("'deps' required",t);return e}(t),n=yn,r=bn,i=!1,o=G(t.provide);
1if(Sn in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=G(t.useClass);else{if("function"!=typeof o)throw An("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==_n)throw Tn(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:_n,value:bn});a.deps.push({token:i=n,options:6})}var s=e.get(i);if(s&&s.fn==_n)throw Tn(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=Vt.Default);var i=this._records.get(t);try{return function t(e,n,i,o,a,s){try{return function(e,n,i,o,a,s){var u,l;if(!n||s&Vt.SkipSelf)s&Vt.Self||(l=o.get(e,a,Vt.Default));else{if((l=n.value)==wn)throw Error(In+"Circular dependency");if(l===bn){n.value=wn;var c=n.useNew,h=n.fn,f=n.deps,d=bn;if(f.length){d=[];for(var p=0;p<f.length;p++){var m=f[p],g=m.options,v=2&g?i.get(m.token):void 0;d.push(t(m.token,v,i,v||4&g?o:En,1&g?null:gn.THROW_IF_NOT_FOUND,Vt.Default))}}n.value=l=c?new((u=h).bind.apply(u,Object(r.__spread)([void 0],d))):h.apply(void 0,d)}}return l}(e,n,i,o,a,s)}catch(u){throw u instanceof Error||(u=new Error(u)),(u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(e),n&&n.value==wn&&(n.value=bn),u}}(t,i,this._records,this.parent,e,n)}catch(a){var o=a.ngTempTokenPath;throw t[hn]&&o.unshift(t[hn]),a.message=On("\n"+a.message,o,this.source),a.ngTokenPath=o,a.ngTempTokenPath=null,a}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(B(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Tn(t){return An("Cannot mix multi providers and regular providers",t)}function On(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==In?t.substr(2):t;var r=B(e);if(e instanceof Array)r=e.map(B).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):B(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Cn,"\n ")}function An(t,e){return new Error(On(t,e))}var xn=new T("The presence of this token marks an injector as being the root injector."),Dn={},Pn={},Nn=[],jn=void 0;function Rn(){return void 0===jn&&(jn=new mn),jn}var Mn=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1;var i=[];Vn([t],function(t){return r.processInjectorType(t,[],i)}),e&&Vn(e,function(n){return r.processProvider(n,t,e)}),this.records.set(pn,Fn(void 0,this)),this.isRootInjector=this.records.has(xn),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=dn),void 0===n&&(n=Vt.Default),this.assertNotDestroyed();var r,i=qt(this);try{if(!(n&Vt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof T)&&I(t);a&&this.injectableDefInScope(a)&&(o=Fn(Ln(t),Dn),this.records.set(t,o))}if(void 0!==o)return this.hydrate(t,o)}return(n&Vt.Self?Rn():this.parent).get(t,e)}finally{qt(i)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(t=G(t)){var i=k(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a),u=void 0!==o&&t.providers||Nn;if(void 0!==o&&(i=k(o)),null!=i){if(this.injectorDefTypes.add(a),this.records.set(a,Fn(i.factory,Dn)),null!=i.imports&&!s){n.push(a);try{Vn(i.imports,function(t){return r.processInjectorType(t,e,n)})}finally{}}var l=i.providers;if(null!=l&&!s){var c=t;Vn(l,function(t){return r.processProvider(t,c,l)})}var h=t.ngModule;Vn(u,function(t){return r.processProvider(t,h,u)})}}},t.prototype.processProvider=function(t,e,n){var i=qn(t=G(t))?t:G(t&&t.provide),o=function(t,e,n){var i=function(t,e,n){var i,o=void 0;if(qn(t))return Ln(G(t));if(Un(t))o=function(){return G(t.useValue)};else if((i=t)&&i.useExisting)o=function(){return zt(G(t.useExisting))};else if(t&&t.useFactory)o=function(){return t.useFactory.apply(t,Object(r.__spread)(Gt(t.deps||[])))};else{var a=G(t&&(t.useClass||t.provide));if(!a){var s="";throw e&&n&&(s=" - only instances of Provider and Type are allowed, got: ["+n.map(function(e){return e==t?"?"+t+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+B(e)+"'"+s)}if(!t.deps)return Ln(a);
1o=function(){return new(a.bind.apply(a,Object(r.__spread)([void 0],Gt(t.deps))))}}return o}(t,e,n);return Un(t)?Fn(void 0,t.useValue):Fn(i,Dn)}(t,e,n);if(qn(t)||!0!==t.multi){var a=this.records.get(i);if(a&&void 0!==a.multi)throw new Error("Mixed multi-provider for "+B(i))}else{var s=this.records.get(i);if(s){if(void 0===s.multi)throw new Error("Mixed multi-provider for "+i+".")}else(s=Fn(void 0,Dn,!0)).factory=function(){return Gt(s.multi)},this.records.set(i,s);i=t,s.multi.push(t)}this.records.set(i,o)},t.prototype.hydrate=function(t,e){if(e.value===Pn)throw new Error("Cannot instantiate cyclic dependency! "+B(t));var n;return e.value===Dn&&(e.value=Pn,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Ln(t){var e=I(t);if(null===e){var n=k(t);if(null!==n)return n.factory;if(t instanceof T)throw new Error("Token "+B(t)+" is missing an ngInjectableDef definition.");if(t instanceof Function){var r=t.length;if(r>0){var i=new Array(r).fill("?");throw new Error("Can't resolve all parameters for "+B(t)+": ("+i.join(", ")+").")}return function(){return new t}}throw new Error("unreachable")}return e.factory}function Fn(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Vn(t,e){t.forEach(function(t){return Array.isArray(t)?Vn(t,e):e(t)})}function Un(t){return t&&"object"==typeof t&&Sn in t}function qn(t){return"function"==typeof t}var Bn=function(){return function(){}}(),zn=function(){return function(){}}();function Hn(t){var e=Error("No component factory found for "+B(t)+". Did you add it to @NgModule.entryComponents?");return e[$n]=t,e}var Gn,$n="ngComponent",Kn=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Hn(t)},t}(),Wn=function(){function t(){}return t.NULL=new Kn,t}(),Qn=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Hn(t);return new Jn(e,this._ngModule)},t}(),Jn=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return Object(r.__extends)(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(zn),Xn=function(){return function(){}}(),Yn=function(){return function(){}}(),Zn=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return Object(r.__extends)(e,t),e.prototype.detectChanges=function(){nn(this._view)},e.prototype.checkNoChanges=function(){!function(t){ae(!0);try{nn(t)}finally{ae(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(function(){function t(t,e,n){this._context=e,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._lView=t}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return null==this._lView[X]?function t(e,n,r){for(var i=n.child;i;)r.push(St(i,e)),4===i.type&&t(e,i,r),i=i.next;return r}(this._lView,this._lView[Y],[]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 64==(64&this._lView[W])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>
1-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}var e,n;Re(n=(e=this._lView)[it])&&n.destroyNode&&function(t,n,r,i,o){for(var a=e[K].node,s=-1,u=e,l=a.child;l;){var c=null;if(3===l.type){Fe(2,r,null,St(l,u),o);var h=u[l.index];m=h,Array.isArray(m)&&m.length===ft&&Fe(2,r,null,h[ht],o)}else if(0===l.type){var f=u[l.index];Fe(2,r,null,f[ht],o),f[ct].length&&(c=(u=f[ct][0])[K].node,o=f[ht])}else if(1===l.type){var d=xt(u),p=d[Y].projection[l.projection];Le[++s]=l,Le[++s]=u,p&&(c=(u=d[Q])[K].data[p.index])}else c=l.child;if(null===c)for(null===l.next&&2&l.flags&&(u=Le[s--],l=Le[s--]),c=l.next;!c;){if(null===(l=l.parent||u[K].node)||l===a)return null;0===l.type&&(o=(u=u[Q])[l.index][ht]),c=2===l.type&&u[J]?(u=u[J])[K].node:l.next}l=c}var m}(0,0,n),function(t){if(-1===t[K].childIndex)return qe(t);for(var e=Ve(t);e;){var n=null;if(e.length>=ut?e[K].childIndex>-1&&(n=Ve(e)):e[ct].length&&(n=e[ct][0]),null==n){for(;e&&!e[J]&&e!==t;)qe(e),e=Ue(e,t);qe(e||t),n=e&&e[J]}e=n}}(e),e[W]|=64},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[tt]||(t[tt]=[])}(e=this._lView).push(n),e[K].firstTemplatePass&&function(t){return t[K].cleanup||(t[K].cleanup=[])}(e).push(e[tt].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(;t&&!(128&t[W]);)t[W]|=8,t=t[Q];var e,n,r;t[W]|=8,r=0===(e=t[et]).flags,e.flags|=1,r&&e.clean==ze&&(e.clean=new Promise(function(t){return n=t}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,tn(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=ze,n(null)}))}(this._lView)},t.prototype.detach=function(){this._lView[W]&=-17},t.prototype.reattach=function(){this._lView[W]|=16},t.prototype.detectChanges=function(){en(this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t){ae(!0);try{!function(t){en(function(t){var e,n=It(t);if(Array.isArray(n)){var r=function(t,e){var n=t[K].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(Et(i,t)[et]===e)return i}else if(Et(ut,t)[et]===e)return ut;return-1}(n,t);(i=function(t,e,n){return{lView:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(e=Et(r,n))[X])).component=t,Ie(t,i),Ie(i.native,i)}else{var i;e=Et((i=n).nodeIndex,i.lView)}return e}(t),t)}(t)}finally{ae(!1)}}(this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._lView[Q][this._componentIndex]},t}()),tr=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return er(t)},t}(),er=cn,nr=function(){return function(){}}(),rr=function(){return function(){}}(),ir=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),or=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ar()},t}(),ar=cn,sr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),ur=function(){return function(){}}(),lr=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),cr=new lr("7.2.16"),hr=function(t){function e(e){var n=t.call(this)||this;return n.ngModule=e,n}return Object(r.__extends)(e,t),e.prototype.resolveComponentFactory=function(t){return new gr(t[y]||null,this.ngModule)},e}(Wn);function fr(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var dr=new T("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return un(zt(pr))}}),pr=new T("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return At}}),mr={},gr=function(t){function e(e,n){var r=t.call(this)||this;return r.componentDef=e,r.ngModule=n,r.componentType=e.type,r.selector=e.selectors[0][0],r.ngC
1ontentSelectors=[],r}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return fr(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return fr(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,i){var o,a,s,u,l=void 0===n,c=(i=i||this.ngModule)?function(t,e){return{get:function(n,r){var i=t.get(n,mr);return i!==mr||r===mr?i:e.get(n,r)}}}(t,i.injector):t,h=c.get(rr,Me),f=c.get(ur,null),d=l?(s=this.selector,Re(u=h.createRenderer(null,this.componentDef)||Xt()[it])?u.createElement(s,Je):null===Je?u.createElement(s):u.createElementNS(Je,s)):(o=n,a=h.createRenderer(null,null),"string"==typeof o?Re(a)?a.selectRootElement(o):a.querySelector(o):o),p=this.componentDef.onPush?136:132,m=l?un():c.get(dr),g=h.createRenderer(d,this.componentDef);n&&d&&(Re(g)?g.setAttribute(d,"ng-version",cr.full):d.setAttribute("ng-version",cr.full));var v,y,b=Ge(null,Ye(-1,null,1,0,null,null,null),m,p,h,g,f,c),w=ce(b,null);try{h.begin&&h.begin();var _=an(d,this.componentDef,b,h,g);if(y=b[K].data[0+ut],e)for(var S=0,E=b[K],C=y.projection=[],I=0;I<e.length;I++){for(var k=e[I],T=null,O=null,A=0;A<k.length;A++){E.firstTemplatePass&&(E.expandoStartIndex++,E.blueprint.splice(++S+ut,0,null),E.data.splice(S+ut,0,null),b.splice(S+ut,0,null));var x=$e(S,3,k[A],null,null);O?O.next=x:T=x,O=x}C.push(T)}v=sn(_,this.componentDef,b,m,[ln]),function(t,e,n){var r=t[K],i=ue();t[14]?t[14][J]=n:i&&(r.childIndex=e),t[14]=n}(b,ut,_),He(b)}finally{he(w),h.end&&h.end()}var D=new vr(this.componentType,v,function(t,e,n){return Gn||(Gn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(tr)),new Gn(St(e,n))}(0,y,b),b,y);return l&&(D.hostView._tViewNode.child=y),D},e}(zn),vr=function(t){function e(e,n,r,i,o){var a,s=t.call(this)||this;return s.location=r,s._rootLView=i,s._tNode=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new Zn(i),s.hostView._tViewNode=(-1,null==(a=i)[K].node&&(a[K].node=Ze(a,2,-1,null,null,null)),a[Y]=a[K].node),s.componentType=e,s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ce(this._tNode,this._rootLView)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null,this.hostView.destroy()},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Bn),yr=!0,br=!1;function wr(){return br=!0,yr}function _r(){if(br)throw new Error("Cannot enable prod mode after platform setup.");yr=!1}var Sr=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},t}(),Er=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Cr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ir(t){return(t=String(t)).match(Er)||t.match(Cr)?t:(wr()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function kr(t){var e,n,i={};try{for(var o=Object(r.__values)(t.split(",")),a=o.next();!a.done;a=o.next())i[a.value]=!0}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}function Tr(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o={};try{for(var a=Object(r.__values)(n),s=a.next();!s.done;s=a.next()){var u=s.value;for(var l in u)u.hasOwnProperty(l)&&(o[l]=!0)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return o}
1var Or,Ar=kr("area,br,col,hr,img,wbr"),xr=kr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dr=kr("rp,rt"),Pr=Tr(Dr,xr),Nr=Tr(Ar,Tr(xr,kr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Tr(Dr,kr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pr),jr=kr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rr=kr("srcset"),Mr=Tr(jr,Rr,kr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),Lr=kr("script,style,template"),Fr=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e,n=t.nodeName.toLowerCase();if(!Nr.hasOwnProperty(n))return this.sanitizedSomething=!0,!Lr.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(Mr.hasOwnProperty(s)){var u=o.value;jr[s]&&(u=Ir(u)),Rr[s]&&(e=u,u=(e=String(e)).split(",").map(function(t){return Ir(t.trim())}).join(", ")),this.buf.push(" ",a,'="',qr(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Nr.hasOwnProperty(e)&&!Ar.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(qr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Vr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function qr(t){return t.replace(/&/g,"&").replace(Vr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Br(t,e){var n=null;try{Or=Or||new Sr(t);var r=e?String(e):"";n=Or.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Or.getInertBodyElement(r)}while(r!==o);var a=new Fr,s=a.sanitizeChildren(zr(n)||n);return wr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=zr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function zr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Hr={provide:Wn,useClass:hr,deps:[Xn]},Gr=function(t){function e(e,n){var r=t.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[];var i=function(t,n){var r=e[_]||null;return r}();return r._bootstrapComponents=i.bootstrap,r._r3Injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Rn(),new Mn(t,n,e)}(e,n,[{provide:Xn,useValue:r},Hr]),r.instance=r.get(e),r}return Object(r.__extends)(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=gn.THROW_IF_NOT_FOUND),void 0===n&&(n=Vt.Default),t===gn||t===Xn||t===pn?this:this._r3Injector.get(t,e,n)},Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Wn)},enumerable:!0,configurable:!0}
1),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Xn);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}Object(r.__extends)(e,t),e.prototype.create=function(t){return new Gr(this.moduleType,t)}}(Yn);var $r=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.__extends)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,o,a,s);return e instanceof i.a&&e.add(u),u},e}(o.a),Kr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Wr(t,tr)},t}(),Wr=cn,Qr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Jr=/^url\(([^)]+)\)$/;function Xr(t){if(!(t=String(t).trim()))return"";var e=t.match(Jr);return e&&Ir(e[1])===e[1]||t.match(Qr)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(wr()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}var Yr=function(){return function(){}}(),Zr=P("Input",function(t){return{bindingPropertyName:t}},void 0,function(t){return function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t.constructor;i.hasOwnProperty(S)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(v(r.inputs,n.inputs),v(r.outputs,n.outputs),v(r.declaredInputs,n.declaredInputs))}(t),(function(t){return t.inputs||{}}(i.ngBaseDef))[e]=n[0]}}()),ti=P("HostBinding",function(t){return{hostPropertyName:t}}),ei="ngDebugContext",ni="ngOriginalError",ri="ngErrorLogger";function ii(t){return t[ei]}function oi(t){return t[ni]}function ai(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,Object(r.__spread)(e))}var si=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[ri]||ai}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?ii(t)?ii(t):this._findContext(oi(t)):null},t.prototype._findOriginalError=function(t){for(var e=oi(t);e&&oi(e);)e=oi(e);return e},t}();function ui(t){return!!t&&"function"==typeof t.then}function li(t){return!!t&&"function"==typeof t.subscribe}var ci=new T("Application Initializer"),hi=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();ui(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),fi=new T("AppId");function di(){return""+pi()+pi()+pi()}function pi(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var mi=new T("Platform Initializer"),gi=new T("Platform ID"),vi=new T("appBootstrapListener"),yi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function bi(){throw new Error("Runtime compiler is not loaded")}var wi,_i,Si=bi,Ei=bi,Ci=bi,Ii=bi,ki=function(){function t(){this.compileModuleSync=Si,this.compileModuleAsync=Ei,this.compileModuleAndAllComponentsSync=Ci,this.compileModuleAndAllComponentsAsync=Ii}return t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),Ti=function(){return function(){}}();function Oi(){var t=M.wtf;return!(!t||!(wi=t.trace)||(_i=wi.events,0))}var Ai=Oi();function xi(t,e){return null}var Di=Ai?function(t,e){return void 0===e&&(e=null),_i.createScope(t,e)}:function(t,e){return xi},Pi=Ai?function(t,e){return wi.leaveScope(t,e),e}:function(t,e){return e},Ni=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $r(!1),this.onMicrotaskEmpty=new $r(!1),this.onStable=new $r(!1),this.onError=ne
vendor: 85,326 bytes, line 1
1w $r(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,a){try{return Li(e),t.invokeTask(r,i,o,a)}finally{Fi(e)}},onInvoke:function(t,n,r,i,o,a,s){try{return Li(e),t.invoke(r,i,o,a,s)}finally{Fi(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e.hasPendingMicrotasks=i.microTask,Mi(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ri,ji,ji);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function ji(){}var Ri={};function Mi(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Li(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fi(t){t._nesting--,Mi(t)}var Vi=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $r,this.onMicrotaskEmpty=new $r,this.onStable=new $r,this.onError=new $r}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Ui=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){e.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Ni.assertNotInAngularZone(),U(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())U(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),qi=function(){function t(){this._applications=new Map,Hi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Hi.findTestabilityInTree(this,t,e)},Object(r.__decorate)([Object(r.__metadata)("design:paramtypes",[])],t)}();function Bi(t){Hi=t}var zi,Hi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Gi=new T("AllowMultipleToken"),$i=function(){return function(t,e){this.name=t,this.token=e}}();function Ki(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new T(r);return function(e){void 0===e&&(e=[]);var o=Wi();if(!o||o.injector.get(Gi,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(zi&&!zi.destroyed&&!zi.injector.get(Gi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Qi);var e=t.get(mi,null);e&&e.forEach(function(t){return t()})}(gn.create({providers:a,name:r}))}return function(t){var e=Wi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Wi(){return zi&&!zi.destroyed?zi:null}var Qi=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new Vi:("zone.js"===n?void 0:n)||new Ni({enableLongStackTrace:wr()}),o=[{provide:Ni,useValue:i}];return i.run(function(){var e=gn.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(si,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Yi(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(hi)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ui(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Ji({},e);return function(t,e,n){return t.get(Ti).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Xi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+B(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Ji(t,e){return Array.isArray(e)?e.reduce(Ji,t):Object(r.__assign)({},t,e)}var Xi=function(){function t(t,e,n,r,i,o){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=wr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new a.a(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),h=new a.a(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){Ni.assertNotInAngularZone(),U(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Ni.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,h.pipe(function(t){return l()((e=m,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof zn?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Jn?null:this._injector.get(Xn),o=n.create(gn.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(Ui,null);return a&&o.injector.get(qi).registerApplication(o.location.nativeElement,a),this._loadComponent(o),wr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Pi(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Yi(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(vi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Yi(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Di("ApplicationRef#tick()"),t}();function Yi(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Zi=function(){function t(){this.dirty=!0,this._results=[],this.changes=new $r,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[V()]=function(){return this._results[V()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),to=function(){return function(){}}(),eo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},no=function(){function t(t,e){this._compiler=t,this._config=e||eo}return t.prototype.load=function(t){return this._compiler instanceof ki?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=Object(r.__read)(t.split("#"),2),o=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(t){return t[a]}).then(function(t){return ro(t,o,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.__read)(t.split("#"),2),i=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+a]}).then(function(t){return ro(t,i,o)})},t}();function ro(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var io,oo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ao(t,tr)},t}(),ao=cn,so=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return uo()},t}(),uo=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},lo=(io=so,Object(r.__extends)(function(){return null!==io&&io.apply(this,arguments)||this},io),function(){return function(t,e){this.name=t,this.callback=e}}()),co=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof ho&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ho=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.__extends)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,i=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.__spread)([o+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=i}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof ho&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof ho&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof ho&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(co),fo=new Map,po=function(t){return fo.get(t)||null};function mo(t){fo.set(t.nativeNode,t)}var go=function(){function t(){}return t.prototype.supports=function(t){return De(t)},t.prototype.create=function(t){return new yo(t)},t}(),vo=function(t,e){return e},yo=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vo}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<So(n,r,i)?e:n,a=So(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<u&&(i[c]=h+1)}i[o.previousIndex]=l-u}}a!==s&&t(o,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!De(t))throw new Error("Error trying to diff '"+B(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,r=t[s]),null!==o&&q(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),q(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[V()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&q(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),q(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(q(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(q(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new bo(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _o),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _o),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),bo=function(){return function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),wo=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&q(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),_o=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new wo,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function So(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var Eo=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Pe(t)},t.prototype.create=function(){return new Co},t}(),Co=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Pe(t)))throw new Error("Error trying to diff '"+B(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Io(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){q(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Io=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),ko=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ft,new Mt]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=C({providedIn:"root",factory:function(){return new t([new go])}}),t}(),To=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ft,new Mt]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t.ngInjectableDef=C({providedIn:"root",factory:function(){return new t([new Eo])}}),t}(),Oo=[new Eo],Ao=new ko([new go]),xo=new To(Oo),Do=Ki(null,"core",[{provide:gi,useValue:"unknown"},{provide:Qi,deps:[gn]},{provide:qi,deps:[]},{provide:yi,deps:[]}]),Po=new T("LocaleId");function No(){return Ao}function jo(){return xo}function Ro(t){return t||"en-US"}var Mo=function(){return function(t){}}();function Lo(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Fo(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Vo(t,e){return t.nodes[e]}function Uo(t,e){return t.nodes[e]}function qo(t,e){return t.nodes[e]}function Bo(t,e){return t.nodes[e]}function zo(t,e){return t.nodes[e]}var Ho={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Go(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return $o(n,e),n}(i,t)}function $o(t,e){t[ei]=e,t[ri]=e.logError.bind(e)}function Ko(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Wo=function(){},Qo=new Map;function Jo(t){var e=Qo.get(t);return e||(e=B(t)+"_"+Qo.size,Qo.set(t,e)),e}function Xo(t,e,n,r){if(Ae.isWrapped(r)){r=Ae.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=Ae.unwrap(t.oldValues[i]);t.oldValues[i]=new Ae(o)}return r}var Yo="$$undefined",Zo="$$empty";function ta(t){return{id:Yo,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var ea=0;function na(t,e,n,r){return!(!(2&t.state)&&q(t.oldValues[e.bindingIndex+n],r))}function ra(t,e,n,r){return!!na(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function ia(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Oe(i,r)){var o=e.bindings[n].name;throw Go(Ho.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function oa(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function aa(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function sa(t,e,n,r){try{return oa(33554432&t.def.nodes[e].flags?Uo(t,e).componentView:t),Ho.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function ua(t){return t.parent?Uo(t.parent,t.parentNodeDef.nodeIndex):null}function la(t){return t.parent?t.parentNodeDef.parent:null}function ca(t,e){switch(201347067&e.flags){case 1:return Uo(t,e.nodeIndex).renderElement;case 2:return Vo(t,e.nodeIndex).renderText}}function ha(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function fa(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function da(t){return 1<<t%32}function pa(t){var e={},n=0,i={};return t&&t.forEach(function(t){var o=Object(r.__read)(t,2),a=o[0],s=o[1];"number"==typeof a?(e[a]=s,n|=da(a)):i[a]=s}),{matchedQueries:e,references:i,matchedQueryIds:n}}function ma(t,e){return t.map(function(t){var n,i,o;return Array.isArray(t)?(o=(n=Object(r.__read)(t,2))[0],i=n[1]):(o=0,i=t),i&&("function"==typeof i||"object"==typeof i)&&e&&Object.defineProperty(i,hn,{value:e,configurable:!0}),{flags:o,token:i,tokenKey:Jo(i)}})}function ga(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===$.Native?Uo(t,n.renderParent.nodeIndex).renderElement:void 0:e}var va=new WeakMap;function ya(t){var e=va.get(t);return e||((e=t(function(){return Wo})).factory=t,va.set(t,e)),e}function ba(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(ca(t,t.def.lastRenderRootNode))),wa(t,e,0,t.def.nodes.length-1,n,r,i)}function wa(t,e,n,r,i,o,a){for(var s=n;s<=r;s++){var u=t.def.nodes[s];11&u.flags&&Sa(t,u,e,i,o,a),s+=u.childCount}}function _a(t,e,n,r,i,o){for(var a=t;a&&!ha(a);)a=a.parent;for(var s=a.parent,u=la(a),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var h=s.def.nodes[c];h.ngContentIndex===e&&Sa(s,h,n,r,i,o),c+=h.childCount}if(!s.parent){var f=t.root.projectableNodes[e];if(f)for(c=0;c<f.length;c++)Ea(t,f[c],n,r,i,o)}}function Sa(t,e,n,r,i,o){if(8&e.flags)_a(t,e.ngContent.index,n,r,i,o);else{var a=ca(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Ea(t,a,n,r,i,o),32&e.bindingFlags&&Ea(Uo(t,e.nodeIndex).componentView,a,n,r,i,o)):Ea(t,a,n,r,i,o),16777216&e.flags)for(var s=Uo(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<s.length;u++)ba(s[u],n,r,i,o);1&e.flags&&!e.element.name&&wa(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function Ea(t,e,n,r,i,o){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,i);break;case 3:a.removeChild(r,e);break;case 0:o.push(e)}}var Ca=/^:([^:]+):(.+)$/;function Ia(t){if(":"===t[0]){var e=t.match(Ca);return[e[1],e[2]]}return["",t]}function ka(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function Ta(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,m,g,v,y,b){switch(t){case 1:return e+Oa(n)+r;case 2:return e+Oa(n)+r+Oa(i)+o;case 3:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s;case 4:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l;case 5:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l+Oa(c)+h;case 6:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l+Oa(c)+h+Oa(f)+d;case 7:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l+Oa(c)+h+Oa(f)+d+Oa(p)+m;case 8:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l+Oa(c)+h+Oa(f)+d+Oa(p)+m+Oa(g)+v;case 9:return e+Oa(n)+r+Oa(i)+o+Oa(a)+s+Oa(u)+l+Oa(c)+h+Oa(f)+d+Oa(p)+m+Oa(g)+v+Oa(y)+b;default:throw new Error("Does not support more than 9 expressions")}}function Oa(t){return null!=t?t.toString():""}function Aa(t,e,n,r,i,o){t|=1;var a=pa(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ya(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Wo},provider:null,text:null,query:null,ngContent:null}}function xa(t,e,n,i,o,a,s,u,l,c,h,f){var d;void 0===s&&(s=[]),c||(c=Wo);var p=pa(n),m=p.matchedQueries,g=p.references,v=p.matchedQueryIds,y=null,b=null;a&&(y=(d=Object(r.__read)(Ia(a),2))[0],b=d[1]),u=u||[];for(var w=new Array(u.length),_=0;_<u.length;_++){var S=Object(r.__read)(u[_],3),E=S[0],C=S[1],I=S[2],k=Object(r.__read)(Ia(C),2),T=k[0],O=k[1],A=void 0,x=void 0;switch(15&E){case 4:x=I;break;case 1:case 8:A=I}w[_]={flags:E,ns:T,name:O,nonMinifiedName:O,securityContext:A,suffix:x}}l=l||[];var D=new Array(l.length);for(_=0;_<l.length;_++){var P=Object(r.__read)(l[_],2);D[_]={type:0,target:P[0],eventName:P[1],propName:null}}var N=(s=s||[]).map(function(t){var e=Object(r.__read)(t,2),n=e[0],i=e[1],o=Object(r.__read)(Ia(n),2);return[o[0],o[1],i]});return f=function(t){if(t&&t.id===Yo){var e=null!=t.encapsulation&&t.encapsulation!==$.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+ea++:Zo}return t&&t.id===Zo&&(t=null),t||null}(f),h&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:m,matchedQueryIds:v,references:g,ngContentIndex:i,childCount:o,bindings:w,bindingFlags:ka(w),outputs:D,element:{ns:y,name:b,attrs:N,template:null,componentProvider:null,componentView:h||null,componentRendererType:f,publicProviders:null,allProviders:null,handleEvent:c||Wo},provider:null,text:null,query:null,ngContent:null}}function Da(t,e,n){var i,o=n.element,a=t.root.selectorOrNode,s=t.renderer;if(t.parent||!a){i=o.name?s.createElement(o.name,o.ns):s.createComment("");var u=ga(t,e,n);u&&s.appendChild(u,i)}else i=s.selectRootElement(a,!!o.componentRendererType&&o.componentRendererType.encapsulation===$.ShadowDom);if(o.attrs)for(var l=0;l<o.attrs.length;l++){var c=Object(r.__read)(o.attrs[l],3);s.setAttribute(i,c[1],c[2],c[0])}return i}function Pa(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=Na(t,n.nodeIndex,(h=o.eventName,(c=o.target)?c+":"+h:h)),s=o.target,u=t;"component"===o.target&&(s=null,u=e);var l=u.renderer.listen(s||r,o.eventName,a);t.disposables[n.outputIndex+i]=l}var c,h}function Na(t,e,n){return function(r){return sa(t,e,n,r)}}function ja(t,e,n,r){if(!ra(t,e,n,r))return!1;var i=e.bindings[n],o=Uo(t,e.nodeIndex),a=o.renderElement,s=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,s,r):u.removeAttribute(n,i,r)}(t,i,a,i.ns,s,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(sr.STYLE,i);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,i,a,s,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,a=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,a,s,r)}return!0}var Ra=new Object,Ma=Jo(gn),La=Jo(pn),Fa=Jo(Xn);function Va(t,e,n,r){return n=G(n),{index:-1,deps:ma(r,B(e)),flags:t,token:e,value:n}}function Ua(t){for(var e={},n=[],r=!1,i=0;i<t.length;i++){var o=t[i];o.token===xn&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,e[Jo(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}function qa(t,e,n){void 0===n&&(n=gn.THROW_IF_NOT_FOUND);var r,i,o=qt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var a=e.tokenKey;switch(a){case Ma:case La:case Fa:return t}var s,u=t._def.providersByKey[a];if(u){var l=t._providers[u.index];return void 0===l&&(l=t._providers[u.index]=Ba(t,u)),l===Ra?void 0:l}if((s=I(e.token))&&(r=t,null!=(i=s).providedIn&&(function(t,e){return t._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:e.token},t._providers[c]=Ra,t._providers[c]=Ba(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{qt(o)}}function Ba(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(qa(t,n[0]));case 2:return new e(qa(t,n[0]),qa(t,n[1]));case 3:return new e(qa(t,n[0]),qa(t,n[1]),qa(t,n[2]));default:for(var o=new Array(i),a=0;a<i;a++)o[a]=qa(t,n[a]);return new(e.bind.apply(e,Object(r.__spread)([void 0],o)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var i=n.length;switch(i){case 0:return e();case 1:return e(qa(t,n[0]));case 2:return e(qa(t,n[0]),qa(t,n[1]));case 3:return e(qa(t,n[0]),qa(t,n[1]),qa(t,n[2]));default:for(var o=Array(i),a=0;a<i;a++)o[a]=qa(t,n[a]);return e.apply(void 0,Object(r.__spread)(o))}}(t,e.value,e.deps);break;case 2048:n=qa(t,e.deps[0]);break;case 256:n=e.value}return n===Ra||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Ra:n}function za(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ka(n,e),Ho.dirtyParentQueries(r),Ga(r),r}function Ha(t,e,n){var r=e?ca(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);ba(n,2,i,o,void 0)}function Ga(t){ba(t,3,null,null,void 0)}function $a(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ka(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Wa=new Object;function Qa(t,e,n,r,i,o){return new Ja(t,e,n,r,i,o)}var Ja=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ya(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Ho.createRootView(t,e||[],n,i,r,Wa),s=qo(a,o).instance;return n&&a.renderer.setAttribute(Uo(a,0).renderElement,"ng-version",cr.full),new Xa(a,new es(a),s)},e}(zn),Xa=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new tr(Uo(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new os(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Bn);function Ya(t,e,n){return new Za(t,e,n)}var Za=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new tr(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new os(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=la(t),t=t.parent;return t?new os(t,e):new os(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=za(this._data,t);Ho.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new es(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Jn||(i=o.get(Xn));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=a._view).viewContainerParent=this._view,$a(o,r,i),function(t,e){var n=ua(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Ho.dirtyParentQueries(i),Ha(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Ka(o,r),null==i&&(i=o.length),$a(o,i,a),Ho.dirtyParentQueries(a),Ga(a),Ha(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=za(this._data,t);e&&Ho.destroyView(e)},t.prototype.detach=function(t){var e=za(this._data,t);return e?new es(e):null},t}();function ts(t){return new es(t)}var es=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ba(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){oa(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ho.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ho.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ho.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ga(this._view),Ho.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function ns(t,e){return new rs(t,e)}var rs=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.__extends)(e,t),e.prototype.createEmbeddedView=function(t){return new es(Ho.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new tr(Uo(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Kr);function is(t,e){return new os(t,e)}var os=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=gn.THROW_IF_NOT_FOUND),Ho.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Jo(t)},e)},t}();function as(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Uo(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vo(t,n.nodeIndex).renderText;if(20240&n.flags)return qo(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ss(t){return new us(t.renderer)}var us=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.__read)(Ia(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var i=Object(r.__read)(Ia(e),2),o=i[0],a=i[1];null!=n?this.delegate.setAttribute(t,a,n,o):this.delegate.removeAttribute(t,a,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function ls(t,e,n,r){return new cs(t,e,n,r)}var cs=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Ba(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=gn.THROW_IF_NOT_FOUND),void 0===n&&(n=Vt.Default);var r=0;return n&Vt.SkipSelf?r|=1:n&Vt.Self&&(r|=4),qa(this,{token:t,tokenKey:Jo(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Wn)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+B(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=t._providers[i];if(o&&o!==Ra){var a=o.ngOnDestroy;"function"!=typeof a||r.has(o)||(a.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),hs=Jo(nr),fs=Jo(or),ds=Jo(tr),ps=Jo(oo),ms=Jo(Kr),gs=Jo(so),vs=Jo(gn),ys=Jo(pn);function bs(t,e,n,i,o,a,s,u){var l=[];if(s)for(var c in s){var h=Object(r.__read)(s[c],2);l[h[0]]={flags:8,name:c,nonMinifiedName:h[1],ns:null,securityContext:null,suffix:null}}var f=[];if(u)for(var d in u)f.push({type:1,propName:d,target:null,eventName:u[d]});return Ss(t,e|=16384,n,i,o,o,a,l,f)}function ws(t,e,n){return Ss(-1,t|=16,null,0,e,e,n)}function _s(t,e,n,r,i){return Ss(-1,t,e,0,n,r,i)}function Ss(t,e,n,r,i,o,a,s,u){var l=pa(n),c=l.matchedQueries,h=l.references,f=l.matchedQueryIds;u||(u=[]),s||(s=[]),o=G(o);var d=ma(a,B(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:h,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ka(s),outputs:u,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function Es(t,e){return Ts(t,e)}function Cs(t,e){for(var n=t;n.parent&&!ha(n);)n=n.parent;return Os(n.parent,la(n),!0,e.provider.value,e.provider.deps)}function Is(t,e){var n=Os(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var i=e.outputs[r],o=n[i.propName];if(!li(o))throw new Error("@Output "+i.propName+" not initialized in '"+n.constructor.name+"'.");var a=o.subscribe(ks(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=a.unsubscribe.bind(a)}return n}function ks(t,e,n){return function(r){return sa(t,e,n,r)}}function Ts(t,e){var n=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:return Os(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,o){var a=o.length;switch(a){case 0:return i();case 1:return i(xs(t,e,n,o[0]));case 2:return i(xs(t,e,n,o[0]),xs(t,e,n,o[1]));case 3:return i(xs(t,e,n,o[0]),xs(t,e,n,o[1]),xs(t,e,n,o[2]));default:for(var s=Array(a),u=0;u<a;u++)s[u]=xs(t,e,n,o[u]);return i.apply(void 0,Object(r.__spread)(s))}}(t,e.parent,n,i.value,i.deps);case 2048:return xs(t,e.parent,n,i.deps[0]);case 256:return i.value}}function Os(t,e,n,i,o){var a=o.length;switch(a){case 0:return new i;case 1:return new i(xs(t,e,n,o[0]));case 2:return new i(xs(t,e,n,o[0]),xs(t,e,n,o[1]));case 3:return new i(xs(t,e,n,o[0]),xs(t,e,n,o[1]),xs(t,e,n,o[2]));default:for(var s=new Array(a),u=0;u<a;u++)s[u]=xs(t,e,n,o[u]);return new(i.bind.apply(i,Object(r.__spread)([void 0],s)))}}var As={};function xs(t,e,n,r,i){if(void 0===i&&(i=gn.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var a=r.tokenKey;a===gs&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case hs:return ss(Ds(s,e,n));case fs:return Ds(s,e,n).renderer;case ds:return new tr(Uo(s,e.nodeIndex).renderElement);case ps:return Uo(s,e.nodeIndex).viewContainer;case ms:if(e.element.template)return Uo(s,e.nodeIndex).template;break;case gs:return ts(Ds(s,e,n));case vs:case ys:return is(s,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[a];if(u){var l=qo(s,u.nodeIndex);return l||(l={instance:Ts(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=ha(s),e=la(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,As);return c!==As||i===As?c:o.root.ngModule.injector.get(r.token,i)}function Ds(t,e,n){var r;if(n)r=Uo(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!ha(r);)r=r.parent;return r}function Ps(t,e,n,r,i,o){if(32768&n.flags){var a=Uo(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var s=Ae.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new xe(s,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Ns(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&e&&Rs(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=js(t,a,e,r)),a=a.parent}}function js(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Rs(t,i,o.flags&n,r++),i+=o.childCount}return r}function Rs(t,e,n,r){var i=qo(t,e);if(i){var o=i.instance;o&&(Ho.setCurrentNode(t,e),1048576&n&&Fo(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Fo(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Ms(t,e,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:da(e),bindings:r},ngContent:null}}function Ls(t){for(var e=t.def.nodeMatchedQueries;t.parent&&fa(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&zo(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&zo(t,i).setDirty(),i+=o.childCount}}function Fs(t,e){var n=zo(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Vs(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=qo(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Vs(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var a=e.query.bindings,s=!1,u=0;u<a.length;u++){var l=a[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[l.propName]=c}s&&n.notifyOnChanges()}}function Vs(t,e,n,r,i){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(Us(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Uo(t,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(Vs(t,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var h=l[c],f=ua(h);f&&f===u&&Vs(h,0,h.def.nodes.length-1,r,i)}var d=u.template._projectedViews;if(d)for(c=0;c<d.length;c++){var p=d[c];Vs(p,0,p.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function Us(t,e,n){if(null!=n)switch(n){case 1:return Uo(t,e.nodeIndex).renderElement;case 0:return new tr(Uo(t,e.nodeIndex).renderElement);case 2:return Uo(t,e.nodeIndex).template;case 3:return Uo(t,e.nodeIndex).viewContainer;case 4:return qo(t,e.nodeIndex).instance}}function qs(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Bs(t,e,n){var r=ga(t,e,n);r&&_a(t,n.ngContent.index,1,r,null,void 0)}function zs(t,e){return Gs(128,t,new Array(e+1))}function Hs(t,e){return Gs(32,t,new Array(e))}function Gs(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ka(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function $s(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Ks(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ga(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Ws(t,e){return(null!=t?t.toString():"")+e.suffix}function Qs(t,e,n,r){for(var i=0,o=0,a=0,s=0,u=0,l=null,c=null,h=!1,f=!1,d=null,p=0;p<e.length;p++){var m=e[p];if(m.nodeIndex=p,m.parent=l,m.bindingIndex=i,m.outputIndex=o,m.renderParent=c,a|=m.flags,u|=m.matchedQueryIds,m.element){var g=m.element;g.publicProviders=l?l.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,h=!1,f=!1,m.element.template&&(u|=m.element.template.nodeMatchedQueries)}if(Xs(l,m,e.length),i+=m.bindings.length,o+=m.outputs.length,!c&&3&m.flags&&(d=m),20224&m.flags){h||(h=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var v=0!=(32768&m.flags);0==(8192&m.flags)||v?l.element.publicProviders[Jo(m.provider.token)]=m:(f||(f=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Jo(m.provider.token)]=m),v&&(l.element.componentProvider=m)}if(l?(l.childFlags|=m.flags,l.directChildFlags|=m.flags,l.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(l.childMatchedQueries|=m.element.template.nodeMatchedQueries)):s|=m.flags,m.childCount>0)l=m,Js(m)||(c=m);else for(;l&&p===l.nodeIndex+l.childCount;){var y=l.parent;y&&(y.childFlags|=l.childFlags,y.childMatchedQueries|=l.childMatchedQueries),c=(l=y)&&Js(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Wo,updateRenderer:r||Wo,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function Js(t){return 0!=(1&t.flags)&&null===t.element.name}function Xs(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ys(t,e,n,r){var i=eu(t.root,t.renderer,t,e,n);return nu(i,t.component,r),ru(i),i}function Zs(t,e,n){var r=eu(t,t.renderer,null,null,e);return nu(r,n,n),ru(r),r}function tu(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,eu(t.root,i,t,e.element.componentProvider,n)}function eu(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function nu(t,e,n){t.component=e,t.context=n}function ru(t){var e;ha(t)&&(e=Uo(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Ho.setCurrentNode(t,i);var a=void 0;switch(201347067&o.flags){case 1:var s=Da(t,e,o),u=void 0;if(33554432&o.flags){var l=ya(o.element.componentView);u=Ho.createComponentView(t,o,l,s)}Pa(t,u,o,s),a={renderElement:s,componentView:u,viewContainer:null,template:o.element.template?ns(t,o):void 0},16777216&o.flags&&(a.viewContainer=Ya(t,o,a));break;case 2:a=Ks(t,e,o);break;case 512:case 1024:case 2048:case 256:(a=r[i])||4096&o.flags||(a={instance:Es(t,o)});break;case 16:a={instance:Cs(t,o)};break;case 16384:(a=r[i])||(a={instance:Is(t,o)}),32768&o.flags&&nu(Uo(t,o.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Zi;break;case 8:Bs(t,e,o),a=void 0}r[i]=a}fu(t,hu.CreateViewNodes),gu(t,201326592,268435456,0)}function iu(t){su(t),Ho.updateDirectives(t,1),du(t,hu.CheckNoChanges),Ho.updateRenderer(t,1),fu(t,hu.CheckNoChanges),t.state&=-97}function ou(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Lo(t,0,256),su(t),Ho.updateDirectives(t,0),du(t,hu.CheckAndUpdate),gu(t,67108864,536870912,0);var e=Lo(t,256,512);Ns(t,2097152|(e?1048576:0)),Ho.updateRenderer(t,0),fu(t,hu.CheckAndUpdate),gu(t,134217728,536870912,0),Ns(t,8388608|((e=Lo(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Lo(t,768,1024)}function au(t,e,n,i,o,a,s,u,l,c,h,f,d){return 0===n?function(t,e,n,r,i,o,a,s,u,l,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,a,s,u,l,c,h){var f=e.bindings.length,d=!1;return f>0&&ja(t,e,0,n)&&(d=!0),f>1&&ja(t,e,1,r)&&(d=!0),f>2&&ja(t,e,2,i)&&(d=!0),f>3&&ja(t,e,3,o)&&(d=!0),f>4&&ja(t,e,4,a)&&(d=!0),f>5&&ja(t,e,5,s)&&(d=!0),f>6&&ja(t,e,6,u)&&(d=!0),f>7&&ja(t,e,7,l)&&(d=!0),f>8&&ja(t,e,8,c)&&(d=!0),f>9&&ja(t,e,9,h)&&(d=!0),d}(t,e,n,r,i,o,a,s,u,l,c,h);case 2:return function(t,e,n,r,i,o,a,s,u,l,c,h){var f=!1,d=e.bindings,p=d.length;if(p>0&&ra(t,e,0,n)&&(f=!0),p>1&&ra(t,e,1,r)&&(f=!0),p>2&&ra(t,e,2,i)&&(f=!0),p>3&&ra(t,e,3,o)&&(f=!0),p>4&&ra(t,e,4,a)&&(f=!0),p>5&&ra(t,e,5,s)&&(f=!0),p>6&&ra(t,e,6,u)&&(f=!0),p>7&&ra(t,e,7,l)&&(f=!0),p>8&&ra(t,e,8,c)&&(f=!0),p>9&&ra(t,e,9,h)&&(f=!0),f){var m=e.text.prefix;p>0&&(m+=Ws(n,d[0])),p>1&&(m+=Ws(r,d[1])),p>2&&(m+=Ws(i,d[2])),p>3&&(m+=Ws(o,d[3])),p>4&&(m+=Ws(a,d[4])),p>5&&(m+=Ws(s,d[5])),p>6&&(m+=Ws(u,d[6])),p>7&&(m+=Ws(l,d[7])),p>8&&(m+=Ws(c,d[8])),p>9&&(m+=Ws(h,d[9]));var g=Vo(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return f}(t,e,n,r,i,o,a,s,u,l,c,h);case 16384:return function(t,e,n,r,i,o,a,s,u,l,c,h){var f=qo(t,e.nodeIndex),d=f.instance,p=!1,m=void 0,g=e.bindings.length;return g>0&&na(t,e,0,n)&&(p=!0,m=Ps(t,f,e,0,n,m)),g>1&&na(t,e,1,r)&&(p=!0,m=Ps(t,f,e,1,r,m)),g>2&&na(t,e,2,i)&&(p=!0,m=Ps(t,f,e,2,i,m)),g>3&&na(t,e,3,o)&&(p=!0,m=Ps(t,f,e,3,o,m)),g>4&&na(t,e,4,a)&&(p=!0,m=Ps(t,f,e,4,a,m)),g>5&&na(t,e,5,s)&&(p=!0,m=Ps(t,f,e,5,s,m)),g>6&&na(t,e,6,u)&&(p=!0,m=Ps(t,f,e,6,u,m)),g>7&&na(t,e,7,l)&&(p=!0,m=Ps(t,f,e,7,l,m)),g>8&&na(t,e,8,c)&&(p=!0,m=Ps(t,f,e,8,c,m)),g>9&&na(t,e,9,h)&&(p=!0,m=Ps(t,f,e,9,h,m)),m&&d.ngOnChanges(m),65536&e.flags&&Fo(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),p}(t,e,n,r,i,o,a,s,u,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,u,l,c,h){var f=e.bindings,d=!1,p=f.length;if(p>0&&ra(t,e,0,n)&&(d=!0),p>1&&ra(t,e,1,r)&&(d=!0),p>2&&ra(t,e,2,i)&&(d=!0),p>3&&ra(t,e,3,o)&&(d=!0),p>4&&ra(t,e,4,a)&&(d=!0),p>5&&ra(t,e,5,s)&&(d=!0),p>6&&ra(t,e,6,u)&&(d=!0),p>7&&ra(t,e,7,l)&&(d=!0),p>8&&ra(t,e,8,c)&&(d=!0),p>9&&ra(t,e,9,h)&&(d=!0),d){var m=Bo(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(f.length),p>0&&(g[0]=n),p>1&&(g[1]=r),p>2&&(g[2]=i),p>3&&(g[3]=o),p>4&&(g[4]=a),p>5&&(g[5]=s),p>6&&(g[6]=u),p>7&&(g[7]=l),p>8&&(g[8]=c),p>9&&(g[9]=h);break;case 64:g={},p>0&&(g[f[0].name]=n),p>1&&(g[f[1].name]=r),p>2&&(g[f[2].name]=i),p>3&&(g[f[3].name]=o),p>4&&(g[f[4].name]=a),p>5&&(g[f[5].name]=s),p>6&&(g[f[6].name]=u),p>7&&(g[f[7].name]=l),p>8&&(g[f[8].name]=c),p>9&&(g[f[9].name]=h);break;case 128:var v=n;switch(p){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,i);break;case 4:g=v.transform(r,i,o);break;case 5:g=v.transform(r,i,o,a);break;case 6:g=v.transform(r,i,o,a,s);break;case 7:g=v.transform(r,i,o,a,s,u);break;case 8:g=v.transform(r,i,o,a,s,u,l);break;case 9:g=v.transform(r,i,o,a,s,u,l,c);break;case 10:g=v.transform(r,i,o,a,s,u,l,c,h)}}m.value=g}return d}(t,e,n,r,i,o,a,s,u,l,c,h);default:throw"unreachable"}}(t,e,i,o,a,s,u,l,c,h,f,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)ja(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)ra(t,e,o,n[o])&&(i=!0);if(i){var a="";for(o=0;o<n.length;o++)a+=Ws(n[o],r[o]);a=e.text.prefix+a;var s=Vo(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=qo(t,e.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)na(t,e,s,n[s])&&(o=!0,a=Ps(t,r,e,s,n[s],a));return a&&i.ngOnChanges(a),65536&e.flags&&Fo(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var i=e.bindings,o=!1,a=0;a<n.length;a++)ra(t,e,a,n[a])&&(o=!0);if(o){var s=Bo(t,e.nodeIndex),u=void 0;switch(201347067&e.flags){case 32:u=n;break;case 64:for(u={},a=0;a<n.length;a++)u[i[a].name]=n[a];break;case 128:var l=n[0],c=n.slice(1);u=l.transform.apply(l,Object(r.__spread)(c))}s.value=u}return o}(t,e,n);default:throw"unreachable"}}(t,e,i)}function su(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Uo(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,aa(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function uu(t,e,n,r,i,o,a,s,u,l,c,h,f){return 0===n?function(t,e,n,r,i,o,a,s,u,l,c,h){var f=e.bindings.length;f>0&&ia(t,e,0,n),f>1&&ia(t,e,1,r),f>2&&ia(t,e,2,i),f>3&&ia(t,e,3,o),f>4&&ia(t,e,4,a),f>5&&ia(t,e,5,s),f>6&&ia(t,e,6,u),f>7&&ia(t,e,7,l),f>8&&ia(t,e,8,c),f>9&&ia(t,e,9,h)}(t,e,r,i,o,a,s,u,l,c,h,f):function(t,e,n){for(var r=0;r<n.length;r++)ia(t,e,r,n[r])}(t,e,r),!1}function lu(t,e){if(zo(t,e.nodeIndex).dirty)throw Go(Ho.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function cu(t){if(!(128&t.state)){if(du(t,hu.Destroy),fu(t,hu.Destroy),Ns(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=ua(t);if(e){var n=e.template._projectedViews;n&&(Ka(n,n.indexOf(t)),Ho.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Uo(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Vo(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&zo(t,n).destroy()}}(t),ha(t)&&t.renderer.destroy(),t.state|=128}}var hu=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function fu(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?pu(Uo(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function du(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Uo(t,r).viewContainer._embeddedViews,a=0;a<o.length;a++)pu(o[a],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function pu(t,e){var n=t.state;switch(e){case hu.CheckNoChanges:0==(128&n)&&(12==(12&n)?iu(t):64&n&&mu(t,hu.CheckNoChangesProjectedViews));break;case hu.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?iu(t):64&n&&mu(t,e));break;case hu.CheckAndUpdate:0==(128&n)&&(12==(12&n)?ou(t):64&n&&mu(t,hu.CheckAndUpdateProjectedViews));break;case hu.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?ou(t):64&n&&mu(t,e));break;case hu.Destroy:cu(t);break;case hu.CreateViewNodes:ru(t)}}function mu(t,e){du(t,e),fu(t,e)}function gu(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(Ho.setCurrentNode(t,a.nodeIndex),r){case 0:Fs(t,a);break;case 1:lu(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}var vu=!1;function yu(t,e,n,r,i,o){var a=i.injector.get(rr);return Zs(wu(t,i,a,e,n),r,o)}function bu(t,e,n,r,i,o){var a=i.injector.get(rr),s=wu(t,i,new Yu(a),e,n),u=xu(r);return Ju(Vu.create,Zs,null,[s,u,o])}function wu(t,e,n,r,i){var o=e.injector.get(ur),a=e.injector.get(si),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:s,errorHandler:a}}function _u(t,e,n,r){var i=xu(n);return Ju(Vu.create,Ys,null,[t,e,i,r])}function Su(t,e,n,r){return n=ku.get(e.element.componentProvider.provider.token)||xu(n),Ju(Vu.create,tu,null,[t,e,n,r])}function Eu(t,e,n,r){return ls(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===Cu.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=Cu.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){Iu.forEach(function(r,i){I(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var i=Cu.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=ma(i.deps),r.value=i.value)}if(Iu.size>0){var o=new Set(t.modules);Iu.forEach(function(e,r){if(o.has(I(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:ma(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Jo(r)]=i}})}}(t=t.factory(function(){return Wo})),t):t}(r))}var Cu=new Map,Iu=new Map,ku=new Map;function Tu(t){var e;Cu.set(t.token,t),"function"==typeof t.token&&(e=I(t.token))&&"function"==typeof e.providedIn&&Iu.set(t.token,t)}function Ou(t,e){var n=ya(e.viewDefFactory),r=ya(n.nodes[0].element.componentView);ku.set(t,r)}function Au(){Cu.clear(),Iu.clear(),ku.clear()}function xu(t){if(0===Cu.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Cu.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Wo});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Cu.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=ma(o.deps),i.value=o.value)}}}}function Du(t,e,n,r,i,o,a,s,u,l,c,h,f){var d=t.def.nodes[e];return au(t,d,n,r,i,o,a,s,u,l,c,h,f),224&d.flags?Bo(t,e).value:void 0}function Pu(t,e,n,r,i,o,a,s,u,l,c,h,f){var d=t.def.nodes[e];return uu(t,d,n,r,i,o,a,s,u,l,c,h,f),224&d.flags?Bo(t,e).value:void 0}function Nu(t){return Ju(Vu.detectChanges,ou,null,[t])}function ju(t){return Ju(Vu.checkNoChanges,iu,null,[t])}function Ru(t){return Ju(Vu.destroy,cu,null,[t])}var Mu,Lu,Fu,Vu=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function Uu(t,e){Lu=t,Fu=e}function qu(t,e,n,r){return Uu(t,e),Ju(Vu.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Bu(t,e){if(128&t.state)throw Ko(Vu[Mu]);return Uu(t,$u(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Hu(t,a,r,i):Gu(t,a,r,i),16384&a.flags&&Uu(t,$u(t,n)),224&a.flags?Bo(t,a.nodeIndex).value:void 0},t)}function zu(t,e){if(128&t.state)throw Ko(Vu[Mu]);return Uu(t,Ku(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Hu(t,a,r,i):Gu(t,a,r,i),3&a.flags&&Uu(t,Ku(t,n)),224&a.flags?Bo(t,a.nodeIndex).value:void 0},t)}function Hu(t,e,n,i){if(au.apply(void 0,Object(r.__spread)([t,e,n],i))){var o=1===n?i[0]:i;if(16384&e.flags){for(var a={},s=0;s<e.bindings.length;s++){var u=e.bindings[s],l=o[s];8&u.flags&&(a[(d=u.nonMinifiedName,"ng-reflect-"+d.replace(/[$@]/g,"_").replace(ke,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()}))]=Te(l))}var c=e.parent,h=Uo(t,c.nodeIndex).renderElement;if(c.element.name)for(var f in a)null!=(l=a[f])?t.renderer.setAttribute(h,f,l):t.renderer.removeAttribute(h,f);else t.renderer.setValue(h,"bindings="+JSON.stringify(a,null,2))}}var d}function Gu(t,e,n,i){uu.apply(void 0,Object(r.__spread)([t,e,n],i))}function $u(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Ku(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Wu=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=la(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Uo(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return is(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Qu(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Qu(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!ha(t);)t=t.parent;return t.parent?Uo(t.parent,la(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ca(this.view,this.nodeDef):ca(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var a=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),s=-1;e.factory(function(){var e;return++s===a?(e=t.error).bind.apply(e,Object(r.__spread)([t],i)):Wo}),s<a&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,Object(r.__spread)(i)))},t}();function Qu(t,e,n){for(var r in e.references)n[r]=Us(t,e,e.references[r])}function Ju(t,e,n,r){var i=Mu,o=Lu,a=Fu;try{Mu=t;var s=e.apply(n,r);return Lu=o,Fu=a,Mu=i,s}catch(u){if(ii(u)||!Lu)throw u;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),$o(t,e),t}(u,Xu())}}function Xu(){return Lu?new Wu(Lu,Fu):null}var Yu=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Zu(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Zu=function(){function t(t){this.delegate=t,this.debugContextFactory=Xu,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function(t){fo.delete(t.nativeNode)}(po(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){var i=new ho(n,null,r);i.name=t,mo(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&mo(new co(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&mo(new co(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=po(t),r=po(e);n&&r&&n instanceof ho&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=po(t),i=po(e),o=po(n);r&&i&&r instanceof ho&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=po(t),r=po(e);n&&r&&n instanceof ho&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=Xu();return r&&mo(new ho(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=po(t);i&&i instanceof ho&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=po(t);r&&r instanceof ho&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=po(t);n&&n instanceof ho&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=po(t);n&&n instanceof ho&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=po(t);i&&i instanceof ho&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=po(t);r&&r instanceof ho&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=po(t);r&&r instanceof ho&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=po(t);r&&r.listeners.push(new lo(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function tl(t,e,n){return new el(t,e,n)}var el=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(r.__extends)(e,t),e.prototype.create=function(t){!function(){if(!vu){vu=!0;var t=wr()?{setCurrentNode:Uu,createRootView:bu,createEmbeddedView:_u,createComponentView:Su,createNgModuleRef:Eu,overrideProvider:Tu,overrideComponentView:Ou,clearOverrides:Au,checkAndUpdateView:Nu,checkNoChangesView:ju,destroyView:Ru,createDebugContext:function(t,e){return new Wu(t,e)},handleEvent:qu,updateDirectives:Bu,updateRenderer:zu}:{setCurrentNode:function(){},createRootView:yu,createEmbeddedView:Ys,createComponentView:tu,createNgModuleRef:ls,overrideProvider:Wo,overrideComponentView:Wo,clearOverrides:Wo,checkAndUpdateView:ou,checkNoChangesView:iu,destroyView:cu,createDebugContext:function(t,e){return new Wu(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Du:Pu,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Du:Pu,t)}};Ho.setCurrentNode=t.setCurrentNode,Ho.createRootView=t.createRootView,Ho.createEmbeddedView=t.createEmbeddedView,Ho.createComponentView=t.createComponentView,Ho.createNgModuleRef=t.createNgModuleRef,Ho.overrideProvider=t.overrideProvider,Ho.overrideComponentView=t.overrideComponentView,Ho.clearOverrides=t.clearOverrides,Ho.checkAndUpdateView=t.checkAndUpdateView,Ho.checkNoChangesView=t.checkNoChangesView,Ho.destroyView=t.destroyView,Ho.resolveDep=xs,Ho.createDebugContext=t.createDebugContext,Ho.handleEvent=t.handleEvent,Ho.updateDirectives=t.updateDirectives,Ho.updateRenderer=t.updateRenderer,Ho.dirtyParentQueries=Ls}}();var e=function(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}
1(ya(this._ngModuleDefFactory));return Ho.createNgModuleRef(this.moduleType,t||gn.NULL,this._bootstrapComponents,e)},e}(Yn)},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},DRYZ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("CcnG"),i=n("iw74"),o=function(){function t(t){this.storage=t}return t.prototype.getNotificationStatus=function(){var t=this;return new Promise(function(e,n){t.storage.get("notificationStatus").then(function(t){e(null==t||t)})})},t.prototype.setNotificationStatus=function(t){return this.storage.set("notificationStatus",t)},t.prototype.isTokenSentToServer=function(){return this.storage.get("sentToServer").then(function(t){return"1"===t})},t.prototype.setTokenSentToServer=function(t){return this.storage.set("sentToServer",t?"1":"0")},t.ngInjectableDef=r.T({factory:function(){return new t(r.X(i.b))},token:t,providedIn:"root"}),t}()},"Dd/+":function(t,e,n){n("q94Q")("unscopables")},E5h0:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("QXnk"),i=n("oSDc"),o=function(){return Object(i.a)().easing("cubic-bezier(0.0, 0.0, 0.2, 1)").duration(300)},a=function(t){var e,n,r=t.width+8,a=Object(i.a)(),s=Object(i.a)();return t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),a.addElement(t.menuInnerEl).fromTo("transform","translateX("+e+")","translateX("+n+")"),s.addElement(t.backdropEl).fromTo("opacity",.01,.32),o().addAnimation([a,s])},s=function(t){var e,n,r=t.width;t.isEndSide?(e=-r+"px",n=r+"px"):(e=r+"px",n=-r+"px");var a=Object(i.a)().addElement(t.menuInnerEl).fromTo("transform","translateX("+n+")","translateX(0px)"),s=Object(i.a)().addElement(t.contentEl).fromTo("transform","translateX(0px)","translateX("+e+")"),u=Object(i.a)().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o().addAnimation([a,u,s])},u=function(t){var e=t.width*(t.isEndSide?-1:1)+"px",n=Object(i.a)().addElement(t.contentEl).fromTo("transform","translateX(0px)","translateX("+e+")");return o().addAnimation(n)},l=function(){var t=new Map,e=[],n=function(t){return Object(r.a)(void 0,void 0,void 0,function(){var n,i;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,d()];case 1:return r.sent(),"start"===t||"end"===t?(n=f(function(e){return e.side===t&&!e.disabled}))?[2,n]:[2,f(function(e){return e.side===t})]:null!=t?[2,f(function(e){return e.menuId===t})]:(i=f(function(t){return!t.disabled}))?[2,i]:[2,e.length>0?e[0].el:void 0]}})})},i=function(){return Object(r.a)(void 0,void 0,void 0,function(){return Object(r.c)(this,function(t){switch(t.label){case 0:return[4,d()];case 1:return t.sent(),[2,c()]}})})},o=function(e,n){t.set(e,n)},l=function(t){var n=t.side;e.filter(function(e){return e.side===n&&e!==t}).forEach(function(t){return t.disabled=!0})},c=function(){return f(function(t){return t._isOpen})},h=function(){return e.some(function(t){return t.isAnimating})},f=function(t){var n=e.find(t);if(void 0!==n)return n.el},d=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(t){return t.componentOnReady()}))};return o("reveal",u),o("push",s),o("overlay",a),{registerAnimation:o,get:n,getMenus:function(){return Object(r.a)(void 0,void 0,void 0,function(){return Object(r.c)(this,function(t){switch(t.label){case 0:return[4,d()];case 1:return t.sent(),[2,e.map(function(t){return t.el})]}})})},getOpen:i,isEnabled:function(t){return Object(r.a)(void 0,void 0,void 0,function(){var e;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,!e.disabled]:[2,!1]}})})},swipeGesture:function(t,e){return Object(r.a)(void 0,void 0,void 0,function(){var i;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(i=r.sent())&&(i.swipeGesture=t),[2,i]}})})},isAnimating:function(){return Object(r.a)(void 0,void 0,void 0,function(){return Object(r.c)(this,function(t){switch(t.label){case 0:return[4,d()];case 1:return t.sent(),[2,h()]}})})},isOpen:function(t){return Object(r.a)(void 0,void 0,void 0,function(){var e;return Object(r.c)(this,function(r){switch(r.label){case 0:return null==t?[3,2]:[4,n(t)];case 1:return[2,void 0!==(e=r.sent())&&e.isOpen()];case 2:return[4,i()];case 3:return[2,void 0!==(e=r.sent())]}})})},enable:function(t,e){return Object(r.a)(void 0,void 0,void 0,function(){var i;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(i=r.sent())&&(i.disabled=!t),[2,i]}})})},toggle:function(t){return Object(r.a)(void 0,void 0,void 0,function(){var e;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,n(t)];
1case 1:return(e=r.sent())?[2,e.toggle()]:[2,!1]}})})},close:function(t){return Object(r.a)(void 0,void 0,void 0,function(){var e;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,void 0!==t?n(t):i()];case 1:return void 0!==(e=r.sent())?[2,e.close()]:[2,!1]}})})},open:function(t){return Object(r.a)(void 0,void 0,void 0,function(){var e;return Object(r.c)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,e.open()]:[2,!1]}})})},_getOpenSync:c,_createAnimation:function(e,n){var r=t.get(e);if(!r)throw new Error("animation not registered");return r(n)},_register:function(t){e.indexOf(t)<0&&(t.disabled||l(t),e.push(t))},_unregister:function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},_setOpen:function(t,e,n){return Object(r.a)(void 0,void 0,void 0,function(){var o;return Object(r.c)(this,function(r){switch(r.label){case 0:return h()?[2,!1]:e?[4,i()]:[3,3];case 1:return(o=r.sent())&&t.el!==o?[4,o.setOpen(!1,!1)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2,t._setOpen(e,n)]}})})},_setActiveMenu:l}}()},"En8+":function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return i});var i=r()},"F/XL":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("nkY7"),i=n("IUTb"),o=n("G5J1"),a=n("PU8L");function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Object(r.a)(n)?t.pop():n=void 0,t.length){case 0:return Object(o.b)(n);case 1:return n?Object(i.a)(t,n):Object(a.a)(t[0]);default:return Object(i.a)(t,n)}}},FFOo:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),a=n("pugT"),s=n("L/V9"),u=n("iLxQ"),l=n("DKTb"),c=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new h(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new h(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(a.a),h=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var l=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(l=Object.create(n),Object(i.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},FnXw:function(t,e,n){var r=n("kpns"),i=n("hdqJ"),o=n("aXXJ")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},FoKB:function(t,e,n){n("q94Q")("observable")},Fxb1:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("6blF"),i=n("+tJ4"),o=n("S5XQ"),a=n("u67D"),s=n("JcRv"),u=n("2ePl"),l=n("/WYv"),c=n("McSo"),h=n("En8+"),f=n("xTla"),d=function(t){if(t instanceof r.a)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[f.a])return Object(s.a)(t);if(Object(u.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return Object(o.a)(t);if(t&&"function"==typeof t[h.a])return Object(a.a)(t);
1var e=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},G5J1:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n("6blF"),i=new r.a(function(t){return t.complete()});function o(t){return t?function(t){return new r.a(function(e){return t.schedule(function(){return e.complete()})})}(t):i}},GJzV:function(t,e,n){var r=n("JKJi"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},Goaa:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"f",function(){return a}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return f}),n.d(e,"i",function(){return c}),n.d(e,"j",function(){return h}),n.d(e,"k",function(){return i});var r=n("QXnk"),i=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},o=function(t){return!!t.shadowRoot&&!!t.attachShadow},a=function(t){var e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},s=function(t,e,n,r,i){if(t||o(e)){var a=e.querySelector("input.aux-input");a||((a=e.ownerDocument.createElement("input")).type="hidden",a.classList.add("aux-input"),e.appendChild(a)),a.disabled=i,a.name=n,a.value=r||""}},u=function(t,e,n){return Math.max(t,Math.min(e,n))},l=function(t,e){if(!t){var n="ASSERT: "+e;throw console.error(n),new Error(n)}},c=function(t){return t.timeStamp||Date.now()},h=function(t){if(t){var e=t.changedTouches;if(e&&e.length>0){var n=e[0];return{x:n.clientX,y:n.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},f=function(t){var e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error('"'+t+'" is not a valid value for [side]. Use "start" or "end" instead.')}},d=function(t,e){var n=t._original||t;return{_original:t,emit:p(n.emit.bind(n),e)}},p=function(t,e){var n;return void 0===e&&(e=0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout.apply(void 0,Object(r.d)([t,e],i))}}},Gp07:function(t,e,n){var r=n("JKJi"),i=n("9Nts");t.exports=function(t,e,n){var o,a,s=String(i(t)),u=r(e),l=s.length;return u<0||u>=l?n?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?n?s.charAt(u):o:n?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}},GrVo:function(t,e,n){"use strict";var r=n("Q2Kg"),i=n("fw2a"),o=n("iCuu"),a=n("SAp2"),s=n("t5mC"),u=Object.assign;t.exports=!u||n("0HDe")(function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||"abcdefghijklmnopqrst"!=r(u({},e)).join("")})?function(t,e){for(var n=a(t),u=arguments.length,l=1,c=i.f,h=o.f;u>l;)for(var f,d=s(arguments[l++]),p=c?r(d).concat(c(d)):r(d),m=p.length,g=0;m>g;)h.call(d,f=p[g++])&&(n[f]=d[f]);return n}:u},"H+bZ":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n("iTTW");var r=n("Wcq6"),i=n("0/uQ"),o=n("CcnG"),a=function(){function t(){}return t.prototype.addPost=function(t){return r.functions().httpsCallable("createPost")(t)},t.prototype.sendMessage=function(t){return r.functions().httpsCallable("sendMessageToAdmin")(t)},t.prototype.createPVR=function(t){return r.functions().httpsCallable("createPVR")(t)},t.prototype.setPVR=function(t){return r.functions().httpsCallable("setPVR")(t)},t.prototype.logoutFromPVR=function(){return r.functions().httpsCallable("logoutFromPVR")()},t.prototype.activateFreePlan=function(t){return r.functions().httpsCallable("activateFreePlan")(t)},t.prototype.addContactToPvr=function(t){return r.functions().httpsCallable("addContactToPvr")(t)},t.prototype.getTokenPuntoRicarica=function(){return r.functions().httpsCallable("getTokenPuntoRicatica")()},t.prototype.getHomeContents=function(t){var e=r.functions().httpsCallable("getHomeContent");return Object(i.a)(e({pvr:t}).then(function(t){return t.data}))},t.ngInjectableDef=o.T({factory:function(){return new t},token:t,providedIn:"root"}),t}()},H6ty:function(t,e,n){var r=n("JKJi"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},HJBB:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YBFb"),i=function(){return function(t,e,n,i,o){this.field=t,this.operator=e,this.value=n,this.sort=i,this.pageSize=o,o||(this.pageSize=r.a)}}()},HJBe:function(t,e,n){"use strict";n.d(e,"a",function(){return o}
1);var r=n("mrSG"),i=n("FFOo");function o(t){return void 0===t&&(t=null),function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.__extends(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.a)},HPGL:function(t,e,n){"use strict";function r(){if("undefined"==typeof process){var t="undefined"!=typeof window?window:{},e=Date.now(),n=!1;t.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-e)+" ms"),n=!0}),setTimeout(function(){!n&&t.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}n.d(e,"a",function(){return r})},HefZ:function(t,e,n){n("rZEa"),n("QvOV"),n("44fV"),n("2F3y"),n("qjh4"),n("b2LF"),n("uiB+"),n("q0E7"),n("+v3u"),n("dstF"),n("dYkh"),n("gIEr"),n("luCB"),n("MuAL"),n("uLJa"),n("Dd/+"),n("vb+c"),n("ZPxF"),t.exports=n("4Ea8").Symbol},IUTb:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("6blF"),i=n("pugT"),o=n("+tJ4");function a(t,e){return new r.a(e?function(n){var r=new i.a,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Object(o.a)(t))}},Ip0R:function(t,e,n){"use strict";n.d(e,"s",function(){return $}),n.d(e,"l",function(){return W}),n.d(e,"m",function(){return K}),n.d(e,"t",function(){return Q}),n.d(e,"c",function(){return ut}),n.d(e,"j",function(){return X}),n.d(e,"k",function(){return Z}),n.d(e,"d",function(){return lt}),n.d(e,"b",function(){return at}),n.d(e,"e",function(){return st}),n.d(e,"r",function(){return ct}),n.d(e,"q",function(){return ft}),n.d(e,"p",function(){return dt}),n.d(e,"o",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"i",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"f",function(){return h}),n.d(e,"n",function(){return f}),n.d(e,"h",function(){return l});var r=n("CcnG"),i=n("mrSG"),o=function(){return function(){}}(),a=new r.p("Location Initialized"),s=function(){return function(){}}(),u=new r.p("appBaseHref"),l=function(){function t(t){var n=this;this._subject=new r.m,this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,c(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function c(t){return t.replace(/\/index.html$/,"")}var h=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(i.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.on
vendor: 1,267 bytes, line 1
1HashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=l.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),f=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1,e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return l.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),d=void 0,p=["en",[["a","p"],["AM","PM"],d],[["AM","PM"],d,d],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d,"{1} 'at' {0}",d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],m={},g=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),v=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),y=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),b=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),w=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function _(t,e){return k(O(t)[10],e)}function S(t,e){return k(O(t)[11],e)}function E(t,e){return k(O(t)[12],e)}function C(t,e){var n=O(t),r=n[13][e];if(void 0===r){if(e===w.CurrencyDecimal)return n[13][w.Decimal];if(e===w.CurrencyGroup)return n[13][w.Group]}return r}function I(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function k(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function T(t){var e=Object(i.__read)(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function O(t){var e=t.toLowerCase().replace(/_/g,"-"),n=m[e];if(n)return n;var r=e.split("-")[0];if(n=m[r])return n;if("en"===r)return p;throw new Error('Missing locale data for the locale "'+t+'".')}var A=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,x={},D=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,P=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),N=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),j=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function R(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function M(t,e,n,r,i){void 0===n&&(n="-");var o="";
1(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length<e;)a="0"+a;return r&&(a=a.substr(a.length-e)),o+a}function L(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,a){var s,u=function(t,e){switch(t){case N.FullYear:return e.getFullYear();case N.Month:return e.getMonth();case N.Date:return e.getDate();case N.Hours:return e.getHours();case N.Minutes:return e.getMinutes();case N.Seconds:return e.getSeconds();case N.FractionalSeconds:return e.getMilliseconds();case N.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o);if((n>0||u>-n)&&(u+=n),t===N.Hours)0===u&&-12===n&&(u=12);else if(t===N.FractionalSeconds)return s=e,M(u,3).substr(0,s);var l=C(a,w.MinusSign);return M(u,e,l,r,i)}}function F(t,e,n,r){return void 0===n&&(n=v.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case j.Months:return function(t,e,n){var r=O(t),i=k([r[5],r[6]],e);return k(i,n)}(e,i,r)[t.getMonth()];case j.Days:return function(t,e,n){var r=O(t),i=k([r[3],r[4]],e);return k(i,n)}(e,i,r)[t.getDay()];case j.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=O(t);return I(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?T(t):[T(t[0]),T(t[1])]})}(e),c=function(t,e,n){var r=O(t);I(r);var i=k([r[19][0],r[19][1]],e)||[];return k(i,n)||[]}(e,i,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],i=r.hours;a>=n.hours&&s>=n.minutes&&(a<i||a===i&&s<r.minutes)&&(u=c[e])}else t.hours===a&&t.minutes===s&&(u=c[e])}),u)return u}return function(t,e,n){var r=O(t),i=k([r[1],r[2]],e);return k(i,n)}(e,i,r)[a<12?0:1];case j.Eras:return function(t,e){return k(O(t)[7],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,o,t,e,n,r)}}function V(t){return function(e,n,r){var i=-1*r,o=C(n,w.MinusSign),a=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case P.Short:return(i>=0?"+":"")+M(a,2,o)+M(Math.abs(i%60),2,o);case P.ShortGMT:return"GMT"+(i>=0?"+":"")+M(a,1,o);case P.Long:return"GMT"+(i>=0?"+":"")+M(a,2,o)+":"+M(Math.abs(i%60),2,o);case P.Extended:return 0===r?"Z":(i>=0?"+":"")+M(a,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var U=0,q=4;function B(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+u)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,U,1).getDay(),new Date(a,0,1+(s<=q?q:q+7)-s)),h=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(q-o.getDay()))).getTime()-c.getTime();i=1+Math.round(h/6048e5)}return M(i,t,C(r,w.MinusSign))}}var z={};function H(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t){return t instanceof Date&&!isNaN(t.valueOf())}var $=new r.p("UseV4Plurals"),K=function(){return function(){}}(),W=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(i.__extends)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return O(t)[18]}(e||this.locale)(t)){case g.Zero:return"zero";case g.One:return"one";case g.Two:return"two";case g.Few:return"few";case g.Many:return"many";default:return"other"}},e}(K);function Q(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=Object(i.__values)(t.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,u=s.indexOf("="),l=Object(i.__read)(-1==u?[s,""]:[s.slice(0,u),s.slice(u+1)],2),c=l[1];if(l[0].trim()===e)return decodeURIComponent(c)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var J=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),X=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}
1return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.Y)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new J(null,e._ngForOf,-1,-1),i),a=new Y(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new Y(t,o),n.push(a))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.ngTemplateContextGuard=function(t,e){return!0},t}(),Y=function(){return function(t,e){this.record=t,this.view=e}}(),Z=function(){function t(t,e){this._viewContainer=t,this._context=new tt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){et("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){et("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t.ngTemplateGuard_ngIf=function(t,e){return!0},t}(),tt=function(){return function(){this.$implicit=null,this.ngIf=null}}();function et(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Object(r.Gb)(e)+"'.")}function nt(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(r.Gb)(t)+"'")}var rt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),it=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),ot=new rt,at=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var e;return e=t,t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.R.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(t){if(Object(r.vb)(t))return it;if(Object(r.ub)(t))return ot;throw nt(e,t)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}(),st=function(){function t(t){this.locale=t}var e;return e=t,t.prototype.transform=function(t,n,r,o){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;try{return function(t,e,n,r){var o=function(t){if(G(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var r=Object(i.__read)(t.split("-").map(function(t){return+t}),3);return new Date(r[0],r[1]-1,r[2])}if(e=t.match(A))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,l),e}(e)}var o=new Date(t);if(!G(o))throw new Error('Unable to convert "'+t+'" into a date');return o}(t);e=function t(e,n){var r=function(t){return O(t)[0]}(e);if(x[r]=x[r]||{},x[r][n])return x[r][n];var i="";switch(n){case"shortDate":i=_(e,b.Short);break;case"mediumDate":i=_(e,b.Medium);break;case"longDate":i=_(e,b.Long);break;case"fullDate":i=_(e,b.Full);break;case"shortTime":i=S(e,b.Short);break;case"mediumTime":i=S(e,b.Medium);break;case"longTime":i=S(e,b.Long);break;case"fullTime":i=S(e,b.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=R(E(e,b.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");i=R(E(e,b.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");i=R(E(e,b.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),f=t(e,"fullDate");i=R(E(e,b.Full),[h,f])}return i&&(x[r][n]=i),i}(n,e)||e;for(var a,s=[];e;){if(!(a=D.exec(e))){s.push(e);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;e=u}var l=o.getTimezoneOffset();r&&(l=H(r,l),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(H(e,r)-r))}(o,r));var c="";
1return s.forEach(function(t){var e=function(t){if(z[t])return z[t];var e;switch(t){case"G":case"GG":case"GGG":e=F(j.Eras,y.Abbreviated);break;case"GGGG":e=F(j.Eras,y.Wide);break;case"GGGGG":e=F(j.Eras,y.Narrow);break;case"y":e=L(N.FullYear,1,0,!1,!0);break;case"yy":e=L(N.FullYear,2,0,!0,!0);break;case"yyy":e=L(N.FullYear,3,0,!1,!0);break;case"yyyy":e=L(N.FullYear,4,0,!1,!0);break;case"M":case"L":e=L(N.Month,1,1);break;case"MM":case"LL":e=L(N.Month,2,1);break;case"MMM":e=F(j.Months,y.Abbreviated);break;case"MMMM":e=F(j.Months,y.Wide);break;case"MMMMM":e=F(j.Months,y.Narrow);break;case"LLL":e=F(j.Months,y.Abbreviated,v.Standalone);break;case"LLLL":e=F(j.Months,y.Wide,v.Standalone);break;case"LLLLL":e=F(j.Months,y.Narrow,v.Standalone);break;case"w":e=B(1);break;case"ww":e=B(2);break;case"W":e=B(1,!0);break;case"d":e=L(N.Date,1);break;case"dd":e=L(N.Date,2);break;case"E":case"EE":case"EEE":e=F(j.Days,y.Abbreviated);break;case"EEEE":e=F(j.Days,y.Wide);break;case"EEEEE":e=F(j.Days,y.Narrow);break;case"EEEEEE":e=F(j.Days,y.Short);break;case"a":case"aa":case"aaa":e=F(j.DayPeriods,y.Abbreviated);break;case"aaaa":e=F(j.DayPeriods,y.Wide);break;case"aaaaa":e=F(j.DayPeriods,y.Narrow);break;case"b":case"bb":case"bbb":e=F(j.DayPeriods,y.Abbreviated,v.Standalone,!0);break;case"bbbb":e=F(j.DayPeriods,y.Wide,v.Standalone,!0);break;case"bbbbb":e=F(j.DayPeriods,y.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":e=F(j.DayPeriods,y.Abbreviated,v.Format,!0);break;case"BBBB":e=F(j.DayPeriods,y.Wide,v.Format,!0);break;case"BBBBB":e=F(j.DayPeriods,y.Narrow,v.Format,!0);break;case"h":e=L(N.Hours,1,-12);break;case"hh":e=L(N.Hours,2,-12);break;case"H":e=L(N.Hours,1);break;case"HH":e=L(N.Hours,2);break;case"m":e=L(N.Minutes,1);break;case"mm":e=L(N.Minutes,2);break;case"s":e=L(N.Seconds,1);break;case"ss":e=L(N.Seconds,2);break;case"S":e=L(N.FractionalSeconds,1);break;case"SS":e=L(N.FractionalSeconds,2);break;case"SSS":e=L(N.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=V(P.Short);break;case"ZZZZZ":e=V(P.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=V(P.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=V(P.Long);break;default:return null}return z[t]=e,e}(t);c+=e?e(o,n,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}(t,n,o||this.locale,r)}catch(a){throw nt(e,a.message)}},t}(),ut=function(){return function(){}}(),lt=new r.p("DocumentToken"),ct="browser",ht="server";function ft(t){return t===ht}var dt=function(){function t(){}return t.ngInjectableDef=Object(r.T)({providedIn:"root",factory:function(){return new pt(Object(r.X)(lt),window,Object(r.X)(r.l))}}),t}(),pt=function(){function t(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}()},IutQ:function(t,e,n){var r=n("t5mC"),i=n("9Nts");t.exports=function(t){return r(i(t))}},"J/Re":function(t,e,n){"use strict";n("ZZ/e");var r=n("K9Ia"),i=n("F/XL"),o=n("p0ib"),a=n("xMyE"),s=n("mrSG"),u=n("FFOo"),l=n("T1DM"),c=function(){function t(t,e){this.dueTime=t,this.scheduler
1=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.dueTime,this.scheduler))},t}(),h=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return s.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(f,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(u.a);function f(t){t.debouncedNext()}var d=n("psW0"),p=n("67Y/"),m=n("dC0D");n("i0o1"),n.d(e,"a",function(){return g});var g=function(){function t(t,e){this.userPostsService=t,this.activatedRoute=e,this.disabledInfiniteScroll=!0,this.defaultfilter={field:"creationDate",sort:"desc"},this.filter=this.defaultfilter,this.filterKeys=["creationDate"],this.scrols=new r.a,this.hideContent=!0}return t.prototype.ngOnInit=function(){var t=this;this.hideContent=!0,this.activatedRoute.data.subscribe(function(e){if(console.log("detect destinario ",e.user),t.pvr=e.pvr,t.user=e.user,t.hideContent=!1,t.pvr){t.userPostsService.setUrl(t.pvr.getBlog());var n=t.userPostsService.query(!1,t.filter);Object(a.a)(function(t){return console.log("First page loaded.")});var r=t.scrols.asObservable().pipe((void 0===s&&(s=l.a),function(t){return t.lift(new c(500,s))}),Object(a.a)(function(t){return console.log("Streamed scroll emitted.")}),Object(d.a)(function(e){return t.userPostsService.query(!0,t.filter).pipe(Object(p.a)(function(t){return{event:e,list:t}}))}),Object(a.a)(function(t){return t.event?t.event.target.complete():null}),Object(p.a)(function(t){return t.list}));n.subscribe(function(e){t.listeningOnchange$=t.userPostsService.onSnapshot(!0,t.filter).pipe(Object(d.a)(function(t){return function(t){return Object(i.a)(t)}(t)}),Object(m.a)(function(t,e){return[e].concat(t)},[]),Object(p.a)(function(t){return t.sort(function(t,e){return e.creationDate.seconds-t.creationDate.seconds})}),Object(a.a)(function(t){return console.log("onChange handler finished.")}))}),t.list$=Object(o.a)(n,r).pipe(Object(m.a)(function(t,e){return t.concat(e)}),Object(a.a)(function(t){return console.log("Merged list observable emitted.")}),Object(a.a)(function(t){return t.sort(function(t,e){return e.creationDate.seconds-t.creationDate.seconds})}),Object(a.a)(function(e){return t.disabledInfiniteScroll=e.length<=0}))}var s})},t.prototype.emitScroll=function(t){this.scrols.next(t)},t}()},J3Ai:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n("ZZ/e");var r=function(){function t(t,e,n,r){this.modalController=t,this.navParams=e,this.loadingController=n,this.activatedRoute=r}return t.prototype.ngOnInit=function(){var t=this;this.navParams.data.media?this.media=this.navParams.data.media:this.activatedRoute.queryParams.subscribe(function(e){console.log(e),t.media=e.media?e.media:null})},t.prototype.downloadFile=function(){var t=new XMLHttpRequest;t.responseType="blob";var e=this.fileName;t.onload=function(n){var r=t.response,i=document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,i.dispatchEvent(new MouseEvent("click"))},t.open("GET",this.media),t.send()},t.prototype.dismiss=function(){this.modalController.dismiss()},t}()},JIMt:function(t,e,n){var r=n("kpns"),i=n("ysHE").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},JKJi:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},JcRv:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("xTla"),i=function(t){return function(e){var n=t[r.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},Ji5e:function(t,e,n){},JpPu:function(t,e,n){var r=n("nJQW");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},JzIs:function(t,e,n){var r=n("lb/b"),i=n("TIpl"),o=n("bcPd"),a=n("Q2Kg");t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,u=0;s>u;)i.f(t,n=r[u++],e[n]);return t}},K8G7:function(t,e,n){"use strict";var r=n("IutQ"),i=n("gJLK"),o=n("0i0S"),a=n("LX9C"),s=n("stQs"),u=a.set,l=a.getterFor("Array Iterator");t.exports=s(Array,"Array",function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},K9Ia:function(t,e,n){"use strict";var r=n("mrSG"),i=n("6blF"),o=n("FFOo"),a=n("pugT"),s=n("8g8A"),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),l=n("L/V9");n.d(e,"b",function(){return c}),n.d(e,"a",function(){return h});var c=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[l.a]=function(){return new c(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(h)},"KOl+":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return m});var r=n("6blF"),i=n("bne5"),o={error:"cordova_not_available"},a={error:"plugin_not_installed"};function s(t){if("undefined"!=typeof window&&window.angular){var e=window.document,n=window.angular.element(e.querySelector("[ng-app]")||e.body).injector();if(n)return n.get("$q")(function(e,n){t(e,n)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which w
1on't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(e,n){t(e,n)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function u(t,e,n){var r,i,s;return"string"==typeof t?r=t:(r=t.constructor.getPluginRef(),n=t.constructor.getPluginName(),s=t.constructor.getPluginInstallName()),!(!(i=f(r))||e&&void 0===i[e])||("undefined"!=typeof window&&window.cordova?(function(t,n,r){e?console.warn("Native: tried calling "+t+"."+e+", but the "+t+" plugin is not installed."):console.warn("Native: tried accessing the "+t+" plugin but it's not installed."),n&&console.warn("Install the "+t+" plugin: 'ionic cordova plugin add "+n+"'")}(n,s),a):(function(t,n){"undefined"==typeof process&&(e?console.warn("Native: tried calling "+t+"."+e+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+t+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n),o))}function l(t,e,n,r){if(void 0===e&&(e={}),e.sync)return t;if("reverse"===e.callbackOrder)t.unshift(r),t.unshift(n);else if("node"===e.callbackStyle)t.push(function(t,e){t?r(t):n(e)});else if("object"===e.callbackStyle&&e.successName&&e.errorName){var i={};i[e.successName]=n,i[e.errorName]=r,t.push(i)}else if(void 0!==e.successIndex||void 0!==e.errorIndex){var o=function(){e.successIndex>t.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},a=function(){e.errorIndex>t.length?t[e.errorIndex]=r:t.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(a(),o()):(o(),a())}else t.push(n),t.push(r);return t}function c(t,e,n,r,i,o){void 0===r&&(r={}),n=l(n,r,i,o);var a=u(t,e);if(!0===a){var s=f(t.constructor.getPluginRef());return s[e].apply(s,n)}return a}function h(t,e,n,r,i,o){if(void 0===r&&(r={}),n=l(n,r,i,o),function(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function f(t){return"undefined"!=typeof window?d(window,t):null}function d(t,e){for(var n=e.split("."),r=t,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}var p=function(t,e,n){return void 0===n&&(n={}),function(){for(var o,a,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return n.sync?c(t,e,u,n):n.observable?function(t,e,n,i){return void 0===i&&(i={}),new r.a(function(r){var o;return(o=i.destruct?c(t,e,n,i,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.error(t)}):c(t,e,n,i,r.next.bind(r),r.error.bind(r)))&&o.error&&(r.error(o.error),r.complete()),function(){try{if(i.clearFunction)return i.clearWithArgs?c(t,i.clearFunction,n,i,r.next.bind(r),r.error.bind(r)):c(t,i.clearFunction,[])}catch(o){console.warn("Unable to clear the previous observable watch for",t.constructor.getPluginName(),e),console.warn(o)}}})}(t,e,u,n):n.eventObservable&&n.event?(o=n.event,a=n.element,a="undefined"!=typeof window&&a?d(window,a):a||("undefined"!=typeof window?window:{}),Object(i.a)(a,o)):n.otherPromise?function(t,e,n,r){return void 0===r&&(r={}),s(function(i,o){var a=c(t,e,n,r);a?a.error?o(a.error):a.then&&a.then(i).catch(o):o({error:"unexpected_error"})})}(t,e,u,n):function(t,e,n,r){var i,o;void 0===r&&(r={});var a=s(function(a,s){i=r.destruct?c(t,e,n,r,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s(t)}):c(t,e,n,r,a,s),o=s});return i&&i.error&&(a.catch(function(){}),"function"==typeof o&&o(i.error)),a}(t,e,u,n)}};function m(t,e,n){return void 0===n&&(n={}),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n.sync)return h(t,e,i,n);if(n.observable)return new r.a(function(r){var o;return(o=n.destruct?h(t,e,i,n,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.error(t)}):h(t,e,i,n,r.next.bind(r),r.error.bind(r)))&&o.error&&r.error(o.error),function(){try{return n.clearWithArgs?h(t,n.clearFunction,i,n,r.next.bind(r),r.error.bind(r)):h(t,n.clearFunction,[])}catch(o){console.warn("Unable to clear the previous observable watch for",t.constructor.getPluginName(),e),console.warn(o)}}});if(n.otherPromise)return s(function(r,o){var a;(a=n.destruct?h(t,e,i,n,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}):h(t,e,i,n,r,o))&&a.then?a.then(r,o):o()});var a,u,l=s(function(r,o){a=n.destruct?h(t,e,i,n,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}):h(t,e,i,n,r,o),u=o});return a&&a.error&&(l.catch(function(){}
1),"function"==typeof u&&u(a.error)),l}}},KWWs:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setUrl=function(t){this._url=t},e.prototype.getUrl=function(){return this._url},e}(n("tnAE").a)},KaSA:function(t,e,n){t.exports=n("uzDk")},Ksdp:function(t,e,n){var r=n("GrVo");n("pSMy")({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},LX9C:function(t,e,n){var r,i,o,a=n("BloW"),s=n("kpns"),u=n("wBs/"),l=n("57wU"),c=n("qBi7"),h=n("vcTx"),f=n("ysHE").WeakMap;if(a){var d=new f,p=d.get,m=d.has,g=d.set;r=function(t,e){return g.call(d,t,e),e},i=function(t){return p.call(d,t)||{}},o=function(t){return m.call(d,t)}}else{var v=c("state");h[v]=!0,r=function(t,e){return u(t,v,e),e},i=function(t){return l(t,v)?t[v]:{}},o=function(t){return l(t,v)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},Lq6m:function(t,e,n){"use strict";var r=n("KOl+");n.d(e,"a",function(){return i});var i=function(){function t(){}return t.installed=function(){return!0===Object(r.a)(this.pluginRef)},t.getPlugin=function(){return"undefined"!=typeof window?function(t,e){for(var n=e.split("."),r=t,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}(window,this.pluginRef):null},t.getPluginName=function(){return this.pluginName},t.getPluginRef=function(){return this.pluginRef},t.getPluginInstallName=function(){return this.plugin},t.getSupportedPlatforms=function(){return this.platforms},t.pluginName="",t.pluginRef="",t.plugin="",t.repo="",t.platforms=[],t.install="",t}()},MGBS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("FFOo").a)},MKys:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("F/XL"),i=n("67Y/"),o=n("8s+1"),a=n("CcnG"),s=n("ZYCi"),u=function(){function t(t,e){this.principal=t,this.router=e}return t.prototype.canActivate=function(t){var e=this;if(t.pathFromRoot[1]&&t.pathFromRoot[1].params.pvr){var n=t.pathFromRoot[1].params.pvr;return this.principal.identityWithClaim().pipe(Object(i.a)(function(t){return!!e.principal.identity()||(e.router.navigate(["/",n,"login"]),!1)}))}return Object(r.a)(!1)},t.ngInjectableDef=a.T({factory:function(){return new t(a.X(o.a),a.X(s.n))},token:t,providedIn:"root"}),t}()},McSo:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return r})},MfhB:function(t,e,n){var r=n("ysHE"),i=n("nX7E"),o=r["__core-js_shared__"]||i("__core-js_shared__",{});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.0.1",mode:n("U5J1")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},MuAL:function(t,e,n){n("q94Q")("toPrimitive")},NKHs:function(t,e,n){"use strict";n("CcnG");var r=n("Ip0R"),i=n("mrSG"),o=n("h9Dq"),a=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(o.a),s=n("CS9Q"),u=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(s.a))(a),l=n("T1DM"),c=n("6blF"),h=n("xMyE"),f=1,d={},p=function(t){function e(e,n){var r=t.call(this,e,n)||this;
1return r.scheduler=e,r.work=n,r}return i.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=f++,d[o]=i,Promise.resolve().then(function(){return function(t){var e=d[t];e&&e()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete d[n],e.scheduled=void 0)},e}(o.a),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(s.a))(p),g=n("isby"),v=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=m);var i,o=t.call(this)||this;return o.source=e,o.delayTime=n,o.scheduler=r,i=n,(Object(g.a)(i)||!(i-parseFloat(i)+1>=0)||n<0)&&(o.delayTime=0),r&&"function"==typeof r.schedule||(o.scheduler
1=m),o}return i.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=m),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})},e}(c.a),y=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new v(e,this.delay,this.scheduler).subscribe(t)},t}(),b=n("mZXl");function w(){}n.d(e,"a",function(){return E}),n.d(e,"b",function(){return C});var _=function(){function t(t,e){void 0===e&&(e=u),this.zone=t,this.delegate=e}return t.prototype.now=function(){return this.delegate.now()},t.prototype.schedule=function(t,e,n){var r=this.zone;return this.delegate.schedule(function(e){var n=this;r.runGuarded(function(){t.apply(n,[e])})},e,n)},t}(),S=function(){function t(t){this.zone=t,this.task=null}return t.prototype.call=function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run(function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",w,{},w,w)}),e.pipe(Object(h.a)(n,n,n)).subscribe(t).add(n)},t.prototype.unscheduleTask=function(){null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},t}(),E=function(){return function(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(function(){return new _(Zone.current)}),this.insideAngular=t.run(function(){return new _(Zone.current,l.a)})}}();function C(t,e){return function(n){return Object(r.q)(e)&&(n=n.lift(new S(t.ngZone))),n.pipe((i=t.outsideAngular,void 0===o&&(o=0),function(t){return t.lift(new y(i,o))}),Object(b.a)(t.insideAngular));var i,o}}},PU8L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("6blF");function i(t){var e=new r.a(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}},Phjn:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("psW0");function i(t,e){return Object(r.a)(t,e,1)}},Q2Kg:function(t,e,n){var r=n("2w5C"),i=n("o9j8");t.exports=Object.keys||function(t){return r(t,i)}},QURa:function(t,e,n){n("q94Q")("patternMatch")},QXnk:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return s});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},QvOV:function(t,e,n){var r=n("YCU0"),i=Object.prototype;r!==i.toString&&n("1f/i")(i,"toString",r,{unsafe:!0})},Rmbw:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("xMyE"),i=n("67Y/"),o=n("YBFb"),a=(n("8s+1"),n("B+2a")),s=(n("tnAE"),function(){function t(t,e,n,r,i){this.angularFireAuth=t,this.router=e,this.activatedRoute=n,this.principal=r,this.restService=i,this.version=o.b}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.params.subscribe(function(e){console.log("ActivatedRoute change pvr:",e.pvr),t.pvrPath=e.pvr,t.pvr$=Object(a.c)(t.pvrPath).pipe(Object(r.a)(function(t){return console.log("set pvr",t)}),Object(r.a)(function(e){e.uid&&(t.chat$=t.restService.findByKey("chat/"+e.uid).pipe(Object(i.a)(function(t){return"Active"===t.serviceStatus})),t.blog$=t.restService.findByKey("blog/"+e.uid).pipe(Object(i.a)(function(t){return"Active"===t.serviceStatus})),t.principal.setPvr(e))}))}),this.user$=this.angularFireAuth.authState},t.prototype.logout=function(){var t=this;this.angularFireAuth.auth.signOut().then(function(e){return t.router.navigate(["/",t.pvrPath,"login"])})},t}())},"Rt+L":function(t,e,n){"use strict";n("KOl+")},S4gH:function(t,e,n){var r=n("TIpl").f,i=n("57wU"),o=n("aXXJ")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},S5XQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("DKTb"),i=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},S5sp:function(t,e,n){t.exports=!n("0HDe")(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},SAp2:function(t,e,n){var r=n("9Nts");t.exports=function(t){return Object(r(t))}},SIcJ:function(t,e,n){var r=n("Q2Kg"),i=n("fw2a"),o=n("iCuu");t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},T1DM:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("h9Dq"),i=new(n("CS9Q").a)(r.a)},T3Qk:function(t,e,n){n("q0E7"),n("//qW"),n("spD4"),t.exports=n("ahhG").f("iterator")},TIpl:function(t,e,n){var r=n("lb/b"),i=n("a0i3"),o=n("bcPd"),a=n("ehg7"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Txjg:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("Zn8D");function i(){return Object(r.a)(1)}},Tzai:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()},U4hp:function(t,e,n){"use strict";var r=n("ehg7"),i=n("TIpl"),o=n("2Hee");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},U5J1:function(t,e){t.exports=!1},Us1p:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n("dB9c"),n("iTTW");var r=n("Wcq6"),i=n("AytR"),o=n("DRYZ"),a=n("2g2N"),s=n("CcnG"),u=n("ZYCi"),l=function(){function t(t,e,n){this.router=t,this.localStorage=e,this.toastService=n,this.init()}return t.prototype.init=function(){r.messaging.isSupported()&&(this.messaging=r.messaging(),this.messaging.usePublicVapidKey(i.a.fcm_messaging_public_key),this.messaging.onTokenRefresh(function(){var t=this;this.messaging.getToken().then(function(e){t.setTokenSentToServer(!1).then(t.sendTokenToServer(e))}).catch(function(t){console.log("Unable to get permission to notify.",t)})}),this.messaging.onMessage(function(t){console.log("Message received. ",t);var e=this.router.url;if(e.startsWith("/user/chat/")){var n=e.replace("/user/chat/","");t.notification.title.indexOf(n)<0&&this.toastService.makeToastSuccess(t.notification.title)}else this.toastService.makeToastSuccess(t.notification.title)}))},t.prototype.subscribeToTopic=function(t){return r.functions().httpsCallable("subscribeToUserTopic")(t)},t.prototype.unSubscribeFromTopic=function(t){return r.functions().httpsCallable("unSubscribeFromUserTopic")(t)},t.prototype.deleteToken=function(){var t=this;return this.messaging.getToken().then(function(e){return t.unSubscribeFromTopic({token:e}).then(function(e){return t.setTokenSentToServer(!1)}).then(function(n){return t.messaging.deleteToken(e)})}).catch(function(t){console.log("Unable to delete token. ",t),this.toastService.makeToast("Disattivazione notifiche: "+t.message)})},t.prototype.sendTokenToServer=function(t){var e=this;return this.subscribeToTopic({token:t}).then(function(t){return e.isTokenSentToServer().then(function(t){return t?(console.log("Token already sent to server so won't send it again unless it changes"),null):(console.log("Sending token to
1server..."),e.setTokenSentToServer(!0))})})},t.prototype.isTokenSentToServer=function(){return this.localStorage.isTokenSentToServer()},t.prototype.setTokenSentToServer=function(t){return this.localStorage.setTokenSentToServer(t)},t.prototype.reset=function(){var t=this;return this.messaging.getToken().then(function(e){return e?t.sendTokenToServer(e):(console.log("No Instance ID token available. Request permission to generate one."),t.setTokenSentToServer(!1))}).catch(function(t){return console.log("An error occurred while retrieving token. ",t),this.setTokenSentToServer(!1)})},t.prototype.requestPermission=function(){var t=this;return console.log("Requesting permission..."),this.messaging.requestPermission().then(function(e){return console.log("Notification permission granted."),t.reset()}).catch(function(t){return console.log("Unable to get permission to notify.",t),null})},t.ngInjectableDef=s.T({factory:function(){return new t(s.X(u.n),s.X(o.a),s.X(a.a))},token:t,providedIn:"root"}),t}()},Uv6z:function(t,e){!function(t){"use strict";if(!t.fetch){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(t){return t&&DataView.prototype.isPrototypeOf(t)},i=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};c.prototype.append=function(t,e){t=s(t),e=u(e);var n=this.map[t];this.map[t]=n?n+","+e:e},c.prototype.delete=function(t){delete this.map[s(t)]},c.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},c.prototype.set=function(t,e){this.map[s(t)]=u(e)},c.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},c.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),l(t)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),l(t)},c.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),l(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);
1var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var a=[301,302,303,307,308];y.redirect=function(t,e){if(-1===a.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=c,t.Request=g,t.Response=y,t.fetch=function(t,n){return new Promise(function(r,i){var o=new g(t,n),a=new XMLHttpRequest;a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}}),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL"),r(new y("response"in a?a.response:a.responseText,n))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(n[Symbol.iterator]=function(){return n}),n}function c(t){this.map={},t instanceof c?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function d(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&r(t))this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!i(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=p(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,e,n,r=h(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=f(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function g(t,e){var n,r,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(r=(n=e.method||this.method||"GET").toUpperCase(),o.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},VRER:function(t,e,n){"use strict";n("mrSG");var r=n("CcnG"),i=n("6blF"),o=n("67Y/");function a(t){var e=function(t){return new i.a(function(e){return t.on("state_changed",function(t){return e.next(t)},function(t){return e.error(t)},function(){return e.complete()}),function(){return t.cancel()}})}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:function(){return e},percentageChanges:function(){return e.pipe(Object(o.a)(function(t){return t.bytesTransferred/t.totalBytes*100}))}}}var s=n("0/uQ");function u(t,e,n){return{getDownloadURL:function(){return Object(s.a)(t.getDownloadURL(),e.outsideAngular).pipe(n)},getMetadata:function(){return Object(s.a)(t.getMetadata()).pipe(n)},delete:function(){return Object(s.a)(t.delete())},child:function(r){return u(t.child(r),e,n)},updateMetatdata:function(e){return Object(s.a)(t.updateMetadata(e))},updateMetadata:function(e){return Object(s.a)(t.updateMetadata(e))},put:function(e,n){return a(t.put(e,n))},putString:function(e,n,r){return a(t.putString(e,n,r))}}}var l=n("NKHs"),c=n("hDTV");n.d(e,"b",function(){return h}),n.d(e,"a",function(){return f});var h=new r.p("angularfire2.storageBucket"),f=function(){function t(t,e,n,r,i){this.schedulers=new l.a(i),this.keepUnstableUntilFirst=Object(l.b)(this.schedulers,r),this.storage=i.runOutsideAngular(function(){return Object(c.e)(t,i,e).storage(n||void 0)})}return t.prototype.ref=function(t){return u(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)},t.prototype.upload=function(t,e,n){return u(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)},t}()},"VnD/":function(t,e,n){"use strict";n.d(e,"a",function(){return o}
1);var r=n("mrSG"),i=n("FFOo");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.a)},Vta1:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n("6nsN");var r=n("Wcq6"),i=n("6blF"),o=n("0/uQ"),a=n("F/XL"),s=n("psW0"),u=n("67Y/"),l=n("CcnG"),c=n("ZYCi"),h=function(){function t(t){this.router=t}return t.prototype.canActivate=function(t,e){var n;return(n=r.auth(),i.a.create(function(t){n.onAuthStateChanged(function(e){return t.next(e)},function(e){return t.error(e)},function(){return t.complete()})})).pipe(Object(s.a)(function(t){return t?Object(a.a)(!0):Object(o.a)(r.auth().signInAnonymously()).pipe(Object(u.a)(function(){return!0}))}))},t.ngInjectableDef=l.T({factory:function(){return new t(l.X(c.n))},token:t,providedIn:"root"}),t}()},WBJg:function(t,e,n){n("pSMy")({target:"String",proto:!0},{repeat:n("nsc/")})},WC58:function(t,e,n){var r;!function(){var i=n("Wcq6");n("6nsN"),void 0!==i.default&&(i=i.default);var o,a,s,u,l={upgradeDom:function(t,e){},upgradeElement:function(t,e){},upgradeElements:function(t){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(t,e){},register:function(t){},downgradeElements:function(t){}};(l=function(){var t=[],e=[],n="mdlComponentConfigInternal_";function r(e,n){for(var r=0;r<t.length;r++)if(t[r].className===e)return void 0!==n&&(t[r]=n),t[r];return!1}function i(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function o(t,e){return-1!==i(t).indexOf(e)}function a(t,e,n){if("CustomEvent"in window&&"function"==typeof window.CustomEvent)return new CustomEvent(t,{bubbles:e,cancelable:n});var r=document.createEvent("Events");return r.initEvent(t,e,n),r}function s(e,n){if(void 0===e&&void 0===n)for(var i=0;i<t.length;i++)s(t[i].className,t[i].cssClass);else{var o=e;if(void 0===n){var a=r(o);a&&(n=a.cssClass)}for(var l=document.querySelectorAll("."+n),c=0;c<l.length;c++)u(l[c],o)}}function u(s,u){if(!("object"==typeof s&&s instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var l=a("mdl-componentupgrading",!0,!0);if(s.dispatchEvent(l),!l.defaultPrevented){var c=i(s),h=[];if(u)o(s,u)||h.push(r(u));else{var f=s.classList;t.forEach(function(t){f.contains(t.cssClass)&&-1===h.indexOf(t)&&!o(s,t.className)&&h.push(t)})}for(var d,p=0,m=h.length;p<m;p++){if(!(d=h[p]))throw new Error("Unable to find a registered component for the given class.");c.push(d.className),s.setAttribute("data-upgraded",c.join(","));var g=new d.classConstructor(s);g[n]=d,e.push(g);for(var v=0,y=d.callbacks.length;v<y;v++)d.callbacks[v](s);d.widget&&(s[d.className]=g);var b=a("mdl-componentupgraded",!0,!1);s.dispatchEvent(b)}}}function l(t){if(t){var r=e.indexOf(t);e.splice(r,1);var i=t.element_.getAttribute("data-upgraded").split(","),o=i.indexOf(t[n].classAsString);i.splice(o,1),t.element_.setAttribute("data-upgraded",i.join(","));var s=a("mdl-componentdowngraded",!0,!1);t.element_.dispatchEvent(s)}}return{upgradeDom:s,upgradeElement:u,upgradeElements:function t(e){Array.isArray(e)||(e=e instanceof Element?[e]:Array.prototype.slice.call(e));for(var n,r=0,i=e.length;r<i;r++)(n=e[r])instanceof HTMLElement&&(u(n),n.children.length>0&&t(n.children))},upgradeAllRegistered:function(){for(var e=0;e<t.length;e++)s(t[e].className)},registerUpgradedCallback:function(t,e){var n=r(t);n&&n.callbacks.push(e)},register:function(e){var i=!0;void 0===e.widget&&void 0===e.widget||(i=e.widget||e.widget);var o={classConstructor:e.constructor||e.constructor,className:e.classAsString||e.classAsString,cssClass:e.cssClass||e.cssClass,widget:i,callbacks:[]};if(t.forEach(function(t){if(t.cssClass===o.cssClass)throw new Error("The provided cssClass has already been registered: "+t.cssClass);if(t.className===o.className)throw new Error("The provided className has already been registered")}),e.constructor.prototype.hasOwnProperty(n))throw new Error("MDL component classes must not have "+n+" defined as a property.");r(e.classAsString,o)||t.push(o)},downgradeElements:function(t){var n=function(t){e.filter(function(e){return e.element_===t}
1).forEach(l)};if(t instanceof Array||t instanceof NodeList)for(var r=0;r<t.length;r++)n(t[r]);else{if(!(t instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");n(t)}}}}()).upgradeDom=l.upgradeDom,l.upgradeElement=l.upgradeElement,l.upgradeElements=l.upgradeElements,l.upgradeAllRegistered=l.upgradeAllRegistered,l.registerUpgradedCallback=l.registerUpgradedCallback,l.register=l.register,l.downgradeElements=l.downgradeElements,window.componentHandler=l,window.componentHandler=l,window.addEventListener("load",function(){"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),l.upgradeAllRegistered()):(l.upgradeElement=function(){},l.register=function(){})}),o=function(t){this.element_=t,this.init()},window.MaterialButton=o,o.prototype.Constant_={},o.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},o.prototype.blurHandler_=function(t){t&&this.element_.blur()},o.prototype.disable=o.prototype.disable=function(){this.element_.disabled=!0},o.prototype.enable=o.prototype.enable=function(){this.element_.disabled=!1},o.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),t.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(t)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},l.register({constructor:o,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0}),a=function(t){this.element_=t,this.init()},window.MaterialProgress=a,a.prototype.Constant_={},a.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},a.prototype.setProgress=a.prototype.setProgress=function(t){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=t+"%")},a.prototype.setBuffer=a.prototype.setBuffer=function(t){this.bufferbar_.style.width=t+"%",this.auxbar_.style.width=100-t+"%"},a.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.className="progressbar bar bar1",this.element_.appendChild(t),this.progressbar_=t,(t=document.createElement("div")).className="bufferbar bar bar2",this.element_.appendChild(t),this.bufferbar_=t,(t=document.createElement("div")).className="auxbar bar bar3",this.element_.appendChild(t),this.auxbar_=t,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},l.register({constructor:a,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0}),s=function(t){this.element_=t,this.init()},window.MaterialSpinner=s,s.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},s.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},s.prototype.createLayer=s.prototype.createLayer=function(t){var e=document.createElement("div");e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+t);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),n.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasse
1s_.MDL_SPINNER_RIGHT);for(var o=[n,r,i],a=0;a<o.length;a++){var s=document.createElement("div");s.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),o[a].appendChild(s)}e.appendChild(n),e.appendChild(r),e.appendChild(i),this.element_.appendChild(e)},s.prototype.stop=s.prototype.stop=function(){this.element_.classList.remove("is-active")},s.prototype.start=s.prototype.start=function(){this.element_.classList.add("is-active")},s.prototype.init=function(){if(this.element_){for(var t=1;t<=this.Constant_.MDL_SPINNER_LAYER_COUNT;t++)this.createLayer(t);this.element_.classList.add("is-upgraded")}},l.register({constructor:s,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0}),u=function(t){this.element_=t,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()},window.MaterialTextfield=u,u.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},u.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},u.prototype.onKeyDown_=function(t){var e=t.target.value.split("\n").length;13===t.keyCode&&e>=this.maxRows&&t.preventDefault()},u.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},u.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},u.prototype.onReset_=function(t){this.updateClasses_()},u.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},u.prototype.checkDisabled=u.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},u.prototype.checkFocus=u.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},u.prototype.checkValidity=u.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},u.prototype.checkDirty=u.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},u.prototype.disable=u.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},u.prototype.enable=u.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},u.prototype.change=u.prototype.change=function(t){this.input_.value=t||"",this.updateClasses_()},u.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var t=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),t&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},l.register({constructor:u,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0}),function(){var i=window.CustomEvent;function o(t){for(;t;){if("dialog"===t.localName)return t;t=t.parentElement}return null}function a(t){t&&t.blur&&t!==document.body&&t.blur()}function s(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1}function u(t){return!(!t||!t.hasAttribute("method"))&&"dialog"===t.getAttribute("method").toLowerCase()}function l(t){if(this.dialog_=t,this.replacedStyleTop_=!1,this.openAsModal_=!1,t.hasAttribute("role")||t.setAttribute("role","dialog"),t.show=this.show.bind(this),t.showModal=this.showModal.bind(this),t.close=this.close.bind(this),"returnValue"in t||(t.returnValue=""),"MutationObserver"in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(t,{attributes:!0,attributeFilter:["open"]});else{var e,n=!1,r=(function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}).bind(this),i=function(i){if(i.target===t){var o="DOMNodeRemoved";n|=i.type.substr(0,o.length)===o,window.clearTimeout(e),e=window.setTimeout(r,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(e){t.addEventListener(e,i)})}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}i&&"object"!=typeof i||((i=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");
vendor: 4,561 bytes, line 1
1return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail||null),n}).prototype=window.Event.prototype),l.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),c.dm.removeDialog(this))},setOpen:function(t){t?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(t){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild),e.tabIndex=-1,e.focus(),this.dialog_.removeChild(e)}var n=document.createEvent("MouseEvents");n.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),this.dialog_.dispatchEvent(n),t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0&&(t=this.dialog_),!t){var e=["button","input","keygen","select","textarea"].map(function(t){return t+":not([disabled])"});e.push('[tabindex]:not([disabled]):not([tabindex=""])'),t=this.dialog_.querySelector(e.join(", "))}a(document.activeElement),t&&t.focus()},updateZIndex:function(t,e){if(t<e)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=t,this.backdrop_.style.zIndex=e},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!c.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(t){for(;t&&t!==document.body;){var e=window.getComputedStyle(t),n=function(t,n){return!(void 0===e[t]||e[t]===n)};if(e.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===e.isolation||"fixed"===e.position||"touch"===e.webkitOverflowScrolling)return!0;t=t.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,c.needsCentering(this.dialog_)?(c.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==t&&(this.dialog_.returnValue=t);var e=new i("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(e)}};var c={reposition:function(t){var e=document.body.scrollTop||document.documentElement.scrollTop,n=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,n)+"px"},isInlinePositionSetByStylesheet:function(t){for(var e=0;e<document.styleSheets.length;++e){var n=document.styleSheets[e],r=null;try{r=n.cssRules}catch(c){}if(r)for(var i=0;i<r.length;++i){var o=r[i],a=null;try{a=document.querySelectorAll(o.selectorText)}catch(h){}if(a&&s(a,t)){var u=o.style.getPropertyValue("top"),l=o.style.getPropertyValue("bottom");if(u&&"auto"!==u||l&&"auto"!==l)return!0}}}return!1},needsCentering:function(t){return!("absolute"!==window.getComputedStyle(t).position||"auto"!==t.style.top&&""!==t.style.top||"auto"!==t.style.bottom&&""!==t.style.bottom||c.isInlinePositionSetByStylesheet(t))},forceRegisterDialog:function(t){if((window.HTMLDialogElement||t.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",t),"dialog"!==t.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new l(t)},registerDialog:function(t){t.showModal||c.forceRegisterDialog(t)}
1,DialogManager:function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(e){this.forwardTab_=void 0,e.stopPropagation(),t([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(e){var n=[];e.forEach(function(t){for(var e,r=0;e=t.removedNodes[r];++r)e instanceof Element&&("dialog"===e.localName&&n.push(e),n=n.concat(e.querySelectorAll("dialog")))}),n.length&&t(n)}))}};if(c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var t,e=this.zIndexHigh_,n=0;t=this.pendingDialogStack[n];++n)t.updateZIndex(--e,--e),0===n&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(t){for(;t=o(t);){for(var e,n=0;e=this.pendingDialogStack[n];++n)if(e.dialog===t)return 0===n;t=t.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(t){if(!this.containedByTopDialog_(t.target)&&(t.preventDefault(),t.stopPropagation(),a(t.target),void 0!==this.forwardTab_)){var e=this.pendingDialogStack[0];return e.dialog.compareDocumentPosition(t.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?e.focus_():document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(t){if(this.forwardTab_=void 0,27===t.keyCode){t.preventDefault(),t.stopPropagation();var e=new i("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(e)&&n.dialog.close()}else 9===t.keyCode&&(this.forwardTab_=!t.shiftKey)},c.DialogManager.prototype.checkDOM_=function(t){this.pendingDialogStack.slice().forEach(function(e){-1!==t.indexOf(e.dialog)?e.downgradeModal():e.maybeHideModal()})},c.DialogManager.prototype.pushDialog=function(t){return!(this.pendingDialogStack.length>=(this.zIndexHigh_-this.zIndexLow_)/2-1||(1===this.pendingDialogStack.unshift(t)&&this.blockDocument(),this.updateStacking(),0))},c.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);-1!==e&&(this.pendingDialogStack.splice(e,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.useValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var d=f.get;f.get=function(){return u(this)?"dialog":d.call(this)};var p=f.set;f.set=function(t){return"string"==typeof t&&"dialog"===t.toLowerCase()?this.setAttribute("method",t):p.call(this,t)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",function(t){if(c.formSubmitter=null,c.useValue=null,!t.defaultPrevented){var e=t.target;if(e&&u(e.form)){if(!("submit"===e.type&&["button","input"].indexOf(e.localName)>-1)){if("input"!==e.localName||"image"!==e.type)return;c.useValue=t.offsetX+","+t.offsetY}o(e)&&(c.formSubmitter=e)}}},!1);var m=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!u(this))return m.call(this);var t=o(this);t&&t.close()},document.addEventListener("submit",function(t){var e=t.target;if(u(e)){t.preventDefault();var n=o(e);if(n){var r=c.formSubmitter;r&&r.form===e?n.close(c.useValue||r.value):n.close(),c.formSubmitter=null}}},!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n("B9Yq")?void 0===(r=(function(){return c}).call(e,n,e,t))||(t.exports=r):"object"==typeof t.exports?t.exports=c:window.dialogPolyfill=c}(),function(){var t,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},n="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function r(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function o(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:r(t)}
vendor: 2,291 bytes, line 1
1}!function(t,r){if(r){var i=n;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in i||(i[a]={}),i=i[a]}(r=r(o=i[t=t[t.length-1]]))!=o&&null!=r&&e(i,t,{configurable:!0,writable:!0,value:r})}}("Promise",function(t){function e(t){this.f=0,this.h=void 0,this.a=[];var e=this.j();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function r(){this.a=null}function i(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;r.prototype.f=function(t){if(null==this.a){this.a=[];var e=this;this.h(function(){e.i()})}this.a.push(t)};var a=n.setTimeout;r.prototype.h=function(t){a(t,0)},r.prototype.i=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(r){this.j(r)}}}this.a=null},r.prototype.j=function(t){this.h(function(){throw t})},e.prototype.j=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.I),reject:t(this.i)}},e.prototype.I=function(t){if(t===this)this.i(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.K(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.F(t):this.v(t)}},e.prototype.F=function(t){var e=void 0;try{e=t.then}catch(n){return void this.i(n)}"function"==typeof e?this.O(e,t):this.v(t)},e.prototype.i=function(t){this.w(2,t)},e.prototype.v=function(t){this.w(1,t)},e.prototype.w=function(t,e){if(0!=this.f)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.f);this.f=t,this.h=e,this.C()},e.prototype.C=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)s.f(this.a[t]);this.a=null}};var s=new r;return e.prototype.K=function(t){var e=this.j();t.Da(e.resolve,e.reject)},e.prototype.O=function(t,e){var n=this.j();try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e(function(t,e){i=t,o=e});return this.Da(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Da=function(t,e){function n(){switch(r.f){case 1:t(r.h);break;case 2:e(r.h);break;default:throw Error("Unexpected state: "+r.f)}}var r=this;null==this.a?s.f(n):this.a.push(n)}
1,e.resolve=i,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var r=o(t),a=r.next();!a.done;a=r.next())i(a.value).Da(e,n)})},e.all=function(t){var n=o(t),r=n.next();return r.done?i([]):new e(function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,i(r.value).Da(o(a.length-1),e),r=n.next()}while(!r.done)})},e});var a=this;function s(t){return void 0!==t}function u(t){return"string"==typeof t}var l=/^[\w+\/_-]+[=]{0,2}$/,c=null;function h(){}function f(t){t.V=void 0,t.Ra=function(){return t.V?t.V:t.V=new t}}function d(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function p(t){return null!=t}function m(t){return"array"==d(t)}function g(t){var e=d(t);return"array"==e||"object"==e&&"number"==typeof t.length}function v(t){return"function"==d(t)}function y(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var b="closure_uid_"+(1e9*Math.random()>>>0),w=0;function _(t,e,n){return t.call.apply(t.bind,arguments)}function S(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function E(t,e,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?_:S).apply(null,arguments)}function C(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function I(t,e){for(var n in e)t[n]=e[n]}var k,T=Date.now||function(){return+new Date};function O(t,e){t=t.split(".");var n,r=a;t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(;t.length&&(n=t.shift());)!t.length&&s(e)?r[n]=e:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}}function A(t,e){function n(){}n.prototype=e.prototype,t.o=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.fc=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function x(t){if(Error.captureStackTrace)Error.captureStackTrace(this,x);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function D(t,e){for(var n="",r=(t=t.split("%s")).length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");x.call(this,n+t[r])}function P(t,e){throw new D("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}A(x,Error),x.prototype.name="CustomError",A(D,x),D.prototype.name="AssertionError";var N=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(u(t))return u(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},j=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i=u(t)?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)},R=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o=u(t)?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},M=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=Array(n),i=u(t)?t.split(""):t,o=0;o<n;o++)o in i&&(r[o]=e.call(void 0,i[o],o,t));return r},L=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=u(t)?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t))return!0;return!1};function F(t,e,n){for(var r=t.length,i=u(t)?t.split(""):t,o=0;o<r;o++)if(o in i&&e.call(n,i[o],o,t))return o;return-1}function V(t,e){return 0<=N(t,e)}function U(t,e){var n;return(n=0<=(e=N(t,e)))&&q(t,e),n}function q(t,e){return 1==Array.prototype.splice.call(t,e,1).length}function B(t){return Array.prototype.concat.apply([],arguments)}function z(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function H(t,e,n,r){return Array.prototype.splice.apply(t,G(arguments,1
1))}function G(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}var $=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function K(t){return et.test(t)?(-1!=t.indexOf("&")&&(t=t.replace(Q,"&")),-1!=t.indexOf("<")&&(t=t.replace(J,"<")),-1!=t.indexOf(">")&&(t=t.replace(X,">")),-1!=t.indexOf('"')&&(t=t.replace(Y,""")),-1!=t.indexOf("'")&&(t=t.replace(Z,"'")),-1!=t.indexOf("\0")&&(t=t.replace(tt,"�")),t):t}var W,Q=/&/g,J=/</g,X=/>/g,Y=/"/g,Z=/'/g,tt=/\x00/g,et=/[\x00&<>"']/;function nt(t,e){return t<e?-1:t>e?1:0}t:{var rt=a.navigator;if(rt){var it=rt.userAgent;if(it){W=it;break t}}W=""}function ot(t){return-1!=W.indexOf(t)}function at(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function st(t){var e,n={};for(e in t)n[e]=t[e];return n}var ut="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function lt(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<ut.length;o++)n=ut[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function ct(){return(ot("Chrome")||ot("CriOS"))&&!ot("Edge")}function ht(t){return ht[" "](t),t}ht[" "]=h;var ft,dt,pt=ot("Opera"),mt=ot("Trident")||ot("MSIE"),gt=ot("Edge"),vt=gt||mt,yt=ot("Gecko")&&!(-1!=W.toLowerCase().indexOf("webkit")&&!ot("Edge"))&&!(ot("Trident")||ot("MSIE"))&&!ot("Edge"),bt=-1!=W.toLowerCase().indexOf("webkit")&&!ot("Edge"),wt=bt&&ot("Mobile"),_t=ot("Macintosh");function St(){var t=a.document;return t?t.documentMode:void 0}t:{var Et="",Ct=(dt=W,yt?/rv:([^\);]+)(\)|;)/.exec(dt):gt?/Edge\/([\d\.]+)/.exec(dt):mt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(dt):bt?/WebKit\/(\S+)/.exec(dt):pt?/(?:Version)[ \/]?(\S+)/.exec(dt):void 0);if(Ct&&(Et=Ct?Ct[1]:""),mt){var It=St();if(null!=It&&It>parseFloat(Et)){ft=String(It);break t}}ft=Et}var kt,Tt={};function Ot(t){return function(t,e){var n=Tt;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=$(String(ft)).split("."),r=$(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=nt(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||nt(0==a[2].length,0==s[2].length)||nt(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var At=a.document;function xt(t,e){this.a=t===Nt&&e||"",this.f=Pt}function Dt(t){return t instanceof xt&&t.constructor===xt&&t.f===Pt?t.a:(P("expected object of type Const, got '"+t+"'"),"type_error:Const")}kt=At&&mt?St()||("CSS1Compat"==At.compatMode?parseInt(ft,10):5):void 0,xt.prototype.ka=!0,xt.prototype.ia=function(){return this.a},xt.prototype.toString=function(){return"Const{"+this.a+"}"};var Pt={},Nt={};function jt(){this.a="",this.h=Mt}function Rt(t){return t instanceof jt&&t.constructor===jt&&t.h===Mt?t.a:(P("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}jt.prototype.ka=!0,jt.prototype.ia=function(){return this.a},jt.prototype.f=function(){return 1},jt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Mt={};function Lt(t){var e=new jt;return e.a=t,e}function Ft(){this.a="",this.h=Bt}function Vt(t){return t instanceof Ft&&t.constructor===Ft&&t.h===Bt?t.a:(P("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}Ft.prototype.ka=!0,Ft.prototype.ia=function(){return this.a},Ft.prototype.f=function(){return 1},Ft.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ut=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i;function qt(t){return t instanceof Ft?t:(t="object"==typeof t&&t.ka?t.ia():String(t),Ut.test(t)||(t="about:invalid#zClosurez"),zt(t))}var Bt={};function zt(t){var e=new Ft;return e.a=t,e}function Ht(){this.a="",this.f=Gt}zt("about:blank"),Ht.prototype.ka=!0;var Gt={};function $t(){this.a="",this.j=Wt,this.h=null}function Kt(t){return t instanceof $t&&t.constructor===$t&&t.j===Wt?t.a:(P("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}Ht.prototype.ia=function(){return this.a},Ht.prototype.toString=function(){return"SafeStyle{"+this.a+"}"},$t.prototype.f=function(){return this.h},$t.prototype.ka=!0,$t.prototype.ia=function(){return this.a},$t.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Wt={};function Qt(t,e){var n=new $t;return n.a=t,n.h=e,n}Qt("<!DOCTYPE html>",0),Qt("",0),Qt("<br>",0);var Jt,Xt,Yt=(Xt=!1,function(){return Xt||(Jt=function(){if("undefined"==typeof document)return!1;var t=document.createElement("div");if(t.innerHTML="<div><div></div></div>",!t.firstChild)return!1;var e=t.firstChild.firstChild;return t.innerHTML="",!e.parentElement}(),Xt=!0),Jt});function Zt(t,e){this.a=s(t)?t:0,this.f=s(e)?e:0}function te(t,e){this.width=t,this.height=e}function ee(t){return t?new he(ue(t)):k||(k=new he)}function ne(t,e){var n=e||document;return n.querySelectorAll&&n.querySelector?n.querySelectorAll("."+t):ie(document,t,e)}function re(t,e){var n=e||document;if(n.getElementsByClassName)t=n.getElementsByClassName(t)[0];else{n=document;var r=e||n;t=r.querySelectorAll&&r.querySelector&&t?r.querySelector(t?"."+t:""):ie(n,t,e)[0]||null}return t||null}function ie(t,e,n){var r;if((t=n||t).querySelectorAll&&t.querySelector&&e)return t.querySelectorAll(e?"."+e:"");
1if(e&&t.getElementsByClassName){var i=t.getElementsByClassName(e);return i}if(i=t.getElementsByTagName("*"),e){var o={};for(n=r=0;t=i[n];n++){var a=t.className;"function"==typeof a.split&&V(a.split(/\s+/),e)&&(o[r++]=t)}return o.length=r,o}return i}Zt.prototype.toString=function(){return"("+this.a+", "+this.f+")"},Zt.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.f=Math.ceil(this.f),this},Zt.prototype.floor=function(){return this.a=Math.floor(this.a),this.f=Math.floor(this.f),this},Zt.prototype.round=function(){return this.a=Math.round(this.a),this.f=Math.round(this.f),this},(t=te.prototype).toString=function(){return"("+this.width+" x "+this.height+")"},t.aspectRatio=function(){return this.width/this.height},t.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},t.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},t.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var oe={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ae(t){return t.scrollingElement?t.scrollingElement:(bt||"CSS1Compat"!=t.compatMode)&&t.body||t.documentElement}function se(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ue(t){return 9==t.nodeType?t:t.ownerDocument||t.document}function le(t,e){if("textContent"in t)t.textContent=e;else if(3==t.nodeType)t.data=String(e);else if(t.firstChild&&3==t.firstChild.nodeType){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(e)}else{for(var n;n=t.firstChild;)t.removeChild(n);t.appendChild(ue(t).createTextNode(String(e)))}}function ce(t,e){return e?function(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}(t,function(t){return!e||u(t.className)&&V(t.className.split(/\s+/),e)}):null}function he(t){this.a=t||a.document||document}he.prototype.N=function(){return u(void 0)?this.a.getElementById(void 0):void 0};var fe="StopIteration"in a?a.StopIteration:{message:"StopIteration",stack:""};function de(){}function pe(t){if(t instanceof de)return t;if("function"==typeof t.fa)return t.fa(!1);if(g(t)){var e=0,n=new de;return n.next=function(){for(;;){if(e>=t.length)throw fe;if(e in t)return t[e++];e++}},n}throw Error("Not implemented")}function me(t,e){this.f={},this.a=[],this.j=this.h=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof me)for(n=t.ha(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function ge(t){if(t.h!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];ve(t.f,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.h!=t.a.length){var i={};for(n=e=0;e<t.a.length;)ve(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function ve(t,e){return Object.prototype.hasOwnProperty.call(t,e)}de.prototype.next=function(){throw fe},de.prototype.fa=function(){return this},(t=me.prototype).ja=function(){ge(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.f[this.a[e]]);return t},t.ha=function(){return ge(this),this.a.concat()},t.clear=function(){this.f={},this.j=this.h=this.a.length=0},t.get=function(t,e){return ve(this.f,t)?this.f[t]:e},t.set=function(t,e){ve(this.f,t)||(this.h++,this.a.push(t),this.j++),this.f[t]=e},t.forEach=function(t,e){for(var n=this.ha(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}},t.fa=function(t){ge(this);var e=0,n=this.j,r=this,i=new de;return i.next=function(){if(n!=r.j)throw Error("The map has changed since the iterator was created");if(e>=r.a.length)throw fe;var i=r.a[e++];return t?i:r.f[i]},i};var ye=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function be(t,e,n,r){for(var i=n.length;0<=(e=t.indexOf(n,e))&&e<r;){var o=t.charCodeAt(e-1);if(!(38!=o&&63!=o||(o=t.charCodeAt(e+i))&&61!=o&&38!=o&&35!=o))return e;e+=i+1}return-1}var we=/#|$/;function _e(t,e){var n=t.search(we),r=be(t,0,e,n);if(0>r)return null;var i=t.indexOf("&",r);return(0>i||i>n)&&(i=n),r+=e.length+1,decodeURIComponent(t.substr(r,i-r).replace(/\+/g," "))}var Se=/[?&]($|#)/;function Ee(t,e){var n;this.h=this.w=this.j="",this.C=null,this.i=this.f="",this.v=!1,t instanceof Ee?(this.v=s(e)?e:t.v,Ce(this,t.j),this.w=t.w,this.h=t.h,Ie(this,t.C),this.f=t.f,ke(this,qe(t.a)),this.i=t.i):t&&(n=String(t).match(ye))?(this.v=!!e,Ce(this,n[1]||"",!0),this.w=Ae(n[2]||""),this.h=Ae(n[3]||"",!0),Ie(this,n[4]),this.f=Ae(n[5]||"",!0),ke(this,n[6]||"",!0),this.i=Ae(n[7]||"")):(this.v=!!e,this.a=new Le(null,this.v))}function Ce(t,e,n){t.j=n?Ae(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function Ie(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.C=e}else t.C=null}function ke(t,e,n){e instanceof Le?(t.a=e,function(t,e){e&&!t.j&&(Fe(t),t.h=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Ve(this,e),Ve(this,n),0<t.length&&(this.h=null,this.a.set(Be(this,n),z(t)),this.f+=t.length))},t)),t.j=e}(t.a,t.v)):(n||(e=xe(e,Re)),t.a=new Le(e,t.v))}function Te(t){return t instanceof Ee?new Ee(t):new Ee(t,void 0)}function Oe(t,e){return t instanceof Ee||(t=Te(t)),e instanceof Ee||(e=Te(e)),t.resolve(e)}function Ae(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function xe(t,e,n){return u(t)?(t=encodeURI(t).replace(e,De),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function De(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ee.prototype.toString=function(){var t=[],e=this.j;e&&t.push(xe(e,Pe,!0),":");var n=this.h;
1return(n||"file"==e)&&(t.push("//"),(e=this.w)&&t.push(xe(e,Pe,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.C)&&t.push(":",String(n))),(n=this.f)&&(this.h&&"/"!=n.charAt(0)&&t.push("/"),t.push(xe(n,"/"==n.charAt(0)?je:Ne,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.i)&&t.push("#",xe(n,Me)),t.join("")},Ee.prototype.resolve=function(t){var e=new Ee(this),n=!!t.j;n?Ce(e,t.j):n=!!t.w,n?e.w=t.w:n=!!t.h,n?e.h=t.h:n=null!=t.C;var r=t.f;if(n)Ie(e,t.C);else if(n=!!t.f){if("/"!=r.charAt(0))if(this.h&&!this.f)r="/"+r;else{var i=e.f.lastIndexOf("/");-1!=i&&(r=e.f.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.f=r:n=""!==t.a.toString(),n?ke(e,qe(t.a)):n=!!t.i,n&&(e.i=t.i),e};var Pe=/[#\/\?@]/g,Ne=/[#\?:]/g,je=/[#\?]/g,Re=/[#\?@]/g,Me=/#/g;function Le(t,e){this.f=this.a=null,this.h=t||null,this.j=!!e}function Fe(t){t.a||(t.a=new me,t.f=0,t.h&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.h,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Ve(t,e){Fe(t),e=Be(t,e),ve(t.a.f,e)&&(t.h=null,t.f-=t.a.get(e).length,ve((t=t.a).f,e)&&(delete t.f[e],t.h--,t.j++,t.a.length>2*t.h&&ge(t)))}function Ue(t,e){return Fe(t),e=Be(t,e),ve(t.a.f,e)}function qe(t){var e=new Le;return e.h=t.h,t.a&&(e.a=new me(t.a),e.f=t.f),e}function Be(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(t=Le.prototype).add=function(t,e){Fe(this),this.h=null,t=Be(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.f+=1,this},t.clear=function(){this.a=this.h=null,this.f=0},t.forEach=function(t,e){Fe(this),this.a.forEach(function(n,r){j(n,function(n){t.call(e,n,r,this)},this)},this)},t.ha=function(){Fe(this);for(var t=this.a.ja(),e=this.a.ha(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},t.ja=function(t){Fe(this);var e=[];if(u(t))Ue(this,t)&&(e=B(e,this.a.get(Be(this,t))));else{t=this.a.ja();for(var n=0;n<t.length;n++)e=B(e,t[n])}return e},t.set=function(t,e){return Fe(this),this.h=null,Ue(this,t=Be(this,t))&&(this.f-=this.a.get(t).length),this.a.set(t,[e]),this.f+=1,this},t.get=function(t,e){return t&&0<(t=this.ja(t)).length?String(t[0]):e},t.toString=function(){if(this.h)return this.h;if(!this.a)return"";for(var t=[],e=this.a.ha(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.ja(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.h=t.join("&")};var ze={qc:!0},He={sc:!0},Ge={pc:!0},$e={rc:!0};function Ke(){throw Error("Do not instantiate directly")}function We(t,e,n,r){if(t=t(e||Je,void 0,n),r=(r||ee()).a.createElement("DIV"),(t=function(t){if(!y(t))return String(t);if(t instanceof Ke){if(t.ca===ze)return t.content;if(t.ca===$e)return K(t.content)}return P("Soy template output is unsafe for use as HTML: "+t),"zSoyz"}(t)).match(Qe),Yt())for(;r.lastChild;)r.removeChild(r.lastChild);return r.innerHTML=t,1==r.childNodes.length&&1==(t=r.firstChild).nodeType&&(r=t),r}Ke.prototype.ta=null,Ke.prototype.toString=function(){return this.content};var Qe=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,Je={};function Xe(){Ke.call(this)}function Ye(t){return null!=t&&t.ca===ze?t:t instanceof $t?nn(Kt(t),t.f()):nn(K(String(String(t))),function(t){if(null!=t)switch(t.ta){case 1:return 1;case-1:return-1;case 0:return 0}return null}(t))}function Ze(){Ke.call(this)}function tn(t,e){this.content=String(t),this.ta=null!=e?e:null}function en(t){return new tn(t,void 0)}A(Xe,Ke),Xe.prototype.ca=ze,A(Ze,Ke),Ze.prototype.ca=He,Ze.prototype.ta=1,A(tn,Ke),tn.prototype.ca=$e;var nn=function(t){function e(t){this.content=t}return e.prototype=Xe.prototype,function(t,n){return t=new e(String(t)),void 0!==n&&(t.ta=n),t}}(),rn=function(t){function e(t){this.content=t}return e.prototype=Ze.prototype,function(t){return new e(String(t))}}();function on(t){return(t=String(t))?new tn(t,void 0):""}var an=function(t){function e(t){this.content=t}return e.prototype=Xe.prototype,function(t,n){return(t=String(t))?(t=ne
1w e(t),void 0!==n&&(t.ta=n),t):""}}();function sn(t){return null!=t&&t.ca===ze?String(String(t.content).replace(vn,"").replace(yn,"<")).replace(dn,cn):K(String(t))}function un(t){return null!=t&&t.ca===He?t=String(t).replace(pn,fn):t instanceof Ft?t=String(Vt(t)).replace(pn,fn):(t=String(t),gn.test(t)?t=t.replace(pn,fn):(P("Bad value `%s` for |filterNormalizeUri",[t]),t="#zSoyz")),t}var ln={"\0":"�","\t":"	","\n":" ","\v":"","\f":"","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\x85":"…","\xa0":" ","\u2028":"
","\u2029":"
"};function cn(t){return ln[t]}var hn={"\0":"%00","\x01":"%01","\x02":"%02","\x03":"%03","\x04":"%04","\x05":"%05","\x06":"%06","\x07":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\x0e":"%0E","\x0f":"%0F","\x10":"%10","\x11":"%11","\x12":"%12","\x13":"%13","\x14":"%14","\x15":"%15","\x16":"%16","\x17":"%17","\x18":"%18","\x19":"%19","\x1a":"%1A","\x1b":"%1B","\x1c":"%1C","\x1d":"%1D","\x1e":"%1E","\x1f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\x7f":"%7F","\x85":"%C2%85","\xa0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"};function fn(t){return hn[t]}var dn=/[\x00\x22\x27\x3c\x3e]/g,pn=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,mn=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,gn=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,vn=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,yn=/</g;function bn(){return en("Enter a valid phone number")}function wn(){return en("Something went wrong. Please try again.")}function _n(){return en("This email already exists without any means of sign-in. Please reset the password to recover.")}function Sn(){return en("Please login again to perform this operation")}function En(t,e,n){if(this.code=Cn+t,!(t=e)){switch(t="",this.code){case"firebaseui/merge-conflict":t+="The current anonymous user failed to upgrade. The non-anonymous credential is already associated with a different user account.";break;default:t+=wn()}t=en(t).toString()}this.message=t||"",this.credential=n||null}A(En,Error),En.prototype.na=function(){return{code:this.code,message:this.message}},En.prototype.toJSON=function(){return this.na()};var Cn="firebaseui/";function In(){this.V={}}function kn(t,e,n){if(e.toLowerCase()in t.V)throw Error("Configuration "+e+" has already been defined.");t.V[e.toLowerCase()]=n}function Tn(t,e,n){if(!(e.toLowerCase()in t.V))throw Error("Configuration "+e+" is not defined.");t.V[e.toLowerCase()]=n}function On(t,e){if(!(t=t.get(e)))throw Error("Configuration "+e+" is required.");return t}function An(){this.f=void 0,this.a={}}function xn(t,e,n,r){for(var i=0;i<e.length;i++){var o=e.charAt(i);t.a[o]||(t.a[o]=new An),t=t.a[o]}if(r&&void 0!==t.f)throw Error('The collection already contains the key "'+e+'"');t.f=n}function Dn(t){for(this.a=t,this.f=new An,t=0;t<this.a.length;t++){var e=this.f.get("+"+this.a[t].b);e?e.push(this.a[t]):this.f.add("+"+this.a[t].b,[this.a[t]])}}function Pn(t,e){var n={},r=0;for(void 0!==(t=t.f).f&&(n[r]=t.f);r<e.length;r++){var i=e.charAt(r);if(!(i in t.a))break;void 0!==(t=t.a[i]).f&&(n[r]=t.f)}for(var o in n)if(n.hasOwnProperty(o))return n[o];return[]}function Nn(t){for(var e=0;e<Ln.length;e++)if(Ln[e].c===t)return Ln[e];return null}function jn(t){t=t.toUpperCase();for(var e=[],n=0;n<Ln.length;n++)Ln[n].g===t&&e.push(Ln[n]);return e}function Rn(t){if(0<t.length&&"+"==t.charAt(0)){t=t.substring(1);for(var e=[],n=0;n<Ln.length;n++)Ln[n].b==t&&e.push(Ln[n]);t=e}else t=jn(t);return t}function Mn(t){t.sort(function(t,e){return t.name.localeCompare(e.name,"en")})}In.prototype.get=function(t){if(!(t.toLowerCase()in this.V))throw Error("Configuration "+t+" is not defined.");return this.V[t.toLowerCase()]},(t=An.prototype).set=function(t,e){xn(this,t,e,!1)},t.add=function(t,e){xn(this,t,e,!0)},t.get=function(t){t:{for(var e=this,n=0;n<t.length;n++)if(!(e=e.a[t.charAt(n)])){t=void 0;break t}t=e}return t?t.f:void 0},t.ja=function(){var t=[];return function t(e,n){for(var r in void 0!==e.f&&n.push(e.f),e.a)t(e.a[r],n)}(this,t),t},t.ha=function(){var t=[];return function t(e,n,r){for(var i in void 0!==e.f&&r.push(n),e.a)t(e.a[i],n+i,r)}(this,"",t),t},t.clear=function(){this.a={},this.f=void 0};var Ln=[{name:"Afghanistan",c:"93-AF-0",b:"93",g:"AF"},{name:"\xc5land Islands",c:"358-AX-0",b:"358",g:"AX"},{name:"Albania",c:"355-AL-0",b:"355",g:"AL"},{name:"Algeria",c:"213-DZ-0",b:"213",g:"DZ"},{name:"American Samoa",c:"1-AS-0",b:"1",g:"AS"},{name:"Andorra",c:"376-AD-0",b:"376",g:"AD"},{name:"Angola",c:"244-AO-0",b:"244",g:"AO"},{name:"Anguilla",c:"1-AI-0",b:"1",g:"AI"},{name:"Antigua and Barbuda",c:"1-AG-0",b:"1",g:"AG"},{name:"Argentina",c:"54-AR-0",b:"54",g:"AR"},{name:"Armenia",c:"374-AM-0",b:"374",g:"AM"},{name:"Aruba",c:"297-AW-0",b:"297",g:"AW"},{name:"Ascension Island",c:"247-AC-0",b:"247",g:"AC"},{name:"Australia",c:"61-AU-0",b:"61",g:"AU"},{name:"Austria",c:"43-AT-0",b:"43",g:"AT"},{name:"Azerbaijan",c:"994-AZ-0",b:"994",g:"AZ"},{name:"Bahamas",c:"1-BS-0",b:"1",g:"BS"},{name:"Bahrain",c:"973-BH-0",b:"973",g:"BH"},{name:"Bangladesh",c:"880-BD-0",b:"880",g:"BD"},{name:"Barbados",c:"1-BB-0",b:"1",g:"BB"},{name:"Belarus",c:"375-BY-0",b:"375",g:"BY"},{name:"Belgium",c:"32-BE-0",b:"32",g:"BE"},{name:"Belize",c:"501-BZ-0",b:"501",g:"BZ"},{name:"Benin",c:"229-BJ-0",b:"229",g:"BJ"},{name:"Bermuda",c:"1-BM-0",b:"1",g:"BM"},{name:"Bhutan",c:"975-BT-0",b:"975",g:"BT"},{name:"Bolivia",c:"591-BO-0",b:"591",g:"BO"},{name:"Bosnia and Herzegovina",c:"387-BA-0",b:"387",g:"BA"}
1,{name:"Botswana",c:"267-BW-0",b:"267",g:"BW"},{name:"Brazil",c:"55-BR-0",b:"55",g:"BR"},{name:"British Indian Ocean Territory",c:"246-IO-0",b:"246",g:"IO"},{name:"British Virgin Islands",c:"1-VG-0",b:"1",g:"VG"},{name:"Brunei",c:"673-BN-0",b:"673",g:"BN"},{name:"Bulgaria",c:"359-BG-0",b:"359",g:"BG"},{name:"Burkina Faso",c:"226-BF-0",b:"226",g:"BF"},{name:"Burundi",c:"257-BI-0",b:"257",g:"BI"},{name:"Cambodia",c:"855-KH-0",b:"855",g:"KH"},{name:"Cameroon",c:"237-CM-0",b:"237",g:"CM"},{name:"Canada",c:"1-CA-0",b:"1",g:"CA"},{name:"Cape Verde",c:"238-CV-0",b:"238",g:"CV"},{name:"Caribbean Netherlands",c:"599-BQ-0",b:"599",g:"BQ"},{name:"Cayman Islands",c:"1-KY-0",b:"1",g:"KY"},{name:"Central African Republic",c:"236-CF-0",b:"236",g:"CF"},{name:"Chad",c:"235-TD-0",b:"235",g:"TD"},{name:"Chile",c:"56-CL-0",b:"56",g:"CL"},{name:"China",c:"86-CN-0",b:"86",g:"CN"},{name:"Christmas Island",c:"61-CX-0",b:"61",g:"CX"},{name:"Cocos [Keeling] Islands",c:"61-CC-0",b:"61",g:"CC"},{name:"Colombia",c:"57-CO-0",b:"57",g:"CO"},{name:"Comoros",c:"269-KM-0",b:"269",g:"KM"},{name:"Democratic Republic Congo",c:"243-CD-0",b:"243",g:"CD"},{name:"Republic of Congo",c:"242-CG-0",b:"242",g:"CG"},{name:"Cook Islands",c:"682-CK-0",b:"682",g:"CK"},{name:"Costa Rica",c:"506-CR-0",b:"506",g:"CR"},{name:"C\xf4te d'Ivoire",c:"225-CI-0",b:"225",g:"CI"},{name:"Croatia",c:"385-HR-0",b:"385",g:"HR"},{name:"Cuba",c:"53-CU-0",b:"53",g:"CU"},{name:"Cura\xe7ao",c:"599-CW-0",b:"599",g:"CW"},{name:"Cyprus",c:"357-CY-0",b:"357",g:"CY"},{name:"Czech Republic",c:"420-CZ-0",b:"420",g:"CZ"},{name:"Denmark",c:"45-DK-0",b:"45",g:"DK"},{name:"Djibouti",c:"253-DJ-0",b:"253",g:"DJ"},{name:"Dominica",c:"1-DM-0",b:"1",g:"DM"},{name:"Dominican Republic",c:"1-DO-0",b:"1",g:"DO"},{name:"East Timor",c:"670-TL-0",b:"670",g:"TL"},{name:"Ecuador",c:"593-EC-0",b:"593",g:"EC"},{name:"Egypt",c:"20-EG-0",b:"20",g:"EG"},{name:"El Salvador",c:"503-SV-0",b:"503",g:"SV"},{name:"Equatorial Guinea",c:"240-GQ-0",b:"240",g:"GQ"},{name:"Eritrea",c:"291-ER-0",b:"291",g:"ER"},{name:"Estonia",c:"372-EE-0",b:"372",g:"EE"},{name:"Ethiopia",c:"251-ET-0",b:"251",g:"ET"},{name:"Falkland Islands [Islas Malvinas]",c:"500-FK-0",b:"500",g:"FK"},{name:"Faroe Islands",c:"298-FO-0",b:"298",g:"FO"},{name:"Fiji",c:"679-FJ-0",b:"679",g:"FJ"},{name:"Finland",c:"358-FI-0",b:"358",g:"FI"},{name:"France",c:"33-FR-0",b:"33",g:"FR"},{name:"French Guiana",c:"594-GF-0",b:"594",g:"GF"},{name:"French Polynesia",c:"689-PF-0",b:"689",g:"PF"},{name:"Gabon",c:"241-GA-0",b:"241",g:"GA"},{name:"Gambia",c:"220-GM-0",b:"220",g:"GM"},{name:"Georgia",c:"995-GE-0",b:"995",g:"GE"},{name:"Germany",c:"49-DE-0",b:"49",g:"DE"},{name:"Ghana",c:"233-GH-0",b:"233",g:"GH"},{name:"Gibraltar",c:"350-GI-0",b:"350",g:"GI"},{name:"Greece",c:"30-GR-0",b:"30",g:"GR"},{name:"Greenland",c:"299-GL-0",b:"299",g:"GL"},{name:"Grenada",c:"1-GD-0",b:"1",g:"GD"},{name:"Guadeloupe",c:"590-GP-0",b:"590",g:"GP"},{name:"Guam",c:"1-GU-0",b:"1",g:"GU"},{name:"Guatemala",c:"502-GT-0",b:"502",g:"GT"},{name:"Guernsey",c:"44-GG-0",b:"44",g:"GG"},{name:"Guinea Conakry",c:"224-GN-0",b:"224",g:"GN"},{name:"Guinea-Bissau",c:"245-GW-0",b:"245",g:"GW"},{name:"Guyana",c:"592-GY-0",b:"592",g:"GY"},{name:"Haiti",c:"509-HT-0",b:"509",g:"HT"},{name:"Heard Island and McDonald Islands",c:"672-HM-0",b:"672",g:"HM"},{name:"Honduras",c:"504-HN-0",b:"504",g:"HN"},{name:"Hong Kong",c:"852-HK-0",b:"852",g:"HK"},{name:"Hungary",c:"36-HU-0",b:"36",g:"HU"},{name:"Iceland",c:"354-IS-0",b:"354",g:"IS"},{name:"India",c:"91-IN-0",b:"91",g:"IN"},{name:"Indonesia",c:"62-ID-0",b:"62",g:"ID"},{name:"Iran",c:"98-IR-0",b:"98",g:"IR"},{name:"Iraq",c:"964-IQ-0",b:"964",g:"IQ"},{name:"Ireland",c:"353-IE-0",b:"353",g:"IE"},{name:"Isle of Man",c:"44-IM-0",b:"44",g:"IM"},{name:"Israel",c:"972-IL-0",b:"972",g:"IL"},{name:"Italy",c:"39-IT-0",b:"39",g:"IT"},{name:"Jamaica",c:"1-JM-0",b:"1",g:"JM"},{name:"Japan",c:"81-JP-0",b:"81",g:"JP"},{name:"Jersey",c:"44-JE-0",b:"44",g:"JE"},{name:"Jordan",c:"962-JO-0",b:"962",g:"JO"},{name:"Kazakhstan",c:"7-KZ-0",b:"7",g:"KZ"},{name:"Kenya",c:"254-KE-0",b:"254",g:"KE"},{name:"Kiribati",c:"686-KI-0",b:"686",g:"KI"},{name:"Kosovo",c:"377-XK-0",b:"377",g:"XK"},{name:"Kosovo",c:"381-XK-0",b:"381",g:"XK"},{name:"Kosovo",c:"386-XK-0",b:"386",g:"XK"},{name:"Kuwait",c:"965-KW-0",b:"965",g:"KW"},{name:"Kyrgyzstan",c:"996-KG-0",b:"996",g:"KG"},{name:"Laos",c:"856-LA-0",b:"856",g:"LA"},{name:"Latvia",c:"371-LV-0",b:"371",g:"LV"},{name:"Lebanon",c:"961-LB-0",b:"961",g:"LB"},{name:"Lesotho",c:"266-LS-0",b:"266",g:"LS"},{name:"Liberia",c:"231-LR-0",b:"231",g:"LR"},{name:"Libya",c:"218-LY-0",b:"218",g:"LY"},{name:"Liechtenstein",c:"423-LI-0",b:"423",g:"LI"},{name:"Lithuania",c:"370-LT-0",b:"370",g:"LT"},{name:"Luxembourg",c:"352-LU-0",b:"352",g:"LU"},{name:"Macau",c:"853-MO-0",b:"853",g:"MO"},{name:"Macedonia",c:"389-MK-0",b:"389",g:"MK"},{name:"Madagascar",c:"261-MG-0",b:"261",g:"MG"}
1,{name:"Malawi",c:"265-MW-0",b:"265",g:"MW"},{name:"Malaysia",c:"60-MY-0",b:"60",g:"MY"},{name:"Maldives",c:"960-MV-0",b:"960",g:"MV"},{name:"Mali",c:"223-ML-0",b:"223",g:"ML"},{name:"Malta",c:"356-MT-0",b:"356",g:"MT"},{name:"Marshall Islands",c:"692-MH-0",b:"692",g:"MH"},{name:"Martinique",c:"596-MQ-0",b:"596",g:"MQ"},{name:"Mauritania",c:"222-MR-0",b:"222",g:"MR"},{name:"Mauritius",c:"230-MU-0",b:"230",g:"MU"},{name:"Mayotte",c:"262-YT-0",b:"262",g:"YT"},{name:"Mexico",c:"52-MX-0",b:"52",g:"MX"},{name:"Micronesia",c:"691-FM-0",b:"691",g:"FM"},{name:"Moldova",c:"373-MD-0",b:"373",g:"MD"},{name:"Monaco",c:"377-MC-0",b:"377",g:"MC"},{name:"Mongolia",c:"976-MN-0",b:"976",g:"MN"},{name:"Montenegro",c:"382-ME-0",b:"382",g:"ME"},{name:"Montserrat",c:"1-MS-0",b:"1",g:"MS"},{name:"Morocco",c:"212-MA-0",b:"212",g:"MA"},{name:"Mozambique",c:"258-MZ-0",b:"258",g:"MZ"},{name:"Myanmar [Burma]",c:"95-MM-0",b:"95",g:"MM"},{name:"Namibia",c:"264-NA-0",b:"264",g:"NA"},{name:"Nauru",c:"674-NR-0",b:"674",g:"NR"},{name:"Nepal",c:"977-NP-0",b:"977",g:"NP"},{name:"Netherlands",c:"31-NL-0",b:"31",g:"NL"},{name:"New Caledonia",c:"687-NC-0",b:"687",g:"NC"},{name:"New Zealand",c:"64-NZ-0",b:"64",g:"NZ"},{name:"Nicaragua",c:"505-NI-0",b:"505",g:"NI"},{name:"Niger",c:"227-NE-0",b:"227",g:"NE"},{name:"Nigeria",c:"234-NG-0",b:"234",g:"NG"},{name:"Niue",c:"683-NU-0",b:"683",g:"NU"},{name:"Norfolk Island",c:"672-NF-0",b:"672",g:"NF"},{name:"North Korea",c:"850-KP-0",b:"850",g:"KP"},{name:"Northern Mariana Islands",c:"1-MP-0",b:"1",g:"MP"},{name:"Norway",c:"47-NO-0",b:"47",g:"NO"},{name:"Oman",c:"968-OM-0",b:"968",g:"OM"},{name:"Pakistan",c:"92-PK-0",b:"92",g:"PK"},{name:"Palau",c:"680-PW-0",b:"680",g:"PW"},{name:"Palestinian Territories",c:"970-PS-0",b:"970",g:"PS"},{name:"Panama",c:"507-PA-0",b:"507",g:"PA"},{name:"Papua New Guinea",c:"675-PG-0",b:"675",g:"PG"},{name:"Paraguay",c:"595-PY-0",b:"595",g:"PY"},{name:"Peru",c:"51-PE-0",b:"51",g:"PE"},{name:"Philippines",c:"63-PH-0",b:"63",g:"PH"},{name:"Poland",c:"48-PL-0",b:"48",g:"PL"},{name:"Portugal",c:"351-PT-0",b:"351",g:"PT"},{name:"Puerto Rico",c:"1-PR-0",b:"1",g:"PR"},{name:"Qatar",c:"974-QA-0",b:"974",g:"QA"},{name:"R\xe9union",c:"262-RE-0",b:"262",g:"RE"},{name:"Romania",c:"40-RO-0",b:"40",g:"RO"},{name:"Russia",c:"7-RU-0",b:"7",g:"RU"},{name:"Rwanda",c:"250-RW-0",b:"250",g:"RW"},{name:"Saint Barth\xe9lemy",c:"590-BL-0",b:"590",g:"BL"},{name:"Saint Helena",c:"290-SH-0",b:"290",g:"SH"},{name:"St. Kitts",c:"1-KN-0",b:"1",g:"KN"},{name:"St. Lucia",c:"1-LC-0",b:"1",g:"LC"},{name:"Saint Martin",c:"590-MF-0",b:"590",g:"MF"},{name:"Saint Pierre and Miquelon",c:"508-PM-0",b:"508",g:"PM"},{name:"St. Vincent",c:"1-VC-0",b:"1",g:"VC"},{name:"Samoa",c:"685-WS-0",b:"685",g:"WS"},{name:"San Marino",c:"378-SM-0",b:"378",g:"SM"},{name:"S\xe3o Tom\xe9 and Pr\xedncipe",c:"239-ST-0",b:"239",g:"ST"},{name:"Saudi Arabia",c:"966-SA-0",b:"966",g:"SA"},{name:"Senegal",c:"221-SN-0",b:"221",g:"SN"},{name:"Serbia",c:"381-RS-0",b:"381",g:"RS"},{name:"Seychelles",c:"248-SC-0",b:"248",g:"SC"},{name:"Sierra Leone",c:"232-SL-0",b:"232",g:"SL"},{name:"Singapore",c:"65-SG-0",b:"65",g:"SG"},{name:"Sint Maarten",c:"1-SX-0",b:"1",g:"SX"},{name:"Slovakia",c:"421-SK-0",b:"421",g:"SK"},{name:"Slovenia",c:"386-SI-0",b:"386",g:"SI"},{name:"Solomon Islands",c:"677-SB-0",b:"677",g:"SB"},{name:"Somalia",c:"252-SO-0",b:"252",g:"SO"},{name:"South Africa",c:"27-ZA-0",b:"27",g:"ZA"},{name:"South Georgia and the South Sandwich Islands",c:"500-GS-0",b:"500",g:"GS"},{name:"South Korea",c:"82-KR-0",b:"82",g:"KR"},{name:"South Sudan",c:"211-SS-0",b:"211",g:"SS"},{name:"Spain",c:"34-ES-0",b:"34",g:"ES"},{name:"Sri Lanka",c:"94-LK-0",b:"94",g:"LK"},{name:"Sudan",c:"249-SD-0",b:"249",g:"SD"},{name:"Suriname",c:"597-SR-0",b:"597",g:"SR"},{name:"Svalbard and Jan Mayen",c:"47-SJ-0",b:"47",g:"SJ"},{name:"Swaziland",c:"268-SZ-0",b:"268",g:"SZ"},{name:"Sweden",c:"46-SE-0",b:"46",g:"SE"},{name:"Switzerland",c:"41-CH-0",b:"41",g:"CH"},{name:"Syria",c:"963-SY-0",b:"963",g:"SY"},{name:"Taiwan",c:"886-TW-0",b:"886",g:"TW"},{name:"Tajikistan",c:"992-TJ-0",b:"992",g:"TJ"},{name:"Tanzania",c:"255-TZ-0",b:"255",g:"TZ"},{name:"Thailand",c:"66-TH-0",b:"66",g:"TH"},{name:"Togo",c:"228-TG-0",b:"228",g:"TG"},{name:"Tokelau",c:"690-TK-0",b:"690",g:"TK"},{name:"Tonga",c:"676-TO-0",b:"676",g:"TO"}
1,{name:"Trinidad/Tobago",c:"1-TT-0",b:"1",g:"TT"},{name:"Tunisia",c:"216-TN-0",b:"216",g:"TN"},{name:"Turkey",c:"90-TR-0",b:"90",g:"TR"},{name:"Turkmenistan",c:"993-TM-0",b:"993",g:"TM"},{name:"Turks and Caicos Islands",c:"1-TC-0",b:"1",g:"TC"},{name:"Tuvalu",c:"688-TV-0",b:"688",g:"TV"},{name:"U.S. Virgin Islands",c:"1-VI-0",b:"1",g:"VI"},{name:"Uganda",c:"256-UG-0",b:"256",g:"UG"},{name:"Ukraine",c:"380-UA-0",b:"380",g:"UA"},{name:"United Arab Emirates",c:"971-AE-0",b:"971",g:"AE"},{name:"United Kingdom",c:"44-GB-0",b:"44",g:"GB"},{name:"United States",c:"1-US-0",b:"1",g:"US"},{name:"Uruguay",c:"598-UY-0",b:"598",g:"UY"},{name:"Uzbekistan",c:"998-UZ-0",b:"998",g:"UZ"},{name:"Vanuatu",c:"678-VU-0",b:"678",g:"VU"},{name:"Vatican City",c:"379-VA-0",b:"379",g:"VA"},{name:"Venezuela",c:"58-VE-0",b:"58",g:"VE"},{name:"Vietnam",c:"84-VN-0",b:"84",g:"VN"},{name:"Wallis and Futuna",c:"681-WF-0",b:"681",g:"WF"},{name:"Western Sahara",c:"212-EH-0",b:"212",g:"EH"},{name:"Yemen",c:"967-YE-0",b:"967",g:"YE"},{name:"Zambia",c:"260-ZM-0",b:"260",g:"ZM"}
1,{name:"Zimbabwe",c:"263-ZW-0",b:"263",g:"ZW"}];Mn(Ln);var Fn=new Dn(Ln);function Vn(t,e){this.a=t,this.va=e}function Un(t){t=$(t);var e=Pn(Fn,t);return 0<e.length?new Vn("1"==e[0].b?"1-US-0":e[0].c,$(t.substr(e[0].b.length+1))):null}function qn(t){var e=Nn(t.a);if(!e)throw Error("Country ID "+t.a+" not found.");return"+"+e.b+t.va}function Bn(t,e){for(var n=0;n<t.length;n++)if(!V(zn,t[n])&&(null!==Hn&&t[n]in Hn||V(e,t[n])))return t[n];return null}var zn=["emailLink","password","phone"],Hn={"facebook.com":"FacebookAuthProvider","github.com":"GithubAuthProvider","google.com":"GoogleAuthProvider",password:"EmailAuthProvider","twitter.com":"TwitterAuthProvider",phone:"PhoneAuthProvider"},Gn=Object.freeze||function(t){return t};function $n(t,e,n){this.reset(t,e,n,void 0,void 0)}function Kn(t){this.i=t,this.a=this.h=this.j=this.f=null}function Wn(t,e){this.name=t,this.value=e}$n.prototype.a=null,$n.prototype.reset=function(t,e,n,r,i){this.h=r||T(),this.j=t,this.i=e,this.f=n,delete this.a},Wn.prototype.toString=function(){return this.name};var Qn=new Wn("SHOUT",1200),Jn=new Wn("SEVERE",1e3),Xn=new Wn("WARNING",900),Yn=new Wn("CONFIG",700);Kn.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.j?e.j:e.f?t(e.f):(P("Root logger has no level set."),null)}(this).value)for(v(e)&&(e=e()),t=new $n(t,String(e),this.i),n&&(t.a=n),n=this;n;){var r=n,i=t;if(r.a)for(var o=0;e=r.a[o];o++)e(i);n=n.f}};var Zn={},tr=null;function er(){tr||(tr=new Kn(""),Zn[""]=tr,tr.j=Yn)}function nr(){this.a=T()}var rr=null;function ir(t){this.j=t||"",rr||(rr=new nr),this.i=rr}function or(t){return 10>t?"0"+t:String(t)}function ar(t){ir.call(this,t)}function sr(){this.i=E(this.h,this),this.a=new ar,this.a.f=!1,this.a.h=!1,this.f=this.a.a=!1,this.j={}}nr.prototype.set=function(t){this.a=t},nr.prototype.reset=function(){this.set(T())},nr.prototype.get=function(){return this.a},ir.prototype.a=!0,ir.prototype.f=!0,ir.prototype.h=!1,A(ar,ir),sr.prototype.h=function(t){if(!this.j[t.f]){var e=this.a,n=[];if(n.push(e.j," "),e.f){var r=new Date(t.h);n.push("[",or(r.getFullYear()-2e3)+or(r.getMonth()+1)+or(r.getDate())+" "+or(r.getHours())+":"+or(r.getMinutes())+":"+or(r.getSeconds())+"."+or(Math.floor(r.getMilliseconds()/10)),"] ")}if(n.push("[",function(t,e){e=(t=(t.h-e)/1e3).toFixed(3);var n=0;if(1>t)n=2;else for(;100>t;)n++,t*=10;for(;0<n--;)e=" "+e;return e}(t,e.i.get()),"s] "),n.push("[",t.f,"] "),n.push(t.i),e.h&&(r=t.a)&&n.push("\n",r instanceof Error?r.message:r.toString()),e.a&&n.push("\n"),e=n.join(""),n=lr)switch(t.j){case Qn:cr(n,"info",e);break;case Jn:cr(n,"error",e);break;case Xn:cr(n,"warn",e);break;default:cr(n,"log",e)}}};var ur,lr=a.console;function cr(t,e,n){t[e]?t[e](n):t.log(n)}function hr(t,e){ur&&ur.log(Jn,t,e)}ur=function t(e){var n;if(er(),!(n=Zn[e])){n=new Kn(e);var r=e.lastIndexOf("."),i=e.substr(r+1);(r=t(e.substr(0,r))).h||(r.h={}),r.h[i]=n,n.f=r,Zn[e]=n}return n}("firebaseui");var fr=new sr;if(1!=fr.f){var dr;er();var pr=fr.i;(dr=tr).a||(dr.a=[]),dr.a.push(pr),fr.f=!0}function mr(t){ur&&ur.log(Xn,t,void 0)}function gr(t){t.prototype.then=t.prototype.then,t.prototype.$goog_Thenable=!0}function vr(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(Xt){return!1}}function yr(t,e){this.h=t,this.j=e,this.f=0,this.a=null}function br(t,e){t.j(e),100>t.f&&(t.f++,e.next=t.a,t.a=e)}function wr(){this.f=this.a=null}yr.prototype.get=function(){if(0<this.f){this.f--;var t=this.a;this.a=t.next,t.next=null}else t=this.h();return t};var _r,Sr,Er=new yr(function(){return new Ir},function(t){t.reset()});function Cr(){var t=Ar,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.f=null),e.next=null),e}function Ir(){this.next=this.f=this.a=null}function kr(t){a.setTimeout(function(){throw t},0)}function Tr(t,e){Sr||function(){if(a.Promise&&a.Promise.resolve){var t=a.Promise.resolve(void 0);Sr=function(){t.then(xr)}}else Sr=function(){var t=xr;!v(a.setImmediate)||a.Window&&a.Window.prototype&&!ot("Edge")&&a.Window.prototype.setImmediate==a.setImmediate?(_r||(_r=function(){var t=a.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ot("Presto")&&(t=function(){var t=document.createElement("IF
1RAME");t.style.display="none",t.src="",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(""),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=E(function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),void 0!==t&&!ot("Trident")&&!ot("MSIE")){var e=new t,n={},r=n;return e.port1.onmessage=function(){if(s(n.next)){var t=(n=n.next).ab;n.ab=null,t()}},function(t){r.next={ab:t},r=r.next,e.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){a.setTimeout(t,0)}}()),_r(t)):a.setImmediate(t)}}(),Or||(Sr(),Or=!0),Ar.add(t,e)}wr.prototype.add=function(t,e){var n=Er.get();n.set(t,e),this.f?this.f.next=n:this.a=n,this.f=n},Ir.prototype.set=function(t,e){this.a=t,this.f=e,this.next=null},Ir.prototype.reset=function(){this.next=this.f=this.a=null};var Or=!1,Ar=new wr;function xr(){for(var t;t=Cr();){try{t.a.call(t.f)}catch(Xt){kr(Xt)}br(Er,t)}Or=!1}function Dr(t,e){if(this.a=Pr,this.w=void 0,this.j=this.f=this.h=null,this.i=this.v=!1,t!=h)try{var n=this;t.call(e,function(t){zr(n,Nr,t)},function(t){if(!(t instanceof Qr))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}zr(n,jr,t)})}catch(r){zr(this,jr,r)}}var Pr=0,Nr=2,jr=3;function Rr(){this.next=this.context=this.f=this.h=this.a=null,this.j=!1}Rr.prototype.reset=function(){this.context=this.f=this.h=this.a=null,this.j=!1};var Mr=new yr(function(){return new Rr},function(t){t.reset()});function Lr(t,e,n){var r=Mr.get();return r.h=t,r.f=e,r.context=n,r}function Fr(t){if(t instanceof Dr)return t;var e=new Dr(h);return zr(e,Nr,t),e}
1function Vr(t){return new Dr(function(e,n){n(t)})}function Ur(t,e){return Br(t,null,e,void 0)}function qr(t,e){t.f||t.a!=Nr&&t.a!=jr||Hr(t),t.j?t.j.next=e:t.f=e,t.j=e}function Br(t,e,n,r){var i=Lr(null,null,null);return i.a=new Dr(function(t,o){i.h=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.f=n?function(e){try{var i=n.call(r,e);!s(i)&&e instanceof Qr?o(e):t(i)}catch(a){o(a)}}:o}),i.a.h=t,qr(t,i),i.a}function zr(t,e,n){if(t.a==Pr){t===n&&(e=jr,n=new TypeError("Promise cannot resolve to itself")),t.a=1;t:{var r=n,i=t.F,o=t.I;if(r instanceof Dr){qr(r,Lr(i||h,o||null,t));var a=!0}else if(vr(r))r.then(i,o,t),a=!0;else{if(y(r))try{var s=r.then;if(v(s)){!function(t,e,n,r,i){function o(t){a||(a=!0,r.call(i,t))}var a=!1;try{e.call(t,function(t){a||(a=!0,n.call(i,t))},o)}catch(s){o(s)}}(r,s,i,o,t),a=!0;break t}}catch(u){o.call(t,u),a=!0;break t}a=!1}}a||(t.w=n,t.a=e,t.h=null,Hr(t),e!=jr||n instanceof Qr||function(t,e){t.i=!0,Tr(function(){t.i&&Wr.call(null,e)})}(t,n))}}function Hr(t){t.v||(t.v=!0,Tr(t.C,t))}function Gr(t){var e=null;return t.f&&(t.f=(e=t.f).next,e.next=null),t.f||(t.j=null),e}function $r(t,e,n,r){if(n==jr&&e.f&&!e.j)for(;t&&t.i;t=t.h)t.i=!1;if(e.a)e.a.h=null,Kr(e,n,r);else try{e.j?e.h.call(e.context):Kr(e,n,r)}catch(i){Wr.call(null,i)}br(Mr,e)}function Kr(t,e,n){e==Nr?t.h.call(t.context,n):t.f&&t.f.call(t.context,n)}Dr.prototype.then=function(t,e,n){return Br(this,v(t)?t:null,v(e)?e:null,n)},gr(Dr),Dr.prototype.cancel=function(t){this.a==Pr&&Tr(function(){!function t(e,n){if(e.a==Pr)if(e.h){var r=e.h;if(r.f){for(var i=0,o=null,a=null,s=r.f;s&&(s.j||(i++,s.a==e&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);o&&(r.a==Pr&&1==i?t(r,n):(a?((i=a).next==r.j&&(r.j=i),i.next=i.next.next):Gr(r),$r(r,o,jr,n)))}e.h=null}else zr(e,jr,n)}(this,new Qr(t))},this)},Dr.prototype.F=function(t){this.a=Pr,zr(this,Nr,t)},Dr.prototype.I=function(t){this.a=Pr,zr(this,jr,t)},Dr.prototype.C=function(){for(var t;t=Gr(this);)$r(this,t,this.a,this.w);this.v=!1};var Wr=kr;function Qr(t){x.call(this,t)}A(Qr,x),Qr.prototype.name="cancel";var Jr=!mt||9<=Number(kt),Xr=mt&&!Ot("9"),Yr=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",h,e),a.removeEventListener("test",h,e)}catch(Jt){}return t}();function Zr(){0!=ti&&(ei[this[b]||(this[b]=++w)]=this),this.O=this.O,this.C=this.C}var ti=0,ei={};function ni(t,e){t.O?s(void 0)?e.call(void 0):e():(t.C||(t.C=[]),t.C.push(s(void 0)?E(e,void 0):e))}function ri(t){t&&"function"==typeof t.m&&t.m()}function ii(t,e){this.type=t,this.f=this.target=e,this.h=!1,this.ib=!0}function oi(t,e){if(ii.call(this,t?t.type:""),this.relatedTarget=this.f=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.j=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,r=t.changedTouches?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.f=e,e=t.relatedTarget){if(yt){t:{try{ht(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,null===r?(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=t.button,this.keyCode=t.keyCode||0,this.key=t.key||"",this.j=t.charCode||("keypress"==n?t.keyCode:0),this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=u(t.pointerType)?t.pointerType:ai[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Zr.prototype.O=!1,Zr.prototype.m=function(){if(!this.O&&(this.O=!0,this.l(),0!=ti)){var t=this[b]||(this[b]=++w);if(0!=ti&&this.C&&0<this.C.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete ei[t]}},Zr.prototype.l=function(){if(this.C)for(;this.C.length;)this.C.shift()()},ii.prototype.stopPropagation=function(){this.h=!0},ii.prototype.preventDefault=function(){this.ib=!1},A(oi,ii);var ai=Gn({2:"touch",3:"pen",4:"mouse"});oi.prototype.stopPropagation=function(){oi.o.stopPropagation.call(this),this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0},oi.prototype.preventDefault=function(){oi.o.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Xr)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(Xt){}};var si="closure_listenable_"+(1e6*Math.random()|0),ui=0;function li(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Fa=i,this.key=++ui,this.qa=this.Ca=!1}function ci(t){t.qa=!0,t.listener=null,t.proxy=null,t.src=null,t.Fa=null}function hi(t){this.src=t,this.a={},this.f=0}function fi(t,e){var n=e.type;n in t.a&&U(t.a[n],e)&&(ci(e),0==t.a[n].length&&(delete t.a[n],t.f--))}function di(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.qa&&o.listener==e&&o.capture==!!n&&o.Fa==r)return i}return-1}hi.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.f++);var a=di(t,e,r,i);return-1<a?(e=t[a],n||(e.Ca=!1)):((e=new li(e,this.src,o,!!r,i)).Ca=n,t.pu
1sh(e)),e};var pi="closure_lm_"+(1e6*Math.random()|0),mi={};function gi(t,e,n,r,i){if(r&&r.once)return yi(t,e,n,r,i);if(m(e)){for(var o=0;o<e.length;o++)gi(t,e[o],n,r,i);return null}return n=Ti(n),t&&t[si]?t.F.add(String(e),n,!1,y(r)?!!r.capture:!!r,i):vi(t,e,n,!1,r,i)}function vi(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=y(i)?!!i.capture:!!i,s=Ii(t);if(s||(t[pi]=s=new hi(t)),(n=s.add(e,n,r,a,o)).proxy)return n;if(r=function(){var t=Ci,e=Jr?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)Yr||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(_i(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function yi(t,e,n,r,i){if(m(e)){for(var o=0;o<e.length;o++)yi(t,e[o],n,r,i);return null}return n=Ti(n),t&&t[si]?t.F.add(String(e),n,!0,y(r)?!!r.capture:!!r,i):vi(t,e,n,!0,r,i)}function bi(t,e,n,r,i){if(m(e))for(var o=0;o<e.length;o++)bi(t,e[o],n,r,i);else r=y(r)?!!r.capture:!!r,n=Ti(n),t&&t[si]?(t=t.F,(e=String(e).toString())in t.a&&-1<(n=di(o=t.a[e],n,r,i))&&(ci(o[n]),q(o,n),0==o.length&&(delete t.a[e],t.f--))):t&&(t=Ii(t))&&(e=t.a[e.toString()],t=-1,e&&(t=di(e,n,r,i)),(n=-1<t?e[t]:null)&&wi(n))}function wi(t){if("number"!=typeof t&&t&&!t.qa){var e=t.src;if(e&&e[si])fi(e.F,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(_i(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Ii(e))?(fi(n,t),0==n.f&&(n.src=null,e[pi]=null)):ci(t)}}}function _i(t){return t in mi?mi[t]:mi[t]="on"+t}function Si(t,e,n,r){var i=!0;if((t=Ii(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.qa&&(o=Ei(o,r),i=i&&!1!==o)}return i}function Ei(t,e){var n=t.listener,r=t.Fa||t.src;return t.Ca&&wi(t),n.call(r,e)}function Ci(t,e){if(t.qa)return!0;if(!Jr){if(!e)t:{e=["window","event"];for(var n=a,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}if(e=new oi(r=e,this),n=!0,!(0>r.keyCode||null!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(s){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.f;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;!e.h&&0<=i;i--){e.f=r[i];var o=Si(r[i],t,!0,e);n=n&&o}for(i=0;!e.h&&i<r.length;i++)e.f=r[i],o=Si(r[i],t,!1,e),n=n&&o}return n}return Ei(t,new oi(e,this))}function Ii(t){return(t=t[pi])instanceof hi?t:null}var ki="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ti(t){return v(t)?t:(t[ki]||(t[ki]=function(e){return t.handleEvent(e)}),t[ki])}function Oi(t,e,n){e||(e={}),n=n||window;var r=t instanceof Ft?t:qt(void 0!==t.href?t.href:String(t));t=e.target||t.target;var i=[];for(o in e)switch(o){case"width":case"height":case"top":case"left":i.push(o+"="+e[o]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(o+"="+(e[o]?1:0))}var o=i.join(",");return(ot("iPhone")&&!ot("iPod")&&!ot("iPad")||ot("iPad")||ot("iPod"))&&n.navigator&&n.navigator.standalone&&t&&"_self"!=t?(o=n.document.createElement("A"),r instanceof Ft||r instanceof Ft||(r="object"==typeof r&&r.ka?r.ia():String(r),Ut.test(r)||(r="about:invalid#zClosurez"),r=zt(r)),o.href=Vt(r),o.setAttribute("target",t),e.noreferrer&&o.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,n,1),o.dispatchEvent(e),n={}):e.noreferrer?(n=n.open("",t,o),e=Vt(r),n&&(vt&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),n.opener=null,e=Qt(e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+K(e)+'">',null),n.document.write(Kt(e)),n.document.close())):(n=n.open(Vt(r),t,o))&&e.noopener&&(n.opener=null),n}function Ai(t){window.location.assign(Vt(qt(t)))}function xi(){try{return!!(window.opener&&window.opener.location&&window.opener.location.assign&&window.opener.location.hostname===window.location.hostname&&window.opener.location.protocol===window.location.protocol)}catch(dt){}return!1}function Di(t){Oi(t,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function Pi(t){if(null==(t=y(t)&&1==t.nodeType?t:document.querySelector(String(t))))throw Error("Could not find the FirebaseUI widget element on the page.");return t}function Ni(){return window.location.href}function ji(){this.a=new In,kn(this.a,"acUiConfig"),kn(this.a,"autoUpgradeAnonymousUsers"),kn(this.a,"callbacks"),kn(this.a,"credentialHelper",Ri),kn(this.a,"popupMode",!1),kn(this.a,"privacyPolicyUrl"),kn(this.a,"queryParameterForSignInSuccessUrl","signInSuccessUrl"),kn(this.a,"queryParameterForWidgetMode","mode"),kn(this.a,"signInFlow"),kn(this.a,"signInOptions"),kn(this.a,"signInSuccessUrl"),kn(this.a,"siteName"),kn(this.a,"tosUrl"),kn(this.a,"widgetUrl")}var Ri="accountchooser.com",Mi={Vb:Ri,Yb:"googleyolo",NONE:"none"},Li={Zb:"popup",ac:"redirect"},Fi={Xb:"callback",$b:"recoverEmail",bc:"resetPassword",cc:"select",dc:"sign
1In",ec:"verifyEmail"},Vi=["anonymous"],Ui=["sitekey","tabindex","callback","expired-callback"];function qi(t){var e=t.a.get("widgetUrl")||Ni();return Bi(t,e)}function Bi(t,e){t=Yi(t);for(var n,r=e.search(we),i=0,o=[];0<=(n=be(e,i,t,r));)o.push(e.substring(i,n)),i=Math.min(e.indexOf("&",n)+1||r,r);return o.push(e.substr(i)),e=o.join("").replace(Se,"$1"),(t+=r="="+encodeURIComponent("select"))?(0>(r=e.indexOf("#"))&&(r=e.length),0>(i=e.indexOf("?"))||i>r?(i=r,n=""):n=e.substring(i+1,r),r=(e=[e.substr(0,i),n,e.substr(r)])[1],e[1]=t?r?r+"&"+t:t:r,t=e[0]+(e[1]?"?"+e[1]:"")+e[2]):t=e,t}function zi(t){var e=!!t.a.get("autoUpgradeAnonymousUsers");return e&&!ao(t)&&hr('Missing "signInFailure" callback: "signInFailure" callback needs to be provided when "autoUpgradeAnonymousUsers" is set to true.',void 0),e}function Hi(t){t=t.a.get("signInOptions")||[];for(var e=[],n=0;n<t.length;n++){var r=t[n];(r=y(r)?r:{provider:r}).provider&&e.push(r)}return e}function Gi(t,e){t=Hi(t);for(var n=0;n<t.length;n++)if(t[n].provider===e)return t[n];return null}function $i(t){return M(Hi(t),function(t){return t.provider})}function Ki(t,e){t=Wi(t);for(var n=0;n<t.length;n++)if(t[n].providerId===e)return t[n];return null}function Wi(t){return M(Hi(t),function(t){return Hn[t.provider]||V(Vi,t.provider)?{providerId:t.provider}:{providerId:t.provider,hb:t.providerName||t.provider,ob:t.buttonColor||null,fb:t.iconUrl?Vt(qt(t.iconUrl)):null,Db:t.loginHintKey||null}})}function Qi(t,e){return m(t=(t=Gi(t,e))&&t.scopes)?t:[]}function Ji(t,e){return y(t=(t=Gi(t,e))&&t.customParameters)?(t=st(t),e===i.auth.GoogleAuthProvider.PROVIDER_ID&&delete t.login_hint,t):null}function Xi(t){if(!(t=Gi(t,i.auth.PhoneAuthProvider.PROVIDER_ID)))return null;var e=t.whitelistedCountries,n=t.blacklistedCountries;if(void 0!==e&&(!m(e)||0==e.length))throw Error("WhitelistedCountries must be a non-empty array.");if(void 0!==n&&!m(n))throw Error("BlacklistedCountries must be an array.");if(e&&n)throw Error("Both whitelistedCountries and blacklistedCountries are provided.");if(!e&&!n)return Ln;if(t=[],e){n={};for(var r=0;r<e.length;r++)for(var o=Rn(e[r]),a=0;a<o.length;a++)n[o[a].c]=o[a];for(var s in n)n.hasOwnProperty(s)&&t.push(n[s])}else{for(s={},r=0;r<n.length;r++)for(o=Rn(n[r]),a=0;a<o.length;a++)s[o[a].c]=o[a];for(e=0;e<Ln.length;e++)null!==s&&Ln[e].c in s||t.push(Ln[e])}return t}function Yi(t){return On(t.a,"queryParameterForWidgetMode")}function Zi(t){var e=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,e&&!t&&mr("Privacy Policy URL is missing, the link will not be displayed."),e&&t){if(v(e))return e;if(u(e))return function(){Di(e)}}return null}function to(t){var e=t.a.get("tosUrl")||null,n=t.a.get("privacyPolicyUrl")||null;if(n&&!e&&mr("Term of Service URL is missing, the link will not be displayed."),e&&n){if(v(n))return n;if(u(n))return function(){Di(n)}}return null}function eo(t){return!(t=Gi(t,i.auth.EmailAuthProvider.PROVIDER_ID))||void 0===t.requireDisplayName||!!t.requireDisplayName}function no(t){return!(!(t=Gi(t,i.auth.EmailAuthProvider.PROVIDER_ID))||t.signInMethod!==i.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)}function ro(t){return so(t).uiShown||null}function io(t){return so(t).signInSuccess||null}function oo(t){return so(t).signInSuccessWithAuthResult||null}function ao(t){return so(t).signInFailure||null}function so(t){return t.a.get("callbacks")||{}}function uo(t){if("http:"!==(window.location&&window.location.protocol)&&"https:"!==(window.location&&window.location.protocol))return"none";for(var e in t=t.a.get("credentialHelper"),Mi)if(Mi[e]==t)return Mi[e];return Ri}function lo(t){this.a=Te(t)}var co={Ja:"ui_auid",Wb:"apiKey",Ka:"ui_sd",lb:"mode",Va:"oobCode",PROVIDER_ID:"ui_pid",Ma:"ui_sid"};function ho(t){return t.a.a.get(co.Ja)||null}function fo(t,e){e?t.a.a.set(co.PROVIDER_ID,e):Ve(t.a.a,co.PROVIDER_ID)}function po(){Zr.call(this),this.F=new hi(this),this.mb=this,this.Ba=null}function mo(t,e){var n,r=t.Ba;if(r)for(n=[];r;r=r.Ba)n.push(r);if(t=t.mb,r=e.type||e,u(e))e=new ii(e,t);else if(e instanceof ii)e.target=e.target||t;else{var i=e;lt(e=new ii(r,t),i)}if(i=!0,n)for(var o=n.length-1;!e.h&&0<=o;o--){var a=e.f=n[o];i=go(a,r,!0,e)&&i}if(e.h||(i=go(a=e.f=t,r,!0,e)&&i,e.h||(i=go(a,r,!1,e)&&i)),n)for(o=0;!e.h&&o<n.length;o++)i=go(a=e.f=n[o],r,!1,e)&&i;return i}function go(t,e,n,r){if(!(e=t.F.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.qa&&a.capture==n){var s=a.listener,u=a.Fa||a.src;a.Ca&&fi(t.F,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.ib}lo.prototype.toString=function(){return this.a.toString()},A(po,Zr),po.prototype[si]=!0,po.prototype.Ta=function(t){this.Ba=t},po.prototype.removeEventListener=function(t,e,n,r){bi(this,t,e,n,r)},po.prototype.l=function(){if(po.o.l.call(this),this.F){var t,e=this.F;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)ci(n[r]);delete e.a[t],e.f--}}this.Ba=null};var vo={},yo=0;function bo(t,e){if(!t)throw Error("Event target element must be provided!");if(t=wo(t),vo[t]&&vo[t].length)for(var n=0;n<vo[t].length;n++)mo(vo[t][n],e)}function wo(t){return void 0===t.a&&(t.a=yo,yo++),t.a}function _o(t){if(!t)throw Error("Event target element must be provided!");this.a=t,po.call(this)}function So(t,e){this.i=[],this.O=t,this.K=e||null,this.j=this.a=!1,this.h=void 0,this.F=this.s=this.w=!1,this.v=0,this.f=null,this.C=0}function Eo(t,e,n){t.a=!0,t.h=n,t.j=!e,To(t)}function Co(t){if(t.a){if(!t.F)throw new Oo(t);t.F=!1}}function Io(t,e,n){t.i.push([e,n,void 0]),t.a&&To(t)}function ko(t){return L(t.i,function(t){return v(t[1])})}function To(t){if(t.v&&t.a&&ko(t)){var e=t.v,n=Do[e];n&&(a.clearTimeout(n.a),delete Do[e]),t.v=0}t.f&&(t.f.C--,delete t.f),e=t.h;for(var r=n=!1;t.i.length&&!t.w;){var i=t.i.shift(),o=i[0],u=i[1];if(i=i[2],o=t.j?u:o)try{var l=o.call(i||t.K,e);
1s(l)&&(t.j=t.j&&(l==e||l instanceof Error),t.h=e=l),(vr(e)||"function"==typeof a.Promise&&e instanceof a.Promise)&&(r=!0,t.w=!0)}catch(c){e=c,t.j=!0,ko(t)||(n=!0)}}t.h=e,r&&(l=E(t.I,t,!0),r=E(t.I,t,!1),e instanceof So?(Io(e,l,r),e.s=!0):e.then(l,r)),n&&(e=new xo(e),Do[e.a]=e,t.v=e.a)}function Oo(){x.call(this)}function Ao(){x.call(this)}function xo(t){this.a=a.setTimeout(E(this.h,this),0),this.f=t}A(_o,po),_o.prototype.N=function(){return this.a},_o.prototype.register=function(){var t=wo(this.N());vo[t]?V(vo[t],this)||vo[t].push(this):vo[t]=[this]},So.prototype.cancel=function(t){if(this.a)this.h instanceof So&&this.h.cancel();else{if(this.f){var e=this.f;delete this.f,t?e.cancel(t):(e.C--,0>=e.C&&e.cancel())}this.O?this.O.call(this.K,this):this.F=!0,this.a||(t=new Ao(this),Co(this),Eo(this,!1,t))}},So.prototype.I=function(t,e){this.w=!1,Eo(this,t,e)},So.prototype.then=function(t,e,n){var r,i,o=new Dr(function(t,e){r=t,i=e});return Io(this,r,function(t){t instanceof Ao?o.cancel():i(t)}),o.then(t,e,n)},gr(So),A(Oo,x),Oo.prototype.message="Deferred has already fired",Oo.prototype.name="AlreadyCalledError",A(Ao,x),Ao.prototype.message="Deferred was canceled",Ao.prototype.name="CanceledError",xo.prototype.h=function(){throw delete Do[this.a],this.f};var Do={};function Po(t){var e={},n=e.document||document,r=Rt(t),i=document.createElement("SCRIPT"),o={jb:i,kb:void 0},s=new So(No,o),u=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(u=window.setTimeout(function(){jo(i,!0);var t=new Lo(Mo,"Timeout reached for loading script "+r);Co(s),Eo(s,!1,t)},h),o.kb=u),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(jo(i,e.hc||!1,u),Co(s),Eo(s,!0,null))},i.onerror=function(){jo(i,!0,u);var t=new Lo(Ro,"Error while loading script "+r);Co(s),Eo(s,!1,t)},lt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),function(t,e){at(o,function(e,n){e&&"object"==typeof e&&e.ka&&(e=e.ia()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:oe.hasOwnProperty(n)?t.setAttribute(oe[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}(i),function(t,e){t.src=Rt(e),null===c&&((e=(e=a.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&l.test(e)||(e=null),c=e||""),(e=c)&&t.setAttribute("nonce",e)}(i,t),function(t){var e=(t||document).getElementsByTagName("HEAD");return e&&0!=e.length?e[0]:t.documentElement}(n).appendChild(i),s}function No(){if(this&&this.jb){var t=this.jb;t&&"SCRIPT"==t.tagName&&jo(t,!0,this.kb)}}function jo(t,e,n){null!=n&&a.clearTimeout(n),t.onload=h,t.onerror=h,t.onreadystatechange=h,e&&window.setTimeout(function(){se(t)},0)}var Ro=0,Mo=1;function Lo(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),x.call(this,n),this.code=t}function Fo(t){this.a=t||a.googleyolo,this.f=null,this.h=!1}A(Lo,x),f(Fo);var Vo=new xt(Nt,"https://smartlock.google.com/client");function Uo(){this.a=null}function qo(t,e){this.a=t,this.f=e||function(t){throw t}}function Bo(t,e,n,r){this.a=t,this.h=e||null,this.j=n||null,this.f=r||null}function zo(t){return t.email?new Bo(t.email,t.displayName,t.photoUrl,t.providerId):null}function Ho(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function Go(t){t=(t.a.cookie||"").split(";");for(var e,n,r=[],i=[],o=0;o<t.length;o++)-1==(e=(n=$(t[o])).indexOf("="))?(r.push(""),i.push(n)):(r.push(n.substring(0,e)),i.push(n.substring(e+1)));return{keys:r,values:i}}Fo.prototype.cancel=function(){this.a&&this.h&&(this.f=this.a.cancelLastOperation().catch(function(){}))},f(Uo),Uo.prototype.load=function(){var t=this;if(this.a)return this.a;var e=Lt(Dt(Vo));return a.googleyolo?Fr():this.a=function(){var t=null;return Ur(new Dr(function(e){"complete"==a.document.readyState?e():(t=function(){e()},yi(window,"load",t))}),function(e){throw bi(window,"load",t),e})}().then(function(){if(!a.googleyolo)return new Dr(function(n,r){var i=setTimeout(function(){t.a=null,r(Error("Network error!"))},1e4);a.onGoogleYoloLoad=function(){clearTimeout(i),n()},Ur(Fr(Po(e)),function(e){clearTimeout(i),t.a=null,r(e)})})})},qo.prototype.confirm=function(t){return Ur(Fr(this.a.confirm(t)),this.f)},Bo.prototype.na=function(){return{email:this.a,displayName:this.h,photoUrl:this.j,providerId:this.f}}
1,(t=Ho.prototype).set=function(t,e,n,r,i,o){if(/[;=\s]/.test(t))throw Error('Invalid cookie name "'+t+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');s(n)||(n=-1),i=i?";domain="+i:"",r=r?";path="+r:"",o=o?";secure":"",n=0>n?"":0==n?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(T()+1e3*n).toUTCString(),this.a.cookie=t+"="+e+i+r+n+o},t.get=function(t,e){for(var n,r=t+"=",i=(this.a.cookie||"").split(";"),o=0;o<i.length;o++){if(0==(n=$(i[o])).lastIndexOf(r,0))return n.substr(r.length);if(n==t)return""}return e},t.ha=function(){return Go(this).keys},t.ja=function(){return Go(this).values},t.clear=function(){for(var t=Go(this).keys,e=t.length-1;0<=e;e--){var n=t[e];this.get(n),this.set(n,"",0,void 0,void 0)}};var $o=new Ho;function Ko(){}function Wo(t,e,n,r){this.h=null!=t?t:-1,this.f=e||null,this.a=n||null,this.j=!!r}function Qo(t,e){this.f=t,this.a=e||null}function Jo(t){if(t&&t.email){var e=t.credential&&i.auth.AuthCredential.fromJSON(t.credential);return new Qo(t.email,e)}return null}function Xo(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);255<i&&(e[n++]=255&i,i>>=8),e[n++]=i}return e}function Yo(t){return M(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}function Zo(t){for(this.v=t,this.f=this.v.length/4,this.j=this.f+6,this.h=[[],[],[],[]],this.i=[[],[],[],[]],this.a=Array(ta*(this.j+1)),t=0;t<this.f;t++)this.a[t]=[this.v[4*t],this.v[4*t+1],this.v[4*t+2],this.v[4*t+3]];var e=Array(4);for(t=this.f;t<ta*(this.j+1);t++){if(e[0]=this.a[t-1][0],e[1]=this.a[t-1][1],e[2]=this.a[t-1][2],e[3]=this.a[t-1][3],0==t%this.f){var n=e,r=n[0];n[0]=n[1],n[1]=n[2],n[2]=n[3],n[3]=r,sa(e),e[0]^=ca[t/this.f][0],e[1]^=ca[t/this.f][1],e[2]^=ca[t/this.f][2],e[3]^=ca[t/this.f][3]}else 6<this.f&&4==t%this.f&&sa(e);this.a[t]=Array(4),this.a[t][0]=this.a[t-this.f][0]^e[0],this.a[t][1]=this.a[t-this.f][1]^e[1],this.a[t][2]=this.a[t-this.f][2]^e[2],this.a[t][3]=this.a[t-this.f][3]^e[3]}}$o.f=3950,A(Wo,Ko),Wo.prototype.set=function(t,e){$o.set(t,e,this.h,this.f,this.a,this.j)},Wo.prototype.get=function(t){return $o.get(t)||null},Wo.prototype.pa=function(t){var e=this.f,n=this.a;$o.get(t),$o.set(t,"",0,e,n)},Qo.prototype.na=function(){return{email:this.f,credential:this.a&&this.a.toJSON()}};var ta=(Zo.prototype.w=16)/4;function ea(t,e){for(var n=0;n<ta;n++)for(var r=0;4>r;r++)t.h[n][r]=e[4*r+n]}function na(t){for(var e=[],n=0;n<ta;n++)for(var r=0;4>r;r++)e[4*r+n]=t.h[n][r];return e}function ra(t,e){for(var n=0;4>n;n++)for(var r=0;4>r;r++)t.h[n][r]^=t.a[4*e+r][n]}function ia(t,e){for(var n=0;4>n;n++)for(var r=0;4>r;r++)t.h[n][r]=e[t.h[n][r]]}function oa(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.i[e][n]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.i[e][(n+e)%ta]}function aa(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.i[e][(n+e)%ta]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.i[e][n]}function sa(t){t[0]=ua[t[0]],t[1]=ua[t[1]],t[2]=ua[t[2]],t[3]=ua[t[3]]}var ua=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],la=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,
1111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],ca=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],ha=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],fa=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],da=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],pa=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],ma=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],ga=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,
1181,159,145,131,141];function va(t,e){t=new Zo(ba(t));for(var n,r=H(e=Xo(e),0,16),i="";r.length;){n=16-r.length;for(var o=0;o<n;o++)r.push(0);for(ea(n=t,r),ra(n,0),r=1;r<n.j;++r){ia(n,ua),oa(n),o=n.h;for(var a=n.i[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=ha[a[0]]^fa[a[1]]^a[2]^a[3],o[1][s]=a[0]^ha[a[1]]^fa[a[2]]^a[3],o[2][s]=a[0]^a[1]^ha[a[2]]^fa[a[3]],o[3][s]=fa[a[0]]^a[1]^a[2]^ha[a[3]];ra(n,r)}ia(n,ua),oa(n),ra(n,n.j),i+=Yo(na(n)),r=H(e,0,16)}return i}function ya(t,e){t=new Zo(ba(t));for(var n=[],r=0;r<e.length;r+=2)n.push(parseInt(e.substring(r,r+2),16));var i=H(n,0,16);for(e="";i.length;){for(ea(r=t,i),ra(r,r.j),i=1;i<r.j;++i){aa(r),ia(r,la),ra(r,r.j-i);for(var o=r.h,a=r.i[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=ga[a[0]]^pa[a[1]]^ma[a[2]]^da[a[3]],o[1][s]=da[a[0]]^ga[a[1]]^pa[a[2]]^ma[a[3]],o[2][s]=ma[a[0]]^da[a[1]]^ga[a[2]]^pa[a[3]],o[3][s]=pa[a[0]]^ma[a[1]]^da[a[2]]^ga[a[3]]}if(aa(r),ia(r,la),ra(r,0),8192>=(r=na(r)).length)r=String.fromCharCode.apply(null,r);else{for(i="",o=0;o<r.length;o+=8192)i+=String.fromCharCode.apply(null,G(r,o,o+8192));r=i}e+=r,i=H(n,0,16)}return e.replace(/(\x00)+$/,"")}function ba(t){for(var e=32-(t=Xo(t.substring(0,32))).length,n=0;n<e;n++)t.push(0);return t}function wa(t){var e=[];return function t(e,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(m(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),t(e,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&"function"!=typeof(a=n[i])&&(r.push(o),Ca(i,r),r.push(":"),t(e,a,r),o=",");return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":Ca(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new _a,t,e),e.join("")}function _a(){}var Sa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Ca(t,e){e.push('"',t.replace(Ea,function(t){var e=Sa[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Sa[t]=e),e}),'"')}function Ia(t){this.a=t}function ka(){}function Ta(t){this.a=t}function Oa(t){if(!t.a)return!1;try{return t.a.setItem("__sak","1"),t.a.removeItem("__sak"),!0}catch(Xt){return!1}}function Aa(){var t=null;try{t=window.localStorage||null}catch(Xt){}this.a=t}function xa(){var t=null;try{t=window.sessionStorage||null}catch(Xt){}this.a=t}function Da(t,e){this.f=t,this.a=e+"::"}Ia.prototype.set=function(t,e){s(e)?this.a.set(t,wa(e)):this.a.pa(t)},Ia.prototype.get=function(t){try{var e=this.a.get(t)}catch(Jt){return}if(null!==e)try{return JSON.parse(e)}catch(n){throw"Storage: Invalid value was encountered"}},A(ka,Ko),ka.prototype.clear=function(){var t=function(t){if(g(t))return z(t);t=pe(t);var e=[];return function(t,e){if(g(t))try{j(t,e,void 0)}catch(Jt){if(Jt!==fe)throw Jt}else{t=pe(t);try{for(;;)e.call(void 0,t.next(),void 0,t)}catch(n){if(n!==fe)throw n}}}(t,function(t){e.push(t)}),e}(this.fa(!0)),e=this;j(t,function(t){e.pa(t)})},A(Ta,ka),(t=Ta.prototype).set=function(t,e){try{this.a.setItem(t,e)}catch(Jt){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}},t.get=function(t){if(!u(t=this.a.getItem(t))&&null!==t)throw"Storage mechanism: Invalid value was encountered";return t},t.pa=function(t){this.a.removeItem(t)},t.fa=function(t){var e=0,n=this.a,r=new de;return r.next=function(){if(e>=n.length)throw fe;var r=n.key(e++);if(t)return r;if(!u(r=n.getItem(r)))throw"Storage mechanism: Invalid value was encountered";return r},r},t.clear=function(){this.a.clear()},t.key=function(t){return this.a.key(t)},A(Aa,Ta),A(xa,Ta),A(Da,ka),Da.prototype.set=function(t,e){this.f.set(this.a+t,e)},Da.prototype.get=function(t){return this.f.get(this.a+t)},Da.prototype.pa=function(t){this.f.pa(this.a+t)},Da.prototype.fa=function(t){var e=this.f.fa(!0),n=this,r=new de;return r.next=function(){for(var r=e.next();r.substr(0,n.a.length)!=n.a;)r=e.next();return t?r.substr(n.a.length):n.f.get(r)},r};var Pa=new Aa,Na=new Ia(Oa(Pa)?new Da(Pa,"firebaseui"):null),ja=new xa,Ra=new Ia(Oa(ja)?new Da(ja,"firebaseui"):null),Ma={n
1ame:"pendingEmailCredential",storage:Ra},La={name:"pendingRedirect",storage:Ra},Fa={name:"redirectUrl",storage:Ra},Va={name:"rememberAccount",storage:Ra},Ua={name:"rememberedAccounts",storage:Na},qa={name:"emailForSignIn",storage:new Ia(new Wo(3600,"/"))},Ba={name:"pendingEncryptedCredential",storage:new Ia(new Wo(3600,"/"))};function za(t,e){return t.storage.get(e?t.name+":"+e:t.name)}function Ha(t,e){t.storage.a.pa(e?t.name+":"+e:t.name)}function Ga(t,e,n){t.storage.set(n?t.name+":"+n:t.name,e)}function $a(t){return za(Fa,t)||null}function Ka(t,e){Ga(Fa,t,e)}function Wa(t,e){Ga(Va,t,e)}function Qa(t){return t=za(Ua,t)||[],t=M(t,function(t){return zo(t)}),R(t,p)}function Ja(t){return Jo(t=za(Ma,t)||null)}function Xa(t){Ha(Ma,t)}function Ya(t,e){Ga(Ma,t.na(),e)}function Za(t){Ga(La,"pending",t)}var ts=null;function es(t){return!(!t||-32e3!=t.code||"Service unavailable"!=t.message)}function ns(t,e,n){function r(){var t=Oe(window.location.href,n).toString();ts.select(M(e||[],function(t){return t.na()}),{clientCallbackUrl:t})}e&&e.length?r():ts.checkEmpty(function(e,n){e||n?t(!es(n)):r()})}function rs(t){this.a=t,this.a.callbacks=this.a.callbacks||{}}var is={code:-32e3,message:"Service unavailable",data:"Service is unavailable."};(t=rs.prototype).store=function(){v(this.a.callbacks.store)&&this.a.callbacks.store(void 0,is)},t.select=function(){v(this.a.callbacks.select)&&this.a.callbacks.select(void 0,is)},t.update=function(){v(this.a.callbacks.update)&&this.a.callbacks.update(void 0,is)},t.checkDisabled=function(t){t(!0)},t.checkEmpty=function(t){t(void 0,is)},t.checkAccountExist=function(t,e){e(void 0,is)},t.checkShouldUpdate=function(t,e){e(void 0,is)};var os,as,ss,us,ls={};function cs(t,e,n,r){ls[t].apply(null,Array.prototype.slice.call(arguments,1))}var hs=/MSIE ([\d.]+).*Windows NT ([\d.]+)/,fs=/Firefox\/([\d.]+)/,ds=/Opera[ \/]([\d.]+)(.*Version\/([\d.]+))?/,ps=/Chrome\/([\d.]+)/,ms=/((Windows NT ([\d.]+))|(Mac OS X ([\d_]+))).*Version\/([\d.]+).*Safari/,gs=/Mac OS X;.*(?!(Version)).*Safari/,vs=/Android ([\d.]+).*Safari/,ys=/OS ([\d_]+) like Mac OS X.*Mobile.*Safari/,bs=/Konqueror\/([\d.]+)/,ws=/MSIE ([\d.]+).*Windows Phone OS ([\d.]+)/;function _s(t,e){for(t=t.split(e||"."),this.a=[],e=0;e<t.length;e++)this.a.push(parseInt(t[e],10))}function Ss(t,e){return 0<=function(t,e){e instanceof _s||(e=new _s(String(e)));for(var n=Math.max(t.a.length,e.a.length),r=0;r<n;r++){var i=t.a[r],o=e.a[r];if(void 0!==i&&void 0!==o&&i!==o)return i-o;if(void 0===i)return-1;if(void 0===o)return 1}return 0}(t,e)}function Es(t){return t.classList?t.classList:u(t=t.className)&&t.match(/\S+/g)||[]}function Cs(t,e){return t.classList?t.classList.contains(e):V(Es(t),e)}function Is(t,e){t.classList?t.classList.add(e):Cs(t,e)||(t.className+=0<t.className.length?" "+e:e)}function ks(t,e){t.classList?t.classList.remove(e):Cs(t,e)&&(t.className=R(Es(t),function(t){return t!=e}).join(" "))}function Ts(t){var e=t.type;switch(u(e)&&e.toLowerCase()){case"checkbox":case"radio":return t.checked?t.value:null;case"select-one":return 0<=(e=t.selectedIndex)?t.options[e].value:null;case"select-multiple":e=[];for(var n,r=0;n=t.options[r];r++)n.selected&&e.push(n.value);return e.length?e:null;default:return null!=t.value?t.value:null}}function Os(t,e){var n=t.type;switch(u(n)&&n.toLowerCase()){case"checkbox":case"radio":t.checked=e;break;case"select-one":if(t.selectedIndex=-1,u(e))for(var r=0;n=t.options[r];r++)if(n.value==e){n.selected=!0;break}break;case"select-multiple":for(u(e)&&(e=[e]),r=0;n=t.options[r];r++)if(n.selected=!1,e)for(var i,o=0;i=e[o];o++)n.value==i&&(n.selected=!0);break;default:t.value=null!=e?e:""}}function As(t,e,n,r,i,o){if(bt&&!Ot("525"))return!0;if(_t&&i)return xs(t);if(i&&!r)return!1;if(!yt&&("number"==typeof e&&(e=Ds(e)),(!n||_t)&&(17==e||18==e||_t&&91==e)||_t&&16==e&&(r||o)))return!1;if((bt||gt)&&r&&n)switch(t){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(mt&&r&&e==t)return!1;switch(t){case 13:return!(yt&&(o||i||n&&r));case 27:return!(bt||gt||yt)}return(!yt||!(r||i||o))&&xs(t)}function xs(t){if(48<=t&&57>=t||96<=t&&106>=t||65<=t&&90>=t||(bt||gt)&&0==t)return!0;switch(t){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Ds(t){if(yt)t=function(t){switch(t){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return t}}(t);else if(_t&&bt)switch(t){case 93:t=91}return t}function Ps(t){po.call(this),this.a=t,gi(t,"keydown",this.f,!1,this),gi(t,"click",this.h,!1,this)}function Ns(t,e){var n=new Rs(e);if(mo(t,n)){n=new js(e);try{mo(t,n)}
1finally{e.stopPropagation()}}}function js(t){oi.call(this,t.a),this.type="action"}function Rs(t){oi.call(this,t.a),this.type="beforeaction"}function Ms(t){po.call(this),this.a=t,t=mt?"focusout":"blur",this.f=gi(this.a,mt?"focusin":"focus",this,!mt),this.h=gi(this.a,t,this,!mt)}function Ls(t,e){po.call(this),this.f=t||1,this.a=e||a,this.h=E(this.Rb,this),this.j=T()}function Fs(t){t.Ea=!1,t.X&&(t.a.clearTimeout(t.X),t.X=null)}function Vs(t){Zr.call(this),this.f=t,this.a={}}A(Ps,po),Ps.prototype.f=function(t){(13==t.keyCode||bt&&3==t.keyCode)&&Ns(this,t)},Ps.prototype.h=function(t){Ns(this,t)},Ps.prototype.l=function(){Ps.o.l.call(this),bi(this.a,"keydown",this.f,!1,this),bi(this.a,"click",this.h,!1,this),delete this.a},A(js,oi),A(Rs,oi),A(Ms,po),Ms.prototype.handleEvent=function(t){var e=new oi(t.a);e.type="focusin"==t.type||"focus"==t.type?"focusin":"focusout",mo(this,e)},Ms.prototype.l=function(){Ms.o.l.call(this),wi(this.f),wi(this.h),delete this.a},A(Ls,po),(t=Ls.prototype).Ea=!1,t.X=null,t.Rb=function(){if(this.Ea){var t=T()-this.j;0<t&&t<.8*this.f?this.X=this.a.setTimeout(this.h,this.f-t):(this.X&&(this.a.clearTimeout(this.X),this.X=null),mo(this,"tick"),this.Ea&&(Fs(this),this.start()))}},t.start=function(){this.Ea=!0,this.X||(this.X=this.a.setTimeout(this.h,this.f),this.j=T())},t.l=function(){Ls.o.l.call(this),Fs(this),delete this.a},A(Vs,Zr);var Us=[];function qs(t,e,n,r){m(n)||(n&&(Us[0]=n.toString()),n=Us);for(var i=0;i<n.length;i++){var o=gi(e,n[i],r||t.handleEvent,!1,t.f||t);if(!o)break;t.a[o.key]=o}}function Bs(t){at(t.a,function(t,e){this.a.hasOwnProperty(e)&&wi(t)},t),t.a={}}function zs(t){po.call(this),this.a=null,this.f=t,t=mt||gt||bt&&!Ot("531")&&"TEXTAREA"==t.tagName,this.h=new Vs(this),qs(this.h,this.f,t?["keydown","paste","cut","drop","input"]:"input",this)}function Hs(t){null!=t.a&&(a.clearTimeout(t.a),t.a=null)}function Gs(t){return(t=new oi(t.a)).type="input",t}function $s(t,e){po.call(this),t&&(this.Ia&&Xs(this),this.oa=t,this.Ha=gi(this.oa,"keypress",this,e),this.Sa=gi(this.oa,"keydown",this.xb,e,this),this.Ia=gi(this.oa,"keyup",this.Ab,e,this))}Vs.prototype.l=function(){Vs.o.l.call(this),Bs(this)},Vs.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},A(zs,po),zs.prototype.handleEvent=function(t){if("input"==t.type)mt&&Ot(10)&&0==t.keyCode&&0==t.j||(Hs(this),mo(this,Gs(t)));else if("keydown"!=t.type||function(t){if(t.altKey&&!t.ctrlKey||t.metaKey||112<=t.keyCode&&123>=t.keyCode)return!1;switch(t.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!yt;default:return 166>t.keyCode||183<t.keyCode}}(t)){var e="keydown"==t.type?this.f.value:null;mt&&229==t.keyCode&&(e=null);var n=Gs(t);Hs(this),this.a=function(t,e){if(v(t))e&&(t=E(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=E(t.handleEvent,t)}return 2147483647<Number(0)?-1:a.setTimeout(t,0)}(function(){this.a=null,this.f.value!=e&&mo(this,n)},this)}},zs.prototype.l=function(){zs.o.l.call(this),this.h.m(),Hs(this),delete this.f},A($s,po),(t=$s.prototype).oa=null,t.Ha=null,t.Sa=null,t.Ia=null,t.S=-1,t.da=-1,t.Oa=!1;var Ks={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Ws={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Qs=!bt||Ot("525"),Js=_t&&yt;function Xs(t){t.Ha&&(wi(t.Ha),wi(t.Sa),wi(t.Ia),t.Ha=null,t.Sa=null,t.Ia=null),t.oa=null,t.S=-1,t.da=-1}function Ys(t,e,n,r){oi.call(this,r),this.type="key",this.keyCode=t,this.j=e,this.repeat=n}function Zs(t,e,n,r){this.top=t,this.right=e,this.bottom=n,this.left=r}function tu(t,e){var n=ue(t);return n.defaultView&&n.defaultView.getComputedStyle&&(t=n.defaultView.getComputedStyle(t,null))&&(t[e]||t.getPropertyValue(e))||""}function eu(t){try{var e=t.getBoundingClientRect()}catch(Jt){return{left:0,top:0,right:0,bottom:0}}return mt&&t.ownerDocument.body&&(e.left-=(t=t.ownerDocument).documentElement.clientLeft+t.body.clientLeft,e.top-=t.documentElement.clientTop+t.body.clientTop),e}function nu(t){var e=ue(t),n=new Zt(0,0),r=e?ue(e):document;return t==(r=!mt||9<=Number(kt)||"CSS1Compat"==ee(r).a.compatMode?r.documentElement:r.body)?n:(t=eu(t),e=ae(r=ee(e).a),r=r.parentWindow||r.defaultView,e=mt&&Ot("10")&&r.pageYOffset!=e.scrollTop?new Zt(e.scrollLeft,e.scrollTop):new Zt(r.pageXOffset||e.scrollLeft,r.pageYOffset||e.scrollTop),n.a=t.left+e.a,n.f=t.top+e.f,n)}(t=$s.prototype).xb=function(t){(bt||gt)&&(17==this.S&&!t.ctrlKey||18==this.S&&!t.altKey||_t&&91==this.S&&!t.metaKey)&&(this.da=this.S=-1),-1==this.S&&(t.ctrlKey&&17!=t.keyCode?this.S=17:t.altKey&&18!=t.keyCode?this.S=18:t.metaKey&&9
11!=t.keyCode&&(this.S=91)),Qs&&!As(t.keyCode,this.S,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey)?this.handleEvent(t):(this.da=Ds(t.keyCode),Js&&(this.Oa=t.altKey))},t.Ab=function(t){this.da=this.S=-1,this.Oa=t.altKey},t.handleEvent=function(t){var e=t.a,n=e.altKey;if(mt&&"keypress"==t.type)var r=this.da,i=13!=r&&27!=r?e.keyCode:0;else(bt||gt)&&"keypress"==t.type?(r=this.da,i=0<=e.charCode&&63232>e.charCode&&xs(r)?e.charCode:0):pt&&!bt?i=xs(r=this.da)?e.keyCode:0:(r=e.keyCode||this.da,i=e.charCode||0,Js&&"keypress"==t.type&&(n=this.Oa),_t&&63==i&&224==r&&(r=191));var o=r=Ds(r);r?63232<=r&&r in Ks?o=Ks[r]:25==r&&t.shiftKey&&(o=9):e.keyIdentifier&&e.keyIdentifier in Ws&&(o=Ws[e.keyIdentifier]),yt&&Qs&&"keypress"==t.type&&!As(o,this.S,t.shiftKey,t.ctrlKey,n,t.metaKey)||(t=o==this.S,this.S=o,(e=new Ys(o,i,t,e)).altKey=n,mo(this,e))},t.N=function(){return this.oa},t.l=function(){$s.o.l.call(this),Xs(this)},A(Ys,oi),Zs.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},Zs.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},Zs.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},Zs.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var ru={thin:2,medium:4,thick:6};function iu(t,e){if("none"==(t.currentStyle?t.currentStyle[e+"Style"]:null))return 0;var n=t.currentStyle?t.currentStyle[e+"Width"]:null;if(n in ru)t=ru[n];else if(/^\d+px?$/.test(n))t=parseInt(n,10);else{e=t.style.left;var r=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left,t.style.left=n,n=t.style.pixelLeft,t.style.left=e,t.runtimeStyle.left=r,t=+n}return t}function ou(){}function au(t){po.call(this),this.w=t||ee(),this.Xa=null,this.la=!1,this.j=null,this.I=void 0,this.xa=this.za=this.Y=null}function su(t,e){return t.j?re(e,t.j||t.w.a):null}function uu(t){return t.I||(t.I=new Vs(t)),t.I}function lu(t,e){t.za&&j(t.za,e,void 0)}function cu(t,e){var n=ce(t,"firebaseui-textfield");e?(ks(t,"firebaseui-input-invalid"),Is(t,"firebaseui-input"),n&&ks(n,"firebaseui-textfield-invalid")):(ks(t,"firebaseui-input"),Is(t,"firebaseui-input-invalid"),n&&Is(n,"firebaseui-textfield-invalid"))}function hu(t,e,n){ni(t,C(ri,e=new zs(e))),qs(uu(t),e,"input",n)}function fu(t,e,n){ni(t,C(ri,e=new $s(e))),qs(uu(t),e,"key",function(t){13==t.keyCode&&(t.stopPropagation(),t.preventDefault(),n(t))})}function du(t,e,n){ni(t,C(ri,e=new Ps(e))),qs(uu(t),e,"action",function(t){t.stopPropagation(),t.preventDefault(),n(t)})}function pu(t){Is(t,"firebaseui-hidden")}function mu(t,e){e&&le(t,e),ks(t,"firebaseui-hidden")}function gu(t){return!Cs(t,"firebaseui-hidden")&&"none"!=t.style.display}function vu(t){var e=(t=t||{}).email,n=t.disabled,r='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="email">';return r=t.gc?r+"Enter new email address":r+"Email",r+='</label><input type="email" name="email" autocomplete="username" class="mdl-textfield__input firebaseui-input firebaseui-id-email" value="'+sn(null!=e?e:"")+'"'+(n?"disabled":"")+'></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-email-error"></p></div>',nn(r)}function yu(t){var e='<button type="submit" class="firebaseui-id-submit firebaseui-button mdl-button mdl-js-button mdl-button--raised mdl-button--colored">';return e=(t=(t=t||{}).label)?e+Ye(t):e+"Next",nn(e+"</button>")}function bu(){var t=""+yu({label:on("Sign In")});return nn(t)}function wu(){var t=""+yu({label:on("Save")});return nn(t)}function _u(){var t=""+yu({label:on("Continue")});return nn(t)}function Su(t){var e='<div class="firebaseui-new-password-component"><div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="newPassword">';return e=(t=(t=t||{}).label)?e+Ye(t):e+"Choose password",nn(e+'</label><input type="password" name="newPassword" autocomplete="new-password" class="mdl-textfield__input firebaseui-input firebaseui-id-new-password"></div><a href="javascript:void(0)" class="firebaseui-input-floating-button firebaseui-id-password-toggle firebaseui-input-toggle-on firebaseui-input-toggle-blur"></a><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-new-password-error"></p></div></div>')}function Eu(){var t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="password">';return nn((t={}.current?t+"Current password":t+"Password")+'</label><input type="password" name="password" autocomplete="current-password" class="mdl-textfield__input firebaseui-input firebaseui-id-password"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-password-error"></p></div>')}function Cu(){return nn('<a class="firebaseui-link firebaseui-id-secondary-link" href="javascript:void(0)">Trouble signing in?</a>')}function Iu(t){var e='<button class="firebaseui-id-secondary-link firebaseui-button mdl-button mdl-js-button mdl-button--primary">';return e=(t=(t=t||{}).label)?e+Ye(t):e+"Cancel",nn(e+"</button>")}function ku(t){var e="";return t.H&&t.G&&(e+='<ul class="firebaseui-tos-list firebaseui-tos"><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a></li><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a></li></ul>'),nn(e)}function Tu(t){var e="";return t.H&&t.G&&(e+='<p class="firebaseui-tos firebaseui-tospp-full-message">By continuing, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>.</p>'),nn(e)}function Ou(t){return t='<div class="firebaseui-info-bar firebaseui-id-info-bar"><p class="firebaseui-info-bar-message">'+Ye(t.message)+' <a href="javascript:void(0)" class="firebaseui-link firebaseui-id-dismiss-info-bar">Dismiss</a></p></div>',nn(t)}function Au(t){var e=t.content;return nn('<dialog class="mdl-dialog firebaseui-dialog firebaseui-id-dialog'+((t=t.qb)?" "+sn(t):"")+'">'+Ye(e)+"</dialog>")}function xu(t){var e=t.message;return nn(Au({content:an('<div class="firebaseui-dialog-icon-wrapper"><div class="'+sn(t.Ga)+' firebaseui-dialog-icon"></div></div><div class="firebaseui-progress-dialog-message">'+Ye(e)+"</div>")}))}function Du(t){for(var e='<div class="firebaseui-list-box-actions">',n=(t=t.items).length,r=0;r<n;r++){var i=t[r];e+='<button type="button" data-listboxid="'+sn(i.id)+'" class="mdl-button firebaseui-id-list-box-dialog-button firebaseui-list-box-dialog-button">'+(i.Ga?'<div class="firebaseui-list-box-icon-wrapper"><div class="firebaseui-list-box-icon '+sn(i.Ga)+'"></div></div>':"")+'<div class="firebaseui-list-box-label-wrapper">'+Ye(i.label)+"</div></button>"}return e=""+Au({qb:on("firebaseui-list-box-dialog"),content:an(e+"</div>")}),nn(e)}function Pu(t){return nn((t=t||{}).Tb?'<div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>':'<div class="mdl-progress mdl-js-progress mdl-progress__indeterminate firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>')}function Nu(t){var e="";if((t=(t=t||{}).ma).hb)e+=t.hb;else switch(t.providerId){case"google.com":e+="Google";break;case"github.com":e+="GitHub";break;case"facebook.com":e+="Facebook";break;case"twitter.com":e+="Twitter";break;case"anonymous":e+="Guest";break;default:e+="Password"}return en(e)}function ju(t){Lu(t,"upgradeElement")}function Ru(t){Lu(t,"downgradeElements")}f(ou),ou.prototype.a=0,A(au,po),(t=au.prototype).Cb=ou.Ra(),t.N=function(){return this.j},t.Ta=function(t){if(this.Y&&this.Y!=t)throw Error("Method not supported");au.o.Ta.call(this,t)},t.eb=function(){this.j=this.w.a.createElement("DIV")},t.render=function(t){if(this.la)throw Error("Component already rendered");this.j||this.eb(),t?t.insertBefore(this.j,null):this.w.a.body.appendChild(this.j),this.Y&&!this.Y.la||this.u()},t.u=function(){this.la=!0,lu(this,function(t){!t.la&&t.N()&&t.u()})},t.ua=function(){lu(this,function(t){t.la&&t.ua()}),this.I&&Bs(this.I),this.la=!1},t.l=function(){this.la&&this.ua(),this.I&&(this.I.m(),delete this.I),lu(this,function(t){t.m()}),this.j&&se(this.j),this.Y=this.j=this.xa=this.za=null,au.o.l.call(this)},t.removeChild=function(t,e){if(t){var n=u(t)?t:t.Xa||(t.Xa=":"+(t.Cb.a++).toString(36));if(t=this.xa&&n&&(null!==(t=this.xa)&&n in t?t[n]:void 0)||null,n&&t){var r=this.xa;if(n in r&&delete r[n],U(this.za,t),e&&(t.ua(),t.j&&se(t.j)),null==(e=t))throw Error("Unable to set parent component");e.Y=null,au.o.Ta.call(e,null)}}if(!t)throw Error("Child is not in parent component");return t},Ou.B="firebaseui.auth.soy2.element.infoBar",xu.B="firebaseui.auth.soy2.element.progressDialog",Du.B="firebaseui.auth.soy2.element.listBoxDialog",Pu.B="firebaseui.auth.soy2.element.busyIndicator";var Mu=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function Lu(t,e){t&&window.componentHandler&&window.componentHandler[e]&&j(Mu,function(n){Cs(t,n)&&window.componentHandler[e](t),j(ne(n,t),function(t){window.componentHandler[e](t)})})}function Fu(t,e,n){if(Vu.call(this),document.body.appendChild(t),t.showModal||window.dialogPolyfill.registerDialog(t),t.showModal(),ju(t),e&&du(this,t,function(e){var n=t.getBoundingClientRect();
1(e.clientX<n.left||n.left+n.width<e.clientX||e.clientY<n.top||n.top+n.height<e.clientY)&&Vu.call(this)}),!n){var r=this.N().parentElement||this.N().parentNode;if(r){var i=this;this.aa=function(){if(t.open){var e=t.getBoundingClientRect().height,n=r.getBoundingClientRect().height,o=r.getBoundingClientRect().top-document.body.getBoundingClientRect().top,a=r.getBoundingClientRect().left-document.body.getBoundingClientRect().left,s=t.getBoundingClientRect().width,u=r.getBoundingClientRect().width;t.style.top=(o+(n-e)/2).toString()+"px",t.style.left=(e=a+(u-s)/2).toString()+"px",t.style.right=(document.body.getBoundingClientRect().width-e-s).toString()+"px"}else window.removeEventListener("resize",i.aa)},this.aa(),window.addEventListener("resize",this.aa,!1)}}}function Vu(){var t=Uu.call(this);t&&(Ru(t),t.open&&t.close(),se(t),this.aa&&window.removeEventListener("resize",this.aa))}function Uu(){return re("firebaseui-id-dialog")}function qu(){se(Bu.call(this))}function Bu(){return su(this,"firebaseui-id-info-bar")}function zu(){return su(this,"firebaseui-id-dismiss-info-bar")}var Hu={yb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",wb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/github.svg",tb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg",Sb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/twitter.svg",Eb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/mail.svg",Gb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/phone.svg",nb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/anonymous.png"};function Gu(t,e,n){for(var r in ii.call(this,t,e),n)this[r]=n[r]}function $u(t,e,n,r,i){au.call(this,n),this.$a=t,this.Za=e,this.Aa=!1,this.Ya=r||null,this.v=this.ea=null,this.Z=st(Hu),lt(this.Z,i||{})}function Ku(t){return t.N().parentElement||t.N().parentNode}function Wu(t,e,n){fu(t,e,function(){n.focus()})}function Qu(t,e,n){fu(t,e,function(){n()})}function Ju(t,e,n){e=(t=t||{}).Pa;var r=t.ga;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in with email</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+vu(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Iu(null):"")+yu(null)+'</div></div><div class="firebaseui-card-footer">'+(r?Tu(n):ku(n))+"</div></form></div>",nn(t)}function Xu(t,e,n){return e=(t=t||{}).ga,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content">'+vu(t)+Eu()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Cu()+'</div><div class="firebaseui-form-actions">'+bu()+'</div></div><div class="firebaseui-card-footer">'+(e?Tu(n):ku(n))+"</div></form></div>",nn(t)}function Yu(t,e,n){var r=(t=t||{}).Ib;e=t.Na;var i=t.ga,o='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-up"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Create account</h1></div><div class="firebaseui-card-content">'+vu(t);return r?(t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="name">First & last name</label><input type="text" name="name" autocomplete="name" class="mdl-textfield__input firebaseui-input firebaseui-id-name" value="'+sn(null!=(t=(t=t||{}).name)?t:"")+'"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-name-error"></p></div>',t=nn(t)):t="",n=o+t+Su(null)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Iu(null):"")+wu()+'</div></div><div class="firebaseui-card-footer">'+(i?Tu(n):ku(n))+"</div></form></div>",nn(n)}function Zu(t,e,n){return e=(t=t||{}).Na,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Recover password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Get instructions sent to this email that explain how to reset your password</p>'+vu(t)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Iu(null):"")+yu({label:on("Send")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(t)}function tl(t,e,n){e=t.T;var r="";return r+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery-email-sent"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Check your email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="Follow the instructions sent to <strong>"+Ye(t.email)+"</strong> to recover your password")+'</p></div><div class="firebaseui-card-actions">',e&&(r+='<div class="firebaseui-form-actions">'+yu({label:on("Done")})+"</div>"),r+='</div><div class="firebaseui-card-footer">'+ku(n)+"</div></div>",nn(r)}function el(t,e,n){return nn('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-callback"><div class="firebaseui-callback-indicator-container">'+Pu(null)+"</div></div>")}function nl(){return nn('<div class="firebaseui-container firebaseui-id-page-blank firebaseui-use-spinner"></div>')}function rl(t,e,n){return e="",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-se
1nt"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign-in email sent</h1></div><div class="firebaseui-card-content"><div class="firebaseui-email-sent"></div><p class="firebaseui-text">'+(t="A sign-in email with additional instructions was sent to <strong>"+Ye(t.email)+"</strong>. Check your email to complete sign-in.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+nn('<a class="firebaseui-link firebaseui-id-trouble-getting-email-link" href="javascript:void(0)">Trouble getting email?</a>')+'</div><div class="firebaseui-form-actions">'+Iu({label:on("Back")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function il(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-not-received"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Trouble getting email?</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try these common fixes:<ul><li>Check if the email was marked as spam or filtered.</li><li>Check your internet connection.</li><li>Check that you did not misspell your email.</li><li>Check that your inbox space is not running out or other inbox settings related issues.</li></ul></p><p class="firebaseui-text">If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+nn('<a class="firebaseui-link firebaseui-id-resend-email-link" href="javascript:void(0)">Resend</a>')+'</div><div class="firebaseui-form-actions">'+Iu({label:on("Back")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(t)}function ol(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-confirmation"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Confirm email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Confirm your email to complete sign in</p><div class="firebaseui-relative-wrapper">'+vu(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu(null)+yu(null)+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(t)}function al(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-different-device-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">New device or browser detected</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try opening the link using the same device or browser where you started the sign-in process.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu({label:on("Dismiss")})+"</div></div></div>";return nn(t)}function sl(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-anonymous-user-mismatch"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Session ended</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">The session associated with this sign-in request has either expired or was cleared.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu({label:on("Dismiss")})+"</div></div></div>";return nn(t)}function ul(t,e,n){return e="",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+(t="You\u2019ve already used <strong>"+Ye(t.email)+"</strong> to sign in. Enter your password for that account.")+"</p>"+Eu()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Cu()+'</div><div class="firebaseui-form-actions">'+bu()+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function ll(t,e,n){var r=t.email;return e="",t=on(t=""+Nu(t)),e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text firebaseui-text-justify">'+(r="You\u2019ve already used <strong>"+Ye(r)+"</strong>. You can connect your <strong>"+Ye(t)+"</strong> account with <strong>"+Ye(r)+"</strong> by signing in with email link below.")+'<p class="firebaseui-text firebaseui-text-justify">'+(t="For this flow to successfully connect your "+Ye(t)+" account with this email, you have to open the link on the same device or browser.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+bu()+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function cl(t,e,n){e="";var r=""+Nu(t);return e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking-different-device"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text firebaseui-text-justify">'+(t="You originally intended to connect <strong>"+Ye(r=on(r))+"</strong> to your email account but have opened the link on a different device where you are not signed in.")+'</p><p class="firebaseui-text firebaseui-text-justify">'+(r="If you still want to connect your <strong>"+Ye(r)+"</strong> account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+_u()+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function hl(t,e,n){var r=t.email;return e="",t=on(t=""+Nu(t)),e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-federated-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+(r="You\u2019ve already used <strong>"+Ye(r)+"</strong>. Sign in with "+Ye(t)+" to continue.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+yu({label:on("Sign in with "+t)})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function fl(t,e,n){return e="",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unsupported-provider"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="To continue sign in with <strong>"+Ye(t.email)+"</strong> on this device, you have to recover the password.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu(null)+yu({label:on("Recover password")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function dl(t){var e="";return e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Reset your password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">for <strong>'+Ye(t.email)+"</strong></p>"+Su(function(t){function e(){}var n={label:on("New password")};for(var r in e.prototype=t,t=new e,n)t[r]=n[r];return t}(t))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+wu()+"</div></div></form></div>",nn(e)}function pl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Password changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new password</p></div><div class="firebaseui-card-actions">'+((t=t||{}).T?'<div class="firebaseui-form-actions">'+_u()+"</div>":"")+"</div></div>",nn(t)}function ml(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try resetting your password again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to reset your password has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((t=t||{}).T?'<div class="firebaseui-form-actions">'+yu(null)+"</div>":"")+"</div></div>",nn(t)}function gl(t){var e=t.T,n="";return n+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Updated email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="Your sign-in email address has been changed back to <strong>"+Ye(t.email)+"</strong>.")+'</p><p class="firebaseui-text">If you didn\u2019t ask to change your sign-in email, it\u2019s possible someone is trying to access your account and
1you should <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">change your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(e?'<div class="firebaseui-form-actions">'+yu(null)+"</div>":"")+"</div></form></div>",nn(n)}function vl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Unable to update your email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">There was a problem changing your sign-in email back.</p><p class="firebaseui-text">If you try again and still can\u2019t reset your email, try asking your administrator for help.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).T?'<div class="firebaseui-form-actions">'+yu(null)+"</div>":"")+"</div></div>",nn(t)}function yl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new account</p></div><div class="firebaseui-card-actions">'+((t=t||{}).T?'<div class="firebaseui-form-actions">'+_u()+"</div>":"")+"</div></div>",nn(t)}function bl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try verifying your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify your email has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((t=t||{}).T?'<div class="firebaseui-form-actions">'+yu(null)+"</div>":"")+"</div></div>",nn(t)}function wl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unrecoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+Ye(t.errorMessage)+"</p></div></div>",nn(t)}function _l(t,e,n){var r=t.Fb;return e="",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-mismatch"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">'+(t="Continue with "+Ye(t.Ub)+"?")+'</h2><p class="firebaseui-text">'+(r="You originally wanted to sign in with "+Ye(r))+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu(null)+yu({label:on("Continue")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form></div>",nn(e)}function Sl(t,e,n){var r='<div class="firebaseui-container firebaseui-page-provider-sign-in firebaseui-id-page-provider-sign-in firebaseui-use-spinner"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-idp-list">';e=(t=t.Hb).length;for(var i=0;i<e;i++){var o={ma:t[i]},a=n,s=(o=o||{}).ma,u=o,l="";switch((u=u||{}).ma.providerId){case"google.com":l+="firebaseui-idp-google";break;case"github.com":l+="firebaseui-idp-github";break;case"facebook.com":l+="firebaseui-idp-facebook";break;case"twitter.com":l+="firebaseui-idp-twitter";break;case"phone":l+="firebaseui-idp-phone";break;case"anonymous":l+="firebaseui-idp-anonymous";break;case"password":l+="firebaseui-idp-password";break;default:l+="firebaseui-idp-generic"}u='<button class="firebaseui-idp-button mdl-button mdl-js-button mdl-button--raised '+sn(en(l))+' firebaseui-id-idp-button" data-provider-id="'+sn(s.providerId)+'" style="background-color:',null!=(l=s.ob)&&l.ca===Ge?l=l.content:null==l?l="":l instanceof Ht?l instanceof Ht&&l.constructor===Ht&&l.f===Gt?l=l.a:(P("expected object of type SafeStyle, got '"+l+"' of type "+d(l)),l="type_error:SafeStyle"):(l=String(l),mn.test(l)||(P("Bad value `%s` for |filterCssValue",[l]),l="zSoyz")),u=u+sn(l)+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="';var c="";if((l=(l=(l=o)||{}).ma).fb)c+=un(l.fb);else switch(l.providerId){case"google.com":c+=un(a.yb);break;case"github.com":c+=un(a.wb);break;case"facebook.com":c+=un(a.tb);break;case"twitter.com":c+=un(a.Sb);break;case"phone":c+=un(a.Gb);break;case"anonymous":c+=un(a.nb);break;default:c+=un(a.Eb)}a=u+sn(un(a=rn(c)))+'"></span>',a+="password"==s.providerId?'<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with email</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Email</span>':"phone"==s.providerId?'<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with phone</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Phone</span>':"anonymous"==s.providerId?'<span class="firebaseui-idp-text firebaseui-idp-text-long">Continue as guest</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Guest</span>':'<span class="firebaseui-idp-text firebaseui-idp-text-long">'+(s="Sign in with "+Ye(Nu(o)))+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+Ye(Nu(o))+"</span>",r+='<li class="firebaseui-list-item">'+(o=nn(a+"</button>"))+"</li>"}return r+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+Tu(n)+"</div></div>",nn(r)}function El(t,e,n){var r,i=(t=t||{}).sb,o=t.Pa;return e=t.ga,t='<div class="firebaseui-phone-number"><button class="firebaseui-id-country-selector firebaseui-country-selector mdl-button mdl-js-button"><span class="firebaseui-flag firebaseui-country-selector-flag firebaseui-id-country-selector-flag"></span><span class="firebaseui-id-country-selector-code"></span></button><div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label firebaseui-textfield firebaseui-phone-input-wrapper"><label class="mdl-textfield__label firebaseui-label" for="phoneNumber">Phone number</label><input type="tel" name="phoneNumber" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-number" value="'+sn(null!=(t=(t=t||{}).va)?t:"")+'"></div></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-phone-number-error firebaseui-id-phone-number-error"></p></div>',r=(t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-start"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Enter your phone number</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+nn(t))+(r=i?nn('<div class="firebaseui-recaptcha-wrapper"><div class="firebaseui-recaptcha-container"></div><div class="firebaseui-error-wrapper firebaseui-recaptcha-error-wrapper"><p class="firebaseui-error firebaseui-hidden firebaseui-id-recaptcha-error"></p></div></div>
1'):"")+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(o?Iu(null):"")+yu({label:on("Verify")})+'</div></div><div class="firebaseui-card-footer">',e?(e='<p class="firebaseui-tos firebaseui-phone-tos">',n=nn((e=n.H&&n.G?e+'By tapping Verify, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>. An SMS may be sent. Message & data rates may apply.':e+"By tapping Verify, an SMS may be sent. Message & data rates may apply.")+"</p>")):n=nn('<p class="firebaseui-tos firebaseui-phone-sms-notice">By tapping Verify, an SMS may be sent. Message & data rates may apply.</p>')+ku(n),nn(r+n+"</div></form></div>")}function Cl(t,e,n){var r="";return t='Enter the 6-digit code we sent to <a class="firebaseui-link firebaseui-change-phone-number-link firebaseui-id-change-phone-number-link" href="javascript:void(0)">‎'+Ye(e=(t=t||{}).phoneNumber)+"</a>",Ye(e),e=r,n='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-finish"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Verify your phone number</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+"</p>"+(r=nn('<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="phoneConfirmationCode">6-digit code</label><input type="number" name="phoneConfirmationCode" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-confirmation-code"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-phone-confirmation-code-error"></p></div>'))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Iu(null)+yu({label:on("Continue")})+'</div></div><div class="firebaseui-card-footer">'+ku(n)+"</div></form>",t=nn('<div class="firebaseui-resend-container"><span class="firebaseui-id-resend-countdown"></span><a href="javascript:void(0)" class="firebaseui-id-resend-link firebaseui-hidden firebaseui-link">Resend</a></div>'),nn(e+(n+t+"</div>"))}function Il(){return su(this,"firebaseui-id-submit")}function kl(){return su(this,"firebaseui-id-secondary-link")}function Tl(t,e){du(this,Il.call(this),function(e){t(e)});var n=kl.call(this);n&&e&&du(this,n,function(t){e(t)})}function Ol(){return su(this,"firebaseui-id-password")}function Al(){return su(this,"firebaseui-id-password-error")}function xl(){var t=Ol.call(this),e=Al.call(this);hu(this,t,function(){gu(e)&&(cu(t,!0),pu(e))})}function Dl(){var t=Ol.call(this),e=Al.call(this);return Ts(t)?(cu(t,!0),pu(e),e=!0):(cu(t,!1),mu(e,en("Enter your password").toString()),e=!1),e?Ts(t):null}function Pl(t,e,n,r,i,o){$u.call(this,ul,{email:t},o,"passwordLinking",{H:r,G:i}),this.a=e,this.L=n}A(Gu,ii),A($u,au),(t=$u.prototype).eb=function(){var t=We(this.$a,this.Za,this.Z,this.w);ju(t),this.j=t},t.u=function(){if($u.o.u.call(this),bo(Ku(this),new Gu("pageEnter",Ku(this),{pageId:this.Ya})),this.Wa()&&this.Z.H){var t=this.Z.H;du(this,this.Wa(),function(){t()})}if(this.Ua()&&this.Z.G){var e=this.Z.G;du(this,this.Ua(),function(){e()})}},t.ua=function(){bo(Ku(this),new Gu("pageExit",Ku(this),{pageId:this.Ya})),$u.o.ua.call(this)},t.l=function(){window.clearTimeout(this.ea),this.Za=this.$a=this.ea=null,this.Aa=!1,this.v=null,Ru(this.N()),$u.o.l.call(this)},t.M=function(t,e,n,r){function i(){if(o.O)return null;o.Aa=!1,window.clearTimeout(o.ea),o.ea=null,o.v&&(Ru(o.v),se(o.v),o.v=null)}var o=this;return o.Aa?null:(function(t){t.Aa=!0;var e=Cs(t.N(),"firebaseui-use-spinner");t.ea=window.setTimeout(function(){t.N()&&null===t.v&&(t.v=We(Pu,{Tb:e},null,t.w),t.N().appendChild(t.v),ju(t.v))},500)}(o),t.apply(null,e).then(n,r).then(i,i))},I($u.prototype,{f:function(t){qu.call(this);var e=We(Ou,{message:t},null,this.w);this.N().appendChild(e),du(this,zu.call(this),function(){se(e)})},ic:qu,lc:Bu,kc:zu,W:function(t,e){t=We(xu,{Ga:t,message:e},null,this.w),Fu.call(this,t)},h:Vu,pb:Uu,nc:function(){return su(this,"firebaseui-tos")},Wa:function(){return su(this,"firebaseui-tos-link")},Ua:function(){return su(this,"firebaseui-pp-link")},oc:function(){return su(this,"firebaseui-tos-list")}}),Ju.B="firebaseui.auth.soy2.page.signIn",Xu.B="firebaseui.auth.soy2.page.passwordSignIn",Yu.B="firebaseui.auth.soy2.page.passwordSignUp",Zu.B="firebaseui.auth.soy2.page.passwordRecovery",tl.B="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",el.B="firebaseui.auth.soy2.page.callback",nl.B="firebaseui.auth.soy2.page.blank",rl.B="firebaseui.auth.soy2.page.emailLinkSignInSent",il.B="firebaseui.auth.soy2.page.emailNotReceived",ol.B="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",al.B="firebaseui.auth.soy2.page.differentDeviceError",sl.B="firebaseui.auth.soy2.page.anonymousUserMismatch",ul.B="firebaseui.auth.soy2.page.passwordLinking",ll.B="firebaseui.auth.soy2.page.emailLinkSignInLinking",cl.B="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",hl.B="firebaseui.auth.soy2.page.federatedLinking",fl.B="firebaseui.auth.soy2.page.unsupportedProvider",dl.B="firebaseui.auth.soy2.page.passwordReset",pl.B="firebaseui.auth.soy2.page.passwordResetSuccess",ml.B="firebaseui.auth.soy2.page.passwordResetFailure",gl.B="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",vl.B="firebaseui.auth.soy2.page.emailChangeRevokeFailure",yl.B="firebaseui.auth.soy2.page.emailVerificationSuccess",bl.B="firebaseui.auth.soy2.page.emailVerificationFailure",wl.B="firebaseui.auth.soy2.page.unrecoverableError",_l.B="firebaseui.auth.soy2.page.emailMismatch",Sl.B="firebaseui.auth.soy2.page.providerSignIn",El.B="firebaseui.auth.soy2.page.phoneSignInStart",Cl.B="firebaseui.auth.soy2.page.phoneSignInFinish",A(Pl,$u),Pl.prototype.u=function(){this.R(),this.P(this.a,this.L),Qu(this,this.i(),this.a),this.i().focus(),Pl.o.u.call(this)},Pl.prototype.l=function(){this.a=null,Pl.o.l.call(this)},Pl.prototype.J=function(){return Ts(su(this,"firebaseui-id-email"))},I(Pl.prototype,{i:Ol,D:Al,R:xl,A:Dl,$:Il,ba:kl,P:Tl});var Nl=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function jl(){return su(this,"firebaseui-id-email")}function Rl(){return su(this,"firebaseui-id-email-error")}function Ml(t){var e=jl.call(this),n=Rl.call(this);hu(this,e,function(){gu(n)&&(cu(e,!0),pu(n))}),t&&fu(this,e,function(){t()})}function Ll(){return $(Ts(jl.call(this))||"")}function Fl(){var t=jl.call(this),e=Rl.call(this),n=Ts(t)||"";return n?Nl.test(n)?(cu(t,!0),pu(e),e=!0):(cu(t,!1),mu(e,en("That email address isn't correct").toString()),e=!1):(cu(t,!1),mu(e,en("Enter your email address to continue").toString()),e=!1),e?$(Ts(t)):null}function Vl(t,e,n,r,i,o,a){$u.call(this,Xu,{email:n,ga:!!o},a,"passwordSignIn",{H:r,G:i}),this.a=t,this.L=e}function Ul(t,e,n,r,i,o){$u.call(this,t,e,r,i||"notice",o),this.a=n||null}function ql(t,e,n,r,i){Ul.call(this,tl,{email:t,T:!!e},e,i,"passwordRecoveryEmailSent",{H:n,G:r})}function Bl(t,e){Ul.call(this,yl,{T:!!t},t,e,"emailVerificationSuccess")}function zl(t,e){Ul.call(this,bl,{T:!!t},t,e,"emailVerificationFailure")}function Hl(t,e){Ul.call(this,pl,{T:!!t},t,e,"passwordResetSuccess")}function Gl(t,e){Ul.call(this,ml,{T:!!t},t,e,"passwordResetFailure")}function $l(t,e){Ul.call(this,vl,{T:!!t},t,e,"emailChangeRevokeFailure")}function Kl(t,e){Ul.call(this,wl,{errorMessage:t},void 0,e,"unrecoverableError")}A(Vl,$u),Vl.prototype.u=function(){this.R(),this.$(),this.ba(this.a,this.L),Wu(this,this.s(),this.i()),Qu(this,this.i(),this.a),Ts(this.s())?this.i().focus():this.s().focus(),Vl.o.u.call(this)},Vl.prototype.l=function(){this.L=this.a=null,Vl.o.l.call(this)},I(Vl.prototype,{s:jl,U:Rl,R:Ml,P:Ll,J:Fl,i:Ol,D:Al,$:xl,A:Dl,sa:Il,ra:kl,ba:Tl}),A(Ul,$u),Ul.prototype.u=function(){this.a&&(this.s(this.a),this.i().focus()),Ul.o.u.call(this)},Ul.prototype.l=function(){this.a=null,Ul.o.l.call(this)},I(Ul.prototype,{i:Il,A:kl,s:Tl}),A(ql,Ul),A(Bl,Ul),A(zl,Ul),A(Hl,Ul),A(Gl,Ul),A($l,Ul),A(Kl,Ul);var Wl=!1,Ql=null;function Jl(t,e){Wl=!!e,Ql||("undefined"==typeof accountchooser&&function(){var t=window.navigator&&window.navigator.userAgent;if(t){var e;if(e=t.match(ds)){var n=new _s(e[3]||e[1]);return!(0<=t.indexOf("Opera Mini"))&&(0<=t.indexOf("Opera Mobi")?0<=t.indexOf("Android")&&Ss(n,"10.1"):Ss(n,"8.0"))}if(e=t.match(fs))return Ss(new _s(e[1]),"2.0");if(e=t.match(ps))return Ss(new _s(e[1]),"6.0");if(e=t.match(ms))return n=new _s(e[6]),t=e[3]&&new _s(e[3]),e=e[5]&&new _s(e[5],"_"),(!(!t||!Ss(t,"6.0"))||!(!e||!Ss(e,"10.5.6")))&&Ss(n,"3.0");if(e=t.match(vs))return Ss(new _s(e[1]),"3.0");if(e=t.match(ys))return Ss(new _s(e[1],"_"),"4.0");
1if(e=t.match(bs))return Ss(new _s(e[1]),"4.7");if(e=t.match(ws))return n=new _s(e[1]),t=new _s(e[2]),Ss(n,"7.0")&&Ss(t,"7.0");if(e=t.match(hs))return n=new _s(e[1]),t=new _s(e[2]),Ss(n,"7.0")&&Ss(t,"6.0");if(t.match(gs))return!1}return!0}()?(e=Lt(Dt(new xt(Nt,"//www.gstatic.com/accountchooser/client.js"))),Ql=Ur(Fr(Po(e)),function(){})):Ql=Fr()),Ql.then(t,t)}function Xl(t,e){(t=so(t=Th(t)).accountChooserInvoked||null)?t(e):e()}function Yl(t,e,n){(t=so(t=Th(t)).accountChooserResult||null)?t(e,n):n()}function Zl(t,e,n,r){function i(){var e=t();e&&(e=ro(Th(e)))&&e()}!function(t,e,n,r){ts||(t={callbacks:{empty:t,select:function(t,r){t&&t.account&&e?e(zo(t.account)):n&&n(!es(r))},store:t,update:t},language:"en",providers:void 0,ui:r},"undefined"!=typeof accountchooser&&accountchooser.Api&&accountchooser.Api.init?ts=accountchooser.Api.init(t):(ts=new rs(t),function(){var t=ts;v(t.a.callbacks.empty)&&t.a.callbacks.empty()}()))}(function(){var o=t();o&&function(t,e,n,r,i){r?(cs("callback",t,e),Wl&&n()):Xl(t,function(){Za(wh(t)),ns(function(r){Ha(La,wh(t)),Yl(t,r?"empty":"unavailable",function(){cs("signIn",t,e),(r||Wl)&&n()})},Qa(wh(t)),i)})}(o,e,i,n,r)},function(n){var r=t();r&&function(t,e,n,r){function i(t){t=rc(t),sc(e,n,void 0,t),r()}Yl(e,"accountSelected",function(){Wa(!1,wh(e));var o=oc(e);Ih(e,yh(e).fetchSignInMethodsForEmail(t.a).then(function(i){lc(e,n,i,t.a,t.h||void 0,void 0,o),r()},i))})}(n,r,e,i)},function(n){var r=t();r&&function(t,e,n,r){Yl(e,t?"addAccount":"unavailable",function(){cs("signIn",e,n),(t||Wl)&&r()})}(n,r,e,i)},t()&&function(t){return t.a.get("acUiConfig")||null}(Th(t())))}function tc(t,e,n,r){function i(n){if(!n.name||"cancel"!=n.name){t:{var r=n.message;try{var i=((JSON.parse(r).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(i&&i.length){var o=!0;break t}}catch(a){}o=!1}if(o)n=Ku(e),e.m(),sc(t,n,void 0,en("Your sign-in session has expired. Please try again.").toString());else{if(o=n&&n.message||"",n.code){if("auth/email-already-in-use"==n.code||"auth/credential-already-in-use"==n.code)return;o=rc(n)}e.f(o)}}}if(kh(t),r)return ec(t,n),Fr();if(!n.credential)throw Error("No credential found!");if(!(r=yh(t).currentUser||n.user))throw Error("User not logged in.");r=new Bo(r.email,r.displayName,r.photoURL,"password"==n.credential.providerId?null:n.credential.providerId),null!=za(Va,wh(t))&&!za(Va,wh(t))||function(t,e){var n=Qa(e),r=F(n,function(e){return e.a==t.a&&(e.f||null)==(t.f||null)});-1<r&&q(n,r),n.unshift(t),Ga(Ua,M(n,function(t){return t.na()}),e)}(r,wh(t)),Ha(Va,wh(t));try{var o=function(t,e){return Oh(t),Eh(t,function(n){if(t.h&&!t.h.isAnonymous&&zi(Th(t))&&!yh(t).currentUser)return xh(t).then(function(){return"password"==e.credential.providerId&&(e.credential=null),e});if(n)return xh(t).then(function(){return n.linkAndRetrieveDataWithCredential(e.credential)}).then(function(t){return e.user=t.user,e.credential=t.credential,e.operationType=t.operationType,e.additionalUserInfo=t.additionalUserInfo,e},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return Dh(t,n,e.credential)});if(!e.user)throw Error('Internal error: An incompatible or outdated version of "firebase.js" may be used.');return xh(t).then(function(){return bh(t).updateCurrentUser(e.user)}).then(function(){return e.user=bh(t).currentUser,e.operationType="signIn",e.credential&&e.credential.providerId&&"password"==e.credential.providerId&&(e.credential=null),e})})}(t,n)}catch(a){return hr(a.code||a.message,a),e.f(a.code||a.message),Fr()}return n=o.then(function(e){ec(t,e)},i).then(void 0,i),Ih(t,o),Fr(n)}function ec(t,e){if(!e.user)throw Error("No user found");var n=oo(Th(t));if(io(Th(t))&&n&&mr("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),n){n=oo(Th(t));var r=$a(wh(t))||void 0;Ha(Fa,wh(t));var i=!1;xi()?(n&&!n(e,r)||(i=!0,window.opener.location.assign(Vt(qt(nc(t,r))))),n||window.close()):n&&!n(e,r)||(i=!0,Ai(nc(t,r))),i||t.reset()}else{n=e.user,e=e.credential,r=io(Th(t)),i=$a(wh(t))||void 0,Ha(Fa,wh(t));var o=!1;xi()?(r&&!r(n,e,i)||(o=!0,window.opener.location.assign(Vt(qt(nc(t,i))))),r||window.close()):r&&!r(n,e,i)||(o=!0,Ai(nc(t,i))),o||t.reset()}}function nc(t,e){if(!(t=e||Th(t).a.get("signInSuccessUrl")))throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return t}function rc(t){var e="";switch(t.code){case"auth/email-already-in-use":e+="The email address is already used by another account";break;case"auth/requires-recent-login":e+=Sn();break;case"auth/too-many-requests":e+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":e+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":e+="That email address doesn't match an existing account";break;case"auth/user-token-expired":e+=Sn();break;case"auth/weak-password":e+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":e+="The email and password you entered don't match";break;case"auth/network-request-failed":e+="A network error has occurred";break;case"auth/invalid-phone-number":e+=bn();break;case"auth/invalid-verification-code":e+=en("Wrong code. Try again.");break;case"auth/code-expired":e+="This code is no longer valid";break;case"auth/expired-action-code":e+="This code has expired.";break;
1case"auth/invalid-action-code":e+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(e=en(e).toString())return e;try{return JSON.parse(t.message),hr("Internal error: "+t.message,void 0),wn().toString()}catch(Jt){return t.message}}function ic(t,e,n,r){function o(){Za(wh(t)),Ih(t,e.M(E(t.Qb,t),[l],function(){if("file:"===(window.location&&window.location.protocol))return Ih(t,ph(t).then(function(n){e.m(),Ha(La,wh(t)),cs("callback",t,u,Fr(n))},a))},s))}function a(n){if(Ha(La,wh(t)),!n.name||"cancel"!=n.name)switch(n.code){case"auth/popup-blocked":o();break;case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":case"auth/credential-already-in-use":break;case"auth/network-request-failed":case"auth/too-many-requests":case"auth/user-cancelled":e.f(rc(n));break;default:e.m(),cs("callback",t,u,Vr(n))}}function s(n){Ha(La,wh(t)),n.name&&"cancel"==n.name||(hr("signInWithRedirect: "+n.code,void 0),n=rc(n),e.f(n))}var u=Ku(e),l=function(t,e,n){var r=Hn[e]&&i.auth[Hn[e]]?new i.auth[Hn[e]]:0==e.indexOf("saml.")?new i.auth.SAMLAuthProvider(e):new i.auth.OAuthProvider(e);if(!r)throw Error("Invalid Firebase Auth provider!");var o=Qi(Th(t),e);if(r.addScope)for(var a=0;a<o.length;a++)r.addScope(o[a]);return o=Ji(Th(t),e)||{},n&&(t=e==i.auth.GoogleAuthProvider.PROVIDER_ID?"login_hint":(t=Ki(Th(t),e))&&t.Db)&&(o[t]=n),r.setCustomParameters&&r.setCustomParameters(o),r}(t,n,r);"redirect"==function(t){for(var e in t=t.a.get("signInFlow"),Li)if(Li[e]==t)return Li[e];return"redirect"}(Th(t))?o():Ih(t,function(t,e){return Oh(t),Eh(t,function(n){return n&&!Ja(wh(t))?n.linkWithPopup(e).then(function(t){return t},function(e){if(e&&"auth/email-already-in-use"==e.code&&e.email&&e.credential)throw e;return Dh(t,e)}):yh(t).signInWithPopup(e)})}(t,l).then(function(n){e.m(),cs("callback",t,u,Fr(n))},a))}function oc(t){return 1==(t=$i(Th(t))).length&&t[0]==i.auth.EmailAuthProvider.PROVIDER_ID}function ac(t){return 1==(t=$i(Th(t))).length&&t[0]==i.auth.PhoneAuthProvider.PROVIDER_ID}function sc(t,e,n,r){oc(t)?r?cs("signIn",t,e,n,r):hc(t,e,n):t&&ac(t)&&!r?cs("phoneSignInStart",t,e):cs("providerSignIn",t,e,r)}function uc(t,e,n,r){var i=Ku(e);Ih(t,e.M(E(yh(t).fetchSignInMethodsForEmail,yh(t)),[n],function(o){Wa(uo(Th(t))==Ri,wh(t)),e.m(),lc(t,i,o,n,void 0,r)},function(t){t=rc(t),e.f(t)}))}function lc(t,e,n,r,o,a,s){n.length||no(Th(t))?!n.length&&no(Th(t))?cs("sendEmailLinkForSignIn",t,e,r,function(){cs("signIn",t,e)}):V(n,i.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?cs("passwordSignIn",t,e,r,s):1==n.length&&n[0]===i.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?cs("sendEmailLinkForSignIn",t,e,r,function(){cs("signIn",t,e)}):(n=Bn(n,$i(Th(t))))?(Ya(new Qo(r),wh(t)),cs("federatedSignIn",t,e,r,n,a)):cs("unsupportedProvider",t,e,r):cs("passwordSignUp",t,e,r,o,void 0,s)}function cc(t,e,n,r,i,o){var a=Ku(e);Ih(t,e.M(E(t.vb,t),[n,o],function(){e.m(),cs("emailLinkSignInSent",t,a,n,r,o)},i))}function hc(t,e,n){uo(Th(t))==Ri?Jl(function(){ts?Xl(t,function(){Za(wh(t)),ns(function(r){Ha(La,wh(t)),Yl(t,r?"empty":"unavailable",function(){cs("signIn",t,e,n)})},Qa(wh(t)),qi(Th(t)))}):(Oh(t),Zl(vh,e,!1,qi(Th(t))))},!1):(Wl=!1,Xl(t,function(){Yl(t,"unavailable",function(){cs("signIn",t,e,n)})}))}function fc(t){var e=Ni();return(e=_e(e,t=On(Th(t).a,"queryParameterForSignInSuccessUrl")))?Vt(qt(e)):null}function dc(){return _e(Ni(),"oobCode")}function pc(){var t=_e(Ni(),"continueUrl");return t?function(){Ai(t)}:null}function mc(t,e){$u.call(this,sl,void 0,e,"anonymousUserMismatch"),this.a=t}function gc(t){$u.call(this,el,void 0,t,"callback")}function vc(t,e,n){if(n.user){var r={user:n.user,credential:n.credential,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},i=Ja(wh(t)),o=i&&i.f;if(o&&!function(t,e){if(e==t.email)return!0;if(t.providerData)for(var n=0;n<t.providerData.length;n++)if(e==t.providerData[n].email)return!0;return!1}(n.user,o))!function(t,e,n){var r=Ku(e);Ih(t,xh(t).then(function(){e.m(),cs("emailMismatch",t,r,n)},function(t){t.name&&"cancel"==t.name||(t=rc(t.code),e.f(t))}))}(t,e,r);else{var a=i&&i.a;a?Ih(t,n.user.linkAndRetrieveDataWithCredential(a).then(function(n){yc(t,e,r={user:n.user,credential:a,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})},function(n){bc(t,e,n)}
1)):yc(t,e,r)}}else n=Ku(e),e.m(),Xa(wh(t)),sc(t,n)}function yc(t,e,n){Xa(wh(t)),tc(t,e,n)}function bc(t,e,n){var r=Ku(e);Xa(wh(t)),n=rc(n),e.m(),sc(t,r,void 0,n)}function wc(t,e,n,r){var o=Ku(e);Ih(t,yh(t).fetchSignInMethodsForEmail(n).then(function(a){e.m(),a.length?V(a,i.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?cs("passwordLinking",t,o,n):1==a.length&&a[0]===i.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?cs("emailLinkSignInLinking",t,o,n):(a=Bn(a,$i(Th(t))))?cs("federatedLinking",t,o,n,a,r):(Xa(wh(t)),cs("unsupportedProvider",t,o,n)):(Xa(wh(t)),cs("passwordRecovery",t,o,n,!1,_n().toString()))},function(n){bc(t,e,n)}))}function _c(t,e){$u.call(this,al,void 0,e,"differentDeviceError"),this.a=t}function Sc(t,e,n,r){$u.call(this,gl,{email:t,T:!!n},r,"emailChangeRevoke"),this.i=e,this.a=n||null}function Ec(){return su(this,"firebaseui-id-new-password")}function Cc(){return su(this,"firebaseui-id-password-toggle")}function Ic(){this.La=!this.La;var t=Cc.call(this),e=Ec.call(this);this.La?(e.type="text",Is(t,"firebaseui-input-toggle-off"),ks(t,"firebaseui-input-toggle-on")):(e.type="password",Is(t,"firebaseui-input-toggle-on"),ks(t,"firebaseui-input-toggle-off")),e.focus()}function kc(){return su(this,"firebaseui-id-new-password-error")}function Tc(){this.La=!1;var t=Ec.call(this);t.type="password";var e=kc.call(this);hu(this,t,function(){gu(e)&&(cu(t,!0),pu(e))});var n=Cc.call(this);Is(n,"firebaseui-input-toggle-on"),ks(n,"firebaseui-input-toggle-off"),function(t,e,n){ni(t,C(ri,e=new Ms(e))),qs(uu(t),e,"focusin",n)}(this,t,function(){Is(n,"firebaseui-input-toggle-focus"),ks(n,"firebaseui-input-toggle-blur")}),function(t,e,n){ni(t,C(ri,e=new Ms(e))),qs(uu(t),e,"focusout",n)}(this,t,function(){Is(n,"firebaseui-input-toggle-blur"),ks(n,"firebaseui-input-toggle-focus")}),du(this,n,E(Ic,this))}function Oc(){var t=Ec.call(this),e=kc.call(this);return Ts(t)?(cu(t,!0),pu(e),e=!0):(cu(t,!1),mu(e,en("Enter your password").toString()),e=!1),e?Ts(t):null}function Ac(t,e,n){$u.call(this,dl,{email:t},n,"passwordReset"),this.a=e}function xc(t,e,n,r){"auth/weak-password"==(r&&r.code)?(t=rc(r),cu(n.i(),!1),mu(n.A(),t),n.i().focus()):(n&&n.m(),(n=new Gl).render(e),mh(t,n))}function Dc(t,e){try{var n="number"==typeof t.selectionStart}catch(r){n=!1}n?(t.selectionStart=e,t.selectionEnd=e):mt&&!Ot("9")&&("textarea"==t.type&&(e=t.value.substring(0,e).replace(/(\r\n|\r|\n)/g,"\n").length),(t=t.createTextRange()).collapse(!0),t.move("character",e),t.select())}function Pc(t,e,n,r,i,o){$u.call(this,ol,{email:n},o,"emailLinkSignInConfirmation",{H:r,G:i}),this.i=t,this.s=e}function Nc(t,e,n,r,i){$u.call(this,cl,{ma:t},i,"emailLinkSignInLinkingDifferentDevice",{H:n,G:r}),this.a=e}function jc(t){$u.call(this,nl,void 0,t,"blank")}function Rc(t,e,n,r,o){var a=new jc,s=new lo(n),u=s.a.a.get(co.Va)||"",l=s.a.a.get(co.Ma)||"",c="1"===s.a.a.get(co.Ka),h=ho(s),f=s.a.a.get(co.PROVIDER_ID)||null,d=!za(qa,wh(t)),p=r||function(t,e){var n=null;if(e=za(qa,e))try{var r=ya(t,e),i=JSON.parse(r);n=i&&i.email||null}catch(a){}return n}(l,wh(t)),m=(r=function(t,e){var n=null;if(e=za(Ba,e))try{var r=ya(t,e);n=JSON.parse(r)}catch(o){}return Jo(n||null)}(l,wh(t)))&&r.a;f&&m&&m.providerId!==f&&(m=null),a.render(e),mh(t,a),Ih(t,a.M(function(){var e=Fr(null);e=h&&d||d&&c?Vr(Error("anonymous-user-not-found")):function(t,e){var n=ho(new lo(e));return n?(e=new Dr(function(e,r){var i=bh(t).onAuthStateChanged(function(t){i(),t&&t.isAnonymous&&t.uid===n?e(t):r(t&&t.isAnonymous&&t.uid!==n?Error("anonymous-user-mismatch"):Error("anonymous-user-not-found"))});Ih(t,i)}),Ih(t,e),e):Fr(null)}(t,n).then(function(t){if(f&&!m)throw Error("pending-credential-not-found");return t});var r=null;return e.then(function(e){return r=e,o?null:yh(t).checkActionCode(u)}).then(function(){return r})},[],function(r){p?function(t,e,n,r,o,a){var s=Ku(e);e.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",en("Signing in...").toString());var u=null;o=(a?function(t,e,n,r,o){Oh(t);var a=o||null,s=i.auth.EmailAuthProvider.credentialWithLink(n,r);return n=a?yh(t).signInWithEmailLink(n,r).then(function(t){return t.user.linkAndRetrieveDataWithCredential(a)}).then(function(){return xh(t)}).then(function(){return Dh(t,{code:"auth/email-already-in-use"},a)}):yh(t).fetchSignInMethodsForEmail(n).then(function(n){return n.length?Dh(t,{code:"auth/email-already-in-use"},s):e.linkAndRetrieveDataWithCredential(s)}),Ih(t,n),n}(t,a,n,r,o):function(t,e,n,r){Oh(t);var i,o=r||null;return e=yh(t).signInWithEmailLink(e,n).then(function(t){if(i={user:t.user,credential:null,operationType:t.operationType,additionalUserInfo:t.additionalUserInfo},o)return t.user.linkAndRetrieveDataWithCredential(o).then(function(t){i={user:t.user,credential:o,operationType:i.operationType,additionalUserInfo:t.additionalUserInfo}})}).then(function(){xh(t)}).then(function(){return bh(t).updateCurrentUser(i.user)}).then(function(){return i.user=bh(t).currentUser,i}),Ih(t,e),e}(t,n,r,o)).then(function(n){Ha(Ba,wh(t)),Ha(qa,wh(t)),e.h(),e.W("firebaseui-icon-done",en("Signed in!").toString()),u=setTimeout(function(){e.h(),tc(t,e,n,!0)},1e3),Ih(t,function(){e&&(e.h(),e.m()),clearTimeout(u)})},function(i){if(e.h(),e.m(),!i.name||"cancel"!=i.name){var o=rc(i);"auth/email-already-in-use"==i.code||"auth/credential-already-in-use"==i.code?(Ha(Ba,wh(t)),Ha(qa,wh(t))):"auth/invalid-email"==i.code?(o=en("The email provided does not match the current sign-in session.").toString(),cs("emailLinkConfirmation",t,s,r,Mc,null,o)):sc(t,s,n,o)}}),Ih(t,o)}(t,a,p,n,m,r):c?(a.m(),cs("differentDeviceError",t,e)):(a.m(),cs("emailLinkConfirmation",t,e,n,Mc))},function(r){var i=void 0;if(!r||!r.name||"cancel"!=r.name)switch(a.m(),r&&r.message){case"anonymous-user-not-found":cs("differentDeviceError",t,e);break;case"anonymous-user-mismatch":cs("anonymousUserMismatch",t,e);break;
1case"pending-credential-not-found":cs("emailLinkNewDeviceLinking",t,e,n,Lc);break;default:r&&(i=rc(r)),sc(t,e,void 0,i)}}))}function Mc(t,e,n,r){Rc(t,e,r,n,!0)}function Lc(t,e,n){Rc(t,e,n)}function Fc(t,e,n,r,i,o){$u.call(this,ll,{email:t,ma:e},o,"emailLinkSignInLinking",{H:r,G:i}),this.a=n}function Vc(t,e,n,r,i,o){$u.call(this,rl,{email:t},o,"emailLinkSignInSent",{H:r,G:i}),this.s=e,this.a=n}function Uc(t,e,n,r,i,o,a){$u.call(this,_l,{Ub:t,Fb:e},a,"emailMismatch",{H:i,G:o}),this.s=n,this.i=r}function qc(t,e,n,r,i){$u.call(this,il,void 0,i,"emailNotReceived",{H:n,G:r}),this.i=t,this.a=e}function Bc(t,e,n,r,i,o){$u.call(this,hl,{email:t,ma:e},o,"federatedLinking",{H:r,G:i}),this.a=n}function zc(t,e,n,r,i,o){$u.call(this,Zu,{email:n,Na:!!e},o,"passwordRecovery",{H:r,G:i}),this.a=t,this.s=e}function Hc(){return su(this,"firebaseui-id-name")}function Gc(){return su(this,"firebaseui-id-name-error")}function $c(t,e,n,r,i,o,a,s,u){$u.call(this,Yu,{email:r,Ib:t,name:i,Na:!!n,ga:!!s},u,"passwordSignUp",{H:o,G:a}),this.a=e,this.J=n,this.D=t}function Kc(){return su(this,"firebaseui-id-phone-confirmation-code")}function Wc(){return su(this,"firebaseui-id-phone-confirmation-code-error")}function Qc(){return su(this,"firebaseui-id-resend-countdown")}function Jc(t,e,n,r,i,o,a,s,u){$u.call(this,Cl,{phoneNumber:i},u,"phoneSignInFinish",{H:a,G:s}),this.Qa=o,this.i=new Ls(1e3),this.D=o,this.P=t,this.a=e,this.J=n,this.L=r}A(mc,$u),mc.prototype.u=function(){var t=this;du(this,this.i(),function(){t.a()}),this.i().focus(),mc.o.u.call(this)},mc.prototype.l=function(){this.a=null,mc.o.l.call(this)},I(mc.prototype,{i:kl}),ls.anonymousUserMismatch=function(t,e){var n=new mc(function(){n.m(),sc(t,e)});n.render(e),mh(t,n)},A(gc,$u),gc.prototype.M=function(t,e,n,r){return t.apply(null,e).then(n,r)},ls.callback=function(t,e,n){var r=new gc;r.render(e),mh(t,r),e=n||ph(t),Ih(t,e.then(function(e){vc(t,r,e)},function(e){if(e&&("auth/account-exists-with-different-credential"==e.code||"auth/email-already-in-use"==e.code)&&e.email&&e.credential)Ya(new Qo(e.email,e.credential),wh(t)),wc(t,r,e.email);else if(e&&"auth/user-cancelled"==e.code){var n=Ja(wh(t)),i=rc(e);n&&n.a?wc(t,r,n.f,i):n?uc(t,r,n.f,i):bc(t,r,e)}else e&&"auth/credential-already-in-use"==e.code||(e&&"auth/operation-not-supported-in-this-environment"==e.code&&oc(t)?vc(t,r,{user:null,credential:null}):bc(t,r,e))}))},A(_c,$u),_c.prototype.u=function(){var t=this;du(this,this.i(),function(){t.a()}),this.i().focus(),_c.o.u.call(this)},_c.prototype.l=function(){this.a=null,_c.o.l.call(this)},I(_c.prototype,{i:kl}),ls.differentDeviceError=function(t,e){var n=new _c(function(){n.m(),sc(t,e)});n.render(e),mh(t,n)},A(Sc,$u),Sc.prototype.u=function(){var t=this;du(this,su(this,"firebaseui-id-reset-password-link"),function(){t.i()}),this.a&&(this.A(this.a),this.s().focus()),Sc.o.u.call(this)},Sc.prototype.l=function(){this.i=this.a=null,Sc.o.l.call(this)},I(Sc.prototype,{s:Il,D:kl,A:Tl}),A(Ac,$u),Ac.prototype.u=function(){this.J(),this.D(this.a),Qu(this,this.i(),this.a),this.i().focus(),Ac.o.u.call(this)},Ac.prototype.l=function(){this.a=null,Ac.o.l.call(this)},I(Ac.prototype,{i:Ec,A:kc,L:Cc,J:Tc,s:Oc,R:Il,P:kl,D:Tl}),ls.passwordReset=function(t,e,n,r){Ih(t,yh(t).verifyPasswordResetCode(n).then(function(i){var o=new Ac(i,function(){!function(t,e,n,r,i){var o=n.s();o&&Ih(t,n.M(E(yh(t).confirmPasswordReset,yh(t)),[r,o],function(){n.m();var r=new Hl(i);r.render(e),mh(t,r)},function(r){xc(t,e,n,r)}))}(t,e,o,n,r)});o.render(e),mh(t,o)},function(){xc(t,e)}))},ls.emailChangeRevocation=function(t,e,n){var r=null;Ih(t,yh(t).checkActionCode(n).then(function(e){return r=e.data.email,yh(t).applyActionCode(n)}).then(function(){!function(t,e,n){var r=new Sc(n,function(){Ih(t,r.M(E(yh(t).sendPasswordResetEmail,yh(t)),[n],function(){r.m(),(r=new ql(n,void 0,Zi(Th(t)),to(Th(t)))).render(e),mh(t,r)},function(){r.f(en("Unable to send password reset code to specified email").toString())}))});r.render(e),mh(t,r)}(t,e,r)},function(){var n=new $l;n.render(e),mh(t,n)}))},ls.emailVerification=function(t,e,n,r){Ih(t,yh(t).applyActionCode(n).then(function(){var n=new Bl(r);n.render(e),mh(t,n)},function(){var n=new zl;n.render(e),mh(t,n)}))},A(Pc,$u),Pc.prototype.u=function(){this.D(this.i),this.J(this.i,this.s),this.a().focus(),Dc(this.a(),(this.a().value||"").length),Pc.o.u.call(this)},Pc.prototype.l=function(){this.s=this.i=null,Pc.o.l.call(this)},I(Pc.prototype,{a:jl,P:Rl,D:Ml,L:Ll,A:Fl,U:Il,R:kl,J:Tl}),ls.emailLinkConfirmation=function(t,e,n,r,i,o){var a=new Pc(function(){var i=a.A();i?(a.m(),r(t,e,i,n)):a.a().focus()},function(){a.m(),sc(t,e,i||void 0)},i||void 0,Zi(Th(t)),to(Th(t)));a.render(e),mh(t,a),o&&a.f(o)},A(Nc,$u),Nc.prototype.u=function(){this.s(this.a),this.i().focus(),Nc.o.u.call(this)},Nc.prototype.l=function(){this.a=null,Nc.o.l.call(this)},I(Nc.prototype,{i:Il,s:Tl}),ls.emailLinkNewDeviceLinking=function(t,e,n,r){var i=new lo(n);if(n=i.a.a.get(co.PROVIDER_ID)||null,fo(i,null),n){var o=new Nc(Ki(Th(t),n),function(){o.m(),r(t,e,i.toString())},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o)}else sc(t,e)},A(jc,$u),ls.emailLinkSignInCallback=Rc,A(Fc,$u),Fc.prototype.u=function(){this.s(this.a),this.i().focus(),Fc.o.u.call(this)},Fc.prototype.l=function(){this.a=null,Fc.o.l.call(this)},I(Fc.prototype,{i:Il,s:Tl}),ls.emailLinkSignInLinking=function(t,e,n){var r=Ja(wh(t));if(Xa(wh(t)),r){var i=r.a.providerId,o=new Fc(n,Ki(Th(t),i),function(){!function(t,e,n,r){var i=Ku(e);cc(t,e,n,function(){sc(t,i,n)},function(r){if(!r.name||"cancel"!=r.name){var o=rc(r);r&&"auth/network-request-failed"==r.code?e.f(o):(e.m(),sc(t,i,n,o))}},r)}(t,o,n,r)},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o)}else sc(t,e)},A(Vc,$u),Vc.prototype.u=function(){var t=this;du(this,this.i(),function(){t.a()}),du(this,su(this,"firebaseui-id-trouble-getting-email-link"),function(){t.s()}),this.i().focus(),Vc.o.u.call(this)},Vc.prototype.l=function(){this.a=this.s=null,Vc.o.l.call(this)},I(Vc.prototype,{i:kl}),ls.emailLinkSignInSent=function(t,e,n,r,i){var o=new Vc(n,function(){o.m(),cs("emailN
1otReceived",t,e,n,r,i)},function(){o.m(),r()},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o)},A(Uc,$u),Uc.prototype.u=function(){this.D(this.s,this.i),this.A().focus(),Uc.o.u.call(this)},Uc.prototype.l=function(){this.i=this.a=null,Uc.o.l.call(this)},I(Uc.prototype,{A:Il,J:kl,D:Tl}),ls.emailMismatch=function(t,e,n){var r=Ja(wh(t));if(r){var i=new Uc(n.user.email,r.f,function(){var e=i;Xa(wh(t)),tc(t,e,n)},function(){var e=n.credential.providerId,o=Ku(i);i.m(),cs(r.a?"federatedLinking":"federatedSignIn",t,o,r.f,e)},Zi(Th(t)),to(Th(t)));i.render(e),mh(t,i)}else sc(t,e)},A(qc,$u),qc.prototype.u=function(){var t=this;du(this,this.s(),function(){t.a()}),du(this,this.ya(),function(){t.i()}),this.s().focus(),qc.o.u.call(this)},qc.prototype.ya=function(){return su(this,"firebaseui-id-resend-email-link")},qc.prototype.l=function(){this.a=this.i=null,qc.o.l.call(this)},I(qc.prototype,{s:kl}),ls.emailNotReceived=function(t,e,n,r,i){var o=new qc(function(){cc(t,o,n,r,function(t){t=rc(t),o.f(t)},i)},function(){o.m(),sc(t,e,n)},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o)},A(Bc,$u),Bc.prototype.u=function(){this.s(this.a),this.i().focus(),Bc.o.u.call(this)},Bc.prototype.l=function(){this.a=null,Bc.o.l.call(this)},I(Bc.prototype,{i:Il,s:Tl}),ls.federatedLinking=function(t,e,n,r,i){var o=Ja(wh(t));if(o&&o.a){var a=new Bc(n,Ki(Th(t),r),function(){ic(t,a,r,n)},Zi(Th(t)),to(Th(t)));a.render(e),mh(t,a),i&&a.f(i)}else sc(t,e)},ls.federatedSignIn=function(t,e,n,r,i){var o=new Bc(n,Ki(Th(t),r),function(){ic(t,o,r,n)},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o),i&&o.f(i)},ls.passwordLinking=function(t,e,n){var r=Ja(wh(t));Xa(wh(t));var i=r&&r.a;if(i){var o=new Pl(n,function(){!function(t,e,n,r){var i=e.A();i?Ih(t,e.M(E(t.Kb,t),[n,i],function(n){return n=n.user.linkAndRetrieveDataWithCredential(r).then(function(n){return tc(t,e,{user:n.user,credential:r,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})}),Ih(t,n),n},function(t){if(!t.name||"cancel"!=t.name)switch(t.code){case"auth/wrong-password":cu(e.i(),!1),mu(e.D(),rc(t));break;case"auth/too-many-requests":e.f(rc(t));break;default:hr("signInWithEmailAndPassword: "+t.message,void 0),e.f(rc(t))}})):e.i().focus()}(t,o,n,i)},function(){o.m(),cs("passwordRecovery",t,e,n)},Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o)}else sc(t,e)},A(zc,$u),zc.prototype.u=function(){this.J(),this.L(this.a,this.s),Ts(this.i())||this.i().focus(),Qu(this,this.i(),this.a),zc.o.u.call(this)},zc.prototype.l=function(){this.s=this.a=null,zc.o.l.call(this)},I(zc.prototype,{i:jl,D:Rl,J:Ml,P:Ll,A:Fl,U:Il,R:kl,L:Tl}),ls.passwordRecovery=function(t,e,n,r,i){var o=new zc(function(){!function(t,e){var n=e.A();if(n){var r=Ku(e);Ih(t,e.M(E(yh(t).sendPasswordResetEmail,yh(t)),[n],function(){e.m();var i=new ql(n,function(){i.m(),sc(t,r)},Zi(Th(t)),to(Th(t)));i.render(r),mh(t,i)},function(t){cu(e.i(),!1),mu(e.D(),rc(t))}))}else e.i().focus()}(t,o)},r?void 0:function(){o.m(),sc(t,e)},n,Zi(Th(t)),to(Th(t)));o.render(e),mh(t,o),i&&o.f(i)},ls.passwordSignIn=function(t,e,n,r){var o=new Vl(function(){!function(t,e){var n=e.J(),r=e.A();if(n)if(r){var o=i.auth.EmailAuthProvider.credential(n,r);Ih(t,e.M(E(t.Ob,t),[n,r],function(n){return tc(t,e,{user:n.user,credential:o,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})},function(t){if(!t.name||"cancel"!=t.name)switch(t.code){case"auth/email-already-in-use":break;case"auth/email-exists":cu(e.s(),!1),mu(e.U(),rc(t));break;case"auth/too-many-requests":case"auth/wrong-password":cu(e.i(),!1),mu(e.D(),rc(t));break;default:hr("verifyPassword: "+t.message,void 0),e.f(rc(t))}}))}else e.i().focus();else e.s().focus()}(t,o)},function(){var n=o.P();o.m(),cs("passwordRecovery",t,e,n)},n,Zi(Th(t)),to(Th(t)),r);o.render(e),mh(t,o)},A($c,$u),$c.prototype.u=function(){this.$(),this.D&&this.Qa(),this.sa(),this.ra(this.a,this.J),this.D?(Wu(this,this.i(),this.A()),Wu(this,this.A(),this.s())):Wu(this,this.i(),this.s()),this.a&&Qu(this,this.s(),this.a),Ts(this.i())?this.D&&!Ts(this.A())?this.A().focus():this.s().focus():this.i().focus(),$c.o.u.call(this)},$c.prototype.l=function(){this.J=this.a=null,$c.o.l.call(this)},I($c.prototype,{i:jl,U:Rl,$:Ml,bb:Ll,P:Fl,A:Hc,mc:Gc,Qa:function(){var t=Hc.call(this),e=Gc.call(this);hu(this,t,function(){gu(e)&&(cu(t,!0),pu(e))})},L:function(){var t=Hc.call(this),e=Gc.call(this),n=Ts(t);return cu(t,n=!/^[\s\xa0]*$/.test(null==n?"":String(n))),n?(pu(e),e=!0):(mu(e,en("Enter your account name").toString()),e=!1),e?$(Ts(t)):null},s:Ec,ba:kc,zb:Cc,sa:Tc,R:Oc,jc:Il,Bb:kl,ra:Tl}),ls.passwordSignUp=function(t,e,n,r,o,a){var s=new $c(eo(Th(t)),function(){!function(t,e){var n=eo(Th(t)),r=e.P(),o=null;n&&(o=e.L());var a=e.R();if(r){if(n){if(!o)return void e.A().focus();o=K(o)}if(a){var s=i.auth.EmailAuthProvider.credential(r,a);Ih(t,e.M(E(t.Lb,t),[r,a],function(r){var i={user:r.user,credential:s,operationType:r.operationType,additionalUserInfo:r.additionalUserInfo};return n?(r=r.user.updateProfile({displayName:o}).then(function(){return tc(t,e,i)}),Ih(t,r),r):tc(t,e,i)},function(n){if(!n.name||"cancel"!=n.name){var i=rc(n);switch(n.code){case"auth/email-already-in-use":return function(t,e,n,r){function i(){var t=rc(r);cu(e.i(),!1),mu(e.U(),t),e.i().focus()}var o=yh(t).fetchSignInMethodsForEmail(n).then(function(r){r.length?
1i():(r=Ku(e),e.m(),cs("passwordRecovery",t,r,n,!1,_n().toString()))},function(){i()});return Ih(t,o),o}(t,e,r,n);case"auth/too-many-requests":i=en("Too many account requests are coming from your IP address. Try again in a few minutes.").toString();case"auth/operation-not-allowed":case"auth/weak-password":cu(e.s(),!1),mu(e.ba(),i);break;default:hr(n="setAccountInfo: "+wa(n),void 0),e.f(i)}}}))}else e.s().focus()}else e.i().focus()}(t,s)},o?void 0:function(){s.m(),sc(t,e)},n,r,Zi(Th(t)),to(Th(t)),a);s.render(e),mh(t,s)},A(Jc,$u),Jc.prototype.u=function(){var t=this;this.R(this.Qa),gi(this.i,"tick",this.A,!1,this),this.i.start(),du(this,su(this,"firebaseui-id-change-phone-number-link"),function(){t.P()}),du(this,this.ya(),function(){t.L()}),this.sa(this.a),this.ba(this.a,this.J),this.s().focus(),Jc.o.u.call(this)},Jc.prototype.l=function(){this.L=this.J=this.a=this.P=null,Fs(this.i),bi(this.i,"tick",this.A),this.i=null,Jc.o.l.call(this)},Jc.prototype.A=function(){--this.D,0<this.D?this.R(this.D):(Fs(this.i),bi(this.i,"tick",this.A),this.ra(),this.bb())},I(Jc.prototype,{s:Kc,$:Wc,sa:function(t){var e=Kc.call(this),n=Wc.call(this);hu(this,e,function(){gu(n)&&(cu(e,!0),pu(n))}),t&&fu(this,e,function(){t()})},U:function(){var t=$(Ts(Kc.call(this))||"");return/^\d{6}$/.test(t)?t:null},rb:Qc,R:function(t){le(Qc.call(this),en("Resend code in "+(9<t?"0:":"0:0")+t).toString())},ra:function(){pu(this.rb())},ya:function(){return su(this,"firebaseui-id-resend-link")},bb:function(){mu(this.ya())},Bb:Il,zb:kl,ba:Tl}),ls.phoneSignInFinish=function(t,e,n,r,i,o){var a=new Jc(function(){a.m(),cs("phoneSignInStart",t,e,n)},function(){!function(t,e,n,r){function i(t){e.s().focus(),cu(e.s(),!1),mu(e.$(),t)}var o=e.U();o?(e.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",en("Verifying...").toString()),Ih(t,e.M(E(r.confirm,r),[o],function(n){e.h(),e.W("firebaseui-icon-done",en("Verified!").toString());var r=setTimeout(function(){e.h(),e.m();var r={user:bh(t).currentUser,credential:null,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo};tc(t,e,r,!0)},1e3);Ih(t,function(){e&&e.h(),clearTimeout(r)})},function(r){if(r.name&&"cancel"==r.name)e.h();else{var o=rc(r);switch(r.code){case"auth/credential-already-in-use":e.h();break;case"auth/code-expired":r=Ku(e),e.h(),e.m(),cs("phoneSignInStart",t,r,n,o);break;case"auth/missing-verification-code":case"auth/invalid-verification-code":e.h(),i(o);break;default:e.h(),e.f(o)}}}))):i(en("Wrong code. Try again.").toString())}(t,a,n,i)},function(){a.m(),sc(t,e)},function(){a.m(),cs("phoneSignInStart",t,e,n)},qn(n),r,Zi(Th(t)),to(Th(t)));a.render(e),mh(t,a),o&&a.f(o)};var Xc=!(mt||ot("Safari")&&!(ct()||ot("Coast")||ot("Opera")||ot("Edge")||ot("Silk")||ot("Android")));function Yc(t,e){return/-[a-z]/.test(e)?null:Xc&&t.dataset?!ot("Android")||ct()||ot("Firefox")||ot("Opera")||ot("Silk")||e in t.dataset?void 0===(t=t.dataset[e])?null:t:null:t.getAttribute("data-"+String(e).replace(/([A-Z])/g,"-$1").toLowerCase())}function Zc(){return su(this,"firebaseui-id-phone-number")}function th(){return su(this,"firebaseui-id-country-selector")}function eh(){return su(this,"firebaseui-id-phone-number-error")}function nh(t,e){return!(!(t=Nn(t))||!V(e,t))}function rh(t){return"firebaseui-flag-"+t.g}function ih(t,e,n){var r=Nn(t);r&&(n&&(e=Pn(e,n=$(Ts(Zc.call(this))||""))).length&&e[0].b!=r.b&&(n="+"+r.b+n.substr(e[0].b.length+1),Os(Zc.call(this),n)),e=Nn(this.wa),this.wa=t,t=su(this,"firebaseui-id-country-selector-flag"),e&&ks(t,rh(e)),Is(t,rh(r)),le(su(this,"firebaseui-id-country-selector-code"),"\u200e+"+r.b))}function oh(t,e,n,r,i,o,a,s,u,l){$u.call(this,El,{sb:e,va:u||null,Pa:!!n,ga:!!o},l,"phoneSignInStart",{H:r,G:i}),this.J=s||null,this.L=e,this.a=t,this.A=n||null,this.$=a||null}function ah(t,e,n,r){try{var i=e.R(ss)}catch(o){return}i?os?(e.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",en("Verifying...").toString()),Ih(t,e.M(E(t.Pb,t),[qn(i),n],function(n){var r=Ku(e);e.W("firebaseui-icon-done",en("Code sent!").toString());var o=setTimeout(function(){e.h(),e.m(),cs("phoneSignInFinish",t,r,i,15,n)},1e3);Ih(t,function(){e&&e.h(),clearTimeout(o)})},function(t){if(e.h(),!t.name||"cancel"!=t.name){grecaptcha.reset(us),os=null;var n=t&&t.message||"";if(t.code)switch(t.code){case"auth/too-many-requests":n=en("This phone number has been used too many times").toString();break;case"auth/invalid-phone-number":case"auth/missing-phone-number":return e.K().focus(),void mu(e.D(),bn().toString());default:n=rc(t)}e.f(n)}}))):as?mu(e.s(),en("Solve the reCAPTCHA").toString()):!as&&r&&e.i().click():(e.K().focus(),mu(e.D(),bn().toString()))}function sh(t,e,n,r,i){$u.call(this,Sl,{Hb:e},i,"providerSignIn",{H:n,G:r}),this.a=t}function uh(t,e,n,r,i,o,a){$u.call(this,Ju,{email:n,Pa:!!e,ga:!!o},a,"signIn",{H:r,G:i}),this.a=t,this.s=e}function lh(t,e,n,r,i,o){$u.call(this,fl,{email:t},o,"unsupportedProvider",{H:r,G:i}),this.a=e,this.i=n}function ch(t,e){this.Z=!1;var n=dh(e);if(fh[n])throw Error('An AuthUI instance already exists for the key "'+n+'"');fh[n]=this,this.f=t,this.A=null,this.s=!1,hh(this.f),this.v=i.initializeApp({apiKey:t.app.options.apiKey,authDomain:t.app.options.authDomain},t.app.name+"-firebaseui-temp").auth(),hh(this.v),this.v.setPersistence&&this.v.setPersistence(i.auth.Auth.Persistence.SESSION),this.ea=e,this.W=new ji,this.a=this.K=this.i=this.F=null,this.j=[],this.Y=!1,this.O=Fo.Ra(),this.h=this.C=null,this.aa=this.w=!1}function hh(t){t&&t.INTERNAL&&t.INTERNAL.logFramework&&t.INTERNAL.logFramework("FirebaseUI-web")}A(oh,$u),oh.prototype.u=function(){this.ba(this.$,this.J),this.P(this.a,this.A||void 0),this.L||Wu(this,this.K(),this.i()),Qu(this,this.i(),this.a),this.K().focus(),Dc(this.K(),(this.K().value||"").length),oh.o.u.call(this)},oh.prototype.l=function(){this.A=this.a=null,oh.o.l.call(this)},I(oh.prototype,{pb:Uu,K:Zc,D:eh,ba:function(t,e,n){var r=this,i=Zc.call(this),o=th.call(this),a=eh.call(this),u=t||Fn,l=u.a;
1if(0==l.length)throw Error("No available countries provided.");(function(t,e){var n,r=t.a,i=nh("1-US-0",r);if(!(n=e&&nh(e,r)?e:i?"1-US-0":0<r.length?r[0].c:null))throw Error("No available default country");ih.call(this,n,t)}).call(r,u,e),du(this,o,function(){(function(t){var e=this;(function(t,e,n){t=We(Du,{items:t},null,this.w),Fu.call(this,t,!0,!0),n&&(n=function(t,e){t=(t||document).getElementsByTagName("BUTTON");for(var n=0;n<t.length;n++)if(Yc(t[n],"listboxid")===e)return t[n];return null}(t,n))&&(n.focus(),function(t,e){var n=(e=e||ae(document))||ae(document),r=nu(t),i=nu(n);if(!mt||9<=Number(kt)){a=tu(n,"borderLeftWidth");var o=tu(n,"borderRightWidth");u=tu(n,"borderTopWidth"),l=tu(n,"borderBottomWidth"),o=new Zs(parseFloat(u),parseFloat(o),parseFloat(l),parseFloat(a))}else{var a=iu(n,"borderLeft");o=iu(n,"borderRight");var u=iu(n,"borderTop"),l=iu(n,"borderBottom");o=new Zs(u,o,l,a)}n==ae(document)?(a=r.a-n.scrollLeft,r=r.f-n.scrollTop,!mt||10<=Number(kt)||(a+=o.left,r+=o.top)):(a=r.a-i.a-o.left,r=r.f-i.f-o.top),i=t.offsetWidth,o=t.offsetHeight,u=bt&&!i&&!o,t=s(i)&&!u||!t.getBoundingClientRect?new te(i,o):new te((t=eu(t)).right-t.left,t.bottom-t.top),i=n.clientHeight-t.height,o=n.scrollLeft,u=n.scrollTop,n=new Zt(o+=Math.min(a,Math.max(a-(n.clientWidth-t.width),0)),u+=Math.min(r,Math.max(r-i,0))),e.scrollLeft=n.a,e.scrollTop=n.f}(n,t)),du(this,t,function(t){(t=(t=ce(t.target,"firebaseui-id-list-box-dialog-button"))&&Yc(t,"listboxid"))&&(Vu(),e(t))})}).call(this,function(t){return M(t,function(t){return{id:t.c,Ga:"firebaseui-flag "+rh(t),label:t.name+" \u200e+"+t.b}})}(t.a),function(n){ih.call(e,n,t,!0),e.K().focus()},this.wa)}).call(r,u)}),hu(this,i,function(){gu(a)&&(cu(i,!0),pu(a));var t=$(Ts(i)||""),e=Nn(this.wa),n=Pn(u,t);t=nh("1-US-0",l),n.length&&n[0].b!=e.b&&ih.call(r,"1"==(e=n[0]).b&&t?"1-US-0":e.c,u)}),n&&fu(this,i,function(){n()})},R:function(t){var e=$(Ts(Zc.call(this))||""),n=(t=t||Fn).a,r=Pn(Fn,e);if(r.length&&!V(n,r[0]))throw Os(Zc.call(this)),Zc.call(this).focus(),mu(eh.call(this),en("The country code provided is not supported.").toString()),Error("The country code provided is not supported.");return n=Nn(this.wa),r.length&&r[0].b!=n.b&&ih.call(this,r[0].c,t),r.length&&(e=e.substr(r[0].b.length+1)),e?new Vn(this.wa,e):null},sa:th,U:function(){return su(this,"firebaseui-recaptcha-container")},s:function(){return su(this,"firebaseui-id-recaptcha-error")},i:Il,ra:kl,P:Tl}),ls.phoneSignInStart=function(t,e,n,r){var o=function(t){var e=null;if(j(Hi(t),function(t){t.provider==i.auth.PhoneAuthProvider.PROVIDER_ID&&y(t.recaptchaParameters)&&!m(t.recaptchaParameters)&&(e=st(t.recaptchaParameters))}),e){var n=[];j(Ui,function(t){void 0!==e[t]&&(n.push(t),delete e[t])}),n.length&&mr('The following provided "recaptchaParameters" keys are not allowed: '+n.join(", "))}return e}(Th(t))||{};os=null,as=!(o&&"invisible"===o.size);var a=ac(t),s=function(t){var e=(t=Gi(t,i.auth.PhoneAuthProvider.PROVIDER_ID))&&t.defaultCountry||null;e=e&&jn(e);var n=null;return t&&u(t.loginHint)&&(n=Un(t.loginHint)),e&&e[0]||n&&Nn(n.a)||null}(Th(t)),l=a?function(t){var e=null;return(t=Gi(t,i.auth.PhoneAuthProvider.PROVIDER_ID))&&u(t.loginHint)&&(e=Un(t.loginHint)),t&&t.defaultNationalNumber||e&&e.va||null}(Th(t)):null;s=n&&n.a||s&&s.c||null,n=n&&n.va||l,(l=Xi(Th(t)))&&Mn(l),ss=l?new Dn(Xi(Th(t))):Fn;var c=new oh(function(e){ah(t,c,h,!(!e||!e.keyCode))},as,a?null:function(){h.clear(),c.m(),sc(t,e)},Zi(Th(t)),to(Th(t)),a,ss,s,n);c.render(e),mh(t,c),r&&c.f(r),o.callback=function(e){c.s()&&pu(c.s()),os=e,as||ah(t,c,h)},o["expired-callback"]=function(){os=null};var h=new i.auth.RecaptchaVerifier(as?c.U():c.i(),o,bh(t).app);Ih(t,c.M(E(h.render,h),[],function(t){us=t},function(n){n.name&&"cancel"==n.name||(n=rc(n),c.m(),sc(t,e,void 0,n))}))},A(sh,$u),sh.prototype.u=function(){this.i(this.a),sh.o.u.call(this)},sh.prototype.l=function(){this.a=null,sh.o.l.call(this)},I(sh.prototype,{i:function(t){function e(e){t(e)}for(var n=this.j?ne("firebaseui-id-idp-button",this.j||this.w.a):[],r=0;r<n.length;r++){var i=n[r];du(this,i,C(e,Yc(i,"providerId")))}}}),ls.providerSignIn=function(t,e,n){var r=new sh(function(n){n==i.auth.EmailAuthProvider.PROVIDER_ID?(r.m(),hc(t,e)):n==i.auth.PhoneAuthProvider.PROVIDER_ID?(r.m(),cs("phoneSignInStart",t,e)):"anonymous"==n?function(t,e){Ih(t,e.M(E(t.Mb,t),[],function(n){return e.m(),tc(t,e,n,!0)},function(t){t.name&&"cancel"==t.name||(hr("ContinueAsGuest: "+t.code,void 0),t=rc(t),e.f(t))}))}(t,r):ic(t,r,n),Oh(t),t.O.cancel()},Wi(Th(t)),Zi(Th(t)),to(Th(t)));r.render(e),mh(t,r),n&&r.f(n),function(t){Oh(t);try{(function t(e,n,r){if(e.a&&n){var i=function(){e.h=!0;var i=Promise.resolve(null);return r||(i=e.a.retrieve(n).catch(function(t){if("userCanceled"===t.type||"illegalConcurrentRequest"===t.type)throw t;return null})),i.then(function(t){return t||e.a.hint(n)}
1).catch(function(i){if("userCanceled"===i.type)e.f=Promise.resolve();else if("illegalConcurrentRequest"===i.type)return e.cancel(),t(e,n,r);return null})};return e.f?e.f.then(i):i()}if(n)return i=Ur(Uo.Ra().load().then(function(){return e.a=a.googleyolo,t(e,n,r)}),function(){return null}),Promise.resolve(i);if("undefined"!=typeof Promise)return Promise.resolve(null);throw Error("One-Tap sign in not supported in the current browser!")})(t.O,function(t){var e=[],n=[];j(Hi(t),function(t){t.authMethod&&(e.push(t.authMethod),t.clientId&&n.push({uri:t.authMethod,clientId:t.clientId}))});var r=null;return"googleyolo"===uo(t)&&e.length&&(r={supportedIdTokenProviders:n,supportedAuthMethods:e}),r}(Th(t)),function(t){var e;return Oh(t),(e=t.Y)||(e=!(!(t=Ji(t=Th(t),i.auth.GoogleAuthProvider.PROVIDER_ID))||"select_account"!==t.prompt)),e}(t)).then(function(e){return!!t.a&&function(t,e,n){var r,o,a=function(t,e){var n=null;return j(Hi(t),function(t){t.authMethod===e&&(n=t.provider)}),n}(Th(t),n&&n.authMethod||null);return n&&n.idToken&&a===i.auth.GoogleAuthProvider.PROVIDER_ID?(Qi(Th(t),i.auth.GoogleAuthProvider.PROVIDER_ID).length?(ic(t,e,a,n.id),n=Fr(!0)):(r=i.auth.GoogleAuthProvider.credential(n.idToken),o=!1,r=e.M(E(t.Nb,t),[r],function(n){var r=Ku(e);e.m(),cs("callback",t,r,Fr(n)),o=!0},function(n){if(!(n.name&&"cancel"==n.name||n&&"auth/credential-already-in-use"==n.code))if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential){var r=Ku(e);e.m(),cs("callback",t,r,Vr(n))}else n=rc(n),e.f(n)}),Ih(t,r),n=r.then(function(){return o},function(){return!1})),n):(n&&e.f(en("The selected credential for the authentication provider is not supported!").toString()),Fr(!1))}(t,t.a,e)})}catch(e){}}(t)},ls.sendEmailLinkForSignIn=function(t,e,n,r){var i=new gc;i.render(e),mh(t,i),cc(t,i,n,r,function(r){i.m(),r=rc(r),cs("signIn",t,e,n,r)})},A(uh,$u),uh.prototype.u=function(){this.D(this.a),this.J(this.a,this.s||void 0),this.i().focus(),Dc(this.i(),(this.i().value||"").length),uh.o.u.call(this)},uh.prototype.l=function(){this.s=this.a=null,uh.o.l.call(this)},I(uh.prototype,{i:jl,P:Rl,D:Ml,L:Ll,A:Fl,U:Il,R:kl,J:Tl}),ls.signIn=function(t,e,n,r){var i=oc(t),o=new uh(function(){var e=o,n=e.A()||"";n&&uc(t,e,n)},i&&uo(Th(t))!=Ri?null:function(){o.m(),sc(t,e,n)},n,Zi(Th(t)),to(Th(t)),i);o.render(e),mh(t,o),r&&o.f(r)},A(lh,$u),lh.prototype.u=function(){this.A(this.a,this.i),this.s().focus(),lh.o.u.call(this)},lh.prototype.l=function(){this.i=this.a=null,lh.o.l.call(this)},I(lh.prototype,{s:Il,D:kl,A:Tl}),ls.unsupportedProvider=function(t,e,n){var r=new lh(n,function(){r.m(),cs("passwordRecovery",t,e,n)},function(){r.m(),sc(t,e,n)},Zi(Th(t)),to(Th(t)));r.render(e),mh(t,r)};var fh={};function dh(t){return t||"[DEFAULT]"}function ph(t){return Oh(t),t.i||(t.i=Eh(t,function(e){return e&&!Ja(wh(t))?Fr(bh(t).getRedirectResult().then(function(t){return t},function(e){if(e&&"auth/email-already-in-use"==e.code&&e.email&&e.credential)throw e;return Dh(t,e)})):Fr(yh(t).getRedirectResult().then(function(e){return zi(Th(t))&&!e.user&&t.h&&!t.h.isAnonymous?bh(t).getRedirectResult():e}))})),t.i}function mh(t,e){Oh(t),t.a=e}var gh=null;function vh(){return gh}function yh(t){return Oh(t),t.v}function bh(t){return Oh(t),t.f}function wh(t){return Oh(t),t.ea}function _h(t){return"signIn"===((t=new lo(t)).a.a.get(co.lb)||null)&&!!t.a.a.get(co.Va)}function Sh(t,e){var n=Pi(e);if(n.setAttribute("lang","en".replace(/_/g,"-")),gh){var r=gh;Oh(r),Ja(wh(r))&&mr("UI Widget is already rendered on the page and is pending some user interaction. Only one widget instance can be rendered per page. The previous instance has been automatically reset."),gh.reset()}gh=t,t.K=n,function(t,e){t.I=null,t.F=new _o(e),t.F.register(),gi(t.F,"pageEnter",function(e){if(t.I!=(e=e&&e.pageId)){var n=Th(t);(n=so(n).uiChanged||null)&&n(t.I,e),t.I=e}})}(t,n),Oa(new Aa)&&Oa(new xa)?function(t,e){var n=Pi(e);switch(function(t){var e=Ni();for(var n in e=_e(e,t=Yi(Th(t)))||"",Fi)if(Fi[n].toLowerCase()==e.toLowerCase())return Fi[n];return"callback"}(t)){case"callback":(e=fc(t))&&Ka(e,wh(t)),t.gb()?cs("callback",t,n):sc(t,n);break;case"resetPassword":cs("passwordReset",t,n,dc(),pc());break;
1case"recoverEmail":cs("emailChangeRevocation",t,n,dc());break;case"verifyEmail":cs("emailVerification",t,n,dc(),pc());break;case"signIn":cs("emailLinkSignInCallback",t,n,Ni()),Ah();break;case"select":if((e=fc(t))&&Ka(e,wh(t)),ts){sc(t,n);break}return void Jl(function(){Oh(t),Zl(vh,n,!0)},!0);default:throw Error("Unhandled widget operation.")}(e=ro(Th(t)))&&e()}(t,e):(e=Pi(e),(n=new Kl(en("The browser you are using does not support Web Storage. Please try again in a different browser.").toString())).render(e),mh(t,n)),Ha(La,wh(t))}function Eh(t,e){if(t.w)return e(Ch(t));if(Ih(t,function(){t.w=!1}),zi(Th(t))){var n=new Dr(function(n){Ih(t,t.f.onAuthStateChanged(function(r){t.h=r,t.w||(t.w=!0,n(e(Ch(t))))}))});return Ih(t,n),n}return t.w=!0,e(null)}function Ch(t){return Oh(t),zi(Th(t))&&t.h&&t.h.isAnonymous?t.h:null}function Ih(t,e){if(Oh(t),e){t.j.push(e);var n=function(){!function(t,e){!function(t,e){for(var n=u(t)?t.split(""):t,r=t.length-1;0<=r;--r)r in n&&e.call(void 0,n[r],r,t)}(t,function(n,r){e.call(void 0,n,r,t)&&q(t,r)})}(t.j,function(t){return t==e})};"function"!=typeof e&&e.then(n,n)}}function kh(t){void 0!==t.f.languageCode&&t.s&&(t.s=!1,t.f.languageCode=t.A)}function Th(t){return Oh(t),t.W}function Oh(t){if(t.Z)throw Error("AuthUI instance is deleted!")}function Ah(){var t=Ni();if(_h(t)){for(var e in t=new lo(t),co)co.hasOwnProperty(e)&&Ve(t.a.a,co[e]);e={state:"signIn",mode:"emailLink",operation:"clear"},a.history&&a.history.replaceState&&a.history.replaceState(e,a.document.title,t.toString())}}function xh(t){return Oh(t),yh(t).signOut()}function Dh(t,e,n){if(Oh(t),e&&e.code&&("auth/email-already-in-use"==e.code||"auth/credential-already-in-use"==e.code)){var r=ao(Th(t));return Fr().then(function(){return r(new En("anonymous-upgrade-merge-conflict",null,n||e.credential))}).then(function(){throw t.a&&(t.a.m(),t.a=null),e})}return Vr(e)}(t=ch.prototype).gb=function(){return Oh(this),"pending"===za(La,wh(this))||_h(Ni())},t.start=function(t,e){Oh(this);var n=this;void 0!==this.f.languageCode&&(this.A=this.f.languageCode);var r="en".replace(/_/g,"-");this.f.languageCode=r,this.v.languageCode=r,this.s=!0,this.cb(e);var i=a.document;this.C?this.C.then(function(){"complete"==i.readyState?Sh(n,t):yi(window,"load",function(){Sh(n,t)})}):"complete"==i.readyState?Sh(n,t):yi(window,"load",function(){Sh(n,t)})},t.disableAutoSignIn=function(){Oh(this),this.Y=!0},t.reset=function(){Oh(this);var t=this;this.K&&this.K.removeAttribute("lang"),this.F&&function(t){var e=wo(t.N());vo[e]&&vo[e].length&&(function(t,e){0<=(e=F(t,e,void 0))&&q(t,e)}(vo[e],function(e){return e==t}),vo[e].length||delete vo[e])}(this.F),kh(this),Ah(),Ha(La,wh(this)),Oh(this),this.O.cancel(),this.i=Fr({user:null,credential:null}),gh==this&&(gh=null),this.K=null;for(var e=0;e<this.j.length;e++)"function"==typeof this.j[e]?this.j[e]():this.j[e].cancel&&this.j[e].cancel();this.j=[],Xa(wh(this)),this.a&&(this.a.m(),this.a=null),this.I=null,this.v&&(this.C=xh(this).then(function(){t.C=null},function(){t.C=null}))},t.cb=function(t){Oh(this);var e,n=this.W;for(e in t)try{Tn(n.a,e,t[e])}catch(r){hr('Invalid config: "'+e+'"',void 0)}wt&&Tn(n.a,"popupMode",!1),Xi(n),!this.aa&&io(Th(this))&&(mr("signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead."),this.aa=!0)},t.Jb=function(){Oh(this);var t=Th(this),e=On(t.a,"widgetUrl"),n=Bi(t,e);Th(this).a.get("popupMode")?(n=n||"about:blank",(t={width:500,height:600,top:0<(t=(window.screen.availHeight-600)/2)?t:0,left:0<(e=(window.screen.availWidth-500)/2)?e:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1}).target=t.target||n.target||"google_popup",t.width=t.width||690,t.height=t.height||500,(t=Oi(n,t))&&t.focus()):Ai(n)},t.ub=function(){var t=this;return Oh(this),this.v.app.delete().then(function(){var e=dh(wh(t));delete fh[e],t.reset(),t.Z=!0})},t.vb=function(t,e){Oh(this);var n=this,r=function(){for(var t=32,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();if(!no(Th(this)))throw Error("Email link sign-in should be enabled to trigger email sending.");var o=function(t){if(no(t)){var e={url:Ni(),handleCodeInApp:!0};return(t=Gi(t,i.auth.EmailAuthProvider.PROVIDER_ID))&&"function"==typeof t.emailLinkSignIn&<(e,t.emailLinkSignIn()),e.url=Oe(Ni(),e.url).toString(),e}return null}(Th(this)),a=new lo(o.url);return function(t,e){r?t.a.a.set(co.Ma,r):Ve(t.a.a,co.Ma)}(a),e&&e.a&&(function(t,e,n){Ga(Ba,va(t,JSON.stringify(e.na())),n)}(r,e,wh(this)),fo(a,e.a.providerId)),function(t,e){null!==e?t.a.a.set(co.Ka,e?"1":"0"):Ve(t.a.a,co.Ka)}(a,function(t){return!(!(t=Gi(t,i.auth.EmailAuthProvider.PROVIDER_ID))||!t.forceSameDevice)}(Th(this))),Eh(this,function(e){return e&&((e=e.uid)?a.a.a.set(co.Ja,e):Ve(a.a.a,co.Ja)),o.url=a.toString(),yh(n).sendSignInLinkToEmail(t,o)}).then(function(){var e=wh(n),i={};i.email=t,Ga(qa,va(r,JSON.stringify(i)),e)},function(t){throw Ha(Ba,wh(n)),Ha(qa,wh(n)),t})},t.Ob=function(t,e){Oh(this);var n=this;return yh(this).signInWithEmailAndPassword(t,e).then(function(r){return Eh(n,function(o){return o?xh(n).then(function(){return Dh(n,{code:"auth/email-already-in-use"},i.auth.EmailAuthProvider.credential(t,e))}):r})})},t.Lb=function(t,e){Oh(this);var n=this;return Eh(this,function(r){if(r){var o=i.auth.EmailAuthProvider.credential(t,e);return r.linkAndRetrieveDataWithCredential(o)}return yh(n).createUserWithEmailAndPassword(t,e)})},t.Nb=function(t){Oh(this);var e=this;
1return Eh(this,function(n){return n?n.linkAndRetrieveDataWithCredential(t).then(function(t){return t},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return Dh(e,n,t)}):yh(e).signInAndRetrieveDataWithCredential(t)})},t.Qb=function(t){Oh(this);var e=this,n=this.i;return this.i=null,Eh(this,function(n){return n&&!Ja(wh(e))?n.linkWithRedirect(t):yh(e).signInWithRedirect(t)}).then(function(){},function(t){throw e.i=n,t})},t.Pb=function(t,e){Oh(this);var n=this;return Eh(this,function(r){return r?r.linkWithPhoneNumber(t,e).then(function(t){return new qo(t,function(t){if("auth/credential-already-in-use"==t.code)return Dh(n,t);throw t})}):bh(n).signInWithPhoneNumber(t,e).then(function(t){return new qo(t)})})},t.Mb=function(){return Oh(this),bh(this).signInAnonymously()},t.Kb=function(t,e){return Oh(this),yh(this).signInWithEmailAndPassword(t,e)},O("firebaseui.auth.AuthUI",ch),O("firebaseui.auth.AuthUI.getInstance",function(t){return t=dh(t),fh[t]?fh[t]:null}),O("firebaseui.auth.AuthUI.prototype.disableAutoSignIn",ch.prototype.disableAutoSignIn),O("firebaseui.auth.AuthUI.prototype.start",ch.prototype.start),O("firebaseui.auth.AuthUI.prototype.setConfig",ch.prototype.cb),O("firebaseui.auth.AuthUI.prototype.signIn",ch.prototype.Jb),O("firebaseui.auth.AuthUI.prototype.reset",ch.prototype.reset),O("firebaseui.auth.AuthUI.prototype.delete",ch.prototype.ub),O("firebaseui.auth.AuthUI.prototype.isPendingRedirect",ch.prototype.gb),O("firebaseui.auth.AuthUIError",En),O("firebaseui.auth.AuthUIError.prototype.toJSON",En.prototype.toJSON),O("firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM",Ri),O("firebaseui.auth.CredentialHelper.GOOGLE_YOLO","googleyolo"),O("firebaseui.auth.CredentialHelper.NONE","none"),O("firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID","anonymous")}(),"undefined"!=typeof window&&(window.dialogPolyfill=n("yXDX"))}(),t.exports=firebaseui},Wcq6:function(t,e,n){"use strict";n("lcbw");var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r;t.exports=i},XCog:function(t,e,n){var r=n("0Bu/");
1t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n,i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},XlPw:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("6blF");function i(t,e){return new r.a(e?function(n){return e.schedule(o,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function o(t){t.subscriber.error(t.error)}},YBFb:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r=n("AytR").a.VERSION,i=10},YCU0:function(t,e,n){"use strict";var r=n("ZrEc"),i={};i[n("aXXJ")("toStringTag")]="z",t.exports="[object z]"!==String(i)?function(){return"[object "+r(this)+"]"}:i.toString},YxH6:function(t,e,n){"use strict";var r,i,o,a=n("0idE"),s=n("wBs/"),u=n("57wU"),l=n("U5J1"),c=n("aXXJ")("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):h=!0),null==r&&(r={}),l||u(r,c)||s(r,c,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},ZPxF:function(t,e,n){n("S4gH")(n("ysHE").JSON,"JSON",!0)},ZYCi:function(t,e,n){"use strict";var r=n("mrSG"),i=n("Ip0R"),o=n("CcnG"),a=n("F/XL"),s=n("0/uQ"),u=n("26FU"),l=n("6blF");function c(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}c.prototype=Object.create(Error.prototype);var h=c,f=n("dzgT"),d=n("G5J1");function p(t){return new l.a(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(s.a)(n):Object(d.b)()).subscribe(e)})}var m=n("K9Ia"),g=n("67Y/"),v=n("Txjg"),y=n("VnD/"),b=n("FFOo");function w(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}w.prototype=Object.create(Error.prototype);var _=w;function S(t){return function(e){return 0===t?Object(d.b)():e.lift(new E(t))}}var E=function(){function t(t){if(this.total=t,this.total<0)throw new _}return t.prototype.call=function(t,e){return e.subscribe(new C(t,this.total))},t}(),C=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(b.a),I=n("xMyE"),k=function(t){return void 0===t&&(t=T),Object(I.a)({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function T(){return new h}var O=n("HJBe"),A=n("mChF");function x(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(y.a)(function(e,n){return t(e,n,r)}):A.a,S(1),n?Object(O.a)(e):k(function(){return new h}))}}var D=n("9Z1F");function P(t){return function(e){return 0===t?Object(d.b)():e.lift(new N(t))}}var N=function(){function t(t){if(this.total=t,this.total<0)throw new _}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.total))},t}(),j=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(b.a);function R(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(y.a)(function(e,n){return t(e,n,r)}):A.a,P(1),n?Object(O.a)(e):k(function(){return new h}))}}var M=n("psW0"),L=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.predicate,this.thisArg,this.source))},t}(),F=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(b.a),V=n("15JJ"),U=n("p0Sj"),q=n("dC0D"),B=n("Phjn"),z=n("y3By"),H=n("pugT"),G=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.callback))},t}(),$=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new H.a(n)),r}return r.__extends(e,t),e}(b.a),K=n("Zn8D"),W=n("ZYjt");n.d(e,"w",function(){return On}),n.d(e,"C",function(){return Fn}),n.d(e,"y",function(){return Pn}),n.d(e,"D",function(){return Vn}),n.d(e,"E",function(){return Un}),n.d(e,"z",function(){return jn}),n.d(e,"B",function(){return Ln}),n.d(e,"x",function(){return xn}),n.d(e,"A",function(){return Mn}),n.d(e,"F",function(){return kn}),n.d(e,"o",function(){return mn}),n.d(e,"p",function(){return gn}),n.d(e,"r",function(){return wn}),n.d(e,"d",function(){return X}),n.d(e,"e",function(){return J}),n.d(e,"m",function(){return on}),n.d(e,"n",function(){return pn}),n.d(e,"l",function(){return sn}),n.d(e,"j",function(){return Tn}),n.d(e,"k",function(){return qn}),n.d(e,"q",function(){return Dn}),n.d(e,"b",function(){return bn}),n.d(e,"f",function(){return Cn}),n.d(e,"h",function(){return En}),n.d(e,"i",function(){return Sn}),n.d(e,"s",function(){return In}),n.d(e,"a",function(){return re}),n.d(e,"g",function(){return dt}),n.d(e,"t",function(){return ln}),n.d(e,"c",function(){return Mt}),n.d(e,"u",function(){return Rt}),n.d(e,"v",function(){return ft});var Q=function(){return function(t,e){this.id=t,this.url=e}}(),J=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}
vendor: 15,940 bytes, line 1
1return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(Q),X=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(Q),Y=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(Q),Z=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(Q),tt=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Q),et=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Q),nt=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(Q),rt=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Q),it=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Q),ot=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),at=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),st=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ut=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),lt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ct=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ht=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),ft=function(){return function(){}}(),dt="primary",pt=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function mt(t){return new pt(t)}var gt="ngNavigationCancelingError";function vt(t){var e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var bt=function(){return function(t,e){this.routes=t,this.module=e}}();function wt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];_t(r,St(e,r))}}function _t(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==dt)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&wt(t.children,e)}function St(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function Et(t){var e=t.children&&t.children.map(Et),n=e?Object(r.__assign)({},t,{children:e}):Object(r.__assign)({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==dt&&(n.component=ft),n}function Ct(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function It(t){return Array.prototype.concat.apply([],t)}function kt(t){return t.length>0?t[t.length-1]:null}function Tt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ot(t){return Object(o.ub)(t)?t:Object(o.vb)(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function At(t,e,n){return n?function(t,e){return Ct(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Nt(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Nt(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Nt(n.segments,a)&&!!n.children[dt]&&e(n.children[dt],r,s)}(e,n,n.segments)}(t.root,e.root)}var xt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Lt.serialize(this)},t}(),Dt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Tt(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ft(this)},t}(),Pt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ht(this)},t}();function Nt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function jt(t,e){var n=[];return Tt(t.children,function(t,r){r===dt&&(n=n.concat(e(t,r)))}),Tt(t.children,function(t,r){r!==dt&&(n=n.concat(e(t,r)))}),n}var Rt=function(){return function(){}}(),Mt=function(){function t(){}return t.prototype.parse=function(t){var e=new Qt(t);return new xt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Ft(e);if(n){var r=e.children[dt]?t(e.children[dt],!1):"",i=[];return Tt(e.children,function(e,n){n!==dt&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=jt(e,function(n,r){return r===dt?[t(e.children[dt],!1)]:[r+":"+t(n,!1)]});return Ft(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Ut(t)+"="+Ut(e)}).join("&"):Ut(t)+"="+Ut(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Lt=new Mt;function Ft(t){return t.segments.map(function(t){return Ht(t)}).join("/")}function Vt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(t){return Vt(t).replace(/%3B/gi,";")}function qt(t){return Vt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(t){return decodeURIComponent(t)}function zt(t){return Bt(t.replace(/\+/g,"%20"))}function Ht(t){return""+qt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+qt(t)+"="+qt(e[t])}).join(""));var e}var Gt=/^[^\/()?;=#]+/;function $t(t){var e=t.match(Gt);return e?e[0]:""}var Kt=/^[^=?&#]+/,Wt=/^[^?&#]+/,Qt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[dt]=new Dt(t,e)),n},t.prototype.parseSegment=function(){var t=$t(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Pt(Bt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=$t(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=$t(this.remaining);r&&this.capture(n=r)}t[Bt(e)]=Bt(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Kt))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Wt);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=zt(n),a=zt(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=$t(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=dt);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[dt]:new Dt([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Jt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Xt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Xt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Yt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Yt(t,this._root).map(function(t){return t.value})},t}();function Xt(t,e){var n,i;if(t===e.value)return e;try{for(var o=Object(r.__values)(e.children),a=o.next();!a.done;a=o.next()){var s=Xt(t,a.value);if(s)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function Yt(t,e){var n,i;if(t===e.value)return[e];try{for(var o=Object(r.__values)(e.children),a=o.next();!a.done;a=o.next()){var s=Yt(t,a.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var Zt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function te(t){var e={};
1return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,se(r,e),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Jt);function ne(t,e){var n=function(t,e){var n=new oe([],{},{},"",{},dt,e,null,t.root,-1,{});return new ae("",new Zt(n,[]))}(t,e),r=new u.a([new Pt("",{})]),i=new u.a({}),o=new u.a({}),a=new u.a({}),s=new u.a(""),l=new re(r,i,a,s,o,dt,e,n.root);return l.snapshot=n.root,new ee(new Zt(l,[]),n)}var re=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)(function(t){return mt(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)(function(t){return mt(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function ie(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],a=n[i-1];
vendor: 9,572 bytes, line 1
1if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.__assign)({},t.params,e.params),data:Object(r.__assign)({},t.data,e.data),resolve:Object(r.__assign)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var oe=function(){function t(t,e,n,r,i,o,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=mt(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),ae=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,se(r,n),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return ue(this._root)},e}(Jt);function se(t,e){e.value._routerState=t,e.children.forEach(function(e){return se(t,e)})}function ue(t){var e=t.children.length>0?" { "+t.children.map(ue).join(", ")+" } ":"";return""+t.value+e}function le(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ct(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ct(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Ct(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Ct(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ce(t,e){var n,r;return Ct(t.params,e.params)&&Nt(n=t.url,r=e.url)&&n.every(function(t,e){return Ct(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||ce(t.parent,e.parent))}function he(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fe(t,e,n,r,i){var o={};return r&&Tt(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new xt(n.root===t?e:function t(e,n,r){var i={};return Tt(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)}),new Dt(e.segments,i)}(n.root,t,e),o,i)}var de=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&he(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==kt(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),pe=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function me(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[dt]:""+t}function ge(t,e,n){if(t||(t=new Dt([],{})),0===t.segments.length&&t.hasChildren())return ve(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=me(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!_e(s,u,a))return o;r+=2}else{if(!_e(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Dt(t.segments.slice(0,r.pathIndex),{});return o.children[dt]=new Dt(t.segments.slice(r.pathIndex),t.children),ve(o,0,i)}return r.match&&0===i.length?new Dt(t.segments,{}):r.match&&!t.hasChildren()?ye(t,e,n):r.match?ve(t,0,i):ye(t,e,n)}function ve(t,e,n){if(0===n.length)return new Dt(t.segments,{});var r=function(t){var e,n;return"object"!=typeof t[0]?((e={})[dt]=t,e):void 0===t[0].outlets?((n={})[dt]=t,n):t[0].outlets}(n),i={};return Tt(r,function(n,r){null!==n&&(i[r]=ge(t.children[r],e,n))}),Tt(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Dt(t.segments,i)}function ye(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=be(n[i].outlets);return new Dt(r,o)}if(0===i&&he(n[0]))r.push(new Pt(t.segments[e].path,n[0])),i++;else{var a=me(n[i]),s=i<n.length-1?n[i+1]:null;a&&s&&he(s)?(r.push(new Pt(a,we(s))),i+=2):(r.push(new Pt(a,{})),i++)}}return new Dt(r,{})}function be(t){var e={};return Tt(t,function(t,n){null!==t&&(e[n]=ye(new Dt([],{}),0,t))}),e}function we(t){var e={};return Tt(t,function(t,n){return e[n]=""+t}),e}function _e(t,e,n){return t==n.path&&Ct(e,n.parameters)}var Se=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),le(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=te(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),Tt(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=te(t),o=t.value.component?r.children:e;Tt(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=te(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new ct(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ut(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(le(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Ee(a.route)}else{var s=function(t){for(var e=r.snapshot.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),u=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function Ee(t){le(t.value),t.children.forEach(Ee)}function Ce(t){return"function"==typeof t}function Ie(t){return t instanceof xt}var ke=function(){return function(t){this.segmentGroup=t||null}}(),Te=function(){return function(t){this.urlTree=t}}();function Oe(t){return new l.a(function(e){return e.error(new ke(t))})}function Ae(t){return new l.a(function(e){return e.error(new Te(t))})}function xe(t){return new l.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var De=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(o.x)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,dt).pipe(Object(g.a)(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Object(D.a)(function(e){if(e instanceof Te)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ke)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,dt).pipe(Object(g.a)(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Object(D.a)(function(t){if(t instanceof ke)throw e.noMatchError(t);throw t}))}
1,t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new Dt([],((r={})[dt]=t,r)):t;return new xt(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(g.a)(function(t){return new Dt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(a.a)({});var o=[],s=[],u={};return Tt(n,function(n,i){var a,l,c=(a=i,l=n,r.expandSegmentGroup(t,e,l,a)).pipe(Object(g.a)(function(t){return u[i]=t}));i===dt?o.push(c):s.push(c)}),a.a.apply(null,o.concat(s)).pipe(Object(v.a)(),x(),Object(g.a)(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,o,s){var u=this;return a.a.apply(void 0,Object(r.__spread)(n)).pipe(Object(g.a)(function(r){return u.expandSegmentAgainstRoute(t,e,n,r,i,o,s).pipe(Object(D.a)(function(t){if(t instanceof ke)return Object(a.a)(null);throw t}))}),Object(v.a)(),R(function(t){return!!t}),Object(D.a)(function(t,n){if(t instanceof h||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,i,o))return Object(a.a)(new Dt([],{}));throw new ke(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return Re(r)!==o?Oe(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Oe(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ae(o):this.lineralizeSegments(n,o).pipe(Object(M.a)(function(n){var o=new Dt(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=Pe(e,r,i),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Oe(e);var h=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Ae(h):this.lineralizeSegments(r,h).pipe(Object(M.a)(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(g.a)(function(t){return n._loadedConfig=t,new Dt(i,{})})):Object(a.a)(new Dt(i,{}));var s=Pe(e,n,i),u=s.consumedSegments,l=s.lastChild;if(!s.matched)return Oe(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(M.a)(function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return je(t,e,n)&&Re(n)!==dt})}(t,n)?{segmentGroup:Ne(new Dt(e,function(t,e){var n,i,o={};o[dt]=e;try{for(var a=Object(r.__values)(t),s=a.next();!s.done;s=a.next()){var u=s.value;""===u.path&&Re(u)!==dt&&(o[Re(u)]=new Dt([],{}))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}(i,new Dt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return je(t,e,n)})}(t,n)?{segmentGroup:Ne(new Dt(t.segments,function(t,e,n,i){var o,a,s={};try{for(var u=Object(r.__values)(n),l=u.next();!l.done;l=u.next()){var c=l.value;je(t,e,c)&&!i[Re(c)]&&(s[Re(c)]=new Dt([],{}))}}catch(h){o={error:h}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}return Object(r.__assign)({},i,s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,i),l=s.segmentGroup,h=s.slicedSegments;return 0===h.length&&l.hasChildren()?o.expandChildren(n,i,l).pipe(Object(g.a)(function(t){return new Dt(u,t)})):0===i.length&&0===h.length?Object(a.a)(new Dt(u,{})):o.expandSegment(n,l,i,h,dt,!0).pipe(Object(g.a)(function(t){return new Dt(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Object(a.a)(new bt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?Object(s.a)(i).pipe(Object(g.a)(function(r){var i,o=t.get(r);if(function(t){return t&&Ce(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Ce(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Ot(i)})).pipe(Object(v.a)(),(r=function(t){return!0===t},function(t){return t.lift(new L(r,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(M.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(g.a)(function(t){return e._loadedConfig=t,t})):function(t){return new l.a(function(e){return e.error(vt("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Object(a.a)(new bt([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(a.a)(n);if(r.numberOfChildren>1||!r.children[dt])return xe(t.redirectTo);r=r.children[dt]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new xt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Tt(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return Tt(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Dt(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,i,o=0;try{for(var a=Object(r.__values)(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},t}();function Pe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||yt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ne(t){if(1===t.numberOfChildren&&t.children[dt]){var e=t.children[dt];return new Dt(t.segments.concat(e.segments),e.children)}return t}function je(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Re(t){return t.outlet||dt}var Me=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Le=function(){return function(t,e){this.component=t,this.route=e}}();function Fe(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ve(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=te(e);
1return t.children.forEach(function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Nt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Nt(t.url,e.url)||!Ct(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ce(t,e)||!Ct(t.queryParams,e.queryParams);case"paramsChange":default:return!ce(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Me(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Ve(t,e,o.component?s?s.children:null:n,r,i),u&&i.canDeactivateChecks.push(new Le(s&&s.outlet&&s.outlet.component||null,a))}else a&&Ue(e,s,i),i.canActivateChecks.push(new Me(r)),Ve(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),Tt(o,function(t,e){return Ue(t,n.getContext(e),i)}),i}function Ue(t,e,n){var r=te(t),i=t.value;Tt(r,function(t,r){Ue(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Le(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var qe=Symbol("INITIAL_VALUE");function Be(){return Object(V.a)(function(t){return f.a.apply(void 0,Object(r.__spread)(t.map(function(t){return t.pipe(P(1),Object(U.a)(qe))}))).pipe(Object(q.a)(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==qe)return t;if(r===qe&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Ie(r))return r}return t},t)},qe),Object(y.a)(function(t){return t!==qe}),Object(g.a)(function(t){return Ie(t)?t:!0===t}),P(1))})}function ze(t,e){return null!==t&&e&&e(new lt(t)),Object(a.a)(!0)}function He(t,e){return null!==t&&e&&e(new st(t)),Object(a.a)(!0)}function Ge(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(a.a)(!0);var i=r.map(function(r){return p(function(){var i,o=Fe(r,e,n);if(function(t){return t&&Ce(t.canActivate)}(o))i=Ot(o.canActivate(e,t));else{if(!Ce(o))throw new Error("Invalid CanActivate guard");i=Ot(o(e,t))}return i.pipe(R())})});return Object(a.a)(i).pipe(Be())}function $e(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return p(function(){var i=e.guards.map(function(i){var o,a=Fe(i,e.node,n);if(function(t){return t&&Ce(t.canActivateChild)}(a))o=Ot(a.canActivateChild(r,t));else{if(!Ce(a))throw new Error("Invalid CanActivateChild guard");o=Ot(a(r,t))}return o.pipe(R())});return Object(a.a)(i).pipe(Be())})});return Object(a.a)(i).pipe(Be())}var Ke=function(){return function(){}}(),We=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=Xe(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,dt),n=new oe([],Object.freeze({}),Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Zt(n,e),o=new ae(this.url,i);return this.inheritParamsAndData(o._root),Object(a.a)(o)}catch(s){return new l.a(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=ie(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=jt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===dt?-1:e.value.outlet===dt?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,i){var o,a;try{for(var s=Object(r.__values)(t),u=s.next();!u.done;u=s.next()){var l=u.value;try{return this.processSegmentAgainstRoute(l,e,n,i)}catch(c){if(!(c instanceof Ke))throw c}}}catch(h){o={error:h}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new Ke},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new Ke;if((t.outlet||dt)!==i)throw new Ke;var o,a=[],s=[];if("**"===t.path){var u=n.length>0?kt(n).parameters:{};o=new oe(n,u,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),i,t.component,t,Qe(e),Je(e)+n.length,en(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ke;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||yt)(n,t,e);if(!i)throw new Ke;var o={};Tt(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object(r.__assign)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}
1(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),o=new oe(a,l.parameters,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),i,t.component,t,Qe(e),Je(e)+a.length,en(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=Xe(e,a,s,c,this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return[new Zt(o,p)]}if(0===c.length&&0===d.length)return[new Zt(o,[])];var m=this.processSegment(c,f,d,dt);return[new Zt(o,m)]},t}();function Qe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Je(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Xe(t,e,n,i,o){if(n.length>0&&function(t,e,n){return i.some(function(n){return Ye(t,e,n)&&Ze(n)!==dt})}(t,n)){var a=new Dt(e,function(t,e,n,i){var o,a,s={};s[dt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var u=Object(r.__values)(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&Ze(c)!==dt){var h=new Dt([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,s[Ze(c)]=h}}}catch(f){o={error:f}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}return s}(t,e,i,new Dt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return Ye(t,e,n)})}(t,n)){var s=new Dt(t.segments,function(t,e,n,i,o,a){var s,u,l={};try{for(var c=Object(r.__values)(i),h=c.next();!h.done;h=c.next()){var f=h.value;if(Ye(t,n,f)&&!o[Ze(f)]){var d=new Dt([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,l[Ze(f)]=d}}}catch(p){s={error:p}}finally{try{h&&!h.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}return Object(r.__assign)({},o,l)}(t,e,n,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new Dt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Ye(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ze(t){return t.outlet||dt}function tn(t){return t.data||{}}function en(t){return t.resolve||{}}function nn(t,e,n,r){var i=Fe(t,e,r);return Ot(i.resolve?i.resolve(e,n):i(e,n))}function rn(t){return function(e){return e.pipe(Object(V.a)(function(e){var n=t(e);return n?Object(s.a)(n).pipe(Object(g.a)(function(){return e})):Object(s.a)([e])}))}}var on=function(){return function(){}}(),an=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),sn=new o.p("ROUTES"),un=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new bt(It(i.injector.get(sn)).map(Et),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(s.a)(this.loader.load(t)):Ot(t()).pipe(Object(M.a)(function(t){return t instanceof o.v?Object(a.a)(t):Object(s.a)(e.compiler.compileModuleAsync(t))}))},t}(),ln=function(){return function(){}}(),cn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function hn(t){throw t}function fn(t,e,n){return e.parse("/")}function dn(t,e){return Object(a.a)(null)}var pn=function(){function t(t,e,n,r,i,a,s,l){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new m.a,this.errorHandler=hn,this.malformedUriErrorHandler=fn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new cn,this.routeReuseStrategy=new an,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(o.x),this.console=i.get(o.db);var h=i.get(o.z);this.isNgZoneEnabled=h instanceof o.z,this.resetConfig(l),this.currentUrlTree=new xt(new Dt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new un(a,s,function(t){return c.triggerEvent(new ot(t))},function(t){return c.triggerEvent(new at(t))}),this.routerState=ne(this.currentUrlTree,this.rootComponentType),this.transitions=new u.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Object(y.a)(function(t){return 0!==t.id}),Object(g.a)(function(t){return Object(r.__assign)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(V.a)(function(t){var i,o,l,c,h=!1,f=!1;return Object(a.a)(t).pipe(Object(I.a)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(r.__assign)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(V.a)(function(t){var i,o,s,u,l=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(V.a)(function(t){var r=e.transitions.getValue();return n.next(new J(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?d.a:[t]}),Object(V.a)(function(t){return Promise.resolve(t)}),(i=e.ngModule.injector,o=e.configLoader,s=e.urlSerializer,u=e.config,function(t){return t.pipe(Object(V.a)(function(t){return function(e,n,r,i,o){return new De(e,n,r,t.extractedUrl,o).apply()}(i,o,s,0,u).pipe(Object(g.a)(function(e){return Object(r.__assign)({},t,{urlAfterRedirects:e})}))}))}),Object(I.a)(function(t){e.currentNavigation=Object(r.__assign)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,i,o,a){return function(i){return i.pipe(Object(M.a)(function(i){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new We(t,e,n,r,i,o).recognize()}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),o,a).pipe(Object(g.a)(function(t){return Object(r.__assign)({},i,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(I.a)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),Object(I.a)(function(t){var r=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,h=t.source,f=t.restoredState,p=t.extras,m=new J(t.id,e.serializeUrl(c),h,f);n.next(m);var v=ne(c,e.rootComponentType).snapshot;return Object(a.a)(Object(r.__assign)({},t,{targetSnapshot:v,urlAfterRedirects:c,extras:Object(r.__assign)({},p,{skipLocationChange:!1,replaceUrl:!1})}
1))}return e.rawUrlTree=t.rawUrl,t.resolve(null),d.a}),rn(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(I.a)(function(t){var n=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(g.a)(function(t){return Object(r.__assign)({},t,{guards:(n=t.targetSnapshot,i=t.currentSnapshot,o=e.rootContexts,a=n._root,Ve(a,i?i._root:null,o,[a.value]))});var n,i,o,a}),function(t,e){return function(n){return n.pipe(Object(M.a)(function(n){var i=n.targetSnapshot,o=n.currentSnapshot,u=n.guards,l=u.canActivateChecks,c=u.canDeactivateChecks;return 0===c.length&&0===l.length?Object(a.a)(Object(r.__assign)({},n,{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(M.a)(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map(function(o){var a,s=Fe(o,e,i);if(function(t){return t&&Ce(t.canDeactivate)}(s))a=Ot(s.canDeactivate(t,e,n,r));else{if(!Ce(s))throw new Error("Invalid CanDeactivate guard");a=Ot(s(t,e,n,r))}return a.pipe(R())});return Object(a.a)(s).pipe(Be())}(t.component,t.route,n,e,r)}),R(function(t){return!0!==t},!0))}(c,i,o,t).pipe(Object(M.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(B.a)(function(e){return Object(s.a)([He(e.route.parent,r),ze(e.route,r),$e(t,e.path,n),Ge(t,e.route,n)]).pipe(Object(v.a)(),R(function(t){return!0!==t},!0))}),R(function(t){return!0!==t},!0))}(i,l,t,e):Object(a.a)(n)}),Object(g.a)(function(t){return Object(r.__assign)({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Object(I.a)(function(t){if(Ie(t.guardsResult)){var n=vt('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Object(I.a)(function(t){var n=new nt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(y.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Y(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),rn(function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(I.a)(function(t){var n=new rt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(M.a)(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?Object(s.a)(o).pipe(Object(B.a)(function(t){return function(t,n,i,o){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(a.a)({});if(1===i.length){var o=i[0];return nn(t[o],e,n,r).pipe(Object(g.a)(function(t){var e;return(e={})[o]=t,e}))}var u={};return Object(s.a)(i).pipe(Object(M.a)(function(i){return nn(t[i],e,n,r).pipe(Object(g.a)(function(t){return u[i]=t,t}))})).pipe(x(),Object(g.a)(function(){return u}))}(t._resolve,t,e,o).pipe(Object(g.a)(function(e){return t._resolvedData=e,t.data=Object(r.__assign)({},t.data,ie(t,i).resolve),null}))}(t.route,0,n,i)}),function(t,e){return arguments.length>=2?function(e){return Object(z.a)(Object(q.a)(t,void 0),S(1),Object(O.a)(void 0))(e)}:function(e){return Object(z.a)(Object(q.a)(function(e,n,r){return t(e)}),S(1))(e)}}(function(t,e){return t}),Object(g.a)(function(e){return t})):Object(a.a)(t)}))}),Object(I.a)(function(t){var n=new it(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,i}),rn(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(g.a)(function(t){var n,i,o,a=(o=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(c=i.value)._futureSnapshot=n.value;var o=function(e,n,i){return n.children.map(function(n){var o,a;try{for(var s=Object(r.__values)(i.children),u=s.next();!u.done;u=s.next()){var l=u.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){o={error:c}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,i);return new Zt(c,o)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,s),s}var l,c=new re(new u.a((l=n.value).url),new u.a(l.params),new u.a(l.queryParams),new u.a(l.fragment),new u.a(l.data),l.outlet,l.component,l);return o=n.children.map(function(n){return t(e,n)}),new Zt(c,o)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new ee(o,n));return Object(r.__assign)({},t,{targetRouterState:a})}),Object(I.a)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(o=e.rootContexts,l=e.routeReuseStrategy,c=function(t){return e.triggerEvent(t)},Object(g.a)(function(t){return new Se(l,t.targetRouterState,t.currentRouterState,c).activate(o),t})),Object(I.a)({next:function(){h=!0},complete:function(){h=!0}}),(i=function(){if(!h&&!f){e.resetUrlToCurrentUrlTree();var r=new Y(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);n.next(r),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new G(i))}),Object(D.a)(function(r){if(f=!0,(s=r)&&s[gt]){var i=Ie(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new Y(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),t.resolve(!1),i&&e.navigateByUrl(r.url)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new Z(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var s;return d.a}))}))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){return this.transitions.value},t.prototype.setTransition=function(t){this.transitions.next(Object(r.__assign)({},this.getTransition(),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){wt(t),this.config=t.map(Et),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,a=e.fragment,s=e.preserveQueryParams,u=e.queryParamsHandling,l=e.preserveFragment;Object(o.Y)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,h=l?this.currentUrlTree.fragment:a,f=null;if(u)switch(u){case"merge":f=Object(r.__assign)({},this.currentUrlTree.queryParams,i);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=i||null}else f=s?this.currentUrlTree.queryParams:i||null;return null!==f&&(f=this.removeEmptyProps(f)),function(t,e,n,i,o){if(0===n.length)return fe(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new de(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Tt(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),Object(r.__spread)(t,[{outlets:a}])}if(i.segmentPath)return Object(r.__spread)(t,[i.segmentPath])}return"string"!=typeof i?Object(r.__spread)(t,[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):Object(r.__spread)(t,[i])},[]);return new de(n,e,i)}(n);if(a.toRoot())return fe(e.root,new Dt([],{}),e,i,o);var s=function(t,n,r){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new pe(r.snapshot._urlSegment,!0,0);var i=he(t.commands[0])?0:1;return function(e,n,o){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new pe(a,!1,s-u)}()}(a,0,t),u=s.processChildren?ve(s.segmentGroup,s.index,a.commands):ge(s.segmentGroup,s.index,a.commands);return fe(s.segmentGroup,u,e,i,o)}(c,this.currentUrlTree,t,f,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(o.Y)()&&this.isNgZoneEnabled&&!o.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
1you forget to call 'ngZone.run()'?");var n=Ie(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Ie(t))return At(this.currentUrlTree,t,e);var n=this.parseUrl(t);return At(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!=r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new X(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})},t.prototype.scheduleNavigation=function(t,e,n,r){var i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,a=null,s=new Promise(function(t,e){o=t,a=e}),u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})},t.prototype.setBrowserUrl=function(t,e,n,i){var o=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",Object(r.__assign)({},i,{navigationId:n})):this.location.go(o,"",Object(r.__assign)({},i,{navigationId:n}))},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),mn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(o.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:vn(this.skipLocationChange),replaceUrl:vn(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:vn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:vn(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}(),gn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof X&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(o.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:vn(this.skipLocationChange),replaceUrl:vn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:vn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:vn(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(r.__decorate)([Object(o.n)("attr.target"),Object(o.r)(),Object(r.__metadata)("design:type",String)],t.prototype,"target",void 0),t}();function vn(t){return""===t||!!t}var yn=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bn,this.attachRef=null}}(),bn=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new yn,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),wn=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.m,this.deactivateEvents=new o.m,this.name=r||dt,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new _n(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),_n=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===re?this.route:t===bn?this.childContexts:this.parent.get(t,e)},t}(),Sn=function(){return function(){}}(),En=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(Object(D.a)(function(){return Object(a.a)(null)}))},t}(),Cn=function(){function t(){}return t.prototype.preload=function(t,e){return Object(a.a)(null)},t}(),In=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new un(e,n,function(e){return t.triggerEvent(new ot(e))},function(e){return t.triggerEvent(new at(e))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Object(y.a)(function(t){return t instanceof X}),Object(B.a)(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(o.x);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,i,o=[];try{for(var a=Object(r.__values)(e),u=a.next();!u.done;u=a.next()){var l=u.value;if(l.loadChildren&&!l.canLoad&&l._loadedConfig){var c=l._loadedConfig;o.push(this.processRoutes(c.module,c.routes))}else l.loadChildren&&!l.canLoad?o.push(this.preloadConfig(t,l)):l.children&&o.push(this.processRoutes(t,l.children))}}catch(h){n={error:h}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return Object(s.a)(o).pipe(Object(K.a)(),Object(g.a)(function(t){}))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return n.loader.load(t.injector,e).pipe(Object(M.a)(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})},t}(),kn=function(){function t(t,e,n){void 0===n&&(n={}),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof J?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof X&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ht&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new ht(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),Tn=new o.p("ROUTER_CONFIGURATION"),On=new o.p("ROUTER_FORROOT_GUARD"),An=[i.h,{provide:Rt,useClass:Mt},{provide:pn,useFactory:Mn,deps:[o.g,Rt,bn,i.h,o.q,o.w,o.i,sn,Tn,[ln,new o.A],[on,new o.A]]},bn,{provide:re,useFactory:Ln,deps:[pn]},{provide:o.w,useClass:o.J},In,Cn,En,{provide:Tn,useValue:{enableTracing:!1}}];function xn(){return new o.y("Router",pn)}var Dn=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[An,Rn(t),{provide:On,useFactory:jn,deps:[[pn,new o.A,new o.I]]},{provide:Tn,useValue:n||{}},{provide:i.i,useFactory:Nn,deps:[i.o,[new o.o(i.a),new o.A],Tn]},{provide:kn,useFactory:Pn,deps:[pn,i.p,Tn]},{provide:Sn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Cn},{provide:o.y,multi:!0,useFactory:xn},[Fn,{provide:o.d,multi:!0,useFactory:Vn,deps:[Fn]},{provide:qn,useFactory:Un,deps:[Fn]},{provide:o.b,multi:!0,useExisting:qn}]]}},t.forChild=function(t){return{ngModule:e,providers:[Rn(t)]}},t}();function Pn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new kn(t,e,n)}function Nn(t,e,n){return void 0===n&&(n={}),n.useHash?new i.f(t,e):new i.n(t,e)}function jn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Rn(t){return[{provide:o.a,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}function Mn(t,e,n,r,i,o,a,s,u,l,c){void 0===u&&(u={});var h=new pn(null,e,n,r,i,o,a,It(s));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var f=Object(W.r)();h.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h}function Ln(t){return t.routerState.root}var Fn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new m.a}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(i.g,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(pn),i=t.injector.get(Tn);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Object(a.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Tn
1),n=this.injector.get(In),r=this.injector.get(kn),i=this.injector.get(pn),a=this.injector.get(o.g);t===a.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();function Vn(t){return t.appInitializer.bind(t)}function Un(t){return t.bootstrapListener.bind(t)}var qn=new o.p("Router Initializer")},ZYjt:function(t,e,n){"use strict";n.d(e,"p",function(){return vt}),n.d(e,"q",function(){return k}),n.d(e,"a",function(){return yt}),n.d(e,"h",function(){return gt}),n.d(e,"c",function(){return T}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return tt}),n.d(e,"f",function(){return et}),n.d(e,"g",function(){return nt}),n.d(e,"b",function(){return st}),n.d(e,"r",function(){return s}),n.d(e,"j",function(){return F}),n.d(e,"i",function(){return Y}),n.d(e,"m",function(){return rt}),n.d(e,"n",function(){return at}),n.d(e,"l",function(){return D}),n.d(e,"o",function(){return x}),n.d(e,"k",function(){return ut});var r=n("mrSG"),i=n("Ip0R"),o=n("CcnG"),a=null;function s(){return a}var u,l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};o.rb.Node&&(u=o.rb.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var f,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,a||(a=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var i;(i=t)[e].apply(i,Object(r.__spread)(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return u.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)}
vendor: 6,414 bytes, line 1
1,e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&h.hasOwnProperty(e)&&(e=h[e]))}return c[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=p||(p=document.querySelector("base"))?p.getAttribute("href"):null;return null==n?null:(e=n,f||(f=document.createElement("a")),f.setAttribute("href",e),"/"===f.pathname.charAt(0)?f.pathname:"/"+f.pathname)},e.prototype.resetBaseElement=function(){p=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(i.t)(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};
1Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(a){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(r.__extends)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),p=null,m=i.d;function g(){return!!window.history.pushState}var v=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(r.__extends)(e,t),e.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},e.prototype.onPopState=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){g()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){g()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},Object(r.__decorate)([Object(r.__param)(0,Object(o.o)(m)),Object(r.__metadata)("design:paramtypes",[Object])],e)}(i.o),y=new o.p("TRANSITION_ID"),b=[{provide:o.d,useFactory:function(t,e,n){return function(){n.get(o.e).donePromise.then(function(){var n=s();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[y,m,o.q],multi:!0}],w=function(){function t(){}return t.init=function(){Object(o.ab)(new t)},t.prototype.addToWindow=function(t){o.rb.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.rb.getAllAngularTestabilities=function(){return t.getAllTestabilities()},o.rb.getAllAngularRootElements=function(){return t.getAllRootElements()},o.rb.frameworkStabilizers||(o.rb.frameworkStabilizers=[]),o.rb.frameworkStabilizers.push(function(t){var e=o.rb.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?s().isShadowRoot(e)?this.findTestabilityInTree(t,s().getHost(e),!0):this.findTestabilityInTree(t,s().parentElement(e),!0):null},t}();function _(t,e){"undefined"!=typeof COMPILED&&COMPILED||((o.rb.ng=o.rb.ng||{})[t]=e)}var S={ApplicationRef:o.g,NgZone:o.z},E="probe",C="coreTokens";function I(t){return Object(o.W)(t)}function k(t){return _(E,I),_(C,Object(r.__assign)({},S,(t||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return I}}var T=new o.p("EventManagerPlugins"),O=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}(),A=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=s().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),x=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),D=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(r.__extends)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;
vendor: 7,235 bytes, line 1
1this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return s().remove(t)})},e}(x),P={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},N=/%COMP%/g,j="_nghost-%COMP%",R="_ngcontent-%COMP%";function M(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?M(t,i,n):(i=i.replace(N,t),n.push(i))}return n}function L(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var F=function(){function t(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new V(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case o.Q.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case o.Q.Native:case o.Q.ShadowDom:return new H(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=M(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),V=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(P[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=P[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=P[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&o.F.DashCase?t.style.setProperty(e,n,r&o.F.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&o.F.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){q(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return q(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,L(n)):this.eventManager.addEventListener(t,e,L(n))},t}(),U="@".charCodeAt(0);function q(t,e){if(t.charCodeAt(0)===U)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var B,z=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.component=r;var a=M(i+"-"+r.id,r.styles,[]);return n.addStyles(a),o.contentAttr=R.replace(N,i+"-"+r.id),o.hostAttr=j.replace(N,i+"-"+r.id),o}return Object(r.__extends)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(V),H=function(t){function e(e,n,r,i){var a=t.call(this,e)||this;a.sharedStylesHost=n,a.hostEl=r,a.component=i,a.shadowRoot=i.encapsulation===o.Q.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=M(i.id,i.styles,[]),u=0;u<s.length;u++){var l=document.createElement("style");l.textContent=s[u],a.shadowRoot.appendChild(l)}return a}return Object(r.__extends)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(V),G="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},$=G("addEventListener"),K=G("removeEventListener"),W={},Q="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[G("BLACK_LISTED_EVENTS")]&&(B={});var J=function(t){return!!B&&B.hasOwnProperty(t)},X=function(t){var e=W[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[Q];o++){var a;(a=i[o]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},Y=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.ngZone=n,r&&Object(i.q)(r)||o.patchEvent(),o}return Object(r.__extends)(e,t),e.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Q]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=n;if(!t[$]||o.z.isInAngularZone()&&!J(e))t.addEventListener(e,i,!1);else{var a=W[e];a||(a=W[e]=G("ANGULAR"+e+"FALSE"));var s=t[a],u=s&&s.length>0;s||(s=t[a]=[]);var l=J(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:i});else{for(var c=!1,h=0;h<s.length;h++)if(s[h].handler===i){c=!0;break}c||s.push({zone:l,handler:i})}u||t[$](e,X,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[K];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var i=W[e],o=i&&t[i];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(t,[e,X,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(A),Z={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0}
1,tt=new o.p("HammerGestureConfig"),et=new o.p("HammerLoader"),nt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),rt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._config=n,o.console=r,o.loader=i,o}return Object(r.__extends)(e,t),e.prototype.supports=function(t){return!(!Z.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});o||(a=r.addEventListener(t,e,n))}).catch(function(){r.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(t),a=function(t){i.runGuarded(function(){n(t)})};return o.on(e,a),function(){o.off(e,a),"function"==typeof o.destroy&&o.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(A),it=["alt","control","meta","shift"],ot={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},at=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(it.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),it.forEach(function(r){r!=n&&(0,ot[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(A),st=function(){return function(){}}(),ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case o.H.NONE:return e;case o.H.HTML:return e instanceof ct?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(o.eb)(this._doc,String(e)));case o.H.STYLE:return e instanceof ht?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(o.fb)(e));case o.H.SCRIPT:if(e instanceof ft)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case o.H.URL:return e instanceof pt||e instanceof dt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(o.gb)(String(e)));case o.H.RESOURCE_URL:if(e instanceof pt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof lt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ct(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ht(t)},e.prototype.bypassSecurityTrustScript=function(t){return new ft(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new dt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new pt(t)},e}(st),lt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(lt),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(lt),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(lt),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(lt),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(lt),mt=[{provide:o.B,useValue:i.r},{provide:o.C,useValue:function(){d.makeCurrent(),w.init()},multi:!0},{provide:i.o,useClass:v,deps:[m]},{provide:m,useFactory:function(){return document},deps:[]}],gt=Object(o.S)(o.Z,"browser",mt);function vt(){return new o.l}var yt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:y,useExisting:o.c},b]}},t}();"undefined"!=typeof window&&window},"ZZ/e":function(t,e,n){"use strict";var r=n("mrSG"),i=n("CcnG"),o=n("Ip0R"),a=n("ZYCi"),s=n("xJ3V"),u=(n("Goaa"),n("oSDc"),n("cIT+"),n("hney")),l=(n("E5h0"),n("sYsB")),c=n("K9Ia"),h=n("bne5"),f=n("26FU"),d=n("VnD/"),p=n("15JJ"),m=n("FFOo"),g=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.compare,this.keySelector))},t}(),v=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}
1var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(m.a),y=n("tErX");!function(){if(void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),n.d(e,"a",function(){return le}),n.d(e,"b",function(){return I}),n.d(e,"c",function(){return oe}),n.d(e,"d",function(){return Pe}),n.d(e,"e",function(){return V}),n.d(e,"f",function(){return U}),n.d(e,"g",function(){return q}),n.d(e,"h",function(){return Oe}),n.d(e,"i",function(){return B}),n.d(e,"j",function(){return z}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return G}),n.d(e,"m",function(){return $}),n.d(e,"n",function(){return K}),n.d(e,"o",function(){return W}),n.d(e,"p",function(){return Q}),n.d(e,"q",function(){return J}),n.d(e,"r",function(){return X}),n.d(e,"s",function(){return Y}),n.d(e,"t",function(){return Z}),n.d(e,"u",function(){return tt}),n.d(e,"v",function(){return et}),n.d(e,"w",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"y",function(){return it}),n.d(e,"z",function(){return ot}),n.d(e,"A",function(){return at}),n.d(e,"B",function(){return st}),n.d(e,"C",function(){return ut}),n.d(e,"D",function(){return lt}),n.d(e,"E",function(){return ct}),n.d(e,"F",function(){return ht}),n.d(e,"G",function(){return ft}),n.d(e,"H",function(){return dt}),n.d(e,"I",function(){return pt}),n.d(e,"J",function(){return mt}),n.d(e,"K",function(){return gt}),n.d(e,"L",function(){return vt}),n.d(e,"M",function(){return yt}),n.d(e,"N",function(){return bt}),n.d(e,"O",function(){return wt}),n.d(e,"P",function(){return _t}),n.d(e,"Q",function(){return St}),n.d(e,"R",function(){return Et}),n.d(e,"S",function(){return Ct}),n.d(e,"T",function(){return It}),n.d(e,"U",function(){return kt}),n.d(e,"V",function(){return Tt}),n.d(e,"W",function(){return Ot}),n.d(e,"X",function(){return At}),n.d(e,"Y",function(){return xt}),n.d(e,"Z",function(){return Dt}),n.d(e,"ab",function(){return Pt}),n.d(e,"bb",function(){return Nt}),n.d(e,"cb",function(){return jt}),n.d(e,"db",function(){return Rt}),n.d(e,"eb",function(){return Mt}),n.d(e,"fb",function(){return Lt}),n.d(e,"gb",function(){return Ft}),n.d(e,"hb",function(){return Vt}),n.d(e,"ib",function(){return Ie}),n.d(e,"jb",function(){return Ut}),n.d(e,"kb",function(){return qt}),n.d(e,"lb",function(){return Bt}),n.d(e,"mb",function(){return zt}),n.d(e,"nb",function(){return Ht}),n.d(e,"ob",function(){return Gt}),n.d(e,"pb",function(){return $t}),n.d(e,"qb",function(){return Kt}),n.d(e,"rb",function(){return Wt}),n.d(e,"sb",function(){return Qt}),n.d(e,"tb",function(){return Jt}),n.d(e,"ub",function(){return Xt}),n.d(e,"vb",function(){return Yt}),n.d(e,"wb",function(){return Te}),n.d(e,"xb",function(){return Zt}),n.d(e,"yb",function(){return te}),n.d(e,"zb",function(){return ee}),n.d(e,"Ab",function(){return ne}),n.d(e,"Bb",function(){return re}),n.d(e,"Cb",function(){return ie}),n.d(e,"Db",function(){return xe}),n.d(e,"Eb",function(){return Be}),n.d(e,"Fb",function(){return Ve}),n.d(e,"Gb",function(){return Re}),n.d(e,"Hb",function(){return Me}),n.d(e,"Ib",function(){return P}),n.d(e,"Jb",function(){return ue}),n.d(e,"Kb",function(){return A}),n.d(e,"Lb",function(){return Le}),n.d(e,"Mb",function(){return k}),n.d(e,"Nb",function(){return Ae}),n.d(e,"Ob",function(){return T}),n.d(e,"Pb",function(){return O}),n.d(e,"Qb",function(){return Fe}),n.d(e,"Rb",function(){return ae}),n.d(e,"Sb",function(){return qe});var b=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},w=function(){function t(t){this.el=t,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this.el.nativeElement.value=this.lastValue=null==t?"":t,_(this.el)},t.prototype.handleChangeEvent=function(t,e){t===this.el.nativeElement&&(e!==this.lastValue&&(this.lastValue=e,this.onChange(e)),_(this.el))},t.prototype._handleBlurEvent=function(t){t===this.el.nativeElement&&(this.onTouched(),_(this.el))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.el.nativeElement.disabled=t},t}(),_=function(t){b(function(){var e=t.nativeElement,n=S(e);E(e,n);var r=e.closest("ion-item");r&&E(r,n)})},S=function(t){for(var e=t.classList,n=[],r=0;r<e.length;r++){var i=e.item(r);null!==i&&C(i,"ng-")&&n.push("ion-"+i.substr(3))}return n},E=function(t,e){var n=t.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(t){return n.remove(t)}),e.forEach(function(t){return n.add(t)})},C=function(t,e){return t.substr(0,e.length)===e},I=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.writeValue=function(t){this.el.nativeElement.checked=this.lastValue=null!=t&&t,_(this.el)},e.prototype._handleIonChange=function(t){this.handleChangeEvent(t,t.checked)},e}(w),k=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype._handleIonSelect=function(t){this.handleChangeEvent(t,t.checked)},e}(w),T=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype._handleChangeEvent=function(t){this.handleChangeEvent(t,t.value)},e}(w),O=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype._handleInputEvent=function(t){this.handleChangeEvent(t,t.value)},e}(w),A=function(){function t(t,e){var n=this;this.doc=t,this.backButton=new c.a,this.pause=new c.a,this.resume=new c.a,this.resize=new c.a,e.run(function(){var r;n.win=t.defaultView,n.backButton.subscribeWithPriority=function(t,n){return this.subscribe(function(r){return r.register(t,function(){return e.run(n)})})},D(n.pause,t,"pause"),D(n.resume,t,"resume"),D(n.backButton,t,"ionBackButton"),D(n.resize,n.win,"resize"),n._readyPromise=new Promise(function(t){r=t}),n.win&&n.win.cordova?t.addEventListener("deviceready",function(){r("cordova")},{once:!0}):r("dom")})}return t.prototype.is=function(t){return Object(s.f)(this.win,t)},t.prototype.platforms=function(){return Object(s.e)(this.win)},t.prototype.ready=function(){return this._readyPromise},Object.defineProperty(t.prototype,"isRTL",{get:function(){return"rtl"===this.doc.dir},enumerable:!0,configurable:!0}),t.prototype.getQueryParam=function(t){return x(this.win.location.href,t)},t.prototype.isLandscape=function(){return!this.isPortrait()},t.prototype.isPortrait=function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches},t.prototype.testUserAgent=function(t){var e=this.win.navigator;return!!(e&&e.userAgent&&e.userAgent.indexOf(t)>=0)},t.prototype.url=function(){return this.win.location.href},t.prototype.width=function(){return this.win.innerWidth},t.prototype.height=function(){return this.win.innerHeight},t.ngInjectableDef=Object(i.T)({factory:function(){return new t(Object(i.X)(o.d),Object(i.X)(i.z))},token:t,providedIn:"root"}),t}(),x=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},D=function(t,e,n){e&&e.addEventListener(n,function(e){t.next(null!=e?e.detail
1:void 0)})},P=function(){function t(t,e,n,r){var i=this;this.location=e,this.serializer=n,this.router=r,this.direction=j,this.animated=R,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(t){if(t instanceof a.e){var e=t.restoredState?t.restoredState.navigationId:t.id;i.guessDirection=e<i.lastNavId?"back":"forward",i.guessAnimation=t.restoredState?void 0:i.guessDirection,i.lastNavId="forward"===i.guessDirection?t.id:e}}),t.backButton.subscribeWithPriority(0,function(){return i.pop()})}return t.prototype.navigateForward=function(t,e){return void 0===e&&(e={}),this.setDirection("forward",e.animated,e.animationDirection),this.navigate(t,e)},t.prototype.navigateBack=function(t,e){return void 0===e&&(e={}),this.setDirection("back",e.animated,e.animationDirection),this.navigate(t,e)},t.prototype.navigateRoot=function(t,e){return void 0===e&&(e={}),this.setDirection("root",e.animated,e.animationDirection),this.navigate(t,e)},t.prototype.back=function(t){return void 0===t&&(t={animated:!0,animationDirection:"back"}),this.setDirection("back",t.animated,t.animationDirection),this.location.back()},t.prototype.pop=function(){return Object(r.__awaiter)(this,void 0,void 0,function(){var t;return Object(r.__generator)(this,function(e){switch(e.label){case 0:t=this.topOutlet,e.label=1;case 1:return t?[4,t.pop()]:[3,3];case 2:return e.sent()?[3,3]:(t=t.parentOutlet,[3,1]);case 3:return[2]}})})},t.prototype.setDirection=function(t,e,n){this.direction=t,this.animated=N(t,e,n)},t.prototype.setTopOutlet=function(t){this.topOutlet=t},t.prototype.consumeTransition=function(){var t,e="root";return"auto"===this.direction?(e=this.guessDirection,t=this.guessAnimation):(t=this.animated,e=this.direction),this.direction=j,this.animated=R,{direction:e,animation:t}},t.prototype.navigate=function(t,e){if(Array.isArray(t))return this.router.navigate(t,e);var n=this.serializer.parse(t.toString());return void 0!==e.queryParams&&(n.queryParams=Object(r.__assign)({},e.queryParams)),void 0!==e.fragment&&(n.fragment=e.fragment),this.router.navigateByUrl(n,e)},t.ngInjectableDef=Object(i.T)({factory:function(){return new t(Object(i.X)(A),Object(i.X)(o.h),Object(i.X)(a.u),Object(i.X)(a.n,8))},token:t,providedIn:"root"}),t}(),N=function(t,e,n){if(!1!==e)return void 0!==n?n:"forward"===t||"back"===t?t:"root"===t&&!0===e?"forward":void 0},j="auto",R=void 0,M=function(t,e){var n=t.prototype;e.forEach(function(t){Object.defineProperty(n,t,{get:function(){return this.el[t]},set:function(e){var n=this;this.z.runOutsideAngular(function(){return n.el[t]=e})}})})},L=function(t,e){var n=t.prototype;e.forEach(function(t){n[t]=function(){var e=this,n=arguments;return this.z.runOutsideAngular(function(){return e.el[t].apply(e.el,n)})}})},F=function(t,e,n){n.forEach(function(n){return t[n]=Object(h.a)(e,n)})},V=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),U=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),q=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(q,["color","defaultHref","disabled","icon","mode","text","type"]);var B=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionBackdropTap"])}}();M(B,["stopPropagation","tappable","visible"]);var z=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(z,["color","mode"]);var H=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionFocus","ionBlur"])}}();M(H,["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerDirection","shape","size","strong","target","type"]);var G=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(G,["collapse"]);var $=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M($,["button","color","disabled","download","href","mode","rel","routerDirection","target","type"]);var K=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(K,["mode"]);var W=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(W,["color","mode","translucent"]);var Q=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Q,["color","mode"]);var J=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(J,["color","mode"]);var X=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange","ionFocus","ionBlur"])}}();M(X,["checked","color","disabled","indeterminate","mode","name","value"]);var Y=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Y,["color","mode","outline"]);var Z=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Z,["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]);var tt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}}();L(tt,["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]),M(tt,["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"]);var et=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}}();L(et,["open"]),M(et,["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"]);var nt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();L(nt,["close"]),M(nt,["activated","edge","horizontal","vertical"]);var rt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionFocus","ionBlur"])}}();M(rt,["activated","color","disabled","download","href","mode","rel","routerDirection","show","size","target","translucent","type"]);var it=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(it,["activated","side"]);var ot=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(ot,["mode","translucent"]);var at=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(at,["fixed"]);var st=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(st,["collapse","mode","translucent"]);var ut=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(ut,["ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","size","src"]);var lt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}}();M(lt,["alt","src"]);var ct=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionInfinite"])}}();L(ct,["complete"]),M(ct,["disabled","position","threshold"]);var ht=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(ht,["loadingSpinner","loadingText"]);var ft=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}}();
1L(ft,["setFocus","getInputElement"]),M(ft,["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"]);var dt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(dt,["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerDirection","target","type"]);var pt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(pt,["color","mode","sticky"]);var mt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),gt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(gt,["color","disabled","download","expandable","href","mode","rel","target","type"]);var vt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionSwipe"])}}();M(vt,["side"]);var yt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionDrag"])}}();L(yt,["getOpenAmount","getSlidingRatio","open","close","closeOpened"]),M(yt,["disabled"]);var bt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(bt,["color","mode","position"]);var wt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();L(wt,["closeSlidingItems"]),M(wt,["inset","lines","mode"]);var _t=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(_t,["color","mode"]);var St=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}}();L(St,["isOpen","isActive","open","close","toggle","setOpen"]),M(St,["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"]);var Et=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Et,["autoHide","color","disabled","menu","type"]);var Ct=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Ct,["autoHide","menu"]);var It=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionNavWillChange","ionNavDidChange"])}}();L(It,["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]),M(It,["animated","animation","root","rootParams","swipeGesture"]);var kt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(kt,["component","componentProps","routerDirection"]);var Tt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),Ot=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Ot,["component","componentProps"]);var At=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(At,["component","componentProps"]);var xt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(xt,["color","mode"]);var Dt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Dt,["buffer","color","mode","reversed","type","value"]);var Pt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionSelect","ionFocus","ionBlur"])}}();M(Pt,["checked","color","disabled","mode","name","value"]);var Nt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange"])}}();M(Nt,["allowEmptySelection","name","value"]);var jt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange","ionFocus","ionBlur"])}}();M(jt,["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]);var Rt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionRefresh","ionPull","ionStart"])}}();L(Rt,["complete","cancel","getProgress"]),M(Rt,["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"]);var Mt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Mt,["pullingIcon","pullingText","refreshingSpinner","refreshingText"]);var Lt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),Ft=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionItemReorder"])}}();L(Ft,["complete"]),M(Ft,["disabled"]);var Vt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();L(Vt,["addRipple"]),M(Vt,["type"]);var Ut=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),qt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionInput","ionChange","ionCancel","ionClear","
1ionBlur","ionFocus"])}}();L(qt,["setFocus","getInputElement"]),M(qt,["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","inputmode","mode","placeholder","searchIcon","showCancelButton","spellcheck","type","value"]);var Bt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange"])}}();M(Bt,["color","disabled","mode","scrollable","value"]);var zt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionSelect"])}}();M(zt,["checked","disabled","layout","mode","type","value"]);var Ht=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}}();L(Ht,["open"]),M(Ht,["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"]);var Gt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Gt,["disabled","selected","value"]);var $t=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M($t,["animated","width"]);var Kt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),Wt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}}();L(Wt,["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]),M(Wt,["mode","options","pager","scrollbar"]);var Qt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Qt,["color","duration","name","paused"]);var Jt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionSplitPaneVisible"])}}();M(Jt,["contentId","disabled","when"]);var Xt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Xt,["color","mode","selectedTab","translucent"]);var Yt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Yt,["disabled","download","href","layout","mode","rel","selected","tab","target"]);var Zt=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(Zt,["color","mode"]);var te=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}}();L(te,["setFocus","getInputElement"]),M(te,["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"]);var ee=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}(),ne=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(ne,["color","size"]);var re=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,F(this,this.el,["ionChange","ionFocus","ionBlur"])}}();M(re,["checked","color","disabled","mode","name","value"]);var ie=function(){return function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}}();M(ie,["color","mode"]);var oe=function(){function t(){}return t.prototype.get=function(t,e){var n=se();return n?n.get(t,e):null},t.prototype.getBoolean=function(t,e){var n=se();return!!n&&n.getBoolean(t,e)},t.prototype.getNumber=function(t,e){var n=se();return n?n.getNumber(t,e):0},t.prototype.set=function(t,e){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=se();n&&n.set(t,e)},t.ngInjectableDef=Object(i.T)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),ae=new i.p("USERCONFIG"),se=function(){if("undefined"!=typeof window){var t=window.Ionic;if(t&&t.config)return t.config}return null},ue=function(){function t(t){void 0===t&&(t={}),this.data=t}return t.prototype.get=function(t){return this.data[t]},t}(),le=function(){function t(t,e){this.zone=t,this.appRef=e}return t.prototype.create=function(t,e,n){return new ce(t,e,n,this.appRef,this.zone)},t}(),ce=function(){function t(t,e,n,r,i){this.resolver=t,this.injector=e,this.location=n,this.appRef=r,this.zone=i,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return t.prototype.attachViewToDom=function(t,e,n,r){var i=this;return this.zone.run(function(){return new Promise(function(o){o(he(i.zone,i.resolver,i.injector,i.location,i.appRef,i.elRefMap,i.elEventsMap,t,e,n,r))})})},t.prototype.removeViewFromDom=function(t,e){var n=this;return this.zone.run(function(){return new Promise(function(t){var r=n.elRefMap.get(e);if(r){r.destroy(),n.elRefMap.delete(e);var i=n.elEventsMap.get(e);i&&(i(),n.elEventsMap.delete(e))}t()})})},t}
1(),he=function(t,e,n,r,o,a,s,u,l,c,h){var f=e.resolveComponentFactory(l),d=i.q.create({providers:me(c),parent:n}),p=r?r.createComponent(f,r.length,d):f.create(d),m=p.instance,g=p.location.nativeElement;if(c&&Object.assign(m,c),h)for(var v=0,y=h;v<y.length;v++)g.classList.add(y[v]);var b=de(t,m,g);return u.appendChild(g),r||o.attachView(p.hostView),p.changeDetectorRef.reattach(),a.set(g,p),s.set(g,b),g},fe=[u.a,u.b,u.c,u.d,u.e],de=function(t,e,n){return t.run(function(){var t=fe.filter(function(t){return"function"==typeof e[t]}).map(function(t){var r=function(n){return e[t](n.detail)};return n.addEventListener(t,r),function(){return n.removeEventListener(t,r)}});return function(){return t.forEach(function(t){return t()})}})},pe=new i.p("NavParamsToken"),me=function(t){return[{provide:pe,useValue:t},{provide:ue,useFactory:ge,deps:[pe]}]},ge=function(t){return new ue(t)},ve=function(t,e){return(t=t.filter(function(t){return t.stackId!==e.stackId})).push(e),t},ye=function(t,e){var n=t.createUrlTree(["."],{relativeTo:e});return t.serializeUrl(n)},be=function(t,e){if(t)for(var n=we(e),r=0;r<n.length;r++){if(r>=t.length)return n[r];if(n[r]!==t[r])return}},we=function(t){return t.split("/").map(function(t){return t.trim()}).filter(function(t){return""!==t})},_e=function(t){t&&(t.ref.destroy(),t.unlistenEvents())},Se=function(){function t(t,e,n,r,i,o){this.containerEl=e,this.router=n,this.navCtrl=r,this.zone=i,this.location=o,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?we(t):void 0}return t.prototype.createView=function(t,e){var n=ye(this.router,e),r=t&&t.location&&t.location.nativeElement,i=de(this.zone,t.instance,r);return{id:this.nextId++,stackId:be(this.tabsPrefix,n),unlistenEvents:i,element:r,ref:t,url:n}},t.prototype.getExistingView=function(t){var e=ye(this.router,t),n=this.views.find(function(t){return t.url===e});return n&&n.ref.changeDetectorRef.reattach(),n},t.prototype.setActive=function(t){var e=this,n=this.navCtrl.consumeTransition(),r=n.direction,i=n.animation,o=this.activeView,a=function(t,e){return!e||t.stackId!==e.stackId}(t,o);a&&(r="back",i=void 0);var s,u=this.views.slice(),l=this.router;l.getCurrentNavigation?s=l.getCurrentNavigation():l.navigations&&l.navigations.value&&(s=l.navigations.value),s&&s.extras&&s.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var c=this.views.includes(t),h=this.insertView(t,r);return c||t.ref.changeDetectorRef.detectChanges(),this.zone.runOutsideAngular(function(){return e.wait(function(){return o&&o.ref.changeDetectorRef.detach(),t.ref.changeDetectorRef.reattach(),e.transition(t,o,i,e.canGoBack(1),!1).then(function(){return Ee(t,h,u,e.location)}).then(function(){return{enteringView:t,direction:r,animation:i,tabSwitch:a}})})})},t.prototype.canGoBack=function(t,e){return void 0===e&&(e=this.getActiveStackId()),this.getStack(e).length>t},t.prototype.pop=function(t,e){var n=this;return void 0===e&&(e=this.getActiveStackId()),this.zone.run(function(){var r=n.getStack(e);if(r.length<=t)return Promise.resolve(!1);var i=r[r.length-t-1],o=i.url,a=i.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}return n.navCtrl.navigateBack(o,i.savedExtras).then(function(){return!0})})},t.prototype.startBackTransition=function(){var t=this,e=this.activeView;if(e){var n=this.getStack(e.stackId),r=n[n.length-2];return this.wait(function(){return t.transition(r,e,"back",t.canGoBack(2),!0)})}return Promise.resolve()},t.prototype.endBackTransition=function(t){t?(this.skipTransition=!0,this.pop(1)):this.activeView&&Ce(this.activeView,this.views,this.views,this.location)},t.prototype.getLastUrl=function(t){var e=this.getStack(t);return e.length>0?e[e.length-1]:void 0},t.prototype.getActiveStackId=function(){return this.activeView?this.activeView.stackId:void 0},t.prototype.destroy=function(){this.containerEl=void 0,this.views.forEach(_e),this.activeView=void 0,this.views=[]},t.prototype.getStack=function(t){return this.views.filter(function(e){return e.stackId===t})},t.prototype.insertView=function(t,e){return this.activeView=t,this.views=function(t,e,n){return"root"===n?ve(t,e):"forward"===n?function(t,e){return t.indexOf(e)>=0?t=t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):t.push(e),t}(t,e):function(t,e){return t.indexOf(e)>=0?t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):ve(t,e)}(t,e)}(this.views,t,e),this.views.slice()},t.prototype.transition=function(t,e,n,r,i){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(e===t)return Promise.resolve(!1);var o=t?t.element:void 0,a=e?e.element:void 0,s=this.containerEl;return o&&o!==a&&(o.classList.add("ion-page"),o.classList.add("ion-page-invisible"),o.parentElement!==s&&s.appendChild(o),s.commit)?s.commit(o,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:i}):Promise.resolve(!1)},t.prototype.wait=function(t){return Object(r.__awaiter)(this,void 0,void 0,function(){return Object(r.__generator)(this,function(e){switch(e.label){case 0:return void 0===this.runningTask?[3,2]:[4,this.runningTask];case 1:e.sent(),this.runningTask=void 0,e.label=2;case 2:return[2,this.runningTask=t()]}})})},t}(),Ee=function(t,e,n,r){return"function"==typeof requestAnimationFrame?new Promise(function(i){requestAnimationFrame(function(){Ce(t,e,n,r),i()})}):Promise.resolve()},Ce=function(t,e,n,r){n.filter(function(t){return!e.includes(t)}
1).forEach(_e),e.forEach(function(e){var n=r.path().split("?")[0].split("#")[0];if(e!==t&&e.url!==n){var i=e.element;i.setAttribute("aria-hidden","true"),i.classList.add("ion-page-hidden"),e.ref.changeDetectorRef.detach()}})},Ie=function(){function t(t,e,n,r,o,s,u,l,c,h,d,p,m){this.parentContexts=t,this.location=e,this.resolver=n,this.config=s,this.navCtrl=u,this.parentOutlet=m,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new f.a(null),this.stackEvents=new i.m,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.nativeEl=c.nativeElement,this.name=r||a.g,this.tabsPrefix="true"===o?ye(h,p):void 0,this.stackCtrl=new Se(this.tabsPrefix,this.nativeEl,h,u,d,l),t.onChildOutletCreated(this.name,this)}return Object.defineProperty(t.prototype,"animated",{set:function(t){this.nativeEl.animated=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeGesture",{set:function(t){var e=this;this._swipeGesture=t,this.nativeEl.swipeHandler=t?{canStart:function(){return e.stackCtrl.canGoBack(1)},onStart:function(){return e.stackCtrl.startBackTransition()},onEnd:function(t){return e.stackCtrl.endBackTransition(t)}}:void 0},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.stackCtrl.destroy()},t.prototype.getContext=function(){return this.parentContexts.getContext(this.name)},t.prototype.ngOnInit=function(){var t=this;if(!this.activated){var e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}this.nativeEl.componentOnReady&&this.nativeEl.componentOnReady().then(function(){void 0===t._swipeGesture&&(t.swipeGesture=t.config.getBoolean("swipeBackEnabled","ios"===t.nativeEl.mode))})},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){throw new Error("incompatible reuse strategy")},t.prototype.attach=function(t,e){throw new Error("incompatible reuse strategy")},t.prototype.deactivate=function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var t=this.getContext();if(t.route){var e=t.route.snapshot;this.activatedView.savedExtras.queryParams=e.queryParams,this.activatedView.savedExtras.fragment=e.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}},t.prototype.activateWith=function(t,e){var n,r=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var i=this.stackCtrl.getExistingView(t);if(i){n=this.activated=i.ref;var o=i.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,t)}else{var a=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,u=new f.a(null),l=this.createActivatedRouteProxy(u,t),c=new ke(l,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),u.next(n.instance),i=this.stackCtrl.createView(this.activated,t),this.proxyMap.set(n.instance,l),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:t})}this.activatedView=i,this.stackCtrl.setActive(i).then(function(t){r.navCtrl.setTopOutlet(r),r.activateEvents.emit(n.instance),r.stackEvents.emit(t)})},t.prototype.canGoBack=function(t,e){return void 0===t&&(t=1),this.stackCtrl.canGoBack(t,e)},t.prototype.pop=function(t,e){return void 0===t&&(t=1),this.stackCtrl.pop(t,e)},t.prototype.getLastUrl=function(t){var e=this.stackCtrl.getLastUrl(t);return e?e.url:void 0},t.prototype.getActiveStackId=function(){return this.stackCtrl.getActiveStackId()},t.prototype.createActivatedRouteProxy=function(t,e){var n=new a.a;return n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,n._paramMap=this.proxyObservable(t,"paramMap"),n._queryParamMap=this.proxyObservable(t,"queryParamMap"),n.url=this.proxyObservable(t,"url"),n.params=this.proxyObservable(t,"params"),n.queryParams=this.proxyObservable(t,"queryParams"),n.fragment=this.proxyObservable(t,"fragment"),n.data=this.proxyObservable(t,"data"),n},t.prototype.proxyObservable=function(t,e){var n=this;return t.pipe(Object(d.a)(function(t){return!!t}),Object(p.a)(function(t){return n.currentActivatedRoute$.pipe(Object(d.a)(function(e){return null!==e&&e.component===t}),Object(p.a)(function(t){return t&&t.activatedRoute[e]}),function(t){return t.lift(new g(void 0,void 0))})}))},t.prototype.updateActivatedRouteProxy=function(t,e){var n=this.proxyMap.get(t);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,this.currentActivatedRoute$.next({component:t,activatedRoute:e})},t}(),ke=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===a.a?this.route:t===a.b?this.childContexts:this.parent.get(t,e)},t}(),Te=function(){function t(t){this.navCtrl=t,this.ionTabsWillChange=new i.m,this.ionTabsDidChange=new i.m}return t.prototype.onPageSelected=function(t){var e=t.enteringView.stackId;t.tabSwitch&&void 0!==e&&(this.tabBar&&(this.tabBar.selectedTab=e),this.ionTabsWillChange.emit({tab:e}),this.ionTabsDidChange.emit({tab:e}))},t.prototype.select=function(t){var e=this.outlet.getActiveStackId()===t,n=this.outlet.tabsPrefix+"/"+t,r=e?n:this.outlet.getLastUrl(t)||n;return this.navCtrl.navigateRoot(r,{animated:!0,animationDirection:"back"})},t.prototype.getSelected=function(){return this.outlet.getActiveStackId()},t}(),Oe=function(){function t(t,e){this.routerOutlet=t,this.navCtrl=e}return t.prototype.onClick=function(t){this.routerOutlet&&this.routerOutlet.canGoBack()?(this.routerOutlet.pop(),t.preventDefault()):null!=this.defaultHref&&(this.navCtrl.navigateBack(this.defaultHref),t.preventDefault())},t}(),Ae=function(){function t(t,e,n,r,i){this.locationStrategy=t,this.navCtrl=e,this.elementRef=n,this.router=r,this.routerLink=i,this.routerDirection="forward"}return t.prototype.ngOnInit=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.updateTargetUrlAndHref=function(){if(this.routerLink){var t=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=t}},t.prototype.onClick=function(t){this.navCtrl.setDirection(this.routerDirection),t.preventDefault()},t}(),xe=function(){function t(t,e,n){this.z=t,this.iterableDiffers=e,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return t.prototype.ngOnChanges=function(t){if(this.trackBy&&"items"in t){var e=t.items.currentValue;if(void 0===this.differ&&null!=e)try{this.differ=this.iterableDiffers.find(e).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"'. VirtualScroll only supports binding to Iterables such as Arrays.")}}}
1,t.prototype.ngDoCheck=function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)},t.prototype.nodeRender=function(t,e,n){var r=this;return this.z.run(function(){var i;if(t){var o=(i=r.refMap.get(t)).context;o.$implicit=e.value,o.index=e.index}else i=r.itmTmp.viewContainer.createEmbeddedView(r.getComponent(e.type),{$implicit:e.value,index:n},n),t=De(i),r.refMap.set(t,i);return i.detectChanges(),t})},t.prototype.getComponent=function(t){switch(t){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")},t}(),De=function(t){for(var e=t.rootNodes,n=0;n<e.length;n++)if(1===e[n].nodeType)return e[n];throw new Error("virtual element was not created")};M(xe,["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"]),L(xe,["checkEnd","checkRange","positionForItem"]);var Pe=function(){return function(t){var e=t.nativeElement,n=Array.from(e.attributes).map(function(t){return t.name}).filter(function(t){return Ne.includes(t)});n.length>0&&console.warn("[DEPRECATED][CSS] Ionic CSS attributes are deprecated.\nReplace:\n'<"+e.tagName.toLowerCase()+" "+n.map(function(t){return""+t}).join(" ")+">'\n\nWith:\n'<"+e.tagName.toLowerCase()+' class="'+n.map(function(t){return"ion-"+t}).join(" ")+"\">'\n ")}}(),Ne=["align-self-start","align-self-end","align-self-center","align-self-stretch","align-self-baseline","align-self-auto","wrap-reverse","justify-content-start","justify-content-center","justify-content-end","justify-content-around","justify-content-between","justify-content-evenly","align-items-start","align-items-center","align-items-end","align-items-stretch","align-items-baseline","float-left","float-right","float-start","float-end","float-sm-left","float-sm-right","float-sm-start","float-sm-end","float-md-left","float-md-right","float-md-start","float-md-end","float-lg-left","float-lg-right","float-lg-start","float-lg-end","float-xl-left","float-xl-right","float-xl-start","float-xl-end","text-center","text-justify","text-start","text-end","text-left","text-right","text-nowrap","text-wrap","text-sm-center","text-sm-justify","text-sm-start","text-sm-end","text-sm-left","text-sm-right","text-sm-nowrap","text-sm-wrap","text-md-center","text-md-justify","text-md-start","text-md-end","text-md-left","text-md-right","text-md-nowrap","text-md-wrap","text-lg-center","text-lg-justify","text-lg-start","text-lg-end","text-lg-left","text-lg-right","text-lg-nowrap","text-lg-wrap","text-xl-center","text-xl-justify","text-xl-start","text-xl-end","text-xl-left","text-xl-right","text-xl-nowrap","text-xl-wrap","text-uppercase","text-lowercase","text-capitalize","text-sm-uppercase","text-sm-lowercase","text-sm-capitalize","text-md-uppercase","text-md-lowercase","text-md-capitalize","text-lg-uppercase","text-lg-lowercase","text-lg-capitalize","text-xl-uppercase","text-xl-lowercase","text-xl-capitalize","no-padding","padding","padding-top","padding-bottom","padding-start","padding-end","padding-vertical","padding-horizontal","no-margin","margin","margin-top","margin-bottom","margin-start","margin-end","margin-vertical","margin-horizontal"],je=function(){function t(t){this.ctrl=t}return t.prototype.create=function(t){return this.ctrl.create(t||{})},t.prototype.dismiss=function(t,e,n){return this.ctrl.dismiss(t,e,n)},t.prototype.getTop=function(){return this.ctrl.getTop()},t}(),Re=function(t){function e(){return t.call(this,l.m)||this}return Object(r.__extends)(e,t),e.ngInjectableDef=Object(i.T)({factory:function(){return new e},token:e,providedIn:"root"}),e}(je),Me=function(t){function e(e,n,r){var i=t.call(this,l.n)||this;return i.angularDelegate=e,i.resolver=n,i.injector=r,i}return Object(r.__extends)(e,t),e.prototype.create=function(e){return t.prototype.create.call(this,Object(r.__assign)({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))},e}(je),Le=function(t){function e(e,n,r){var i=t.call(this,l.d)||this;return i.angularDelegate=e,i.resolver=n,i.injector=r,i}return Object(r.__extends)(e,t),e.prototype.create=function(e){return t.prototype.create.call(this,Object(r.__assign)({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))},e}(je),Fe=function(t){function e(){return t.call(this,l.q)||this}return Object(r.__extends)(e,t),e.ngInjectableDef=Object(i.T)({factory:function(){return new e},token:e,providedIn:"root"}),e}(je),Ve=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.shouldAttach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){if(t.routeConfig!==e.routeConfig)return!1;var n=t.params,r=e.params,i=Object.keys(n),o=Object.keys(r);if(i.length!==o.length)return!1;for(var a=0,s=i;a<s.length;a++){var u=s[a];if(r[u]!==n[u])return!1}return!0},t}
1(),Ue=!1,qe=function(t,e,i){return function(){var o=e.defaultView;if(o){Ue&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),Ue=!0,(o.Ionic=o.Ionic||{}).config=Object(r.__assign)({},t,{_zoneGate:function(t){return i.run(t)}});var a="__zone_symbol__addEventListener"in e.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var t=window,e=[];return t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove)||e.push(n.e(98).then(n.t.bind(null,"7Wwr",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(97).then(n.t.bind(null,"miyF",7))),Promise.all(e)}().then(function(){return t={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:b,jmp:function(t){return i.runOutsideAngular(t)},ael:function(t,e,n,r){t[a](e,n,r)},rel:function(t,e,n,r){t.removeEventListener(e,n,r)}},Object(y.b)().then(function(){Object(y.h)(),Object(y.c)(JSON.parse('[[{"ios":"ion-select_3-ios","md":"ion-select_3-md"},[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionSelect","onSelect"]]],[1,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"selected":[4],"value":[8]}]]],[{"ios":"ion-menu_4-ios","md":"ion-menu_4-md"},[[1,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]],[1,"ion-menu",{"contentId":[1,"content-id"],"menuId":[1,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[32,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[0,"ion-menu-controller",{"open":[64],"close":[64],"toggle":[64],"enable":[64],"swipeGesture":[64],"isOpen":[64],"isEnabled":[64],"get":[64],"getOpen":[64],"getMenus":[64],"isAnimating":[64],"registerAnimation":[64]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]]]],[{"ios":"ion-action-sheet-ios","md":"ion-action-sheet-md"},[[2,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-fab_3-ios","md":"ion-fab_3-md"},[[1,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],[{"ios":"ion-refresher_2-ios","md":"ion-refresher_2-md"},[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[0,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],[{"ios":"ion-backdrop-ios","md":"ion-backdrop-md"},[[1,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"touchstart","onTouchStart"],[2,"click","onMouseDown"],[2,"mousedown","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],[{"ios":"ion-alert-ios","md":"ion-alert-md"},[[2,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-back-button-ios","md":"ion-back-button-md"},[[2,"ion-back-button",{"color":[1],"defaultHref":[1,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1]}]]],[{"ios":"ion-loading-ios","md":"ion-loading-md"},[[2,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-toast-ios","md":"ion-toast-md"},[[1,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"showCloseButton":[4,"show-close-button"],"closeButtonText":[1,"close-button-text"],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-card_5-ios","md":"ion-card_5-md"},[[6,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}],[0,"ion-card-content"],[1,"ion-card-header",{"color":[1],"translucent":[4]}],[1,"ion-card-subtitle",{"color":[1]}],[1,"ion-card-title",{"color":[1]}]]],[{"ios":"ion-item-option_3-ios","md":"ion-item-option_3-md"},[[1,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[0,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],[{"ios":"ion-infinite-scroll_2-ios","md":"ion-infinite-scroll_2-md"},[[0,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],[{"ios":"ion-reorder_2-ios","md":"ion-reorder_2-md"},[[1,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],[{"ios":"ion-segment_2-ios","md":"ion-segment_2-md"},[[1,"ion-segment-button",{"checked":[1028],"disabled":[4],"layout":[1],"type":[1],"value":[1]}],[2,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025]},[[0,"ionSelect","segmentClick"]]]]],[{"ios":"ion-tab-bar_2-ios","md":"ion-tab-bar_2-md"},[[1,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[16,"ionTabBarChanged","onTabBarChanged"]]],[1,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],[{"ios":"ion-chip-ios","md":"ion-chip-md"},[[1,"ion-chip",{"color":[1],"outline":[4]}]]],[{"ios":"ion-modal-ios","md":"ion-modal-md"},[[2,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}
1]]],[{"ios":"ion-popover-ios","md":"ion-popover-md"},[[2,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-searchbar-ios","md":"ion-searchbar-md"},[[2,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[8,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-action-sheet-controller_8",[[0,"ion-action-sheet-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-alert-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[1,"ion-anchor",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"]}],[0,"ion-loading-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-modal-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-picker-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-popover-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-toast-controller",{"create":[64],"dismiss":[64],"getTop":[64]}]]],[{"ios":"ion-app_8-ios","md":"ion-app_8-md"},[[0,"ion-app"],[2,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[2,"click","onClick"]]],[0,"ion-footer",{"translucent":[4]}],[0,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[1,"ion-title",{"color":[1],"size":[1]}],[1,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-nav_5",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"]}],[0,"ion-nav-pop"],[0,"ion-nav-push",{"component":[1],"componentProps":[16]}],[0,"ion-nav-set-root",{"component":[1],"componentProps":[16]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}]]],[{"ios":"ion-avatar_3-ios","md":"ion-avatar_3-md"},[[1,"ion-avatar"],[1,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}
1,[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],[{"ios":"ion-slide_2-ios","md":"ion-slide_2-md"},[[0,"ion-slide"],[4,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],[{"ios":"ion-checkbox-ios","md":"ion-checkbox-md"},[[1,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],[{"ios":"ion-input-ios","md":"ion-input-md"},[[2,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[
11],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-progress-bar-ios","md":"ion-progress-bar-md"},[[1,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],[{"ios":"ion-range-ios","md":"ion-range-md"},[[1,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],[{"ios":"ion-split-pane-ios","md":"ion-split-pane-md"},[[0,"ion-split-pane",{"contentId":[1,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],[{"ios":"ion-textarea-ios","md":"ion-textarea-md"},[[2,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-toggle-ios","md":"ion-toggle-md"},[[1,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],[{"ios":"ion-datetime_3-ios","md":"ion-datetime_3-md"},[[2,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[1,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[0,"ion-picker-column",{"col":[16]}]]],[{"ios":"ion-radio_2-ios","md":"ion-radio_2-md"},[[1,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"checked":[1028],"value":[1032]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],[{"ios":"ion-button_2-ios","md":"ion-button_2-md"},[[1,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}]]],[{"ios":"ion-item_8-ios","md":"ion-item_8-md"},[[1,"ion-item-divider",{"color":[1],"sticky":[4]}],[0,"ion-item-group"],[1,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4],"width":[1]}],[1,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]}
1,[[0,"ionStyle","itemStyle"]]],[2,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[0,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"ion-list-header",{"color":[1]}]]]]'),t)});var t})}}},Be=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:ae,useValue:e},{provide:i.d,useFactory:qe,multi:!0,deps:[ae,o.d,i.z]}]}},t}()},Zn8D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},ZrEc:function(t,e,n){var r=n("hdqJ"),i=n("aXXJ")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"a+hM":function(t,e,n){var r=n("57wU"),i=n("ySdl"),o=n("pYsU"),a=n("TIpl");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,l=0;l<n.length;l++){var c=n[l];r(t,c)||s(t,c,u(e,c))}}},a0i3:function(t,e,n){t.exports=!n("lb/b")&&!n("0HDe")(function(){return 7!=Object.defineProperty(n("JIMt")("div"),"a",{get:function(){return 7}}).a})},a3Cf:function(t,e,n){"use strict";var r=n("HPGL"),i=n("Lq6m");n.d(e,"IonicNativePlugin",function(){return i.a}),n("KOl+");var o=n("xSm1");n.d(e,"cordova",function(){return o.a}),n("hKQe"),n("Rt+L");var a=n("pxS/");n.d(e,"cordovaPropertyGet",function(){return a.a}),n.d(e,"cordovaPropertySet",function(){return a.b}),n("Ji5e"),n("4pTB"),Object(r.a)()},aXXJ:function(t,e,n){var r=n("MfhB")("wks"),i=n("ptKZ"),o=n("ysHE").Symbol,a=n("mk1t");t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}},ahhG:function(t,e,n){e.f=n("aXXJ")},b2LF:function(t,e,n){n("q94Q")("hasInstance")},bP1B:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n("ZZ/e"),n("8s+1"),n("H+bZ"),n("n0+C"),n("Us1p"),n("2g2N");var r=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},i=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=function(){function t(t,e,n,r,i,o,a,s){this.activatedRoute=t,this.auditLoginService=e,this.messaging=n,this.toastService=r,this.loadingController=i,this.principal=o,this.router=a,this.apiService=s,this.redirect="home"}return t.prototype.presentLoading=function(){return r(this,void 0,void 0,function(){var t;return i(this,function(e){switch(e.label){case 0:return t=this,[4,this.loadingController.create({message:"Please Wait...",id:"login"})];case 1:return t.loading=e.sent(),[4,this.loading.present()];case 2:return[2,e.sent()]}})})},t.prototype.dismissLoading=function(){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.loading.dismiss()];case 1:return[2,t.sent()]}})})},t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){console.log("detect destinario ",e.user),t.pvr=e.pvr,t.subscription&&t.subscription.unsubscribe(),t.subscription=t.principal.getAuthenticationState().subscribe(function(e){return t.firebaseAuthChangeListener(e)})})},t.prototype.firebaseAuthChangeListener=function(t){var e=this;t?(this.presentLoading(),this.addAuditLogin(t).then(console.log),this.apiService.addContactToPvr(this.pvr).then(function(t){return e.dismissLoading()}).then(function(t){return e.messaging.requestPermission()}).then(function(t){console.log("redirect to ",e.redirect),e.router.navigate(["",e.pvr.domainName,e.redirect])}).catch(function(t){t.message.indexOf("ALREADY_EXISTS")<0?(e.toastService.makeToastError(t.message),console.log("Error adding contanct:",t),e.router.navigate(["",e.pvr.domainName,"access-denied"])):e.router.navigate(["",e.pvr.domainName,e.redirect]),e.dismissLoading()})):console.log("Logged out :(")},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.successCallback=function(t){console.log(t)},t.prototype.errorCallback=function(t){console.log(t)},t.prototype.addAuditLogin=function(t){return this.auditLoginService.create({email:t.email,displayName:t.displayName,page:"splash",pvr:this.pvr.domainName,pvrUid:this.pvr.uid}).toPromise()},t}()},bcPd:function(t,e,n){var r=n("kpns");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},bne5:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),i=n("isby"),o=n("2Bdj"),a=n("67Y/");function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)(function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)})):new r.a(function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c<h;c++)t(e[c],n,r,i,o)}i.add(a)}(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}},"cIT+":function(t,e,n){"use strict";n.r(e),n.d(e,"GESTURE_CONTROLLER",function(){return u}),n.d(e,"createGesture",function(){return f});var r,i=function(){function t(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=ne
vendor: 4,209 bytes, line 1
1w Set}return t.prototype.createGesture=function(t){return new o(this,this.newID(),t.name,t.priority||0,!!t.disableScroll)},t.prototype.createBlocker=function(t){return void 0===t&&(t={}),new a(this,this.newID(),t.disable,!!t.disableScroll)},t.prototype.start=function(t,e,n){return this.canStart(t)?(this.requestedStart.set(e,n),!0):(this.requestedStart.delete(e),!1)},t.prototype.capture=function(t,e,n){if(!this.start(t,e,n))return!1;var r=this.requestedStart,i=-1e4;if(r.forEach(function(t){i=Math.max(i,t)}),i===n){this.capturedId=e,r.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(o),!0}return r.delete(e),!1},t.prototype.release=function(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)},t.prototype.disableGesture=function(t,e){var n=this.disabledGestures.get(t);void 0===n&&(n=new Set,this.disabledGestures.set(t,n)),n.add(e)},t.prototype.enableGesture=function(t,e){var n=this.disabledGestures.get(t);void 0!==n&&n.delete(e)},t.prototype.disableScroll=function(t){this.disabledScroll.add(t),1===this.disabledScroll.size&&document.body.classList.add(s)},t.prototype.enableScroll=function(t){this.disabledScroll.delete(t),0===this.disabledScroll.size&&document.body.classList.remove(s)},t.prototype.canStart=function(t){return void 0===this.capturedId&&!this.isDisabled(t)},t.prototype.isCaptured=function(){return void 0!==this.capturedId},t.prototype.isScrollDisabled=function(){return this.disabledScroll.size>0},t.prototype.isDisabled=function(t){var e=this.disabledGestures.get(t);return!!(e&&e.size>0)},t.prototype.newID=function(){return this.gestureId++,this.gestureId},t}(),o=function(){function t(t,e,n,r,i){this.id=e,this.name=n,this.disableScroll=i,this.priority=1e6*r+e,this.ctrl=t}return t.prototype.canStart=function(){return!!this.ctrl&&this.ctrl.canStart(this.name)},t.prototype.start=function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)},t.prototype.capture=function(){if(!this.ctrl)return!1;var t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t},t.prototype.release=function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))},t.prototype.destroy=function(){this.release(),this.ctrl=void 0},t}(),a=function(){function t(t,e,n,r){this.id=e,this.disable=n,this.disableScroll=r,this.ctrl=t}return t.prototype.block=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;t<e.length;t++)this.ctrl.disableGesture(e[t],this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}},t.prototype.unblock=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;t<e.length;t++)this.ctrl.enableGesture(e[t],this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}},t.prototype.destroy=function(){this.unblock(),this.ctrl=void 0},t}(),s="backdrop-no-scroll",u=new i,l=function(t,e,n,r){var i,o,a=c(t)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;return t.__zone_symbol__addEventListener?(i="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(i="addEventListener",o="removeEventListener"),t[i](e,n,a),function(){t[o](e,n,a)}},c=function(t){if(void 0===r)try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});t.addEventListener("optsTest",function(){},e)}catch(n){r=!1}return!!r},h=function(t){return t instanceof Document?t:t.ownerDocument},f=function(t){var e=!1,n=!1,r=!0,i=!1,o=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},t),a=o.canStart,s=o.onWillStart,c=o.onStart,f=o.onEnd,g=o.notCaptured,v=o.onMove,y=o.threshold,b={type:"pan",startX:0,startY:0,startTimeStamp:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,timeStamp:0,event:void 0,data:void 0},w=function(t,e,n){var r=o.maxAngle*(Math.PI/180),i="x"===o.direction,a=Math.cos(r),s=e*e,u=0,l=0,c=!1,h=0;return{start:function(t,e){u=t,l=e,h=0,c=!0},detect:function(t,e){if(!c)return!1;var n=t-u,r=e-l,o=n*n+r*r;if(o<s)return!1;var f=Math.sqrt(o),d=(i?n:r)/f;return h=d>a?1:d<-a?-1:0,c=!1,!0},isGesture:function(){return 0!==h},getDirection:function(){return h}}}
1(0,o.threshold),_=u.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),S=function(){e&&(i=!1,v&&v(b))},E=function(){return!(_&&!_.capture()||(e=!0,r=!1,b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp,s?s(b).then(C):C(),0))},C=function(){c&&c(b),r=!0},I=function(){e=!1,n=!1,i=!1,r=!0,_.release()},k=function(t){var n=e,i=r;I(),i&&(d(b,t),n?f&&f(b):g&&g(b))},T=function(t,e,n,r,i){var o,a,s,u,c,f,d,p=0,m=function(r){p=Date.now()+2e3,e(r)&&(!a&&n&&(a=l(t,"touchmove",n,i)),s||(s=l(t,"touchend",v,i)),u||(u=l(t,"touchcancel",v,i)))},g=function(r){p>Date.now()||e(r)&&(!f&&n&&(f=l(h(t),"mousemove",n,i)),d||(d=l(h(t),"mouseup",y,i)))},v=function(t){b(),r&&r(t)},y=function(t){w(),r&&r(t)},b=function(){a&&a(),s&&s(),u&&u(),a=s=u=void 0},w=function(){f&&f(),d&&d(),f=d=void 0},_=function(){b(),w()},S=function(e){e?(o&&o(),c&&c(),o=c=void 0,_()):(o||(o=l(t,"touchstart",m,i)),c||(c=l(t,"mousedown",g,i)))};return{setDisabled:S,stop:_,destroy:function(){S(!0),r=n=e=void 0}}}(o.el,function(t){var e=m(t);return!(n||!r)&&(p(t,b),b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp=e,b.velocityX=b.velocityY=b.deltaX=b.deltaY=0,b.event=t,(!a||!1!==a(b))&&(_.release(),!!_.start()&&(n=!0,0===y?E():(w.start(b.startX,b.startY),!0))))},function(t){e?!i&&r&&(i=!0,d(b,t),requestAnimationFrame(S)):(d(b,t),w.detect(b.currentX,b.currentY)&&(w.isGesture()&&E()||O()))},k,{capture:!1}),O=function(){I(),T.stop(),g&&g(b)};return{setDisabled:function(t){t&&e&&k(void 0),T.setDisabled(t)},destroy:function(){_.destroy(),T.destroy()}}},d=function(t,e){if(e){var n=t.currentX,r=t.currentY,i=t.timeStamp;p(e,t);var o=t.currentX,a=t.currentY,s=(t.timeStamp=m(e))-i;if(s>0&&s<100){var u=(a-r)/s;t.velocityX=(o-n)/s*.7+.3*t.velocityX,t.velocityY=.7*u+.3*t.velocityY}t.deltaX=o-t.startX,t.deltaY=a-t.startY,t.event=e}},p=function(t,e){var n=0,r=0;if(t){var i=t.changedTouches;if(i&&i.length>0){var o=i[0];n=o.clientX,r=o.clientY}else void 0!==t.pageX&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},m=function(t){return t.timeStamp||Date.now()}},crnd:function(t,e,n){var r={"./pages/services/services.module.ngfactory":["Rpht",13]};function i(t){var e=r[t];return e?n.e(e[1]).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return Object.keys(r)},i.id="crnd",t.exports=i},d8cw:function(t,e,n){"use strict";var r=n("vQkR")(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),n("pSMy")({target:"Array",proto:!0,forced:i},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("gJLK")("find")},dB9c:function(t,e,n){"use strict";n.r(e);var r,i,o,a=n("wj3C"),s=n.n(a),u=n("mrSG"),l=n("zVF4"),c=((r={})["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["should-be-overriden"]="This method should be overriden by extended classes.",r["bad-sender-id"]="Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().",r["permission-default"]="The required permissions were not granted and dismissed instead.",r["permission-blocked"]="The required permissions were not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["notifications-blocked"]="Notifications have been blocked.",r["failed-serviceworker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["sw-registration-expected"]="A service worker registration was the expected input.",r["get-subscription-failed"]="There was an error when trying to get any existing Push Subscriptions.",r["invalid-saved-token"]="Unable to access details of the saved token.",r["sw-reg-redundant"]="The service worker being used for push was made redundant.",r["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$message}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-subscribe-no-push-set"]="FCM returned an invali
1d response when getting an FCM token.",r["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$message}",r["token-update-failed"]="A problem occured while updating the user from FCM: {$message}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-before-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-delete-token"]="You must pass a valid token into deleteToken(), i.e. the token from getToken().",r["delete-token-not-found"]="The deletion attempt for token could not be performed as the token was not found.",r["delete-scope-not-found"]="The deletion attempt for service worker scope could not be performed as the scope was not found.",r["bg-handler-function-expected"]="The input to setBackgroundMessageHandler() must be a function.",r["no-window-client-to-msg"]="An attempt was made to message a non-existant window client.",r["unable-to-resubscribe"]="There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$message}",r["no-fcm-token-for-resubscribe"]="Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.",r["failed-to-delete-token"]="Unable to delete the currently saved token.",r["no-sw-in-reg"]="Even though the service worker registration was successful, there was a problem accessing the service worker itself.",r["incorrect-gcm-sender-id"]="Please change your web app manifest's 'gcm_sender_id' value to '103953800507' to use Firebase messaging.",r["bad-scope"]="The service worker scope must be a string with at least one character.",r["bad-vapid-key"]="The public VAPID key is not a Uint8Array with 65 bytes.",r["bad-subscription"]="The subscription must be a valid PushSubscription.",r["bad-token"]="The FCM Token used for storage / lookup was not a valid token string.",r["bad-push-set"]="The FCM push set used for storage / lookup was not not a valid push set string.",r["failed-delete-vapid-key"]="The VAPID key could not be deleted.",r["invalid-public-vapid-key"]="The public VAPID key must be a string.",r["use-public-key-before-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r["public-vapid-key-decryption-failed"]="The public VAPID key did not equal 65 bytes when decrypted.",r),h=new l.ErrorFactory("messaging","Messaging",c),f=new Uint8Array([4,51,148,247,223,161,235,177,220,3,162,94,21,113,219,72,211,46,237,237,178,52,219,183,71,58,12,143,196,204,225,111,60,140,132,223,171,182,102,62,242,12,212,139,254,227,249,118,47,20,28,99,8,106,111,45,177,26,149,176,206,55,192,156,110]),d="https://fcm.googleapis.com";function p(t,e){if(null==t||null==e)return!1;if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(var n=new DataView(t),r=new DataView(e),i=0;i<t.byteLength;i++)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function m(t){return function(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,Object(u.__spread)(e)))}(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}!function(t){t.TYPE_OF_MSG="firebase-messaging-msg-type",t.DATA="firebase-messaging-msg-data"}(i||(i={})),function(t){t.PUSH_MSG_RECEIVED="push-msg-received",t.NOTIFICATION_CLICKED="notification-clicked"}(o||(o={}));var g=function(){function t(){}return t.prototype.getToken=function(t,e,n){return Object(u.__awaiter)(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return Object(u.__generator)(this,function(u){switch(u.label){case 0:r=m(e.getKey("p256dh")),i=m(e.getKey("auth")),o="authorized_entity="+t+"&endpoint="+e.endpoint+"&encryption_key="+r+"&encryption_auth="+i,p(n.buffer,f.buffer)||(a=m(n),o+="&application_pub_key="+a),(s=new Headers).append("Content-Type","application/x-www-form-urlencoded"),l={method:"POST",headers:s,body:o},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch(d+"/fcm/connect/subscribe",l)];case 2:return[4,u.sent().json()];case 3:return c=u.sent(),[3,5];case 4:throw u.sent(),h.create("token-subscribe-failed");case 5:if(c.error)throw h.create("token-subscribe-failed",{message:c.error.message});if(!c.token)throw h.create("token-subscribe-no-token");if(!c.pushSet)throw h.create("token-subscribe-no-push-set");return[2,{token:c.token,pushSet:c.pushSet}]}})})},t.prototype.updateToken=function(t,e,n,r,i){return Object(u.__awaiter)(this,void 0,void 0,function(){var o,a,s,l,c,g,v;return Object(u.__generator)(this,function(u){switch(u.label){case 0:o=m(r.getKey("p256dh")),a=m(r.getKey("auth")),s="push_set="+n+"&token="+e+"&authorized_entity="+t+"&endpoint="+r.endpoint+"&encryption_key="+o+"&encryption_auth="+a,p(i.buffer,f.buffer)||(l=m(i),s+="&application_pub_key="+l),(c=new Headers).append("Content-Type","application/x-www-form-urlencoded"),g={method:"POST",headers:c,body:s},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch(d+"/fcm/connect/subscribe",g)];case 2:return[4,u.sent().json()];case 3:return v=u.sent(),[3,5];case 4:throw u.sent(),h.create("token-update-failed");case 5:if(v.error)throw h.create("token-update-failed",{message:v.error.message});if(!v.token)throw h.create("token-update-no-token");return[2,v.token]}})})},t.prototype.deleteToken=function(t,e,n){return Object(u.__awaiter)(this,void 0,void 0,function(){var r,i,o,a;return Object(u.__generator)(this,function(s){switch(s.label){case 0:r="authorized_entity="+t+"&token="+e+"&pushSet="+n,(i=new Headers).append("Content-Type","application/x-www-form-urlencoded"),o={method:"POST",headers:i,body:r},s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(d+"/fcm/connect/unsubscribe",o)];case 2:return[4,s.sent().json()];case 3:if((a=s.sent()).error)throw h.create("token-unsubscribe-failed",{message:a.error.message});return[3,5];case 4:throw s.sent(),h.create("token-unsubscribe-failed");case 5:return[2]}})})},t}();function v(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(e),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}var y=function(){function t(){this.dbPromise=null}return t.prototype.get=function(t){return this.createTransaction(function(e){return e.get(t)})},t.prototype.getIndex=function(t,e){return this.createTransaction(function(n){return n.index(t).get(e)})},t.prototype.put=function(t){return this.createTransaction(function(e){return e.put(t)},"readwrite")},t.prototype.delete=function(t){return this.createTransaction(function(e){return e.delete(t)},"readwrite")},t.prototype.closeDatabase=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(t){switch(t.label){case 0:return this.dbPromise?[4,this.dbPromise]:[3,2];case 1:t.sent().close(),this.dbPromise=null,t.label=2;case 2:return[2]}})})},t.prototype.createTransaction=function(t,e){return void 0===e&&(e="readonly"),Object(u.__awaiter)(this,void 0,void 0,function(){var n,r,i,o;return Object(u.__generator)(this,function(a){switch(a.label){case 0:return[4,this.getDb()];case 1:return n=a.sent(),r=n.transaction(this.objectStoreName,e),i=r.objectStore(this.objectStoreName),[4,b(t(i))];case 2:return o=a.sent(),[2,new Promise(function(t,e){r.oncomplete=function(){t(o)},r.onerror=function(){e(r.error)}})]}})})},t.prototype.getDb=function(){var t=this;return this.dbPromise||(this.dbPromise=new Promise(function(e,n){var r=indexedDB.open(t.dbName,t.dbVersion);r.onsuccess=function(){e(r.result)},r.onerror=function(){t.dbPromise=null,n(r.error)},r.onupgradeneeded=function(e){return t.onDbUpgrade(r,e)}})),this.dbPromise},t}();function b(t){return new Promise(function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}})}var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dbName="fcm_token_details_db",e.dbVersion=3,e.objectStoreName="fcm_token_object_Store",e}return Object(u.__extends)(e,t),e.prototype.onDbUpgrade=function(t,e){var n=t.result;switch(e.oldVersion){case 0:(r=n.createObjectStore(this.objectStoreName,{keyPath:"swScope"})).createIndex("fcmSenderId","fcmSenderId",{unique:!1}),r.createIndex("fcmToken","fcmToken",{unique:!0});case 1:!function(){var t=indexedDB.open("undefined");t.onerror=function(t){},t.onsuccess=function(e){!function(t){if(t.objectStoreNames.contains("fcm_token_object_Store")){var e=t.transaction("fcm_token_object_Store").objectStore("fcm_token_object_Store"),n=new g,r=e.openCursor();r.onerror=function(t){console.warn("Unable to cleanup old IDB.",t)},r.onsuccess=function(){var e=r.result;if(e){var i=e.value;n.deleteToken(i.fcmSenderId,i.fcmToken,i.fcmPushSet),e.continue()}else t.close(),indexedDB.deleteDatabase("undefined")}}}(t.result)}}();case 2:var r,i=(r=t.transaction.objectStore(this.objectStoreName)).openCursor();i.onsuccess=function(){var t=i.result;if(t){var e=t.value,n=Object(u.__assign)({},e);e.createTime||(n.createTime=Date.now()),"string"==typeof e.vapidKey&&(n.vapidKey=v(e.vapidKey)),"string"==typeof e.auth&&(n.auth=v(e.auth).buffer),"string"==typeof e.auth&&(n.p256dh=v(e.p256dh).buffer),t.update(n),t.continue()}}}},e.prototype.getTokenDetailsFromToken=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(e){if(!t)throw h.create("bad-token");return _({fcmToken:t}),[2,this.getIndex("fcmToken",t)]})})},e.prototype.getTokenDetailsFromSWScope=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(e){if(!t)throw h.create("bad-scope");return _({swScope:t}),[2,this.get(t)]})})},e.prototype.saveTokenDetails=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(e){if(!t.swScope)throw h.create("bad-scope");
1if(!t.vapidKey)throw h.create("bad-vapid-key");if(!t.endpoint||!t.auth||!t.p256dh)throw h.create("bad-subscription");if(!t.fcmSenderId)throw h.create("bad-sender-id");if(!t.fcmToken)throw h.create("bad-token");if(!t.fcmPushSet)throw h.create("bad-push-set");return _(t),[2,this.put(t)]})})},e.prototype.deleteToken=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:return"string"!=typeof t||0===t.length?[2,Promise.reject(h.create("invalid-delete-token"))]:[4,this.getTokenDetailsFromToken(t)];case 1:if(!(e=n.sent()))throw h.create("delete-token-not-found");return[4,this.delete(e.swScope)];case 2:return n.sent(),[2,e]}})})},e}(y);function _(t){if(t.fcmToken&&("string"!=typeof t.fcmToken||0===t.fcmToken.length))throw h.create("bad-token");if(t.swScope&&("string"!=typeof t.swScope||0===t.swScope.length))throw h.create("bad-scope");if(t.vapidKey&&(!(t.vapidKey instanceof Uint8Array)||65!==t.vapidKey.length))throw h.create("bad-vapid-key");if(t.endpoint&&("string"!=typeof t.endpoint||0===t.endpoint.length))throw h.create("bad-subscription");if(t.auth&&!(t.auth instanceof ArrayBuffer))throw h.create("bad-subscription");if(t.p256dh&&!(t.p256dh instanceof ArrayBuffer))throw h.create("bad-subscription");if(t.fcmSenderId&&("string"!=typeof t.fcmSenderId||0===t.fcmSenderId.length))throw h.create("bad-sender-id");if(t.fcmPushSet&&("string"!=typeof t.fcmPushSet||0===t.fcmPushSet.length))throw h.create("bad-push-set")}var S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dbName="fcm_vapid_details_db",e.dbVersion=1,e.objectStoreName="fcm_vapid_object_Store",e}return Object(u.__extends)(e,t),e.prototype.onDbUpgrade=function(t){t.result.createObjectStore(this.objectStoreName,{keyPath:"swScope"})},e.prototype.getVapidFromSWScope=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:if("string"!=typeof t||0===t.length)throw h.create("bad-scope");return[4,this.get(t)];case 1:return[2,(e=n.sent())?e.vapidKey:void 0]}})})},e.prototype.saveVapidDetails=function(t,e){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(n){if("string"!=typeof t||0===t.length)throw h.create("bad-scope");if(null===e||65!==e.length)throw h.create("bad-vapid-key");return[2,this.put({swScope:t,vapidKey:e})]})})},e.prototype.deleteVapidDetails=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:return[4,this.getVapidFromSWScope(t)];case 1:if(!(e=n.sent()))throw h.create("delete-scope-not-found");return[4,this.delete(t)];case 2:return n.sent(),[2,e]}})})},e}(y),E="messagingSenderId",C=function(){function t(t){var e=this;if(!t.options[E]||"string"!=typeof t.options[E])throw h.create("bad-sender-id");this.messagingSenderId=t.options[E],this.tokenDetailsModel=new w,this.vapidDetailsModel=new S,this.iidModel=new g,this.app=t,this.INTERNAL={delete:function(){return e.delete()}}}return t.prototype.getToken=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){var t,e,n,r,i;return Object(u.__generator)(this,function(o){switch(o.label){case 0:if("denied"===(t=this.getNotificationPermission_()))throw h.create("notifications-blocked");return"granted"!==t?[2,null]:[4,this.getSWRegistration_()];case 1:return e=o.sent(),[4,this.getPublicVapidKey_()];case 2:return n=o.sent(),[4,this.getPushSubscription(e,n)];case 3:return r=o.sent(),[4,this.tokenDetailsModel.getTokenDetailsFromSWScope(e.scope)];case 4:return(i=o.sent())?[2,this.manageExistingToken(e,r,n,i)]:[2,this.getNewToken(e,r,n)]}})})},t.prototype.manageExistingToken=function(t,e,n,r){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(i){switch(i.label){case 0:return function(t,e,n){if(!n.vapidKey||!p(e.buffer,n.vapidKey.buffer))return!1;var r=t.endpoint===n.endpoint,i=p(t.getKey("auth"),n.auth),o=p(t.getKey("p256dh"),n.p256dh);return r&&i&&o}(e,n,r)?Date.now()<r.createTime+6048e5?[2,r.fcmToken]:[2,this.updateToken(t,e,n,r)]:[4,this.deleteTokenFromDB(r.fcmToken)];case 1:return i.sent(),[2,this.getNewToken(t,e,n)]}})})},t.prototype.updateToken=function(t,e,n,r){return Object(u.__awaiter)(this,void 0,void 0,function(){var i,o,a;return Object(u.__generator)(this,function(s){switch(s.label){case 0:return s.trys.push([0,4,,6]),[4,this.iidModel.updateToken(this.messagingSenderId,r.fcmToken,r.fcmPushSet,e,n)];case 1:return i=s.sent(),o={swScope:t.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:i,fcmPushSet:r.fcmPushSet,createTime:Date.now(),endpoint:e.endpoint,auth:e.getKey("auth"),p256dh:e.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(o)];case 2:return s.sent(),[4,this.vapidDetailsModel.saveVapidDetails(t.scope,n)];case 3:return s.sent(),[2,i];case 4:return a=s.sent(),[4,this.deleteToken(r.fcmToken)];case 5:throw s.sent(),a;case 6:return[2]}})})},t.prototype.getNewToken=function(t,e,n){return Object(u.__awaiter)(this,void 0,void 0,function(){var r,i;return Object(u.__generator)(this,function(o){switch(o.label){case 0:return[4,this.iidModel.getToken(this.messagingSenderId,e,n)];case 1:return r=o.sent(),i={swScope:t.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:r.token,fcmPushSet:r.pushSet,createTime:Date.now(),endpoint:e.endpoint,auth:e.getKey("auth"),p256dh:e.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(i)];case 2:return o.sent(),[4,this.vapidDetailsModel.saveVapidDetails(t.scope,n)];case 3:return o.sent(),[2,r.token]}})})},t.prototype.deleteToken=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e,n;return Object(u.__generator)(this,function(r){switch(r.label){case 0:return[4,this.deleteTokenFromDB(t)];
1case 1:return r.sent(),[4,this.getSWRegistration_()];case 2:return(e=r.sent())?[4,e.pushManager.getSubscription()]:[3,4];case 3:if(n=r.sent())return[2,n.unsubscribe()];r.label=4;case 4:return[2,!0]}})})},t.prototype.deleteTokenFromDB=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:return[4,this.tokenDetailsModel.deleteToken(t)];case 1:return e=n.sent(),[4,this.iidModel.deleteToken(e.fcmSenderId,e.fcmToken,e.fcmPushSet)];case 2:return n.sent(),[2]}})})},t.prototype.getPushSubscription=function(t,e){return t.pushManager.getSubscription().then(function(n){return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:e})})},t.prototype.requestPermission=function(){throw h.create("only-available-in-window")},t.prototype.useServiceWorker=function(t){throw h.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){throw h.create("only-available-in-window")},t.prototype.onMessage=function(t,e,n){throw h.create("only-available-in-window")},t.prototype.onTokenRefresh=function(t,e,n){throw h.create("only-available-in-window")},t.prototype.setBackgroundMessageHandler=function(t){throw h.create("only-available-in-sw")},t.prototype.delete=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(t){switch(t.label){case 0:return[4,Promise.all([this.tokenDetailsModel.closeDatabase(),this.vapidDetailsModel.closeDatabase()])];case 1:return t.sent(),[2]}})})},t.prototype.getNotificationPermission_=function(){return Notification.permission},t.prototype.getTokenDetailsModel=function(){return this.tokenDetailsModel},t.prototype.getVapidDetailsModel=function(){return this.vapidDetailsModel},t.prototype.getIidModel=function(){return this.iidModel},t}(),I=function(t){function e(e){var n=t.call(this,e)||this;return n.bgMessageHandler=null,self.addEventListener("push",function(t){n.onPush(t)}),self.addEventListener("pushsubscriptionchange",function(t){n.onSubChange(t)}),self.addEventListener("notificationclick",function(t){n.onNotificationClick(t)}),n}return Object(u.__extends)(e,t),e.prototype.onPush=function(t){t.waitUntil(this.onPush_(t))},e.prototype.onSubChange=function(t){t.waitUntil(this.onSubChange_(t))},e.prototype.onNotificationClick=function(t){t.waitUntil(this.onNotificationClick_(t))},e.prototype.onPush_=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,o,a;return Object(u.__generator)(this,function(s){switch(s.label){case 0:if(!t.data)return[2];try{e=t.data.json()}catch(u){return[2]}return[4,this.hasVisibleClients_()];case 1:return s.sent()?[2,this.sendMessageToWindowClients_(e)]:(n=this.getNotificationData_(e))?(r=n.title||"",[4,this.getSWRegistration_()]):[3,3];case 2:return i=s.sent(),o=n.actions,a=Notification.maxActions,o&&a&&o.length>a&&console.warn("This browser only supports "+a+" actions.The remaining actions will not be displayed."),[2,i.showNotification(r,n)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(e)]:[3,5];case 4:return s.sent(),[2];case 5:return[2]}})})},e.prototype.onSubChange_=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var t,e,n,r;return Object(u.__generator)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return t=i.sent(),[3,3];case 2:throw e=i.sent(),h.create("unable-to-resubscribe",{message:e});case 3:return i.trys.push([3,5,,8]),[4,t.pushManager.getSubscription()];case 4:return i.sent(),[3,8];case 5:return n=i.sent(),[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(t.scope)];case 6:if(!(r=i.sent()))throw n;return[4,this.deleteToken(r.fcmToken)];case 7:throw i.sent(),n;case 8:return[2]}})})},e.prototype.onNotificationClick_=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e,n,r,i;return Object(u.__generator)(this,function(a){switch(a.label){case 0:return t.notification&&t.notification.data&&t.notification.data.FCM_MSG?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),(e=t.notification.data.FCM_MSG).notification&&(n=e.fcmOptions&&e.fcmOptions.link||e.notification.click_action)?[4,this.getWindowClient_(n)]:[2]):[2];case 1:return(r=a.sent())?[3,3]:[4,self.clients.openWindow(n)];case 2:return r=a.sent(),[3,5];
1case 3:return[4,r.focus()];case 4:r=a.sent(),a.label=5;case 5:return r?(delete e.notification,delete e.fcmOptions,i=T(o.NOTIFICATION_CLICKED,e),[2,this.attemptToMessageClient_(r,i)]):[2]}})})},e.prototype.getNotificationData_=function(t){var e;if(t&&"object"==typeof t.notification){var n=Object(u.__assign)({},t.notification);return n.data=Object(u.__assign)({},t.notification.data,((e={}).FCM_MSG=t,e)),n}},e.prototype.setBackgroundMessageHandler=function(t){if(!t||"function"!=typeof t)throw h.create("bg-handler-function-expected");this.bgMessageHandler=t},e.prototype.getWindowClient_=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e,n,r,i;return Object(u.__generator)(this,function(o){switch(o.label){case 0:return e=new URL(t,self.location.href).href,[4,k()];case 1:for(n=o.sent(),r=null,i=0;i<n.length;i++)if(new URL(n[i].url,self.location.href).href===e){r=n[i];break}return[2,r]}})})},e.prototype.attemptToMessageClient_=function(t,e){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(n){if(!t)throw h.create("no-window-client-to-msg");return t.postMessage(e),[2]})})},e.prototype.hasVisibleClients_=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(t){switch(t.label){case 0:return[4,k()];case 1:return[2,t.sent().some(function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")})]}})})},e.prototype.sendMessageToWindowClients_=function(t){return Object(u.__awaiter)(this,void 0,void 0,function(){var e,n,r=this;return Object(u.__generator)(this,function(i){switch(i.label){case 0:return[4,k()];case 1:return e=i.sent(),n=T(o.PUSH_MSG_RECEIVED,t),[4,Promise.all(e.map(function(t){return r.attemptToMessageClient_(t,n)}))];case 2:return i.sent(),[2]}})})},e.prototype.getSWRegistration_=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(t){return[2,self.registration]})})},e.prototype.getPublicVapidKey_=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){var t,e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:return[4,this.getSWRegistration_()];case 1:if(!(t=n.sent()))throw h.create("sw-registration-expected");return[4,this.getVapidDetailsModel().getVapidFromSWScope(t.scope)];case 2:return null==(e=n.sent())?[2,f]:[2,e]}})})},e}(C);function k(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function T(t,e){var n;return(n={})[i.TYPE_OF_MSG]=t,n[i.DATA]=e,n}var O=function(t){function e(e){var n=t.call(this,e)||this;return n.registrationToUse=null,n.publicVapidKeyToUse=null,n.manifestCheckPromise=null,n.messageObserver=null,n.tokenRefreshObserver=null,n.onMessageInternal=Object(l.createSubscribe)(function(t){n.messageObserver=t}),n.onTokenRefreshInternal=Object(l.createSubscribe)(function(t){n.tokenRefreshObserver=t}),n.setupSWMessageListener_(),n}return Object(u.__extends)(e,t),e.prototype.getToken=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(e){switch(e.label){case 0:return this.manifestCheckPromise||(this.manifestCheckPromise=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){var t,e;return Object(u.__generator)(this,function(n){switch(n.label){case 0:if(!(t=document.querySelector('link[rel="manifest"]')))return[2];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(t.href)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return n.sent(),[2];case 5:if(!e||!e.gcm_sender_id)return[2];if("103953800507"!==e.gcm_sender_id)throw h.create("incorrect-gcm-sender-id");return[2]}})})}()),[4,this.manifestCheckPromise];case 1:return e.sent(),[2,t.prototype.getToken.call(this)]}})})},e.prototype.requestPermission=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){var t;return Object(u.__generator)(this,function(e){switch(e.label){case 0:return"granted"===this.getNotificationPermission_()?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw h.create("denied"===t?"permission-blocked":"permission-default")}})})},e.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw h.create("sw-registration-expected");if(null!=this.registrationToUse)throw h.create("use-sw-before-get-token");this.registrationToUse=t},e.prototype.usePublicVapidKey=function(t){if("string"!=typeof t)throw h.create("invalid-public-vapid-key");if(null!=this.publicVapidKeyToUse)throw h.create("use-public-key-before-get-token");var e=v(t);if(65!==e.length)throw h.create("public-vapid-key-decryption-failed");this.publicVapidKeyToUse=e},e.prototype.onMessage=function(t,e,n){return"function"==typeof t?this.onMessageInternal(t,e,n):this.onMessageInternal(t)},e.prototype.onTokenRefresh=function(t,e,n){return"function"==typeof t?this.onTokenRefreshInternal(t,e,n):this.onTokenRefreshInternal(t)},e.prototype.waitForRegistrationToActivate_=function(t){var e=t.installing||t.waiting||t.active;return new Promise(function(n,r){if(e)if("activated"!==e.state)if("redundant"!==e.state){var i=function(){if("activated"===e.state)n(t);else{if("redundant"!==e.state)return;r(h.create("sw-reg-redundant"))}
1e.removeEventListener("statechange",i)};e.addEventListener("statechange",i)}else r(h.create("sw-reg-redundant"));else n(t);else r(h.create("no-sw-in-reg"))})},e.prototype.getSWRegistration_=function(){var t=this;return this.registrationToUse?this.waitForRegistrationToActivate_(this.registrationToUse):(this.registrationToUse=null,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).catch(function(t){throw h.create("failed-serviceworker-registration",{browserErrorMessage:t.message})}).then(function(e){return t.waitForRegistrationToActivate_(e).then(function(){return t.registrationToUse=e,e.update(),e})}))},e.prototype.getPublicVapidKey_=function(){return Object(u.__awaiter)(this,void 0,void 0,function(){return Object(u.__generator)(this,function(t){return this.publicVapidKeyToUse?[2,this.publicVapidKeyToUse]:[2,f]})})},e.prototype.setupSWMessageListener_=function(){var t=this;navigator.serviceWorker.addEventListener("message",function(e){if(e.data&&e.data[i.TYPE_OF_MSG]){var n=e.data;switch(n[i.TYPE_OF_MSG]){case o.PUSH_MSG_RECEIVED:case o.NOTIFICATION_CLICKED:t.messageObserver&&t.messageObserver.next(n[i.DATA])}}},!1)},e}(C);function A(){return self&&"ServiceWorkerGlobalScope"in self?"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}s.a.INTERNAL.registerService("messaging",function(t){if(!A())throw h.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new I(t):new O(t)},{isSupported:A})},dC0D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(i.a)},dEwP:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("F/XL"),i=n("Txjg");function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(i.a)()(r.a.apply(void 0,t))}},dIU2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.activatedRoute=t}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){t.pvr=e.pvr})},t}()},dYkh:function(t,e,n){n("q94Q")("search")},dstF:function(t,e,n){n("q94Q")("replace")},dzgT:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("nkY7"),o=n("isby"),a=n("MGBS"),s=n("zotm"),u=n("IUTb"),l={};function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new h(n))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(l),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=this.toRespond?o[n]===l?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(a.a)}
1,ehBJ:function(t,e,n){n("73IE"),t.exports=n("vLVD")("String","startsWith")},ehg7:function(t,e,n){var r=n("kpns");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},fw2a:function(t,e){e.f=Object.getOwnPropertySymbols},g7Su:function(t,e,n){var r=n("0HDe"),i=n("aXXJ")("species");t.exports=function(t){return!r(function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},gIEr:function(t,e,n){n("q94Q")("species")},gIcY:function(t,e,n){"use strict";var r=n("mrSG"),i=n("CcnG"),o=n("6blF"),a=n("isby"),s=n("G5J1"),u=n("zotm"),l=n("MGBS"),c=n("67Y/"),h=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var a=n[o],s=Object(u.a)(r,a,null,o);s&&r.add(s)}return r}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()},e}(l.a),f=n("0/uQ"),d=n("ZYjt");n.d(e,"p",function(){return Et}),n.d(e,"q",function(){return St}),n.d(e,"r",function(){return D}),n.d(e,"s",function(){return mt}),n.d(e,"b",function(){return m}),n.d(e,"i",function(){return S}),n.d(e,"a",function(){return C}),n.d(e,"c",function(){return I}),n.d(e,"j",function(){return x}),n.d(e,"k",function(){return Z}),n.d(e,"l",function(){return tt}),n.d(e,"m",function(){return pt}),n.d(e,"e",function(){return wt}),n.d(e,"f",function(){return gt}),n.d(e,"g",function(){return vt}),n.d(e,"d",function(){return _t}),n.d(e,"o",function(){return y}),n.d(e,"h",function(){return Ct}),n.d(e,"n",function(){return It});var p=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(p);function g(t){return null==t||0===t.length}var v=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function t(){}return t.min=function(t){return function(e){if(g(e.value)||g(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(g(e.value)||g(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return g(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return g(t.value)?null:v.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(g(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(g(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(b);return 0==e.length?null:function(t){return _(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(b);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Object(a.a)(n[0])&&(n=n[0]),0===n.length?s.a:e?t(n).pipe(Object(c.a)(function(t){return e.apply(void 0,t)})):new o.a(function(t){return new h(t,n)})}(function(t,n){return e.map(function(e){return e(t)})}(t).map(w)).pipe(Object(c.a)(_))}},t}();function b(t){return null!=t}function w(t){var e=Object(i.vb)(t)?Object(f.a)(t):t;if(!Object(i.ub)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function _(t){var e=t.reduce(function(t,e){return null!=e?Object(r.__assign)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var S=new i.p("NgValueAccessor"),E=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),C=new i.p("CompositionEventMode"),I=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(d.r)()?Object(d.r)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
vendor: 4,541 bytes, line 1
1,t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function k(t){return t.validate?function(e){return t.validate(e)}:t}function T(t){return t.validate?function(e){return t.validate(e)}:t}var O=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function A(){throw new Error("unimplemented")}var x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),e}(p),D=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),P=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(x),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}(),N=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),j='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',R='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',M='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',L=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\
1n\n Example:\n\n "+j)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+R+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+M)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+j)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+R)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"
vendor: 20,859 bytes, line 1
1===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function F(t,e){return Object(r.__spread)(e.path,[t])}function V(t,e){t||z(e,"Cannot find control with"),e.valueAccessor||z(e,"No value accessor for form control with"),t.validator=y.compose([t.validator,e.validator]),t.asyncValidator=y.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&U(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&U(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function U(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function q(t,e){null==t&&z(e,"Cannot find control with"),t.validator=y.compose([t.validator,e.validator]),t.asyncValidator=y.composeAsync([t.asyncValidator,e.asyncValidator])}function B(t){return z(t,"There is no FormControl instance attached to form control element with")}function z(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function H(t){return null!=t?y.compose(t.map(k)):null}function G(t){return null!=t?y.composeAsync(t.map(T)):null}function $(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(i.wb)(e,n.currentValue)}var K=[E,N,O,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i.wb}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var i=Object(r.__values)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),t))return a}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i.wb}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(i=n.options,o=0;o<i.length;o++)(a=i.item(o)).selected&&(s=e._getOptionValue(a.value),r.push(s));e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){var e,n;try{for(var i=Object(r.__values)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a)._value,t))return a}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}(),P];function W(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Q(t,e){if(!e)return null;Array.isArray(e)||z(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===I?n=e:(o=e,K.some(function(t){return o.constructor===t})?(r&&z(t,"More than one built-in value accessor matches form control with"),r=e):(i&&z(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(z(t,"No valid value accessor for form control with"),null)}function J(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return F(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return H(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return G(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(m),Y=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),Z=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(Y),tt=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(Y);function et(t){var e=rt(t)?t.validators:t;return Array.isArray(e)?H(e):e||null}function nt(t,e){var n=rt(e)?e.asyncValidators:t;return Array.isArray(n)?G(n):n||null}function rt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var it=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=et(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=nt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.__assign)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.__assign)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=w(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof at?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof st&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new i.m,this.statusChanges=new i.m},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){rt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),ot=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,et(n),nt(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.__extends)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(it),at=function(t){function e(e,n,r){var i=t.call(this,et(n),nt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.__extends)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof ot?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.__values)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control with name: '"+n+"'.")})},e}(it),st=function(t){function e(e,n,r){var i=t.call(this,et(n),nt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.__extends)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof ot?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.__values)(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(it),ut=Promise.resolve(null),lt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.m,r.form=new at({},H(e),G(n)),r}return Object(r.__extends)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;ut.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),V(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;ut.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),J(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;ut.then(function(){var n=e._findContainer(t.path),r=new at({});q(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;ut.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;ut.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,W(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(m),ct=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+j+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+R+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+M)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+R+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+M)},t.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated
1in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},t}(),ht=new i.p("NgFormSelectorWarning"),ft=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return Object(r.__extends)(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof lt||ct.modelGroupParentException()},e}(X),dt=Promise.resolve(null),pt=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a.control=new ot,a._registered=!1,a.update=new i.m,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=Q(a,o),a}return Object(r.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),$(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?F(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return H(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return G(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){V(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof ft)&&this._parent instanceof X?ct.formGroupNameException():this._parent instanceof ft||this._parent instanceof lt||ct.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ct.missingNameException()},e.prototype._updateValue=function(t){var e=this;dt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;dt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(x),mt=new i.p("NgModelWithFormControlWarning"),gt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.m,r}return Object(r.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return V(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){J(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);q(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);q(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,W(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;
1this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return B(e)}),e.valueAccessor.registerOnTouched(function(){return B(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&V(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=H(this._validators);this.form.validator=y.compose([this.form.validator,t]);var e=G(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||L.missingFormException()},e}(m),vt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(r.__extends)(e,t),e.prototype._checkParentType=function(){bt(this._parent)&&L.groupParentException()},e}(X),yt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(r.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return F(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return H(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return G(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){bt(this._parent)&&L.arrayParentException()},e}(m);function bt(t){return!(t instanceof vt||t instanceof gt||t instanceof yt)}var wt=function(t){function e(e,n,r,o,a){var s=t.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new i.m,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=Q(s,o),s}var n;return Object(r.__extends)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){L.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,r;this._added||this._setUpControl(),$(t,this.viewModel)&&("formControlName",e=n,this,r=this._ngModelWarningConfig,Object(i.Y)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(L.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return F(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return H(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return G(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof vt)&&this._parent instanceof X?L.ngModelGroupException():this._parent instanceof vt||this._parent instanceof gt||this._parent instanceof yt||L.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(x),_t=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new at(n,{asyncValidators:i,updateOn:o,validators:r})},t.prototype.control=function(t,e,n){return new ot(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});
1return new st(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof ot||t instanceof at||t instanceof st?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),St=function(){return function(){}}(),Et=function(){return function(){}}(),Ct=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:ht,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),It=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:mt,useValue:t.warnOnNgModelWithFormControl}]}},t}()},gJLK:function(t,e,n){var r=n("aXXJ")("unscopables"),i=n("tzov"),o=n("wBs/"),a=Array.prototype;null==a[r]&&o(a,r,i(null)),t.exports=function(t){a[r][t]=!0}},h3nO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e,n,r,i){var o=this;this.uid=t,this.displayName=e,this.email=n,this.photoURL=r,this.customClaims=i,this.hasAnyAuthority=function(t){return!!o.customClaims&&t.map(function(t){return o.customClaims[t]}).filter(function(t){return t}).reduce(function(t,e){return t||e},!1)}}return t.prototype.getOperators=function(){return"operators/"+this.email+"/list"},t.prototype.getContactNotificationsList=function(){return this.getNotificationsDocument()+"/contacts-request"},t.prototype.getNotificationsDocument=function(){return"notifications/"+this.email},t.prototype.getFCMMessagingTopic=function(){return"message/"+this.uid},t}()},h9Dq:function(t,e,n){"use strict";var r=n("mrSG"),i=function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("pugT").a);n.d(e,"a",function(){return o});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i)},hDTV:function(t,e,n){"use strict";n.d(e,"d",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"e",function(){return f}),n.d(e,"a",function(){return d}),n("mrSG");var r=n("CcnG"),i=n("Wcq6"),o=n.n(i),a=new r.p("angularfire2.app.options"),s=new r.p("angularfire2.app.nameOrConfig"),u=a,l=s,c=function(){return function(){}}(),h=new r.O("5.4.2");function f(t,e,n){var r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",o.a.apps.filter(function(t){return t&&t.name===r.name})[0]||e.runOutsideAngular(function(){return o.a.initializeApp(t,r)})}var d=function(){function t(t){o.a.registerVersion&&(o.a.registerVersion("angularfire",h.full,t.toString()),o.a.registerVersion("angular",r.N.full))}var e;return e=t,t.initializeApp=function(t,n){return{ngModule:e,providers:[{provide:u,useValue:t},{provide:l,useValue:n}]}},t}()},hEy5:function(t,e,n){var r=n("FnXw"),i=n("9Nts");t.exports=function(t,e,n){if(r(e))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(i(t))}},hJJ8:function(t,e,n){"use strict";n("iTTW");var r=n("gIcY"),i=(n("ZZ/e"),n("CcnG"),n("H+bZ"),n("n90K"),n("2g2N"),n("xZBe"),function(t){return function(e){return e&&e.controls&&Object.keys(e.controls).some(function(n){return!t(e.controls[n])})?null:{atLeastOne:!0}}});n("8s+1"),n("h3nO"),n.d(e,"a",function(){return s});
1var o=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},a=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=function(){function t(t,e,n,r,i,o,a,s){this.principal=t,this.activatedRoute=e,this.formBuilder=n,this.loadingController=r,this.toastService=i,this.location=o,this.storageService=a,this.apiService=s,this.uploading=!1}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){console.log("detect destinario ",e.user),t.destinatario=e.pvr,t.mittente=e.user}),this.validations_form=this.formBuilder.group({text:[""],file:[""]},{validator:i(r.o.required)})},t.prototype.sendAttachment=function(){var t=this;this.presentLoading();var e={uid:this.destinatario.uid,text:this.validations_form.get("text").value},n=this;this.storageService.uploadIfFile(this.file,"chats/"+this.destinatario.uid+"/"+this.mittente.email+"/user/").then(function(r){r&&(e.media=r),t.apiService.sendMessage(e).then(function(){n.dismissLoading(),n.location.back()})}).catch(function(e){t.toastService.makeToast(e.message),n.dismissLoading(),console.log(e)})},t.prototype.onKey=function(t){13===t.which&&this.sendAttachment(),t.preventDefault()},t.prototype.presentLoading=function(){return o(this,void 0,void 0,function(){var t;return a(this,function(e){switch(e.label){case 0:return t=this,[4,this.loadingController.create({message:"Please Wait...",id:"login"})];case 1:return t.loading=e.sent(),[4,this.loading.present()];case 2:return[2,e.sent()]}})})},t.prototype.dismissLoading=function(){return o(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.loading.dismiss()];case 1:return[2,t.sent()]}})})},t.prototype.handleInputChange=function(t){var e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0];this.file=e;var n=new FileReader;n.onload=this._handleReaderLoaded.bind(this),n.readAsDataURL(e),this.contentType=e.type},t.prototype._handleReaderLoaded=function(t){this.fileAsDataURL=t.target.result},t}()},hKQe:function(t,e,n){"use strict";n("6blF"),n("KOl+")},hdqJ:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},hney:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s});var r="ionViewWillEnter",i="ionViewDidEnter",o="ionViewWillLeave",a="ionViewDidLeave",s="ionViewWillUnload"},hoFm:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n("iTTW");var r=n("CcnG"),i=n("t/Na"),o=function(){function t(t){this.http=t}return t.prototype.getData=function(){var t=this;return this.data?Promise.resolve(this.data):new Promise(function(e){t.http.get("./../assets/emoji/emoji.json").subscribe(function(n){t.data=n,e(t.data)})})},t.ngInjectableDef=r.T({factory:function(){return new t(r.X(i.c))},token:t,providedIn:"root"}),t}()},"hsj+":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n("H+bZ");var r=function(){function t(t,e){this.pvrCmsContentService=t,this.activatedRoute=e,this.nextSlideInterval=10,this.slideOpts={effect:"flip",slidesPerView:"auto",auto
1play:!0}}return t.prototype.slidesDidLoad=function(t){t.startAutoplay()},t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){t.pvr=e.pvr,t.contentsToView=t.pvrCmsContentService.getHomeContents(e.pvr.uid)})},t}()},i0o1:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=(n("6nsN"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setUrl=function(t){this._url=t},e.prototype.getUrl=function(){return this._url},e}(n("tnAE").a))},iCuu:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},iTTW:function(t,e,n){"use strict";n("ABqa")},iXDR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){this.router=t,this.activatedRoute=e}return t.prototype.goToLogin=function(){console.log("pvr",this.pvr.domainName),this.router.navigate(["/",this.pvr.domainName,"login"])},t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){t.pvr=e.pvr})},t}()},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},iw74:function(t,e,n){"use strict";n.d(e,"c",function(){return s}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l}),n.d(e,"d",function(){return u});var r=n("CcnG"),i=n("oAJy"),o=n("uzCt"),a=function(){function t(t){var e=this;this._driver=null,this._dbPromise=new Promise(function(n,r){var a,s=Object.assign({name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},t||{});Object(i.defineDriver)(o).then(function(){a=Object(i.createInstance)(s)}).then(function(){return a.setDriver(e._getDriverOrder(s.driverOrder))}).then(function(){e._driver=a.driver(),n(a)}).catch(function(t){return r(t)})})}return Object.defineProperty(t.prototype,"driver",{get:function(){return this._driver},enumerable:!0,configurable:!0}),t.prototype.ready=function(){return this._dbPromise},t.prototype._getDriverOrder=function(t){return t.map(function(t){switch(t){case"sqlite":return o._driver;case"indexeddb":return i.INDEXEDDB;case"websql":return i.WEBSQL;case"localstorage":return i.LOCALSTORAGE}})},t.prototype.get=function(t){return this._dbPromise.then(function(e){return e.getItem(t)})},t.prototype.set=function(t,e){return this._dbPromise.then(function(n){return n.setItem(t,e)})},t.prototype.remove=function(t){return this._dbPromise.then(function(e){return e.removeItem(t)})},t.prototype.clear=function(){return this._dbPromise.then(function(t){return t.clear()})},t.prototype.length=function(){return this._dbPromise.then(function(t){return t.length()})},t.prototype.keys=function(){return this._dbPromise.then(function(t){return t.keys()})},t.prototype.forEach=function(t){return this._dbPromise.then(function(e){return e.iterate(t)})},t}(),s=new r.p("STORAGE_CONFIG_TOKEN");function u(t){return new a(t||{name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]})}var l=function(){function t(){}return t.forRoot=function(e){return void 0===e&&(e=null),{ngModule:t,providers:[{provide:s,useValue:e},{provide:a,useFactory:u,deps:[s]}]}},t}()},k2qa:function(t,e,n){var r=n("hdqJ");t.exports=Array.isArray||function(t){return"Array"==r(t)}},kpns:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"lb/b":function(t,e,n){t.exports=!n("0HDe")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},lcbw:function(t,e,n){"use strict";n.r(e),n("Uv6z"),n("pZxE"),n("9r11"),n("KaSA"),n("z5Af"),n("o/0F"),n("AzFY"),n("y2cN"),n("7xuS")},luCB:function(t,e,n){n("q94Q")("split")},mChF:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},mKQw:function(t,e,n){var r=n("0HDe"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==l||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},mZXl:function(t,e,n){"use strict";var r,i=n("mrSG"),o=n("FFOo"),a=n("G5J1"),s=n("F/XL"),u=n("XlPw");r||(r={});var l=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(u.a)(this.error);case"C":return Object(a.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function c(t,e){return void 0===e&&(e=0),function(n){return n.lift(new h(t,e))}}n.d(e,"a",function(){return c});var h=function(){function t(t,e){void 0===e&&(e=0),this.scheduler
1=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.scheduler,this.delay))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return i.__extends(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new d(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.createComplete()),this.unsubscribe()},e}(o.a),d=function(){return function(t,e){this.notification=t,this.destination=e}}()},mk1t:function(t,e,n){t.exports=!n("0HDe")(function(){return!String(Symbol())})},mrSG:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return s}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return l}),n.d(e,"__awaiter",function(){return c}),n.d(e,"__generator",function(){return h}),n.d(e,"__exportStar",function(){return f}),n.d(e,"__values",function(){return d}),n.d(e,"__read",function(){return p}),n.d(e,"__spread",function(){return m}),n.d(e,"__await",function(){return g}),n.d(e,"__asyncGenerator",function(){return v}),n.d(e,"__asyncDelegator",function(){return y}),n.d(e,"__asyncValues",function(){return b}
1),n.d(e,"__makeTemplateObject",function(){return w}),n.d(e,"__importStar",function(){return _}),n.d(e,"__importDefault",function(){return S});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function f(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function y(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}},"n0+C":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=(n("6nsN"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getUrl=function(){return"login"},e}(n("tnAE").a))},n90K:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("67Y/"),i=n("8s+1"),o=n("CcnG"),a=n("VRER"),s=function(){function t(t,e){var n=this;this.afStorage=t,this.principal=e,this.getUploadState=function(){return n.uploadState},this.getUploadProgress=function(){return n.uploadProgress}}return t.prototype.getDownloadURL=function(t){var e=this;return new Promise(function(n,r){var i=e.afStorage.ref(t);i.getMetadata().subscribe(function(t){return i.getDownloadURL().subscribe(function(t){return n(t)})},function(t){return r(t)})})},t.prototype.uploadIfFile=function(t,e){var n=this;return new Promise(function(i,o){if(t){var a=Math.random().toString(36).substring(2),s=n.principal.identity(),u=e+"/"+s.email+"/"+a,l=n.afStorage.ref(u).put(t);n.uploadState=l.snapshotChanges().pipe(Object(r.a)(function(t){return t.state})),n.uploadProgress=l.percentageChanges(),l.then(function(){return n.getDownloadURL(u)}).then(function(t){return i(t)}
1).catch(function(t){return o(t)})}else i(null)})},t.prototype.uploadIfFileAtPath=function(t,e){var n=this;return new Promise(function(i,o){if(t){var a=n.afStorage.ref(e).put(t);n.uploadState=a.snapshotChanges().pipe(Object(r.a)(function(t){return t.state})),n.uploadProgress=a.percentageChanges(),a.then(function(){return n.getDownloadURL(e)}).then(function(t){return i(t)}).catch(function(t){return o(t)})}else i(null)})},t.ngInjectableDef=o.T({factory:function(){return new t(o.X(a.a),o.X(i.a))},token:t,providedIn:"root"}),t}()},nD9t:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YBFb"),i=(n("Us1p"),n("DRYZ"),n("2g2N"),function(){function t(t,e,n,i,o,a){this.angularFireAuth=t,this.router=e,this.activatedRoute=n,this.toastService=i,this.storage=o,this.messaging=a,this.deferredPrompt=window.deferredPrompt,this.version=r.b}return t.prototype.ngOnInit=function(){var t=this;this.storage.getNotificationStatus().then(function(e){return t.notificationStatus=e}),this.activatedRoute.data.subscribe(function(e){t.pvrPath=e.pvr.domainName,t.user=e.user})},t.prototype.onChangeNotificationStatus=function(){var t=this;this.storage.setNotificationStatus(this.notificationStatus).then(function(e){t.notificationStatus?t.messaging.requestPermission().then(function(e){return t.toastService.makeToastSuccess("Notifiche abilitate")}).catch(function(e){return t.toastService.makeToastSuccess(e.message)}):t.messaging.deleteToken().then(function(e){return t.toastService.makeToastSuccess("Notifiche disabilitate")}).catch(function(e){return t.toastService.makeToastSuccess(e.message)})})},t.prototype.add_to_home=function(){var t=this;this.deferredPrompt.prompt(),this.deferredPrompt.userChoice.then(function(e){"accepted"===e.outcome?console.log("User accepted the prompt"):console.log("User dismissed the prompt"),t.deferredPrompt=null})},t.prototype.logout=function(){var t=this;this.angularFireAuth.auth.signOut().then(function(e){return t.router.navigate(["/",t.pvrPath,"login"])})},t}())},nJQW:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},nX7E:function(t,e,n){var r=n("ysHE"),i=n("wBs/");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},nkY7:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},np0s:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n("ZZ/e"),n("8s+1"),n("KWWs");var r=function(){function t(t,e,n){this.platform=t,this.principal=e,this.notificationsService=n}return t.prototype.ngOnInit=function(){var t=this;this.principal.identityWithClaim().subscribe(function(e){var n=t.principal.identity();t.user=n,t.pvr=t.principal.pvr(),t.defaultBackHref="/"+t.pvr.domainName+"/"+(t.backUrl||"home"),t.notifications$=t.notificationsService.onSnapshotDocument(n.getNotificationsDocument()),t.notifications$.subscribe({next:function(t){console.log("Receive Notificiation: ",t)}})})},t}()},"nsc/":function(t,e,n){"use strict";var r=n("JKJi"),i=n("9Nts");t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},"o/0F":function(t,e,n){t.exports=n("ehBJ")},o9j8:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},oAJy:function(t,e,n){var r;t.exports=function t(e,n,i){function o(s,u){if(!n[s]){if(!e[s]){if(!u&&"function"==typeof r&&r)return r(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return o(e[s][1][t]||t)},c,c.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var u=new t.MessageChannel;u.port1.onmessage=c,n=function(){u.port2.postMessage(0)}}var l=[];function c(){var t,e;r=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}r=!1}e.exports=function(t){1!==l.push(t)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){"use strict";var r=t(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,t!==i&&d(this,t)}function c(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){r(function(){var r;try{r=e(n)}catch(i){return o.reject(t,i)}r===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,r)})}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var n=!1;
1function r(e){n||(n=!0,o.reject(t,e))}function i(e){n||(n=!0,o.resolve(t,e))}var a=p(function(){e(i,r)});"error"===a.status&&r(a.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(r){n.status="error",n.value=r}return n}e.exports=l,l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(i);return this.state!==u?h(n,this.state===s?t:e,this.outcome):this.queue.push(new c(n,t,e)),n},c.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){o.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=p(f,e);if("error"===n.status)return o.reject(t,n.value);var r=n.value;if(r)d(t,r);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},l.reject=function(t){var e=new this(i);return o.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,u=-1,l=new this(i);++u<n;)c(t[u],u);return l;function c(t,i){e.resolve(t).then(function(t){a[i]=t,++s!==n||r||(r=!0,o.resolve(l,a))},function(t){r||(r=!0,o.reject(l,t))})}},l.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var r=-1,a=new this(i);++r<e;)this.resolve(t[r]).then(function(t){n||(n=!0,o.resolve(a,t))},function(t){n||(n=!0,o.reject(a,t))});return a}},{1:1}],3:[function(t,e,n){(function(e){"use strict";"function"!=typeof e.Promise&&(e.Promise=t(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function o(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<t.length;r+=1)n.append(t[r]);return n.getBlob(e.type)}}"undefined"==typeof Promise&&t(3);var a=Promise;function s(t,e){e&&t.then(function(t){e(null,t)},function(t){e(t)})}function u(t,e,n){"function"==typeof e&&t.then(e),"function"==typeof n&&t.catch(n)}function l(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",f=void 0,d={},p=Object.prototype.toString;function m(t){var e=d[t.name],n={};n.promise=new a(function(t,e){n.resolve=t,n.reject=e}),e.deferredOperations.push(n),e.dbReady=e.dbReady?e.dbReady.then(function(){return n.promise}):n.promise}function g(t){var e=d[t.name].deferredOperations.pop();if(e)return e.resolve(),e.promise}function v(t,e){var n=d[t.name].deferredOperations.pop();if(n)return n.reject(e),n.promise}function y(t,e){return new a(function(n,r){if(d[t.name]=d[t.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},t.db){if(!e)return n(t.db);m(t),t.db.close()}var o=[t.name];e&&o.push(t.version);var a=i.open.apply(i,o);e&&(a.onupgradeneeded=function(e){var n=a.result;try{n.createObjectStore(t.storeName),e.oldVersion<=1&&n.createObjectStore(h)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),a.onerror=function(t){t.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),g(t)}})}function b(t){return y(t,!1)}function w(t){return y(t,!0)}function _(t,e){if(!t.db)return!0;var n=!t.db.objectStoreNames.contains(t.storeName),r=t.version>
1t.db.version;if(t.version<t.db.version&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),r||n){if(n){var i=t.db.version+1;i>t.version&&(t.version=i)}return!0}return!1}function S(t){return o([function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n),i=0;i<e;i++)r[i]=t.charCodeAt(i);return n}(atob(t.data))],{type:t.type})}function E(t){return t&&t.__local_forage_encoded_blob}function C(t){var e=this,n=e._initReady().then(function(){var t=d[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return u(n,t,t),n}function I(t,e,n,r){void 0===r&&(r=1);try{var i=t.db.transaction(t.storeName,e);n(null,i)}catch(o){if(r>0&&(!t.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then(function(){if(!t.db||"NotFoundError"===o.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),w(t)}).then(function(){return function(t){m(t);for(var e=d[t.name],n=e.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return t.db=null,b(t).then(function(e){return t.db=e,_(t)?w(t):e}).then(function(r){t.db=e.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(e){throw v(t,e),e})}(t).then(function(){I(t,e,n,r-1)})}).catch(n);n(o)}}var k={_driver:"asyncStorage",_initStorage:function(t){var e=this,n={db:null};if(t)for(var r in t)n[r]=t[r];var i=d[n.name];i||(d[n.name]=i={forages:[],db:null,dbReady:null,deferredOperations:[]}),i.forages.push(e),e._initReady||(e._initReady=e.ready,e.ready=C);var o=[];function s(){return a.resolve()}for(var u=0;u<i.forages.length;u++){var l=i.forages[u];l!==e&&o.push(l._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then(function(){return n.db=i.db,b(n)}).then(function(t){return n.db=t,_(n,e._defaultConfig.version)?w(n):t}).then(function(t){n.db=i.db=t,e._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==e&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})},_support:function(){try{if(!i)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||e)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(t,e){var n=this,r=new a(function(e,r){n.ready().then(function(){I(n._dbInfo,"readonly",function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;E(r)&&(r=S(r));var i=t(r,n.key,s++);void 0!==i?e(i):n.continue()}else e()},a.onerror=function(){r(a.error)}}catch(u){r(u)}})}).catch(r)});return s(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=new a(function(e,r){n.ready().then(function(){I(n._dbInfo,"readonly",function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(t);a.onsuccess=function(){var t=a.result;void 0===t&&(t=null),E(t)&&(t=S(t)),e(t)},a.onerror=function(){r(a.error)}}catch(s){r(s)}})}).catch(r)});return s(r,e),r},setItem:function(t,e,n){var r=this;t=l(t);var i=new a(function(n,i){var s;r.ready().then(function(){return s=r._dbInfo,"[object Blob]"===p.call(e)?(t=s.db,"boolean"==typeof f?a.resolve(f):function(t){return new a(function(e){var n=t.transaction(h,"readwrite"),r=o([""]);n.objectStore(h).put(r,"key"),n.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},n.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);e(n||!t||parseInt(t[1],10)>=43)}}).catch(function(){return!1})}(t).then(function(t){return f=t})).then(function(t){return t?e:(n=e,new a(function(t,e){var r=new FileReader;r.onerror=e,r.onloadend=function(e){var r=btoa(e.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)}));var n}):e;var t}).then(function(e){I(r._dbInfo,"readwrite",function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===e&&(e=void 0);var u=s.put(e,t);a.oncomplete=function(){void 0===e&&(e=null),n(e)},a.onabort=a.onerror=function(){i(u.error?u.error:u.transaction.error)}}catch(l){i(l)}})}).catch(i)});return s(i,n),i},removeItem:function(t,e){var n=this;t=l(t);var r=new a(function(e,r){n.ready().then(function(){I(n._dbInfo,"readwrite",function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(t);o.oncomplete=function(){e()},o.onerror=function(){r(a.error)},o.onabort=function(){r(a.error?a.error:a.transaction.error)}}catch(s){r(s)}})}).catch(r)});return s(r,e),r},clear:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){I(e._dbInfo,"readwrite",function(r,i){if(r)return n(r);try{var o=i.objectStore(e._dbInfo.storeName).clear();i.oncomplete=function(){t()},i.onabort=i.onerror=function(){n(o.error?o.error:o.transaction.error)}}catch(a){n(a)}})}).catch(n)});return s(n,t),n},length:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){I(e._dbInfo,"readonly",function(r,i){if(r)return n(r);try{var o=i.objectStore(e._dbInfo.storeName).count();o.onsuccess=function(){t(o.result)},o.onerror=function(){n(o.error)}}catch(a){n(a)}})}).catch(n)});return s(n,t),n},key:function(t,e){var n=this,r=new a(function(e,r){t<0?e(null):n.ready().then(function(){I(n._dbInfo,"readonly",function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,u=a.openCursor();u.onsuccess=function(){var n=u.result;n?0===t?e(n.key):s?e(n.key):(s=!0,n.advance(t)):e(null)},u.onerror=function(){r(u.error)}}catch(l){r(l)}})}).catch(r)});return s(r,e),r},keys:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){I(e._dbInfo,"readonly",function(r,i){if(r)return n(r);try{var o=i.objectStore(e._dbInfo.storeName).openCursor(),a=[];o.onsuccess=function(){var e=o.result;e?(a.push(e.key),e.continue()):t(a)},o.onerror=function(){n(o.error)}}catch(s){n(s)}})}).catch(n)});return s(n,t),n},dropInstance:function(t,e){e=c.apply(this,arguments);var n,r=this.config();return(t="function"!=typeof t&&t||{}).name||(t.name=t.name||r.name,t.storeName=t.storeName||r.storeName),s(n=t.name?(t.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):b(t).then(function(e){var n=d[t.name],r=n.forages;n.db=e;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=e;return e})).then(t.storeName?function(e){if(e.objectStoreNames.contains(t.storeName)){var n=e.version+1;m(t);var r=d[t.name],o=r.forages;e.close();for(var s=0;s<o.length;s++){var u=o[s];u._dbInfo.db=null,u._dbInfo.version=n}return new a(function(e,r){var o=i.open(t.name,n);o.onerror=function(t){o.result.close(),r(t)},o.onupgradeneeded=function(){o.result.deleteObjectStore(t.storeName)},o.onsuccess=function(){var t=o.result;t.close(),e(t)}
1}).then(function(t){r.db=t;for(var e=0;e<o.length;e++){var n=o[e];n._dbInfo.db=t,g(n._dbInfo)}}).catch(function(e){throw(v(t,e)||a.resolve()).catch(function(){}),e})}}:function(e){m(t);var n=d[t.name],r=n.forages;e.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new a(function(e,n){var r=i.deleteDatabase(t.name);r.onerror=r.onblocked=function(t){var e=r.result;e&&e.close(),n(t)},r.onsuccess=function(){var t=r.result;t&&t.close(),e(t)}}).then(function(t){n.db=t;for(var e=0;e<r.length;e++)g(r[e]._dbInfo)}).catch(function(e){throw(v(t,e)||a.resolve()).catch(function(){}),e})}):a.reject("Invalid arguments"),e),n}},T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=/^~~local_forage_type~([^~]+)~/,A="__lfsc__:".length,x=A+"arbf".length,D=Object.prototype.toString;function P(t){var e,n,r,i,o,a=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),c=new Uint8Array(l);for(e=0;e<s;e+=4)n=T.indexOf(t[e]),r=T.indexOf(t[e+1]),i=T.indexOf(t[e+2]),o=T.indexOf(t[e+3]),c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l}function N(t){var e,n=new Uint8Array(t),r="";for(e=0;e<n.length;e+=3)r+=T[n[e]>>2],r+=T[(3&n[e])<<4|n[e+1]>>4],r+=T[(15&n[e+1])<<2|n[e+2]>>6],r+=T[63&n[e+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var j={serialize:function(t,e){var n="";if(t&&(n=D.call(t)),t&&("[object ArrayBuffer]"===n||t.buffer&&"[object ArrayBuffer]"===D.call(t.buffer))){var r,i="__lfsc__:";t instanceof ArrayBuffer?(r=t,i+="arbf"):(r=t.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":e(new Error("Failed to get type for BinaryArray"))),e(i+N(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+t.type+"~"+N(this.result);e("__lfsc__:blob"+n)},o.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(a){console.error("Couldn't convert value into a JSON string: ",t),e(null,a)}},deserialize:function(t){if("__lfsc__:"!==t.substring(0,A))return JSON.parse(t);var e,n=t.substring(x),r=t.substring(A,x);if("blob"===r&&O.test(n)){var i=n.match(O);e=i[1],n=n.substring(i[0].length)}var a=P(n);switch(r){case"arbf":return a;case"blob":return o([a],{type:e});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:P,bufferToString:N};function R(t,e,n,r){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function M(t,e,n,r,i,o){t.executeSql(n,r,i,function(t,a){a.code===a.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[name],function(t,s){s.rows.length?o(t,a):R(t,e,function(){t.executeSql(n,r,i,o)},o)},o):o(t,a)},o)}var L={_driver:"webSQLStorage",_initStorage:function(t){var e=this,n={db:null};if(t)for(var r in t)n[r]="string"!=typeof t[r]?t[r].toString():t[r];var i=new a(function(t,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(i){return r(i)}n.db.transaction(function(i){R(i,n,function(){e._dbInfo=n,t()},function(t,e){r(e)})},r)});return n.serializer=j,i},_support:"function"==typeof openDatabase,iterate:function(t,e){var n=this,r=new a(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){M(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var u=o.item(s),l=u.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=t(l,u.key,s+1)))return void e(l)}e()},function(t,e){r(e)})})}).catch(r)});return s(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=new a(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){M(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? L
1IMIT 1",[t],function(t,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),e(r)},function(t,e){r(e)})})}).catch(r)});return s(r,e),r},setItem:function(t,e,n){return(function t(e,n,r,i){var o=this;e=l(e);var u=new a(function(a,s){o.ready().then(function(){void 0===n&&(n=null);var u=n,l=o._dbInfo;l.serializer.serialize(n,function(n,c){c?s(c):l.db.transaction(function(t){M(t,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,n],function(){a(u)},function(t,e){s(e)})},function(n){if(n.code===n.QUOTA_ERR){if(i>0)return void a(t.apply(o,[e,u,r,i-1]));s(n)}})})}).catch(s)});return s(u,r),u}).apply(this,[t,e,n,1])},removeItem:function(t,e){var n=this;t=l(t);var r=new a(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){M(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[t],function(){e()},function(t,e){r(e)})})}).catch(r)});return s(r,e),r},clear:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){M(e,r,"DELETE FROM "+r.storeName,[],function(){t()},function(t,e){n(e)})})}).catch(n)});return s(n,t),n},length:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){M(e,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(e,n){var r=n.rows.item(0).c;t(r)},function(t,e){n(e)})})}).catch(n)});return s(n,t),n},key:function(t,e){var n=this,r=new a(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){M(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[t+1],function(t,n){var r=n.rows.length?n.rows.item(0).key:null;e(r)},function(t,e){r(e)})})}).catch(r)});return s(r,e),r},keys:function(t){var e=this,n=new a(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){M(e,r,"SELECT key FROM "+r.storeName,[],function(e,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);t(r)},function(t,e){n(e)})})}).catch(n)});return s(n,t),n},dropInstance:function(t,e){e=c.apply(this,arguments);var n=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||n.name,t.storeName=t.storeName||n.storeName);var r,i=this;return s(r=t.name?new a(function(e){var r;r=t.name===n.name?i._dbInfo.db:openDatabase(t.name,"","",0),e(t.storeName?{db:r,storeNames:[t.storeName]}:function(t){return new a(function(e,n){t.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);e({db:t,storeNames:i})},function(t,e){n(e)})},function(t){n(t)})})}(r))}).then(function(t){return new a(function(e,n){t.db.transaction(function(r){function i(t){return new a(function(e,n){r.executeSql("DROP TABLE IF EXISTS "+t,[],function(){e()},function(t,e){n(e)})})}for(var o=[],s=0,u=t.storeNames.length;s<u;s++)o.push(i(t.storeNames[s]));a.all(o).then(function(){e()}).catch(function(t){n(t)})},function(t){n(t)})})}):a.reject("Invalid arguments"),e),r}};function F(t,e){var n=t.name+"/";return t.storeName!==e.storeName&&(n+=t.storeName+"/"),n}var V={_driver:"localStorageWrapper",_initStorage:function(t){var e={};if(t)for(var n in t)e[n]=t[n];return e.keyPrefix=F(t,this._defaultConfig),!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(t){return!0}}()||localStorage.length>0?(this._dbInfo=e,e.serializer=j,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,e){var n=this,r=n.ready().then(function(){for(var e=n._dbInfo,r=e.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var u=localStorage.key(s);if(0===u.indexOf(r)){var l=localStorage.getItem(u);if(l&&(l=e.serializer.deserialize(l)),void 0!==(l=t(l,u.substring(i),a++)))return l}}});return s(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=n.ready().then(function(){var e=n._dbInfo,r=localStorage.getItem(e.keyPrefix+t);return r&&(r=e.serializer.deserialize(r)),r});return s(r,e),r},setItem:function(t,e,n){var r=this;t=l(t);var i=r.ready().then(function(){void 0===e&&(e=null);var n=e;return new a(function(i,o){var a=r._dbInfo;a.serializer.serialize(e,function(e,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+t,e),i(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||o(s),o(s)}})})});return s(i,n),i},removeItem:function(t,e){var n=this;t=l(t);var r=n.ready().then(function(){localStorage.removeItem(n._dbInfo.keyPrefix+t)});return s(r,e),r},clear:function(t){var e=this,n=e.ready().then(function(){for(var t=e._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(t)&&localStorage.removeItem(r)}});return s(n,t),n},length:function(t){var e=this.keys().then(function(t){return t.length});return s(e,t),e},key:function(t,e){var n=this,r=n.ready().then(function(){var e,r=n._dbInfo;try{e=localStorage.key(t)}catch(i){e=null}return e&&(e=e.substring(r.keyPrefix.length)),e});return s(r,e),r},keys:function(t){var e=this,n=e.ready().then(function(){for(var t=e._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(t.keyPrefix)&&r.push(o.substring(t.keyPrefix.length))}return r});return s(n,t),n},dropInstance:function(t,e){if(e=c.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var n=this.config();t.name=t.name||n.name,t.storeName=t.storeName||n.storeName}var r,i=this;return s(r=t.name?new a(function(e){e(t.storeName?F(t,i._defaultConfig):t.name+"/")}).then(function(t){for(var e=localStorage.length-1;e>=0;e--){var n=localStorage.key(e);0===n.indexOf(t)&&localStorage.removeItem(n)}}):a.reject("Invalid arguments"),e),r}},U=function(t,e){for(var n=t.length,r=0;r<n;){if((i=t[r])===(o=e)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;r++}var i,o;return!1},q=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},B={},z={},H={INDEXEDDB:k,WEBSQL:L,LOCALSTORAGE:V},G=[H.INDEXEDDB._driver,H.WEBSQL._driver,H.LOCALSTORAGE._driver],$=["dropInstance"],K=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat($),W={description:"",driver:G.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Q(t,e){t[e]=function(){var n=arguments;return t.ready().then(function(){return t[e].apply(t,n)})}}function J(){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(e)for(var n in e)e.hasOwnProperty(n)&&(arguments[0][n]=q(e[n])?e[n].slice():e[n])}return arguments[0]}var X=new(function(){function t(e){for(var n in function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),H)if(H.hasOwnProperty(n)){var r=H[n],i=r._driver;this[n]=i,B[i]||this.defineDriver(r)}this._defaultConfig=J({},W),this._config=J({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return t.prototype.config=function(t){if("object"===(void 0===t?"undefined":r(t))){if
1(this._ready)return new Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!=typeof t[e])return new Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t&&t.driver)||this.setDriver(this._config.driver)}return"string"==typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,e,n){var r=new a(function(e,n){try{var r=t._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void n(i);for(var o=K.concat("_initStorage"),u=0,l=o.length;u<l;u++){var c=o[u];if((!U($,c)||t[c])&&"function"!=typeof t[c])return void n(i)}!function(){for(var e=function(t){return function(){var e=new Error("Method "+t+" is not implemented by the current driver"),n=a.reject(e);return s(n,arguments[arguments.length-1]),n}},n=0,r=$.length;n<r;n++){var i=$[n];t[i]||(t[i]=e(i))}}();var h=function(n){B[r]&&console.info("Redefining LocalForage driver: "+r),B[r]=t,z[r]=n,e()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(h,n):h(!!t._support):h(!0)}catch(f){n(f)}});return u(r,e,n),r},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,e,n){var r=B[t]?a.resolve(B[t]):a.reject(new Error("Driver not found."));return u(r,e,n),r},t.prototype.getSerializer=function(t){var e=a.resolve(j);return u(e,t),e},t.prototype.ready=function(t){var e=this,n=e._driverSet.then(function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready});return u(n,t,t),n},t.prototype.setDriver=function(t,e,n){var r=this;q(t)||(t=[t]);var i=this._getSupportedDrivers(t);function o(){r._config.driver=r.driver()}function s(t){return r._extend(t),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=l.then(function(){var t=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(t).then(function(t){r._driver=t._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(t){return function(){var e=0;return function n(){for(;e<t.length;){var i=t[e];return e++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var u=new Error("No available storage method found.");return r._driverSet=a.reject(u),r._driverSet}()}}(i)})}).catch(function(){o();var t=new Error("No available storage method found.");return r._driverSet=a.reject(t),r._driverSet}),u(this._driverSet,e,n),this._driverSet},t.prototype.supports=function(t){return!!z[t]},t.prototype._extend=function(t){J(this,t)},t.prototype._getSupportedDrivers=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];this.supports(i)&&e.push(i)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=K.length;t<e;t++)Q(this,K[t])},t.prototype.createInstance=function(e){return new t(e)},t}());e.exports=X},{3:3}]},{},[4])(4)},oBZk:function(t,e,n){"use strict";n.d(e,"I",function(){return s}),n.d(e,"wb",function(){return u}),n.d(e,"a",function(){return l}),n.d(e,"O",function(){return c}),n.d(e,"b",function(){return h}),n.d(e,"P",function(){return f}),n.d(e,"c",function(){return d}),n.d(e,"Q",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"R",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"S",function(){return y}),n.d(e,"f",function(){return b}),n.d(e,"T",function(){return w}),n.d(e,"g",function(){return _}),n.d(e,"W",function(){return S}),n.d(e,"h",function(){return E}),n.d(e,"U",function(){return C}),n.d(e,"i",function(){return I}),n.d(e,"V",function(){return k}),n.d(e,"j",function(){return T}),n.d(e,"X",function(){return O}),n.d(e,"k",function(){return A}),n.d(e,"Y",function(){return x}),n.d(e,"l",function(){return D}),n.d(e,"Z",function(){return P}),n.d(e,"m",function(){return N}),n.d(e,"ab",function(){return j}),n.d(e,"n",function(){return R}),n.d(e,"bb",function(){return M}),n.d(e,"o",function(){return L}),n.d(e,"cb",function(){return F}),n.d(e,"p",function(){return V}),n.d(e,"db",function(){return U}),n.d(e,"q",function(){return q}),n.d(e,"fb",function(){return B}),n.d(e,"r",function(){return z}),n.d(e,"eb",function(){return H}),n.d(e,"s",function(){return G}),n.d(e,"gb",function(){return $}),n.d(e,"t",function(){return K}),n.d(e,"hb",function(){return W}),n.d(e,"u",function(){return Q}),n.d(e,"ib",function(){return J}),n.d(e,"v",function(){return X}),n.d(e,"kb",function(){return Y}),n.d(e,"w",function(){return Z}),n.d(e,"jb",function(){return tt}),n.d(e,"x",function(){return et}),n.d(e,"lb",function(){return nt}),n.d(e,"y",function(){return rt}),n.d(e,"nb",function(){return it}),n.d(e,"z",function(){return ot}),n.d(e,"mb",function(){return at}),n.d(e,"A",function(){return st}),n.d(e,"ob",function(){return ut}),n.d(e,"B",function(){return lt}),n.d(e,"qb",function(){return ct}),n.d(e,"C",function(){return ht}),n.d(e,"pb",function(){return ft}),n.d(e,"D",function(){return dt}),n.d(e,"rb",function(){return pt}),n.d(e,"E",function(){return mt}),n.d(e,"sb",function(){return gt}),n.d(e,"F",function(){return vt}),n.d(e,"tb",function(){return yt}),n.d(e,"G",function(){return bt}),n.d(e,"ub",function(){return wt}),n.d(e,"H",function(){return _t}),n.d(e,"vb",function(){return St}),n.d(e,"J",function(){return Et}),n.d(e,"xb",function(){return Ct}),n.d(e,"K",function(){return It}),n.d(e,"yb",function(){return kt}),n.d(e,"L",function(){return Tt}),n.d(e,"zb",function(){return Ot}),n.d(e,"M",function(){return At}),n.d(e,"Ab",function(){return xt}),n.d(e,"N",function(){return Dt}),n.d(e,"Bb",function(){return Pt});var r=n("CcnG"),i=n("ZZ/e"),o=n("Ip0R"),a=n("ZYCi"),s=r.ob({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"],data:{}});function u(t){return r.Jb(0,[r.Fb(402653184,1,{outlet:0}),r.zb(null,0),(t()(),r.qb(2,0,null,null,2,"div",[["class","tabs-inner"]],null,null,null,null,null)),(t()(),r.qb(3,16777216,[["outlet",1]],null,1,"ion-router-outlet",[["tabs","true"]],null,[[null,"stackEvents"]],function(t,e,n){var r=!0;return"stackEvents"===e&&(r=!1!==t.component.onPageSelected(n)&&r),r}
1,null,null)),r.pb(4,212992,[[1,4]],0,i.ib,[a.b,r.P,r.j,[8,null],[8,"true"],i.c,i.Ib,o.h,r.k,a.n,r.z,a.a,[3,i.ib]],null,{stackEvents:"stackEvents"}),r.zb(null,1)],function(t,e){t(e,4,0)},null)}var l=r.ob({encapsulation:2,styles:[],data:{}});function c(t){return r.Jb(2,[r.zb(null,0)],null,null)}var h=r.ob({encapsulation:2,styles:[],data:{}});function f(t){return r.Jb(2,[r.zb(null,0)],null,null)}var d=r.ob({encapsulation:2,styles:[],data:{}});function p(t){return r.Jb(2,[r.zb(null,0)],null,null)}var m=r.ob({encapsulation:2,styles:[],data:{}});function g(t){return r.Jb(2,[r.zb(null,0)],null,null)}var v=r.ob({encapsulation:2,styles:[],data:{}});function y(t){return r.Jb(2,[r.zb(null,0)],null,null)}var b=r.ob({encapsulation:2,styles:[],data:{}});function w(t){return r.Jb(2,[r.zb(null,0)],null,null)}var _=r.ob({encapsulation:2,styles:[],data:{}});function S(t){return r.Jb(2,[r.zb(null,0)],null,null)}var E=r.ob({encapsulation:2,styles:[],data:{}});function C(t){return r.Jb(2,[r.zb(null,0)],null,null)}var I=r.ob({encapsulation:2,styles:[],data:{}});function k(t){return r.Jb(2,[r.zb(null,0)],null,null)}var T=r.ob({encapsulation:2,styles:[],data:{}});function O(t){return r.Jb(2,[r.zb(null,0)],null,null)}var A=r.ob({encapsulation:2,styles:[],data:{}});function x(t){return r.Jb(2,[r.zb(null,0)],null,null)}var D=r.ob({encapsulation:2,styles:[],data:{}});function P(t){return r.Jb(2,[r.zb(null,0)],null,null)}var N=r.ob({encapsulation:2,styles:[],data:{}});function j(t){return r.Jb(2,[r.zb(null,0)],null,null)}var R=r.ob({encapsulation:2,styles:[],data:{}});function M(t){return r.Jb(2,[r.zb(null,0)],null,null)}var L=r.ob({encapsulation:2,styles:[],data:{}});function F(t){return r.Jb(2,[r.zb(null,0)],null,null)}var V=r.ob({encapsulation:2,styles:[],data:{}});function U(t){return r.Jb(2,[r.zb(null,0)],null,null)}var q=r.ob({encapsulation:2,styles:[],data:{}});function B(t){return r.Jb(2,[r.zb(null,0)],null,null)}var z=r.ob({encapsulation:2,styles:[],data:{}});function H(t){return r.Jb(2,[r.zb(null,0)],null,null)}var G=r.ob({encapsulation:2,styles:[],data:{}});function $(t){return r.Jb(2,[r.zb(null,0)],null,null)}var K=r.ob({encapsulation:2,styles:[],data:{}});function W(t){return r.Jb(2,[r.zb(null,0)],null,null)}var Q=r.ob({encapsulation:2,styles:[],data:{}});function J(t){return r.Jb(2,[r.zb(null,0)],null,null)}var X=r.ob({encapsulation:2,styles:[],data:{}});function Y(t){return r.Jb(2,[r.zb(null,0)],null,null)}var Z=r.ob({encapsulation:2,styles:[],data:{}});function tt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var et=r.ob({encapsulation:2,styles:[],data:{}});function nt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var rt=r.ob({encapsulation:2,styles:[],data:{}});function it(t){return r.Jb(2,[r.zb(null,0)],null,null)}var ot=r.ob({encapsulation:2,styles:[],data:{}});function at(t){return r.Jb(2,[r.zb(null,0)],null,null)}var st=r.ob({encapsulation:2,styles:[],data:{}});function ut(t){return r.Jb(2,[r.zb(null,0)],null,null)}var lt=r.ob({encapsulation:2,styles:[],data:{}});function ct(t){return r.Jb(2,[r.zb(null,0)],null,null)}var ht=r.ob({encapsulation:2,styles:[],data:{}});function ft(t){return r.Jb(2,[r.zb(null,0)],null,null)}var dt=r.ob({encapsulation:2,styles:[],data:{}});function pt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var mt=r.ob({encapsulation:2,styles:[],data:{}});function gt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var vt=r.ob({encapsulation:2,styles:[],data:{}});function yt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var bt=r.ob({encapsulation:2,styles:[],data:{}});function wt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var _t=r.ob({encapsulation:2,styles:[],data:{}});function St(t){return r.Jb(2,[r.zb(null,0)],null,null)}var Et=r.ob({encapsulation:2,styles:[],data:{}});function Ct(t){return r.Jb(2,[r.zb(null,0)],null,null)}var It=r.ob({encapsulation:2,styles:[],data:{}});function kt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var Tt=r.ob({encapsulation:2,styles:[],data:{}});function Ot(t){return r.Jb(2,[r.zb(null,0)],null,null)}var At=r.ob({encapsulation:2,styles:[],data:{}});function xt(t){return r.Jb(2,[r.zb(null,0)],null,null)}var Dt=r.ob({encapsulation:2,styles:[],data:{}});function Pt(t){return r.Jb(2,[r.zb(null,0)],null,null)}},oSDc:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("QXnk"),i=n("Goaa"),o=function(t,e,n){t.style.setProperty(e,n)},a=function(t,e){t.style.removeProperty(e)},s=[],u=function(t,e){if(void 0===t&&(t=[]),void 0!==e){var n=Array.isArray(e)?e:[e];return Object(r.d)(t,n)}return t},l=function(){var t,e,n,l,c,h,f,d,p,m,g,v,y,b=[],w=[],_=[],S=!1,E={},C=[],I=[],k={},T=0,O=!1,A=!1,x=!0,D=!1,P=!0,N=[],j=[],R=[],M=[],L=[],F=[],V=[],U=[],q=[],B=[],z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,H="function"==typeof Element&&"function"==typeof Element.prototype.animate&&z,G=function(t,e){return(e&&e.oneTimeCallback?j:N).push({c:t,o:e}),y}
1,$=function(){if(H)B.forEach(function(t){t.cancel()}),B.length=0;else{var t=R.slice();Object(i.k)(function(){t.forEach(function(t){a(t,"animation-name"),a(t,"animation-duration"),a(t,"animation-timing-function"),a(t,"animation-iteration-count"),a(t,"animation-delay"),a(t,"animation-play-state"),a(t,"animation-fill-mode"),a(t,"animation-direction")})})}},K=function(){L.forEach(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}),L.length=0},W=function(){return void 0!==c?c:f?f.getFill():"both"},Q=function(){return void 0!==p?p:void 0!==h?h:f?f.getDirection():"normal"},J=function(){return O?"linear":void 0!==n?n:f?f.getEasing():"linear"},X=function(){return A?0:void 0!==m?m:void 0!==e?e:f?f.getDuration():0},Y=function(){return void 0!==l?l:f?f.getIterations():1},Z=function(){return void 0!==g?g:void 0!==t?t:f?f.getDelay():0},tt=function(){0!==T&&0==--T&&(function(){var t,e,n;st(),U.forEach(function(t){t()}),q.forEach(function(t){t()}),t=C,e=I,n=k,R.forEach(function(r){var i=r.classList;for(var a in t.forEach(function(t){return i.add(t)}),e.forEach(function(t){return i.remove(t)}),n)n.hasOwnProperty(a)&&o(r,a,n[a])});var r=x?1:0;N.forEach(function(t){return t.c(r,y)}),j.forEach(function(t){return t.c(r,y)}),j.length=0,P=!0,D=!0}(),f&&f.animationFinish())},et=function(t){var e,n,r;void 0===t&&(t=!0),F.forEach(function(t){t()}),V.forEach(function(t){t()}),e=w,n=_,r=E,R.forEach(function(t){var i=t.classList;for(var a in e.forEach(function(t){return i.add(t)}),n.forEach(function(t){return i.remove(t)}),r)r.hasOwnProperty(a)&&o(t,a,r[a])}),b.length>0&&(H?(R.forEach(function(t){var e=t.animate(b,{delay:Z(),duration:X(),easing:J(),iterations:Y(),fill:W(),direction:Q()});e.pause(),B.push(e)}),B.length>0&&(B[0].onfinish=function(){tt()})):function(t){void 0===t&&(t=!0),K(),R.forEach(function(e){if(b.length>0){var n=(void 0===(u=b)&&(u=[]),u.map(function(t){var e=t.offset,n=[];for(var r in t)t.hasOwnProperty(r)&&"offset"!==r&&n.push(r+": "+t[r]+";");return 100*e+"% { "+n.join(" ")+" }"}).join(" ")),r=function(t,e,n){var r=function(t){var e=t.getRootNode();return e.head||e}(n),i=r.querySelector("#"+t);if(i)return i;var o=(n.ownerDocument||document).createElement("style");return o.id=t,o.textContent="@keyframes "+t+" { "+e+" } @keyframes "+t+"-alt { "+e+" }",r.appendChild(o),o}(v=function(t){var e=s.indexOf(t);return e<0&&(e=s.push(t)-1),"ion-animation-"+e}(n),n,e);L.push(r),o(e,"animation-duration",X()+"ms"),o(e,"animation-timing-function",J()),o(e,"animation-delay",Z()+"ms"),o(e,"animation-fill-mode",W()),o(e,"animation-direction",Q());var a=Y()===1/0?"infinite":Y().toString();o(e,"animation-iteration-count",a),o(e,"animation-play-state","paused"),t&&o(e,"animation-name",r.id+"-alt"),Object(i.k)(function(){o(e,"animation-name",r.id||null)})}var u})}(t)),S=!0},nt=function(t){if(t=Math.min(Math.max(t,0),.999),H)B.forEach(function(e){e.currentTime=e.effect.getComputedTiming().delay+X()*t,e.pause()});else{var e="-"+((Z()||0)+X()*t)+"ms";R.forEach(function(t){b.length>0&&(o(t,"animation-delay",e),o(t,"animation-play-state","paused"))})}},rt=function(t){void 0===t&&(t=!0),R.forEach(function(e){Object(i.k)(function(){o(e,"animation-name",v||null),o(e,"animation-duration",X()+"ms"),o(e,"animation-timing-function",J()),o(e,"animation-delay",Z()+"ms"),o(e,"animation-fill-mode",W()||null),o(e,"animation-direction",Q()||null);var n=Y()===1/0?"infinite":Y().toString();o(e,"animation-iteration-count",n),t&&o(e,"animation-name",v+"-alt"),Object(i.k)(function(){o(e,"animation-name",v||null)})})})},it=function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!0),t&&M.forEach(function(e){e.update(t)}),H?B.forEach(function(t){t.effect.updateTiming({delay:Z(),duration:X(),easing:J(),iterations:Y(),fill:W(),direction:Q()})}):rt(e),y},ot=function(){S&&(H?B.forEach(function(t){t.pause()}):R.forEach(function(t){o(t,"animation-play-state","paused")}))},at=function(){d=void 0,tt()},st=function(){d&&clearTimeout(d)},ut=function(t){return new Promise(function(e){t&&t.sync&&(A=!0,G(function(){return A=!1},{oneTimeCallback:!0})),S||et(),D&&(H?nt(0):rt(),D=!1),P&&(T=M.length+1,P=!1),G(function(){return e()},{oneTimeCallback:!0}),M.forEach(function(t){t.play()}
1),H?(B.forEach(function(t){t.play()}),0!==b.length&&0!==R.length||tt()):function(){if(st(),R.forEach(function(t){b.length>0&&Object(i.k)(function(){o(t,"animation-play-state","running")})}),0===b.length||0===R.length)tt();else{var t=Z()||0,e=X()||0,n=Y()||1;d=setTimeout(at,t+e*n+100),s=function(){st(),Object(i.k)(function(){R.forEach(function(t){a(t,"animation-duration"),a(t,"animation-delay"),a(t,"animation-play-state")}),Object(i.k)(tt)})},l={passive:!0},c=function(){u&&u()},h=function(t){r===t.target&&(c(),s())},(r=R[0])&&(r.addEventListener("webkitAnimationEnd",h,l),r.addEventListener("animationend",h,l),u=function(){r.removeEventListener("webkitAnimationEnd",h,l),r.removeEventListener("animationend",h,l)})}var r,s,u,l,c,h}()})},lt=function(t,e){var n,i=b[0];return void 0!==i&&0===i.offset?i[t]=e:b=Object(r.d)([(n={offset:0},n[t]=e,n)],b),y};return y={parentAnimation:f,elements:R,childAnimations:M,animationFinish:tt,from:lt,to:function(t,e){var n,i=b[b.length-1];return void 0!==i&&1===i.offset?i[t]=e:b=Object(r.d)(b,[(n={offset:1},n[t]=e,n)]),y},fromTo:function(t,e,n){return lt(t,e).to(t,n)},parent:function(t){return f=t,y},play:ut,playAsync:function(){return ut()},playSync:function(){return ut({sync:!0}),y},pause:function(){return M.forEach(function(t){t.pause()}),ot(),y},stop:function(){M.forEach(function(t){t.stop()}),S&&($(),S=!1)},destroy:function(){return M.forEach(function(t){t.destroy()}),$(),K(),R.length=0,M.length=0,b.length=0,N.length=0,j.length=0,S=!1,P=!0,y},keyframes:function(t){return b=t,y},addAnimation:function(t){if(null!=t)if(Array.isArray(t))for(var e=0,n=t;e<n.length;e++){var r=n[e];r.parent(y),M.push(r)}else t.parent(y),M.push(t);return y},addElement:function(t){if(null!=t)if(1===t.nodeType)R.push(t);else if(t.length>=0)for(var e=0;e<t.length;e++)R.push(t[e]);else console.error("Invalid addElement value");return y},update:it,fill:function(t){return c=t,it(!0),y},direction:function(t){return h=t,it(!0),y},iterations:function(t){return l=t,it(!0),y},duration:function(t){return H||0!==t||(t=1),e=t,it(!0),y},easing:function(t){return n=t,it(!0),y},delay:function(e){return t=e,it(!0),y},getWebAnimations:function(){return B},getKeyframes:function(){return b},getFill:W,getDirection:Q,getDelay:Z,getIterations:Y,getEasing:J,getDuration:X,afterAddRead:function(t){return U.push(t),y},afterAddWrite:function(t){return q.push(t),y},afterClearStyles:function(t){void 0===t&&(t=[]);for(var e=0,n=t;e<n.length;e++)k[n[e]]="";return y},afterStyles:function(t){return void 0===t&&(t={}),k=t,y},afterRemoveClass:function(t){return I=u(I,t),y},afterAddClass:function(t){return C=u(C,t),y},beforeAddRead:function(t){return F.push(t),y},beforeAddWrite:function(t){return V.push(t),y},beforeClearStyles:function(t){void 0===t&&(t=[]);for(var e=0,n=t;e<n.length;e++)E[n[e]]="";return y},beforeStyles:function(t){return void 0===t&&(t={}),E=t,y},beforeRemoveClass:function(t){return _=u(_,t),y},beforeAddClass:function(t){return w=u(w,t),y},onFinish:G,progressStart:function(t){return void 0===t&&(t=!1),M.forEach(function(e){e.progressStart(t)}),ot(),O=t,S?(it(),nt(0)):et(),y},progressStep:function(t){return M.forEach(function(e){e.progressStep(t)}),nt(t),y},progressEnd:function(t,e,n){return O=!1,M.forEach(function(r){r.progressEnd(t,e,n)}),void 0!==n&&(m=n),D=!1,(x=1===t)?H||(g=e*X()*-1,it(!1,!1)):(p="reverse"===Q()?"normal":"reverse",H?(it(),nt(1-e)):(g=(1-e)*X()*-1,it(!1,!1))),G(function(){x=!0,m=void 0,p=void 0,g=void 0},{oneTimeCallback:!0}),f||ut(),y}}}},oflK:function(t,e,n){"use strict";n("5x/H"),n("iTTW"),n("ZZ/e");var r=n("Wcq6"),i=n("F/XL"),o=n("YBFb"),a=n("xZBe"),s=function(){function t(t,e){this.mittente=t,this.destinatario=e,this._chatMittente="chat/"+e.uid+"/chats/"+t.email+"/user-type/user/messages",this._chatDestinatario="chat/"+e.uid+"/chats/"+t.email+"/user-type/pvr/messages"}return t.prototype.getChatMittente=function(){return this._chatMittente},t.prototype.getChatDestinatario=function(){return this._chatDestinatario},t}(),u=(n("8s+1"),n("H+bZ"),n("2g2N"),n("J3Ai")),l=n("BPfQ");n.d(e,"a",function(){return f});
1var c=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},h=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},f=function(){function t(t,e,n,r,i,o){var a=this;this.modalController=t,this.toastService=e,this.apiService=n,this.loadingController=r,this.activatedRoute=i,this.principal=o,this.messages=[],this.disabledInfiniteScroll=!0,this.setLastVisible=function(t){return a.lastVisible=t.docs[t.docs.length-1]}}return t.prototype.query=function(t){return t?this.docRef.orderBy("creationDate","desc").startAfter(this.lastVisible).limit(o.a):this.docRef.orderBy("creationDate","desc").limit(o.a)},t.prototype.updateRead=function(){var t=this.mittente.email+"/"+this.destinatario.uid;r.firestore().doc(t).set({read:0},{merge:!0}).then(function(e){return console.log("update message read to ",t)}).catch(function(t){return console.log})},t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){console.log("detect destinario ",e),t.destinatario=e.pvr,t.destinatario$=Object(i.a)(e.pvr),t.defaultBackHref="/"+e.pvr.domainName+"/home",t.mittente=t.principal.identity(),t.chat=new s(t.mittente,t.destinatario);var n=t.chat.getChatMittente();r.firestore().doc(t.mittente.getNotificationsDocument()).set({messages:0},{merge:!0}).then(function(){return console.log("reset num of message must be read")}).catch(function(t){return console.log("error during reset message",t)}),console.log("subscribe to stream ",n),t.docRef=r.firestore().collection(n),t.updateRead(),t.messages=[],t.unsubscribe=t.query(!1).onSnapshot(function(e){setTimeout(function(){t.content.scrollToBottom(300),t.disabledInfiniteScroll=!1},1e3),t.setLastVisible(e),e.docChanges().reverse().forEach(function(e){if("added"===e.type){var n=e.doc.data();console.log("get",n),t.messages.push(n),setTimeout(function(){t.content.scrollToBottom(300)},100)}})})})},t.prototype.navigateToMedia=function(t){return c(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this.modalController.create({component:u.a,componentProps:{media:t}})];case 1:return[4,e.sent().present()];case 2:return[2,e.sent()]}})})},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.loadPage=function(){var t=this;this.query(!0).get().then(function(e){e.docs.length<=0?t.disabledInfiniteScroll=!0:(t.messages=e.docs.map(function(t){return t.data()}).reverse().concat(t.messages),t.setLastVisible(e))})},t.prototype.loadData=function(t){var e=this;setTimeout(function(){console.log("Done"),t.target.complete(),e.loadPage()},500)},t.prototype.presentLoading=function(){return c(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return t=this,[4,this.loadingController.create({message:"Please Wait...",id:"login"})];case 1:return t.loading=e.sent(),[4,this.loading.present()];case 2:return[2,e.sent()]}})})},t.prototype.dismissLoading=function(){return c(this,void 0,void 0,function(){return h(this,function(t){switch(t.label){case 0:return[4,this.loading.dismiss()];case 1:return[2,t.sent()]}})})},t.prototype.sendMessage=function(){var t=this,e=this;this.presentLoading(),this.apiService.sendMessage({uid:this.destinatario.uid,text:this.message}).then(function(){return e.dismissLoading()}).catch(function(n){console.log(n),e.dismissLoading(),t.toastService.makeToast(n.message)}),this.message="",this.textbox.setFocus()},t.prototype.onKey=function(t){13===t.which&&this.sendMessage(),t.preventDefault()},t.prototype.openEmoji=function(){return c(this,void 0,void 0,function(){var t,e;return h(this,function(n){switch(n.label){case 0:return[4,this.modalController.create({component:a.a})];case 1:return[4,(t=n.sent()).present()];case 2:return n.sent(),[4,t.onDidDismiss()];case 3:return(e=n.sent().data).output&&(this.message=(this.message?this.message:"")+e.output),[2]}})})},t.prototype.openDetail=function(t){return c(this,void 0,void 0,function(){var e;return h(this,function(n){switch(n.label){case 0:return[4,this.modalController.create({component:l.a,componentProps:{message:t}})];case 1:return[4,(e=n.sent()).present()];
1case 2:return n.sent(),[4,e.onDidDismiss()];case 3:return n.sent(),[2]}})})},t}()},p0Sj:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("IUTb"),i=n("PU8L"),o=n("G5J1"),a=n("dEwP"),s=n("nkY7");function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Object(s.a)(n)?t.pop():n=null;var u=t.length;return 1!==u||n?u>0?Object(a.a)(Object(r.a)(t,n),e):Object(a.a)(Object(o.b)(n),e):Object(a.a)(Object(i.a)(t[0]),e)}}},p0ib:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),i=n("nkY7"),o=n("Zn8D"),a=n("IUTb");function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},pMnS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("CcnG"),i=n("ZYCi"),o=r.ob({encapsulation:2,styles:[],data:{}});function a(t){return r.Jb(0,[(t()(),r.qb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.pb(1,212992,null,0,i.r,[i.b,r.P,r.j,[8,null],r.h],null,null)],function(t,e){t(e,1,0)},null)}function s(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"ng-component",[],null,
1null,null,a,o)),r.pb(1,49152,null,0,i.v,[],null,null)],null,null)}var u=r.mb("ng-component",i.v,s,{},{},[])},pSMy:function(t,e,n){var r=n("ysHE"),i=n("pYsU").f,o=n("wBs/"),a=n("1f/i"),s=n("nX7E"),u=n("a+hM"),l=n("mKQw");t.exports=function(t,e){var n,c,h,f,d,p=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in e){if(f=e[c],h=t.noTargetGet?(d=i(n,c))&&d.value:n[c],!l(m?c:p+(g?".":"#")+c,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,c,f,t)}}},pYsU:function(t,e,n){var r=n("lb/b"),i=n("iCuu"),o=n("2Hee"),a=n("IutQ"),s=n("ehg7"),u=n("57wU"),l=n("a0i3"),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=s(e,!0),l)try{return c(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},pZxE:function(t,e,n){"use strict";function r(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})}var i=setTimeout;function o(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function s(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void l(e.promise,i)}u(e.promise,r)}else(1===t._state?u:l)(e.promise,t._value)})):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void f((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,c(t)}catch(o){l(t,o)}var r,i}function l(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&a._immediateFn(function(){t._handled||a._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)s(t,t._deferreds[e]);t._deferreds=null}function h(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,u(e,t))},function(t){n||(n=!0,l(e,t))})}catch(r){if(n)return;n=!0,l(e,r)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(o);return s(this,new h(t,e,n)),n},a.prototype.finally=r,a.all=function(t){return new a(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){o(t,e)},n)}r[t]=a,0==--i&&e(r)}catch(u){n(u)}}for(var a=0;a<r.length;a++)o(a,r[a])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})}
1,a.reject=function(t){return new a(function(e,n){n(t)})},a.race=function(t){return new a(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},a._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){i(t,0)},a._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in d?d.Promise.prototype.finally||(d.Promise.prototype.finally=r):d.Promise=a},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),a=n("rPjj"),s=n("67Y/"),u=n("0/uQ");function l(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(l(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project,this.concurrent))},t}(),h=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,void 0,void 0);this.destination.add(r),Object(i.a)(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},ptKZ:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},pugT:function(t,e,n){"use strict";var r=n("isby"),i=n("McSo"),o=n("2Bdj");function a(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}a.prototype=Object.create(Error.prototype);var s=a;n.d(e,"a",function(){return u});var u=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,a=this._parents,u=this._unsubscribe,c=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=a?a.length:0;n;)n.remove(this),n=++h<f&&a[h]||null;if(Object(o.a)(u))try{u.call(this)}catch(p){e=!0,t=p instanceof s?l(p.errors):[p]}if(Object(r.a)(c))for(h=-1,f=c.length;++h<f;){var d=c[h];if(Object(i.a)(d))try{d.unsubscribe()}catch(p){e=!0,t=t||[],p instanceof s?t=t.concat(l(p.errors)):t.push(p)}}if(e)throw new s(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var i=this._subscriptions;i?i.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=((e=new t).closed=!0,e),t}();function l(t){return t.reduce(function(t,e){return t.concat(e instanceof s?e.errors:e)},[])}},"pxS/":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o}
1);var r=n("KOl+");function i(t,e){return!0===Object(r.a)(t,e)?Object(r.b)(t.constructor.getPluginRef())[e]:null}function o(t,e,n){!0===Object(r.a)(t,e)&&(Object(r.b)(t.constructor.getPluginRef())[e]=n)}},"q/0M":function(t,e,n){"use strict";n.r(e),n.d(e,"LogLevel",function(){return i}),n.d(e,"Logger",function(){return s}),n.d(e,"setLogLevel",function(){return u});var r=[],i=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}({}),o=i.INFO,a=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){var o=(new Date).toISOString();switch(e){case i.DEBUG:case i.VERBOSE:console.log.apply(console,["["+o+"] "+t.name+":"].concat(n));break;case i.INFO:console.info.apply(console,["["+o+"] "+t.name+":"].concat(n));break;case i.WARN:console.warn.apply(console,["["+o+"] "+t.name+":"].concat(n));break;case i.ERROR:console.error.apply(console,["["+o+"] "+t.name+":"].concat(n));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+e+")")}}},s=function(){function t(t){this.name=t,this._logLevel=o,this._logHandler=a,r.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in i))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!0,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._logHandler.apply(this,[this,i.DEBUG].concat(t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._logHandler.apply(this,[this,i.VERBOSE].concat(t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._logHandler.apply(this,[this,i.INFO].concat(t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._logHandler.apply(this,[this,i.WARN].concat(t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._logHandler.apply(this,[this,i.ERROR].concat(t))},t}();function u(t){r.forEach(function(e){e.logLevel=t})}},q0E7:function(t,e,n){n("q94Q")("iterator")},q94Q:function(t,e,n){var r=n("4Ea8"),i=n("57wU"),o=n("ahhG"),a=n("TIpl").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},qBi7:function(t,e,n){var r=n("MfhB")("keys"),i=n("ptKZ");t.exports=function(t){return r[t]||(r[t]=i(t))}},qjh4:function(t,e,n){"use strict";var r=n("lb/b"),i=n("57wU"),o=n("kpns"),a=n("TIpl").f,s=n("a+hM"),u=n("ysHE").Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var l={},c=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof c?new u(t):void 0===t?u():u(t);return""===t&&(l[e]=!0),e};s(c,u);var h=c.prototype=u.prototype;h.constructor=c;var f=h.toString,d="Symbol(test)"==String(u("test")),p=/^Symbol\((.*)\)[^)]+$/;a(h,"description",{configurable:!0,get:function(){var t=o(this)?this.valueOf():this,e=f.call(t);if(i(l,t))return"";var n=d?e.slice(7,-1):e.replace(p,"$1");return""===n?void 0:n}}),n("pSMy")({global:!0,forced:!0},{Symbol:c})}},qmPg:function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l});var r=n("F/XL"),i=n("xMyE"),o=n("8s+1"),a=n("i0o1"),s=n("CcnG"),u=function(){function t(t,e){this.principal=t,this.restService=e}return t.prototype.resolve=function(t,e){var n=this;return Object(r.a)(this.principal.pvr()).pipe(Object(i.a)(function(t){return n.restService.setUrl(t.getBlog())}))},t.ngInjectableDef=s.T({factory:function(){return new t(s.X(o.a),s.X(a.a))},token:t,providedIn:"root"}),t}(),l=function(){return function(){}}()},rPjj:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FFOo").a)},rZEa:function(t,e,n){"use strict";var r=n("k2qa"),i=n("kpns"),o=n("SAp2"),a=n("H6ty"),s=n("U4hp"),u=n("rhCS"),l=n("aXXJ")("isConcatSpreadable"),c=!n("0HDe")(function(){var t=[];return t[l]=!1,t.concat()[0]!==t}),h=n("g7Su")("concat"),f=function(t){if(!i(t))return!1;var e=t[l];
1return void 0!==e?!!e:r(t)},d=!c||!h;n("pSMy")({target:"Array",proto:!0,forced:d},{concat:function(t){var e,n,r,i,l,c=o(this),h=u(c,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(f(l=-1===e?c:arguments[e])){if(d+(i=a(l.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in l&&s(h,d,l[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(h,d++,l)}return h.length=d,h}})},rhCS:function(t,e,n){var r=n("kpns"),i=n("k2qa"),o=n("aXXJ")("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},rs5h:function(t,e,n){var r=n("ysHE").document;t.exports=r&&r.documentElement},sYsB:function(t,e,n){"use strict";n.d(e,"a",function(){return A}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return p}),n.d(e,"f",function(){return b}),n.d(e,"g",function(){return w}),n.d(e,"h",function(){return E}),n.d(e,"i",function(){return m}),n.d(e,"j",function(){return I}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return y}),n.d(e,"m",function(){return l}),n.d(e,"n",function(){return c}),n.d(e,"o",function(){return h}),n.d(e,"p",function(){return O}),n.d(e,"q",function(){return d});var r=n("QXnk"),i=n("xJ3V"),o=0,a=function(t){return{create:function(e){return m(t,e)},dismiss:function(e,n,r){return v(document,e,n,t,r)},getTop:function(){return Object(r.a)(this,void 0,void 0,function(){return Object(r.c)(this,function(e){return[2,y(document,t)]})})}}},s=a("ion-alert"),u=a("ion-action-sheet"),l=a("ion-loading"),c=a("ion-modal"),h=a("ion-picker"),f=a("ion-popover"),d=a("ion-toast"),p=function(t){var e=document;g(e);var n=o++;t.overlayIndex=n,t.hasAttribute("id")||(t.id="ion-overlay-"+n)},m=function(t,e){return customElements.whenDefined(t).then(function(){var n=document,r=n.createElement(t);return r.classList.add("overlay-hidden"),Object.assign(r,e),_(n).appendChild(r),r.componentOnReady()})},g=function(t){0===o&&(o=1,t.addEventListener("focusin",function(e){var n=y(t);if(n&&n.backdropDismiss&&!k(n,e.target)){var r=n.querySelector("input,button");r&&r.focus()}}),t.addEventListener("ionBackButton",function(e){var n=y(t);n&&n.backdropDismiss&&e.detail.register(100,function(){return n.dismiss(void 0,A)})}),t.addEventListener("keyup",function(e){if("Escape"===e.key){var n=y(t);n&&n.backdropDismiss&&n.dismiss(void 0,A)}}))},v=function(t,e,n,r,i){var o=y(t,r,i);return o?o.dismiss(e,n):Promise.reject("overlay does not exist")},y=function(t,e,n){var r=function(t,e){return void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(function(t){return t.overlayIndex>0})}(t,e);return void 0===n?r[r.length-1]:r.find(function(t){return t.id===n})},b=function(t,e,n,o,a){return Object(r.a)(void 0,void 0,void 0,function(){var s;return Object(r.c)(this,function(r){switch(r.label){case 0:return t.presented?[2]:(t.presented=!0,t.willPresent.emit(),s=t.enterAnimation?t.enterAnimation:i.b.get(e,"ios"===t.mode?n:o),[4,S(t,s,t.el,a)]);case 1:return r.sent()&&t.didPresent.emit(),[2]}})})},w=function(t,e,n,o,a,s,u){return Object(r.a)(void 0,void 0,void 0,function(){var l,c;return Object(r.c)(this,function(r){switch(r.label){case 0:if(!t.presented)return[2,!1];t.presented=!1,r.label=1;case 1:return r.trys.push([1,3,,4]),t.willDismiss.emit({data:e,role:n}),l=t.leaveAnimation?t.leaveAnimation:i.b.get(o,"ios"===t.mode?a:s),[4,S(t,l,t.el,u)];case 2:return r.sent(),t.didDismiss.emit({data:e,role:n}),[3,4];case 3:return c=r.sent(),console.error(c),[3,4];case 4:return t.el.remove(),[2,!0]}})})},_=function(t){return t.querySelector("ion-app")||t.body},S=function(t,e,o,a){return Object(r.a)(void 0,void 0,void 0,function(){var s,u,l,c,h;return Object(r.c)(this,function(r){switch(r.label){case 0:if(t.animation)return t.animation.destroy(),t.animation=void 0,[2,!1];o.classList.remove("overlay-hidden"),s=o.shadowRoot||t.el,l=!0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.e(5).then(n.bind(null,"CwCf"))];case 2:return[4,r.sent().create(e,s,a)];case 3:return u=r.sent(),[3,5];case 4:return r.sent(),(u=e(s,a)).fill("both"),l=!1,[3,5];case 5:return t.animation=u,t.animated&&i.b.getBoolean("animated",!0)||u.duration(0),t.keyboardClose&&u.beforeAddWrite(function(){var t=o.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()}),[4,u.playAsync()];case 6:return c=r.sent(),h=void 0===c||u.hasCompleted,l&&u.destroy(),t.animation=void 0,[2,h]}})})},E=function(t,e){var n,r=new Promise(function(t){return n=t});return C(t,e,function(t){n(t.detail)}),r},C=function(t,e,n){var r=function(i){t.removeEventListener(e,r),n(i)};t.addEventListener(e,r)},I=function(t){return"cancel"===t||t===A},k=function(t,e){for(;e;){if(e===t)return!0;e=e.parentElement}return!1},T=function(t){return t()},O=function(t,e){if("function"==typeof t)return i.b.get("_zoneGate",T)(function(){try{return t(e)}catch(n){console.error(n)}})},A="backdrop"},spD4:function(t,e,n){var r=n("1VRj"),i=n("K8G7"),o=n("ysHE"),a=n("wBs/"),s=n("aXXJ"),u=s("iterator"),l=s("toStringTag"),c=i.values;for(var h in r){var f=o[h],d=f&&f.prototype;if(d){if(d[u]!==c)try{a(d,u,c)}catch(m){d[u]=c}
1if(d[l]||a(d,l,h),r[h])for(var p in i)if(d[p]!==i[p])try{a(d,p,i[p])}catch(m){d[p]=i[p]}}}},stQs:function(t,e,n){"use strict";var r=n("pSMy"),i=n("A9d8"),o=n("0idE"),a=n("XCog"),s=n("S4gH"),u=n("wBs/"),l=n("1f/i"),c=n("U5J1"),h=n("aXXJ")("iterator"),f=n("0i0S"),d=n("YxH6"),p=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,g=function(){return this};t.exports=function(t,e,n,d,v,y,b){i(n,e,d);var w,_,S,E=function(t){if(t===v&&O)return O;if(!m&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,k=t.prototype,T=k[h]||k["@@iterator"]||v&&k[v],O=!m&&T||E(v),A="Array"==e&&k.entries||T;if(A&&(w=o(A.call(new t)),p!==Object.prototype&&w.next&&(c||o(w)===p||(a?a(w,p):"function"!=typeof w[h]&&u(w,h,g)),s(w,C,!0,!0),c&&(f[C]=g))),"values"==v&&T&&"values"!==T.name&&(I=!0,O=function(){return T.call(this)}),c&&!b||k[h]===O||u(k,h,O),f[e]=O,v)if(_={values:E("values"),keys:y?O:E("keys"),entries:E("entries")},b)for(S in _)!m&&!I&&S in k||l(k,S,_[S]);else r({target:e,proto:!0,forced:m||I},_);return _}},"t/Na":function(t,e,n){"use strict";n.d(e,"k",function(){return N}),n.d(e,"n",function(){return F}),n.d(e,"o",function(){return V}),n.d(e,"l",function(){return R}),n.d(e,"m",function(){return M}),n.d(e,"b",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"c",function(){return T}),n.d(e,"a",function(){return A}),n.d(e,"d",function(){return B}),n.d(e,"e",function(){return q}),n.d(e,"j",function(){return U}),n.d(e,"g",function(){return j}),n.d(e,"i",function(){return P}),n.d(e,"h",function(){return L});var r=n("mrSG"),i=n("CcnG"),o=n("F/XL"),a=n("6blF"),s=n("Phjn"),u=n("VnD/"),l=n("67Y/"),c=n("Ip0R"),h=function(){return function(){}}(),f=function(){return function(){}}(),d=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(r.__spread)(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;
vendor: 7,551 bytes, line 1
1this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),p=function(){function t(){}return t.prototype.encodeKey=function(t){return m(t)},t.prototype.encodeValue=function(t){return m(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var g=function(){function t(t){void 0===t&&(t={});var e,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=Object(r.__read)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)},t}();function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var w=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new d),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new g,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:v(this.body)||y(this.body)||b(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:b(this.body)?null:y(this.body)?this.body.type||null:v(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(l=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},l)),new t(n,r,o,{params:l,headers:u,reportProgress:s,responseType:i,withCredentials:a})},t}(),_=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),S=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),E=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=_.ResponseHeader,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=_.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),I=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.__extends)(e,t),e}(S);function k(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var T=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof w)r=t;else{var a;a=n.headers instanceof d?n.headers:new d(n.headers);var c=void 0;n.params&&(c=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new w(t,e,void 0!==n.body?n.body:null,{headers:a,params:c,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var h=Object(o.a)(r).pipe(Object(s.a)(function(t){return i.handler.handle(t)}));if(t instanceof w||"events"===n.observe)return h;var f=h.pipe(Object(u.a)(function(t){return t instanceof C}
1));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return f.pipe(Object(l.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return f.pipe(Object(l.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return f.pipe(Object(l.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return f.pipe(Object(l.a)(function(t){return t.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,k(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,k(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,k(n,e))},t}(),O=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),A=new i.p("HTTP_INTERCEPTORS"),x=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),D=/^\)\]\}',?\n/,P=function(){return function(){}}(),N=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),j=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new d(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new E({headers:i,status:e,statusText:n,url:o})},l=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(D,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new C({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new I({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,i=new I({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(u()),h=!0);var i={type:_.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(t){var e={type:_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:_.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}})},t}(),R=new i.p("XSRF_COOKIE_NAME"),M=new i.p("XSRF_HEADER_NAME"),L=function(){return function(){}}(),F=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.t)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),V=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),U=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(A,[]);this.chain=e.reduceRight(function(t,e){return new O(t,e)},this.backend)}return this.chain.handle(t)},t}(),q=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:V,useClass:x}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:R,useValue:t.cookieName}:[],t.headerName?{provide:M,useValue:t.headerName}:[]]}},t}(),B=function(){return function(){}}()},t5mC:function(t,e,n){var r=n("0HDe"),i=n("hdqJ"),o="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},tErX:function(t,e,n){"use strict";n.d(e,"a",function(){return W}),n.d(e,"b",function(){return U}),n.d(e,"c",function(){return At}),n.d(e,"d",function(){return xt}),n.d(e,"e",function(){return Nt}),n.d(e,"f",function(){return Pt}),n.d(e,"g",function(){return M}),n.d(e,"h",function(){return jt}),n.d(e,"i",function(){return $}),n.d(e,"j",function(){return Dt}),n.d(e,"k",function(){return kt}),n.d(e,"l",function(){return E}),n.d(e,"m",function(){return L});var r,i,o,a,s=n("QXnk"),u=n("xJ3V"),l=0,c=!1,h=!1,f=!1,d=!1,p=!1,m=window,g=document,v={$flags$:0,$resourcesUrl$:"",jmp:function(t){return t()},raf:function(t){return requestAnimationFrame(t)},ael:function(t,e,n,r){return t.addEventListener(e,n,r)},rel:function(t,e,n,r){return t.removeEventListener(e,n,r)}},y=function(){return!!g.documentElement.attachShadow}(),b=function(){var t=!1;try{g.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),w=function(){try{return new CSSStyleSheet,!0}catch(t){}return!1}(),_=new WeakMap,S=function(t){return _.get(t)},E=function(t,e){return _.set(e.$lazyInstance$=t,e)},C=function(t){var e={$flags$:0,$hostElement$:t,$instanceValues$:new Map};return e.$onInstancePromise$=new Promise(function(t){return e.$onInstanceResolve$=t}),e.$onReadyPromise$=new Promise(function(t){return e.$onReadyResolve$=t}
1),t["s-p"]=[],t["s-rc"]=[],_.set(t,e)},I=function(t,e){return e in t},k=function(t){return console.error(t)},T=new Map,O=new Map,A=[],x=[],D=[],P=function(t,e){return function(n){t.push(n),c||(c=!0,e&&4&v.$flags$?R(j):v.raf(j))}},N=function(t,e){for(var n=0,r=0;n<t.length&&(r=performance.now())<e;)try{t[n++](r)}catch(i){k(i)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},j=function(){l++,function(t){for(var e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){k(n)}t.length=0}(A);var t=2==(6&v.$flags$)?performance.now()+10*Math.ceil(l*(1/22)):1/0;N(x,t),N(D,t),x.length>0&&(D.push.apply(D,x),x.length=0),(c=A.length+x.length+D.length>0)?v.raf(j):l=0},R=function(t){return Promise.resolve().then(t)},M=P(A,!1),L=P(x,!0),F={},V=function(t){return"object"==(t=typeof t)||"function"===t},U=function(){return m.CSS&&m.CSS.supports&&m.CSS.supports("color","var(--c)")?Promise.resolve():n.e(14).then(n.t.bind(null,"mj6v",7)).then(function(){if(v.$cssShim$=m.__stencil_cssshim,v.$cssShim$)return v.$cssShim$.initShim()})},q="http://www.w3.org/1999/xlink",B=new WeakMap,z=function(t,e,n){var r=O.get(t);w&&n?(r=r||new CSSStyleSheet).replace(e):r=e,O.set(t,r)},H=function(t,e,n,r){var i=G(e.$tagName$,n),o=O.get(i);if(t=11===t.nodeType?t:g,o||(i=G(e.$tagName$),o=O.get(i)),o)if("string"==typeof o){var a=B.get(t=t.head||t),u=void 0;if(a||B.set(t,a=new Set),!a.has(i)){if(t.host&&(u=t.firstElementChild)&&"STYLE"===u.tagName)u.innerHTML=o;else{if(v.$cssShim$){var l=(u=v.$cssShim$.createHostStyle(r,i,o,!!(10&e.$flags$)))["s-sc"];l&&(i=l,a=null)}else(u=g.createElement("style")).setAttribute("data-styles",""),u.innerHTML=o;t.insertBefore(u,t.querySelector("link"))}a&&a.add(i)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=Object(s.d)(t.adoptedStyleSheets,[o]));return i},G=function(t,e){return"sc-"+(e?t+"-"+e:t)},$=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=null,o=null,a=null,s=!1,u=!1,l=[],c=function(e){for(var n=0;n<e.length;n++)i=e[n],Array.isArray(i)?c(i):null!=i&&"boolean"!=typeof i&&((s="function"!=typeof t&&!V(i))&&(i=String(i)),s&&u?l[l.length-1].$text$+=i:l.push(s?K(null,i):i),u=s)};if(c(n),e){e.key&&(o=e.key),e.name&&(a=e.name);var h=e.className||e.class;h&&(e.class="object"!=typeof h?h:Object.keys(h).filter(function(t){return h[t]}).join(" "))}if("function"==typeof t)return t(e,l,Q);var f=K(t,null);return f.$attrs$=e,l.length>0&&(f.$children$=l),f.$key$=o,f.$name$=a,f},K=function(t,e){return{$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},W={},Q={forEach:function(t,e){return t.map(J).forEach(e)},map:function(t,e){return t.map(J).map(e).map(X)}},J=function(t){return{vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}},X=function(t){var e=K(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},Y=function(t,e,n,r,i,o){if(n!==r){var a=I(t,e),s=e.toLowerCase();if("class"===e){var u=t.classList,l=tt(n),c=tt(r);u.remove.apply(u,l.filter(function(t){return t&&!c.includes(t)})),u.add.apply(u,c.filter(function(t){return t&&!l.includes(t)}))}else if("style"===e){for(var h in n)r&&null!=r[h]||(h.includes("-")?t.style.removeProperty(h):t.style[h]="");for(var h in r)n&&r[h]===n[h]||(h.includes("-")?t.style.setProperty(h,r[h]):t.style[h]=r[h])}else if("key"===e);else if("ref"===e)r&&r(t);else if(a||"o"!==e[0]||"n"!==e[1]){var f=V(r);if((a||f&&null!==r)&&!i)try{if(t.tagName.includes("-"))t[e]=r;else{var d=null==r?"":r;null!=n&&t[e]==d||(t[e]=d)}}catch(g){}var p=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,p=!0),null==r||!1===r?p?t.removeAttributeNS(q,e):t.removeAttribute(e):(!a||4&o||i)&&!f&&(r=!0===r?"":r,p?t.setAttributeNS(q,e,r):t.setAttribute(e,r))}else e="-"===e[2]?e.slice(3):I(m,s)?s.slice(2):s[2]+e.slice(3),n&&v.rel(t,e,n,!1),r&&v.ael(t,e,r,!1)}},Z=/\s/,tt=function(t){return t?t.split(Z):[]},et=function(t,e,n,r){var i=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||F,a=e.$attrs$||F;for(r in o)r in a||Y(i,r,o[r],void 0,n,e.$flags$);for(r in a)Y(i,r,o[r],a[r],n,e.$flags$)},nt=function(t,e,n,a){var s,u,l,c=e.$children$[n],f=0;if(h||(d=!0,"slot"===c.$tag$&&(r&&a.classList.add(r+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)s=c.$elm$=g.createTextNode(c.$text$);else if(1&c.$flags$)s=c.$elm$=g.createTextNode("");else{if(p||(p="svg"===c.$tag$),s=c.$elm$=g.createElementNS(p?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&c.$flags$?"slot-fb":c.$tag$),p&&"foreignObject"===c.$tag$&&(p=!1),et(null,c,p),null!=r&&s["s-si"]!==r&&s.classList.add(s["s-si"]=r),c.$children$)for(f=0;f<c.$children$.length;++f)(u=nt(t,c,f,s))&&s.appendChild(u);
1"svg"===c.$tag$?p=!1:"foreignObject"===s.tagName&&(p=!0)}return s["s-hn"]=o,3&c.$flags$&&(s["s-sr"]=!0,s["s-cr"]=i,s["s-sn"]=c.$name$||"",(l=t&&t.$children$&&t.$children$[n])&&l.$tag$===c.$tag$&&t.$elm$&&rt(t.$elm$,!1)),s},rt=function(t,e){v.$flags$|=1;for(var n=t.childNodes,r=n.length-1;r>=0;r--){var i=n[r];i["s-hn"]!==o&&i["s-ol"]&&(ut(i).insertBefore(i,st(i)),i["s-ol"].remove(),i["s-ol"]=void 0,d=!0),e&&rt(i,e)}v.$flags$&=-2},it=function(t,e,n,r,i,a){var s,u=t["s-cr"]&&t["s-cr"].parentNode||t;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);i<=a;++i)r[i]&&(s=nt(null,n,i,t))&&(r[i].$elm$=s,u.insertBefore(s,st(e)))},ot=function(t,e,n,r,i){for(;e<=n;++e)(r=t[e])&&(i=r.$elm$,dt(r),f=!0,i["s-ol"]?i["s-ol"].remove():rt(i,!0),i.remove())},at=function(t,e){return t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$)},st=function(t){return t&&t["s-ol"]||t},ut=function(t){return(t["s-ol"]?t["s-ol"]:t).parentNode},lt=function(t,e){var n,r=e.$elm$=t.$elm$,i=t.$children$,o=e.$children$;p=r&&r.parentNode&&void 0!==r.ownerSVGElement,p="svg"===e.$tag$||"foreignObject"!==e.$tag$&&p,null===e.$text$?("slot"===e.$tag$||et(t,e,p),null!==i&&null!==o?function(t,e,n,r){for(var i,o,a=0,s=0,u=0,l=0,c=e.length-1,h=e[0],f=e[c],d=r.length-1,p=r[0],m=r[d];a<=c&&s<=d;)if(null==h)h=e[++a];else if(null==f)f=e[--c];else if(null==p)p=r[++s];else if(null==m)m=r[--d];else if(at(h,p))lt(h,p),h=e[++a],p=r[++s];else if(at(f,m))lt(f,m),f=e[--c],m=r[--d];else if(at(h,m))"slot"!==h.$tag$&&"slot"!==m.$tag$||rt(h.$elm$.parentNode,!1),lt(h,m),t.insertBefore(h.$elm$,f.$elm$.nextSibling),h=e[++a],m=r[--d];else if(at(f,p))"slot"!==h.$tag$&&"slot"!==m.$tag$||rt(f.$elm$.parentNode,!1),lt(f,p),t.insertBefore(f.$elm$,h.$elm$),f=e[--c],p=r[++s];else{for(u=-1,l=a;l<=c;++l)if(e[l]&&null!==e[l].$key$&&e[l].$key$===p.$key$){u=l;break}u>=0?((o=e[u]).$tag$!==p.$tag$?i=nt(e&&e[s],n,u,t):(lt(o,p),e[u]=void 0,i=o.$elm$),p=r[++s]):(i=nt(e&&e[s],n,s,t),p=r[++s]),i&&ut(h.$elm$).insertBefore(i,st(h.$elm$))}a>c?it(t,null==r[d+1]?null:r[d+1].$elm$,n,r,s,d):s>d&&ot(e,a,c)}(r,i,e,o):null!==o?(null!==t.$text$&&(r.textContent=""),it(r,null,e,o,0,o.length-1)):null!==i&&ot(i,0,i.length-1)):(n=r["s-cr"])?n.parentNode.textContent=e.$text$:t.$text$!==e.$text$&&(r.data=e.$text$),p&&"svg"===e.$tag$&&(p=!1)},ct=function(t){var e,n,r,i,o,a,s=t.childNodes;for(n=0,r=s.length;n<r;n++)if(1===(e=s[n]).nodeType){if(e["s-sr"])for(o=e["s-sn"],e.hidden=!1,i=0;i<r;i++)if(s[i]["s-hn"]!==e["s-hn"])if(a=s[i].nodeType,""!==o){if(1===a&&o===s[i].getAttribute("slot")){e.hidden=!0;break}}else if(1===a||3===a&&""!==s[i].textContent.trim()){e.hidden=!0;break}ct(e)}},ht=[],ft=function(t){var e,n,r,i,o,a=t.childNodes,s=0,u=0,l=0;for(e=a.length;s<e;s++){if((n=a[s])["s-sr"]&&(r=n["s-cr"]))for(o=n["s-sn"],u=(i=r.parentNode.childNodes).length-1;u>=0;u--)(r=i[u])["s-cn"]||r["s-nr"]||r["s-hn"]===n["s-hn"]||((3===(l=r.nodeType)||8===l)&&""===o||1===l&&null===r.getAttribute("slot")&&""===o||1===l&&r.getAttribute("slot")===o)&&(ht.some(function(t){return t.$nodeToRelocate$===r})||(f=!0,r["s-sn"]=o,ht.push({$slotRefNode$:n,$nodeToRelocate$:r})));1===n.nodeType&&ft(n)}},dt=function(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.forEach(dt)},pt=function(t,e){e&&!t.$onRenderResolve$&&e["s-p"].push(new Promise(function(e){return t.$onRenderResolve$=e}))},mt=function(t,e,n,r){if(e.$flags$|=16,!(4&e.$flags$)){var i,o=e.$lazyInstance$,a=function(){return gt(t,e,n,o,r)},s=t["s-rc"];return pt(e,e.$ancestorComponent$),r&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.forEach(function(t){return bt(o,t[0],t[1])}),e.$queuedListeners$=null),i=bt(o,"componentWillLoad")),i=wt(i,function(){return bt(o,"componentWillRender")}),s&&(s.forEach(function(t){return t()}),t["s-rc"]=void 0),wt(i,function(){return L(a)})}e.$flags$|=512},gt=function(t,e,n,a,s){s&&function(t,e,n){var r=H(y&&t.shadowRoot?t.shadowRoot:t.getRootNode(),e,n,t);10&e.$flags$&&(t["s-sc"]=r,t.classList.add(r+"-h"),2&e.$flags$&&t.classList.add(r+"-s"))}(t,n,e.$modeName$);try{!function(t,e,n,a){o=t.tagName;var s,u=e.$vnode$||K(null,null),l=(s=a)&&s.$tag$===W?a:$(null,null,a);if(n.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},n.$attrsToReflect$.forEach(function(e){return l.$attrs$[e[1]]=t[e[0]]})),l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=u.$elm$=t.shadowRoot||t,r=t["s-sc"],i=t["s-cr"],h=y&&0!=(1&n.$flags$),d=f=!1,lt(u,l),d){ft(l.$elm$);for(var c=0;c<ht.length;c++)(p=ht[c]).$nodeToRelocate$["s-ol"]||((w=g.createTextNode(""))["s-nr"]=p.$nodeToRelocate$,p.$nodeToRelocate$.parentNode.insertBefore(p.$nodeToRelocate$["s-ol"]=w,p.$nodeToRelocate$));for(v.$flags$|=1,c=0;c<ht.length;c++){for(var p,m=(p=ht[c]).$slotRefNode$.parentNode,b=p.$slotRefNode$.nextSibling,w=p.$nodeToRelocate$["s-ol"];w=w.previousSibling;){var _=w["s-nr"];if(_&&_["s-sn"]===p.$nodeToRelocate$["s-sn"]&&m===_.parentNode&&(!(_=_.nextSibling)||!_["
1s-nr"])){b=_;break}}(!b&&m!==p.$nodeToRelocate$.parentNode||p.$nodeToRelocate$.nextSibling!==b)&&p.$nodeToRelocate$!==b&&m.insertBefore(p.$nodeToRelocate$,b)}v.$flags$&=-2}f&&ct(l.$elm$),ht.length=0}(t,e,n,a.render&&a.render())}catch(c){k(c)}v.$cssShim$&&v.$cssShim$.updateHost(t),e.$flags$&=-17,e.$flags$|=2;var u=t["s-p"],l=function(){return vt(t,e,n)};0===u.length?l():(Promise.all(u).then(l),e.$flags$|=4,u.length=0)},vt=function(t,e,n){var r=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?bt(r,"componentDidUpdate"):(e.$flags$|=64,t.classList.add("hydrated"),bt(r,"componentDidLoad"),e.$onReadyResolve$(t),i||yt()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&R(function(){return mt(t,e,n,!1)}),e.$flags$&=-517},yt=function(){g.documentElement.classList.add("hydrated"),v.$flags$|=2},bt=function(t,e,n){if(t&&t[e])try{return t[e](n)}catch(r){k(r)}},wt=function(t,e){return t&&t.then?t.then(e):e()},_t=function(t,e,n){if(e.$members$){t.watchers&&(e.$wat
1chers$=t.watchers);var r=Object.entries(e.$members$),i=t.prototype;if(r.forEach(function(t){var r=t[0],o=t[1][0];31&o||2&n&&32&o?Object.defineProperty(i,r,{get:function(){return t=r,S(this).$instanceValues$.get(t);var t},set:function(t){!function(t,e,n,r){var i,o,a=S(t),s=a.$hostElement$,u=a.$instanceValues$.get(e),l=a.$flags$,c=a.$lazyInstance$;if(o=r.$members$[e][0],!((n=null==(i=n)||V(i)?i:4&o?"false"!==i&&(""===i||!!i):2&o?parseFloat(i):1&o?String(i):i)===u||8&l&&void 0!==u)&&(a.$instanceValues$.set(e,n),c)){if(r.$watchers$&&128&l){var h=r.$watchers$[e];h&&h.forEach(function(t){try{c[t](n,u,e)}catch(r){k(r)}})}2==(18&l)&&mt(s,a,r,!1)}}(this,r,t,e)},configurable:!0,enumerable:!0}):1&n&&64&o&&Object.defineProperty(i,r,{value:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=S(this);return n.$onInstancePromise$.then(function(){var e;return(e=n.$lazyInstance$)[r].apply(e,t)})}})}),1&n){var o=new Map;i.attributeChangedCallback=function(t,e,n){var r=this;v.jmp(function(){var e=o.get(t);r[e]=(null!==n||"boolean"!=typeof r[e])&&n})},t.observedAttributes=r.filter(function(t){return 15&t[1][0]}).map(function(t){var n=t[0],r=t[1],i=r[1]||n;return o.set(i,n),512&r[0]&&e.$attrsToReflect$.push([n,i]),i})}}return t},St=function(t,e,n,r,i,o,a){var s,u,l,c;if(1===o.nodeType){for((s=o.getAttribute("c-id"))&&((u=s.split("."))[0]!==a&&"0"!==u[0]||(l={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},e.push(l),o.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,t=l,r&&"0"===l.$depth$&&(r[l.$index$]=l.$elm$))),c=o.childNodes.length-1;c>=0;c--)St(t,e,n,r,i,o.childNodes[c],a);if(o.shadowRoot)for(c=o.shadowRoot.childNodes.length-1;c>=0;c--)St(t,e,n,r,i,o.shadowRoot.childNodes[c],a)}else if(8===o.nodeType)(u=o.nodeValue.split("."))[1]!==a&&"0"!==u[1]||(l={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===(s=u[0])?(l.$elm$=o.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,e.push(l),o.remove(),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,r&&"0"===l.$depth$&&(r[l.$index$]=l.$elm$))):l.$hostId$===a&&("s"===s?(l.$tag$="slot",o["s-sn"]=u[5]?l.$name$=u[5]:"",o["s-sr"]=!0,r&&(l.$elm$=g.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),o.parentNode.insertBefore(l.$elm$,o),o.remove(),"0"===l.$depth$&&(r[l.$index$]=l.$elm$)),n.push(l),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l):"r"===s&&(r?o.remove():(i["s-cr"]=o,o["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=K(null,o.textContent);h.$elm$=o,h.$index$="0",t.$children$=[h]}},Et=function(t,e){if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n++)Et(t.childNodes[n],e);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)Et(t.shadowRoot.childNodes[n],e)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(e.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-sd"]=""===r[3])}},Ct=[],It=function(t){return Ct.push(t)},kt=function(t){return S(t).$modeName$},Tt=function(t){bt(t,"connectedCallback")},Ot=function(t){var e=t["s-cr"]=g.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},At=function(t,e){void 0===e&&(e={});var r,i=[],o=e.exclude||[],a=g.head,u=m.customElements,l=a.querySelector("meta[charset]"),c=g.createElement("style");Object.assign(v,e),v.$resourcesUrl$=new URL(e.resourcesUrl||"./",g.baseURI).href,e.syncQueue&&(v.$flags$|=4),v.$flags$|=2;for(var h=g.querySelectorAll("style[s-id]"),f="",d=0;d<h.length;d++)f+=h[d].innerHTML;for(d=0;d<h.length;d++){var p=h[d];z(p.getAttribute("s-id"),f+p.innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)}t.forEach(function(t){return t[1].forEach(function(e){var a={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};a.$members$=e[2],a.$listeners$=e[3],a.$attrsToReflect$=[],a.$watchers$={},!y&&1&a.$flags$&&(a.$flags$|=8);var l=a.$tagName$,c=function(t){function e(e){var n=t.call(this,e)||this;return C(e=n),1&a.$flags$&&(y?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),n}return Object(s.b)(e,t),e.prototype.connectedCallback=function(){var t=this;r&&(clearTimeout(r),r=null),v.jmp(function(){return function(t,e){if(0==(1&v.$flags$)){var r=S(t);if(e.$listeners$&&(r.$rmListeners$=function(t,e,n){e.$queuedListeners$=e.$queuedListeners$||[];var r=n.map(function(n){var r=n[0],i=n[1],o=n[2],a=function(t,e){return 4&e?g:8&e?m:32&e?g.body:16&e?t.parentElement:t}(t,r),s=function(t,e){return function(n){256&t.$flags$?t.$lazyInstance$[e](n):t.$queuedListeners$.push([e,n])}}(e,o),u=function(t){return b?{passive:0!=(1&t),capture:0!=(2&t)}:0!=(2&t)}(r);return v.ael(a,i,s,u),function(){return v.rel(a,i,s,u)}});return function(){return r.forEach(function(t){return t()})}}(t,r,e.$listeners$)),!(1&r.$flags$)){var i;if(r.$flags$|=1,i=t.getAttribute("s-id")){if(y&&1&e.$flags$){var o=H(t.shadowRoot,e,t.getAttribute("s-mode"));t.classList.remove(o+"-h"),t.classList.remove(o+"-s")}!function(t,e,n,i){var o=t.shadowRoot,a=[],s=o?[]:null,u=r.$vnode$=K(e,null);v.$orgLocNodes$||Et(g.body,v.$orgLocNodes$=new Map),t["s-id"]=n,t.removeAttribute("s-id"),St(u,a,[],s,t,t,n),a.forEach(function(t){var n=t.$hostId$+"."+t.$nodeId$,r=v.$orgLocNodes$.get(n),i=t.$elm$;r&&(r["s-sd"]||"0"===t.$hostId$)&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=e,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),v.$orgLocNodes$.delete(n)}
1),o&&s.forEach(function(t){t&&o.appendChild(t)})}(t,e.$tagName$,i)}i||(4&e.$flags$||8&e.$flags$)&&Ot(t);for(var a=t;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")||a["s-p"]){pt(r,r.$ancestorComponent$=a);break}e.$members$&&Object.entries(e.$members$).forEach(function(e){var n=e[0];if(31&e[1][0]&&t.hasOwnProperty(n)){var r=t[n];delete t[n],t[n]=r}}),R(function(){return function(t,e,r,i,o){return Object(s.a)(void 0,void 0,void 0,function(){var i,a,u,l;return Object(s.c)(this,function(s){switch(s.label){case 0:return 0!=(32&e.$flags$)?[3,5]:(e.$flags$|=32,null==e.$modeName$&&(e.$modeName$="string"!=typeof r.$lazyBundleIds$?function(t){return Ct.map(function(e){return e(t)}).find(function(t){return!!t})}(t):""),(o=function(t,e,r){var i=t.$tagName$.replace(/-/g,"_"),o="string"!=typeof t.$lazyBundleIds$?t.$lazyBundleIds$[e.$modeName$]:t.$lazyBundleIds$,a=T.get(o);return a?a[i]:n("xcTS")("./"+o+".entry.js").then(function(t){return T.set(o,t),t[i]},k)}(r,e)).then?[4,o]:[3,2]);case 1:o=s.sent(),s.label=2;case 2:o.isProxied||(r.$watchers$=o.watchers,_t(o,r,2),o.isProxied=!0),e.$flags$|=8;try{new o(e)}catch(c){k(c)}return e.$flags$&=-9,e.$flags$|=128,Tt(e.$lazyInstance$),i=G(r.$tagName$,e.$modeName$),O.has(i)||!o.style?[3,5]:("string"!=typeof(a=o.style)&&(a=a[e.$modeName$]),8&r.$flags$?[4,n.e(96).then(n.bind(null,"DBnt")).then(function(t){return t.scopeCss(a,i,!1)})]:[3,4]);case 3:a=s.sent(),s.label=4;case 4:z(i,a,!!(1&r.$flags$)),s.label=5;case 5:return l=function(){return mt(t,e,r,!0)},(u=e.$ancestorComponent$)&&u["s-rc"]?u["s-rc"].push(l):l(),[2]}})})}(t,r,e)})}Tt(r.$lazyInstance$)}}(t,a)})},e.prototype.disconnectedCallback=function(){var t=this;v.jmp(function(){return function(t){if(0==(1&v.$flags$)){var e=S(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$(),e.$rmListeners$=void 0),v.$cssShim$&&v.$cssShim$.removeHost(t),bt(n,"disconnectedCallback"),bt(n,"componentDidUnload")}}(t)})},e.prototype["s-hmr"]=function(t){},e.prototype.forceUpdate=function(){!function(t,e){var n=S(t);2==(18&n.$flags$)&&mt(t,n,e,!1)}(this,a)},e.prototype.componentOnReady=function(){return S(this).$onReadyPromise$},e}(HTMLElement);a.$lazyBundleIds$=t[0],o.includes(l)||u.get(l)||(i.push(l),u.define(l,_t(c,a,1)))})}),c.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),a.insertBefore(c,l?l.nextSibling:a.firstChild),v.jmp(function(){return r=setTimeout(yt,30)})},xt=function(t,e,n){var r=Pt(t);return{emit:function(t){return r.dispatchEvent(new CustomEvent(e,{bubbles:!!(4&n),c
1omposed:!!(2&n),cancelable:!!(1&n),detail:t}))}}},Dt=function(t){var e=new URL(t,v.$resourcesUrl$);return e.origin!==m.location.origin?e.href:e.pathname},Pt=function(t){return S(t).$hostElement$},Nt=function(t){return t&&kt(t)||a},jt=function(){!function(){var t=document,e=window,n=e.Ionic=e.Ionic||{};Object(u.g)(e);var r=Object.assign(Object.assign(Object.assign(Object.assign({},Object(u.c)(e)),{persistConfig:!1}),n.config),Object(u.a)(e));u.b.reset(r),u.b.getBoolean("persistConfig")&&Object(u.d)(e,r),n.config=u.b,n.mode=a=u.b.get("mode",t.documentElement.getAttribute("mode")||(Object(u.f)(e,"ios")?"ios":"md")),u.b.set("mode",a),t.documentElement.setAttribute("mode",a),t.documentElement.classList.add(a),u.b.getBoolean("_testing")&&u.b.set("animated",!1),It(function(t){return t.mode=t.mode||t.getAttribute("mode")||a})}(),It(function(t){return"ION-ICON"===t.tagName?t.mode||t.getAttribute("mode"):null})}},tnAE:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n("6nsN"),n("5x/H");var r=n("Wcq6"),i=n("0/uQ"),o=n("F/XL"),a=n("6blF"),s=n("67Y/"),u=n("xMyE"),l=n("YBFb"),c=n("HJBB"),h=(n("8s+1"),n("2g2N"),function(){function t(t,e){var n=this;this.toastService=t,this.principal=e,this.getAuthUser=function(){return n.principal.identity()}
1,this.getSelectedPvr=function(){return n.principal.pvr()},this.mapToObj=function(t){return Object.assign({},t)},this.mapToData=function(t){return Object.keys(t).forEach(function(e){return!t[e]&&delete t[e]}),Object.assign({},t)}}return t.prototype.getUrl=function(){return null},t.prototype.create=function(t){var e=this,n=r.firestore(),o=this.getUrl();if(o){console.log("Request for creare:",o,t);var a=n.collection(o).doc(),s=r.firestore.FieldValue.serverTimestamp();return t.creationDate=s,t.uid=a.id,Object(i.a)(a.set(this.mapToData(t)).then(function(){return t}).catch(function(t){return console.log("error",o,t),e.toastService.makeToastError(t.message),null}))}return null},t.prototype.update=function(t){var e=this,n=r.firestore(),o=this.getUrl();if(o){console.log("Request for update:",o,t);var a=n.collection(o).doc(t.uid);return Object(i.a)(a.update(this.mapToData(t)).then(function(){return t}).catch(function(t){return console.log("error",o,t),e.toastService.makeToastError(t.message),Object.assign({})}))}return null},t.prototype.find=function(t){var e=this,n=r.firestore(),o=this.getUrl();if(o){var a=o+"/"+t;return console.log('Recived request for : GET "'+a+'"'),Object(i.a)(n.doc(a).get().then(function(t){return console.log('Fetch finished loading: GET "'+a+'"'),e.mapToObj(t.data())}).catch(function(t){return console.log("error",o,t),e.toastService.makeToastError(t.message),Object.assign({})}))}return null},t.prototype.findByKey=function(t){var e=this,n=r.firestore();return console.log('Recived request for : GET "'+t+'"'),Object(i.a)(n.doc(t).get().then(function(n){return console.log('Fetch finished loading: GET "'+t+'"'),e.mapToObj(n.data())}).catch(function(n){return console.log("error",t,n),e.toastService.makeToastError(n.message),Object.assign({})}))},t.prototype.delete=function(t){var e=this,n=r.firestore(),o=this.getUrl();if(o){console.log("Request for delete:",o,t);var a=n.collection(o).doc(t);return Object(i.a)(a.delete().catch(function(t){return console.log("error",o,t),e.toastService.makeToastError(t.message),null}))}return null},t.prototype.onSnapshot=function(t,e){var n=this,i=r.firestore(),s=this.getUrl(),u=e.pageSize?e.pageSize:l.a;if(s){var c=i.collection(s);return e&&(e.value&&(c=c.where(e.field,e.operator,e.value)),e.sort&&(c=c.orderBy(e.field,e.sort))),t&&this.firstVisible&&(c=c.endBefore(this.firstVisible)),a.a.create(function(t){c.limit(u).onSnapshot(function(e){e.docChanges().forEac
1h(function(e){var r=n.mapToObj(e.doc.data());"added"===e.type&&t.next(r),n.lastVisible=r})})})}return Object(o.a)(null)},t.prototype.onSnapshotDocument=function(t){r.firestore();var e=r.firestore().doc(t);return a.a.create(function(t){return e.onSnapshot(t)}).pipe(Object(s.a)(function(t){return t.data()}))},t.prototype.query=function(t,e){var n=this,a=r.firestore(),h=this.getUrl(),f=e||new c.a,d=f.pageSize?f.pageSize:l.a;if(console.log('Request for url: "'+h+'"'),h){var p=a.collection(h);return f&&(f.value&&(p=p.where(f.field,f.operator,f.value)),f.sort&&(p=p.orderBy(f.field,f.sort))),t&&this.lastVisible&&(p=p.startAfter(this.lastVisible)),Object(i.a)(p.limit(d).get().catch(function(t){return console.log("error",h,t),n.toastService.makeToastError(t.message),null})).pipe(Object(u.a)(function(t){return n.setLastVisible(t)}),Object(u.a)(function(t){return n.setFirstVisible(t)}),Object(s.a)(function(t){return t?t.docs.map(function(t){return n.mapToObj(t.data())}):null}))}return Object(o.a)(null)},t.prototype.setLastVisible=function(t){return t&&t.docs[t.docs.length-1]&&(this.lastVisible=t.docs[t.docs.length-1]),t},t.prototype.setFirstVisible=function(t){return t&&!this.firstVisible&&(this.firstVisible=t.docs[0]),t},t}())},tuBy:function(t,e,n){n("WBJg"),t.exports=n("vLVD")("String","repeat")},tzov:function(t,e,n){var r=n("bcPd"),i=n("JzIs"),o=n("o9j8"),a=n("rs5h"),s=n("JIMt"),u=n("qBi7")("IE_PROTO"),l=function(){},c=function(){var t,e=s("iframe"),n=o.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[u]=t):n=c(),void 0===e?n:i(n,e)},n("vcTx")[u]=!0},u67D:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("En8+"),i=function(t){return function(e){for(var n=t[r.a]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},uLJa:function(t,e,n){n("q94Q")("toStringTag")},"uiB+":function(t,e,n){n("q94Q")("isConcatSpreadable")},uxqg:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){function t(t,e,n,r,i,o,a){this.uid=t,this.name=e,this.logo=n,this.domainName=r,this.creationDate=i,this.scommettendo=o,this.puntoRicarica=a}return t.prototype.getDataInfo=function(){return"pvr"},t.prototype.getContactsList=function(){return"contacts/"+this.uid+"/list"},t.prototype.getBlog=function(){return"blog/"+this.uid+"/list"},t.prototype.getChatsList=function(){return"chats/"+this.uid+"/list"},t.prototype.getCMSList=function(){return"content-management/"+this.uid+"/list"},t.prototype.getOperatorsList=function(){return"pvr-operators/"+this.uid+"/list"},t.prototype.getServiceInfo=function(t){return t+"/"+this.uid},t.prototype.getContentManagementServiceInfo=function(){return this.getServiceInfo("content-management")},t.prototype.getChatServiceInfo=function(){return this.getServiceInfo("chat")},t.prototype.getGuestServiceInfo=function(){return this.getServiceInfo("guest")},t.prototype.getBlogServiceInfo=function(){return this.getServiceInfo("blog")},t.prototype.getNotificationsDocument=function(){return"notifications/"+this.uid},t.prototype.getFCMMessagingTopic=function(){return"message/"+this.uid},t}();function i(t){var e=new r;return t?(e.uid=t.uid,t.logo&&(e.logo=t.logo),t.name&&(e.name=t.name),t.domainName&&(e.domainName=t.domainName),t.scommettendo&&(e.scommettendo=t.scommettendo),t.puntoRicarica&&(e.puntoRicarica=t.puntoRicarica),e):null}},uzCt:function(t,e,n){t.exports=function(){"use strict";function t(e){return t.result?t.result:e&&"function"==typeof e.getSerializer?t.result=e.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function e(t,n){return(e.result=e.result||{})[n]?e.result[n]:t&&"function"==typeof t.getDriver?e.result[n]=t.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(t){return e(t,t.WEBSQL)}
1var r=new Promise(function(t,e){"undefined"!=typeof sqlitePlugin?t():"undefined"==typeof cordova?e(new Error("cordova is not defined.")):document.addEventListener("deviceready",function(){return t()},!1)}).catch(function(){return Promise.resolve()});function i(){return r.then(function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")})}var o={_driver:"cordovaSQLiteDriver",_initStorage:function(e){var r=this,o={db:null};if(e)for(var a in e)o[a]="string"!=typeof e[a]?e[a].toString():e[a];var s=i().then(function(t){return new Promise(function(e,n){try{o.location=o.location||"default",o.db=t({name:o.name,version:String(o.version),description:o.description,size:o.size,key:o.dbKey,location:o.location})}catch(i){n(i)}o.db.transaction(function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){r._dbInfo=o,e()},function(t,e){n(e)})})})}),u=t(r),l=n(r);return Promise.all([u,l,s]).then(function(t){return o.serializer=t[0],s})},_support:function(){return i().then(function(t){return!!t}).catch(function(){return!1})}};return function(t){var e=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function r(t,e){t[e]=function(){var t=this,r=arguments;return n(t).then(function(n){return n[e].apply(t,r)})}}for(var i=0,o=e.length;i<o;i++)r(t,e[i])}(o),o}()},uzDk:function(t,e,n){n("4mOR"),t.exports=n("vLVD")("Array","findIndex")},vLVD:function(t,e,n){var r=n("ysHE"),i=n("JpPu"),o=Function.call;t.exports=function(t,e,n){return i(o,r[t].prototype[e],n)}},vQkR:function(t,e,n){var r=n("JpPu"),i=n("t5mC"),o=n("SAp2"),a=n("H6ty"),s=n("rhCS");t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,h=6==t,f=5==t||h,d=e||s;return function(e,s,p){for(var m,g,v=o(e),y=i(v),b=r(s,p,3),w=a(y.length),_=0,S=n?d(e,w):u?d(e,0):void 0;w>_;_++)if((f||_ in y)&&(g=b(m=y[_],_,v),t))if(n)S[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(c)return!1;return h?-1:l||c?c:S}}},vY5A:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return v}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return h}),n.d(e,"h",function(){return f}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return p}),n.d(e,"k",function(){return m}),n.d(e,"l",function(){return g});var r=n("F/XL"),i=(n("Rmbw"),n("iXDR"),n("qmPg"),n("J/Re"),n("oflK"),n("99Un"),n("hsj+"),n("bP1B"),n("J3Ai"),n("yGlH"),n("nD9t"),n("dIU2"),n("hJJ8"),n("8s+1")),o=(n("Vta1"),n("MKys"),n("B+2a"),n("CcnG")),a=function(){function t(t){this.principal=t}return t.prototype.resolve=function(t,e){return Object(r.a)(this.principal.identity())},t.ngInjectableDef=o.T({factory:function(){return new t(o.X(i.a))},token:t,providedIn:"root"}),t}(),s={requirePvr:!0},u={requirePvr:!0},l={requirePvr:!0},c={requirePvr:!0},h={requirePvr:!0},f={requirePvr:!0},d={requirePvr:!0},p={requirePvr:!0},m={authorities:["pvr","operator"],requirePvr:!0},g={requirePvr:!0},v=function(){return function(){}}()},"vb+c":function(t,e,n){n("S4gH")(Math,"Math",!0)},vcTx:function(t,e){t.exports={}},"wBs/":function(t,e,n){var r=n("TIpl"),i=n("2Hee");t.exports=n("lb/b")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},wj3C:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n("mrSG"),o=n("zVF4"),a=((r={})["no-app"]="No Firebase App '{$name}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$name}",r["duplicate-app"]="Firebase App named '{$name}' already exists",r["app-deleted"]="Firebase App named '{$name}' already deleted",r["duplicate-service"]="Firebase service named '{$name}' already registered",r["invalid-app-argument"]="firebase.{$name}() takes either no argument or a Firebase App instance.",r),s=new o.ErrorFactory("app","Firebase",a);function u(t,e){throw s.create(t,e)}var l="[DEFAULT]",c=[],h=function(){function t(t,e,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=o.deepCopy(t),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(t){c.push(t),setTimeout(function(){return t(null)},0)},removeAuthTokenListener:function(t){c=c.filter(function(e){return e!==t})}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){t.firebase_.INTERNAL.removeApp(t.name_);for(var e=[],n=0,r=Object.keys(t.services_);n<r.length;n++)for(var i=r[n],o=0,a=Object.keys(t.services_[i]);o<a.length;
1o++)e.push(t.services_[i][a[o]]);return Promise.all(e.map(function(t){return t.INTERNAL.delete()}))}).then(function(){t.isDeleted_=!0,t.services_={}})},t.prototype._getService=function(t,e){if(void 0===e&&(e=l),this.checkDestroyed_(),this.services_[t]||(this.services_[t]={}),!this.services_[t][e]){var n=e!==l?e:void 0,r=this.firebase_.INTERNAL.factories[t](this,this.extendApp.bind(this),n);this.services_[t][e]=r}return this.services_[t][e]},t.prototype.extendApp=function(t){var e=this;o.deepExtend(this,t),t.INTERNAL&&t.INTERNAL.addAuthTokenListener&&(c.forEach(function(t){e.INTERNAL.addAuthTokenListener(t)}),c=[])},t.prototype.checkDestroyed_=function(){this.isDeleted_&&u("app-deleted",{name:this.name_})},t}();function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}h.prototype.name&&h.prototype.options||h.prototype.delete||console.log("dc");var d=!1;try{d="[object process]"===Object.prototype.toString.call(global.process)}catch(g){}if(d&&console.warn('\nWarning: This is a browser-targeted Firebase bundle but it appears it is being\nrun in a Node environment. If running in a Node environment, make sure you\nare using the bundle specified by the "main" field in package.json.\n\nIf you are using Webpack, you can specify "main" as the first item in\n"resolve.mainFields":\nhttps://webpack.js.org/configuration/resolve/#resolvemainfields\n\nIf using Rollup, use the rollup-plugin-node-resolve plugin and set "module"\nto false and "main" to true:\nhttps://github.com/rollup/rollup-plugin-node-resolve\n'),self&&"firebase"in self){console.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var p=self.firebase.SDK_VERSION;p&&p.indexOf("LITE")>=0&&console.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var m=function t(){var e=function(t){var e={},n={},r={},i={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={}),("object"!=typeof r||null===r)&&(r={name:r});var o=r;void 0===o.name&&(o.name=l);var a=o.name;"string"==typeof a&&a||u("bad-app-name",{name:String(a)}),f(e,a)&&u("duplicate-app",{name:a});var s=new t(n,o,i);return e[a]=s,c(s,"create"),s},app:a,apps:null,Promise:Promise,SDK_VERSION:"5.11.0",INTERNAL:{registerService:function(e,l,c,h,f){function d(t){return void 0===t&&(t=a()),"function"!=typeof t[e]&&u("invalid-app-argument",{name:e}),t[e]()}return void 0===f&&(f=!1),n[e]&&u("duplicate-service",{name:e}
1),n[e]=l,h&&(r[e]=h,s().forEach(function(t){h("create",t)})),void 0!==c&&o.deepExtend(d,c),i[e]=d,t.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._getService.bind(this,e).apply(this,f?t:[])},d},removeApp:function(t){c(e[t],"delete"),delete e[t]},factories:n,useAsService:h}};function a(t){return f(e,t=t||l)||u("no-app",{name:t}),e[t]}function s(){return Object.keys(e).map(function(t){return e[t]})}function c(t,e){for(var i=0,o=Object.keys(n);i<o.length;i++){var a=h(0,o[i]);if(null===a)return;r[a]&&r[a](e,t)}}function h(t,e){return"serverAuth"===e?null:e}return o.patchProperty(i,"default",i),Object.defineProperty(i,"apps",{get:s}),o.patchProperty(a,"App",t),i}(h);return e.INTERNAL=i.__assign({},e.INTERNAL,{createFirebaseNamespace:t,extendNamespace:function(t){o.deepExtend(e,t)},createSubscribe:o.createSubscribe,ErrorFactory:o.ErrorFactory,deepExtend:o.deepExtend}),e}();e.default=m,e.firebase=m},x7I3:function(t,e,n){"use strict";n.r(e),n.d(e,"ErrorCode",function(){return sr}),n.d(e,"EventType",function(){return ur}),n.d(e,"WebChannel",function(){return lr}),n.d(e,"XhrIo",function(){return cr}),n.d(e,"createWebChannelTransport",function(){return ar});var r,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=o||{},a=i;function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function l(t,e){t=t.split("."),e=e||a;for(var n=0;n<t.length;n++)if(null==(e=e[t[n]]))return null;return e}function c(){}function h(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function f(t){return"array"==h(t)}function d(t){var e=h(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var m="closure_uid_"+(1e9*Math.random()>>>0),g=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function y(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function b(t,e,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:y).apply(null,arguments)}function w(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var _=Date.now||function(){return+new Date};function S(t,e){function n(){}n.prototype=e.prototype,t.N=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.yb=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function E(){this.j=this.j,this.i=this.i}E.prototype.j=!1,E.prototype.la=function(){!this.j&&(this.j=!0,this.G(),0)&&(this[m]||(this[m]=++g))},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var C=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(s(t))return s(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},I=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i=s(t)?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function k(t){return Array.prototype.concat.apply([],arguments)}function T(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function O(t){return/^[\s\xa0]*$/.test(t)}var A,x=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function D(t,e){return-1!=t.indexOf(e)}function P(t,e){return t<e?-1:t>e?1:0}t:{var N=a.navigator;if(N){var j=N.userAgent;if(j){A=j;break t}}A=""}function R(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function M(t){var e,n={};for(e in t)n[e]=t[e];return n}var L="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function F(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<L.length;o++)n=L[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function V(t){return V[" "](t),t}V[" "]=c;var U,q,B=D(A,"Opera"),z=D(A,"Trident")||D(A,"MSIE"),H=D(A,"Edge"),G=H||z,$=D(A,"Gecko")&&!(D(A.toLowerCase(),"webkit")&&!D(A,"Edge"))&&!(D(A,"Trident")||D(A,"MSIE"))&&!D(A,"Edge"),K=D(A.toLowerCase(),"webkit")&&!D(A,"Edge");function W(){var t=a.document;return t?t.documentMode:void 0}t:{var Q="",J=(q=A,$?/rv:([^\);]+)(\)|;)/.exec(q):H?/Edge\/([\d\.]+)/.exec(q):z?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q):K?/WebKit\/(\S+)/.exec(q):B?/(?:Version)[ \/]?(\S+)/.exec(q):void 0);if(J&&(Q=J?J[1]:""),z){var X=W();if(null!=X&&X>parseFloat(Q)){U=String(X);break t}}U=Q}var Y,Z={};function tt(t){return function(t,e){var n=Z;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=x(String(U)).split("."),r=x(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=P(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||P(0==a[2].length,0==s[2].length)||P(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var et=a.document;Y=et&&z?W()||("CSS1Compat"==et.compatMode?parseInt(U,10):5):void 0;var nt=!z||9<=Number(Y),rt=z&&!tt("9"),it=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",c,e),a.removeEventListener("test",c,e)}catch(n){}return t}();function ot(t,e){this.type=t,this.a=this.target=e,this.Ja=!0}function at(t,e){if(ot.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if($){t:{try{V(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=s(t.pointerType)?t.pointerType:st[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}ot.prototype.b=function(){this.Ja=!1},S(at,ot);var st={2:"touch",3:"pen",4:"mouse"};at.prototype.b=function(){at.N.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,rt)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var ut="closure_listenable_"+(1e6*Math.random()|0),lt=0;function ct(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.da=i,this.key=++lt,this.X=this.Z=!1}function ht(t){t.X=!0,t.listener=null,t.proxy=null,t.src=null,t.da=null}function ft(t){this.src=t,this.a={},this.b=0}function dt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=C(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ht(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function pt(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.X&&o.listener==e&&o.capture==!!n&&o.da==r)return i}return-1}ft.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=pt(t,e,r,i);return-1<a?(e=t[a],n||(e.Z=!1)):((e=new ct(e,this.src,o,!!r,i)).Z=n,t.push(e)),e};var mt="closure_lm_"+(1e6*Math.random()|0),gt={};function vt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(f(n)){for(var a=0;a<n.length;a++)t(e,n[a],r,i,o);return null}return r=Ct(r),e&&e[ut]?e.Ba(n,r,p(i)?!!i.capture:!!i,o):yt(e,n,r,!0,i,o)}(t,e,n,r,i);if(f(e)){for(var o=0;o<e.length;o++)vt(t,e[o],n,r,i);return null}return n=Ct(n),t&&t[ut]?t.Aa(e,n,p(r)?!!r.capture:!!r,i):yt(t,e,n,!1,r,i)}function yt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=p(i)?!!i.capture:!!i;if(a&&!nt)return null;var s=St(t);if(s||(t[mt]=s=new ft(t)),(n=s.add(e,n,r,a,o)).proxy)return n;if(r=function(){var t=_t,e=nt?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)it||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(wt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function bt(t){if(!u(t)&&t&&!t.X){var e=t.src;if(e&&e[ut])dt(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(wt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=St(e))?(dt(n,t),0==n.b&&(n.src=null,e[mt]=null)):ht(t)}}}function wt(t){return t in gt?gt[t]:gt[t]="on"+t}function _t(t,e){return!!t.X||function(t,e){var n=t.listener,r=t.da||t.src;return t.Z&&bt(t),n.call(r,e)}(t,nt?new at(e,this):e=new at(e||l("window.event"),this))}function St(t){return(t=t[mt])instanceof ft?t:null}var Et="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ct(t){return"function"==h(t)?t:(t[Et]||(t[Et]=function(e){return t.handleEvent(e)}),t[Et])}function It(){E.call(this),this.c=new ft(this),this.J=this,this.B=null}function kt(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.X&&a.capture==n){var s=a.listener,u=a.da||a.src;a.Z&&dt(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Ja}S(It,E),It.prototype[ut]=!0,(r=It.prototype).addEventListener=function(t,e,n,r){vt(this,t,e,n,r)},r.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,o){if(f(n))for(var a=0;a<n.length;a++)t(e,n[a],r,i,o);else i=p(i)?!!i.capture:!!i,r=Ct(r),e&&e[ut]?(e=e.c,(n=String(n).toString())in e.a&&-1<(r=pt(a=e.a[n],r,i,o))&&(ht(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete e.a[n],e.b--))):e&&(e=St(e))&&(n=e.a[n.toString()],e=-1,n&&(e=pt(n,r,i,o)),(r=-1<e?n[e]:null)&&bt(r))}(this,t,e,n,r)},r.dispatchEvent=function(t){var e,n=this.B;if(n)for(e=[];n;
1n=n.B)e.push(n);n=this.J;var r=t.type||t;if(s(t))t=new ot(t,n);else if(t instanceof ot)t.target=t.target||n;else{var i=t;F(t=new ot(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];i=kt(a,r,!0,t)&&i}if(i=kt(a=t.a=n,r,!0,t)&&i,i=kt(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=kt(a=t.a=e[o],r,!1,t)&&i;return i},r.G=function(){if(It.N.G.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)ht(n[r]);delete e.a[t],e.b--}}this.B=null},r.Aa=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},r.Ba=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var Tt=a.JSON.stringify;function Ot(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function At(){this.b=this.a=null}Ot.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var xt,Dt=new Ot(function(){return new Nt},function(t){t.reset()});function Pt(){var t=Lt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Nt(){this.next=this.b=this.a=null}function jt(t){a.setTimeout(function(){throw t},0)}function Rt(t,e){xt||function(){var t=a.Promise.resolve(void 0);xt=function(){t.then(Ft)}}(),Mt||(xt(),Mt=!0),Lt.add(t,e)}At.prototype.add=function(t,e){var n=Dt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Nt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Nt.prototype.reset=function(){this.next=this.b=this.a=null};var Mt=!1,Lt=new At;function Ft(){for(var t;t=Pt();){try{t.a.call(t.b)}catch(n){jt(n)}var e=Dt;e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}Mt=!1}function Vt(t,e){It.call(this),this.b=t||1,this.a=e||a,this.f=b(this.gb,this),this.g=_()}function Ut(t){t.ba=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function qt(t,e,n){if("function"==h(t))n&&(t=b(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=b(t.handleEvent,t)}return 2147483647<Number(e)?-1:a.setTimeout(t,e||0)}function Bt(t,e,n){E.call(this),this.f=null!=n?b(t,n):t,this.c=e,this.b=b(this.ab,this),this.a=[]}function zt(t){t.U=qt(t.b,t.c),t.f.apply(null,t.a)}function Ht(t){E.call(this),this.b=t,this.a={}}S(Vt,It),(r=Vt.prototype).ba=!1,r.L=null,r.gb=function(){if(this.ba){var t=_()-this.g;0<t&&t<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-t):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.ba&&(Ut(this),this.start()))}},r.start=function(){this.ba=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=_())},r.G=function(){Vt.N.G.call(this),Ut(this),delete this.a},S(Bt,E),(r=Bt.prototype).ea=!1,r.U=null,r.Ua=function(t){this.a=arguments,this.U?this.ea=!0:zt(this)},r.G=function(){Bt.N.G.call(this),this.U&&(a.clearTimeout(this.U),this.U=null,this.ea=!1,this.a=[])},r.ab=function(){this.U=null,this.ea&&(this.ea=!1,zt(this))},S(Ht,E);var Gt=[];function $t(t,e,n,r){f(n)||(n&&(Gt[0]=n.toString()),n=Gt);for(var i=0;i<n.length;i++){var o=vt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function Kt(t){R(t.a,function(t,e){this.a.hasOwnProperty(e)&&bt(t)},t),t.a={}}function Wt(){}Ht.prototype.G=function(){Ht.N.G.call(this),Kt(this)},Ht.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Qt=new It;function Jt(t){ot.call(this,"serverreachability",t)}function Xt(t){Qt.dispatchEvent(new Jt(Qt,t))}function Yt(t){ot.call(this,"statevent",t)}function Zt(t){Qt.dispatchEvent(new Yt(Qt,t))}function te(t){ot.call(this,"timingevent",t)}function ee(t,e){if("function"!=h(t))throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){t()},e)}S(Jt,ot),S(Yt,ot),S(te,ot);var ne={NO_ERROR:0,hb:1,ob:2,nb:3,kb:4,mb:5,pb:6,Ma:7,TIMEOUT:8,sb:9},re={jb:"complete",wb:"success",Na:"error",Ma:"abort",ub:"ready",vb:"readystatechange",TIMEOUT:"timeout",qb:"incrementaldata",tb:"progress",lb:"downloadprogress",xb:"uploadprogress"};function ie(){}function oe(){}ie.prototype.a=null;var ae,se={OPEN:"a",ib:"b",Na:"c",rb:"d"};function ue(){ot.call(this,"d")}function le(){ot.call(this,"c")}function ce(){}function he(t,e,n){this.g=t,this.W=e,this.V=n||1,this.I=new Ht(this),this.O=fe,this.P=new Vt(t=G?125:void 0),this.h=null,this.b=!1,this.l=this.D=this.f=this.F=this.v=this.R=this.i=null,this.j=[],this.a=null,this.A=0,this.c=this.w=null,this.o=-1,this.m=!1,this.J=0,this.B=null,this.s=this.S=this.H=!1}S(ue,ot),S(le,ot),S(ce,ie),ae=new ce;var fe=45e3,de={},pe={};function me(t,e,n){t.F=1,t.f=Ue(Ne(e)),t.l=n,t.H=!0,ve(t,null)}function ge(t,e,n,r){t.F=1,t.f=Ue(Ne(e)),t.l=null,t.H=n,ve(t,r)}function ve(t,e){t.v=_(),we(t),t.D=Ne(t.f),Ve(t.D,"t",t.V),t.A=0,t.a=t.g.$(t.g.Y()?e:null),0<t.J&&(t.B=new Bt(b(t.Ka,t,t.a),t.J)),$t(t.I,t.a,"readystatechange",t.eb),e=t.h?M(t.h):{},t.l?(t.w||(t.w="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ca(t.D,t.w,t.l,e)):(t.w="GET",t.a.ca(t.D,t.w,null,e)),Xt(1)}function ye(t,e,n){for(var r=!0;!t.m&&t.A<n.length;){var i=be(t,n);if(i==pe){4==e&&(t.c=4,Zt(14),r=!1);break}if(i==de){t.c=4,Zt(15),r=!1;break}Ie(t,i)}4==e&&0==n.length&&(t.c=1,Zt(16),r=!1),t.b=t.b&&r,r||(Ce(t),Ee(t))}function be(t,e){var n=t.A,r=e.indexOf("\n",n);return-1==r?pe:(n=Number(e.substring(n,r)),isNaN(n)?de:(r+=1)+n>e.length?pe:(e=e.substr(r,n),t.A=r+n,e))}function we(t){t.R=_()+t.O,_e(t,t.O)}function _e(t,e){if(null!=t.i)throw Error("WatchDog timer not null");t.i=ee(b(t.bb,t),e)}function Se(t){t.i&&(a.clearTimeout(t.i),t.i=null)}function Ee(t){t.g.Da()||t.m||t.g.na(t)}function Ce(t){Se(t);var e=t.B;e&&"function"==typeof e.la&&e.la(),t.B=null,Ut(t.P),Kt(t.I),t.a&&(e=t.a,t.a=null,e.abort(),e.la())}function Ie(t,e){try{t.g.Ga(t,e),Xt(4)}catch(n){}}function ke(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(d(t)||s(t))I(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.C&&"function"==typeof t.C)n=void 0;else if(d(t)||s(t)){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.C&&"function"==typeof t.C)return t.C();if(s(t))return t.split("");
1if(d(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Te(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Te)for(n=t.K(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Oe(t,e){xe(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Ae(t))}function Ae(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];xe(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)xe(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function xe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(r=he.prototype).setTimeout=function(t){this.O=t},r.eb=function(t){t=t.target;var e=this.B;e&&3==Nn(t)?e.Ua():this.Ka(t)},r.Ka=function(t){try{if(t==this.a)t:{var e=Nn(this.a),n=this.a.ya(),r=this.a.T();if(!(3>e||3==e&&!G&&!this.a.aa())){this.m||4!=e||7==n||Xt(8==n||0>=r?3:2),Se(this);var i=this.a.T();this.o=i;var o=this.a.aa();if(this.b=200==i){if(this.S&&!this.s){e:{if(this.a){var a=jn(this.a,"X-HTTP-Initial-Response");if(a&&!O(a)){var s=a;break e}}s=null}if(!s){this.b=!1,this.c=3,Zt(12),Ce(this),Ee(this);break t}this.s=!0,Ie(this,s)}this.H?(ye(this,e,o),G&&this.b&&3==e&&($t(this.I,this.P,"tick",this.cb),this.P.start())):Ie(this,o),4==e&&Ce(this),this.b&&!this.m&&(4==e?this.g.na(this):(this.b=!1,we(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Zt(12)):(this.c=0,Zt(13)),Ce(this),Ee(this)}}}catch(u){}},r.cb=function(){if(this.a){var t=Nn(this.a),e=this.a.aa();this.A<e.length&&(Se(this),ye(this,t,e),this.b&&4!=t&&we(this))}},r.cancel=function(){this.m=!0,Ce(this)},r.bb=function(){this.i=null;var t=_();0<=t-this.R?(2!=this.F&&(Xt(3),Zt(17)),Ce(this),this.c=2,Ee(this)):_e(this,this.R-t)},(r=Te.prototype).C=function(){Ae(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},r.K=function(){return Ae(this),this.a.concat()},r.get=function(t,e){return xe(this.b,t)?this.b[t]:e},r.set=function(t,e){xe(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},r.forEach=function(t,e){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var De=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Pe(t,e){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,t instanceof Pe?(this.h=void 0!==e?e:t.h,je(this,t.f),this.j=t.j,Re(this,t.b),Me(this,t.i),this.a=t.a,Le(this,tn(t.c)),this.g=t.g):t&&(n=String(t).match(De))?(this.h=!!e,je(this,n[1]||"",!0),this.j=qe(n[2]||""),Re(this,n[3]||"",!0),Me(this,n[4]),this.a=qe(n[5]||"",!0),Le(this,n[6]||"",!0),this.g=qe(n[7]||"")):(this.h=!!e,this.c=new Qe(null,this.h))}function Ne(t){return new Pe(t)}function je(t,e,n){t.f=n?qe(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Re(t,e,n){t.b=n?qe(e,!0):e}function Me(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.i=e}else t.i=null}function Le(t,e,n){e instanceof Qe?(t.c=e,function(t,e){e&&!t.f&&(Je(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Xe(this,e),Ze(this,n,t))},t)),t.f=e}(t.c,t.h)):(n||(e=Be(e,Ke)),t.c=new Qe(e,t.h))}function Fe(t,e,n){t.c.set(e,n)}function Ve(t,e,n){f(n)||(n=[String(n)]),Ze(t.c,e,n)}function Ue(t){return Fe(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^_()).toString(36)),t}function qe(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Be(t,e,n){return s(t)?(t=encodeURI(t).replace(e,ze),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ze(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Pe.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Be(e,He,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Be(e,He,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2}
1)/g,"%$1")),null!=(n=this.i)&&t.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Be(n,"/"==n.charAt(0)?$e:Ge,!0))),(n=this.c.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Be(n,We)),t.join("")},Pe.prototype.resolve=function(t){var e=Ne(this),n=!!t.f;n?je(e,t.f):n=!!t.j,n?e.j=t.j:n=!!t.b,n?Re(e,t.b):n=null!=t.i;var r=t.a;if(n)Me(e,t.i);else if(n=!!t.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=e.a.lastIndexOf("/");-1!=i&&(r=e.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(D(i,"./")||D(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.a=r:n=""!==t.c.toString(),n?Le(e,tn(t.c)):n=!!t.g,n&&(e.g=t.g),e};var He=/[#\/\?@]/g,Ge=/[#\?:]/g,$e=/[#\?]/g,Ke=/[#\?@]/g,We=/#/g;function Qe(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Je(t){t.a||(t.a=new Te,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Xe(t,e){Je(t),e=en(t,e),xe(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Oe(t.a,e))}function Ye(t,e){return Je(t),e=en(t,e),xe(t.a.b,e)}
1function Ze(t,e,n){Xe(t,e),0<n.length&&(t.c=null,t.a.set(en(t,e),T(n)),t.b+=n.length)}function tn(t){var e=new Qe;return e.c=t.c,t.a&&(e.a=new Te(t.a),e.b=t.b),e}function en(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function nn(t){this.a=t,this.b=this.h=null,this.g=!1,this.i=null,this.c=-1,this.l=this.f=null}function rn(t){var e=t.a.F.a;if(null!=e)Zt(4),e?(Zt(10),$n(t.a,t,!1)):(Zt(11),$n(t.a,t,!0));else{t.b=new he(t,void 0,void 0),t.b.h=t.h,e=Xn(e=t.a,e.Y()?t.f:null,t.i),Zt(4),Ve(e,"TYPE","xmlhttp");var n=t.a.j,r=t.a.I;n&&r&&Fe(e,n,r),ge(t.b,e,!1,t.f)}}function on(){this.a=this.b=null}function an(){this.a=new Te}function sn(t){var e=typeof t;return"object"==e&&t||"function"==e?"o"+(t[m]||(t[m]=++g)):e.charAt(0)+t}function un(t,e){this.b=t,this.a=e}function ln(t){this.g=t||cn,t=a.PerformanceNavigationTiming?0<(t=a.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(a.ka&&a.ka.Ea&&a.ka.Ea()&&a.ka.Ea().zb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new an),this.b=null,this.c=[]}(r=Qe.prototype).add=function(t,e){Je(this),this.c=null,t=en(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},r.forEach=function(t,e){Je(this),this.a.forEach(function(n,r){I(n,function(n){t.call(e,n,r,this)},this)},this)},r.K=function(){Je(this);for(var t=this.a.C(),e=this.a.K(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},r.C=function(t){Je(this);var e=[];if(s(t))Ye(this,t)&&(e=k(e,this.a.get(en(this,t))));else{t=this.a.C();for(var n=0;n<t.length;n++)e=k(e,t[n])}return e},r.set=function(t,e){return Je(this),this.c=null,Ye(this,t=en(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},r.get=function(t,e){return t&&0<(t=this.C(t)).length?String(t[0]):e},r.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.K(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.C(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")},S(function(){},function(){}),(r=nn.prototype).M=null,r.$=function(t){return this.a.$(t)},r.abort=function(){this.b&&(this.b.cancel(),this.b=null),this.c=-1},r.Da=function(){return!1},r.Ga=function(t,e){if(this.c=t.o,0==this.M){if(!this.a.o&&(t=t.a)){var n=jn(t,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&(t=jn(t,"X-HTTP-Session-Id"))&&(this.a.I=t)}if(e){try{var r=this.a.ja.a.parse(e)}catch(i){return(e=this.a).m=this.c,void Qn(e,2)}this.f=r[0]}else(e=this.a).m=this.c,Qn(e,2)}else 1==this.M&&(this.g?Zt(6):"11111"==e?(Zt(5),this.g=!0,(!z||10<=Number(Y))&&(this.c=200,this.b.cancel(),Zt(11),$n(this.a,this,!0))):(Zt(7),this.g=!1))},r.na=function(){if(this.c=this.b.o,this.b.b)0==this.M?(this.M=1,rn(this)):1==this.M&&(this.g?(Zt(11),$n(this.a,this,!0)):(Zt(10),$n(this.a,this,!1)));else{0==this.M?Zt(8):1==this.M&&Zt(9);var t=this.a;t.m=this.c,Qn(t,2)}},r.Y=function(){return this.a.Y()},r.ma=function(){return this.a.ma()},an.prototype.add=function(t){this.a.set(sn(t),t)},an.prototype.C=function(){return this.a.C()};var cn=10;function hn(t,e){!t.a&&(D(e,"spdy")||D(e,"quic")||D(e,"h2"))&&(t.f=t.g,t.a=new an,t.b&&(mn(t,t.b),t.b=null))}function fn(t){return!!t.b||!!t.a&&t.a.a.c>=t.f}function dn(t){return t.b?1:t.a?t.a.a.c:0}function pn(t,e){return t.b?t=t.b==e:t.a?(e=sn(e),t=xe(t.a.a.b,e)):t=!1,t}function mn(t,e){t.a?t.a.add(e):t.b=e}function gn(t,e){var n;t.b&&t.b==e?t.b=null:((n=t.a)&&(n=sn(e),n=xe(t.a.a.b,n)),n&&Oe(t.a.a,sn(e)))}function vn(t){if(null!=t.b)return t.c.concat(t.b.j);if(null!=t.a&&0!=t.a.a.c){var e=t.c;return I(t.a.C(),function(t){e=e.concat(t.j)}),e}return T(t.c)}function yn(){}function bn(){this.a=new yn}function wn(t,e,n){var r=n||"";try{ke(t,function(t,n){var i=t;p(t)&&(i=Tt(t)),e.push(r+n+"="+encodeURIComponent(i))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function _n(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}ln.prototype.cancel=function(){var t;this.c=vn(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&
1(I(this.a.C(),function(t){t.cancel()}),(t=this.a.a).b={},t.a.length=0,t.c=0)},yn.prototype.stringify=function(t){return a.JSON.stringify(t,void 0)},yn.prototype.parse=function(t){return a.JSON.parse(t,void 0)};var Sn=a.JSON.parse;function En(t){It.call(this),this.headers=new Te,this.H=t||null,this.b=!1,this.s=this.a=null,this.A="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.I=Cn,this.D=this.F=!1}S(En,It);var Cn="",In=/^https?$/i,kn=["POST","PUT"];function Tn(t){return"content-type"==t.toLowerCase()}function On(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,An(t),Dn(t)}function An(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function xn(t){if(t.b&&void 0!==o&&(!t.s[1]||4!=Nn(t)||2!=t.T()))if(t.l&&4==Nn(t))qt(t.Fa,0,t);else if(t.dispatchEvent("readystatechange"),4==Nn(t)){t.b=!1;try{var e,n=t.T();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var s=String(t.A).match(De)[1]||null;if(!s&&a.self&&a.self.location){var u=a.self.location.protocol;s=u.substr(0,u.length-1)}i=!In.test(s?s.toLowerCase():"")}e=i}e?(t.dispatchEvent("complete"),t.dispatchEvent("success")):(t.h=6,t.f=t.za()+" ["+t.T()+"]",An(t))}finally{Dn(t)}}}function Dn(t,e){if(t.a){Pn(t);var n=t.a,r=t.s[0]?c:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function Pn(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(a.clearTimeout(t.m),t.m=null)}function Nn(t){return t.a?t.a.readyState:0}function jn(t,e){return t.a?t.a.getResponseHeader(e):null}function Rn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}if(r)return t;if(n=function(t){var e="";return R(n,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(),s(t)){if(e=encodeURIComponent(String(e)),e+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=t.indexOf("#"))&&(n=t.length),0>(r=t.indexOf("?"))||r>n){r=n;var i=""}else i=t.substring(r+1,n);n=(t=[t.substr(0,r),i,t.substr(n)])[1],t[1]=e?n?n+"&"+e:e:n,t=t[0]+(t[1]?"?"+t[1]:"")+t[2]}return t}return Fe(t,e,n),t}function Mn(t){this.f=[],this.F=new on,this.ga=this.pa=this.B=this.ha=this.a=this.I=this.j=this.V=this.g=this.J=this.i=null,this.Ra=this.P=0,this.Pa=!!l("internalChannelParams.failFast",t),this.ia=this.w=this.s=this.l=this.h=this.c=null,this.oa=!0,this.m=this.ra=this.O=-1,this.S=this.v=this.A=0,this.Oa=l("internalChannelParams.baseRetryDelayMs",t)||5e3,this.Sa=l("internalChannelParams.retryDelaySeedMs",t)||1e4,this.Qa=l("internalChannelParams.forwardChannelMaxRetries",t)||2,this.qa=l("internalChannelParams.forwardChannelRequestTimeoutMs",t)||2e4,this.La=t&&t.Ab||void 0,this.D=void 0,this.R=t&&t.supportsCrossDomainXhr||!1,this.H="",this.b=new ln(t&&t.concurrentRequestLimit),this.ja=new bn,this.o=!t||void 0===t.backgroundChannelTest||t.backgroundChannelTest,(this.W=t&&t.fastHandshake||!1)&&!this.o&&(this.o=!0),t&&t.forceLongPolling&&(this.oa=!1),this.fa=void 0}function Ln(t){if(Fn(t),3==t.u){var e=t.P++,n=Ne(t.B);Fe(n,"SID",t.H),Fe(n,"RID",e),Fe(n,"TYPE","terminate"),Bn(t,n),(e=new he(t,e,void 0)).F=2,e.f=Ue(Ne(n)),n=!1,a.navigator&&a.navigator.sendBeacon&&(n=a.navigator.sendBeacon(e.f.toString(),"")),!n&&a.Image&&((new Image).src=e.f,n=!0),n||(e.a=e.g.$(null),e.a.ca(e.f)),e.v=_(),we(e)}Jn(t)}function Fn(t){t.w&&(t.w.abort(),t.w=null),t.a&&(t.a.cancel(),t.a=null),t.l&&(a.clearTimeout(t.l),t.l=null),Kn(t),t.b.cancel(),t.h&&(u(t.h)&&a.clearTimeout(t.h),t.h=null)}function Vn(t,e){t.f.push(new un(t.Ra++,e)),3==t.u&&Un(t)}function Un(t){fn(t.b)||t.h||(t.h=!0,Rt(t.Ia,t),t.A=0)}function qn(t,e){var n;n=e?e.W:t.P++;var r=Ne(t.B);Fe(r,"SID",t.H),Fe(r,"RID",n),Fe(r,"AID",t.O),Bn(t,r),t.g&&t.i&&Rn(r,t.g,t.i),n=new he(t,n,t.A+1),null===t.g&&(n.h=t.i),e&&(t.f=e.j.concat(t.f)),e=zn(t,n,1e3),n.setTimeout(Math.round(.5*t.qa)+Math.round(.5*t.qa*Math.random())),mn(t.b,n),me(n,r,e)}function Bn(t,e){t.c&&ke({},function(t,n){Fe(e,n,t)})}function zn(t,e,n){n=Math.min(t.f.length,n);var r=t.c?b(t.c.Ta,t.c,t):null;t:for(var i=t.f,o=-1;;){var a=["count="+n];-1==o?0<n?a.push("ofs="+(o=i[0].b)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var l=i[u].b,c=i[u].a;if(0>(l-=o))o=Math.max(0,i[u].b-100),s=!1;else try{wn(c,a,"req"+l+"_")}catch(h){r&&r(c)}}if(s){r=a.join("&");break t}}return t=t.f.splice(0,n),e.j=t,r}function Hn(t){t.a||t.l||(t.S=1,Rt(t.Ha,t),t.v=0)}function Gn(t){return!(t.a||t.l||3<=t.v||(t.S++,t.l=ee(b(t.Ha,t),Wn(t,t.v)),t.v++,0))}function $n(t,e,n){var r=e.l;r&&hn(t.b,r),t.ia=t.oa&&n,t.m=e.c,t.B=Xn(t,null,t.ha),Un(t)}function Kn(t){null!=t.s&&(a.clearTimeout(t.s),t.s=null)}function Wn(t,e){var n=t.Oa+Math.floor(Math.random()*t.Sa);return t.ma()||(n*=2),n*e}function Qn(t,e){if(2==e){var n=null;t.c&&(n=null);var r=b(t.fb,t);
1n||(n=new Pe("//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||je(n,"https"),Ue(n)),function(t,e){var n=new Wt;if(a.Image){var r=new Image;r.onload=w(_n,n,r,"TestLoadImage: loaded",!0,e),r.onerror=w(_n,n,r,"TestLoadImage: error",!1,e),r.onabort=w(_n,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=w(_n,n,r,"TestLoadImage: timeout",!1,e),a.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}(n.toString(),r)}else Zt(2);t.u=0,t.c&&t.c.ta(e),Jn(t),Fn(t)}function Jn(t){t.u=0,t.m=-1,t.c&&(0==vn(t.b).length&&0==t.f.length||(t.b.c.length=0,T(t.f),t.f.length=0),t.c.sa())}function Xn(t,e,n){var r=function(t){return t instanceof Pe?Ne(t):new Pe(t,void 0)}(n);if(""!=r.b)e&&Re(r,e+"."+r.b),Me(r,r.i);else{var i=a.location;r=function(t,e,n,r){var i=new Pe(null,void 0);return t&&je(i,t),e&&Re(i,e),n&&Me(i,n),r&&(i.a=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.V&&R(t.V,function(t,e){Fe(r,e,t)}),n=t.I,(e=t.j)&&n&&Fe(r,e,n),Fe(r,"VER",t.wa),Bn(t,r),r}function Yn(){}function Zn(){if(z&&!(10<=Number(Y)))throw Error("Environmental error: no available transport.")}function tr(t,e){It.call(this),this.a=new Mn(e),this.g=t,this.m=e&&e.testUrl?e.testUrl:function(t){for(var e=arguments[0],n=1;n<arguments.length;n++){var r,i=arguments[n];0==i.lastIndexOf("/",0)?e=i:((r=""==e)||(r=0<=(r=e.length-1)&&e.indexOf("/",r)==r),e+=r?i:"/"+i)}return e}(this.g,"test"),this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.i=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.xa&&(t?t["X-WebChannel-Client-Profile"]=e.xa:t={"X-WebChannel-Client-Profile":e.xa}),this.a.J=t,(t=e&&e.httpHeadersOverwriteParam)&&!O(t)&&(this.a.g=t),this.l=e&&e.supportsCrossDomainXhr||!1,this.h=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!O(e)&&(this.a.j=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new rr(this)}function er(t){ue.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function nr(){le.call(this),this.status=1}function rr(t){this.a=t}(r=En.prototype).ca=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.A+"; newUri="+t);e=e?e.toUpperCase():"GET",this.A=t,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(t){var e;return(e=t.a)||(e=t.a={}),e}(this.H?this.H:ae),this.a.onreadystatechange=b(this.Fa,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void On(this,o)}t=n||"";var i=new Te(this.headers);r&&ke(r,function(t,e){i.set(e,t)}),r=function(t){t:{for(var e=Tn,n=t.length,r=s(t)?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:s(t)?t.charAt(e):t[e]}(i.K()),n=a.FormData&&t instanceof a.FormData,!(0<=C(kn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(t,e){this.a.setRequestHeader(e,t)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Pn(this),0<this.o&&((this.D=function(t){return z&&tt(9)&&u(t.timeout)&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=b(this.Ca,this)):this.m=qt(this.Ca,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){On(this,o)}},r.Ca=function(){void 0!==o&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},r.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Dn(this))},r.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Dn(this,!0)),En.N.G.call(this)},r.Fa=function(){this.j||(this.w||this.l||this.g?xn(this):this.$a())},r.$a=function(){xn(this)},r.T=function(){try{return 2<Nn(this)?this.a.status:-1}catch(q){return-1}},r.za=function(){try{return 2<Nn(this)?this.a.statusText:""}catch(q){return""}},r.aa=function(){try{return this.a?this.a.responseText:""}catch(q){return""}},r.Va=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Sn(e)}}
1,r.ya=function(){return this.h},r.Ya=function(){return s(this.f)?this.f:String(this.f)},(r=Mn.prototype).wa=8,r.u=1,r.Da=function(){return 0==this.u},r.Ia=function(t){if(this.h)if(this.h=null,1==this.u){if(!t){this.P=Math.floor(1e5*Math.random());var e,n=new he(this,t=this.P++,void 0),r=this.i;if(this.J&&(r?F(r=M(r),this.J):r=this.J),null===this.g&&(n.h=r),this.W)t:{for(var i=e=0;i<this.f.length;i++){var o=this.f[i];if(void 0===(o="__data__"in o.a&&s(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=i;break t}if(4096===e||i===this.f.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=zn(this,n,e),Fe(i=Ne(this.B),"RID",t),Fe(i,"CVER",22),this.o&&this.j&&Fe(i,"X-HTTP-Session-Id",this.j),Bn(this,i),this.g&&r&&Rn(i,this.g,r),mn(this.b,n),this.W?(Fe(i,"$req",e),Fe(i,"SID","null"),n.S=!0,me(n,i,null)):me(n,i,e),this.u=2}}else 3==this.u&&(t?qn(this,t):0==this.f.length||fn(this.b)||qn(this))},r.Ha=function(){this.l=null,this.a=new he(this,"rpc",this.S),null===this.g&&(this.a.h=this.i),this.a.J=0;var t=Ne(this.pa);Fe(t,"RID","rpc"),Fe(t,"SID",this.H),Fe(t,"CI",this.ia?"0":"1"),Fe(t,"AID",this.O),Bn(this,t),Fe(t,"TYPE","xmlhttp"),this.g&&this.i&&Rn(t,this.g,this.i),this.D&&this.a.setTimeout(this.D),ge(this.a,t,!0,this.ga)},r.Ga=function(t,e){if(0!=this.u&&(this.a==t||pn(this.b,t)))if(this.m=t.o,!t.s&&pn(this.b,t)&&3==this.u){try{var n=this.ja.a.parse(e)}catch(o){n=null}if(f(n)&&3==n.length){if(0==(e=n)[0]){t:if(!this.l){if(this.a){if(!(this.a.v+3e3<t.v))break t;Kn(this),this.a.cancel(),this.a=null}Gn(this),Zt(18)}}else this.ra=e[1],0<this.ra-this.O&&37500>e[2]&&this.ia&&0==this.v&&!this.s&&(this.s=ee(b(this.Za,this),6e3));if(1>=dn(this.b)&&this.fa){try{this.fa()}catch(o){}this.fa=void 0}}else Qn(this,11)}else if((t.s||this.a==t)&&Kn(this),!O(e))for(e=n=this.ja.a.parse(e),n=0;n<e.length;n++){var r=e[n];if(this.O=r[0],r=r[1],2==this.u)if("c"==r[0]){this.H=r[1],this.ga=r[2];var i=r[3];null!=i&&(this.wa=i),null!=(r=r[5])&&u(r)&&0<r&&(this.D=1.5*r),this.o&&(r=t.a)&&((i=jn(r,"X-Client-Wire-Protocol"))&&hn(this.b,i),this.j&&(r=jn(r,"X-HTTP-Session-Id")))&&(this.I=r,Fe(this.B,this.j,r)),this.u=3,this.c&&this.c.va(),r=t,this.pa=Xn(this,this.Y()?this.ga:null,this.ha),r.s?(gn(this.b,r),(i=this.D)&&r.setTimeout(i),r.i&&(Se(r),we(r)),this.a=r):Hn(this),0<this.f.length&&Un(this)}else"stop"!=r[0]&&"close"!=r[0]||Qn(this,7);else 3==this.u&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Qn(this,7):Ln(this):"noop"!=r[0]&&this.c&&this.c.ua(r),this.v=0)}},r.Za=function(){null!=this.s&&(this.s=null,this.a.cancel(),this.a=null,Gn(this),Zt(19))},r.na=function(t){var e=null;if(this.a==t){Kn(this),this.a=null;var n=2}else{if(!pn(this.b,t))return;e=t.j,gn(this.b,t),n=1}if(this.m=t.o,0!=this.u)if(t.b)1==n?(e=_()-t.v,Qt.dispatchEvent(new te(Qt,t.l?t.l.length:0,e,this.A)),Un(this)):Hn(this);else{var r=t.c;if(3==r||0==r&&0<this.m||!(1==n&&function(t,e){return!(dn(t.b)>=t.b.f-(t.h?1:0)||(t.h?(t.f=e.j.concat(t.f),0):1==t.u||2==t.u||t.A>=(t.Pa?0:t.Qa)||(t.h=ee(b(t.Ia,t,e),Wn(t,t.A)),t.A++,0)))}(this,t)||2==n&&Gn(this)))switch(e&&0<e.length&&(t=this.b,t.c=t.c.concat(e)),r){case 1:Qn(this,5);break;case 4:Qn(this,10);break;case 3:Qn(this,6);break;default:Qn(this,2)}}},r.fb=function(t){Zt(t?2:1)},r.$=function(t){if(t&&!this.R)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new En(this.La)).F=this.R,t},r.ma=function(){return!!this.c&&!0},r.Y=function(){return this.R},(r=Yn.prototype).va=function(){},r.ua=function(){},r.ta=function(){},r.sa=function(){},r.Ta=function(){},Zn.prototype.a=function(t,e){return new tr(t,e)},S(tr,It),(r=tr.prototype).addEventListener=function(t,e,n,r){tr.N.addEventListener.call(this,t,e,n,r)},r.removeEventListener=function(t,e,n,r){tr.N.removeEventListener.call(this,t,e,n,r)},r.Wa=function(){this.a.c=this.f,this.l&&(this.a.R=!0);var t=this.a,e=this.m,n=this.g,r=this.b||void 0;Zt(0),t.ha=n,t.V=r||{},t.o&&(t.F.b=[],t.F.a=!1),t.w=new nn(t),null===t.g&&(t.w.h=t.i),n=e,t.g&&t.i&&(n=Rn(e,t.g,t.i)),(t=t.w).i=n,e=Xn(t.a,null,t.i),Zt(3),null!=(n=t.a.F.b)?(t.f=n[0],t.M=1,rn(t)):(Ve(e,"MODE","init"),!t.a.o&&t.a.j&&Ve(e,"X-HTTP-Session-Id",t.a.j),t.b=new he(t,void 0,void 0),t.b.h=t.h,ge(t.b,e,!1,null),t.M=0)},r.close=function(){Ln(this.a)},r.Xa=function(t){if(s(t)){var e={};e.__data__=t,Vn(this.a,e)}else this.h?((e={}).__data__=Tt(t),Vn(this.a,e)):Vn(this.a,t)},r.G=function(){this.a.c=null,delete this.f,Ln(this.a),delete this.a,tr.N.G.call(this)},S(er,ue),S(nr,le),S(rr,Yn),rr.prototype.va=function(){this.a.dispatchEvent("a")},rr.prototype.ua=function(t){this.a.dispatchEvent(new er(t))},rr.prototype.ta=function(t){this.a.dispatchEvent(new nr(t))},rr.prototype.sa=function(){this.a.dispatchEvent("b")};var ir=w(function(t,e){function n(){}n.prototype=t.prototype;var r=new n;
1return t.apply(r,Array.prototype.slice.call(arguments,1)),r},Zn);Zn.prototype.createWebChannel=Zn.prototype.a,tr.prototype.send=tr.prototype.Xa,tr.prototype.open=tr.prototype.Wa,tr.prototype.close=tr.prototype.close,ne.NO_ERROR=0,ne.TIMEOUT=8,ne.HTTP_ERROR=6,re.COMPLETE="complete",oe.EventType=se,se.OPEN="a",se.CLOSE="b",se.ERROR="c",se.MESSAGE="d",It.prototype.listen=It.prototype.Aa,En.prototype.listenOnce=En.prototype.Ba,En.prototype.getLastError=En.prototype.Ya,En.prototype.getLastErrorCode=En.prototype.ya,En.prototype.getStatus=En.prototype.T,En.prototype.getStatusText=En.prototype.za,En.prototype.getResponseJson=En.prototype.Va,En.prototype.getResponseText=En.prototype.aa,En.prototype.send=En.prototype.ca;var or={createWebChannelTransport:ir,ErrorCode:ne,EventType:re,WebChannel:oe,XhrIo:En},ar=or.createWebChannelTransport,sr=or.ErrorCode,ur=or.EventType,lr=or.WebChannel,cr=or.XhrIo;e.default=or},xJ3V:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return r}),n.d(e,"f",function(){return i}),n.d(e,"g",function(){return o});var r=function(t){return o(t)},i=function(t,e){return"string"==typeof t&&(e=t,t=void 0),r(t).includes(e)},o=function(t){void 0===t&&(t=window),t.Ionic=t.Ionic||{};var e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=a(t)).forEach(function(e){return t.document.documentElement.classList.add("plt-"+e)}),e},a=function(t){return Object.keys(m).filter(function(e){return m[e](t)})},s=function(t){return!!d(t,/iPad/i)||!(!d(t,/Macintosh/i)||!l(t))},u=function(t){return d(t,/android|sink/i)},l=function(t){return p(t,"(any-pointer:coarse)")},c=function(t){return h(t)||f(t)},h=function(t){return!!(t.cordova||t.phonegap||t.PhoneGap)},f=function(t){var e=t.Capacitor;return!(!e||!e.isNative)},d=function(t,e){return e.test(t.navigator.userAgent)},p=function(t,e){return t.matchMedia(e).matches},m={ipad:s,iphone:function(t){return d(t,/iPhone/i)},ios:function(t){return d(t,/iPhone|iPod/i)||s(t)},android:u,phablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return r>390&&r<520&&i>620&&i<800},tablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return s(t)||function(t){return u(t)&&!d(t,/mobile/i)}(t)||r>460&&r<820&&i>780&&i<1400},cordova:h,capacitor:f,electron:function(t){return d(t,/electron/i)},pwa:function(t){return!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone)},mobile:l,mobileweb:function(t){return l(t)&&!c(t)},desktop:function(t){return!l(t)},hybrid:c},g=new(function(){function t(){this.m=new Map}return t.prototype.reset=function(t){this.m=new Map(Object.entries(t))},t.prototype.get=function(t,e){var n=this.m.get(t);return void 0!==n?n:e},t.prototype.getBoolean=function(t,e){void 0===e&&(e=!1);var n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n},t.prototype.getNumber=function(t,e){var n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n},t.prototype.set=function(t,e){this.m.set(t,e)},t}()),v=function(t){try{var e=t.sessionStorage.getItem(S);return null!==e?JSON.parse(e):{}}catch(n){return{}}},y=function(t,e){try{t.sessionStorage.setItem(S,JSON.stringify(e))}catch(n){return}},b=function(t){var e={};return t.location.search.slice(1).split("&").map(function(t){return t.split("=")}).map(function(t){var e=t[1];return[decodeURIComponent(t[0]),decodeURIComponent(e)]}).filter(function(t){return w(t[0],_)}).map(function(t){var e=t[1];return[t[0].slice(_.length),e]}).forEach(function(t){e[t[0]]=t[1]}),e},w=function(t,e){return t.substr(0,e.length)===e},_="ionic:",S="ionic-persist-config"},xMyE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("FFOo"),o=n("+umK"),a=n("2Bdj");function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))},t}(),l=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=o.a,s._tapError=o.a,s._tapComplete=o.a,s._tapError=r||o.a,s._tapComplete=i||o.a,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o.a,s._tapError=n.error||o.a,s._tapComplete=n.complete||o.a),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},xSm1:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("KOl+");function i(t,e,n,i){return Object(r.c)(t,e,n).apply(this,i)}},xTla:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},xZBe:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n("ZZ/e"),n("hoFm");var r=function(){function t(t,e){this.emojiService=t,this.modalController=e,this.output=""}return t.prototype.ngOnInit=function(){var t=this;this.emojiService.getData().then(function(e){t.emoji=e.face})},t.prototype.onTap=function(t){this.output=this.output+t},t.prototype.dismiss=function(){this.modalController.dismiss({action:"cancel"})},t.prototype.apply=function(){this.modalController.dismiss({output:this.output}),this.output=""},t}()},xZjr:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),i=(n("6nsN"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setUrl=function(t){this._url=t},e.prototype.getUrl=function(){return this._url},e}(n("tnAE").a))},xcTS:function(t,e,n){var r={"./ion-action-sheet-controller_8.entry.js":["R25c",0,16],"./ion-action-sheet-ios.entry.js":["3vzs",0,17],"./ion-action-sheet-md.entry.js":["C1DA",0,18],"./ion-alert-ios.entry.js":["3zvA",0,19],"./ion-alert-md.entry.js":["K4dj",0,20],"./ion-app_8-ios.entry.js":["fUXX",0,21],"./ion-app_8-md.entry.js":["+BE1",0,22],"./ion-avatar_3-ios.entry.js":["yUXu",0,23],"./ion-avatar_3-md.entry.js":["W1yo",0,24],"./ion-back-button-ios.entry.js":["fA5U",0,25],"./ion-back-button-md.entry.js":["Ik78",0,26],"./ion-backdrop-ios.entry.js":["SufK",27],"./ion-backdrop-md.entry.js":["bpcO",28],"./ion-button_2-ios.entry.js":["W55F",0,29],"./ion-button_2-md.entry.js":["NK52",0,30],"./ion-card_5-ios.entry.js":["VE
15e",0,31],"./ion-card_5-md.entry.js":["78+B",0,32],"./ion-checkbox-ios.entry.js":["3Mzl",0,33],"./ion-checkbox-md.entry.js":["1q8l",0,34],"./ion-chip-ios.entry.js":["9nsR",0,35],"./ion-chip-md.entry.js":["gebA",0,36],"./ion-col_3.entry.js":["xcs6",37],"./ion-datetime_3-ios.entry.js":["43GW",0,38],"./ion-datetime_3-md.entry.js":["h5dK",0,39],"./ion-fab_3-ios.entry.js":["K1NX",0,40],"./ion-fab_3-md.entry.js":["+3r5",0,41],"./ion-img.entry.js":["G7Ob",42],"./ion-infinite-scroll_2-ios.entry.js":["+OLp",0,43],"./ion-infinite-scroll_2-md.entry.js":["btud",0,44],"./ion-input-ios.entry.js":["CSx8",0,45],"./ion-input-md.entry.js":["3loE",0,46],"./ion-item-option_3-ios.entry.js":["tQ5K",0,47],"./ion-item-option_3-md.entry.js":["OtFD",0,48],"./ion-item_8-ios.entry.js":["/WgS",0,49],"./ion-item_8-md.entry.js":["u8o0",0,50],"./ion-loading-ios.entry.js":["PFWK",0,51],"./ion-loading-md.entry.js":["fyLs",0,52],"./ion-menu_4-ios.entry.js":["RGOX",0,53],"./ion-menu_4-md.entry.js":["Zto2",0,54],"./ion-modal-ios.entry.js":["JSax",0,55],"./ion-modal-md.entry.js":["e+Ml",0,56],"./ion-nav_5.entry.js":["m4J1",0,57],"./ion-popover-ios.entry.js":["h8vj",0,58],"./ion-popover-md.entry.js":["QxwI",0,59],"./ion-progress-bar-ios.entry.js":["my01",0,60],"./ion-progress-bar-md.entry.js":["rAZb",0,61],"./ion-radio_2-ios.entry.js":["hkcC",0,62],"./ion-radio_2-md.entry.js":["6Gmm",0,63],"./ion-range-ios.entry.js":["1t+d",0,64],"./ion-range-md.entry.js":["j9uY",0,65],"./ion-refresher_2-ios.entry.js":["OdSV",0,66],"./ion-refresher_2-md.entry.js":["fth2",0,67],"./ion-reorder_2-ios.entry.js":["SO7F",0,68],"./ion-reorder_2-md.entry.js":["Mg9A",0,69],"./ion-ripple-effect.entry.js":["+sq8",70],"./ion-route_4.entry.js":["37dG",0,71],"./ion-searchbar-ios.entry.js":["fygG",0,72],"./ion-searchbar-md.entry.js":["HYHM",0,73],"./ion-segment_2-ios.entry.js":["alet",0,74],"./ion-segment_2-md.entry.js":["tG9A",0,75],"./ion-select_3-ios.entry.js":["y3qu",0,76],"./ion-select_3-md.entry.js":["3Fbr",0,77],"./ion-slide_2-ios.entry.js":["/Zov",78],"./ion-slide_2-md.entry.js":["NAk9",79],"./ion-spinner.entry.js":["ohGG",0,80],"./ion-split-pane-ios.entry.js":["bIt2",81],"./ion-split-pane-md.entry.js":["U6Xw",82],"./ion-tab-bar_2-ios.entry.js":["FRn1",0,83],"./ion-tab-bar_2-md.entry.js":["PZOb",0,84],"./ion-tab_2.entry.js":["Sk2u",0,85],"./ion-text.entry.js":["mP3Y",0,86],"./ion-textarea-ios.entry.js":["lrxm",0,87],"./ion-textarea-md.entry.js":["gidN",0,88],"./ion-toast-ios.entry.js":["7apA",0,89],"./ion-toast-md.entry.js":["RHmm",0,90],"./ion-toggle-ios.entry.js":["OwfS",0,91],"./ion-toggle-md.entry.js":["4wnv",0,92],"./ion-virtual-scroll.entry.js":["Mmau",93]};function i(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return Object.keys(r)},i.id="xcTS",t.exports=i},y2cN:function(t,e,n){t.exports=n("HefZ"),n("9UdO"),n("FoKB"),n("QURa")},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n("+umK");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r.a}},yC6l:function(t,e,n){n("Ksdp"),t.exports=n("4Ea8").Object.assign},yGlH:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n("ZZ/e");var r=n("AytR"),i=function(){function t(t,e){this.activatedRoute=t,this.platform=e,this.registrationPageWeb=r.a.REGISTRATION_PAGE,this.registrationPageMobile=r.a.REGISTRATION_PAGE_MOBILE,this.registrationPage=r.a.REGISTRATION_PAGE}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.data.subscribe(function(e){var n,r=e.pvr;(console.log(r),r)?(n=t.platform.width()<900?t.registrationPageMobile:t.registrationPageWeb,t.registrationPage=n+"?codaffiliato="+r.scommettendo,t.isAuthenticated=!0):t.isAuthenticated=!1})},t}()},ySdl:function(t,e,n){var r=n("3Gxb"),i=n("fw2a"),o=n("bcPd"),a=n("ysHE").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},yXDX:function(t,e,n){var r;!function(){var i=window.CustomEvent;function o(t){for(;t;){if("dialog"===t.localName)return t;t=t.parentElement}return null}function a(t){t&&t.blur&&t!==document.body&&t.blur()}function s(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1}function u(t){return!(!t||!t.hasAttribute("method"))&&"dialog"===t.getAttribute("method").toLowerCase()}function l(t){if(this.dialog_=t,this.replacedStyleTop_=!1,this.openAsModal_=!1,t.hasAttribute("role")||t.setAttribute("role","dialog"),t.show=this.show.bind(this),t.showModal=this.showModal.bind(this),t.close=this.close.bind(this),"returnValue"in t||(t.returnValue=""),"MutationObserver"in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(t,{attributes:!0,attributeFilter:["open"]});else{var e,n=!1,r=(function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}).bind(this),i=function(i){if(i.target===t){var o="DOMNodeRemoved";n|=i.type.substr(0,o.length)===o,window.clearTimeout(e),e=window.setTimeout(r,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(e){t.addEventListener(e,i)})}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}i&&"object"!=typeof i||((i=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");
vendor: 4,561 bytes, line 1
1return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail||null),n}).prototype=window.Event.prototype),l.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),c.dm.removeDialog(this))},setOpen:function(t){t?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(t){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild),e.tabIndex=-1,e.focus(),this.dialog_.removeChild(e)}var n=document.createEvent("MouseEvents");n.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),this.dialog_.dispatchEvent(n),t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0&&(t=this.dialog_),!t){var e=["button","input","keygen","select","textarea"].map(function(t){return t+":not([disabled])"});e.push('[tabindex]:not([disabled]):not([tabindex=""])'),t=this.dialog_.querySelector(e.join(", "))}a(document.activeElement),t&&t.focus()},updateZIndex:function(t,e){if(t<e)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=t,this.backdrop_.style.zIndex=e},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!c.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(t){for(;t&&t!==document.body;){var e=window.getComputedStyle(t),n=function(t,n){return!(void 0===e[t]||e[t]===n)};if(e.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===e.isolation||"fixed"===e.position||"touch"===e.webkitOverflowScrolling)return!0;t=t.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,c.needsCentering(this.dialog_)?(c.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==t&&(this.dialog_.returnValue=t);var e=new i("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(e)}};var c={reposition:function(t){var e=document.body.scrollTop||document.documentElement.scrollTop,n=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,n)+"px"},isInlinePositionSetByStylesheet:function(t){for(var e=0;e<document.styleSheets.length;++e){var n=document.styleSheets[e],r=null;try{r=n.cssRules}catch(c){}if(r)for(var i=0;i<r.length;++i){var o=r[i],a=null;try{a=document.querySelectorAll(o.selectorText)}catch(c){}if(a&&s(a,t)){var u=o.style.getPropertyValue("top"),l=o.style.getPropertyValue("bottom");if(u&&"auto"!==u||l&&"auto"!==l)return!0}}}return!1},needsCentering:function(t){return!("absolute"!==window.getComputedStyle(t).position||"auto"!==t.style.top&&""!==t.style.top||"auto"!==t.style.bottom&&""!==t.style.bottom||c.isInlinePositionSetByStylesheet(t))},forceRegisterDialog:function(t){if((window.HTMLDialogElement||t.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",t),"dialog"!==t.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new l(t)},registerDialog:function(t){t.showModal||c.forceRegisterDialog(t)}
1,DialogManager:function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(e){this.forwardTab_=void 0,e.stopPropagation(),t([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(e){var n=[];e.forEach(function(t){for(var e,r=0;e=t.removedNodes[r];++r)e instanceof Element&&("dialog"===e.localName&&n.push(e),n=n.concat(e.querySelectorAll("dialog")))}),n.length&&t(n)}))}};if(c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var t,e=this.zIndexHigh_,n=0;t=this.pendingDialogStack[n];++n)t.updateZIndex(--e,--e),0===n&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(t){for(;t=o(t);){for(var e,n=0;e=this.pendingDialogStack[n];++n)if(e.dialog===t)return 0===n;t=t.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(t){if(!this.containedByTopDialog_(t.target)&&(t.preventDefault(),t.stopPropagation(),a(t.target),void 0!==this.forwardTab_)){var e=this.pendingDialogStack[0];return e.dialog.compareDocumentPosition(t.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?e.focus_():document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(t){if(this.forwardTab_=void 0,27===t.keyCode){t.preventDefault(),t.stopPropagation();var e=new i("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(e)&&n.dialog.close()}else 9===t.keyCode&&(this.forwardTab_=!t.shiftKey)},c.DialogManager.prototype.checkDOM_=function(t){this.pendingDialogStack.slice().forEach(function(e){-1!==t.indexOf(e.dialog)?e.downgradeModal():e.maybeHideModal()})},c.DialogManager.prototype.pushDialog=function(t){return!(this.pendingDialogStack.length>=(this.zIndexHigh_-this.zIndexLow_)/2-1||(1===this.pendingDialogStack.unshift(t)&&this.blockDocument(),this.updateStacking(),0))},c.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);-1!==e&&(this.pendingDialogStack.splice(e,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.useValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var d=f.get;f.get=function(){return u(this)?"dialog":d.call(this)};var p=f.set;f.set=function(t){return"string"==typeof t&&"dialog"===t.toLowerCase()?this.setAttribute("method",t):p.call(this,t)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",function(t){if(c.formSubmitter=null,c.useValue=null,!t.defaultPrevented){var e=t.target;if(e&&u(e.form)){if(!("submit"===e.type&&["button","input"].indexOf(e.localName)>-1)){if("input"!==e.localName||"image"!==e.type)return;c.useValue=t.offsetX+","+t.offsetY}o(e)&&(c.formSubmitter=e)}}},!1);var m=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!u(this))return m.call(this);var t=o(this);t&&t.close()},document.addEventListener("submit",function(t){var e=t.target;if(u(e)){t.preventDefault();var n=o(e);if(n){var r=c.formSubmitter;r&&r.form===e?n.close(c.useValue||r.value):n.close(),c.formSubmitter=null}}},!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n("B9Yq")?void 0===(r=(function(){return c}).call(e,n,e,t))||(t.exports=r):"object"==typeof t.exports?t.exports=c:window.dialogPolyfill=c}()},ysHE:function(t,e){t.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()}
1,z5Af:function(t,e,n){t.exports=n("yC6l")},z5ME:function(t,e,n){var r=n("aXXJ")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(i){}}return!1}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("CcnG"),i=n("AytR"),o=n("WC58"),a=n("Wcq6"),s=n("mrSG"),u=(n("6nsN"),function(){return function(t){window.firebaseUiInstance||(window.firebaseUiInstance=new o.auth.AuthUI(t.auth)),this.firebaseUiInstance=window.firebaseUiInstance}}()),l=a,c=o,h=function(){var t={AccountChooser:0,OneTap:1,None:2};return t[t.AccountChooser]="AccountChooser",t[t.OneTap]="OneTap",t[t.None]="None",t}(),f=function(){var t={Google:0,Facebook:1,Twitter:2,Github:3,Password:4,Phone:5};return t[t.Google]="Google",t[t.Facebook]="Facebook",t[t.Twitter]="Twitter",t[t.Github]="Github",t[t.Password]="Password",t[t.Phone]="Phone",t}(),d=function(){var t={Popup:0,Redirect:1};return t[t.Popup]="Popup",t[t.Redirect]="Redirect",t}(),p=a.auth.GoogleAuthProvider,m=a.auth.FacebookAuthProvider,g=a.auth.TwitterAuthProvider,v=a.auth.GithubAuthProvider,y=a.auth.EmailAuthProvider,b=a.auth.PhoneAuthProvider,w=function(){function t(t,e,n,i,o){this.angularFireAuth=t,this._firebaseUiConfig=e,this._firebaseUiConfig_Feature=n,this.ngZone=i,this.firebaseUIService=o,this.signInSuccessCallback=new r.m,this.signInSuccessWithAuthResultCallback=new r.m,this.signInFailureCallback=new r.m}return t.getAuthProvider=function(t){switch(t){case f.Google:return p.PROVIDER_ID;case f.Facebook:return m.PROVIDER_ID;case f.Twitter:return g.PROVIDER_ID;case f.Github:return v.PROVIDER_ID;case f.Password:return y.PROVIDER_ID;case f.Phone:return b.PROVIDER_ID}},Object.defineProperty(t.prototype,"firebaseUiConfig",{get:function(){return Object(s.__assign)({},this._firebaseUiConfig,this._firebaseUiConfig_Feature)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.subscription=this.angularFireAuth.authState.subscribe(function(e){if(e&&e.isAnonymous||!e)if(t.firebaseUiConfig.providers){if(console.warn('"FirebaseUIAuthConfig" isn\'t supported since version 3.3.0 and will be removed in the future.\nPlease use the native configuration of firebaseui "firebaseui.auth.Config"'),console.warn("You can copy your converted configuration:\n",t.getNewConfigurationString(t.getUIAuthConfig())),0===t.firebaseUiConfig.providers.length)throw new Error("There must be at least one AuthProvider.");t.firebaseUIPopup()}else{if(0===t.firebaseUiConfig.signInOptions.length)throw new Error("There must be at least one AuthProvider.");t.firebaseUIPopup()}})},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.getUIAuthConfig=function(){var e,n,r=this;if(!this.firebaseUiConfig.providers)return this.firebaseUiConfig.callbacks||(this._firebaseUiConfig[t.COMPUTED_CALLBACKS]=!0,this._firebaseUiConfig.callbacks=this.getCallbacks()),this.firebaseUiConfig;var i=this.firebaseUiConfig,a=[];try{for(var u=Object(s.__values)(i.providers),l=u.next();!l.done;l=u.next()){var c=l.value;if(c.customConfig){var f=(c=c).customConfig;f.provider=t.getAuthProvider(c.provider),a.push(f)}else a.push(t.getAuthProvider(c))}}catch(_){e={error:_}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var p,m=i.tos?i.tos:"",g=i.privacyPolicyUrl?i.privacyPolicyUrl:"",v="popup";switch(i.method){case d.Redirect:v="redirect"}switch(i.credentialHelper){case h.None:p=o.auth.CredentialHelper.NONE;break;case h.OneTap:p=o.auth.CredentialHelper.GOOGLE_YOLO;break;case h.AccountChooser:default:p=o.auth.CredentialHelper.ACCOUNT_CHOOSER_COM}var y=null!=i.autoUpgradeAnonymousUsers&&i.autoUpgradeAnonymousUsers,b=Object(s.__assign)({},this.getCallbacks(),{signInSuccess:null});i.disableSignInSuccessCallback||(console.warn("[FirebaseUiAngular] signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead.\nTo remove this warning set disableSignInSuccessCallback on the FirebaseUiConfig Object."),b.signInSuccess=function(t,e,n){return r.ngZone.run(function(){r.signInSuccessCallback.emit({currentUser:t,credential:e,redirectUrl:n})}),!!i.signInSuccessUrl});var w={callbacks:b,signInFlow:v,signInOptions:a,tosUrl:m,privacyPolicyUrl:g,credentialHelper:p,autoUpgradeAnonymousUsers:y};
1return i.signInSuccessUrl&&(w.signInSuccessUrl=i.signInSuccessUrl),w},t.prototype.firebaseUIPopup=function(){var e=this.firebaseUIService.firebaseUiInstance,n=this.getUIAuthConfig(),r=!1;n[t.COMPUTED_CALLBACKS]&&(r=!0,delete n[t.COMPUTED_CALLBACKS]),e.start("#firebaseui-auth-container",n),r&&(this._firebaseUiConfig.callbacks=null)},t.prototype.getCallbacks=function(){var t=this;return{signInSuccessWithAuthResult:function(e,n){return t.ngZone.run(function(){t.signInSuccessWithAuthResultCallback.emit({authResult:e,redirectUrl:n})}),t.firebaseUiConfig.signInSuccessUrl},signInFailure:function(e){return t.ngZone.run(function(){t.signInFailureCallback.emit({code:e.code,credential:e.credential})}),Promise.reject()}}},t.prototype.getNewConfigurationString=function(t){delete t.callbacks,t.autoUpgradeAnonymousUsers||delete t.autoUpgradeAnonymousUsers;var e=JSON.stringify(t,null,2);return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace('"credentialHelper": "accountchooser.com"','"credentialHelper": firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM')).replace('"credentialHelper": "googleyolo"','"credentialHelper": firebaseui.auth.CredentialHelper.GOOGLE_YOLO')).replace('"credentialHelper": "none"','"credentialHelper": firebaseui.auth.CredentialHelper.NONE')).replace('"provider": "google.com"','"provider": firebase.auth.GoogleAuthProvider.PROVIDER_ID')).replace('"provider": "facebook.com"','"provider": firebase.auth.FacebookAuthProvider.PROVIDER_ID')).replace('"provider": "twitter.com"','"provider": firebase.auth.TwitterAuthProvider.PROVIDER_ID')).replace('"provider": "github.com"','"provider": firebase.auth.GithubAuthProvider.PROVIDER_ID')).replace('"provider": "password"','"provider": firebase.auth.EmailAuthProvider.PROVIDER_ID')).replace('"provider": "phone"','"provider": firebase.auth.PhoneAuthProvider.PROVIDER_ID')).replace('"google.com"',"firebase.auth.GoogleAuthProvider.PROVIDER_ID")).replace('"facebook.com"',"firebase.auth.FacebookAuthProvider.PROVIDER_ID")).replace('"twitter.com"',"firebase.auth.TwitterAuthProvider.PROVIDER_ID")).replace('"github.com"',"firebase.auth.TwitterAuthProvider.PROVIDER_ID")).replace('"password"',"firebase.auth.EmailAuthProvider.PROVIDER_ID")).replace('"phone"',"firebase.auth.PhoneAuthProvider.PROVIDER_ID")).replace(/"([a-zA-Z0-9]*)": (.*)/g,"$1: $2")).replace(/"/g,"'")},t.COMPUTED_CALLBACKS="COMPUTED_CALLBACKS",t}(),_=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:"firebaseUIAuthConfig",useValue:e},{provide:"firebaseUIAuthConfigFeature",useValue:{}}]}},t.forFeature=function(e){return{ngModule:t,providers:[{provide:"firebaseUIAuthConfigFeature",useValue:e}]}},t}(),S=function(){return function(){}}(),E=n("ZZ/e"),C=n("ZYCi"),I=function(){function t(t){this.router=t}return t.prototype.event=function(t,e){gtag("event",t,e)},t.prototype.init=function(){this.listenForRouteChanges();try{var t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id=UA-138683285-1",document.head.appendChild(t);var e=document.createElement("script");e.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'UA-138683285-1', {'send_page_view': false});\n ",document.head.appendChild(e)}catch(n){console.error("Error appending google analytics"),console.error(n)}},t.prototype.listenForRouteChanges=function(){var t=this;this.router.events.subscribe(function(e){e instanceof C.d&&(gtag("config","UA-138683285-1",{page_path:"pvr-app"+t.router.url}),console.log("Sending Google Analytics hit for route",t.router.url),console.log("Property ID","UA-138683285-1"))})},t.ngInjectableDef=r.T({factory:function(){return new t(r.X(C.n))},token:t,providedIn:"root"}),t}(),k=function(){function t(t,e,n){this.platform=t,this.router=e,this.analyticsService=n,this.initializeApp()}return t.prototype.initializeApp=function(){var t=this;this.platform.ready().then(function(){a.initializeApp(i.a.firebase_config),t.analyticsService.init()})},t}(),T=n("pMnS"),O=n("oBZk"),A=n("gIcY"),x=n("Ip0R"),D=n("HJBB"),P=function(){function t(t,e,n){this.formBuilder=t,this.modalController=e,this.navParams=n,this.operators=[{co
1de:"==",label:"== \xe8 pari a"},{code:">",label:"== \xe8 maggiore di"},{code:">=",label:"== \xe8 maggiore ed include"},{code:"<",label:"== \xe8 minore di"},{code:"<=",label:"== \xe8 minore ed include"}],this.validation_messages={campo:[{type:"required",message:"Scegliere un campo"}],confirm_mobile_number:[{type:"required",message:"Conferma Numero di telefono \xe8 obbligatorio."}],matching_mobile_number:[{type:"areEqual",message:"Numero di telefono e conferma non coincidono."}]}}return t.prototype.ngOnInit=function(){var t;this.value_matching_field=this.formBuilder.group({value:[""],sort:[""]},{validator:(t=A.o.required,function(e){return e&&e.controls&&Object.keys(e.controls).some(function(n){return!t(e.controls[n])})?null:{atLeastOne:!0}})}),this.validations_form=this.formBuilder.group({field:[null,[A.o.required]],operator:[""],value_matching_field:this.value_matching_field}),this.setOperatorValidators(),this.keys=this.navParams.data.keys,this.navParams.data.filter&&(this.validations_form.get("field").setValue(this.navParams.data.filter.field),this.validations_form.get("operator").setValue(this.navParams.data.filter.operator),this.value_matching_field.get("sort").setValue(this.navParams.data.filter.sort),this.value_matching_field.get("value").setValue(this.navParams.data.filter.value))},t.prototype.setOperatorValidators=function(){var t=this.value_matching_field.get("value"),e=this.validations_form.get("operator");t.valueChanges.subscribe(function(t){e.setValidators(t?[A.o.required]:null),e.updateValueAndValidity()})},t.prototype.clear=function(){this.validations_form.reset()},t.prototype.dismiss=function(){this.modalController.dismiss({action:"cancel"})},t.prototype.apply=function(){var t=new D.a;t.field=this.validations_form.get("field").value,t.value=this.value_matching_field.get("value").value,t.operator=this.validations_form.get("operator").value,t.sort=this.value_matching_field.get("sort").value,this.modalController.dismiss({filter:t})},t}(),N=r.ob({encapsulation:0,styles:[[""]],data:{}});function j(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-select-option",[],null,null,null,O.pb,O.C)),r.pb(1,49152,null,0,E.ob,[r.h,r.k,r.z],{value:[0,"value"]},null),(t()(),r.Hb(2,0,["",""]))],function(t,e){t(e,1,0,e.context.$implicit)},function(t,e){t(e,2,0,e.context.$implicit)})}function R(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-select-option",[],null,null,null,O.pb,O.C)),r.pb(1,49152,null,0,E.ob,[r.h,r.k,r.z],{value:[0,"value"]},null),(t()(),r.Hb(2,0,[""," "]))],function(t,e){t(e,1,0,e.context.$implicit.code)},function(t,e){t(e,2,0,e.context.$implicit.label)})}function M(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,12,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,10,"ion-toolbar",[],null,
1null,null,O.Bb,O.N)),r.pb(3,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,2,"ion-title",[],null,null,null,O.zb,O.L)),r.pb(5,49152,null,0,E.Ab,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Filtro e Ordinamento"])),(t()(),r.qb(7,0,null,0,5,"ion-buttons",[["color","light"],["slot","end"]],null,null,null,O.T,O.f)),r.pb(8,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(9,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(10,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(11,0,null,0,1,"ion-icon",[["name","close-circle"]],null,null,null,O.cb,O.o)),r.pb(12,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(13,0,null,null,94,"ion-content",[["padding",""]],null,null,null,O.Y,O.k)),r.pb(14,49152,null,0,E.u,[r.h,r.k,r.z],null,null),r.pb(15,16384,null,0,E.d,[r.k],null,null),(t()(),r.qb(16,0,null,0,91,"form",[["class","form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==r.Ab(t,18).onSubmit(n)&&i),"reset"===e&&(i=!1!==r.Ab(t,18).onReset()&&i),i},null,null)),r.pb(17,16384,null,0,A.q,[],null,null),r.pb(18,540672,null,0,A.f,[[8,null],[8,null]],{form:[0,"form"]},null),r.Eb(2048,null,A.b,null,[A.f]),r.pb(20,16384,null,0,A.l,[[4,A.b]],null,null),(t()(),r.qb(21,0,null,null,86,"ion-list",[],null,null,null,O.kb,O.v)),r.pb(22,49152,null,0,E.O,[r.h,r.k,r.z],null,null),(t()(),r.qb(23,0,null,0,2,"ion-list-header",[],null,null,null,O.jb,O.w)),r.pb(24,49152,null,0,E.P,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Filtra e Ordina"])),(t()(),r.qb(26,0,null,0,13,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(27,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(28,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(29,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Campo"])),(t()(),r.qb(31,0,null,0,8,"ion-select",[["formControlName","field"],["placeholder","Seleziona uno"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,32)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,32)._handleChangeEvent(n.target)&&i),i},O.qb,O.B)),r.pb(32,16384,null,0,E.Ob,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Ob]),r.pb(34,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(36,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(37,49152,null,0,E.nb,[r.h,r.k,r.z],{placeholder:[0,"placeholder"]},null),(t()(),r.hb(16777216,null,0,1,null,j)),r.pb(39,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),(t()(),r.qb(40,0,null,0,13,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(41,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(42,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(43,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Operatore"])),(t()(),r.qb(45,0,null,0,8,"ion-select",[["formControlName","operator"],["placeholder","Seleziona uno"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,46)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,46)._handleChangeEvent(n.target)&&i),i},O.qb,O.B)),r.pb(46,16384,null,0,E.Ob,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Ob]),r.pb(48,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(50,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(51,49152,null,0,E.nb,[r.h,r.k,r.z],{placeholder:[0,"placeholder"]},null),(t()(),r.hb(16777216,null,0,1,null,R)),r.pb(53,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),(t()(),r.qb(54,0,null,0,53,"div",[["formGroupName","value_matching_field"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,null,null)),r.pb(55,212992,null,0,A.g,[[3,A.b],[8,null],[8,null]],{name:[0,"name"]},null),r.Eb(2048,null,A.b,null,[A.g]),r.pb(57,16384,null,0,A.l,[[4,A.b]],null,null),(t()(),r.qb(58,0,null,null,11,"ion-item",[],null,
1null,null,O.hb,O.t)),r.pb(59,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(60,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(61,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Valore"])),(t()(),r.qb(63,0,null,0,6,"ion-input",[["clearInput",""],["formControlName","value"],["placeholder","Valore"],["slot","end"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,64)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,64)._handleInputEvent(n.target)&&i),i},O.gb,O.s)),r.pb(64,16384,null,0,E.Pb,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Pb]),r.pb(66,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(68,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(69,49152,null,0,E.G,[r.h,r.k,r.z],{clearInput:[0,"clearInput"],placeholder:[1,"placeholder"]},null),(t()(),r.qb(70,0,null,null,4,"ion-list-header",[],null,null,null,O.jb,O.w)),r.pb(71,49152,null,0,E.P,[r.h,r.k,r.z],null,null),(t()(),r.qb(72,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(73,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Ordinamento"])),(t()(),r.qb(75,0,null,null,32,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(76,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(77,0,null,0,30,"ion-radio-group",[["formControlName","sort"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,78)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,78)._handleChangeEvent(n.target)&&i),i},O.mb,O.z)),r.pb(78,16384,null,0,E.Ob,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Ob]),r.pb(80,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(82,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(83,49152,null,0,E.bb,[r.h,r.k,r.z],null,null),(t()(),r.qb(84,0,null,0,23,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(85,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(86,0,null,0,10,"ion-col",[],null,null,null,O.X,O.j)),r.pb(87,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(88,0,null,0,8,"ion-item",[["lines","none"]],null,null,null,O.hb,O.t)),r.pb(89,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(90,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(91,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Crescente"])),(t()(),r.qb(93,0,null,0,3,"ion-radio",[["checked",""],["slot","start"],["value","asc"]],null,[[null,"ionBlur"],[null,"ionSelect"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,96)._handleBlurEvent(n.target)&&i),"ionSelect"===e&&(i=!1!==r.Ab(t,96)._handleIonSelect(n.target)&&i),i},O.nb,O.y)),r.Eb(5120,null,A.i,function(t){return[t]},[E.Mb]),r.pb(95,49152,null,0,E.ab,[r.h,r.k,r.z],{checked:[0,"checked"],value:[1,"value"]},null),r.pb(96,16384,null,0,E.Mb,[r.k],null,null),(t()(),r.qb(97,0,null,0,10,"ion-col",[],null,null,null,O.X,O.j)),r.pb(98,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(99,0,null,0,8,"ion-item",[["lines","none"]],null,null,null,O.hb,O.t)),r.pb(100,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(101,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(102,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Decrescente"])),(t()(),r.qb(104,0,null,0,3,"ion-radio",[["checked",""],["slot","start"],["value","desc"]],null,[[null,"ionBlur"],[null,"ionSelect"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,107)._handleBlurEvent(n.target)&&i),"ionSelect"===e&&(i=!1!==r.Ab(t,107)._handleIonSelect(n.target)&&i),i},O.nb,O.y)),r.Eb(5120,null,A.i,function(t){return[t]},[E.Mb]),r.pb(106,49152,null,0,E.ab,[r.h,r.k,r.z],{checked:[0,"checked"],value:[1,"value"]},null),r.pb(107,16384,null,0,E.Mb,[r.k],null,null),(t()(),r.qb(108,0,null,null,14,"ion-footer",[],null,
1null,null,O.Z,O.l)),r.pb(109,49152,null,0,E.z,[r.h,r.k,r.z],null,null),(t()(),r.qb(110,0,null,0,12,"ion-toolbar",[["color","light"]],null,null,null,O.Bb,O.N)),r.pb(111,49152,null,0,E.Cb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(112,0,null,0,2,"ion-button",[["fill","clear"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.clear()&&r),r},O.S,O.e)),r.pb(113,49152,null,0,E.k,[r.h,r.k,r.z],{fill:[0,"fill"]},null),(t()(),r.Hb(-1,0,["Cancella"])),(t()(),r.qb(115,0,null,0,7,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(116,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(117,0,null,0,2,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(118,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Annulla"])),(t()(),r.qb(120,0,null,0,2,"ion-button",[["color","primary"],["fill","solid"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.apply()&&r),r},O.S,O.e)),r.pb(121,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],disabled:[1,"disabled"],fill:[2,"fill"]},null),(t()(),r.Hb(-1,0,["Applica "]))],function(t,e){var n=e.component;t(e,12,0,"close-circle"),t(e,18,0,n.validations_form),t(e,34,0,"field"),t(e,37,0,"Seleziona uno"),t(e,39,0,n.keys),t(e,48,0,"operator"),t(e,51,0,"Seleziona uno"),t(e,53,0,n.operators),t(e,55,0,"value_matching_field"),t(e,66,0,"value"),t(e,69,0,"","Valore"),t(e,80,0,"sort"),t(e,89,0,"none"),t(e,95,0,"","asc"),t(e,100,0,"none"),t(e,106,0,"","desc"),t(e,111,0,"light"),t(e,113,0,"clear"),t(e,121,0,"primary",n.validations_form.invalid,"solid")},function(t,e){t(e,16,0,r.Ab(e,20).ngClassUntouched,r.Ab(e,20).ngClassTouched,r.Ab(e,20).ngClassPristine,r.Ab(e,20).ngClassDirty,r.Ab(e,20).ngClassValid,r.Ab(e,20).ngClassInvalid,r.Ab(e,20).ngClassPending),t(e,31,0,r.Ab(e,36).ngClassUntouched,r.Ab(e,36).ngClassTouched,r.Ab(e,36).ngClassPristine,r.Ab(e,36).ngClassDirty,r.Ab(e,36).ngClassValid,r.Ab(e,36).ngClassInvalid,r.Ab(e,36).ngClassPending),t(e,45,0,r.Ab(e,50).ngClassUntouched,r.Ab(e,50).ngClassTouched,r.Ab(e,50).ngClassPristine,r.Ab(e,50).ngClassDirty,r.Ab(e,50).ngClassValid,r.Ab(e,50).ngClassInvalid,r.Ab(e,50).ngClassPending),t(e,54,0,r.Ab(e,57).ngClassUntouched,r.Ab(e,57).ngClassTouched,r.Ab(e,57).ngClassPristine,r.Ab(e,57).ngClassDirty,r.Ab(e,57).ngClassValid,r.Ab(e,57).ngClassInvalid,r.Ab(e,57).ngClassPending),t(e,63,0,r.Ab(e,68).ngClassUntouched,r.Ab(e,68).ngClassTouched,r.Ab(e,68).ngClassPristine,r.Ab(e,68).ngClassDirty,r.Ab(e,68).ngClassValid,r.Ab(e,68).ngClassInvalid,r.Ab(e,68).ngClassPending),t(e,77,0,r.Ab(e,82).ngClassUntouched,r.Ab(e,82).ngClassTouched,r.Ab(e,82).ngClassPristine,r.Ab(e,82).ngClassDirty,r.Ab(e,82).ngClassValid,r.Ab(e,82).ngClassInvalid,r.Ab(e,82).ngClassPending)})}function L(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-entity-filter",[],null,null,null,M,N)),r.pb(1,114688,null,0,P,[A.d,E.Hb,E.Jb],null,null)],function(t,e){t(e,1,0)},null)}var F=r.mb("app-entity-filter",P,L,{},{},[]),V=n("xZBe"),U=n("hoFm"),q=r.ob({encapsulation:0,styles:[["ion-button[_ngcontent-%COMP%]{font-size:1.5em}"]],data:{}});function B(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-button",[["fill","clear"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onTap(t.context.$implicit)&&r),r},O.S,O.e)),r.pb(1,49152,null,0,E.k,[r.h,r.k,r.z],{fill:[0,"fill"]},null),(t()(),r.Hb(2,0,[" ",""]))],function(t,e){t(e,1,0,"clear")},function(t,e){t(e,2,0,e.context.$implicit)})}function z(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,B)),r.pb(2,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),(t()(),r.hb(0,null,null,0))],function(t,e){t(e,2,0,e.component.emoji)},null)}function H(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,9,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,7,"ion-toolbar",[],null,
1null,null,O.Bb,O.N)),r.pb(3,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,5,"ion-buttons",[["slot","start"]],null,null,null,O.T,O.f)),r.pb(5,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(7,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(8,0,null,0,1,"ion-icon",[["name","close"]],null,null,null,O.cb,O.o)),r.pb(9,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(10,0,null,null,4,"ion-content",[["padding",""]],null,null,null,O.Y,O.k)),r.pb(11,49152,null,0,E.u,[r.h,r.k,r.z],null,null),r.pb(12,16384,null,0,E.d,[r.k],null,null),(t()(),r.hb(16777216,null,0,1,null,z)),r.pb(14,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(15,0,null,null,12,"ion-footer",[],null,null,null,O.Z,O.l)),r.pb(16,49152,null,0,E.z,[r.h,r.k,r.z],null,null),(t()(),r.qb(17,0,null,0,10,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(18,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(19,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(20,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(21,0,["",""])),(t()(),r.qb(22,0,null,0,5,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(23,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(24,0,null,0,3,"ion-button",[["color","secondary"],["fill","clear"],["shape","round"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.apply()&&r),r},O.S,O.e)),r.pb(25,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],fill:[1,"fill"],shape:[2,"shape"]},null),(t()(),r.qb(26,0,null,0,1,"ion-icon",[["name","md-send"]],null,null,null,O.cb,O.o)),r.pb(27,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,9,0,"close"),t(e,14,0,n.emoji),t(e,25,0,"secondary","clear","round"),t(e,27,0,"md-send")},function(t,e){t(e,21,0,e.component.output)})}function G(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-emoji-picker",[],null,null,null,H,q)),r.pb(1,114688,null,0,V.a,[U.a,E.Hb],null,null)],function(t,e){t(e,1,0)},null)}var $=r.mb("app-emoji-picker",V.a,G,{},{},[]),K=[".messages[_ngcontent-%COMP%]{margin-bottom:20px!important}.messages[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:0 10px 0 5px!important;text-align:right!important}.messages.other[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{text-align:left!important}.time[_ngcontent-%COMP%]{text-align:right;font-size:10px}.messages.other[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{text-align:left!important}.messages.other.slide-right[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{-webkit-transform:translate3d(120px,0,0)!important;transform:translate3d(120px,0,0)!important}span[_ngcontent-%COMP%]{background-color:var(--ion-color-primary);display:inline-block!important;color:var(--ion-color-primary-contrast);padding:10px!important;border-radius:10px!important;text-align:left!important;max-width:240px!important}.speech-bubble[_ngcontent-%COMP%]{position:relative;border-radius:.4em}.speech-bubble[_ngcontent-%COMP%]:after{content:'';position:absolute;top:50%;width:0;height:0;border:7px solid transparent}.messages.mine[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] span.speech-bubble[_ngcontent-%COMP%]:after{right:0;border-left-color:var(--ion-color-primary);color:var(--ion-color-primary-contrast)!important;border-right:0;border-bottom:0;margin-top:-3.5px;margin-right:-7px}.messages.other[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background:var(--ion-color-warning)!important;color:var(--ion-color-warning-contrast)!important}.messages.other[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] span.speech-bubble[_ngcontent-%COMP%]:after{left:0;border-right-color:var(--ion-color-warning);border-left:0;border-bottom:0;margin-top:-3.5px;margin-left:-7px}.message[_ngcontent-%COMP%] .media[_ngcontent-%COMP%]{clear:both;display:block}.mittente[_ngcontent-%COMP%]{display:block;font-size:12px;color:var(--ion-color-dark);margin:-5px 5px 5px}"],W=n("BPfQ"),Q=r.ob({encapsulation:0,styles:[K],data:{}});function J(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function X(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.parent.context.ngIf.photoURL)})}function Y(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,46,"ion-content",[],null,
1null,null,O.Y,O.k)),r.pb(1,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,44,"ion-list",[["lines","none"]],null,null,null,O.kb,O.v)),r.pb(3,49152,null,0,E.O,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(4,0,null,0,4,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(5,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(7,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Inviato da"])),(t()(),r.qb(9,0,null,0,11,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(10,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(11,0,null,0,5,"ion-avatar",[],null,null,null,O.P,O.b)),r.pb(12,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,J)),r.pb(14,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,X)),r.pb(16,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(17,0,null,0,3,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(18,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(19,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(20,null,["",""])),(t()(),r.qb(21,0,null,0,8,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(22,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(23,0,null,0,6,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(24,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(25,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Il giorno"])),(t()(),r.qb(27,0,null,0,2,"h3",[],null,null,null,null,null)),(t()(),r.Hb(28,null,["",""])),r.Db(29,2),(t()(),r.qb(30,0,null,0,8,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(31,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(32,0,null,0,6,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(33,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(34,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Alle"])),(t()(),r.qb(36,0,null,0,2,"h3",[],null,null,null,null,null)),(t()(),r.Hb(37,null,["",""])),r.Db(38,2),(t()(),r.qb(39,0,null,0,7,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(40,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(41,0,null,0,5,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(42,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(43,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Testo"])),(t()(),r.qb(45,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(46,null,["",""]))],function(t,e){t(e,3,0,"none"),t(e,14,0,!e.context.ngIf.photoURL),t(e,16,0,e.context.ngIf.photoURL)},function(t,e){t(e,20,0,e.context.ngIf.displayName);var n=r.Ib(e,28,0,t(e,29,0,r.Ab(e.parent,0),1e3*e.context.ngIf.creationDate.seconds,"dd MMM yyyy"));t(e,28,0,n);var i=r.Ib(e,37,0,t(e,38,0,r.Ab(e.parent,0),1e3*e.context.ngIf.creationDate.seconds,"h:mm a"));t(e,37,0,i),t(e,46,0,e.context.ngIf.text)})}function Z(t){return r.Jb(0,[r.Cb(0,x.e,[r.u]),(t()(),r.qb(1,0,null,null,12,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(2,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,10,"ion-toolbar",[],null,
1null,null,O.Bb,O.N)),r.pb(4,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(5,0,null,0,2,"ion-title",[],null,null,null,O.zb,O.L)),r.pb(6,49152,null,0,E.Ab,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Dettaglio"])),(t()(),r.qb(8,0,null,0,5,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(9,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(11,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(12,0,null,0,1,"ion-icon",[["name","close"]],null,null,null,O.cb,O.o)),r.pb(13,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.hb(16777216,null,null,1,null,Y)),r.pb(15,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,13,0,"close"),t(e,15,0,n.message)},null)}function tt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-message",[],null,null,null,Z,Q)),r.pb(1,114688,null,0,W.a,[E.Jb,E.Hb],null,null)],function(t,e){t(e,1,0)},null)}var et=r.mb("app-message",W.a,tt,{},{},[]),nt=n("tnAE"),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setUrl=function(t){this._url=t},e.prototype.getUrl=function(){return this._url},e}(nt.a),it=function(){function t(t,e,n){this.navParams=t,this.modalController=e,this.restService=n,this.disabledInfiniteScroll=!0,this.list=[],this.defaultfilter={field:"priority",sort:"asc"}}return t.prototype.dismiss=function(){this.modalController.dismiss({action:"cancel"})},t.prototype.ngOnInit=function(){this.restService.setUrl(this.navParams.data&&this.navParams.data.type?"gallery/"+this.navParams.data.type+"/list":"gallery/content-management/list"),this.transition()},t.prototype.transition=function(){this.loadPage(!1)},t.prototype.loadPage=function(t){var e=this;this.restService.query(t,this.filter).subscribe(function(n){n.length<=0?(e.disabledInfiniteScroll=!0,e.list||(e.list=[])):(t||(e.list=[]),e.list=e.list.concat(n),e.disabledInfiniteScroll=!1)})},t.prototype.loadData=function(t){var e=this;setTimeout(function(){console.log("Done"),t.target.complete(),e.loadPage(!0)},500)},t.prototype.selectImage=function(t){this.modalController.dismiss({action:"pickImage",image:t})},t}(),ot=r.ob({encapsulation:0,styles:[[".card-content[_ngcontent-%COMP%]{padding:0}"]],data:{}});function at(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,13,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,12,"ion-col",[["size-md","3"],["size-sm","4"],["size-xs","6"]],null,null,null,O.X,O.j)),r.pb(2,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,10,"ion-card",[],null,null,null,O.W,O.g)),r.pb(4,49152,null,0,E.m,[r.h,r.k,r.z],null,null),(t()(),r.qb(5,0,null,0,4,"ion-card-content",[],null,
1null,null,O.U,O.h)),r.pb(6,49152,null,0,E.n,[r.h,r.k,r.z],null,null),(t()(),r.qb(7,0,null,0,2,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.selectImage(t.context.$implicit.media)&&r),r},null,null)),(t()(),r.qb(8,0,null,null,1,"ion-img",[],null,null,null,O.db,O.p)),r.pb(9,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(10,0,null,0,3,"div",[["class","ion-text-center"]],null,null,null,null,null)),(t()(),r.qb(11,0,null,null,2,"ion-button",[["fill","clear"],["size","small"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.selectImage(t.context.$implicit.media)&&r),r},O.S,O.e)),r.pb(12,49152,null,0,E.k,[r.h,r.k,r.z],{fill:[0,"fill"],size:[1,"size"]},null),(t()(),r.Hb(-1,0,[" SELEZIONA"]))],function(t,e){t(e,9,0,e.context.$implicit.media),t(e,12,0,"clear","small")},null)}function st(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,5,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(1,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,3,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(3,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,at)),r.pb(5,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,5,0,e.context.ngIf)},null)}function ut(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-item",[["class","ion-text-center"],["lines","none"]],null,null,null,O.hb,O.t)),r.pb(1,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(2,0,null,0,1,"ion-spinner",[],null,null,null,O.tb,O.F)),r.pb(3,49152,null,0,E.sb,[r.h,r.k,r.z],null,null)],function(t,e){t(e,1,0,"none")},null)}function lt(t){return r.Jb(0,[r.Fb(402653184,1,{content:0}),(t()(),r.qb(1,0,null,null,12,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(2,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,10,"ion-toolbar",[],null,
1null,null,O.Bb,O.N)),r.pb(4,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(5,0,null,0,2,"ion-title",[],null,null,null,O.zb,O.L)),r.pb(6,49152,null,0,E.Ab,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Galleria"])),(t()(),r.qb(8,0,null,0,5,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(9,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(11,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(12,0,null,0,1,"ion-icon",[["name","close"]],null,null,null,O.cb,O.o)),r.pb(13,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(14,0,null,null,8,"ion-content",[["class","ion-padding"]],null,null,null,O.Y,O.k)),r.pb(15,49152,[[1,4]],0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,st)),r.pb(17,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),r.hb(0,[["loading",2]],0,0,null,ut)),(t()(),r.qb(19,0,null,0,3,"ion-infinite-scroll",[["position","bottom"]],null,[[null,"ionInfinite"]],function(t,e,n){var r=!0;return"ionInfinite"===e&&(r=!1!==t.component.loadData(n)&&r),r},O.fb,O.q)),r.pb(20,49152,null,0,E.E,[r.h,r.k,r.z],{disabled:[0,"disabled"],position:[1,"position"]},null),(t()(),r.qb(21,0,null,0,1,"ion-infinite-scroll-content",[["loadingSpinner","bubbles"],["loadingText","Loading more data..."]],null,null,null,O.eb,O.r)),r.pb(22,49152,null,0,E.F,[r.h,r.k,r.z],{loadingSpinner:[0,"loadingSpinner"],loadingText:[1,"loadingText"]},null)],function(t,e){var n=e.component;t(e,13,0,"close"),t(e,17,0,n.list,r.Ab(e,18)),t(e,20,0,n.disabledInfiniteScroll,"bottom"),t(e,22,0,"bubbles","Loading more data...")},null)}function ct(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-gallery",[],null,null,null,lt,ot)),r.pb(1,114688,null,0,it,[E.Jb,E.Hb,rt],null,
1null)],function(t,e){t(e,1,0)},null)}var ht=r.mb("app-gallery",it,ct,{},{},[]),ft=n("Rmbw"),dt=n("6blF"),pt=n("0/uQ"),mt=n("F/XL"),gt=n("15JJ"),vt=n("NKHs"),yt=n("hDTV"),bt=function(){return function(t,e,n,r){var i=this,o=Object(vt.b)(new vt.a(r),n);this.auth=r.runOutsideAngular(function(){return Object(yt.e)(t,r,e).auth()}),this.authState=new dt.a(function(t){return r.runOutsideAngular(function(){return i.auth.onAuthStateChanged(t)})}).pipe(o),this.user=new dt.a(function(t){return r.runOutsideAngular(function(){return i.auth.onIdTokenChanged(t)})}).pipe(o),this.idToken=this.user.pipe(Object(gt.a)(function(t){return t?Object(pt.a)(t.getIdToken()):Object(mt.a)(null)})),this.idTokenResult=this.user.pipe(Object(gt.a)(function(t){return t?Object(pt.a)(t.getIdTokenResult()):Object(mt.a)(null)}))}}(),wt=n("8s+1"),_t=r.ob({encapsulation:0,styles:[[""]],data:{}});function St(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,6,"ion-tab-button",[["tab","blog"]],null,null,null,O.vb,O.H)),r.pb(1,49152,null,0,E.vb,[r.h,r.k,r.z],{tab:[0,"tab"]},null),(t()(),r.qb(2,0,null,0,1,"ion-icon",[["name","quote"]],null,null,null,O.cb,O.o)),r.pb(3,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(4,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(5,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Blog"]))],function(t,e){t(e,1,0,"blog"),t(e,3,0,"quote")},null)}function Et(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,28,"ion-tabs",[],null,[[null,"ionTabButtonClick"]],function(t,e,n){var i=!0;return"ionTabButtonClick"===e&&(i=!1!==r.Ab(t,1).select(n.detail.tab)&&i),i},O.wb,O.I)),r.pb(1,49152,null,1,E.wb,[E.Ib],null,null),r.Fb(335544320,1,{tabBar:0}),(t()(),r.qb(3,0,null,1,25,"ion-tab-bar",[["slot","bottom"]],null,null,null,O.ub,O.G)),r.pb(4,49152,[[1,4]],0,E.ub,[r.h,r.k,r.z],null,null),(t()(),r.qb(5,0,null,0,6,"ion-tab-button",[["tab","home"]],null,null,null,O.vb,O.H)),r.pb(6,49152,null,0,E.vb,[r.h,r.k,r.z],{tab:[0,"tab"]},null),(t()(),r.qb(7,0,null,0,1,"ion-icon",[["name","home"]],null,null,null,O.cb,O.o)),r.pb(8,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(9,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(10,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["home"])),(t()(),r.qb(12,0,null,0,6,"ion-tab-button",[["tab","games"]],null,null,null,O.vb,O.H)),r.pb(13,49152,null,0,E.vb,[r.h,r.k,r.z],{tab:[0,"tab"]},null),(t()(),r.qb(14,0,null,0,1,"ion-icon",[["src","/assets/icon/games.svg"]],null,null,null,O.cb,O.o)),r.pb(15,49152,null,0,E.C,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(16,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(17,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Gioco"])),(t()(),r.hb(16777216,null,0,2,null,St)),r.pb(20,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.qb(22,0,null,0,6,"ion-tab-button",[["tab","settings"]],null,null,null,O.vb,O.H)),r.pb(23,49152,null,0,E.vb,[r.h,r.k,r.z],{tab:[0,"tab"]},null),(t()(),r.qb(24,0,null,0,1,"ion-icon",[["name","settings"]],null,null,null,O.cb,O.o)),r.pb(25,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(26,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(27,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Impostazioni"]))],function(t,e){var n=e.component;t(e,6,0,"home"),t(e,8,0,"home"),t(e,13,0,"games"),t(e,15,0,"/assets/icon/games.svg"),t(e,20,0,r.Ib(e,20,0,r.Ab(e,21).transform(n.blog$))),t(e,23,0,"settings"),t(e,25,0,"settings")},null)}function Ct(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,8,"ion-card",[],null,null,null,O.W,O.g)),r.pb(1,49152,null,0,E.m,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,6,"ion-card-content",[],null,
1null,null,O.U,O.h)),r.pb(3,49152,null,0,E.n,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,2,"ion-text",[["color","danger"]],null,null,null,O.xb,O.J)),r.pb(5,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["Il punto vendita non \xe8 censito nel sisitema."])),(t()(),r.qb(7,0,null,0,1,"p",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Provare a ricaricare l'app o inserire il corretto indirizzo."]))],function(t,e){t(e,5,0,"danger")},null)}function It(t){return r.Jb(0,[(t()(),r.hb(16777216,null,null,2,null,Et)),r.pb(1,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(0,[["error",2]],null,0,null,Ct))],function(t,e){var n,i=e.component;t(e,1,0,null==(n=r.Ib(e,1,0,r.Ab(e,2).transform(i.pvr$)))?null:n.uid,r.Ab(e,3))},null)}function kt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-main",[],null,null,null,It,_t)),r.pb(1,114688,null,0,ft.a,[bt,C.n,C.a,wt.a,nt.a],null,null)],function(t,e){t(e,1,0)},null)}var Tt=r.mb("app-main",ft.a,kt,{},{},[]),Ot=n("8JzM"),At=n("np0s"),xt=n("KWWs"),Dt=n("hsj+"),Pt=n("H+bZ"),Nt=r.ob({encapsulation:0,styles:[["a[_ngcontent-%COMP%]{text-decoration:none!important}.box[_ngcontent-%COMP%]{margin:auto;display:inline-block}@media only screen and (min-width:320px){.box[_ngcontent-%COMP%]{min-width:270px;max-width:290px}}@media only screen and (min-width:375px){.box[_ngcontent-%COMP%]{min-width:330px;max-width:350px}}@media only screen and (min-width:425px){.box[_ngcontent-%COMP%]{min-width:380px;max-width:400px}}@media only screen and (min-width:768px){.box[_ngcontent-%COMP%]{min-width:150px;max-width:200px}}@media only screen and (min-width:1024px){.box[_ngcontent-%COMP%]{min-width:200
1px;max-width:250px}}@media only screen and (min-width:1440px){.box[_ngcontent-%COMP%]{min-width:320px;max-width:350px}}@media only screen and (min-width:2000px){.box[_ngcontent-%COMP%]{min-width:490px;max-width:550px}}"]],data:{}});function jt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),r.Hb(1,null,[" ",""]))],null,function(t,e){t(e,0,0,r.sb(2,"text-span row-",e.parent.context.$implicit.row," col-",e.parent.context.$implicit.col,"")),t(e,1,0,e.parent.context.$implicit.text)})}function Rt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,6,"ion-slide",[],null,null,null,O.rb,O.D)),r.pb(1,49152,null,0,E.qb,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,4,"span",[["class","wrapper-image"]],null,null,null,null,null)),(t()(),r.qb(3,0,null,null,1,"ion-img",[],null,null,null,O.db,O.p)),r.pb(4,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.hb(16777216,null,null,1,null,jt)),r.pb(6,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,4,0,e.context.$implicit.image),t(e,6,0,e.context.$implicit.text)},null)}function Mt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,1,"app-toolbar",[],null,
1null,null,Ot.b,Ot.a)),r.pb(3,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{menu:[0,"menu"]},null),(t()(),r.qb(4,0,null,null,65,"ion-content",[["class","ion-text-center"]],null,null,null,O.Y,O.k)),r.pb(5,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,63,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(7,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(8,0,null,0,61,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(9,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,6,"ion-col",[["class","right-border"]],null,null,null,O.X,O.j)),r.pb(11,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(12,0,null,0,4,"ion-slides",[["loop","true"],["pager","true"],["speed","3000"]],null,[[null,"ionSlidesDidLoad"]],function(t,e,n){var i=!0;return"ionSlidesDidLoad"===e&&(i=!1!==t.component.slidesDidLoad(r.Ab(t,13))&&i),i},O.sb,O.E)),r.pb(13,49152,[["mySlider",4]],0,E.rb,[r.h,r.k,r.z],{options:[0,"options"],pager:[1,"pager"]},null),(t()(),r.hb(16777216,null,0,2,null,Rt)),r.pb(15,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.qb(17,0,null,0,52,"ion-col",[],null,null,null,O.X,O.j)),r.pb(18,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(19,0,null,0,6,"div",[["class","ion-padding ion-text-left"]],null,null,null,null,null)),(t()(),r.qb(20,0,null,null,5,"ion-text",[],null,null,null,O.xb,O.J)),r.pb(21,49152,null,0,E.xb,[r.h,r.k,r.z],null,null),(t()(),r.qb(22,0,null,0,3,"small",[],null,
1null,null,null,null)),(t()(),r.Hb(-1,null,["Benvenuto in FSP APP, l'applicazione pensata per migliorare le tue giornate. Scopri tutti i servizi a tua disposizione in modalit\xe0 self service, come le ricariche telefoniche o in modalit\xe0 desktop, tramite l'aiuto del tuo esercente potrai sbrigare tutte le pi\xf9 rognose faccende in modo facile e veloce."])),(t()(),r.qb(24,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,[" Inoltre FSP APP \xe8 anche un modo per comunicare con il tuo esercente grazie al blog e alla chat sarai aggiornato su tutte le iniziative gli sconti le promozioni attive presso di noi."])),(t()(),r.qb(26,0,null,0,43,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(27,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(28,0,null,0,23,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(29,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(30,0,null,0,10,"ion-col",[],null,null,null,O.X,O.j)),r.pb(31,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(32,0,null,0,8,"a",[["class","box"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,33).onClick(n)&&i),"click"===e&&(i=!1!==r.Ab(t,34).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.pb(33,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),r.pb(34,671744,null,0,C.p,[C.n,C.a,x.i],{routerLink:[0,"routerLink"]},null),r.Bb(35,3),(t()(),r.qb(36,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/services.jpg"]],null,null,null,O.db,O.p)),r.pb(37,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(38,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(39,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["SCOPRI I NOSTRI SERVIZI"])),(t()(),r.qb(41,0,null,0,10,"ion-col",[],null,null,null,O.X,O.j)),r.pb(42,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(43,0,null,0,8,"a",[["class","box"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,44).onClick(n)&&i),"click"===e&&(i=!1!==r.Ab(t,45).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.pb(44,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),r.pb(45,671744,null,0,C.p,[C.n,C.a,x.i],{routerLink:[0,"routerLink"]},null),r.Bb(46,3),(t()(),r.qb(47,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/gioco.jpg"]],null,null,null,O.db,O.p)),r.pb(48,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(49,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(50,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["GIOCO"])),(t()(),r.qb(52,0,null,0,17,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(53,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(54,0,null,0,7,"ion-col",[],null,null,null,O.X,O.j)),r.pb(55,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(56,0,null,0,5,"a",[["class","box"],["href","https://ls.sir.sportradar.com/scommettendo"],["target","_new"]],null,null,null,null,null)),(t()(),r.qb(57,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/livescore.jpg"]],null,null,null,O.db,O.p)),r.pb(58,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(59,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(60,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["LIVESCORE"])),(t()(),r.qb(62,0,null,0,7,"ion-col",[],null,null,null,O.X,O.j)),r.pb(63,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(64,0,null,0,5,"a",[["class","box"],["href","https://s5.sir.sportradar.com/scommettendo/it"],["target","_new"]],null,null,null,null,null)),(t()(),r.qb(65,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/statistics.jpg"]],null,null,null,O.db,O.p)),r.pb(66,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(67,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(68,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["STATISTICHE"]))],function(t,e){var n=e.component;t(e,3,0,!0),t(e,13,0,n.slideOpts,"true"),t(e,15,0,r.Ib(e,15,0,r.Ab(e,16).transform(n.contentsToView))),t(e,33,0);var i=t(e,35,0,"/",n.pvr.domainName,"services");t(e,34,0,i),t(e,37,0,"/assets/images/home-page-icons/services.jpg"),t(e,39,0,"primary"),t(e,44,0);var o=t(e,46,0,"/",n.pvr.domainName,"games");t(e,45,0,o),t(e,48,0,"/assets/images/home-page-icons/gioco.jpg"),t(e,50,0,"primary"),t(e,58,0,"/assets/images/home-page-icons/livescore.jpg"),t(e,60,0,"primary"),t(e,66,0,"/assets/images/home-page-icons/statistics.jpg"),t(e,68,0,"primary")},function(t,e){t(e,32,0,r.Ab(e,34).target,r.Ab(e,34).href),t(e,43,0,r.Ab(e,45).target,r.Ab(e,45).href)})}function Lt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-home",[],null,
1null,null,Mt,Nt)),r.pb(1,114688,null,0,Dt.a,[Pt.a,C.a],null,null)],function(t,e){t(e,1,0)},null)}var Ft=r.mb("app-home",Dt.a,Lt,{},{},[]),Vt=r.ob({encapsulation:2,styles:[],data:{}});function Ut(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"div",[["id","firebaseui-auth-container"]],null,null,null,null,null))],null,null)}var qt=n("bP1B"),Bt=n("n0+C"),zt=n("Us1p"),Ht=n("2g2N"),Gt=r.ob({encapsulation:0,styles:[[""]],data:{}});function $t(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,4,"ion-content",[["class","ion-padding ion-text-center"]],null,null,null,O.Y,O.k)),r.pb(1,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,0,"img",[["src","/assets/images/fsp-logo.svg"],["style","margin-bottom:2em"]],null,null,null,null,null)),(t()(),r.qb(3,0,null,0,1,"firebase-ui",[],null,[[null,"signInSuccessWithAuthResult"],[null,"signInFailure"]],function(t,e,n){var r=!0,i=t.component;return"signInSuccessWithAuthResult"===e&&(r=!1!==i.successCallback(n)&&r),"signInFailure"===e&&(r=!1!==i.errorCallback(n)&&r),r},Ut,Vt)),r.pb(4,245760,null,0,w,[bt,"firebaseUIAuthConfig","firebaseUIAuthConfigFeature",r.z,u],null,{signInSuccessWithAuthResultCallback:"signInSuccessWithAuthResult",signInFailureCallback:"signInFailure"})],function(t,e){t(e,4,0)},null)}function Kt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-login",[],null,null,null,$t,Gt)),r.pb(1,245760,null,0,qt.a,[C.a,Bt.a,zt.a,Ht.a,E.Gb,wt.a,C.n,Pt.a],null,null)],function(t,e){t(e,1,0)},null)}var Wt=r.mb("app-login",qt.a,Kt,{},{},[]),Qt=n("iXDR"),Jt=r.ob({encapsulation:0,styles:[[""]],data:{}});function Xt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,10,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,8,"ion-toolbar",[],null,
1null,null,O.Bb,O.N)),r.pb(3,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,3,"ion-buttons",[["slot","start"]],null,null,null,O.T,O.f)),r.pb(5,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,1,"ion-menu-button",[],null,null,null,O.lb,O.x)),r.pb(7,49152,null,0,E.R,[r.h,r.k,r.z],null,null),(t()(),r.qb(8,0,null,0,2,"ion-title",[],null,null,null,O.zb,O.L)),r.pb(9,49152,null,0,E.Ab,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Errore"])),(t()(),r.qb(11,0,null,null,6,"ion-content",[["class","ion-padding ion-text-center"]],null,null,null,O.Y,O.k)),r.pb(12,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(13,0,null,0,1,"p",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Non hai i privilegi per accedere questa risora"])),(t()(),r.qb(15,0,null,0,2,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.goToLogin()&&r),r},O.S,O.e)),r.pb(16,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Login"]))],null,null)}function Yt(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-access-denied",[],null,null,null,Xt,Jt)),r.pb(1,114688,null,0,Qt.a,[C.n,C.a],null,null)],function(t,e){t(e,1,0)},null)}var Zt=r.mb("app-access-denied",Qt.a,Yt,{},{},[]),te=n("K9Ia"),ee=n("dzgT"),ne=n("dC0D"),re=n("p0Sj"),ie=n("psW0"),oe=n("67Y/"),ae=n("J3Ai"),se=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getUrl=function(){return"posts"},e}return Object(s.__extends)(e,t),e}(nt.a),ue=(n("5x/H"),function(){function t(){this.getPostCommentUrl=function(t){return"posts/"+t+"/comments"},this.mapToData=function(t){return Object.keys(t).forEach(function(e){return(!t[e]||"function"==typeof t[e])&&delete t[e]}),Object.assign({},t)}}return t.prototype.create=function(t,e){var n=a.firestore(),r=this.getPostCommentUrl(t);if(r){var i=n.collection(r).doc(),o=a.firestore.FieldValue.serverTimestamp();e.creationDate=o,e.uid=i.id,console.log("Request for creare:",e);var s=this.mapToData(e);return Object(pt.a)(i.set(s).then(function(){return e}))}return null},t.prototype.onSnapshot=function(t){var e=a.firestore(),n=this.getPostCommentUrl(t);if(n){var r=e.collection(n);return dt.a.create(function(t){r.onSnapshot(function(e){e.docChanges().forEac
1h(function(e){"added"===e.type&&t.next(e.doc.data())})})})}return Object(mt.a)(null)},t}()),le=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},ce=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},he=function(){function t(t,e,n,r){this.modalController=t,this.postService=e,this.postCommentsService=n,this.principal=r,this.clicks=new te.a,this.toggleState=function(t){return!t},this.buttonInitialState=!1,this.clicks$=this.clicks.asObservable().pipe(Object(ne.a)(this.toggleState,this.buttonInitialState),Object(re.a)(this.buttonInitialState))}return Object.defineProperty(t.prototype,"postId",{get:function(){return this._postId},set:function(t){this._postId=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.post$=this.postService.find(this._postId),this.comments=[],this.incomingData$=this.postCommentsService.onSnapshot(this._postId).pipe(Object(ie.a)(function(t){return function(t){return Object(mt.a)(t)}(t)}),Object(ne.a)(function(t,e){return t.concat([e])},[]),Object(oe.a)(function(t){return t.sort(function(t,e){return t.creationDate-e.creationDate})})),this.showToogleButton$=this.incomingData$.pipe(Object(oe.a)(function(t){return t.length>3})),this.list$=Object(ee.a)(this.incomingData$,this.clicks$).pipe(Object(oe.a)(function(t){var e=t[0];return t[1]?e:e.slice(-3)}))},t.prototype.toggleCommentClick=function(t){this.clicks.next(t)},t.prototype.addComment=function(){var t=Object.assign(this.principal.identity(),{text:this.comment});this.postCommentsService.create(this.postId,t),this.comment=""},t.prototype.onKey=function(t){13===t.which&&this.addComment(),t.preventDefault()},t.prototype.navigateToMedia=function(t){return le(this,void 0,void 0,function(){return ce(this,function(e){switch(e.label){case 0:return[4,this.modalController.create({component:ae.a,componentProps:{media:t}})];case 1:return[4,e.sent().present()];case 2:return[2,e.sent()]}})})},t.prototype.openEmoji=function(){return le(this,void 0,void 0,function(){var t,e;return ce(this,function(n){switch(n.label){case 0:return[4,this.modalController.create({component:V.a})];case 1:return[4,(t=n.sent()).present()];case 2:return n.sent(),[4,t.onDidDismiss()];case 3:return(e=n.sent().data).output&&(this.comment=(this.comment?this.comment:"")+e.output),[2]}})})},t}(),fe=r.ob({encapsulation:0,styles:[[".empty[_ngcontent-%COMP%]{background:#d3d1d1;border:1px solid #a8a7a7;height:200px}ion-thumbnail[_ngcontent-%COMP%]{min-width:7rem;min-height:7rem}ion-thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:7rem;min-width:7rem}.dense[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .sc-ion-label-md-h[_ngcontent-%COMP%]{margin:0}ion-label[_ngcontent-%COMP%]{white-space:normal!important}a[_ngcontent-%COMP%]{text-decoration:none;font-weight:700}ion-col[_ngcontent-%COMP%]{padding:0}"]],data:{}});function de(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function pe(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.parent.context.ngIf.photoURL)})}function me(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"ion-img",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.navigateToMedia(t.parent.context.ngIf.media)&&r),r},O.db,O.p)),r.pb(1,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null)],function(t,e){t(e,1,0,e.parent.context.ngIf.media)},null)}function ge(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,7,"ion-item",[["color","light"]],null,null,null,O.hb,O.t)),r.pb(1,49152,null,0,E.H,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(2,0,null,0,5,"ion-label",[["color","primary"]],null,null,null,O.ib,O.u)),r.pb(3,49152,null,0,E.N,[r.h,r.k,r.z],{color:[0,"color"]}
1,null),(t()(),r.qb(4,0,null,0,3,"small",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,[" Commenti "])),(t()(),r.qb(6,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),r.Hb(7,null,["",""]))],function(t,e){t(e,1,0,"light"),t(e,3,0,"primary")},function(t,e){t(e,7,0,e.context.ngIf.length)})}function ve(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function ye(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.parent.context.$implicit.photoURL)})}function be(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,36,"ion-item",[["color","light"]],null,null,null,O.hb,O.t)),r.pb(1,49152,null,0,E.H,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(2,0,null,0,5,"ion-avatar",[],null,null,null,O.P,O.b)),r.pb(3,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,ve)),r.pb(5,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,ye)),r.pb(7,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(8,0,null,0,28,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(9,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,26,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(11,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(12,0,null,0,16,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(13,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(14,0,null,0,7,"ion-col",[["style","padding-bottom: 0;line-height: 15px;"]],null,null,null,O.X,O.j)),r.pb(15,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(16,0,null,0,5,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,17).onClick(n)&&i),"click"===e&&(i=!1!==r.Ab(t,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.pb(17,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),r.pb(18,671744,null,0,C.p,[C.n,C.a,x.i],{routerLink:[0,"routerLink"]}
1,null),r.Bb(19,2),(t()(),r.qb(20,0,null,null,1,"small",[],null,null,null,null,null)),(t()(),r.Hb(21,null,["",""])),(t()(),r.qb(22,0,null,0,6,"ion-col",[["class","ion-text-right"],["style","padding-bottom: 0;line-height: 15px;"]],null,null,null,O.X,O.j)),r.pb(23,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(24,0,null,0,4,"ion-text",[["color","medium"]],null,null,null,O.xb,O.J)),r.pb(25,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(26,0,null,0,2,"small",[],null,null,null,null,null)),(t()(),r.Hb(27,null,["",""])),r.Db(28,2),(t()(),r.qb(29,0,null,0,7,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(30,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(31,0,null,0,5,"ion-col",[["style","padding-top: 0;line-height: 15px;"]],null,null,null,O.X,O.j)),r.pb(32,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(33,0,null,0,3,"ion-text",[["color","dark"]],null,null,null,O.xb,O.J)),r.pb(34,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(35,0,null,0,1,"small",[],null,null,null,null,null)),(t()(),r.Hb(36,null,["",""]))],function(t,e){t(e,1,0,"light"),t(e,5,0,!e.parent.context.ngIf.photoURL),t(e,7,0,e.context.$implicit.photoURL),t(e,17,0);var n=t(e,19,0,"/profile",e.context.$implicit.uid);t(e,18,0,n),t(e,25,0,"medium"),t(e,34,0,"dark")},function(t,e){t(e,16,0,r.Ab(e,18).target,r.Ab(e,18).href),t(e,21,0,e.context.$implicit.displayName);var n=r.Ib(e,27,0,t(e,28,0,r.Ab(e.parent.parent,0),1e3*e.parent.context.ngIf.creationDate.seconds,"d MMM, h:mm"));t(e,27,0,n),t(e,36,0,e.context.$implicit.text)})}function we(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(1,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Mostra Tutti"]))],null,null)}function _e(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(1,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Mostra Meno"]))],null,null)}function Se(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,11,"ion-item",[["color","light"]],null,null,null,O.hb,O.t)),r.pb(1,49152,null,0,E.H,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(2,0,null,0,9,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(3,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,7,"ion-button",[["size","small"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleCommentClick()&&r),r},O.S,O.e)),r.pb(5,49152,null,0,E.k,[r.h,r.k,r.z],{size:[0,"size"]},null),(t()(),r.hb(16777216,null,0,2,null,we)),r.pb(7,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(16777216,null,0,2,null,_e)),r.pb(10,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h])],function(t,e){var n=e.component;t(e,1,0,"light"),t(e,5,0,"small"),t(e,7,0,!r.Ib(e,7,0,r.Ab(e,8).transform(n.clicks$))),t(e,10,0,r.Ib(e,10,0,r.Ab(e,11).transform(n.clicks$)))},null)}function Ee(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,57,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,56,"ion-card",[["style","margin:0;"]],null,null,null,O.W,O.g)),r.pb(2,49152,null,0,E.m,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,20,"ion-card-title",[],null,null,null,O.V,O.i)),r.pb(4,49152,null,0,E.q,[r.h,r.k,r.z],null,null),(t()(),r.qb(5,0,null,0,18,"ion-item",[["lines","full"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,7).onClick()&&i),"click"===e&&(i=!1!==r.Ab(t,9).onClick(n)&&i),i},O.hb,O.t)),r.pb(6,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),r.pb(7,16384,null,0,C.o,[C.n,C.a,[8,null],r.D,r.k],{routerLink:[0,"routerLink"]},null),r.Bb(8,2),r.pb(9,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),(t()(),r.qb(10,0,null,0,5,"ion-avatar",[["style","margin-right: 1em;"]],null,null,null,O.P,O.b)),r.pb(11,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,de)),r.pb(13,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,pe)),r.pb(15,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]}
1,null),(t()(),r.qb(16,0,null,0,7,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(17,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.qb(18,0,null,0,1,"h3",[],null,null,null,null,null)),(t()(),r.Hb(19,null,[""," "])),(t()(),r.qb(20,0,null,0,3,"p",[],null,null,null,null,null)),(t()(),r.qb(21,0,null,null,2,"small",[],null,null,null,null,null)),(t()(),r.Hb(22,null,["",""])),r.Db(23,2),(t()(),r.qb(24,0,null,0,33,"ion-card-content",[],null,null,null,O.U,O.h)),r.pb(25,49152,null,0,E.n,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,me)),r.pb(27,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(28,0,null,0,1,"h2",[],null,null,null,null,null)),(t()(),r.Hb(29,null,[" ",""])),(t()(),r.qb(30,0,null,0,27,"ion-list",[["class","dense"],["lines","none"]],null,null,null,O.kb,O.v)),r.pb(31,49152,null,0,E.O,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.hb(16777216,null,0,2,null,ge)),r.pb(33,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(16777216,null,0,2,null,be)),r.pb(36,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(16777216,null,0,2,null,Se)),r.pb(39,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.qb(41,0,null,0,16,"ion-item",[["color","light"],["lines","full"]],null,null,null,O.hb,O.t)),r.pb(42,49152,null,0,E.H,[r.h,r.k,r.z],{color:[0,"color"],lines:[1,"lines"]},null),(t()(),r.qb(43,0,null,0,3,"ion-button",[["color","dark"],["fill","clear"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openEmoji()&&r),r},O.S,O.e)),r.pb(44,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],fill:[1,"fill"]},null),(t()(),r.qb(45,0,null,0,1,"ion-icon",[["slot","icon-only"],["src","/assets/icon/emoticon-happy-outline.svg"]],null,null,null,O.cb,O.o)),r.pb(46,49152,null,0,E.C,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(47,0,null,0,6,"ion-input",[["placeholder","Aggiungi un commento"],["type","textarea"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keyup"],[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0,o=t.component;return"ionBlur"===e&&(i=!1!==r.Ab(t,49)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,49)._handleInputEvent(n.target)&&i),"keyup"===e&&(i=!1!==o.onKey(n)&&i),"ngModelChange"===e&&(i=!1!==(o.comment=n)&&i),i},O.gb,O.s)),r.pb(48,49152,null,0,E.G,[r.h,r.k,r.z],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r.pb(49,16384,null,0,E.Pb,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Pb]),r.pb(51,671744,null,0,A.m,[[8,null],[8,null],[8,null],[6,A.i]],{model:[0,"model"]},{update:"ngModelChange"}),r.Eb(2048,null,A.j,null,[A.m]),r.pb(53,16384,null,0,A.k,[[4,A.j]],null,null),(t()(),r.qb(54,0,null,0,3,"ion-button",[["color","primary"],["fill","clear"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.addComment()&&r),r},O.S,O.e)),r.pb(55,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],disabled:[1,"disabled"],fill:[2,"fill"]},null),(t()(),r.qb(56,0,null,0,1,"ion-icon",[["name","md-send"],["slot","icon-only"]],null,null,null,O.cb,O.o)),r.pb(57,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,6,0,"full");var i=t(e,8,0,"/profile",e.context.ngIf.uid);t(e,7,0,i),t(e,9,0),t(e,13,0,!e.context.ngIf.photoURL),t(e,15,0,e.context.ngIf.photoURL),t(e,27,0,e.context.ngIf.media),t(e,31,0,"none"),t(e,33,0,r.Ib(e,33,0,r.Ab(e,34).transform(n.list$))),t(e,36,0,r.Ib(e,36,0,r.Ab(e,37).transform(n.list$))),t(e,39,0,r.Ib(e,39,0,r.Ab(e,40).transform(n.showToogleButton$))),t(e,42,0,"light","full"),t(e,44,0,"dark","clear"),t(e,46,0,"/assets/icon/emoticon-happy-outline.svg"),t(e,48,0,"Aggiungi un commento","textarea"),t(e,51,0,n.comment),t(e,55,0,"primary",!n.comment,"clear"),t(e,57,0,"md-send")},function(t,e){t(e,19,0,e.context.ngIf.displayName);var n=r.Ib(e,22,0,t(e,23,0,r.Ab(e.parent,0),1e3*e.context.ngIf.creationDate.seconds,"d MMM, h:mm a"));t(e,22,0,n),t(e,29,0,e.context.ngIf.text),t(e,47,0,r.Ab(e,53).ngClassUntouched,r.Ab(e,53).ngClassTouched,r.Ab(e,53).ngClassPristine,r.Ab(e,53).ngClassDirty,r.Ab(e,53).ngClassValid,r.Ab(e,53).ngClassInvalid,r.Ab(e,53).ngClassPending)})}function Ce(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,4,"ion-card",[],null,
1null,null,O.W,O.g)),r.pb(1,49152,null,0,E.m,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,2,"ion-card-content",[],null,null,null,O.U,O.h)),r.pb(3,49152,null,0,E.n,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,0,"div",[["class","empty"]],null,null,null,null,null))],null,null)}function Ie(t){return r.Jb(0,[r.Cb(0,x.e,[r.u]),(t()(),r.hb(16777216,null,null,2,null,Ee)),r.pb(2,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(0,[["loading",2]],null,0,null,Ce))],function(t,e){var n=e.component;t(e,2,0,r.Ib(e,2,0,r.Ab(e,3).transform(n.post$)),r.Ab(e,4))},null)}var ke=n("J/Re"),Te=n("i0o1"),Oe=r.ob({encapsulation:0,styles:[["ion-avatar[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100px!important;max-height:100px!important}"]],data:{}});function Ae(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,1,"app-post",[],null,null,null,Ie,fe)),r.pb(2,114688,null,0,he,[E.Hb,se,ue,wt.a],{postId:[0,"postId"]},null)],function(t,e){t(e,2,0,e.context.$implicit.id)},null)}function xe(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,Ae)),r.pb(2,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),(t()(),r.hb(0,null,null,0))],function(t,e){t(e,2,0,e.context.ngIf)},null)}function De(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,1,"app-post",[],null,null,null,Ie,fe)),r.pb(2,114688,null,0,he,[E.Hb,se,ue,wt.a],{postId:[0,"postId"]},null)],function(t,e){t(e,2,0,e.context.$implicit.id)},null)}function Pe(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,De)),r.pb(2,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null),(t()(),r.hb(0,null,null,0))],function(t,e){t(e,2,0,e.context.ngIf)},null)}function Ne(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-item",[["class","ion-text-center"],["lines","none"]],null,null,null,O.hb,O.t)),r.pb(1,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(2,0,null,0,1,"ion-spinner",[],null,null,null,O.tb,O.F)),r.pb(3,49152,null,0,E.sb,[r.h,r.k,r.z],null,null)],function(t,e){t(e,1,0,"none")},null)}function je(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,13,"ion-content",[["class","ion-padding"]],null,null,null,O.Y,O.k)),r.pb(1,49152,[[1,4]],0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,11,"div",[["class","centered-box"]],null,null,null,null,null)),(t()(),r.hb(16777216,null,null,2,null,xe)),r.pb(4,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(16777216,null,null,2,null,Pe)),r.pb(7,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(0,[["loading",2]],null,0,null,Ne)),(t()(),r.qb(10,0,null,null,3,"ion-infinite-scroll",[["position","bottom"]],null,[[null,"ionInfinite"]],function(t,e,n){var r=!0;return"ionInfinite"===e&&(r=!1!==t.component.emitScroll(n)&&r),r},O.fb,O.q)),r.pb(11,49152,null,0,E.E,[r.h,r.k,r.z],{position:[0,"position"]},null),(t()(),r.qb(12,0,null,0,1,"ion-infinite-scroll-content",[["loadingSpinner","bubbles"],["loadingText","Loading more data..."]],null,null,null,O.eb,O.r)),r.pb(13,49152,null,0,E.F,[r.h,r.k,r.z],{loadingSpinner:[0,"loadingSpinner"],loadingText:[1,"loadingText"]},null)],function(t,e){var n=e.component;t(e,4,0,r.Ib(e,4,0,r.Ab(e,5).transform(n.listeningOnchange$))),t(e,7,0,r.Ib(e,7,0,r.Ab(e,8).transform(n.list$)),r.Ab(e,9)),t(e,11,0,"bottom"),t(e,13,0,"bubbles","Loading more data...")},null)}function Re(t){return r.Jb(0,[r.Fb(671088640,1,{content:0}),(t()(),r.qb(1,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(2,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,1,"app-toolbar",[],null,
1null,null,Ot.b,Ot.a)),r.pb(4,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{back:[0,"back"],title:[1,"title"]},null),(t()(),r.hb(16777216,null,null,1,null,je)),r.pb(6,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,!0,"Blog"),t(e,6,0,!n.hideContent)},null)}function Me(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-blog",[],null,null,null,Re,Oe)),r.pb(1,114688,null,0,ke.a,[Te.a,C.a],null,null)],function(t,e){t(e,1,0)},null)}var Le=r.mb("app-blog",ke.a,Me,{},{},[]),Fe=n("oflK"),Ve=r.ob({encapsulation:0,styles:[K],data:{}});function Ue(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function qe(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.parent.context.ngIf.logo)})}function Be(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,11,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,10,"ion-toolbar",[],null,null,null,O.Bb,O.N)),r.pb(2,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,5,"ion-avatar",[["slot","end"]],null,null,null,O.P,O.b)),r.pb(4,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,Ue)),r.pb(6,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,qe)),r.pb(8,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(9,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(10,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(11,0,["",""]))],function(t,e){t(e,6,0,!e.context.ngIf.logo),t(e,8,0,e.context.ngIf.logo)},function(t,e){t(e,11,0,e.context.ngIf.name)})}function ze(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"a",[["class","media"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.navigateToMedia(t.parent.context.$implicit.media)&&r),r},null,null)),(t()(),r.qb(1,0,null,null,2,"ion-thumbnail",[],null,null,null,O.yb,O.K)),r.pb(2,49152,null,0,E.zb,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,3,0,e.parent.context.$implicit.media)})}function He(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"div",[["class","mittente"]],null,null,null,null,null)),(t()(),r.Hb(1,null,["",""]))],null,function(t,e){t(e,1,0,e.parent.parent.context.$implicit.displayName)})}function Ge(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"span",[["class","speech-bubble"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openDetail(t.parent.context.$implicit)&&r),r},null,null)),(t()(),r.hb(16777216,null,null,1,null,He)),r.pb(2,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.Hb(3,null,[" "," "]))],function(t,e){t(e,2,0,"ToUser"===e.parent.context.$implicit.type)},function(t,e){t(e,3,0,e.parent.context.$implicit.text)})}function $e(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,9,"div",[["class","messages"]],[[2,"other",null],[2,"mine",null]],null,null,null,null)),(t()(),r.qb(1,0,null,null,8,"div",[["class","message"]],null,null,null,null,null)),(t()(),r.hb(16777216,null,null,2,null,ze)),r.pb(3,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.qb(5,0,null,null,2,"div",[["class","time"]],null,null,null,null,null)),(t()(),r.Hb(6,null,[" "," "])),r.Db(7,2),(t()(),r.hb(16777216,null,null,1,null,Ge)),r.pb(9,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.context.$implicit.media&&!r.Ib(e,3,0,r.Ab(e,4).transform(e.context.$implicit.$media))),t(e,9,0,e.context.$implicit.text)},function(t,e){t(e,0,0,"ToUser"===e.context.$implicit.type,"ToAdmin"===e.context.$implicit.type);var n=r.Ib(e,6,0,t(e,7,0,r.Ab(e.parent.parent,0),1e3*e.context.$implicit.creationDate.seconds,"d MMM, h:mm"));t(e,6,0,n)})}function Ke(t){return r.Jb(0,[(t()(),r.qb(0,0,[["scrollme",1]],null,2,"div",[["class","scrollme messagges-wrapper"]],null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,$e)),r.pb(2,278528,null,0,x.j,[r.P,r.L,r.s],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.messages)},null)}function We(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,27,"ion-footer",[],null,
1null,null,O.Z,O.l)),r.pb(1,49152,null,0,E.z,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,25,"ion-item",[["color","light"]],null,null,null,O.hb,O.t)),r.pb(3,49152,null,0,E.H,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(4,0,null,0,3,"ion-button",[["color","dark"],["fill","clear"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openEmoji()&&r),r},O.S,O.e)),r.pb(5,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],fill:[1,"fill"]},null),(t()(),r.qb(6,0,null,0,1,"ion-icon",[["name","happy"],["slot","icon-only"]],null,null,null,O.cb,O.o)),r.pb(7,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(8,0,null,0,6,"ion-input",[["name","message"],["placeholder","Scrivi un messaggio"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keyup"],[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0,o=t.component;return"ionBlur"===e&&(i=!1!==r.Ab(t,9)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,9)._handleInputEvent(n.target)&&i),"keyup"===e&&(i=!1!==o.onKey(n)&&i),"ngModelChange"===e&&(i=!1!==(o.message=n)&&i),i},O.gb,O.s)),r.pb(9,16384,null,0,E.Pb,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Pb]),r.pb(11,671744,null,0,A.m,[[8,null],[8,null],[8,null],[6,A.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r.Eb(2048,null,A.j,null,[A.m]),r.pb(13,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(14,49152,[[2,4],["textbox",4]],0,E.G,[r.h,r.k,r.z],{name:[0,"name"],placeholder:[1,"placeholder"],type:[2,"type"]},null),(t()(),r.qb(15,0,null,0,12,"ion-buttons",[],null,null,null,O.T,O.f)),r.pb(16,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(17,0,null,0,6,"ion-button",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,18).onClick()&&i),"click"===e&&(i=!1!==r.Ab(t,21).onClick(n)&&i),i},O.S,O.e)),r.pb(18,16384,null,0,C.o,[C.n,C.a,[8,null],r.D,r.k],{routerLink:[0,"routerLink"]},null),r.Bb(19,4),r.pb(20,49152,null,0,E.k,[r.h,r.k,r.z],null,null),r.pb(21,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),(t()(),r.qb(22,0,null,0,1,"ion-icon",[["name","attach"],["slot","icon-only"]],null,null,null,O.cb,O.o)),r.pb(23,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(24,0,null,0,3,"ion-button",[["color","primary"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.sendMessage()&&r),r},O.S,O.e)),r.pb(25,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(26,0,null,0,1,"ion-icon",[["name","md-send"],["slot","icon-only"]],null,null,null,O.cb,O.o)),r.pb(27,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,3,0,"light"),t(e,5,0,"dark","clear"),t(e,7,0,"happy"),t(e,11,0,"message",n.message),t(e,14,0,"message","Scrivi un messaggio","text");var r=t(e,19,0,"/",n.destinatario.domainName,"upload",e.context.ngIf.uid);t(e,18,0,r),t(e,21,0),t(e,23,0,"attach"),t(e,25,0,"primary"),t(e,27,0,"md-send")},function(t,e){t(e,8,0,r.Ab(e,13).ngClassUntouched,r.Ab(e,13).ngClassTouched,r.Ab(e,13).ngClassPristine,r.Ab(e,13).ngClassDirty,r.Ab(e,13).ngClassValid,r.Ab(e,13).ngClassInvalid,r.Ab(e,13).ngClassPending)})}function Qe(t){return r.Jb(0,[r.Cb(0,x.e,[r.u]),r.Fb(402653184,1,{content:0}),r.Fb(671088640,2,{textbox:0}),(t()(),r.qb(3,0,null,null,4,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(4,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,2,null,Be)),r.pb(6,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.qb(8,0,null,null,9,"ion-content",[],null,
1null,null,O.Y,O.k)),r.pb(9,49152,[[1,4]],0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,7,"div",[["class","centered-box"]],null,null,null,null,null)),(t()(),r.qb(11,0,null,null,3,"ion-infinite-scroll",[["position","top"]],null,[[null,"ionInfinite"]],function(t,e,n){var r=!0;return"ionInfinite"===e&&(r=!1!==t.component.loadData(n)&&r),r},O.fb,O.q)),r.pb(12,49152,null,0,E.E,[r.h,r.k,r.z],{disabled:[0,"disabled"],position:[1,"position"]},null),(t()(),r.qb(13,0,null,0,1,"ion-infinite-scroll-content",[["loadingSpinner","bubbles"],["loadingText","Loading more data..."]],null,null,null,O.eb,O.r)),r.pb(14,49152,null,0,E.F,[r.h,r.k,r.z],{loadingSpinner:[0,"loadingSpinner"],loadingText:[1,"loadingText"]},null),(t()(),r.hb(16777216,null,null,2,null,Ke)),r.pb(16,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h]),(t()(),r.hb(16777216,null,null,2,null,We)),r.pb(19,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),r.Cb(131072,x.b,[r.h])],function(t,e){var n=e.component;t(e,6,0,r.Ib(e,6,0,r.Ab(e,7).transform(n.destinatario$))),t(e,12,0,n.disabledInfiniteScroll,"top"),t(e,14,0,"bubbles","Loading more data..."),t(e,16,0,r.Ib(e,16,0,r.Ab(e,17).transform(n.destinatario$))),t(e,19,0,r.Ib(e,19,0,r.Ab(e,20).transform(n.destinatario$)))},null)}function Je(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-chat",[],null,
1null,null,Qe,Ve)),r.pb(1,245760,null,0,Fe.a,[E.Hb,Ht.a,Pt.a,E.Gb,C.a,wt.a],null,null)],function(t,e){t(e,1,0)},null)}var Xe=r.mb("app-chat",Fe.a,Je,{},{},[]),Ye=r.ob({encapsulation:0,styles:[[""]],data:{}});function Ze(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),r.qb(1,0,null,null,1,"ion-img",[],null,null,null,O.db,O.p)),r.pb(2,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null)],function(t,e){t(e,2,0,e.component.media)},null)}function tn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,18,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,16,"ion-toolbar",[],null,null,null,O.Bb,O.N)),r.pb(3,49152,null,0,E.Cb,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,5,"ion-buttons",[["slot","start"]],null,null,null,O.T,O.f)),r.pb(5,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss()&&r),r},O.S,O.e)),r.pb(7,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(8,0,null,0,1,"ion-icon",[["name","close"]],null,null,null,O.cb,O.o)),r.pb(9,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(10,0,null,0,2,"ion-title",[],null,null,null,O.zb,O.L)),r.pb(11,49152,null,0,E.Ab,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Media"])),(t()(),r.qb(13,0,null,0,5,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(14,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(15,0,null,0,3,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.downloadFile()&&r),r},O.S,O.e)),r.pb(16,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(17,0,null,0,1,"ion-icon",[["name","md-download"]],null,null,null,O.cb,O.o)),r.pb(18,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(19,0,null,null,4,"ion-content",[["padding",""]],null,null,null,O.Y,O.k)),r.pb(20,49152,null,0,E.u,[r.h,r.k,r.z],null,null),r.pb(21,16384,null,0,E.d,[r.k],null,null),(t()(),r.hb(16777216,null,0,1,null,Ze)),r.pb(23,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,9,0,"close"),t(e,18,0,"md-download"),t(e,23,0,n.media)},null)}function en(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-media-detail",[],null,null,null,tn,Ye)),r.pb(1,114688,null,0,ae.a,[E.Hb,E.Jb,E.Gb,C.a],null,null)],function(t,e){t(e,1,0)},null)}var nn=r.mb("app-media-detail",ae.a,en,{},{},[]),rn=n("C9U0"),on=n("ZYjt"),an=n("yGlH"),sn=r.ob({encapsulation:0,styles:[[""]],data:{}});function un(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"iframe",[["frameborder","0"],["height","100%"],["width","100%"]],[[8,"src",5]],null,null,null,null)),r.Db(1,1)],null,function(t,e){var n=e.component,i=r.Ib(e,0,0,t(e,1,0,r.Ab(e.parent,0),n.registrationPage));t(e,0,0,i)})}function ln(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"div",[["class","ion-padding"]],null,null,null,null,null)),(t()(),r.qb(1,0,null,null,2,"ion-text",[["color","danger"]],null,null,null,O.xb,O.J)),r.pb(2,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,[" Qualcosa \xe8 andato storto! Provare a ricaricare l'app o rifare il login. "]))],function(t,e){t(e,2,0,"danger")},null)}function cn(t){return r.Jb(0,[r.Cb(0,rn.a,[on.b]),(t()(),r.qb(1,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(2,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(3,0,null,0,1,"app-toolbar",[],null,
1null,null,Ot.b,Ot.a)),r.pb(4,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{color:[0,"color"],menu:[1,"menu"],title:[2,"title"]},null),(t()(),r.qb(5,0,null,null,5,"ion-content",[["color","dark"]],null,null,null,O.Y,O.k)),r.pb(6,49152,null,0,E.u,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.hb(16777216,null,0,1,null,un)),r.pb(8,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,ln)),r.pb(10,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,"dark",!0,"Registrazione"),t(e,6,0,"dark"),t(e,8,0,n.isAuthenticated),t(e,10,0,!n.isAuthenticated)},null)}function hn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-registration",[],null,null,null,cn,sn)),r.pb(1,114688,null,0,an.a,[C.a,E.Kb],null,null)],function(t,e){t(e,1,0)},null)}var fn=r.mb("app-registration",an.a,hn,{},{},[]),dn=n("nD9t"),pn=n("DRYZ"),mn=r.ob({encapsulation:0,styles:[["ion-avatar[_ngcontent-%COMP%]{width:200px;height:200px}.image-center[_ngcontent-%COMP%]{margin:0 auto}@media only screen and (min-width:700px){.margin-top-responsive[_ngcontent-%COMP%]{margin-top:200px}}"]],data:{}});function gn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-avatar",[["class","image-center"]],null,null,null,O.P,O.b)),r.pb(1,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,0,"img",[["src","/assets/images/profile/user.svg"]],null,null,null,null,null))],null,null)}function vn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"ion-avatar",[["class","image-center"]],null,null,null,O.P,O.b)),r.pb(1,49152,null,0,E.f,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,2,0,e.component.user.photoURL)})}function yn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,gn)),r.pb(2,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,null,1,null,vn)),r.pb(4,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,!n.user.photoURL),t(e,4,0,n.user.photoURL)},null)}function bn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,1,"app-toolbar",[],null,
1null,null,Ot.b,Ot.a)),r.pb(3,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{title:[0,"title"]},null),(t()(),r.qb(4,0,null,null,40,"ion-content",[["class","ion-padding"]],null,null,null,O.Y,O.k)),r.pb(5,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,38,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(7,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(8,0,null,0,36,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(9,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(10,0,null,0,12,"ion-col",[["class","right-border"]],null,null,null,O.X,O.j)),r.pb(11,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(12,0,null,0,3,"ion-text",[["color","medium"]],null,null,null,O.xb,O.J)),r.pb(13,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(14,0,null,0,1,"small",[],null,null,null,null,null)),(t()(),r.Hb(15,null,["Versione: ",""])),(t()(),r.hb(16777216,null,0,1,null,yn)),r.pb(17,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(18,0,null,0,4,"ion-item",[["class","ion-text-center"],["lines","none"]],null,null,null,O.hb,O.t)),r.pb(19,49152,null,0,E.H,[r.h,r.k,r.z],{lines:[0,"lines"]},null),(t()(),r.qb(20,0,null,0,2,"ion-label",[["color","medium"]],null,null,null,O.ib,O.u)),r.pb(21,49152,null,0,E.N,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(22,0,[""," "])),(t()(),r.qb(23,0,null,0,21,"ion-col",[],null,null,null,O.X,O.j)),r.pb(24,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(25,0,null,0,13,"ion-list",[],null,null,null,O.kb,O.v)),r.pb(26,49152,null,0,E.O,[r.h,r.k,r.z],null,null),(t()(),r.qb(27,0,null,0,11,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(28,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(29,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(30,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Notifiche "])),(t()(),r.qb(32,0,null,0,6,"ion-toggle",[["color","secondary"],["item-right",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0,o=t.component;return"ionBlur"===e&&(i=!1!==r.Ab(t,33)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,33)._handleIonChange(n.target)&&i),"ngModelChange"===e&&(i=!1!==(o.notificationStatus=n)&&i),"ngModelChange"===e&&(i=!1!==o.onChangeNotificationStatus()&&i),i},O.Ab,O.M)),r.pb(33,16384,null,0,E.b,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.b]),r.pb(35,671744,null,0,A.m,[[8,null],[8,null],[8,null],[6,A.i]],{model:[0,"model"]},{update:"ngModelChange"}),r.Eb(2048,null,A.j,null,[A.m]),r.pb(37,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(38,49152,null,0,E.Bb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.qb(39,0,null,0,5,"div",[["class","ion-text-center margin-top-responsive"]],null,null,null,null,null)),(t()(),r.qb(40,0,null,null,4,"ion-button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.logout()&&r),r},O.S,O.e)),r.pb(41,49152,null,0,E.k,[r.h,r.k,r.z],null,null),(t()(),r.qb(42,0,null,0,2,"ion-label",[],null,null,null,O.ib,O.u)),r.pb(43,49152,null,0,E.N,[r.h,r.k,r.z],null,null),(t()(),r.Hb(-1,0,["Sign Out"]))],function(t,e){var n=e.component;t(e,3,0,"Impostazioni"),t(e,13,0,"medium"),t(e,17,0,n.user),t(e,19,0,"none"),t(e,21,0,"medium"),t(e,35,0,n.notificationStatus),t(e,38,0,"secondary")},function(t,e){var n=e.component;t(e,15,0,n.version),t(e,22,0,n.user.displayName),t(e,32,0,r.Ab(e,37).ngClassUntouched,r.Ab(e,37).ngClassTouched,r.Ab(e,37).ngClassPristine,r.Ab(e,37).ngClassDirty,r.Ab(e,37).ngClassValid,r.Ab(e,37).ngClassInvalid,r.Ab(e,37).ngClassPending)})}function wn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-settings",[],null,null,null,bn,mn)),r.pb(1,114688,null,0,dn.a,[bt,C.n,C.a,Ht.a,pn.a,zt.a],null,null)],function(t,e){t(e,1,0)},null)}var _n=r.mb("app-settings",dn.a,wn,{},{},[]),Sn=n("hJJ8"),En=n("n90K"),Cn=r.ob({encapsulation:0,styles:[[".fileUpload[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin:10px}.fileUpload[_ngcontent-%COMP%] input.upload[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}"]],data:{}});function In(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.fileAsDataURL)})}function kn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,0,"img",[["height","40px"],["src","/assets/images/pdf-icon.png"]],null,null,null,null,null))],null,null)}function Tn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,6,"div",[],null,
1null,null,null,null)),(t()(),r.qb(1,0,null,null,5,"ion-thumbnail",[],null,null,null,O.yb,O.K)),r.pb(2,49152,null,0,E.zb,[r.h,r.k,r.z],null,null),(t()(),r.hb(16777216,null,0,1,null,In)),r.pb(4,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.hb(16777216,null,0,1,null,kn)),r.pb(6,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,"image/jpg"===n.contentType||"image/png"===n.contentType||"image/jpeg"===n.contentType),t(e,6,0,"application/pdf"===n.contentType)},null)}function On(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,1,"app-toolbar",[],null,null,null,Ot.b,Ot.a)),r.pb(3,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{back:[0,"back"],title:[1,"title"]},null),(t()(),r.qb(4,0,null,null,35,"ion-content",[["class","ion-padding"]],null,null,null,O.Y,O.k)),r.pb(5,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,33,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==r.Ab(t,8).onSubmit(n)&&i),"reset"===e&&(i=!1!==r.Ab(t,8).onReset()&&i),i},null,null)),r.pb(7,16384,null,0,A.q,[],null,null),r.pb(8,540672,null,0,A.f,[[8,null],[8,null]],{form:[0,"form"]},null),r.Eb(2048,null,A.b,null,[A.f]),r.pb(10,16384,null,0,A.l,[[4,A.b]],null,null),(t()(),r.hb(16777216,null,null,1,null,Tn)),r.pb(12,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null),(t()(),r.qb(13,0,null,null,26,"ion-item",[],null,null,null,O.hb,O.t)),r.pb(14,49152,null,0,E.H,[r.h,r.k,r.z],null,null),(t()(),r.qb(15,0,null,0,2,"ion-label",[["position","floating"]],null,null,null,O.ib,O.u)),r.pb(16,49152,null,0,E.N,[r.h,r.k,r.z],{position:[0,"position"]},null),(t()(),r.Hb(-1,0,["Aggiungi un commento"])),(t()(),r.qb(18,0,null,0,6,"ion-input",[["formControlName","text"],["type","textarea"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ionBlur"],[null,"ionChange"]],function(t,e,n){var i=!0;return"ionBlur"===e&&(i=!1!==r.Ab(t,19)._handleBlurEvent(n.target)&&i),"ionChange"===e&&(i=!1!==r.Ab(t,19)._handleInputEvent(n.target)&&i),i},O.gb,O.s)),r.pb(19,16384,null,0,E.Pb,[r.k],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[E.Pb]),r.pb(21,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(23,16384,null,0,A.k,[[4,A.j]],null,null),r.pb(24,49152,null,0,E.G,[r.h,r.k,r.z],{type:[0,"type"]},null),(t()(),r.qb(25,0,null,0,14,"ion-buttons",[["slot","end"]],null,null,null,O.T,O.f)),r.pb(26,49152,null,0,E.l,[r.h,r.k,r.z],null,null),(t()(),r.qb(27,0,null,0,3,"ion-button",[],null,[[null,"click"],[null,"keyup"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.sendAttachment()&&r),"keyup"===e&&(r=!1!==i.onKey(n)&&r),r},O.S,O.e)),r.pb(28,49152,null,0,E.k,[r.h,r.k,r.z],{disabled:[0,"disabled"]},null),(t()(),r.qb(29,0,null,0,1,"ion-icon",[["name","md-send"]],null,null,null,O.cb,O.o)),r.pb(30,49152,null,0,E.C,[r.h,r.k,r.z],{name:[0,"name"]},null),(t()(),r.qb(31,0,null,0,8,"div",[["class","fileUpload"]],null,null,null,null,null)),(t()(),r.qb(32,0,null,null,1,"ion-icon",[["color","primary"],["name","attach"]],null,null,null,O.cb,O.o)),r.pb(33,49152,null,0,E.C,[r.h,r.k,r.z],{color:[0,"color"],name:[1,"name"]},null),(t()(),r.qb(34,0,null,null,5,"input",[["accept",".png,.jpg,.pdf"],["class","upload"],["formControlName","file"],["type","file"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var i=!0,o=t.component;return"input"===e&&(i=!1!==r.Ab(t,35)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==r.Ab(t,35).onTouched()&&i),"compositionstart"===e&&(i=!1!==r.Ab(t,35)._compositionStart()&&i),"compositionend"===e&&(i=!1!==r.Ab(t,35)._compositionEnd(n.target.value)&&i),"change"===e&&(i=!1!==o.handleInputChange(n)&&i),i},null,null)),r.pb(35,16384,null,0,A.c,[r.D,r.k,[2,A.a]],null,null),r.Eb(1024,null,A.i,function(t){return[t]},[A.c]),r.pb(37,671744,null,0,A.e,[[3,A.b],[8,null],[8,null],[6,A.i],[2,A.s]],{name:[0,"name"]},null),r.Eb(2048,null,A.j,null,[A.e]),r.pb(39,16384,null,0,A.k,[[4,A.j]],null,null)],function(t,e){var n=e.component;t(e,3,0,!0,"Aggiungi Media"),t(e,8,0,n.validations_form),t(e,12,0,n.fileAsDataURL),t(e,16,0,"floating"),t(e,21,0,"text"),t(e,24,0,"textarea"),t(e,28,0,n.validations_form.invali
1d),t(e,30,0,"md-send"),t(e,33,0,"primary","attach"),t(e,37,0,"file")},function(t,e){t(e,6,0,r.Ab(e,10).ngClassUntouched,r.Ab(e,10).ngClassTouched,r.Ab(e,10).ngClassPristine,r.Ab(e,10).ngClassDirty,r.Ab(e,10).ngClassValid,r.Ab(e,10).ngClassInvalid,r.Ab(e,10).ngClassPending),t(e,18,0,r.Ab(e,23).ngClassUntouched,r.Ab(e,23).ngClassTouched,r.Ab(e,23).ngClassPristine,r.Ab(e,23).ngClassDirty,r.Ab(e,23).ngClassValid,r.Ab(e,23).ngClassInvalid,r.Ab(e,23).ngClassPending),t(e,34,0,r.Ab(e,39).ngClassUntouched,r.Ab(e,39).ngClassTouched,r.Ab(e,39).ngClassPristine,r.Ab(e,39).ngClassDirty,r.Ab(e,39).ngClassValid,r.Ab(e,39).ngClassInvalid,r.Ab(e,39).ngClassPending)})}function An(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-upload",[],null,null,null,On,Cn)),r.pb(1,114688,null,0,Sn.a,[wt.a,C.a,A.d,E.Gb,Ht.a,x.h,En.a,Pt.a],null,null)],function(t,e){t(e,1,0)},null)}var xn=r.mb("app-upload",Sn.a,An,{},{},[]),Dn=n("dIU2"),Pn=r.ob({encapsulation:0,styles:[[".sports-background[_ngcontent-%COMP%]{background:url(/assets/images/gioco-background.jpg) center/cover;height:100%;width:100%;padding-top:2em;padding-bottom:2em;color:#fff}"]],data:{}});function Nn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,51,"ion-content",[["class","ion-text-center"]],null,null,null,O.Y,O.k)),r.pb(1,49152,null,0,E.u,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,49,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(3,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(4,0,null,0,47,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(5,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(6,0,null,0,16,"ion-col",[["class","right-border"],["size","12"],["size-md","6"]],null,null,null,O.X,O.j)),r.pb(7,49152,null,0,E.t,[r.h,r.k,r.z],{size:[0,"size"]},null),(t()(),r.qb(8,0,null,0,14,"div",[["class","sports-background"]],null,null,null,null,null)),(t()(),r.qb(9,0,null,null,0,"img",[["src","/assets/images/scommettendo.png"]],null,null,null,null,null)),(t()(),r.qb(10,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Se non sei registrato"])),(t()(),r.qb(12,0,null,null,5,"ion-button",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.Ab(t,14).onClick()&&i),"click"===e&&(i=!1!==r.Ab(t,16).onClick(n)&&i),i},O.S,O.e)),r.pb(13,49152,null,0,E.k,[r.h,r.k,r.z],null,null),r.pb(14,16384,null,0,C.o,[C.n,C.a,[8,null],r.D,r.k],{routerLink:[0,"routerLink"]},null),r.Bb(15,3),r.pb(16,737280,null,0,E.Nb,[x.i,E.Ib,r.k,C.n,[2,C.o]],null,null),(t()(),r.Hb(-1,0,["Apri un conto"])),(t()(),r.qb(18,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,["Se sei gi\xe0 registrato"])),(t()(),r.qb(20,0,null,null,2,"ion-button",[["color","light"],["href","https://www.scommettendo.it"],["target","_new"]],null,null,null,O.S,O.e)),r.pb(21,49152,null,0,E.k,[r.h,r.k,r.z],{color:[0,"color"],href:[1,"href"],target:[2,"target"]},null),(t()(),r.Hb(-1,0,["Login"])),(t()(),r.qb(23,0,null,0,28,"ion-col",[["size","12"],["size-md","6"]],null,null,null,O.X,O.j)),r.pb(24,49152,null,0,E.t,[r.h,r.k,r.z],{size:[0,"size"]},null),(t()(),r.qb(25,0,null,0,19,"ion-grid",[],null,null,null,O.ab,O.m)),r.pb(26,49152,null,0,E.A,[r.h,r.k,r.z],null,null),(t()(),r.qb(27,0,null,0,17,"ion-row",[],null,null,null,O.ob,O.A)),r.pb(28,49152,null,0,E.jb,[r.h,r.k,r.z],null,null),(t()(),r.qb(29,0,null,0,7,"ion-col",[],null,null,null,O.X,O.j)),r.pb(30,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(31,0,null,0,5,"a",[["class","box"],["href","https://ls.sir.sportradar.com/scommettendo"],["target","_new"]],null,null,null,null,null)),(t()(),r.qb(32,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/livescore.jpg"]],null,null,null,O.db,O.p)),r.pb(33,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(34,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(35,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["LIVESCORE"])),(t()(),r.qb(37,0,null,0,7,"ion-col",[],null,null,null,O.X,O.j)),r.pb(38,49152,null,0,E.t,[r.h,r.k,r.z],null,null),(t()(),r.qb(39,0,null,0,5,"a",[["class","box"],["href","https://s5.sir.sportradar.com/scommettendo/it"],["target","_new"]],null,null,null,null,null)),(t()(),r.qb(40,0,null,null,1,"ion-img",[["src","/assets/images/home-page-icons/statistics.jpg"]],null,null,null,O.db,O.p)),r.pb(41,49152,null,0,E.D,[r.h,r.k,r.z],{src:[0,"src"]},null),(t()(),r.qb(42,0,null,null,2,"ion-text",[["color","primary"]],null,null,null,O.xb,O.J)),r.pb(43,49152,null,0,E.xb,[r.h,r.k,r.z],{color:[0,"color"]},null),(t()(),r.Hb(-1,0,["STATISTICHE"])),(t()(),r.qb(45,0,null,0,6,"div",[["class","ion-padding ion-text-left"]],null,null,null,null,null)),(t()(),r.qb(46,0,null,null,5,"ion-text",[],null,
1null,null,O.xb,O.J)),r.pb(47,49152,null,0,E.xb,[r.h,r.k,r.z],null,null),(t()(),r.qb(48,0,null,0,3,"small",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,[" Scopri il lato divertente di FSP APP da questa pagina avrai accesso ad un portale che ti metter\xe0 in contatto con un vasto palinsesto giochi, ti baster\xe0 accedere e registrarti per iniziare a divertirti. "])),(t()(),r.qb(50,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),r.Hb(-1,null,[" Inoltre sempre tramite FSP APP potrai accedere ai servizi di LIVESCORE e STATISTICHE, risultati in tempo reale e tutte le pi\xf9 interessanti notizie sui match clou della settimana."]))],function(t,e){var n=e.component;t(e,7,0,"12");var r=t(e,15,0,"",n.pvr.domainName,"registration");t(e,14,0,r),t(e,16,0),t(e,21,0,"light","https://www.scommettendo.it","_new"),t(e,24,0,"12"),t(e,33,0,"/assets/images/home-page-icons/livescore.jpg"),t(e,35,0,"primary"),t(e,41,0,"/assets/images/home-page-icons/statistics.jpg"),t(e,43,0,"primary")},null)}function jn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-header",[],null,null,null,O.bb,O.n)),r.pb(1,49152,null,0,E.B,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,0,null,0,1,"app-toolbar",[],null,
1null,null,Ot.b,Ot.a)),r.pb(3,114688,null,0,At.a,[E.Kb,wt.a,xt.a],{back:[0,"back"],title:[1,"title"],backUrl:[2,"backUrl"]},null),(t()(),r.hb(16777216,null,null,1,null,Nn)),r.pb(5,16384,null,0,x.k,[r.P,r.L],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,!1,"Gioco","home"),t(e,5,0,n.pvr)},null)}function Rn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-sportsbook",[],null,null,null,jn,Pn)),r.pb(1,114688,null,0,Dn.a,[C.a],null,null)],function(t,e){t(e,1,0)},null)}var Mn=r.mb("app-sportsbook",Dn.a,Rn,{},{},[]),Ln=r.ob({encapsulation:2,styles:[],data:{}});function Fn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,3,"ion-app",[],null,null,null,O.O,O.a)),r.pb(1,49152,null,0,E.e,[r.h,r.k,r.z],null,null),(t()(),r.qb(2,16777216,null,0,1,"ion-router-outlet",[],null,null,null,null,null)),r.pb(3,212992,null,0,E.ib,[C.b,r.P,r.j,[8,null],[8,null],E.c,E.Ib,x.h,r.k,C.n,r.z,C.a,[3,E.ib]],null,null)],function(t,e){t(e,3,0)},null)}function Vn(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"app-root",[],null,null,null,Fn,Ln)),r.pb(1,49152,null,0,k,[E.Kb,C.n,I],null,null)],null,null)}var Un=r.mb("app-root",k,Vn,{},{},[]),qn=n("5Aeh"),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setUrl=function(t){this._url=t},e.prototype.getUrl=function(){return this._url},e.prototype.activateFreePlan=function(t){return null},e}(nt.a),zn=n("xZjr"),Hn=function(){return function(){}}(),Gn=n("t/Na"),$n=n("iw74"),Kn=n("MKys"),Wn=n("VRER"),Qn=n("B+2a"),Jn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getUrl=function(){return"products"},e}return Object(s.__extends)(e,t),e}(nt.a),Xn=n("XlPw"),Yn=n("mZXl"),Zn=n("HJBe"),tr=n("dEwP"),er=n("9Z1F"),nr=function(){return function(t,e,r,i){var o=this,a=new vt.a(i),s=Object(pt.a)(Promise.resolve().then(n.bind(null,"dB9c")));this.messaging=s.pipe(Object(Yn.a)(a.outsideAngular),Object(oe.a)(function(){return Object(yt.e)(t,i,e)}),Object(oe.a)(function(t){return t.messaging()})),this.requestPermission=Object(x.q)(r)?Object(Xn.a)("Not available on server platform."):this.messaging.pipe(Object(Yn.a)(a.outsideAngular),Object(gt.a)(function(t){return t.requestPermission()})),this.getToken=this.messaging.pipe(Object(Yn.a)(a.outsideAngular),Object(gt.a)(function(t){return t.getToken()}),Object(Zn.a)(null));var u=this.messaging.pipe(Object(Yn.a)(a.outsideAngular),Object(gt.a)(function(t){return new dt.a(t.onTokenRefresh.bind(t)).pipe(Object(gt.a)(function(){return t.getToken()}))}));this.tokenChanges=this.getToken.pipe(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(tr.a.apply(void 0,[e].concat(t)))}}(u)),this.messages=this.messaging.pipe(Object(Yn.a)(a.outsideAngular),Object(gt.a)(function(t){return new dt.a(t.onMessage.bind(t))})),this.requestToken=this.requestPermission.pipe(Object(er.a)(function(){return Object(mt.a)(null)}),Object(ie.a)(function(){return o.tokenChanges})),this.deleteToken=function(t){return o.messaging.pipe(Object(Yn.a)(a.outsideAngular),Object(gt.a)(function(e){return e.deleteToken(t)}),Object(Zn.a)(!1))}}}(),rr=function(){return function(){}}(),ir=new r.p("angularfire2.functions.region"),or=new r.p("angularfire2.functions.origin"),ar=function(){function t(t,e,n,r,i,o){this.schedulers=new vt.a(r),this.functions=r.runOutsideAngular(function(){return Object(yt.e)(t,r,e).functions(i||void 0)}),o&&this.functions.useFunctionsEmulator(o)}return t.prototype.httpsCallable=function(t){var e=this,n=this.functions.httpsCallable(t);return function(t){return Object(pt.a)(n(t)).pipe(Object(Yn.a)(e.schedulers.outsideAngular),Object(oe.a)(function(t){return t.data}))}},t}(),sr=(n("iTTW"),function(){return function(){}}()),ur=n("a3Cf"),lr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.overlaysWebView=function(t){return Object(ur.cordova)(this,"overlaysWebView",{sync:!0},arguments)},e.prototype.styleDefault=function(){return Object(ur.cordova)(this,"styleDefault",{sync:!0},arguments)},e.prototype.styleLightContent=function(){return Object(ur.cordova)(this,"styleLightContent",{sync:!0},arguments)},e.prototype.styleBlackTranslucent=function(){return Object(ur.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},e.prototype.styleBlackOpaque=function(){return Object(ur.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},e.prototype.backgroundColorByName=function(t){return Object(ur.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},e.prototype.backgroundColorByHexString=function(t){return Object(ur.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},e.prototype.hide=function(){return Object(ur.cordova)(this,"hide",{sync:!0},arguments)},e.prototype.show=function(){return Object(ur.cordova)(this,"show",{sync:!0},arguments)}
1,Object.defineProperty(e.prototype,"isVisible",{get:function(){return Object(ur.cordovaPropertyGet)(this,"isVisible")},set:function(t){Object(ur.cordovaPropertySet)(this,"isVisible",t)},enumerable:!0,configurable:!0}),e.pluginName="StatusBar",e.plugin="cordova-plugin-statusbar",e.pluginRef="StatusBar",e.repo="https://github.com/apache/cordova-plugin-statusbar",e.platforms=["Android","iOS","Windows"],e}(ur.IonicNativePlugin),cr=function(){function t(){}return t.prototype.init=function(t){try{return Promise.resolve(FB.init(t))}catch(e){return Promise.reject(e)}},t.prototype.api=function(t,e,n){return void 0===e&&(e="get"),void 0===n&&(n={}),new Promise(function(r,i){try{FB.api(t,e,n,function(t){t?t.error?i(t.error):r(t):i()})}catch(o){i(o)}})},t.prototype.ui=function(t){return new Promise(function(e,n){try{FB.ui(t,function(t){t?t.error?n(t.error):e(t):n()})}catch(r){n(r)}})},t.prototype.getLoginStatus=function(){return new Promise(function(t,e){try{FB.getLoginStatus(function(n){n?t(n):e()})}catch(n){e(n)}})},t.prototype.login=function(t){return new Promise(function(e,n){try{FB.login(function(t){t.authResponse?e(t):n()},t)}catch(r){n(r)}})},t.prototype.logout=function(){return new Promise(function(t,e){try{FB.logout(function(e){t(e)})}catch(n){e(n)}})},t.prototype.getAuthResponse=function(){try{return FB.getAuthResponse()}catch(t){console.error("ng2-facebook-sdk: ",t)}},t}(),hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.show=function(){return Object(ur.cordova)(this,"show",{sync:!0},arguments)},e.prototype.hide=function(){return Object(ur.cordova)(this,"hide",{sync:!0},arguments)},e.pluginName="SplashScreen",e.plugin="cordova-plugin-splashscreen",e.pluginRef="navigator.splashscreen",e.repo="https://github.com/apache/cordova-plugin-splashscreen",e.platforms=["Amazon Fire OS","Android","iOS","Windows"],e}(ur.IonicNativePlugin),fr=n("Vta1"),dr=n("vY5A"),pr=n("99Un"),mr=n("qmPg"),gr=function(){return function(){}}(),vr=n("zzB2"),yr=function(){return function(){}}(),br=function(){return function(){}}(),wr=function(){return function(){}}(),_r=function(){return function(){}}(),Sr=function(){return function(){}}(),Er=n("0s59"),Cr=function(){return function(){}}(),Ir=n("Tzai"),kr=function(){return function(){}}(),Tr=n("0PDZ"),Or=function(){return function(){}}(),Ar=function(){return function(){}}(),xr=function(){return function(){}}(),Dr=function(){return function(){}}(),Pr=function(){return function(){}}(),Nr=function(){return function(){}}(),jr=function(){return function(){}}(),Rr=function(){return function(){}}(),Mr=function(){return function(){}}(),Lr=function(){return function(){}}();function Fr(t,e){var n=function(t){return"data-"+t.toString().replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()};Object.defineProperty(t,e,{set:function(t){t=t.toString(),this.setAttribute(n(e),t)},get:function(){return this.getAttribute(n(e))},enumerable:!0})}function Vr(t,e){return{enumerable:!0,value:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._instance?this._instance[e].apply(this._instance,t):(console.warn("ng2-facebook-sdk: tried calling instance method before component is ready."),null)}}}var Ur=function(){function t(t,e,n){this.el=t,this.rnd=e,this.fbClass=n,this.nativeElement=this.el.nativeElement,this.rnd.setElementClass(this.nativeElement,this.fbClass,!0)}return t.prototype.setAttribute=function(t,e){t&&e&&this.rnd.setElementAttribute(this.nativeElement,t,e)},t.prototype.getAttribute=function(t){if(t)return this.nativeElement.getAttribute(t)},t}(),qr=function(t){function e(e,n){return t.call(this,e,n,"fb-comment-embed")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],qr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],qr.prototype,"width",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],qr.prototype,"includeParent",void 0);var Br=function(t){function e(e,n){var r=t.call(this,e,n,"fb-comments")||this;return r.href=window.location.href,r}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Br.prototype,"colorscheme",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Br.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Br.prototype,"mobile",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Number)],Br.prototype,"numposts",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Br.prototype,"orderBy",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Br.prototype,"width",void 0);var zr=function(t){function e(e,n){return t.call(this,e,n,"fb-follow")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"colorScheme",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],zr.prototype,"kid
1DirectedSite",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"layout",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"showFaces",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"size",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],zr.prototype,"width",void 0);var Hr=function(t){function e(e,n){var r=t.call(this,e,n,"fb-like")||this;return r.href=window.location.href,r}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"action",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"colorScheme",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Hr.prototype,"kidDirectedSite",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"layout",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"ref",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Hr.prototype,"share",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Hr.prototype,"showFaces",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"size",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Hr.prototype,"width",void 0);var Gr=function(t){function e(e,n){return t.call(this,e,n,"fb-page")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Gr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Number)],Gr.prototype,"width",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Number)],Gr.prototype,"height",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Gr.prototype,"tabs",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Gr.prototype,"hideCover",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Gr.prototype,"showFacepile",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Gr.prototype,"hideCTA",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Gr.prototype,"smallHeader",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Gr.prototype,"adaptContainerWidth",void 0);var $r=function(t){function e(e,n){return t.call(this,e,n,"fb-post")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],$r.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],$r.prototype,"width",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],$r.prototype,"showText",void 0);var Kr=function(t){function e(e,n){return t.call(this,e,n,"fb-quote")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Kr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Kr.prototype,"layout",void 0);var Wr=function(t){function e(e,n){var r=t.call(this,e,n,"fb-save")||this;return r.uri=window.location.href,r}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Wr.prototype,"uri",void 0);var Qr=function(t){function e(e,n){var r=t.call(this,e,n,"fb-send")||this;return r.href=window.location.href,r}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Qr.prototype,"colorScheme",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Qr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Qr.prototype,"kidDirectedSite",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Qr.prototype,"ref",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Qr.prototype,"size",void 0);var Jr=function(t){function e(e,n){return t.call(this,e,n,"fb-sh
1are-button")||this}return Object(s.__extends)(e,t),e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Jr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Jr.prototype,"layout",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Jr.prototype,"mobileIframe",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Jr.prototype,"size",void 0);var Xr=function(t){function e(e,n){var i=t.call(this,e,n,"fb-video")||this;return i.startedPlaying=new r.m,i.paused=new r.m,i.finishedPlaying=new r.m,i.startedBuffering=new r.m,i.finishedBuffering=new r.m,i.error=new r.m,i._listeners=[],i.nativeElement.id=i._id="video-"+String(Math.floor(1e4*Math.random()+1)),i}return Object(s.__extends)(e,t),e.prototype.ngOnInit=function(){var t=this;FB.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===t._id&&(t._instance=e.instance,t._listeners.push(t._instance.subscribe("startedPlaying",function(e){return t.startedPlaying.emit(e)}),t._instance.subscribe("paused",function(e){return t.paused.emit(e)}),t._instance.subscribe("finishedPlaying",function(e){return t.finishedPlaying.emit(e)}),t._instance.subscribe("startedBuffering",function(e){return t.startedBuffering.emit(e)}),t._instance.subscribe("finishedBuffering",function(e){return t.finishedBuffering.emit(e)}),t._instance.subscribe("error",function(e){return t.error.emit(e)})))})},e.prototype.ngOnDestroy=function(){this._listeners.forEach(function(t){"function"==typeof t.release&&t.release()})},e.prototype.play=function(){},e.prototype.pause=function(){},e.prototype.seek=function(t){},e.prototype.mute=function(){},e.prototype.unmute=function(){},e.prototype.isMuted=function(){},e.prototype.setVolume=function(t){},e.prototype.getVolume=function(){},e.prototype.getCurrentPosition=function(){},e.prototype.getDuration=function(){},e}(Ur);Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Xr.prototype,"href",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Xr.prototype,"allowfullscreen",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Xr.prototype,"autoplay",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",String)],Xr.prototype,"width",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Xr.prototype,"showText",void 0),Object(s.__decorate)([Fr,Object(s.__metadata)("design:type",Boolean)],Xr.prototype,"showCaptions",void 0),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"play",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"pause",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Number]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"seek",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"mute",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"unmute",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",Boolean)],Xr.prototype,"isMuted",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Number]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"setVolume",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",Number)],Xr.prototype,"getVolume",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"getCurrentPosition",null),Object(s.__decorate)([Vr,Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Xr.prototype,"getDuration",null);var Yr=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[cr]}},t}(),Zr=function(){return function(){}}(),ti=r.nb(S,[k],function(t){return r.xb([r.yb(512,r.j,r.cb,[[8,[T.a,F,$,et,ht,Tt,Ft,Wt,Zt,Le,Xe,nn,fn,_n,xn,Mn,Un]],[3,r.j],r.x]),r.yb(5120,r.u,r.lb,[[3,r.u]]),r.yb(4608,x.m,x.l,[r.u,[2,x.s]]),r.yb(4608,A.r,A.r,[]),r.yb(4608,E.a,E.a,[r.z,r.g]),r.yb(4608,E.Hb,E.Hb,[E.a,r.j,r.q]),r.
1yb(4608,E.Lb,E.Lb,[E.a,r.j,r.q]),r.yb(4608,Ht.a,Ht.a,[E.Qb]),r.yb(4608,nt.a,nt.a,[Ht.a,wt.a]),r.yb(4608,A.d,A.d,[]),r.yb(4608,qn.a,qn.a,[]),r.yb(4608,Bn,Bn,[Ht.a,wt.a]),r.yb(4608,zn.a,zn.a,[Ht.a,wt.a]),r.yb(4608,bt,bt,[yt.d,[2,yt.c],r.B,r.z]),r.yb(4608,u,u,[bt]),r.yb(4608,ue,ue,[]),r.yb(4608,se,se,[Ht.a,wt.a]),r.yb(4608,Te.a,Te.a,[Ht.a,wt.a]),r.yb(4608,rt,rt,[Ht.a,wt.a]),r.yb(4608,Gn.h,Gn.n,[x.d,r.B,Gn.l]),r.yb(4608,Gn.o,Gn.o,[Gn.h,Gn.m]),r.yb(5120,Gn.a,function(t){return[t]},[Gn.o]),r.yb(4608,Gn.k,Gn.k,[]),r.yb(6144,Gn.i,null,[Gn.k]),r.yb(4608,Gn.g,Gn.g,[Gn.i]),r.yb(6144,Gn.b,null,[Gn.g]),r.yb(4608,Gn.f,Gn.j,[Gn.b,r.q]),r.yb(4608,Gn.c,Gn.c,[Gn.f]),r.yb(5120,$n.b,$n.d,[$n.c]),r.yb(4608,pn.a,pn.a,[$n.b]),r.yb(4608,zt.a,zt.a,[C.n,pn.a,Ht.a]),r.yb(4608,Kn.a,Kn.a,[wt.a,C.n]),r.yb(4608,Wn.a,Wn.a,[yt.d,[2,yt.c],[2,Wn.b],r.B,r.z]),r.yb(4608,En.a,En.a,[Wn.a,wt.a]),r.yb(4608,Pt.a,Pt.a,[]),r.yb(4608,U.a,U.a,[Gn.c]),r.yb(4608,xt.a,xt.a,[Ht.a,wt.a]),r.yb(4608,Qn.a,Qn.a,[Ht.a,wt.a]),r.yb(4608,Jn,Jn,[Ht.a,wt.a]),r.yb(4608,I,I,[C.n]),r.yb(5120,r.c,r.ib,[]),r.yb(5120,r.s,r.jb,[]),r.yb(5120,r.t,r.kb,[]),r.yb(4608,on.b,on.k,[x.d]),r.yb(6144,r.G,null,[on.b]),r.yb(4608,on.e,on.g,[]),r.yb(5120,on.c,function(t,e,n,r,i,o,a,s){return[new on.i(t,e,n),new on.n(r),new on.m(i,o,a,s)]},[x.d,r.z,r.B,x.d,x.d,on.e,r.db,[2,on.f]]),r.yb(4608,on.d,on.d,[on.c,r.z]),r.yb(135680,on.l,on.l,[x.d]),r.yb(4608,on.j,on.j,[on.d,on.l,r.c]),r.yb(6144,r.E,null,[on.j]),r.yb(6144,on.o,null,[on.l]),r.yb(4608,r.M,r.M,[r.z]),r.yb(5120,C.a,C.B,[C.n]),r.yb(4608,C.f,C.f,[]),r.yb(6144,C.i,null,[C.f]),r.yb(135680,C.s,C.s,[C.n,r.w,r.i,r.q,C.i]),r.yb(4608,C.h,C.h,[]),r.yb(5120,C.F,C.y,[C.n,x.p,C.j]),r.yb(5120,C.k,C.E,[C.C]),r.yb(5120,r.b,function(t){return[t]},[C.k]),r.yb(4608,nr,nr,[yt.d,[2,yt.c],r.B,r.z]),r.yb(4608,ar,ar,[yt.d,[2,yt.c],r.B,r.z,[2,ir],[2,or]]),r.yb(5120,yt.b,yt.e,[yt.d,r.z,[2,yt.c]]),r.yb(4608,lr,lr,[]),r.yb(4608,cr,cr,[]),r.yb(4608,Bt.a,Bt.a,[Ht.a,wt.a]),r.yb(4608,hr,hr,[]),r.yb(1073742336,x.c,x.c,[]),r.yb(1073742336,A.p,A.p,[]),r.yb(1073742336,A.h,A.h,[]),r.yb(1073742336,E.Eb,E.Eb,[]),r.yb(1024,C.w,C.z,[[3,C.n]]),r.yb(1024,r.l,on.p,[]),r.yb(1024,r.y,function(){return[C.x()]},[]),r.yb(512,C.C,C.C,[r.q]),r.yb(256,E.Rb,void 0,[]),r.yb(1024,r.d,function(t,e,n,r,i){return[on.q(t),C.D(e),E.Sb(n,r,i)]},[[2,r.y],C.C,E.Rb,x.d,r.z]),r.yb(512,r.e,r.e,[[2,r.d]]),r.yb(131584,r.g,r.g,[r.z,r.db,r.q,r.l,r.j,r.e]),r.yb(512,C.u,C.c,[]),r.yb(512,C.b,C.b,[]),r.yb(512,x.i,x.f,[x.o,[2,x.a]]),r.yb(512,x.h,x.h,[x.i]),r.yb(512,r.i,r.i,[]),r.yb(512,r.w,r.J,[r.i,[2,r.K]]),r.yb(1024,C.l,function(){return[[{path:"",redirectTo:"/demo-app/home",pathMatch:"full"},{path:":pvr",component:ft.a,canActivate:[fr.a],data:dr.c,resolve:{pvr:Qn.b},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Dt.a,canActivate:[Kn.a],data:dr.d,resolve:{pvr:pr.b}},{path:"login",component:qt.a,resolve:{pvr:Qn.b},data:dr.e},{path:"access-denied",component:Qt.a,resolve:{pvr:Qn.b},data:dr.f},{path:"blog",component:ke.a,canActivate:[Kn.a],data:dr.g,resolve:{pvr:mr.b,user:dr.b}},{path:"chat",canActivate:[Kn.a],component:Fe.a,resolve:{pvr:Qn.b},data:dr.h},{path:"media-detail",canActivate:[Kn.a],component:ae.a},{path:"registration",component:an.a,canActivate:[Kn.a],data:dr.i,resolve:{pvr:Qn.b,user:dr.b}},{path:"settings",component:dn.a,data:dr.j,resolve:{pvr:Qn.b,user:dr.b},canActivate:[Kn.a]},{path:"upload/:uid",canActivate:[Kn.a],component:Sn.a,data:dr.k,resolve:{user:dr.b,pvr:Qn.b}},{path:"services",loadChildren:"./pages/services/services.module#ServicesPageModule"},{path:"games",component:Dn.a,canActivate:[Kn.a],data:dr.l,resolve:{pvr:Qn.b,user:dr.b}}]}]]},[]),r.yb(256,C.j,{},[]),r.yb(512,C.m,E.Fb,[]),r.yb(1024,C.n,C.A,[r.g,C.u,C.b,x.h,r.q,r.w,r.i,C.l,C.j,[2,C.t],[2,C.m]]),r.yb(1073742336,C.q,C.q,[[2,C.w],[2,C.n]]),r.yb(1073742336,gr,gr,[]),r.yb(1073742336,vr.a,vr.a,[]),r.yb(1073742336,yr,yr,[]),r.yb(1073742336,br,br,[]),r.yb(1073742336,wr,wr,[]),r.yb(1073742336,A.n,A.n,[]),r.yb(1073742336,_r,_r,[]),r.yb(1073742336,Sr,Sr,[]),r.yb(1073742336,Er.a,Er.a,[]),r.yb(1073742336,Cr,Cr,[]),r.yb(1073742336,Ir.a,Ir.a,[]),r.yb(1073742336,kr,kr,[]),r.yb(1073742336,Tr.a,Tr.a,[]),r.yb(1073742336,Or,Or,[]),r.yb(1073742336,pr.a,pr.a,[]),r.yb(1073742336,Ar,Ar,[]),r.yb(1073742336,xr,xr,[]),r.yb(1073742336,Dr,Dr,[]),r.yb(1073742336,Pr,Pr,[]),r.yb(1073742336,_,_,[]),r.yb(1073742336,Nr,Nr,[]),r.yb(1073742336,jr,jr,[]),r.yb(1073742336,Rr,Rr,[]),r.yb(1073742336,mr.a,mr.a,[]),r.yb(1073742336,Mr,Mr,[]),r.yb(1073742336,Lr,Lr,[]),r.yb(1073742336,Gn.e,Gn.e,[]),r.yb(1073742336,Gn.d,Gn.d,[]),r.yb(1073742336,Yr,Yr,[]),r.yb(1073742336,Zr,Zr,[]),r.yb(1073742336,r.f,r.f,[r.g]),r.yb(1073742336,on.a,on.a,[[3,on.a]]),r.yb(1073742336,dr.a,dr.a,[]),r.yb(1073742336,rr,rr,[]),r.yb(1073742336,sr,sr,[]),r.yb(1073742336,yt.a,yt.a,[r.B]),r.yb(1073742336,$n.a,$n.a,[]),r.yb(1073742336,Hn,Hn,[]),r.yb(1073742336,S,S,[]),r.yb(256,yt.d,{apiKey:"AIzaSyA_h_On7Q8yTaZIgc8nQQRvQSdP34hD3B4",authDomain:"isitech.firebaseapp.com",databaseURL:"https://isitech.firebaseio.com",projectId:"isitech",storageBucket:"isitech.appspot.com",messagingSenderId:"948189380720"},[]),r.yb(256,yt.c,void 0,[]),r.yb(256,Gn.l,"XSRF-TOKEN",[]),r.yb(256,Gn.m,"X-XSRF-TOKEN",[]),r.yb(256,$n.c,{name:"__Isitech_pvr_app"},[]),r.yb(256,r.bb,!0,[]),r.yb(256,"firebaseUIAuthConfig",{signInFlow:"popup",signInOptions:[l.auth.EmailAuthProvider.PROVIDER_ID,{provider:l.auth.GoogleAuthProvider.PROVIDER_ID,scopes:["https://www.googleapis.com/auth/plus.login"],customParameters:{prompt:"select_account"}},{provider:l.auth.FacebookAuthProvider.PROVIDER_ID,scopes:["public_profile","email"]}],tosUrl:"/home",privacyPolicyUrl:"https://www.fullservicepoint.it/assets/privacy-policy.pdf",credentialHelper:c.auth.CredentialHelper.ACCOUNT_CHOOSER_COM}
1,[]),r.yb(256,"firebaseUIAuthConfigFeature",{},[])])});i.a.production&&Object(r.U)(),on.h().bootstrapModuleFactory(ti).catch(function(t){return console.log(t)})},zVF4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mrSG"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw a(e)},a=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],a=i+1<t.length,s=a?t[i+1]:0,u=i+2<t.length,l=u?t[i+2]:0,c=(15&s)<<2|l>>6,h=63&l;u||(h=64,a||(c=64)),r.push(n[o>>2],n[(3&o)<<4|s>>4],n[c],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0,s=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw Error();r.push(o<<2|a>>4),64!=s&&(r.push(a<<4&240|s>>2),64!=u&&r.push(s<<6&192|u))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function c(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=c(t[n],e[n]));return t}var h=function(){function t(){var t=this;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}(),f=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""},d="FirebaseError",p=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name=d,Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,m.prototype.create),i}return r.__extends(e,t),e}(Error),m=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t,e){void 0===e&&(e={});for(var n=this.service+"/"+t,r=this.errors[t],i=r?function(t,e){return t.replace(g,function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"})}(r,e):"Error",o=new p(n,this.serviceName+": "+i+" ("+n+")."),a=0,s=Object.keys(e);a<s.length;a++){var u=s[a];"_"!==u.slice(-1)&&(u in o&&console.warn('Overwriting FirebaseError base field "'+u+'" can cause unexpected behavior.'),o[u]=e[u])}return o},t}(),g=/\{\$([^}]+)}/g;function v(t){return JSON.parse(t)}var y=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=v(l(o[0])||""),n=v(l(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:r,signature:i}},b=function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},w=function(t,e){return b(e,function(e,n){t[e]=n}),t},_=function(t,e,n){for(var r in t)if(e.call(n,t[r],r,t))return r},S=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++)n[r]=4294967295&((h=n[r-3]^n[r-8]^n[r-14]^n[r-16])<<1|h>>>31);var i,o,a=this.chain_[0],s=this.chain_[1],u=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=l^s&(u^l),o=1518500249):(i=s^u^l,o=1859775393):r<60?(i=s&u|l&(s|u),o=2400959708):(i=s^u^l,o=3395469782);var h=(a<<5|a>>>27)+i+c+o+n[r]&4294967295;c=l,l=u,u=4294967295&(s<<30|s>>>2),s=a,a=h}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+s&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<e;){if(0==o)for(;r<=n;)this.compress_(t,r),r+=this.blockSize;if("string"==typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o==this.blockSize){this.compress_(i),o=0;break}}else for(;r<e;)if(i[o]=t[r],++r,++o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}(),E=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=["next","error","complete"];n<r.length;n++){var i=r[n];if(i in t&&"function"==typeof t[i])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(r.next=C),void 0===r.error&&(r.error=C),void 0===r.complete&&(r.complete=C);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}}),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}})},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(function(){e.observers=void 0,e.onNoObservers=void 0}))},t}();function C(){}function I(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return t+" failed: "+r+" argument "}e.CONSTANTS=i,e.Deferred=h,e.ErrorFactory=m,e.FirebaseError=p,e.Sha1=S,e.assert=o,e.assertionError=a,e.async=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){t.apply(void 0,n)}).catch(function(t){e&&e(t)})}},e.base64=u,e.base64Decode=l,e.base64Encode=function(t){var e=s(t);return u.encodeByteArray(e,!0)},e.clone=function(t){return w({},t)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new E(t,e);return n.subscribe.bind(n)},e.decode=y,e.deepCopy=function(t){return c(void 0,t)},e.deepExtend=c,e.errorPrefix=I,e.every=function(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!e(n,t[n]))return!1;return!0},e.extend=w,e.findKey=_,e.findValue=function(t,e,n){var r=_(t,e,n);return r&&t[r]},e.forEach=b,e.getAnyKey=function(t){for(var e in t)return e},e.getCount=function(t){var e=0;for(var n in t)e++;return e},e.getUA=f,e.getValues=function(t){var e=[],n=0;for(var r in t)e[n++]=t[r];return e},e.isAdmin=function(t){var e=y(t).claims;return"object"==typeof e&&!0===e.admin},e.isEmpty=function(t){for(var e in t)return!1;return!0},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())},e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isNonNullObject=function(t){return"object"==typeof t&&null!==t},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isValidFormat=function(t){var e=y(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e,n,r=y(t).claims,i=Math.floor((new Date).getTime()/1e3);return"object"==typeof r&&(r.hasOwnProperty("nbf")?e=r.nbf:r.hasOwnProperty("iat")&&(e=r.iat),n=r.hasOwnProperty("exp")?r.exp:e+86400),i&&e&&n&&i>=e&&i<=n},e.issuedAtTime=function(t){var e=y(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=v,e.map=function(t,e,n){var r={};for(var i in t)r[i]=e.call(n,t[i],i,t);return r},e.patchProperty=function(t,e,n){t[e]=n},e.querystring=function(t){var e=[];
1return b(t,function(t,n){Array.isArray(n)?n.forEach(function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach(function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}}),e},e.safeGet=function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;o(++r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<10)+(t.charCodeAt(r)-56320)}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(I(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(I(t,e,r)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(I(t,e,r)+"must be a valid firebase namespace.")}},"zkF/":function(t,e,n){var r=n("IutQ"),i=n("3Gxb").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(e){return a.slice()}}(t):i(r(t))}},zotm:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("rPjj"),i=n("Fxb1");function o(t,e,n,o,a){if(void 0===a&&(a=new r.a(t,n,o)),!a.closed)return Object(i.a)(e)(a)}},zzB2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()}},[[0,1]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.