1function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _get(t,e,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=_superPropBase(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/KFi":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o}
vendor: 6,387 bytes, line 1
1)),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"/w05":function(t,e,n){"use strict";
1e.__esModule=!0,e.SourceLocation=function(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}},e.id=function(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t},e.stripFlags=function(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}},e.stripComment=function(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},e.preparePath=function(t,e,n){n=this.locInfo(n);for(var i=t?"@":"",o=[],a=0,s=0,u=e.length;s<u;s++){var l=e[s].part;if(i+=(e[s].separator||"")+l,e[s].original!==l||".."!==l&&"."!==l&&"this"!==l)o.push(l);else{if(o.length>0)throw new r.default("Invalid path: "+i,{loc:n});".."===l&&a++}}return{type:"PathExpression",data:t,depth:a,parts:o,original:i,loc:n}},e.prepareMustache=function(t,e,n,i,r,o){var a=i.charAt(3)||i.charAt(2),s="{"!==a&&"&"!==a;return{type:/\*/.test(i)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:s,strip:r,loc:this.locInfo(o)}},e.prepareRawBlock=function(t,e,n,i){return o(t,n),i=this.locInfo(i),{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:{type:"Program",body:e,strip:{},loc:i},openStrip:{},inverseStrip:{},closeStrip:{},loc:i}},e.prepareBlock=function(t,e,n,i,a,s){i&&i.path&&o(t,i);var u=/\*/.test(t.open);e.blockParams=t.blockParams;var l=void 0,c=void 0;if(n){if(u)throw new r.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=i.strip),c=n.strip,l=n.program}return a&&(a=l,l=e,e=a),{type:u?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:i&&i.strip,loc:this.locInfo(s)}},e.prepareProgram=function(t,e){if(!e&&t.length){var n=t[0].loc,i=t[t.length-1].loc;n&&i&&(e={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:i.end.line,column:i.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,n,i){return o(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(i)}};var i,r=(i=n("0KrK"))&&i.__esModule?i:{default:i};function o(t,e){if(t.path.original!==(e=e.path?e.path.original:e))throw new r.default(t.path.original+" doesn't match "+e,{loc:t.path.loc})}},0:function(t,e,n){t.exports=n("zUnb")},"0KrK":function(t,e,n){"use strict";e.__esModule=!0;var i=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(t,e){var n=e&&e.loc,o=void 0,a=void 0,s=void 0,u=void 0;n&&(a=n.end.line,u=n.end.column,t+=" - "+(o=n.start.line)+":"+(s=n.start.column));for(var l=Error.prototype.constructor.call(this,t),c=0;c<i.length;c++)this[i[c]]=l[i[c]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{n&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=s,this.endColumn=u))}catch(h){}}r.prototype=new Error,e.default=r,t.exports=e.default},"142O":function(t,e,n){"use strict";e.__esModule=!0;var i=n("XVEb");e.default=function(t){t.registerDecorator("inline",(function(t,e,n,r){var o=t;return e.partials||(e.partials={},o=function(r,o){var a=n.partials;n.partials=i.extend({},a,e.partials);var s=t(r,o);return n.partials=a,s}),e.partials[r.args[0]]=r.fn,o}))},t.exports=e.default},"2PUr":function(t,e){!function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialButton=t,t.prototype.Constant_={},t.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},t.prototype.blurHandler_=function(t){t&&this.element_.blur()},t.prototype.disable=t.prototype.disable=function(){this.element_.disabled=!0},t.prototype.enable=t.prototype.enable=function(){this.element_.disabled=!1},t.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var t=document.createElement("span");
1t.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)}},componentHandler.register({constructor:t,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})}()},"3/2H":function(t,e,n){"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){r.default(t)};var i,r=(i=n("142O"))&&i.__esModule?i:{default:i}},"33n6":function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.parseWithoutProcessing=l,e.parse=function(t,e){var n=l(t,e);return new o.default(e).accept(n)};var r=i(n("Jk8n")),o=i(n("L8TE")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("/w05")),s=n("XVEb");e.parser=r.default;var u={};function l(t,e){return"Program"===t.type?t:(r.default.yy=u,u.locInfo=function(t){return new u.SourceLocation(e&&e.srcName,t)},r.default.parse(t))}s.extend(u,a)},"6AkR":function(t,e,n){"use strict";n.r(e),n("boMX")},"82Ps":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("/KFi"),r={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 ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=function(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):55296==(64512&r)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|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_,i=[],r=0;r<t.length;r+=3){var o=t[r],a=r+1<t.length,s=a?t[r+1]:0,u=r+2<t.length,l=u?t[r+2]:0,c=(15&s)<<2|l>>6,h=63&l;u||(h=64,a||(c=64)),i.push(n[o>>2],n[(3&o)<<4|s>>4],n[c],n[h])}return i.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,i=0;n<t.length;){var r=t[n++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){var o=t[n++];e[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){var a=((7&r)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(a>>10)),e[i++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[i++]=String.fromCharCode((15&r)<<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_,i=[],r=0;r<t.length;){var o=n[t.charAt(r++)],a=r<t.length?n[t.charAt(r)]:0,s=++r<t.length?n[t.charAt(r)]:64,u=++r<t.length?n[t.charAt(r)]:64;if(++r,null==o||null==a||null==s||null==u)throw Error();i.push(o<<2|a>>4),64!==s&&(i.push(a<<4&240|s>>2),64!==u&&i.push(s<<6&192|u))}return i},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.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,i){n?e.reject(n):e.resolve(i),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,i))}},t}();function f(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var d=function(t){function e(n,i){var r=t.call(this,i)||this;return r.code=n,r.name="FirebaseError",Object.setPrototypeOf(r,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,p.prototype.create),r}return i.__extends(e,t),e}(Error),p=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=e[0]||{},r=this.service+"/"+t,o=this.errors[t],a=o?m(o,i):"Error",s=this.serviceName+": "+a+" ("+r+").",u=new d(r,s),l=0,c=Object.keys(i);l<c.length;l++){var h=c[l];"_"!==h.slice(-1)&&(h in u&&console.warn('Overwriting FirebaseError base field "'+h+'" can cause unexpected behavior.'),u[h]=i[h])}return u},t}();function m(t,e){return t.replace(v,(function(t,n){var i=e[n];return null!=i?i.toString():"<"+n+"?>"}))}var v=/\{\$([^}]+)}/g;function g(t){return JSON.parse(t)}var y=function(t){var e={},n={},i={},r="";try{var o=t.split(".");e=g(l(o[0])||""),n=g(l(o[1])||""),r=o[2],i=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:i,signature:r}},_=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 i=0;i<16;i++)n[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)n[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++)n[i]=4294967295&((h=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|h>>>31);var r,o,a=this.chain_[0],s=this.chain_[1],u=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(r=l^s&(u^l),o=1518500249):(r=s^u^l,o=1859775393):i<60?(r=s&u|l&(s|u),o=2400959708):(r=s^u^l,o=3395469782);var h=(a<<5|a>>>27)+r+c+o+n[i]&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,i=0,r=this.buf_,o=this.inbuf_;i<e;){if(0===o)for(;i<=n;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(r[o]=t.charCodeAt(i),++i,++o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<e;)if(r[o]=t[i],++i,++o===this.blockSize){this.compress_(r),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 i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)t[i]=this.chain_[n]>>r&255,++i;return t},t}(),b=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 i,r=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var r=i[n];if(r in t&&"function"==typeof t[r])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(i.next=w),void 0===i.error&&(i.error=w),void 0===i.complete&&(i.complete=w);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(t){}})),this.observers.push(i),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(i){"undefined"!=typeof console&&console.error&&console.error(i)}}))},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 w(){}function k(t,e,n){var i="";switch(e){case 1:i=n?"first":"First";break;case 2:i=n?"second":"Second";break;case 3:i=n?"third":"Third";break;case 4:i=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return t+" failed: "+i+" argument "}e.CONSTANTS=r,e.Deferred=h,e.ErrorFactory=p,e.FirebaseError=d,e.Sha1=_,e.assert=o,e.assertionError=a,e.async=function(t,e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];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.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new b(t,e);return n.subscribe.bind(n)},e.decode=y,e.deepCopy=function(t){return c(void 0,t)},e.deepExtend=c,e.errorPrefix=k,e.getUA=f,e.isAdmin=function(t){var e=y(t).claims;return"object"==typeof e&&!0===e.admin},e.isBrowser=function(){return"object"==typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id},e.isElectron=function(){return f().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=f();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())},e.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}},e.isNodeSdk=function(){return!0===r.NODE_CLIENT||!0===r.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isUWP=function(){return f().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=y(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=y(t).claims,n=Math.floor((new Date).getTime()/1e3),i=0,r=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?i=e.nbf:e.hasOwnProperty("iat")&&(i=e.iat),r=e.hasOwnProperty("exp")?e.exp:i+86400),!!n&&!!i&&!!r&&n>=i&&n<=r},e.issuedAtTime=function(t){var e=y(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=g,e.map=function(t,e,n){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=e.call(n,t[r],r,t));return i},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEac
1h((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},i=0,r=Object.entries(t);i<r.length;i++){var o=r[i];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach((function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}})),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e++:i<2048?e+=2:i>=55296&&i<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319){var a=r-55296;i++,o(i<t.length,"Surrogate pair missing trail surrogate."),r=65536+(a<<10)+(t.charCodeAt(i)-56320)}r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):r<65536?(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,i){var r;if(i<e?r="at least "+e:i>n&&(r=0===n?"none":"no more than "+n),r)throw new Error(t+" failed: Was called with "+i+(1===i?" argument.":" arguments.")+" Expects "+r+".")},e.validateCallback=function(t,e,n,i){if((!i||n)&&"function"!=typeof n)throw new Error(k(t,e,i)+"must be a valid function.")},e.validateContextObject=function(t,e,n,i){if((!i||n)&&("object"!=typeof n||null===n))throw new Error(k(t,e,i)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,i){if((!i||n)&&"string"!=typeof n)throw new Error(k(t,e,i)+"must be a valid firebase namespace.")}},"8Uns":function(t,e){var n={upgradeDom:function(t,e){},upgradeElement:function(t,e){},upgradeElements:function(t){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(t,e){},register:function(t){},downgradeElements:function(t){}};(n=function(){"use strict";var t=[],e=[];function n(e,n){for(var i=0;i<t.length;i++)if(t[i].className===e)return void 0!==n&&(t[i]=n),t[i];return!1}function i(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function r(t,e){return-1!==i(t).indexOf(e)}function o(t,e,n){if("CustomEvent"in window&&"function"==typeof window.CustomEvent)return new CustomEvent(t,{bubbles:e,cancelable:n});var i=document.createEvent("Events");return i.initEvent(t,e,n),i}function a(e,i){if(void 0===e&&void 0===i)for(var r=0;r<t.length;r++)a(t[r].className,t[r].cssClass);else{var o=e;if(void 0===i){var u=n(o);u&&(i=u.cssClass)}for(var l=document.querySelectorAll("."+i),c=0;c<l.length;c++)s(l[c],o)}}function s(a,s){if(!("object"==typeof a&&a instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var u=o("mdl-componentupgrading",!0,!0);if(a.dispatchEvent(u),!u.defaultPrevented){var l=i(a),c=[];if(s)r(a,s)||c.push(n(s));else{var h=a.classList;t.forEach((function(t){h.contains(t.cssClass)&&-1===c.indexOf(t)&&!r(a,t.className)&&c.push(t)}))}for(var f,d=0,p=c.length;d<p;d++){if(!(f=c[d]))throw new Error("Unable to find a registered component for the given class.");l.push(f.className),a.setAttribute("data-upgraded",l.join(","));var m=new f.classConstructor(a);m.mdlComponentConfigInternal_=f,e.push(m);for(var v=0,g=f.callbacks.length;v<g;v++)f.callbacks[v](a);f.widget&&(a[f.className]=m);var y=o("mdl-componentupgraded",!0,!1);a.dispatchEvent(y)}}}function u(t){if(t){var n=e.indexOf(t);e.splice(n,1);var i=t.element_.getAttribute("data-upgraded").split(","),r=i.indexOf(t.mdlComponentConfigInternal_.classAsString);i.splice(r,1),t.element_.setAttribute("data-upgraded",i.join(","));var a=o("mdl-componentdowngraded",!0,!1);t.element_.dispatchEvent(a)}}return{upgradeDom:a,upgradeElement:s,upgradeElements:function t(e){Array.isArray(e)||(e=e instanceof Element?[e]:Array.prototype.slice.call(e));for(var n,i=0,r=e.length;i<r;i++)(n=e[i])instanceof HTMLElement&&(s(n),n.children.length>0&&t(n.children))},upgradeAllRegistered:function(){for(var e=0;e<t.length;e++)a(t[e].className)},registerUpgradedCallback:function(t,e){var i=n(t);i&&i.callbacks.push(e)},register:function(e){var i=!0;void 0===e.widget&&void 0===e.widget||(i=e.widget||e.widget);var r={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===r.cssClass)throw new Error("The provided cssClass has already been registered: "+t.cssClass);if(t.className===r.className)throw new Error("The provided className has already been registered")})),e.constructor.prototype.hasOwnProperty("mdlComponentConfigInternal_"))throw new Error("MDL component classes must not have mdlComponentConfigInternal_ defined as a property.");n(e.classAsString,r)||t.push(r)},downgradeElements:function(t){var n=function(t){e.filter((function(e){return e.element_===t}
1)).forEach(u)};if(t instanceof Array||t instanceof NodeList)for(var i=0;i<t.length;i++)n(t[i]);else{if(!(t instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");n(t)}}}}()).upgradeDom=n.upgradeDom,n.upgradeElement=n.upgradeElement,n.upgradeElements=n.upgradeElements,n.upgradeAllRegistered=n.upgradeAllRegistered,n.registerUpgradedCallback=n.registerUpgradedCallback,n.register=n.register,n.downgradeElements=n.downgradeElements,window.componentHandler=n,window.componentHandler=n,window.addEventListener("load",(function(){"use strict";"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),n.upgradeAllRegistered()):(n.upgradeElement=function(){},n.register=function(){})}))},"9jDo":function(t,e,n){var i;!function(){var r=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,i=(function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}).bind(this),r=function(r){if(r.target===t){var o="DOMNodeRemoved";n|=r.type.substr(0,o.length)===o,window.clearTimeout(e),e=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(e){t.addEventListener(e,r)}))}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))}r&&"object"!=typeof r||((r=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return 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 r("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],i=null;try{i=n.cssRules}catch(c){}if(i)for(var r=0;r<i.length;++r){var o=i[r],a=null;
1try{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)},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,i=0;e=t.removedNodes[i];++i)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 i=this.pendingDialogStack[0];i?(i.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 r("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):
1p.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 i=c.formSubmitter;i&&i.form===e?n.close(c.useValue||i.value):n.close(),c.formSubmitter=null}}}),!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n("kfSZ")?void 0===(i=(function(){return c}).call(e,n,e,t))||(t.exports=i):"object"==typeof t.exports?t.exports=c:window.dialogPolyfill=c}()},AmJI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n("huQ6"),o=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i,a=n("Gjt8"),s=n("82Ps"),u=n("WRB3"),l=n("EeOn"),c=o.SDK_VERSION,h=function(){function t(t){this.uid=t}return t.prototype.t=function(){return null!=this.uid},t.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();h.UNAUTHENTICATED=new h(null),h.i=new h("google-credentials-uid"),h.h=new h("first-party-uid");var f={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"},d=function(t){function e(e,n){var i=this;return(i=t.call(this,n)||this).code=e,i.message=n,i.name="FirebaseError",i.toString=function(){return i.name+": [code="+i.code+"]: "+i.message},i}return r.__extends(e,t),e}(Error),p=function(t,e){this.user=e,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+t},m=function(){function t(){this.u=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype._=function(){},t.prototype.l=function(t){this.u=t,t(h.UNAUTHENTICATED)},t.prototype.T=function(){this.u=null},t}(),v=function(){function t(t){var e=this;this.I=null,this.currentUser=h.UNAUTHENTICATED,this.R=!1,this.A=0,this.u=null,this.forceRefresh=!1,this.I=function(){e.A++,e.currentUser=e.m(),e.R=!0,e.u&&e.u(e.currentUser)},this.A=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),t.get().then((function(t){e.auth=t,e.I&&e.auth.addAuthTokenListener(e.I)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.A,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(t.A!==e)throw new d(f.ABORTED,"getToken aborted due to token change.");return n?(we("string"==typeof n.accessToken),new p(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype._=function(){this.forceRefresh=!0},t.prototype.l=function(t){this.u=t,this.R&&t(this.currentUser)},t.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},t.prototype.m=function(){var t=this.auth&&this.auth.getUid();return we(null===t||"string"==typeof t),new h(t)},t}(),g=function(){function t(t,e){this.P=t,this.V=e,this.type="FirstParty",this.user=h.h}return Object.defineProperty(t.prototype,"o",{get:function(){var t={"X-Goog-AuthUser":this.V},e=this.P.auth.g([]);return e&&(t.Authorization=e),t},enumerable:!0,configurable:!0}),t}(),y=function(){function t(t,e){this.P=t,this.V=e}return t.prototype.getToken=function(){return Promise.resolve(new g(this.P,this.V))},t.prototype.l=function(t){t(h.h)},t.prototype.T=function(){},t.prototype._=function(){},t}(),_=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new d(f.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new d(f.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new d(f.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new d(f.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.p=function(t){return this.seconds===t.seconds?xe(this.nanoseconds,t.nanoseconds):xe(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1,t}(),b=function(){function t(t){this.timestamp=t}return t.v=function(e){return new t(e)},t.min=function(){return new t(new _(0,0))},t.prototype.S=function(t){return this.timestamp.p(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.D=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.C=function(){return this.timestamp},t}(),w=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&be(),void 0===n?n=t.length-e:n>t.length-e&&be(),this.segments=t,this.offset=e,this.F=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.F},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.N(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.$(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.k=function(t){return this.$(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.L=function(){return this.$(this.segments,this.offset,this.length-1)},t.prototype.M=function(){return this.segments[this.offset]},t.prototype.O=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.B=function(){return 0===this.length},t.prototype.q=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.U=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.W=function(){return this.segments.slice(this.offset,this.limit())},t.N=function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++){var r=t.get(i),o=e.get(i);if(r<o)return-1;if(r>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.$=function(t,n,i){return new e(t,n,i)},e.prototype.j=function(){return this.W().join("/")},e.prototype.toString=function(){return this.j()},e.K=function(t){if(t.indexOf("//")>=0)throw new d(f.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e}(w);k.G=new k([]);var C=/^[_a-zA-Z][_a-zA-Z0-9]*$/,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.$=function(t,n,i){return new e(t,n,i)},e.H=function(t){return C.test(t)},e.prototype.j=function(){return this.W().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.H(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.j()},e.prototype.Y=function(){return 1===this.length&&"__name__"===this.get(0)},e.J=function(){return new e(["__name__"])},e.X=function(t){for(var n=[],i="",r=0,o=function(){if(0===i.length)throw new d(f.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},a=!1;r<t.length;){var s=t[r];if("\\"===s){if(r+1===t.length)throw new d(f.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[r+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new d(f.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);i+=u,r+=2}else"`"===s?(a=!a,r++):"."!==s||a?(i+=s,r++):(o(),r++)}if(o(),a)throw new d(f.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e}(w);x.G=new x([]);var S=function(){function t(t){this.path=t}return t.Z=function(e){return new t(k.K(e).k(5))},t.prototype.tt=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===k.N(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.N=function(t,e){return k.N(t.path,e.path)},t.et=function(t){return t.length%2==0},t.st=function(e){return new t(new k(e.slice()))},t}();function E(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function I(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function A(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
1S.EMPTY=new S(new k([]));var T=function(){function t(t){this.it=t}return t.fromBase64String=function(e){return new t(de.nt().atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return de.nt().btoa(this.it)},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.it)},t.prototype.rt=function(){return 2*this.it.length},t.prototype.S=function(t){return xe(this.it,t.it)},t.prototype.isEqual=function(t){return this.it===t.it},t}();function O(t){return null==t}function D(t){return-0===t&&1/t==-1/0}function P(t){return"number"==typeof t&&Number.isInteger(t)&&!D(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}function R(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function N(t){var e=H(t.mapValue.fields.__local_write_time__.timestampValue);return new _(e.seconds,e.nanos)}T.ht=new T("");var M=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function F(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?R(t)?4:10:be()}function L(t,e){var n=F(t);if(n!==F(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return N(t).isEqual(N(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=H(t.timestampValue),i=H(e.timestampValue);return n.seconds===i.seconds&&n.nanos===i.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return q(t.bytesValue).isEqual(q(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return z(t.geoPointValue.latitude)===z(e.geoPointValue.latitude)&&z(t.geoPointValue.longitude)===z(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return z(t.integerValue)===z(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=z(t.doubleValue),i=z(e.doubleValue);return n===i?D(n)===D(i):isNaN(n)&&isNaN(i)}return!1}(t,e);case 9:return Se(t.arrayValue.values||[],e.arrayValue.values||[],L);case 10:return function(t,e){var n=t.mapValue.fields||{},i=e.mapValue.fields||{};if(E(n)!==E(i))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(void 0===i[r]||!L(n[r],i[r])))return!1;return!0}(t,e);default:return be()}}function j(t,e){return void 0!==(t.values||[]).find((function(t){return L(t,e)}))}function B(t,e){var n=F(t),i=F(e);if(n!==i)return xe(n,i);switch(n){case 0:return 0;case 1:return xe(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=z(t.integerValue||t.doubleValue),i=z(e.integerValue||e.doubleValue);return n<i?-1:n>i?1:n===i?0:isNaN(n)?isNaN(i)?0:-1:1}(t,e);case 3:return V(t.timestampValue,e.timestampValue);case 4:return V(N(t),N(e));case 5:return xe(t.stringValue,e.stringValue);case 6:return function(t,e){var n=q(t),i=q(e);return n.S(i)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),i=e.split("/"),r=0;r<n.length&&r<i.length;r++){var o=xe(n[r],i[r]);if(0!==o)return o}return xe(n.length,i.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=xe(z(t.latitude),z(e.latitude));return 0!==n?n:xe(z(t.longitude),z(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],i=e.values||[],r=0;r<n.length&&r<i.length;++r){var o=B(n[r],i[r]);if(o)return o}return xe(n.length,i.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},i=Object.keys(n),r=e.fields||{},o=Object.keys(r);i.sort(),o.sort();for(var a=0;a<i.length&&a<o.length;++a){var s=xe(i[a],o[a]);if(0!==s)return s;var u=B(n[i[a]],r[o[a]]);if(0!==u)return u}return xe(i.length,o.length)}(t.mapValue,e.mapValue);default:throw be()}}function V(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return xe(t,e);var n=H(t),i=H(e),r=xe(n.seconds,i.seconds);return 0!==r?r:xe(n.nanos,i.nanos)}function U(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=H(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?q(e.bytesValue).toBase64():"referenceValue"in e?S.Z(e.referenceValue).toString():"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",i=!0,r=0,o=e.values||[];r<o.length;r++)i?i=!1:n+=",",n+=t(o[r]);return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",i=!0,r=0,o=Object.keys(e.fields||{}).sort();r<o.length;r++){var a=o[r];i?i=!1:n+=",",n+=a+":"+t(e.fields[a])}return n+"}"}(e.mapValue):be();var n}(t)}function H(t){if(we(!!t),"string"==typeof t){var e=0,n=M.exec(t);if(we(!!n),n[1]){var i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}
1var r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:z(t.seconds),nanos:z(t.nanos)}}function z(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function q(t){return"string"==typeof t?T.fromBase64String(t):T.fromUint8Array(t)}function W(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.j()}}function G(t){return!!t&&"integerValue"in t}function K(t){return!!t&&"arrayValue"in t}function Y(t){return!!t&&"nullValue"in t}function Q(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function $(t){return!!t&&"mapValue"in t}var X=function(){function t(){}return t.prototype.ot=function(t,e){return function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(e,t)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t},t}();X.instance=new X;var Z=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e.some((function(e){return L(e,t)}))||e.push(t)},i=0,r=this.elements;i<r.length;i++)n(r[i]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Se(this.elements,e.elements,L)},t}(),J=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e=e.filter((function(e){return!L(e,t)}))},i=0,r=this.elements;i<r.length;i++)n(r[i]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Se(this.elements,e.elements,L)},t}(),tt=function(){function t(t,e){this.serializer=t,this.ct=e}return t.prototype.ot=function(t,e){var n=this.ut(t),i=this.asNumber(n)+this.asNumber(this.ct);return G(n)&&G(this.ct)?this.serializer._t(i):this.serializer.lt(i)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return G(e=t)||function(t){return!!t&&"doubleValue"in t}(e)?t:{integerValue:0};var e},t.prototype.isEqual=function(e){return e instanceof t&&L(this.ct,e.ct)},t.prototype.asNumber=function(t){return z(t.integerValue||t.doubleValue)},t}();function et(t){return K(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var nt=function(){function t(t){this.fields=t,t.sort(x.N)}return t.prototype.dt=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].q(t))return!0;return!1},t.prototype.isEqual=function(t){return Se(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),it=function(){function t(t,e){this.field=t,this.transform=e}return t.prototype.isEqual=function(t){return this.field.isEqual(t.field)&&this.transform.isEqual(t.transform)},t}(),rt=function(t,e){this.version=t,this.transformResults=e},ot=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ft=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tt",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),t.prototype.Et=function(t){return void 0!==this.updateTime?t instanceof yt&&t.version.isEqual(this.updateTime):void 0===this.exists||this.exists===t instanceof yt},t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}(),at=function(){function t(){}return t.prototype.It=function(t){},t.wt=function(t){return t instanceof yt?t.version:b.min()},t}(),st=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).key=e,r.value=n,r.Rt=i,r.type=0,r}return r.__extends(e,t),e.prototype.at=function(t,e){return this.It(t),new yt(this.key,e.version,this.value,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var i=at.wt(t);return new yt(this.key,i,this.value,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.value.isEqual(t.value)&&this.Rt.isEqual(t.Rt)},e}(at),ut=function(t){function e(e,n,i,r){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.Vt=i,o.Rt=r,o.type=1,o}return r.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),!this.Rt.Et(t))return new bt(this.key,e.version);var n=this.gt(t);return new yt(this.key,e.version,n,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var i=at.wt(t),r=this.gt(t);return new yt(this.key,i,r,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Vt.isEqual(t.Vt)&&this.Rt.isEqual(t.Rt)},e.prototype.gt=function(t){var e;return e=t instanceof yt?t.data():ft.empty(),this.pt(e)},e.prototype.pt=function(t){var e=this,n=new dt(t);return this.Vt.fields.forEach((function(t){if(!t.B()){var i=e.data.field(t);null!==i?n.set(t,i):n.delete(t)}})),n.yt()},e}(at),lt=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.fieldTransforms=n,i.type=2,i.Rt=ot.exists(!0),i}return r.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),we(null!=e.transformResults),!this.Rt.Et(t))return new bt(this.key,e.version);var n=this.bt(t),i=this.vt(t,e.transformResults),r=e.version,o=this.St(n.data(),i);return new yt(this.key,r,o,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var i=this.bt(t),r=this.Dt(n,t,e),o=this.St(i.data(),r);return new yt(this.key,i.version,o,{At:!0})},e.prototype.Pt=function(t){for(var e=null,n=0,i=this.fieldTransforms;n<i.length;n++){var r=i[n],o=t instanceof yt?t.field(r.field):void 0,a=r.transform.ut(o||null);null!=a&&(e=null==e?(new dt).set(r.field,a):e.set(r.field,a))}return e?e.yt():null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&Se(this.fieldTransforms,t.fieldTransforms,(function(t,e){return t.isEqual(e)}))&&this.Rt.isEqual(t.Rt)},e.prototype.bt=function(t){return t},e.prototype.vt=function(t,e){var n=[];we(this.fieldTransforms.length===e.length);for(var i=0;i<e.length;i++){var r=this.fieldTransforms[i],o=r.transform,a=null;t instanceof yt&&(a=t.field(r.field)),n.push(o.at(a,e[i]))}return n},e.prototype.Dt=function(t,e,n){for(var i=[],r=0,o=this.fieldTransforms;r<o.length;r++){var a=o[r],s=a.transform,u=null;e instanceof yt&&(u=e.field(a.field)),null===u&&n instanceof yt&&(u=n.field(a.field)),i.push(s.ot(u,t))}return i},e.prototype.St=function(t,e){for(var n=new dt(t),i=0;i<this.fieldTransforms.length;i++)n.set(this.fieldTransforms[i].field,e[i]);return n.yt()},e}(at),ct=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.Rt=n,i.type=3,i}return r.__extends(e,t),e.prototype.at=function(t,e){return this.It(t),new _t(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){return this.It(t),this.Rt.Et(t)?new _t(this.key,b.min()):t},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(at),ht=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.Rt=n,i.type=4,i}return r.__extends(e,t),e.prototype.at=function(t,e){be()},e.prototype.ot=function(t,e,n){be()},e.prototype.Pt=function(t){be()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(at),ft=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.B())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!$(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t.O()])||null},t.prototype.isEqual=function(t){return L(this.proto,t.proto)},t}(),dt=function(){function t(t){void 0===t&&(t=ft.empty()),this.Ct=t,this.Ft=new Map}return t.prototype.set=function(t,e){return this.Nt(t,e),this},t.prototype.delete=function(t){return this.Nt(t,null),this},t.prototype.Nt=function(t,e){for(var n=this.Ft,i=0;i<t.length-1;++i){var r=t.get(i),o=n.get(r);o instanceof Map?n=o:o&&10===F(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(r,o),n=o):(o=new Map,n.set(r,o),n=o)}n.set(t.O(),e)}
1,t.prototype.yt=function(){var t=this.$t(x.G,this.Ft);return null!=t?new ft(t):this.Ct},t.prototype.$t=function(t,e){var n=this,i=!1,r=this.Ct.field(t),o=$(r)?Object.assign({},r.mapValue.fields):{};return e.forEach((function(e,r){if(e instanceof Map){var a=n.$t(t.child(r),e);null!=a&&(o[r]=a,i=!0)}else null!==e?(o[r]=e,i=!0):o.hasOwnProperty(r)&&(delete o[r],i=!0)})),i?{mapValue:{fields:o}}:null},t}();function pt(t){var e=[];return I(t.fields||{},(function(t,n){var i=new x([t]);if($(n)){var r=pt(n.mapValue).fields;if(0===r.length)e.push(i);else for(var o=0,a=r;o<a.length;o++)e.push(i.child(a[o]))}else e.push(i)})),new nt(e)}var mt,vt,gt=function(t,e){this.key=t,this.version=e},yt=function(t){function e(e,n,i,r){var o=this;return(o=t.call(this,e,n)||this).kt=i,o.At=!!r.At,o.hasCommittedMutations=!!r.hasCommittedMutations,o}return r.__extends(e,t),e.prototype.field=function(t){return this.kt.field(t)},e.prototype.data=function(){return this.kt},e.prototype.Lt=function(){return this.kt.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.At===t.At&&this.hasCommittedMutations===t.hasCommittedMutations&&this.kt.isEqual(t.kt)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.kt.toString()+", {hasLocalMutations: "+this.At+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.At||this.hasCommittedMutations},enumerable:!0,configurable:!0}),e}(gt),_t=function(t){function e(e,n,i){var r=this;return(r=t.call(this,e,n)||this).hasCommittedMutations=!(!i||!i.hasCommittedMutations),r}return r.__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}(gt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__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}(gt),wt=function(){function t(t,e,n,i,r,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=i,this.limit=r,this.startAt=o,this.endAt=a,this.Mt=null}return t.prototype.canonicalId=function(){if(null===this.Mt){var t=this.path.j();null!==this.collectionGroup&&(t+="|cg:"+this.collectionGroup),t+="|f:",t+=this.filters.map((function(t){return t.canonicalId()})).join(","),t+="|ob:",t+=this.orderBy.map((function(t){return t.canonicalId()})).join(","),O(this.limit)||(t+="|l:",t+=this.limit),this.startAt&&(t+="|lb:",t+=this.startAt.canonicalId()),this.endAt&&(t+="|ub:",t+=this.endAt.canonicalId()),this.Mt=t}return this.Mt},t.prototype.toString=function(){var t=this.path.j();return null!==this.collectionGroup&&(t+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(t+=", filters: ["+this.filters.join(", ")+"]"),O(this.limit)||(t+=", limit: "+this.limit),this.orderBy.length>0&&(t+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(t+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(t+=", endAt: "+this.endAt.canonicalId()),"Target("+t+")"},t.prototype.isEqual=function(t){if(this.limit!==t.limit)return!1;if(this.orderBy.length!==t.orderBy.length)return!1;for(var e=0;e<this.orderBy.length;e++)if(!this.orderBy[e].isEqual(t.orderBy[e]))return!1;if(this.filters.length!==t.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(t.filters[n]))return!1;return this.collectionGroup===t.collectionGroup&&!!this.path.isEqual(t.path)&&!!(null!==this.startAt?this.startAt.isEqual(t.startAt):null===t.startAt)&&(null!==this.endAt?this.endAt.isEqual(t.endAt):null===t.endAt)},t.prototype.Ot=function(){return S.et(this.path)&&null===this.collectionGroup&&0===this.filters.length},t}(),kt=function(){function t(t,e,n,i,r,o,a,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.xt=n,this.filters=i,this.limit=r,this.Bt=o,this.startAt=a,this.endAt=s,this.qt=null,this.Ut=null,this.startAt&&this.Qt(this.startAt),this.endAt&&this.Qt(this.endAt)}return t.Wt=function(e){return new t(e)},Object.defineProperty(t.prototype,"orderBy",{get:function(){if(null===this.qt){this.qt=[];var t=this.jt(),e=this.Kt();if(null!==t&&null===e)t.Y()||this.qt.push(new Ot(t)),this.qt.push(new Ot(x.J(),"asc"));else{for(var n=!1,i=0,r=this.xt;i<r.length;i++){var o=r[i];this.qt.push(o),o.field.Y()&&(n=!0)}if(!n){var a=this.xt.length>0?this.xt[this.xt.length-1].dir:"asc";this.qt.push(new Ot(x.J(),a))}}}return this.qt},enumerable:!0,configurable:!0}),t.prototype.Gt=function(e){var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.xt.slice(),n,this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.zt=function(e){var n=this.xt.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.Ht=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.Yt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.Jt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,e,this.endAt)},t.prototype.Xt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,e)},t.prototype.Zt=function(e){return new t(e,null,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.te=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.xt.length||1===this.xt.length&&this.xt[0].field.Y())},t.prototype.canonicalId=function(){return this.ee().canonicalId()+"|lt:"+this.Bt},t.prototype.toString=function(){return"Query(target="+this.ee().toString()+"; limitType="+this.Bt+")"},t.prototype.isEqual=function(t){return this.ee().isEqual(t.ee())&&this.Bt===t.Bt},t.prototype.se=function(t,e){for(var n=!1,i=0,r=this.orderBy;i<r.length;i++){var o=r[i],a=o.compare(t,e);if(0!==a)return a;n=n||o.field.Y()}return 0},t.prototype.matches=function(t){return this.ie(t)&&this.ne(t)&&this.re(t)&&this.he(t)}
1,t.prototype.oe=function(){return!O(this.limit)&&"F"===this.Bt},t.prototype.ae=function(){return!O(this.limit)&&"L"===this.Bt},t.prototype.Kt=function(){return this.xt.length>0?this.xt[0].field:null},t.prototype.jt=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n instanceof Ct&&n.ue())return n.field}return null},t.prototype.ce=function(t){for(var e=0,n=this.filters;e<n.length;e++){var i=n[e];if(i instanceof Ct&&t.indexOf(i.op)>=0)return i.op}return null},t.prototype.Ot=function(){return this.ee().Ot()},t.prototype._e=function(){return null!==this.collectionGroup},t.prototype.ee=function(){if(!this.Ut)if("F"===this.Bt)this.Ut=new wt(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var t=[],e=0,n=this.orderBy;e<n.length;e++){var i=n[e];t.push(new Ot(i.field,"desc"===i.dir?"asc":"desc"))}var r=this.endAt?new Tt(this.endAt.position,!this.endAt.before):null,o=this.startAt?new Tt(this.startAt.position,!this.startAt.before):null;this.Ut=new wt(this.path,this.collectionGroup,t,this.filters,this.limit,r,o)}return this.Ut},t.prototype.ie=function(t){var e=t.key.path;return null!==this.collectionGroup?t.key.tt(this.collectionGroup)&&this.path.q(e):S.et(this.path)?this.path.isEqual(e):this.path.U(e)},t.prototype.ne=function(t){for(var e=0,n=this.xt;e<n.length;e++){var i=n[e];if(!i.field.Y()&&null===t.field(i.field))return!1}return!0},t.prototype.re=function(t){for(var e=0,n=this.filters;e<n.length;e++)if(!n[e].matches(t))return!1;return!0},t.prototype.he=function(t){return!(this.startAt&&!this.startAt.le(this.orderBy,t)||this.endAt&&this.endAt.le(this.orderBy,t))},t.prototype.Qt=function(t){},t}(),Ct=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).field=e,r.op=n,r.value=i,r}return r.__extends(e,t),e.create=function(t,n,i){if(t.Y())return"in"===n?new St(t,i):new xt(t,n,i);if(Y(i)){if("=="!==n)throw new d(f.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,i)}if(Q(i)){if("=="!==n)throw new d(f.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,i)}return"array-contains"===n?new Et(t,i):"in"===n?new It(t,i):"array-contains-any"===n?new At(t,i):new e(t,n,i)},e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&F(this.value)===F(e)&&this.de(B(e,this.value))},e.prototype.de=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case">":return t>0;case">=":return t>=0;default:return be()}},e.prototype.ue=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e.prototype.canonicalId=function(){return this.field.j()+this.op.toString()+U(this.value)},e.prototype.isEqual=function(t){return t instanceof e&&this.op===t.op&&this.field.isEqual(t.field)&&L(this.value,t.value)},e.prototype.toString=function(){return this.field.j()+" "+this.op+" "+U(this.value)},e}((function(){})),xt=function(t){function e(e,n,i){var r=this;return(r=t.call(this,e,n,i)||this).key=S.Z(i.referenceValue),r}return r.__extends(e,t),e.prototype.matches=function(t){var e=S.N(t.key,this.key);return this.de(e)},e}(Ct),St=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return S.Z(t.referenceValue)})),i}return r.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Ct),Et=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return K(e)&&j(e.arrayValue,this.value)},e}(Ct),It=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&j(this.value.arrayValue,e)},e}(Ct),At=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!K(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return j(e.value.arrayValue,t)}))},e}(Ct),Tt=function(){function t(t,e){this.position=t,this.before=e}return t.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(t){return U(t)})).join(",")},t.prototype.le=function(t,e){for(var n=0,i=0;i<this.position.length;i++){var r=t[i],o=this.position[i];if(n=r.field.Y()?S.N(S.Z(o.referenceValue),e.key):B(o,e.field(r.field)),"desc"===r.dir&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},t.prototype.isEqual=function(t){if(null===t)return!1;if(this.before!==t.before||this.position.length!==t.position.length)return!1;for(var e=0;e<this.position.length;e++)if(!L(this.position[e],t.position[e]))return!1;return!0},t}(),Ot=function(){function t(t,e){this.field=t,void 0===e&&(e="asc"),this.dir=e,this.fe=t.Y()}return t.prototype.compare=function(t,e){var n=this.fe?S.N(t.key,e.key):function(t,e,n){var i=e.field(t),r=n.field(t);return null!==i&&null!==r?B(i,r):be()}(this.field,t,e);switch(this.dir){case"asc":return n;
1case"desc":return-1*n;default:return be()}},t.prototype.canonicalId=function(){return this.field.j()+this.dir.toString()},t.prototype.toString=function(){return this.field.j()+" ("+this.dir+")"},t.prototype.isEqual=function(t){return this.dir===t.dir&&this.field.isEqual(t.field)},t}(),Dt=function(){function t(t,e,n,i,r,o,a){void 0===r&&(r=b.min()),void 0===o&&(o=b.min()),void 0===a&&(a=T.ht),this.target=t,this.targetId=e,this.Te=n,this.sequenceNumber=i,this.Ee=r,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return t.prototype.Ie=function(e){return new t(this.target,this.targetId,this.Te,e,this.Ee,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.we=function(e,n){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.Re=function(e){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,this.Ee,e,this.resumeToken)},t}(),Pt=function(t){this.count=t};function Rt(t){switch(t){case f.OK:return be();case f.CANCELLED:case f.UNKNOWN:case f.DEADLINE_EXCEEDED:case f.RESOURCE_EXHAUSTED:case f.INTERNAL:case f.UNAVAILABLE:case f.UNAUTHENTICATED:return!1;case f.INVALID_ARGUMENT:case f.NOT_FOUND:case f.ALREADY_EXISTS:case f.PERMISSION_DENIED:case f.FAILED_PRECONDITION:case f.ABORTED:case f.OUT_OF_RANGE:case f.UNIMPLEMENTED:case f.DATA_LOSS:return!0;default:return be()}}function Nt(t){if(void 0===t)return ye("GRPC error has no .code"),f.UNKNOWN;switch(t){case mt.OK:return f.OK;case mt.CANCELLED:return f.CANCELLED;case mt.UNKNOWN:return f.UNKNOWN;case mt.DEADLINE_EXCEEDED:return f.DEADLINE_EXCEEDED;case mt.RESOURCE_EXHAUSTED:return f.RESOURCE_EXHAUSTED;case mt.INTERNAL:return f.INTERNAL;case mt.UNAVAILABLE:return f.UNAVAILABLE;case mt.UNAUTHENTICATED:return f.UNAUTHENTICATED;case mt.INVALID_ARGUMENT:return f.INVALID_ARGUMENT;case mt.NOT_FOUND:return f.NOT_FOUND;case mt.ALREADY_EXISTS:return f.ALREADY_EXISTS;case mt.PERMISSION_DENIED:return f.PERMISSION_DENIED;case mt.FAILED_PRECONDITION:return f.FAILED_PRECONDITION;case mt.ABORTED:return f.ABORTED;case mt.OUT_OF_RANGE:return f.OUT_OF_RANGE;case mt.UNIMPLEMENTED:return f.UNIMPLEMENTED;case mt.DATA_LOSS:return f.DATA_LOSS;default:return be()}}(vt=mt||(mt={}))[vt.OK=0]="OK",vt[vt.CANCELLED=1]="CANCELLED",vt[vt.UNKNOWN=2]="UNKNOWN",vt[vt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",vt[vt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",vt[vt.NOT_FOUND=5]="NOT_FOUND",vt[vt.ALREADY_EXISTS=6]="ALREADY_EXISTS",vt[vt.PERMISSION_DENIED=7]="PERMISSION_DENIED",vt[vt.UNAUTHENTICATED=16]="UNAUTHENTICATED",vt[vt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",vt[vt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",vt[vt.ABORTED=10]="ABORTED",vt[vt.OUT_OF_RANGE=11]="OUT_OF_RANGE",vt[vt.UNIMPLEMENTED=12]="UNIMPLEMENTED",vt[vt.INTERNAL=13]="INTERNAL",vt[vt.UNAVAILABLE=14]="UNAVAILABLE",vt[vt.DATA_LOSS=15]="DATA_LOSS";var Mt=function(){function t(t,e){this.N=t,this.root=e||Lt.EMPTY}return t.prototype.Ae=function(e,n){return new t(this.N,this.root.Ae(e,n,this.N).me(null,null,Lt.Pe,null,null))},t.prototype.remove=function(e){return new t(this.N,this.root.remove(e,this.N).me(null,null,Lt.Pe,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.B();){var n=this.N(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.B();){var i=this.N(t,n.key);if(0===i)return e+n.left.size;i<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.B=function(){return this.root.B()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),t.prototype.Ve=function(){return this.root.Ve()},t.prototype.ge=function(){return this.root.ge()},t.prototype.pe=function(t){return this.root.pe(t)},t.prototype.forEach=function(t){this.pe((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.pe((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ye=function(t){return this.root.ye(t)},t.prototype.be=function(){return new Ft(this.root,null,this.N,!1)},t.prototype.ve=function(t){return new Ft(this.root,t,this.N,!1)},t.prototype.Se=function(){return new Ft(this.root,null,this.N,!0)},t.prototype.De=function(t){return new Ft(this.root,t,this.N,!0)},t}(),Ft=function(){function t(t,e,n,i){this.Ce=i,this.Fe=[];for(var r=1;!t.B();)if(r=e?n(t.key,e):1,i&&(r*=-1),r<0)t=this.Ce?t.left:t.right;else{if(0===r){this.Fe.push(t);break}this.Fe.push(t),t=this.Ce?t.right:t.left}}return t.prototype.Ne=function(){var t=this.Fe.pop(),e={key:t.key,value:t.value};if(this.Ce)for(t=t.left;!t.B();)this.Fe.push(t),t=t.right;else for(t=t.right;!t.B();)this.Fe.push(t),t=t.left;return e},t.prototype.$e=function(){return this.Fe.length>0},t.prototype.ke=function(){if(0===this.Fe.length)return null;var t=this.Fe[this.Fe.length-1];return{key:t.key,value:t.value}},t}(),Lt=function(){function t(e,n,i,r,o){this.key=e,this.value=n,this.color=null!=i?i:t.RED,this.left=null!=r?r:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.me=function(e,n,i,r,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
1null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)},t.prototype.B=function(){return!1},t.prototype.pe=function(t){return this.left.pe(t)||t(this.key,this.value)||this.right.pe(t)},t.prototype.ye=function(t){return this.right.ye(t)||t(this.key,this.value)||this.left.ye(t)},t.prototype.min=function(){return this.left.B()?this:this.left.min()},t.prototype.Ve=function(){return this.min().key},t.prototype.ge=function(){return this.right.B()?this.key:this.right.ge()},t.prototype.Ae=function(t,e,n){var i=this,r=n(t,i.key);return(i=r<0?i.me(null,null,null,i.left.Ae(t,e,n),null):0===r?i.me(null,e,null,null,null):i.me(null,null,null,null,i.right.Ae(t,e,n))).Le()},t.prototype.Me=function(){if(this.left.B())return t.EMPTY;var e=this;return e.left.Oe()||e.left.left.Oe()||(e=e.xe()),(e=e.me(null,null,null,e.left.Me(),null)).Le()},t.prototype.remove=function(e,n){var i,r=this;if(n(e,r.key)<0)r.left.B()||r.left.Oe()||r.left.left.Oe()||(r=r.xe()),r=r.me(null,null,null,r.left.remove(e,n),null);else{if(r.left.Oe()&&(r=r.Be()),r.right.B()||r.right.Oe()||r.right.left.Oe()||(r=r.qe()),0===n(e,r.key)){if(r.right.B())return t.EMPTY;i=r.right.min(),r=r.me(i.key,i.value,null,null,r.right.Me())}r=r.me(null,null,null,null,r.right.remove(e,n))}return r.Le()},t.prototype.Oe=function(){return this.color},t.prototype.Le=function(){var t=this;return t.right.Oe()&&!t.left.Oe()&&(t=t.Ue()),t.left.Oe()&&t.left.left.Oe()&&(t=t.Be()),t.left.Oe()&&t.right.Oe()&&(t=t.Qe()),t},t.prototype.xe=function(){var t=this.Qe();return t.right.left.Oe()&&(t=(t=(t=t.me(null,null,null,null,t.right.Be())).Ue()).Qe()),t},t.prototype.qe=function(){var t=this.Qe();return t.left.left.Oe()&&(t=(t=t.Be()).Qe()),t},t.prototype.Ue=function(){var e=this.me(null,null,t.RED,null,this.right.left);return this.right.me(null,null,this.color,e,null)},t.prototype.Be=function(){var e=this.me(null,null,t.RED,this.left.right,null);return this.left.me(null,null,this.color,null,e)},t.prototype.Qe=function(){var t=this.left.me(null,null,!this.left.color,null,null),e=this.right.me(null,null,!this.right.color,null,null);return this.me(null,null,!this.color,t,e)},t.prototype.We=function(){var t=this.je();return Math.pow(2,t)<=this.size+1},t.prototype.je=function(){if(this.Oe()&&this.left.Oe())throw be();if(this.right.Oe())throw be();var t=this.left.je();if(t!==this.right.je())throw be();return t+(this.Oe()?0:1)},t}();Lt.EMPTY=null,Lt.RED=!0,Lt.Pe=!1,Lt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw be()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw be()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw be()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw be()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw be()},enumerable:!0,configurable:!0}),t.prototype.me=function(t,e,n,i,r){return this},t.prototype.Ae=function(t,e,n){return new Lt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.B=function(){return!0},t.prototype.pe=function(t){return!1},t.prototype.ye=function(t){return!1},t.prototype.Ve=function(){return null},t.prototype.ge=function(){return null},t.prototype.Oe=function(){return!1},t.prototype.We=function(){return!0},t.prototype.je=function(){return 0},t}());var jt=function(){function t(t){this.N=t,this.data=new Mt(this.N)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.Ve()},t.prototype.last=function(){return this.data.ge()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.pe((function(e,n){return t(e),!1}))},t.prototype.Ke=function(t,e){for(var n=this.data.ve(t[0]);n.$e();){var i=n.Ne();if(this.N(i.key,t[1])>=0)return;e(i.key)}},t.prototype.Ge=function(t,e){var n;for(n=void 0!==e?this.data.ve(e):this.data.be();n.$e();
1)if(!t(n.Ne().key))return},t.prototype.ze=function(t){var e=this.data.ve(t);return e.$e()?e.Ne().key:null},t.prototype.be=function(){return new Bt(this.data.be())},t.prototype.ve=function(t){return new Bt(this.data.ve(t))},t.prototype.add=function(t){return this.me(this.data.remove(t).Ae(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.me(this.data.remove(t)):this},t.prototype.B=function(){return this.data.B()},t.prototype.He=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.be(),i=e.data.be();n.$e();){var r=n.Ne().key,o=i.Ne().key;if(0!==this.N(r,o))return!1}return!0},t.prototype.W=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.me=function(e){var n=new t(this.N);return n.data=e,n},t}(),Bt=function(){function t(t){this.Ye=t}return t.prototype.Ne=function(){return this.Ye.Ne().key},t.prototype.$e=function(){return this.Ye.$e()},t}(),Vt=new Mt(S.N);function Ut(){return Vt}function Ht(){return Ut()}var zt=new Mt(S.N);function qt(){return zt}var Wt=new Mt(S.N);function Gt(){return Wt}var Kt=new jt(S.N);function Yt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Kt,i=0,r=t;i<r.length;i++){var o=r[i];n=n.add(o)}return n}var Qt=new jt(xe);function $t(){return Qt}var Xt=function(){function t(t){this.N=t?function(e,n){return t(e,n)||S.N(e.key,n.key)}:function(t,e){return S.N(t.key,e.key)},this.Je=qt(),this.Xe=new Mt(this.N)}return t.Ze=function(e){return new t(e.N)},t.prototype.has=function(t){return null!=this.Je.get(t)},t.prototype.get=function(t){return this.Je.get(t)},t.prototype.first=function(){return this.Xe.Ve()},t.prototype.last=function(){return this.Xe.ge()},t.prototype.B=function(){return this.Xe.B()},t.prototype.indexOf=function(t){var e=this.Je.get(t);return e?this.Xe.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Xe.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.Xe.pe((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.me(e.Je.Ae(t.key,t),e.Xe.Ae(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.me(this.Je.remove(t),this.Xe.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.Xe.be(),i=e.Xe.be();n.$e();){var r=n.Ne().key,o=i.Ne().key;if(!r.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.me=function(e,n){var i=new t;return i.N=this.N,i.Je=e,i.Xe=n,i},t}(),Zt=function(){function t(){this.ts=new Mt(S.N)}return t.prototype.track=function(t){var e=t.doc.key,n=this.ts.get(e);n?0!==t.type&&3===n.type?this.ts=this.ts.Ae(e,t):3===t.type&&1!==n.type?this.ts=this.ts.Ae(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.ts=this.ts.Ae(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.ts=this.ts.remove(e):1===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):be():this.ts=this.ts.Ae(e,t)},t.prototype.es=function(){var t=[];return this.ts.pe((function(e,n){t.push(n)})),t},t}(),Jt=function(){function t(t,e,n,i,r,o,a,s){this.query=t,this.docs=e,this.ss=n,this.docChanges=i,this.ns=r,this.fromCache=o,this.rs=a,this.hs=s}return t.os=function(e,n,i,r){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,Xt.Ze(n),o,i,r,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.ns.B()},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.rs===t.rs&&this.ns.isEqual(t.ns)&&this.query.isEqual(t.query)&&this.docs.isEqual(t.docs)&&this.ss.isEqual(t.ss)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(e[i].type!==n[i].type||!e[i].doc.isEqual(n[i].doc))return!1;return!0},t}(),te=function(){function t(t,e,n,i,r){this.Ee=t,this.as=e,this.us=n,this.cs=i,this._s=r}return t.ls=function(e,n){var i=new Map;return i.set(e,ee.ds(e,n)),new t(b.min(),i,$t(),Ut(),Yt())},t}(),ee=function(){function t(t,e,n,i,r){this.resumeToken=t,this.fs=e,this.Ts=n,this.Es=i,this.Is=r}return t.ds=function(e,n){return new t(T.ht,n,Yt(),Yt(),Yt())},t}(),ne=function(t,e,n,i){this.ws=t,this.removedTargetIds=e,this.key=n,this.Rs=i},ie=function(t,e){this.targetId=t,this.As=e},re=function(t,e,n,i){void 0===n&&(n=T.ht),void 0===i&&(i=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=i},oe=function(){function t(){this.ms=0,this.Ps=ue(),this.Vs=T.ht,this.gs=!1,this.ps=!0}return Object.defineProperty(t.prototype,"fs",{get:function(){return this.gs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.Vs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ys",{get:function(){return 0!==this.ms},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bs",{get:function(){return this.ps},enumerable:!0,configurable:!0}),t.prototype.vs=function(t){t.rt()>0&&(this.ps=!0,this.Vs=t)},t.prototype.Ss=function(){var t=Yt(),e=Yt(),n=Yt();
1return this.Ps.forEach((function(i,r){switch(r){case 0:t=t.add(i);break;case 2:e=e.add(i);break;case 1:n=n.add(i);break;default:be()}})),new ee(this.Vs,this.gs,t,e,n)},t.prototype.Ds=function(){this.ps=!1,this.Ps=ue()},t.prototype.Cs=function(t,e){this.ps=!0,this.Ps=this.Ps.Ae(t,e)},t.prototype.Fs=function(t){this.ps=!0,this.Ps=this.Ps.remove(t)},t.prototype.Ns=function(){this.ms+=1},t.prototype.$s=function(){this.ms-=1},t.prototype.ks=function(){this.ps=!0,this.gs=!0},t}(),ae=function(){function t(t){this.Ls=t,this.Ms=new Map,this.Os=Ut(),this.xs=se(),this.Bs=new jt(xe)}return t.prototype.qs=function(t){for(var e=0,n=t.ws;e<n.length;e++){var i=n[e];t.Rs instanceof yt?this.Us(i,t.Rs):t.Rs instanceof _t&&this.Qs(i,t.key,t.Rs)}for(var r=0,o=t.removedTargetIds;r<o.length;r++)this.Qs(o[r],t.key,t.Rs)},t.prototype.Ws=function(t){var e=this;this.js(t,(function(n){var i=e.Ks(n);switch(t.state){case 0:e.Gs(n)&&i.vs(t.resumeToken);break;case 1:i.$s(),i.ys||i.Ds(),i.vs(t.resumeToken);break;case 2:i.$s(),i.ys||e.removeTarget(n);break;case 3:e.Gs(n)&&(i.ks(),i.vs(t.resumeToken));break;case 4:e.Gs(n)&&(e.zs(n),i.vs(t.resumeToken));break;default:be()}}))},t.prototype.js=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Ms.forEach((function(t,i){n.Gs(i)&&e(i)}))},t.prototype.Hs=function(t){var e=t.targetId,n=t.As.count,i=this.Ys(e);if(i){var r=i.target;if(r.Ot())if(0===n){var o=new S(r.path);this.Qs(e,o,new _t(o,b.min()))}else we(1===n);else this.Js(e)!==n&&(this.zs(e),this.Bs=this.Bs.add(e))}},t.prototype.Xs=function(t){var e=this,n=new Map;this.Ms.forEach((function(i,r){var o=e.Ys(r);if(o){if(i.fs&&o.target.Ot()){var a=new S(o.target.path);null!==e.Os.get(a)||e.Zs(r,a)||e.Qs(r,a,new _t(a,t))}i.bs&&(n.set(r,i.Ss()),i.Ds())}}));var i=Yt();this.xs.forEach((function(t,n){var r=!0;n.Ge((function(t){var n=e.Ys(t);return!n||2===n.Te||(r=!1,!1)})),r&&(i=i.add(t))}));var r=new te(t,n,this.Bs,this.Os,i);return this.Os=Ut(),this.xs=se(),this.Bs=new jt(xe),r},t.prototype.Us=function(t,e){if(this.Gs(t)){var n=this.Zs(t,e.key)?2:0;this.Ks(t).Cs(e.key,n),this.Os=this.Os.Ae(e.key,e),this.xs=this.xs.Ae(e.key,this.ti(e.key).add(t))}},t.prototype.Qs=function(t,e,n){if(this.Gs(t)){var i=this.Ks(t);this.Zs(t,e)?i.Cs(e,1):i.Fs(e),this.xs=this.xs.Ae(e,this.ti(e).delete(t)),n&&(this.Os=this.Os.Ae(e,n))}},t.prototype.removeTarget=function(t){this.Ms.delete(t)},t.prototype.Js=function(t){var e=this.Ks(t).Ss();return this.Ls.ei(t).size+e.Ts.size-e.Is.size},t.prototype.Ns=function(t){this.Ks(t).Ns()},t.prototype.Ks=function(t){var e=this.Ms.get(t);return e||(e=new oe,this.Ms.set(t,e)),e},t.prototype.ti=function(t){var e=this.xs.get(t);return e||(e=new jt(xe),this.xs=this.xs.Ae(t,e)),e},t.prototype.Gs=function(t){var e=null!==this.Ys(t);return e||ge("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ys=function(t){var e=this.Ms.get(t);return e&&e.ys?null:this.Ls.si(t)},t.prototype.zs=function(t){var e=this;this.Ms.set(t,new oe),this.Ls.ei(t).forEach((function(n){e.Qs(t,n,null)}))},t.prototype.Zs=function(t,e){return this.Ls.ei(t).has(e)},t}();function se(){return new Mt(S.N)}function ue(){return new Mt(S.N)}var le={asc:"ASCENDING",desc:"DESCENDING"},ce={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},he=function(){function t(t,e){this.ii=t,this.options=e}return t.prototype.ni=function(t){var e=void 0===t.code?f.UNKNOWN:Nt(t.code);return new d(e,t.message||"")},t.prototype.ri=function(t){return this.options.hi||O(t)?t:{value:t}},t.prototype.oi=function(t){var e;return O(e="object"==typeof t?t.value:t)?null:e},t.prototype._t=function(t){return{integerValue:""+t}},t.prototype.lt=function(t){if(this.options.hi){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:D(t)?"-0":t}},t.prototype.ai=function(t){return P(t)?this._t(t):this.lt(t)},t.prototype.C=function(t){return this.options.hi?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}},t.prototype.v=function(t){var e=H(t);return new _(e.seconds,e.nanos)},t.prototype.ui=function(t){return this.options.hi?t.toBase64():t.toUint8Array()},t.prototype.ci=function(t){return this.options.hi?(we(void 0===t||"string"==typeof t),T.fromBase64String(t||"")):(we(void 0===t||t instanceof Uint8Array),T.fromUint8Array(t||new Uint8Array))},t.prototype.toVersion=function(t){return this.C(t.C())},t.prototype.fromVersion=function(t){return we(!!t),b.v(this.v(t))},t.prototype._i=function(t,e){return this.li(e||this.ii).child("documents").child(t).j()},t.prototype.di=function(t){var e=k.K(t);return we(fe(e)),e},t.prototype.fi=function(t){return this._i(t.path)},t.prototype.Z=function(t){var e=this.di(t);return we(e.get(1)===this.ii.projectId),we(!e.get(3)&&!this.ii.database||e.get(3)===this.ii.database),new S(this.Ti(e))},t.prototype.Ei=function(t){return this._i(t)},t.prototype.Ii=function(t){var e=this.di(t);return 4===e.length?k.G:this.Ti(e)},Object.defineProperty(t.prototype,"wi",{get:function(){return new k(["projects",this.ii.projectId,"databases",this.ii.database]).j()},enumerable:!0,configurable:!0}),t.prototype.li=function(t){return new k(["projects",t.projectId,"databases",t.database])},t.prototype.Ti=function(t){return we(t.length>4&&"documents"===t.get(4)),t.k(5)},t.prototype.Ri=function(t,e){return{name:this.fi(t),fields:e.proto.mapValue.fields}},t.prototype.Ai=function(t){return{name:this.fi(t.key),fields:t.Lt().mapValue.fields,updateTime:this.C(t.version.C())}},t.prototype.mi=function(t,e){var n=this.Z(t.name),i=this.fromVersion(t.updateTime),r=new ft({mapValue:{fields:t.fields}});return new yt(n,i,r,{hasCommittedMutations:!!e})},t.prototype.Pi=function(t){we(!!t.found);var e=this.Z(t.found.name),n=this.fromVersion(t.found.updateTime),i=new ft({mapValue:{fields:t.found.fields}});return new yt(e,n,i,{})},t.prototype.Vi=function(t){we(!!t.missing),we(!!t.readTime);var e=this.Z(t.missing),n=this.fromVersion(t.readTime);return new _t(e,n)},t.prototype.gi=function(t){return"found"in t?this.Pi(t):"missing"in t?this.Vi(t):be()},t.prototype.pi=function(t){var e;if("targetChange"in t){var n=this.yi(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],r=this.ci(t.targetChange.resumeToken),o=t.targetChange.cause,a=o&&this.ni(o);e=new re(n,i,r,a||null)}else if("documentChange"in t){var s=t.documentChange,u=this.Z(s.document.name),l=this.fromVersion(s.document.updateTime),c=new ft({mapValue:{fields:s.document.fields}}),h=new yt(u,l,c,{});e=new ne(s.targetIds||[],s.removedTargetIds||[],h.key,h)}else if("documentDelete"in t){var f=t.documentDelete,d=this.Z(f.document),p=f.readTime?this.fromVersion(f.readTime):b.min(),m=new _t(d,p);e=new ne([],f.removedTargetIds||[],m.key,m)}else if("documentRemove"in t){var v=t.documentRemove,g=this.Z(v.document);e=new ne([],v.removedTargetIds||[],g,null)}else{if(!("filter"in t))return be();var y=t.filter,_=new Pt(y.count||0);e=new ie(y.targetId,_)}return e},t.prototype.yi=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:be()},t.prototype.bi=function(t){if(!("targetChange"in t))return b.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?b.min():e.readTime?this.fromVersion(e.readTime):b.min()},t.prototype.vi=function(t){var e,n=this;if(t instanceof st)e={update:this.Ri(t.key,t.value)};else if(t instanceof ct)e={delete:this.fi(t.key)};else if(t instanceof ut)e={update:this.Ri(t.key,t.data),updateMask:this.Si(t.Vt)};else if(t instanceof lt)e={transform:{document:this.fi(t.key),fieldTransforms:t.fieldTransforms.map((function(t){return n.Di(t)}))}};else{if(!(t instanceof ht))return be();e={verify:this.fi(t.key)}}return t.Rt.Tt||(e.currentDocument=this.Ci(t.Rt)),e},t.prototype.Fi=function(t){var e=this,n=t.currentDocument?this.Ni(t.currentDocument):ot.ft();if(t.update){var i=this.Z(t.update.name),r=new ft({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=this.$i(t.updateMask);return new ut(i,r,o,n)}return new st(i,r,n)}if(t.delete){var a=this.Z(t.delete);return new ct(a,n)}if(t.transform){var s=this.Z(t.transform.document),u=t.transform.fieldTransforms.map((function(t){return e.ki(t)}));return we(!0===n.exists),new lt(s,u)}if(t.verify){var l=this.Z(t.verify);return new ht(l,n)}return be()},t.prototype.Ci=function(t){return void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:be()},t.prototype.Ni=function(t){return void 0!==t.updateTime?ot.updateTime(this.fromVersion(t.updateTime)):void 0!==t.exists?ot.exists(t.exists):ot.ft()},t.prototype.Li=function(t,e){var n=this.fromVersion(t.updateTime?t.updateTime:e);n.isEqual(b.min())&&(n=this.fromVersion(e));var i=null;return t.transformResults&&t.transformResults.length>0&&(i=t.transformResults),new rt(n,i)},t.prototype.Mi=function(t,e){var n=this;return t&&t.length>0?(we(void 0!==e),t.map((function(t){return n.Li(t,e)}))):[]},t.prototype.Di=function(t){var e=t.transform;if(e instanceof X)return{fieldPath:t.field.j(),setToServerValue:"REQUEST_TIME"};if(e instanceof Z)return{fieldPath:t.field.j(),appendMissingElements:{values:e.elements}};if(e instanceof J)return{fieldPath:t.field.j(),removeAllFromArray:{values:e.elements}};if(e instanceof tt)return{fieldPath:t.field.j(),increment:e.ct};throw be()},t.prototype.ki=function(t){var e=null;"setToServerValue"in t?(we("REQUEST_TIME"===t.setToServerValue),e=X.instance):"appendMissingElements"in t?e=new Z(t.appendMissingElements.values||[]):"removeAllFromArray"in t?e=new J(t.removeAllFromArray.values||[]):"increment"in t?e=new tt(this,t.increment):be();var n=x.X(t.fieldPath);return new it(n,e)},t.prototype.Oi=function(t){return{documents:[this.Ei(t.path)]}},t.prototype.xi=function(t){return we(1===t.documents.length),kt.Wt(this.Ii(t.documents[0])).ee()},t.prototype.Bi=function(t){var e={structuredQuery:{}},n=t.path;null!==t.collectionGroup?(e.parent=this.Ei(n),e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(e.parent=this.Ei(n.L()),e.structuredQuery.from=[{collectionId:n.O()}]);var i=this.qi(t.filters);i&&(e.structuredQuery.where=i);var r=this.Ui(t.orderBy);r&&(e.structuredQuery.orderBy=r);var o=this.ri(t.limit);return null!==o&&(e.structuredQuery.limit=o),t.startAt&&(e.structuredQuery.startAt=this.Qi(t.startAt)),t.endAt&&(e.structuredQuery.endAt=this.Qi(t.endAt)),e},t.prototype.Wi=function(t){var e=this.Ii(t.parent),n=t.structuredQuery,i=n.from?n.from.length:0,r=null;if(i>0){we(1===i);var o=n.from[0];o.allDescendants?r=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=this.ji(n.where));var s=[];n.orderBy&&(s=this.Ki(n.orderBy));var u=null;n.limit&&(u=this.oi(n.limit));var l=null;n.startAt&&(l=this.Gi(n.startAt));var c=null;return n.endAt&&(c=this.Gi(n.endAt)),new kt(e,r,s,a,u,"F",l,c).ee()},t.prototype.zi=function(t){var e=this.Hi(t.Te);return null==e?null:{"goog-listen-tags":e}},t.prototype.Hi=function(t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return be()}},t.prototype.ee=function(t){var e,n=t.target;return(e=n.Ot()?{documents:this.Oi(n)}:{query:this.Bi(n)}).targetId=t.targetId,t.resumeToken.rt()>0&&(e.resumeToken=this.ui(t.resumeToken)),e},t.prototype.qi=function(t){var e=this;if(0!==t.length){var n=t.map((function(t){return t instanceof Ct?e.Yi(t):be()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},t.prototype.ji=function(t){var e=this;return t?void 0!==t.unaryFilter?[this.Ji(t)]:void 0!==t.fieldFilter?[this.Xi(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return e.ji(t)})).reduce((function(t,e){return t.concat(e)})):be():[]},t.prototype.Ui=function(t){var e=this;if(0!==t.length)return t.map((function(t){return e.Zi(t)}))},t.prototype.Ki=function(t){var e=this;return t.map((function(t){return e.tn(t)}))},t.prototype.Qi=function(t){return{before:t.before,values:t.position}},t.prototype.Gi=function(t){return new Tt(t.values||[],!!t.before)},t.prototype.en=function(t){return le[t]},t.prototype.sn=function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}},t.prototype.nn=function(t){return ce[t]},t.prototype.rn=function(t){switch(t){case"EQUAL":return"==";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return be()}},t.prototype.hn=function(t){return{fieldPath:t.j()}},t.prototype.on=function(t){return x.X(t.fieldPath)},t.prototype.Zi=function(t){return{field:this.hn(t.field),direction:this.en(t.dir)}},t.prototype.tn=function(t){return new Ot(this.on(t.field),this.sn(t.direction))},t.prototype.Xi=function(t){return Ct.create(this.on(t.fieldFilter.field),this.rn(t.fieldFilter.op),t.fieldFilter.value)},t.prototype.Yi=function(t){if("=="===t.op){if(Q(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NAN"}};if(Y(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.hn(t.field),op:this.nn(t.op),value:t.value}}},t.prototype.Ji=function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=this.on(t.unaryFilter.field);return Ct.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return Ct.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return be()}},t.prototype.Si=function(t){var e=[];return t.fields.forEach((function(t){return e.push(t.j())})),{fieldPaths:e}},t.prototype.$i=function(t){return new nt((t.fieldPaths||[]).map((function(t){return x.X(t)})))},t}();function fe(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var de=function(){function t(){}return t.an=function(e){t.platform&&be(),t.platform=e},t.nt=function(){return t.platform||be(),t.platform},t}(),pe=new a.Logger("@firebase/firestore");function me(){return pe.logLevel}function ve(t){pe.logLevel=t}function ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=a.LogLevel.DEBUG){var i=e.map(_e);pe.debug.apply(pe,r.__spreadArrays(["Firestore ("+c+"): "+t],i))}}function ye(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=a.LogLevel.ERROR){var i=e.map(_e);pe.error.apply(pe,r.__spreadArrays(["Firestore ("+c+"): "+t],i))}}function _e(t){if("string"==typeof t)return t;var e=de.nt();try{return e.un(t)}catch(e){return t}}function be(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE ("+c+") INTERNAL ASSERTION FAILED: "+t;throw ye(e),new Error(e)}function we(t,e){t||be()}function ke(t,e){return t}var Ce=function(){function t(){}return t.cn=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var i=de.nt()._n(40),r=0;r<i.length;++r)n.length<20&&i[r]<e&&(n+=t.charAt(i[r]%t.length));return n},t}();function xe(t,e){return t<e?-1:t>e?1:0}function Se(t,e,n){return t.length===e.length&&t.every((function(t,i){return n(t,e[i])}))}function Ee(t){return t+"\0"}var Ie=function(t,e,n,i,r){this.ii=t,this.persistenceKey=e,this.host=n,this.ssl=i,this.forceLongPolling=r},Ae=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"ln",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.S=function(t){return xe(this.projectId,t.projectId)||xe(this.database,t.database)},t}(),Te=function(){function t(t){this.dn=t,this.fn={}}return t.prototype.get=function(t){var e=this.dn(t),n=this.fn[e];if(void 0!==n)for(var i=0,r=n;i<r.length;i++){var o=r[i],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.dn(t),i=this.fn[n];if(void 0!==i){for(var r=0;r<i.length;r++)if(i[r][0].isEqual(t))return void(i[r]=[t,e]);i.push([t,e])}else this.fn[n]=[[t,e]]},t.prototype.delete
1=function(t){var e=this.dn(t),n=this.fn[e];if(void 0===n)return!1;for(var i=0;i<n.length;i++)if(n[i][0].isEqual(t))return 1===n.length?delete this.fn[e]:n.splice(i,1),!0;return!1},t.prototype.forEach=function(t){I(this.fn,(function(e,n){for(var i=0,r=n;i<r.length;i++){var o=r[i];t(o[0],o[1])}}))},t.prototype.B=function(){return A(this.fn)},t}(),Oe=function(){function t(t,e,n,i){this.batchId=t,this.Tn=e,this.baseMutations=n,this.mutations=i}return t.prototype.at=function(t,e,n){for(var i=n.En,r=0;r<this.mutations.length;r++){var o=this.mutations[r];o.key.isEqual(t)&&(e=o.at(e,i[r]))}return e},t.prototype.ot=function(t,e){for(var n=0,i=this.baseMutations;n<i.length;n++){var r=i[n];r.key.isEqual(t)&&(e=r.ot(e,e,this.Tn))}for(var o=e,a=0,s=this.mutations;a<s.length;a++){var u=s[a];u.key.isEqual(t)&&(e=u.ot(e,o,this.Tn))}return e},t.prototype.In=function(t){var e=this,n=t;return this.mutations.forEach((function(i){var r=e.ot(i.key,t.get(i.key));r&&(n=n.Ae(i.key,r))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),Yt())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Se(this.mutations,t.mutations,(function(t,e){return t.isEqual(e)}))&&Se(this.baseMutations,t.baseMutations,(function(t,e){return t.isEqual(e)}))},t}(),De=function(){function t(t,e,n,i,r){this.batch=t,this.wn=e,this.En=n,this.streamToken=i,this.Rn=r}return t.from=function(e,n,i,r){we(e.mutations.length===i.length);for(var o=Gt(),a=e.mutations,s=0;s<a.length;s++)o=o.Ae(a[s].key,i[s].version);return new t(e,n,i,r,o)},t}(),Pe=function(){function t(t){var e=this;this.An=null,this.mn=null,this.result=void 0,this.error=void 0,this.Pn=!1,this.Vn=!1,t((function(t){e.Pn=!0,e.result=t,e.An&&e.An(t)}),(function(t){e.Pn=!0,e.error=t,e.mn&&e.mn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var i=this;return this.Vn&&be(),this.Vn=!0,this.Pn?this.error?this.gn(n,this.error):this.pn(e,this.result):new t((function(t,r){i.An=function(n){i.pn(e,n).next(t,r)},i.mn=function(e){i.gn(n,e).next(t,r)}}))},t.prototype.yn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.bn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.pn=function(e,n){return e?this.bn((function(){return e(n)})):t.resolve(n)},t.prototype.gn=function(e,n){return e?this.bn((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.vn=function(e){return new t((function(t,n){var i=0,r=0,o=!1;e.forEach((function(e){++i,e.next((function(){++r,o&&r===i&&t()}),(function(t){return n(t)}))})),o=!0,r===i&&t()}))},t.Sn=function(e){for(var n=t.resolve(!1),i=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},r=0,o=e;r<o.length;r++)i(o[r]);return n},t.forEach=function(t,e){var n=this,i=[];return t.forEach((function(t,r){i.push(e.call(n,t,r))})),this.vn(i)},t}(),Re=function(){function t(){this.Dn=new Te((function(t){return t.toString()})),this.Cn=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Fn},set:function(t){this.Fn=t},enumerable:!0,configurable:!0}),t.prototype.Nn=function(t,e){this.$n(),this.readTime=e,this.Dn.set(t.key,t)},t.prototype.kn=function(t,e){this.$n(),e&&(this.readTime=e),this.Dn.set(t,null)},t.prototype.Ln=function(t,e){this.$n();var n=this.Dn.get(e);return void 0!==n?Pe.resolve(n):this.Mn(t,e)},t.prototype.getEntries=function(t,e){return this.On(t,e)},t.prototype.apply=function(t){return this.$n(),this.Cn=!0,this.xn(t)},t.prototype.$n=function(){},t}(),Ne="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Me=function(){function t(){this.Bn=[]}return t.prototype.qn=function(t){this.Bn.push(t)},t.prototype.Un=function(){this.Bn.forEach((function(t){return t()}))},t}(),Fe=function(){function t(t,e,n){this.Qn=t,this.Wn=e,this.jn=n}return t.prototype.Kn=function(t,e){var n=this;return this.Wn.Gn(t,e).next((function(i){return n.zn(t,e,i)}))},t.prototype.zn=function(t,e,n){return this.Qn.Ln(t,e).next((function(t){for(var i=0,r=n;i<r.length;i++)t=r[i].ot(e,t);return t}))},t.prototype.Hn=function(t,e,n){var i=Ht();return e.forEach((function(t,e){for(var r=0,o=n;r<o.length;r++)e=o[r].ot(t,e);i=i.Ae(t,e)})),i},t.prototype.Yn=function(t,e){var n=this;return this.Qn.getEntries(t,e).next((function(e){return n.Jn(t,e)}))},t.prototype.Jn=function(t,e){var n=this;return this.Wn.Xn(t,e).next((function(i){var r=n.Hn(t,e,i),o=Ut();return r.forEach((function(t,e){e||(e=new _t(t,b.min())),o=o.Ae(t,e)})),o}))},t.prototype.Zn=function(t,e,n){return e.Ot()?this.tr(t,e.path):e._e()?this.er(t,e,n):this.sr(t,e,n)},t.prototype.tr=function(t,e){return this.Kn(t,new S(e)).next((function(t){var e=qt();return t instanceof yt&&(e=e.Ae(t.key,t)),e}))},t.prototype.er=function(t,e,n){var i=this,r=e.collectionGroup,o=qt();return this.jn.ir(t,r).next((function(a){return Pe.forEach(a,(function(a){var s=e.Zt(a.child(r));return i.sr(t,s,n).next((function(t){t.forEach((function(t,e){o=o.Ae(t,e)}))}
1))})).next((function(){return o}))}))},t.prototype.sr=function(t,e,n){var i,r,o=this;return this.Qn.Zn(t,e,n).next((function(n){return i=n,o.Wn.nr(t,e)})).next((function(e){return o.rr(t,r=e,i).next((function(t){i=t;for(var e=0,n=r;e<n.length;e++)for(var o=n[e],a=0,s=o.mutations;a<s.length;a++){var u=s[a],l=u.key,c=i.get(l),h=u.ot(c,c,o.Tn);i=h instanceof yt?i.Ae(l,h):i.remove(l)}}))})).next((function(){return i.forEach((function(t,n){e.matches(n)||(i=i.remove(t))})),i}))},t.prototype.rr=function(t,e,n){for(var i=Yt(),r=0,o=e;r<o.length;r++)for(var a=0,s=o[r].mutations;a<s.length;a++){var u=s[a];u instanceof ut&&null===n.get(u.key)&&(i=i.add(u.key))}var l=n;return this.Qn.getEntries(t,i).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof yt&&(l=l.Ae(t,e))})),l}))},t}(),Le=function(){function t(t,e,n,i){this.targetId=t,this.fromCache=e,this.hr=n,this.or=i}return t.ar=function(e,n){for(var i=Yt(),r=Yt(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:r=r.add(s.doc.key)}}return new t(e,n.fromCache,i,r)},t}(),je=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.ur=function(t){return n.cr(t)},this._r=function(t){return e.lr(t)})}return t.prototype.cr=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this._r&&this._r(t),t},t}();je.dr=-1;var Be=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Ve=function(){function t(t,e,n,i,r){void 0===n&&(n=1e3),void 0===i&&(i=1.5),void 0===r&&(r=6e4),this.Tr=t,this.Er=e,this.Ir=n,this.wr=i,this.Rr=r,this.Ar=0,this.mr=null,this.Pr=Date.now(),this.reset()}return t.prototype.reset=function(){this.Ar=0},t.prototype.Vr=function(){this.Ar=this.Rr},t.prototype.gr=function(t){var e=this;this.cancel();var n=Math.floor(this.Ar+this.pr()),i=Math.max(0,Date.now()-this.Pr),r=Math.max(0,n-i);r>0&&ge("ExponentialBackoff","Backing off for "+r+" ms (base delay: "+this.Ar+" ms, delay with jitter: "+n+" ms, last attempt: "+i+" ms ago)"),this.mr=this.Tr.yr(this.Er,r,(function(){return e.Pr=Date.now(),t()})),this.Ar*=this.wr,this.Ar<this.Ir&&(this.Ar=this.Ir),this.Ar>this.Rr&&(this.Ar=this.Rr)},t.prototype.br=function(){null!==this.mr&&(this.mr.vr(),this.mr=null)},t.prototype.cancel=function(){null!==this.mr&&(this.mr.cancel(),this.mr=null)},t.prototype.pr=function(){return(Math.random()-.5)*this.Ar},t}();function Ue(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=ze(e)),e=He(t.get(n),e);return ze(e)}function He(t,e){for(var n=e,i=t.length,r=0;r<i;r++){var o=t.charAt(r);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function ze(t){return t+"\x01\x01"}function qe(t){var e=t.length;if(we(e>=2),2===e)return we("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),k.G;for(var n=e-2,i=[],r="",o=0;o<e;){var a=t.indexOf("\x01",o);switch((a<0||a>n)&&be(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),u=void 0;0===r.length?u=s:(u=r+=s,r=""),i.push(u);break;case"\x10":r+=t.substring(o,a),r+="\0";break;case"\x11":r+=t.substring(o,a+1);break;default:be()}o=a+2}return new k(i)}var We=function(){function t(){this.Sr=new Ge}return t.prototype.Dr=function(t,e){return this.Sr.add(e),Pe.resolve()},t.prototype.ir=function(t,e){return Pe.resolve(this.Sr.getEntries(e))},t}(),Ge=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.O(),n=t.L(),i=this.index[e]||new jt(k.N),r=!i.has(n);return this.index[e]=i.add(n),r},t.prototype.has=function(t){var e=t.O(),n=t.L(),i=this.index[e];return i&&i.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new jt(k.N)).W()},t}(),Ke=function(){function t(){this.Cr=new Ge}return t.prototype.Dr=function(t,e){var n=this;if(!this.Cr.has(e)){var i=e.O(),r=e.L();t.qn((function(){n.Cr.add(e)}));var o={collectionId:i,parent:Ue(r)};return Ye(t).put(o)}return Pe.resolve()},t.prototype.ir=function(t,e){var n=[],i=IDBKeyRange.bound([e,""],[Ee(e),""],!1,!0);return Ye(t).Fr(i).next((function(t){for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o.collectionId!==e)break;n.push(qe(o.parent))}return n}))},t}();function Ye(t){return ln.Nr(t,Nn.store)}
1var Qe=function(){function t(t,e){this.serializer=t,this.jn=e}return t.prototype.Nn=function(t,e,n){return Xe(t).put(Ze(e),n)},t.prototype.kn=function(t,e){var n=Xe(t),i=Ze(e);return n.delete(i)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(i){return i.byteSize+=e,n.$r(t,i)}))},t.prototype.Ln=function(t,e){var n=this;return Xe(t).get(Ze(e)).next((function(t){return n.kr(t)}))},t.prototype.Lr=function(t,e){var n=this;return Xe(t).get(Ze(e)).next((function(t){var e=n.kr(t);return e?{Mr:e,size:Je(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,i=Ht();return this.Or(t,e,(function(t,e){var r=n.kr(e);i=i.Ae(t,r)})).next((function(){return i}))},t.prototype.xr=function(t,e){var n=this,i=Ht(),r=new Mt(S.N);return this.Or(t,e,(function(t,e){var o=n.kr(e);o?(i=i.Ae(t,o),r=r.Ae(t,Je(e))):(i=i.Ae(t,null),r=r.Ae(t,0))})).next((function(){return{Br:i,qr:r}}))},t.prototype.Or=function(t,e,n){if(e.B())return Pe.resolve();var i=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),r=e.be(),o=r.Ne();return Xe(t).Ur({range:i},(function(t,e,i){for(var a=S.st(t);o&&S.N(o,a)<0;)n(o,null),o=r.Ne();o&&o.isEqual(a)&&(n(o,e),o=r.$e()?r.Ne():null),o?i.Qr(o.path.W()):i.done()})).next((function(){for(;o;)n(o,null),o=r.$e()?r.Ne():null}))},t.prototype.Zn=function(t,e,n){var i=this,r=qt(),o=e.path.length+1,a={};if(n.isEqual(b.min())){var s=e.path.W();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.W(),l=this.serializer.Wr(n);a.range=IDBKeyRange.lowerBound([u,l],!0),a.index=Tn.collectionReadTimeIndex}return Xe(t).Ur(a,(function(t,n,a){if(t.length===o){var s=i.serializer.jr(n);e.path.q(s.key.path)?s instanceof yt&&e.matches(s)&&(r=r.Ae(s.key,s)):a.done()}})).next((function(){return r}))},t.prototype.Kr=function(t,e){var n=this,i=Ut(),r=this.serializer.Wr(e),o=Xe(t),a=IDBKeyRange.lowerBound(r,!0);return o.Ur({index:Tn.readTimeIndex,range:a},(function(t,e){var o=n.serializer.jr(e);i=i.Ae(o.key,o),r=e.readTime})).next((function(){return{Gr:i,readTime:n.serializer.zr(r)}}))},t.prototype.Hr=function(t){var e=this,n=Xe(t),i=b.min();return n.Ur({index:Tn.readTimeIndex,reverse:!0},(function(t,n,r){n.readTime&&(i=e.serializer.zr(n.readTime)),r.done()})).next((function(){return i}))},t.prototype.Yr=function(e){return new t.Jr(this,!!e&&e.Xr)},t.prototype.Zr=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return $e(t).get(On.key).next((function(t){return we(!!t),t}))},t.prototype.$r=function(t,e){return $e(t).put(On.key,e)},t.prototype.kr=function(t){if(t){var e=this.serializer.jr(t);return e instanceof _t&&e.version.isEqual(b.min())?null:e}return null},t}();function $e(t){return ln.Nr(t,On.store)}function Xe(t){return ln.Nr(t,Tn.store)}function Ze(t){return t.path.W()}function Je(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw be();e=t.noDocument}return JSON.stringify(e).length}Qe.Jr=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).th=e,i.Xr=n,i.eh=new Te((function(t){return t.toString()})),i}return r.__extends(e,t),e.prototype.xn=function(t){var e=this,n=[],i=0,r=new jt((function(t,e){return xe(t.j(),e.j())}));return this.Dn.forEach((function(o,a){var s=e.eh.get(o);if(a){var u=e.th.serializer.sh(a,e.readTime);r=r.add(o.path.L());var l=Je(u);i+=l-s,n.push(e.th.Nn(t,o,u))}
1else if(i-=s,e.Xr){var c=e.th.serializer.sh(new _t(o,b.min()),e.readTime);n.push(e.th.Nn(t,o,c))}else n.push(e.th.kn(t,o))})),r.forEach((function(i){n.push(e.th.jn.Dr(t,i))})),n.push(this.th.updateMetadata(t,i)),Pe.vn(n)},e.prototype.Mn=function(t,e){var n=this;return this.th.Lr(t,e).next((function(t){return null===t?(n.eh.set(e,0),null):(n.eh.set(e,t.size),t.Mr)}))},e.prototype.On=function(t,e){var n=this;return this.th.xr(t,e).next((function(t){var e=t.Br;return t.qr.forEach((function(t,e){n.eh.set(t,e)})),e}))},e}(Re);var tn=function(){function t(t){this.ih=t}return t.prototype.next=function(){return this.ih+=2,this.ih},t.nh=function(){return new t(0)},t.rh=function(){return new t(-1)},t}(),en=function(){function t(t,e){this.hh=t,this.serializer=e}return t.prototype.oh=function(t){var e=this;return this.ah(t).next((function(n){var i=new tn(n.highestTargetId);return n.highestTargetId=i.next(),e.uh(t,n).next((function(){return n.highestTargetId}))}))},t.prototype._h=function(t){return this.ah(t).next((function(t){return b.v(new _(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.lh=function(t){return this.ah(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.dh=function(t,e,n){var i=this;return this.ah(t).next((function(r){return r.highestListenSequenceNumber=e,n&&(r.lastRemoteSnapshotVersion=n.C()),e>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=e),i.uh(t,r)}))},t.prototype.fh=function(t,e){var n=this;return this.Th(t,e).next((function(){return n.ah(t).next((function(i){return i.targetCount+=1,n.Eh(e,i),n.uh(t,i)}))}))},t.prototype.Ih=function(t,e){return this.Th(t,e)},t.prototype.wh=function(t,e){var n=this;return this.Rh(t,e.targetId).next((function(){return nn(t).delete(e.targetId)})).next((function(){return n.ah(t)})).next((function(e){return we(e.targetCount>0),e.targetCount-=1,n.uh(t,e)}))},t.prototype.Ah=function(t,e,n){var i=this,r=0,o=[];return nn(t).Ur((function(a,s){var u=i.serializer.mh(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(r++,o.push(i.wh(t,u)))})).next((function(){return Pe.vn(o)})).next((function(){return r}))},t.prototype.js=function(t,e){var n=this;return nn(t).Ur((function(t,i){var r=n.serializer.mh(i);e(r)}))},t.prototype.ah=function(t){return rn(t).get(Rn.key).next((function(t){return we(null!==t),t}))},t.prototype.uh=function(t,e){return rn(t).put(Rn.key,e)},t.prototype.Th=function(t,e){return nn(t).put(this.serializer.Ph(e))},t.prototype.Eh=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.Vh=function(t){return this.ah(t).next((function(t){return t.targetCount}))},t.prototype.gh=function(t,e){var n=this,i=e.canonicalId(),r=IDBKeyRange.bound([i,Number.NEGATIVE_INFINITY],[i,Number.POSITIVE_INFINITY]),o=null;return nn(t).Ur({range:r,index:Dn.queryTargetsIndexName},(function(t,i,r){var a=n.serializer.mh(i);e.isEqual(a.target)&&(o=a,r.done())})).next((function(){return o}))},t.prototype.ph=function(t,e,n){var i=this,r=[],o=on(t);return e.forEach((function(e){var a=Ue(e.path);r.push(o.put(new Pn(n,a))),r.push(i.hh.yh(t,n,e))})),Pe.vn(r)},t.prototype.bh=function(t,e,n){var i=this,r=on(t);return Pe.forEach(e,(function(e){var o=Ue(e.path);return Pe.vn([r.delete([n,o]),i.hh.vh(t,n,e)])}))},t.prototype.Rh=function(t,e){var n=on(t),i=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(i)},t.prototype.Sh=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),i=on(t),r=Yt();return i.Ur({range:n,Dh:!0},(function(t,e,n){var i=qe(t[1]),o=new S(i);r=r.add(o)})).next((function(){return r}))},t.prototype.Ch=function(t,e){var n=Ue(e.path),i=IDBKeyRange.bound([n],[Ee(n)],!1,!0),r=0;return on(t).Ur({index:Pn.documentTargetsIndex,Dh:!0,range:i},(function(t,e,n){0!==t[0]&&(r++,n.done())})).next((function(){return r>0}))},t.prototype.si=function(t,e){var n=this;return nn(t).get(e).next((function(t){return t?n.serializer.mh(t):null}))},t}();function nn(t){return ln.Nr(t,Dn.store)}function rn(t){return ln.Nr(t,Rn.store)}function on(t){return ln.Nr(t,Pn.store)}var an=function(){function t(t){this.Fh=t}return t.prototype.jr=function(t){if(t.document)return this.Fh.mi(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=S.st(t.noDocument.path),n=this.Nh(t.noDocument.readTime);return new _t(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var i=S.st(t.unknownDocument.path),r=this.Nh(t.unknownDocument.version);return new bt(i,r)}return be()},t.prototype.sh=function(t,e){var n=this.Wr(e),i=t.key.path.L().W();if(t instanceof yt){var r=this.Fh.Ai(t);return new Tn(null,null,r,t.hasCommittedMutations,n,i)}if(t instanceof _t){var o=t.key.path.W(),a=this.$h(t.version),s=t.hasCommittedMutations;return new Tn(null,new In(o,a),null,s,n,i)}if(t instanceof bt){var u=t.key.path.W(),l=this.$h(t.version);
1return new Tn(new An(u,l),null,null,!0,n,i)}return be()},t.prototype.Wr=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.zr=function(t){var e=new _(t[0],t[1]);return b.v(e)},t.prototype.$h=function(t){var e=t.C();return new kn(e.seconds,e.nanoseconds)},t.prototype.Nh=function(t){var e=new _(t.seconds,t.nanoseconds);return b.v(e)},t.prototype.kh=function(t,e){var n=this,i=e.baseMutations.map((function(t){return n.Fh.vi(t)})),r=e.mutations.map((function(t){return n.Fh.vi(t)}));return new Sn(t,e.batchId,e.Tn.toMillis(),i,r)},t.prototype.Lh=function(t){var e=this,n=(t.baseMutations||[]).map((function(t){return e.Fh.Fi(t)})),i=t.mutations.map((function(t){return e.Fh.Fi(t)})),r=_.fromMillis(t.localWriteTimeMs);return new Oe(t.batchId,r,n,i)},t.prototype.mh=function(t){var e,n=this.Nh(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?this.Nh(t.lastLimboFreeSnapshotVersion):b.min();return e=void 0!==t.query.documents?this.Fh.xi(t.query):this.Fh.Wi(t.query),new Dt(e,t.targetId,0,t.lastListenSequenceNumber,n,i,T.fromBase64String(t.resumeToken))},t.prototype.Ph=function(t){var e,n=this.$h(t.Ee),i=this.$h(t.lastLimboFreeSnapshotVersion);e=t.target.Ot()?this.Fh.Oi(t.target):this.Fh.Bi(t.target);var r=t.resumeToken.toBase64();return new Dn(t.targetId,t.target.canonicalId(),n,r,t.sequenceNumber,i,e)},t}(),sn="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",un=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Mh=e,i.Oh=n,i}return r.__extends(e,t),e}(Me),ln=function(){function t(e,n,i,r,o,a,s,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=i,this.Tr=a,this.xh=u,this.Bh=null,this.qh=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Uh=null,this.inForeground=!1,this.Qh=null,this.Wh=null,this.jh=Number.NEGATIVE_INFINITY,this.Kh=function(t){return Promise.resolve()},!t.Gh())throw new d(f.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");if(this.hh=new fn(this,o),this.zh=n+t.Hh,this.serializer=new an(s),this.document=r.document,this.Yh=new en(this.hh,this.serializer),this.jn=new Ke,this.Qn=new Qe(this.serializer,this.jn),!r.window||!r.window.localStorage)throw new d(f.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=r.window,this.Jh=this.window.localStorage}return t.Nr=function(t,e){if(t instanceof un)return jn.Nr(t.Mh,e);throw be()},t.prototype.start=function(){var t=this;return jn.Xh(this.zh,bn,new wn(this.serializer)).then((function(e){return t.Zh=e,t.to()})).then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new d(f.FAILED_PRECONDITION,sn);return t.eo(),t.so(),t.io(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.Yh.lh(e)}))})).then((function(e){t.Bh=new je(e,t.xh)})).then((function(){t.qh=!0})).catch((function(e){return t.Zh&&t.Zh.close(),Promise.reject(e)}))},t.prototype.no=function(t){var e=this;return this.Kh=function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.ro?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.ho=function(t){var e=this;this.Zh.oo((function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
1))}))}))},t.prototype.ao=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Tr.uo((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.ro?[4,this.to()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.to=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return hn(e).put(new Fn(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.co(e).next((function(e){e||(t.isPrimary=!1,t.Tr.uo((function(){return t.Kh(!1)})))}))})).next((function(){return t._o(e)})).next((function(n){return t.isPrimary&&!n?t.lo(e).next((function(){return!1})):!!n&&t.do(e).next((function(){return!0}))}))})).catch((function(e){if(!t.allowTabSynchronization){if(Un(e))return ge("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;throw e}return ge("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Tr.uo((function(){return t.Kh(e)})),t.isPrimary=e}))},t.prototype.co=function(t){var e=this;return cn(t).get(Cn.key).next((function(t){return Pe.resolve(e.fo(t))}))},t.prototype.To=function(t){return hn(t).delete(this.clientId)},t.prototype.Eo=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.Io(this.jh,18e5)?[3,2]:(this.jh=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var i=t.Nr(n,Fn.store);return i.Fr().next((function(t){var n=e.wo(t,18e5),r=t.filter((function(t){return-1===n.indexOf(t)}));return Pe.forEach(r,(function(t){return i.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(t){e.window.localStorage.removeItem(e.Ro(t.clientId))})),n.label=2;case 2:return[2]}}
1))}))},t.prototype.io=function(){var t=this;this.Wh=this.Tr.yr("client_metadata_refresh",4e3,(function(){return t.to().then((function(){return t.Eo()})).then((function(){return t.io()}))}))},t.prototype.fo=function(t){return!!t&&t.ownerId===this.clientId},t.prototype._o=function(t){var e=this;return cn(t).get(Cn.key).next((function(n){if(null!==n&&e.Io(n.leaseTimestampMs,5e3)&&!e.Ao(n.ownerId)){if(e.fo(n)&&e.networkEnabled)return!0;if(!e.fo(n)){if(!n.allowTabSynchronization)throw new d(f.FAILED_PRECONDITION,sn);return!1}}return!(!e.networkEnabled||!e.inForeground)||hn(t).Fr().next((function(t){return void 0===e.wo(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&&ge("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.mo=function(){return r.__awaiter(this,void 0,void 0,(function(){var t=this;return r.__generator(this,(function(e){switch(e.label){case 0:return this.qh=!1,this.Po(),this.Wh&&(this.Wh.cancel(),this.Wh=null),this.Vo(),this.po(),[4,this.runTransaction("shutdown","readwrite",(function(e){return t.lo(e).next((function(){return t.To(e)}))})).catch((function(t){ge("IndexedDbPersistence","Proceeding with shutdown despite failure: ",t)}))];case 1:return e.sent(),this.Zh.close(),this.yo(),[2]}}))}))},t.prototype.wo=function(t,e){var n=this;return t.filter((function(t){return n.Io(t.updateTimeMs,e)&&!n.Ao(t.clientId)}))},t.prototype.bo=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return hn(e).Fr().next((function(e){return t.wo(e,18e5).map((function(t){return t.clientId}))}))}))},t.clearPersistence=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return t.Gh()?[4,jn.delete(e+t.Hh)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))},Object.defineProperty(t.prototype,"ro",{get:function(){return this.qh},enumerable:!0,configurable:!0}),t.prototype.vo=function(t){return pn.So(t,this.serializer,this.jn,this.hh)},t.prototype.Do=function(){return this.Yh},t.prototype.Co=function(){return this.Qn},t.prototype.Fo=function(){return this.jn},t.prototype.runTransaction=function(t,e,n){var i,r=this;return ge("IndexedDbPersistence","Starting transaction:",t),this.Zh.runTransaction("readonly"===e?"readonly":"readwrite",Ln,(function(o){return i=new un(o,r.Bh?r.Bh.next():je.dr),"readwrite-primary"===e?r.co(i).next((function(t){return!!t||r._o(i)})).next((function(e){if(!e)throw ye("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Tr.uo((function(){return r.Kh(!1)})),new d(f.FAILED_PRECONDITION,Ne);return n(i)})).next((function(t){return r.do(i).next((function(){return t}))})):r.No(i).next((function(){return n(i)}))})).then((function(t){return i.Un(),t}))},t.prototype.No=function(t){var e=this;return cn(t).get(Cn.key).next((function(t){if(null!==t&&e.Io(t.leaseTimestampMs,5e3)&&!e.Ao(t.ownerId)&&!e.fo(t)&&(!e.allowTabSynchronization||!t.allowTabSynchronization))throw new d(f.FAILED_PRECONDITION,sn)}))},t.prototype.do=function(t){var e=new Cn(this.clientId,this.allowTabSynchronization,Date.now());return cn(t).put(Cn.key,e)},t.Gh=function(){return jn.Gh()},t.$o=function(t){var e=t.ii.projectId;return t.ii.ln||(e+="."+t.ii.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.lo=function(t){var e=this,n=cn(t);return n.get(Cn.key).next((function(t){return e.fo(t)?(ge("IndexedDbPersistence","Releasing primary lease."),n.delete(Cn.key)):Pe.resolve()}))},t.prototype.Io=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(ye("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.eo=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Qh=function(){t.Tr.uo((function(){return t.inForeground="visible"===t.document.visibilityState,t.to()}))},this.document.addEventListener("visibilitychange",this.Qh),this.inForeground="visible"===this.document.visibilityState)},t.prototype.Vo=function(){this.Qh&&(this.document.removeEventListener("visibilitychange",this.Qh),this.Qh=null)},t.prototype.so=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.Uh=function(){t.Po(),t.Tr.uo((function(){return t.mo()}))},this.window.addEventListener("unload",this.Uh))},t.prototype.po=function(){this.Uh&&(this.window.removeEventListener("unload",this.Uh),this.Uh=null)},t.prototype.Ao=function(t){try{var e=null!==this.Jh.getItem(this.Ro(t));return ge("IndexedDbPersistence","Client '"+t+"' "+(e?"is":"is not")+" zombied in LocalStorage"),e}catch(t){return ye("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.Po=function(){try{this.Jh.setItem(this.Ro(this.clientId),String(Date.now()))}catch(t){ye("Failed to set zombie client id.",t)}},t.prototype.yo=function(){try{this.Jh.removeItem(this.Ro(this.clientId))}catch(t){}},t.prototype.Ro=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function cn(t){return ln.Nr(t,Cn.store)}function hn(t){return ln.Nr(t,Fn.store)}ln.Hh="main";var fn=function(){function t(t,e){this.db=t,this.ko=new ei(this,e)}return t.prototype.Lo=function(t){var e=this.Mo(t);return this.db.Do().Vh(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Mo=function(t){var e=0;return this.Oo(t,(function(t){e++})).next((function(){return e}))},t.prototype.js=function(t,e){return this.db.Do().js(t,e)},t.prototype.Oo=function(t,e){return this.xo(t,(function(t,n){return e(n)}))},t.prototype.yh=function(t,e,n){return dn(t,n)},t.prototype.vh=function(t,e,n){return dn(t,n)},t.prototype.Ah=function(t,e,n){return this.db.Do().Ah(t,e,n)},t.prototype.Bo=function(t,e){return dn(t,e)},t.prototype.qo=function(t,e){return function(t,e){var n=!1;return _n(t).Uo((function(i){return mn(t,i,e).next((function(t){return t&&(n=!0),Pe.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.Qo=function(t,e){var n=this,i=this.db.Co().Yr(),r=[],o=0;return this.xo(t,(function(a,s){if(s<=e){var u=n.qo(t,a).next((function(e){if(!e)return o++,i.Ln(t,a).next((function(){return i.kn(a),on(t).delete([0,Ue(a.path)])}))}));r.push(u)}})).next((function(){return Pe.vn(r)})).next((function(){return i.apply(t)})).next((function(){return o}
1))},t.prototype.removeTarget=function(t,e){var n=e.Ie(t.Oh);return this.db.Do().Ih(t,n)},t.prototype.Wo=function(t,e){return dn(t,e)},t.prototype.xo=function(t,e){var n,i=on(t),r=je.dr;return i.Ur({index:Pn.documentTargetsIndex},(function(t,i){var o=i.path,a=i.sequenceNumber;0===t[0]?(r!==je.dr&&e(new S(qe(n)),r),r=a,n=o):r=je.dr})).next((function(){r!==je.dr&&e(new S(qe(n)),r)}))},t.prototype.jo=function(t){return this.db.Co().Zr(t)},t}();function dn(t,e){return on(t).put(function(t,e){return new Pn(0,Ue(t.path),e)}(e,t.Oh))}var pn=function(){function t(t,e,n,i){this.userId=t,this.serializer=e,this.jn=n,this.hh=i,this.Ko={}}return t.So=function(e,n,i,r){return we(""!==e.uid),new t(e.t()?e.uid:"",n,i,r)},t.prototype.Go=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return gn(t).Ur({index:Sn.userMutationsIndex,range:n},(function(t,n,i){e=!1,i.done()})).next((function(){return e}))},t.prototype.zo=function(t,e,n){return this.Ho(t).next((function(e){return e.lastStreamToken=n.toBase64(),_n(t).put(e)}))},t.prototype.Yo=function(t){return this.Ho(t).next((function(t){return T.fromBase64String(t.lastStreamToken)}))},t.prototype.Jo=function(t,e){return this.Ho(t).next((function(n){return n.lastStreamToken=e.toBase64(),_n(t).put(n)}))},t.prototype.Xo=function(t,e,n,i){var r=this,o=yn(t),a=gn(t);return a.add({}).next((function(s){we("number"==typeof s);for(var u=new Oe(s,e,n,i),l=r.serializer.kh(r.userId,u),c=[],h=new jt((function(t,e){return xe(t.j(),e.j())})),f=0,d=i;f<d.length;f++){var p=d[f],m=En.key(r.userId,p.key.path,s);h=h.add(p.key.path.L()),c.push(a.put(l)),c.push(o.put(m,En.PLACEHOLDER))}return h.forEach((function(e){c.push(r.jn.Dr(t,e))})),t.qn((function(){r.Ko[s]=u.keys()})),Pe.vn(c).next((function(){return u}))}))},t.prototype.Zo=function(t,e){var n=this;return gn(t).get(e).next((function(t){return t?(we(t.userId===n.userId),n.serializer.Lh(t)):null}))},t.prototype.ta=function(t,e){var n=this;return this.Ko[e]?Pe.resolve(this.Ko[e]):this.Zo(t,e).next((function(t){if(t){var i=t.keys();return n.Ko[e]=i,i}return null}))},t.prototype.ea=function(t,e){var n=this,i=e+1,r=IDBKeyRange.lowerBound([this.userId,i]),o=null;return gn(t).Ur({index:Sn.userMutationsIndex,range:r},(function(t,e,r){e.userId===n.userId&&(we(e.batchId>=i),o=n.serializer.Lh(e)),r.done()})).next((function(){return o}))},t.prototype.sa=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return gn(t).Ur({index:Sn.userMutationsIndex,range:e,reverse:!0},(function(t,e,i){n=e.batchId,i.done()})).next((function(){return n}))},t.prototype.ia=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return gn(t).Fr(Sn.userMutationsIndex,n).next((function(t){return t.map((function(t){return e.serializer.Lh(t)}))}))},t.prototype.Gn=function(t,e){var n=this,i=En.prefixForPath(this.userId,e.path),r=IDBKeyRange.lowerBound(i),o=[];return yn(t).Ur({range:r},(function(i,r,a){var s=i[0],u=i[2],l=qe(i[1]);if(s===n.userId&&e.path.isEqual(l))return gn(t).get(u).next((function(t){if(!t)throw be();we(t.userId===n.userId),o.push(n.serializer.Lh(t))}));a.done()})).next((function(){return o}))},t.prototype.Xn=function(t,e){var n=this,i=new jt(xe),r=[];return e.forEach((function(e){var o=En.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=yn(t).Ur({range:a},(function(t,r,o){var a=t[0],s=t[2],u=qe(t[1]);a===n.userId&&e.path.isEqual(u)?i=i.add(s):o.done()}));r.push(s)})),Pe.vn(r).next((function(){return n.na(t,i)}))},t.prototype.nr=function(t,e){var n=this,i=e.path,r=i.length+1,o=En.prefixForPath(this.userId,i),a=IDBKeyRange.lowerBound(o),s=new jt(xe);return yn(t).Ur({range:a},(function(t,e,o){var a=t[0],u=t[2],l=qe(t[1]);a===n.userId&&i.q(l)?l.length===r&&(s=s.add(u)):o.done()})).next((function(){return n.na(t,s)}))},t.prototype.na=function(t,e){var n=this,i=[],r=[];return e.forEach((function(e){r.push(gn(t).get(e).next((function(t){if(null===t)throw be();we(t.userId===n.userId),i.push(n.serializer.Lh(t))})))})),Pe.vn(r).next((function(){return i}))},t.prototype.ra=function(t,e){var n=this;return vn(t.Mh,this.userId,e).next((function(i){return t.qn((function(){n.ha(e.batchId)})),Pe.forEach(i,(function(e){return n.hh.Bo(t,e)}))}
1))},t.prototype.ha=function(t){delete this.Ko[t]},t.prototype.oa=function(t){var e=this;return this.Go(t).next((function(n){if(!n)return Pe.resolve();var i=IDBKeyRange.lowerBound(En.prefixForUser(e.userId)),r=[];return yn(t).Ur({range:i},(function(t,n,i){if(t[0]===e.userId){var o=qe(t[1]);r.push(o)}else i.done()})).next((function(){we(0===r.length)}))}))},t.prototype.Ch=function(t,e){return mn(t,this.userId,e)},t.prototype.Ho=function(t){var e=this;return _n(t).get(this.userId).next((function(t){return t||new xn(e.userId,-1,"")}))},t}();function mn(t,e,n){var i=En.prefixForPath(e,n.path),r=i[1],o=IDBKeyRange.lowerBound(i),a=!1;return yn(t).Ur({range:o,Dh:!0},(function(t,n,i){t[0]===e&&t[1]===r&&(a=!0),i.done()})).next((function(){return a}))}function vn(t,e,n){var i=t.store(Sn.store),r=t.store(En.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=i.Ur({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){we(1===s)})));for(var l=[],c=0,h=n.mutations;c<h.length;c++){var f=h[c],d=En.key(e,f.key.path,n.batchId);o.push(r.delete(d)),l.push(f.key)}return Pe.vn(o).next((function(){return l}))}function gn(t){return ln.Nr(t,Sn.store)}function yn(t){return ln.Nr(t,En.store)}function _n(t){return ln.Nr(t,xn.store)}var bn=10,wn=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,i){var r=this;we(n<i&&n>=0&&i<=bn);var o=new Hn(e);n<1&&i>=1&&(function(t){t.createObjectStore(Cn.store)}(t),function(t){t.createObjectStore(xn.store,{keyPath:xn.keyPath}),t.createObjectStore(Sn.store,{keyPath:Sn.keyPath,autoIncrement:!0}).createIndex(Sn.userMutationsIndex,Sn.userMutationsKeyPath,{unique:!0}),t.createObjectStore(En.store)}(t),Mn(t),function(t){t.createObjectStore(Tn.store)}(t));var a=Pe.resolve();return n<3&&i>=3&&(0!==n&&(function(t){t.deleteObjectStore(Pn.store),t.deleteObjectStore(Dn.store),t.deleteObjectStore(Rn.store)}(t),Mn(t)),a=a.next((function(){return function(t){var e=t.store(Rn.store),n=new Rn(0,0,b.min().C(),0);return e.put(Rn.key,n)}(o)}))),n<4&&i>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Sn.store).Fr().next((function(n){t.deleteObjectStore(Sn.store),t.createObjectStore(Sn.store,{keyPath:Sn.keyPath,autoIncrement:!0}).createIndex(Sn.userMutationsIndex,Sn.userMutationsKeyPath,{unique:!0});var i=e.store(Sn.store),r=n.map((function(t){return i.put(t)}));return Pe.vn(r)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(Fn.store,{keyPath:Fn.keyPath})}(t)}))),n<5&&i>=5&&(a=a.next((function(){return r.removeAcknowledgedMutations(o)}))),n<6&&i>=6&&(a=a.next((function(){return function(t){t.createObjectStore(On.store)}(t),r.addDocumentGlobal(o)}))),n<7&&i>=7&&(a=a.next((function(){return r.ensureSequenceNumbers(o)}))),n<8&&i>=8&&(a=a.next((function(){return r.createCollectionParentIndex(t,o)}))),n<9&&i>=9&&(a=a.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Tn.store);e.createIndex(Tn.readTimeIndex,Tn.readTimeIndexPath,{unique:!1}),e.createIndex(Tn.collectionReadTimeIndex,Tn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&i>=10&&(a=a.next((function(){return r.rewriteCanonicalIds(o)}))),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Tn.store).Ur((function(t,n){e+=Je(n)})).next((function(){var n=new On(e);return t.store(On.store).put(On.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(xn.store),i=t.store(Sn.store);return n.Fr().next((function(n){return Pe.forEach(n,(function(n){var r=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return i.Fr(Sn.userMutationsIndex,r).next((function(i){return Pe.forEach(i,(function(i){we(i.userId===n.userId);var r=e.serializer.Lh(i);return vn(t,n.userId,r).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Pn.store),n=t.store(Tn.store);return t.store(Rn.store).get(Rn.key).next((function(t){var i=[];return n.Ur((function(n,r){var o=new k(n),a=function(t){return[0,Ue(t)]}(o);i.push(e.get(a).next((function(n){return n?Pe.resolve():function(n){return e.put(new Pn(0,Ue(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return Pe.vn(i)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(Nn.store,{keyPath:Nn.keyPath});var n=e.store(Nn.store),i=new Ge,r=function(t){if(i.add(t)){var e=t.O(),r=t.L();return n.put({collectionId:e,parent:Ue(r)})}};return e.store(Tn.store).Ur({Dh:!0},(function(t,e){var n=new k(t);return r(n.L())})).next((function(){return e.store(En.store).Ur({Dh:!0},(function(t,e){var n=qe(t[1]);return r(n.L())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Dn.store);return n.Ur((function(t,i){var r=e.serializer.mh(i),o=e.serializer.Ph(r);
1return n.put(o)}))},t}(),kn=function(t,e){this.seconds=t,this.nanoseconds=e},Cn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Cn.store="owner",Cn.key="owner";var xn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};xn.store="mutationQueues",xn.keyPath="userId";var Sn=function(t,e,n,i,r){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=r};Sn.store="mutations",Sn.keyPath="batchId",Sn.userMutationsIndex="userMutationsIndex",Sn.userMutationsKeyPath=["userId","batchId"];var En=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Ue(e)]},t.key=function(t,e,n){return[t,Ue(e),n]},t}();En.store="documentMutations",En.PLACEHOLDER=new En;var In=function(t,e){this.path=t,this.readTime=e},An=function(t,e){this.path=t,this.version=e},Tn=function(t,e,n,i,r,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=i,this.readTime=r,this.parentPath=o};Tn.store="remoteDocuments",Tn.readTimeIndex="readTimeIndex",Tn.readTimeIndexPath="readTime",Tn.collectionReadTimeIndex="collectionReadTimeIndex",Tn.collectionReadTimeIndexPath=["parentPath","readTime"];var On=function(t){this.byteSize=t};On.store="remoteDocumentGlobal",On.key="remoteDocumentGlobalKey";var Dn=function(t,e,n,i,r,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=r,this.lastLimboFreeSnapshotVersion=o,this.query=a};Dn.store="targets",Dn.keyPath="targetId",Dn.queryTargetsIndexName="queryTargetsIndex",Dn.queryTargetsKeyPath=["canonicalId","targetId"];var Pn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Pn.store="targetDocuments",Pn.keyPath=["targetId","path"],Pn.documentTargetsIndex="documentTargetsIndex",Pn.documentTargetsKeyPath=["path","targetId"];var Rn=function(t,e,n,i){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=i};Rn.key="targetGlobalKey",Rn.store="targetGlobal";var Nn=function(t,e){this.collectionId=t,this.parent=e};function Mn(t){t.createObjectStore(Pn.store,{keyPath:Pn.keyPath}).createIndex(Pn.documentTargetsIndex,Pn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Dn.store,{keyPath:Dn.keyPath}).createIndex(Dn.queryTargetsIndexName,Dn.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Rn.store)}Nn.store="collectionParents",Nn.keyPath=["collectionId","parent"];var Fn=function(t,e,n,i){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=i};Fn.store="clientMetadata",Fn.keyPath="clientId";var Ln=r.__spreadArrays(r.__spreadArrays(r.__spreadArrays([xn.store,Sn.store,En.store,Tn.store,Dn.store,Cn.store,Rn.store,Pn.store],[Fn.store]),[On.store]),[Nn.store]),jn=function(){function t(e){this.db=e,12.2===t.aa(s.getUA())&&ye("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.Xh=function(e,n,i){return ge("SimpleDb","Opening database:",e),new Pe((function(r,o){var a=window.indexedDB.open(e,n);a.onsuccess=function(e){r(new t(e.target.result))},a.onblocked=function(){o(new d(f.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 d(f.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){ge("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),i.createOrUpgrade(t.target.result,a.transaction,t.oldVersion,bn).next((function(){ge("SimpleDb","Database upgrade to version "+bn+" complete")}
1))}})).yn()},t.delete=function(t){return ge("SimpleDb","Removing database:",t),qn(window.indexedDB.deleteDatabase(t)).yn()},t.Gh=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(t.ua())return!0;if(void 0===window.navigator)return!1;var e=s.getUA(),n=t.aa(e),i=0<n&&n<10,r=t.ca(e),o=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||i||o)},t.ua=function(){var t;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(t=__PRIVATE_process.__PRIVATE_env)||void 0===t?void 0:t._a)},t.Nr=function(t,e){return t.store(e)},t.aa=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.ca=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.oo=function(t){this.db.onversionchange=function(e){return t(e)}},t.prototype.runTransaction=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s,u;return r.__generator(this,(function(l){switch(l.label){case 0:i="readonly"===t,o=0,a=function(){var t,a,u,l,c;return r.__generator(this,(function(r){switch(r.label){case 0:++o,t=Hn.open(s.db,i?"readonly":"readwrite",e),r.label=1;case 1:return r.trys.push([1,3,,4]),a=n(t).catch((function(e){return t.abort(e),Pe.reject(e)})).yn(),u={},a.catch((function(){})),[4,t.la];case 2:return[2,(u.value=(r.sent(),a),u)];case 3:return ge("SimpleDb","Transaction failed with error: %s. Retrying: %s.",(l=r.sent()).message,c="FirebaseError"!==l.name&&o<3),c?[3,4]:[2,{value:Promise.reject(l)}];case 4:return[2]}}
1))},s=this,l.label=1;case 1:return[5,a()];case 2:if("object"==typeof(u=l.sent()))return[2,u.value];l.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),Bn=function(){function t(t){this.da=t,this.fa=!1,this.Ta=null}return Object.defineProperty(t.prototype,"Pn",{get:function(){return this.fa},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ea",{get:function(){return this.Ta},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.da=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.fa=!0},t.prototype.Qr=function(t){this.Ta=t},t.prototype.delete=function(){return qn(this.da.delete())},t}(),Vn=function(t){function e(e){var n=this;return(n=t.call(this,f.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return r.__extends(e,t),e}(d);function Un(t){return"IndexedDbTransactionError"===t.name}var Hn=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.Ia=new Be,this.transaction.oncomplete=function(){e.Ia.resolve()},this.transaction.onabort=function(){t.error?e.Ia.reject(new Vn(t.error)):e.Ia.resolve()},this.transaction.onerror=function(t){var n=Gn(t.target.error);e.Ia.reject(new Vn(n))}}return t.open=function(e,n,i){return new t(e.transaction(i,n))},Object.defineProperty(t.prototype,"la",{get:function(){return this.Ia.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.Ia.reject(t),this.aborted||(ge("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new zn(e)},t}(),zn=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(ge("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(ge("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),qn(n)},t.prototype.add=function(t){return ge("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),ge("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return ge("SimpleDb","DELETE",this.store.name,t),qn(this.store.delete(t))},t.prototype.count=function(){return ge("SimpleDb","COUNT",this.store.name),qn(this.store.count())},t.prototype.Fr=function(t,e){var n=this.cursor(this.options(t,e)),i=[];return this.wa(n,(function(t,e){i.push(e)})).next((function(){return i}))},t.prototype.Ra=function(t,e){ge("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Dh=!1;var i=this.cursor(n);return this.wa(i,(function(t,e,n){return n.delete()}))},t.prototype.Ur=function(t,e){var n;e?n=t:(n={},e=t);var i=this.cursor(n);return this.wa(i,e)},t.prototype.Uo=function(t){var e=this.cursor({});return new Pe((function(n,i){e.onerror=function(t){var e=Gn(t.target.error);i(e)},e.onsuccess=function(e){var i=e.target.result;i?t(i.primaryKey,i.value).next((function(t){t?i.continue():n()})):n()}}))},t.prototype.wa=function(t,e){var n=[];return new Pe((function(i,r){t.onerror=function(t){r(t.target.error)},t.onsuccess=function(t){var r=t.target.result;if(r){var o=new Bn(r),a=e(r.primaryKey,r.value,o);if(a instanceof Pe){var s=a.catch((function(t){return o.done(),Pe.reject(t)}));n.push(s)}o.Pn?i():null===o.Ea?r.continue():r.continue(o.Ea)}else i()}})).next((function(){return Pe.vn(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.Dh?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function qn(t){return new Pe((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Gn(t.target.error);n(e)}}))}var Wn=!1;function Gn(t){var e=jn.aa(s.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var i=new d("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Wn||(Wn=!0,setTimeout((function(){throw i}),0)),i}}return t}var Kn=function(){function t(t,e,n,i,r){this.Aa=t,this.Er=e,this.ma=n,this.op=i,this.Pa=r,this.Va=new Be,this.then=this.Va.promise.then.bind(this.Va.promise),this.Va.promise.catch((function(t){}))}return t.ga=function(e,n,i,r,o){var a=new t(e,n,Date.now()+i,r,o);return a.start(i),a},t.prototype.start=function(t){var e=this;this.pa=setTimeout((function(){return e.ya()}),t)},t.prototype.vr=function(){return this.ya()},t.prototype.cancel=function(t){null!==this.pa&&(this.clearTimeout(),this.Va.reject(new d(f.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},t.prototype.ya=function(){var t=this;this.Aa.uo((function(){return null!==t.pa?(t.clearTimeout(),t.op().then((function(e){return t.Va.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.pa&&(this.Pa(this),clearTimeout(this.pa),this.pa=null)},t}(),Yn=function(){function t(){var t=this;this.ba=Promise.resolve(),this.va=Promise.resolve(),this.Sa=!1,this.Da=[],this.Ca=null,this.Fa=!1,this.Na=[],this.$a=new Ve(this,"async_queue_retry"),this.ka=function(){return t.$a.br()};var e=de.nt().window;e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.ka)}return Object.defineProperty(t.prototype,"La",{get:function(){return this.Sa},enumerable:!0,configurable:!0}),t.prototype.uo=function(t){this.enqueue(t)},t.prototype.Ma=function(t){this.Oa(),this.xa(t)},t.prototype.Ba=function(t){return this.Oa(),this.xa(t)},t.prototype.qa=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return this.Oa(),this.Sa?[3,2]:(this.Sa=!0,(e=de.nt().window)&&e.removeEventListener("visibilitychange",this.ka),[4,this.Ba(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
1))}))},t.prototype.enqueue=function(t){return this.Oa(),this.Sa?new Promise((function(t){})):this.xa(t)},t.prototype.Ua=function(t){var e=this;this.Oa(),this.Sa||(this.va=this.va.then((function(){var n=new Be;return e.uo((function i(){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return r.sent(),n.resolve(),this.$a.reset(),[3,3];case 2:if(!Un(e=r.sent()))throw n.resolve(),e;return ge("AsyncQueue","Operation failed with retryable error: "+e),this.$a.gr(i),[3,3];case 3:return[2]}}))}))})),n.promise})))},t.prototype.xa=function(t){var e=this,n=this.ba.then((function(){return e.Fa=!0,t().catch((function(t){throw e.Ca=t,e.Fa=!1,ye("INTERNAL UNHANDLED ERROR: ",t.stack||t.message||""),t})).then((function(t){return e.Fa=!1,t}))}));return this.ba=n,n},t.prototype.yr=function(t,e,n){var i=this;this.Oa(),this.Na.indexOf(t)>-1&&(e=0);var r=Kn.ga(this,t,e,n,(function(t){return i.Qa(t)}));return this.Da.push(r),r},t.prototype.Oa=function(){this.Ca&&be()},t.prototype.Wa=function(){},t.prototype.ja=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.ba];case 1:e.sent(),e.label=2;case 2:if(t!==this.ba)return[3,0];e.label=3;case 3:return[2]}}
1))}))},t.prototype.Ka=function(t){for(var e=0,n=this.Da;e<n.length;e++)if(n[e].Er===t)return!0;return!1},t.prototype.Ga=function(t){var e=this;return this.ja().then((function(){e.Da.sort((function(t,e){return t.ma-e.ma}));for(var n=0,i=e.Da;n<i.length;n++){var r=i[n];if(r.vr(),"all"!==t&&r.Er===t)break}return e.ja()}))},t.prototype.za=function(t){this.Na.push(t)},t.prototype.Qa=function(t){var e=this.Da.indexOf(t);this.Da.splice(e,1)},t}();function Qn(t,e){if(ye("AsyncQueue",e+": "+t),Un(t))return new d(f.UNAVAILABLE,e+": "+t);throw t}function $n(t,e){var n=t[1],i=e[1],r=xe(t[0],e[0]);return 0===r?xe(n,i):r}var Xn=function(){function t(t){this.Ha=t,this.buffer=new jt($n),this.Ya=0}return t.prototype.Ja=function(){return++this.Ya},t.prototype.Xa=function(t){var e=[t,this.Ja()];if(this.buffer.size<this.Ha)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();$n(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}(),Zn={Za:!1,tu:0,eu:0,su:0},Jn=function(){function t(t,e,n){this.iu=t,this.nu=e,this.ru=n}return t.hu=function(e){return new t(e,t.ou,t.au)},t}();Jn.uu=-1,Jn.cu=1048576,Jn._u=41943040,Jn.ou=10,Jn.au=1e3,Jn.lu=new Jn(Jn._u,Jn.ou,Jn.au),Jn.DISABLED=new Jn(Jn.uu,0,0);var ti=function(){function t(t,e){this.ko=t,this.Aa=e,this.du=!1,this.fu=null}return t.prototype.start=function(t){this.ko.Tu.iu!==Jn.uu&&this.Eu(t)},t.prototype.stop=function(){this.fu&&(this.fu.cancel(),this.fu=null)},Object.defineProperty(t.prototype,"ro",{get:function(){return null!==this.fu},enumerable:!0,configurable:!0}),t.prototype.Eu=function(t){var e=this,n=this.du?3e5:6e4;ge("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.fu=this.Aa.yr("lru_garbage_collection",n,(function(){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:this.fu=null,this.du=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Iu(this.ko)];case 2:return n.sent(),[3,7];case 3:return Un(e=n.sent())?(ge("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,ri(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Eu(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),ei=function(){function t(t,e){this.wu=t,this.Tu=e}return t.prototype.Ru=function(t,e){return this.wu.Lo(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.Au=function(t,e){var n=this;if(0===e)return Pe.resolve(je.dr);var i=new Xn(e);return this.wu.js(t,(function(t){return i.Xa(t.sequenceNumber)})).next((function(){return n.wu.Oo(t,(function(t){return i.Xa(t)}))})).next((function(){return i.maxValue}))},t.prototype.Ah=function(t,e,n){return this.wu.Ah(t,e,n)},t.prototype.Qo=function(t,e){return this.wu.Qo(t,e)},t.prototype.mu=function(t,e){var n=this;return this.Tu.iu===Jn.uu?(ge("LruGarbageCollector","Garbage collection skipped; disabled"),Pe.resolve(Zn)):this.jo(t).next((function(i){return i<n.Tu.iu?(ge("LruGarbageCollector","Garbage collection skipped; Cache size "+i+" is lower than threshold "+n.Tu.iu),Zn):n.Pu(t,e)}))},t.prototype.jo=function(t){return this.wu.jo(t)},t.prototype.Pu=function(t,e){var n,i,r,o,s,u,l,c=this,h=Date.now();return this.Ru(t,this.Tu.nu).next((function(e){return e>c.Tu.ru?(ge("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.Tu.ru+" from "+e),i=c.Tu.ru):i=e,o=Date.now(),c.Au(t,i)})).next((function(i){return n=i,s=Date.now(),c.Ah(t,n,e)})).next((function(e){return r=e,u=Date.now(),c.Qo(t,n)})).next((function(t){return l=Date.now(),me()<=a.LogLevel.DEBUG&&ge("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-h)+"ms\n\tDetermined least recently used "+i+" in "+(s-o)+"ms\n\tRemoved "+r+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(l-u)+"ms\nTotal Duration: "+(l-h)+"ms"),Pe.resolve({Za:!0,tu:i,eu:r,su:t})}))},t}(),ni=function(){function t(t,e,n){this.persistence=t,this.Vu=e,this.gu=new Mt(xe),this.pu=new Te((function(t){return t.canonicalId()})),this.yu=b.min(),this.Wn=t.vo(n),this.bu=t.Co(),this.Yh=t.Do(),this.vu=new Fe(this.bu,this.Wn,this.persistence.Fo()),this.Vu.Su(this.vu)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Du=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o=this;return r.__generator(this,(function(r){switch(r.label){case 0:return e=this.Wn,n=this.vu,[4,this.persistence.runTransaction("Handle user change","readonly",(function(i){var r;return o.Wn.ia(i).next((function(a){return r=a,e=o.persistence.vo(t),n=new Fe(o.bu,e,o.persistence.Fo()),e.
1ia(i)})).next((function(t){for(var e=[],o=[],a=Yt(),s=0,u=r;s<u.length;s++){var l=u[s];e.push(l.batchId);for(var c=0,h=l.mutations;c<h.length;c++)a=a.add(h[c].key)}for(var f=0,d=t;f<d.length;f++){var p=d[f];o.push(p.batchId);for(var m=0,v=p.mutations;m<v.length;m++)a=a.add(v[m].key)}return n.Yn(i,a).next((function(t){return{Cu:t,Fu:e,Nu:o}}))}))}))];case 1:return i=r.sent(),[2,(this.Wn=e,this.vu=n,this.Vu.Su(this.vu),i)]}}))}))},t.prototype.$u=function(t){var e,n=this,i=_.now(),r=t.reduce((function(t,e){return t.add(e.key)}),Yt());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.vu.Yn(o,r).next((function(r){e=r;for(var a=[],s=0,u=t;s<u.length;s++){var l=u[s],c=l.Pt(e.get(l.key));null!=c&&a.push(new ut(l.key,c,pt(c.proto.mapValue),ot.exists(!0)))}return n.Wn.Xo(o,i,a,t)}))})).then((function(t){var n=t.In(e);return{batchId:t.batchId,Dn:n}}))},t.prototype.zo=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var i=t.batch.keys(),r=e.bu.Yr({Xr:!0});return e.Wn.zo(n,t.batch,t.streamToken).next((function(){return e.ku(n,t,r)})).next((function(){return r.apply(n)})).next((function(){return e.Wn.oa(n)})).next((function(){return e.vu.Yn(n,i)}))}))},t.prototype.Lu=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var i;return e.Wn.Zo(n,t).next((function(t){return we(null!==t),i=t.keys(),e.Wn.ra(n,t)})).next((function(){return e.Wn.oa(n)})).next((function(){return e.vu.Yn(n,i)}))}))},t.prototype.sa=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.Wn.sa(e)}))},t.prototype.Yo=function(){var t=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(e){return t.Wn.Yo(e)}))},t.prototype.Jo=function(t){var e=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return e.Wn.Jo(n,t)}))},t.prototype._h=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Yh._h(e)}))},t.prototype.Mu=function(e){var n=this,i=e.Ee,r=this.gu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var a=n.bu.Yr({Xr:!0});r=n.gu;var s=[];e.as.forEach((function(e,a){var u=r.get(a);if(u){s.push(n.Yh.bh(o,e.Is,a).next((function(){return n.Yh.ph(o,e.Ts,a)})));var l=e.resumeToken;if(l.rt()>0){var c=u.we(l,i).Ie(o.Oh);r=r.Ae(a,c),t.Ou(u,c,e)&&s.push(n.Yh.Ih(o,c))}}}));var u=Ut(),l=Yt();if(e.cs.forEach((function(t,e){l=l.add(t)})),s.push(a.getEntries(o,l).next((function(t){e.cs.forEach((function(r,l){var c=t.get(r);l instanceof _t&&l.version.isEqual(b.min())?(a.kn(r,i),u=u.Ae(r,l)):null==c||l.version.S(c.version)>0||0===l.version.S(c.version)&&c.hasPendingWrites?(a.Nn(l,i),u=u.Ae(r,l)):ge("LocalStore","Ignoring outdated watch update for ",r,". Current version:",c.version," Watch version:",l.version),e._s.has(r)&&s.push(n.persistence.hh.Wo(o,r))}))}))),!i.isEqual(b.min())){var c=n.Yh._h(o).next((function(t){return n.Yh.dh(o,o.Oh,i)}));s.push(c)}return Pe.vn(s).next((function(){return a.apply(o)})).next((function(){return n.vu.Jn(o,u)}))})).then((function(t){return n.gu=r,t}))},t.Ou=function(t,e,n){return we(e.resumeToken.rt()>0),0===t.resumeToken.rt()||e.Ee.D()-t.Ee.D()>=this.xu||n.Ts.size+n.Es.size+n.Is.size>0},t.prototype.Bu=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,l=this;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return Pe.forEach(t,(function(t){return Pe.forEach(t.hr,(function(n){return l.persistence.hh.yh(e,t.targetId,n)})).next((function(){return Pe.forEach(t.or,(function(n){return l.persistence.hh.vh(e,t.targetId,n)}))}))}))}))];case 1:return r.sent(),[3,3];case 2:if(!Un(e=r.sent()))throw e;return ge("LocalStore","Failed to update sequence numbers: "+e),[3,3];case 3:for(n=0,i=t;n<i.length;n++)a=(o=i[n]).targetId,o.fromCache||(s=this.gu.get(a),u=s.Re(s.Ee),this.gu=this.gu.Ae(
1a,u));return[2]}}))}))},t.prototype.qu=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.Wn.ea(n,t)}))},t.prototype.Uu=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.vu.Kn(n,t)}))},t.prototype.Qu=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var i;return e.Yh.gh(n,t).next((function(r){return r?Pe.resolve(i=r):e.Yh.oh(n).next((function(r){return i=new Dt(t,r,0,n.Oh),e.Yh.fh(n,i).next((function(){return i}))}))}))})).then((function(n){return null===e.gu.get(n.targetId)&&(e.gu=e.gu.Ae(n.targetId,n),e.pu.set(t,n.targetId)),n}))},t.prototype.gh=function(t,e){var n=this.pu.get(e);return void 0!==n?Pe.resolve(this.gu.get(n)):this.Yh.gh(t,e)},t.prototype.Wu=function(t,e){var n=this,i=this.gu.get(t);return this.persistence.runTransaction("Release target",e?"readwrite":"readwrite-primary",(function(t){return e?Pe.resolve():n.persistence.hh.removeTarget(t,i)})).then((function(){n.gu=n.gu.remove(t),n.pu.delete(i.target)}))},t.prototype.ju=function(t,e){var n=this,i=b.min(),r=Yt();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.gh(o,t.ee()).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,n.Yh.Sh(o,t.targetId).next((function(t){r=t}))})).next((function(){return n.Vu.Zn(o,t,e?i:b.min(),e?r:Yt())})).next((function(t){return{documents:t,Ku:r}}))}))},t.prototype.ku=function(t,e,n){var i=this,r=e.batch,o=r.keys(),a=Pe.resolve();return o.forEach((function(i){a=a.next((function(){return n.Ln(t,i)})).next((function(t){var o=t,a=e.Rn.get(i);we(null!==a),(!o||o.version.S(a)<0)&&(o=r.at(i,o,e))&&n.Nn(o,e.wn)}))})),a.next((function(){return i.Wn.ra(t,r)}))},t.prototype.Iu=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.mu(n,e.gu)}))},t}();ni.xu=3e8;var ii=function(t){function e(e,n,i){var r=this;return(r=t.call(this,e,n,i)||this).persistence=e,r.Wn=e.vo(i),r.bu=e.Co(),r.Yh=e.Do(),r}return r.__extends(e,t),e.prototype.start=function(){return this.Gu()},e.prototype.zu=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.Wn.ta(n,t).next((function(t){return t?e.vu.Yn(n,t):Pe.resolve(null)}))}))},e.prototype.Hu=function(t){this.Wn.ha(t)},e.prototype.ao=function(t){this.persistence.ao(t)},e.prototype.bo=function(){return this.persistence.bo()},e.prototype.Yu=function(t){var e=this,n=this.gu.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Yh.si(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.Kr=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.bu.Kr(e,t.yu)})).then((function(e){var n=e.Gr;return t.yu=e.readTime,n}))},e.prototype.Gu=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return e.bu.Hr(t)}))];case 1:return t.yu=n.sent(),[2]}}))}))},e}(ni);function ri(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){if(t.code!==f.FAILED_PRECONDITION||t.message!==Ne)throw t;return ge("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var oi=function(){function t(){this.Ju=new jt(ai.Xu),this.Zu=new jt(ai.tc)}return t.prototype.B=function(){return this.Ju.B()},t.prototype.yh=function(t,e){var n=new ai(t,e);this.Ju=this.Ju.add(n),this.Zu=this.Zu.add(n)},t.prototype.ec=function(t,e){var n=this;t.forEach((function(t){return n.yh(t,e)}))},t.prototype.vh=function(t,e){this.sc(new ai(t,e))},t.prototype.ic=function(t,e){var n=this;t.forEach((function(t){return n.vh(t,e)}))},t.prototype.nc=function(t){var e=this,n=S.EMPTY,i=new ai(n,t),r=new ai(n,t+1),o=[];return this.Zu.Ke([i,r],(function(t){e.sc(t),o.push(t.key)})),o},t.prototype.rc=function(){var t=this;this.Ju.forEach((function(e){return t.sc(e)}))},t.prototype.sc=function(t){this.Ju=this.Ju.delete(t),this.Zu=this.Zu.delete(t)},t.prototype.hc=function(t){var e=S.EMPTY,n=new ai(e,t),i=new ai(e,t+1),r=Yt();return this.Zu.Ke([n,i],(function(t){r=r.add(t.key)})),r},t.prototype.Ch=function(t){var e=new ai(t,0),n=this.Ju.ze(e);return null!==n&&t.isEqual(n.key)},t}(),ai=function(){function t(t,e){this.key=t,this.oc=e}return t.Xu=function(t,e){return S.N(t.key,e.key)||xe(t.oc,e.oc)},t.tc=function(t,e){return xe(t.oc,e.oc)||S.N(t.key,e.key)},t}();function si(t,e){if(0!==e.length)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+xi(e.length,"argument")+".")}function ui(t,e,n){if(e.length!==n)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires "+xi(n,"argument")+", but was called with "+xi(e.length,"argument")+".")}function li(t,e,n){if(e.length<n)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires at least "+
1xi(n,"argument")+", but was called with "+xi(e.length,"argument")+".")}function ci(t,e,n,i){if(e.length<n||e.length>i)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+i+" arguments, but was called with "+xi(e.length,"argument")+".")}function hi(t,e,n,i){vi(t,e,Ci(n)+" argument",i)}function fi(t,e,n,i){void 0!==i&&hi(t,e,n,i)}function di(t,e,n,i){vi(t,e,n+" option",i)}function pi(t,e,n,i){void 0!==i&&di(t,e,n,i)}function mi(t,e,n,i,r){void 0!==i&&function(t,e,n,i,r){for(var o=[],a=0,s=r;a<s.length;a++){var u=s[a];if(u===i)return;o.push(yi(u))}var l=yi(i);throw new d(f.INVALID_ARGUMENT,"Invalid value "+l+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,i,r)}function vi(t,e,n,i){if(!("object"===e?gi(i):"non-empty string"===e?"string"==typeof i&&""!==i:typeof i===e)){var r=yi(i);throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+r)}}function gi(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function yi(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":be()}function _i(t,e,n){if(void 0===n)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Ci(e)+" argument, but it was undefined.")}function bi(t,e,n){I(e,(function(e,i){if(n.indexOf(e)<0)throw new d(f.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function wi(t,e,n,i){var r=yi(i);return new d(f.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ci(n)+" argument to be a "+e+", but it was: "+r)}function ki(t,e,n){if(n<=0)throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ci(e)+" argument to be a positive number, but it was: "+n+".")}function Ci(t){switch(t){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return t+"th"}}function xi(t,e){return t+" "+e+(1===t?"":"s")}function Si(){if("undefined"==typeof Uint8Array)throw new d(f.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Ei(){if(!de.nt().ac)throw new d(f.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Ii=function(){function t(t){Ei(),this.uc=t}return t.fromBase64String=function(e){ui("Blob.fromBase64String",arguments,1),hi("Blob.fromBase64String","string",1,e),Ei();try{return new t(T.fromBase64String(e))}catch(e){throw new d(f.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(ui("Blob.fromUint8Array",arguments,1),Si(),!(e instanceof Uint8Array))throw wi("Blob.fromUint8Array","Uint8Array",1,e);return new t(T.fromUint8Array(e))},t.prototype.toBase64=function(){return ui("Blob.toBase64",arguments,0),Ei(),this.uc.toBase64()},t.prototype.toUint8Array=function(){return ui("Blob.toUint8Array",arguments,0),Si(),this.uc.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.uc.isEqual(t.uc)},t}(),Ai=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];!function(t,e,n,i){if(!(e instanceof Array)||e.length<1)throw new d(f.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+xi(1,"element")+".")}(0,t);for(var n=0;n<t.length;++n)if(hi("FieldPath","string",n,t[n]),0===t[n].length)throw new d(f.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.cc=new x(t)}return t.documentId=function(){return t._c},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wi("isEqual","FieldPath",1,e);return this.cc.isEqual(e.cc)},t}();Ai._c=new Ai(x.J().j());var Ti=new RegExp("[~\\*/\\[\\]]"),Oi=function(t){this.lc=t},Di=function(t){function e(){return t.call(this,"FieldValue.delete")||this}return r.__extends(e,t),e.prototype.Di=function(t){if(2!==t.dc)throw t.fc(1===t.dc?"FieldValue.delete() can only appear at the top level of your update data":"FieldValue.delete() cannot be used with set() unless you pass {merge:true}");return t.Vt.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(Oi),Pi=function(t){function e(){return t.call(this,"FieldValue.serverTimestamp")||this}return r.__extends(e,t),e.prototype.Di=function(t){return new it(t.path,X.instance)},e.prototype.isEqual=function(t){return t instanceof e},e}(Oi),Ri=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayUnion")||this).Tc=e,n}return r.__extends(e,t),e.prototype.Di=function(t){var e=new Ui({dc:3,methodName:this.lc,Ec:!0},t.ii,t.serializer,t.ignoreUndefinedProperties),n=this.Tc.map((function(t){return zi(t,e)})),i=new Z(n);return new it(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(Oi),Ni=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayRemove")||this).Tc=e,n}return r.__extends(e,t),e.prototype.Di=function(t){var e=new Ui({dc:3,methodName:this.lc,Ec:!0},t.ii,t.serializer,t.ignoreUndefinedProperties),n=this.Tc.map((function(t){return zi(t,e)})),i=new J(n);return new it(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(Oi),Mi=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.increment")||this).Ic=e,n}return r.__extends(e,t),e.prototype.Di=function(t){var e=new Ui({dc:3,methodName:this.lc},t.ii,t.serializer,t.ignoreUndefinedProperties),n=zi(this.Ic,e),i=new tt(t.serializer,n);return new it(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(Oi),Fi=function(){function t(t,e){if(ui("GeoPoint",arguments,2),hi("GeoPoint","number",1,t),hi("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new d(f.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new d(f.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.wc=t,this.Rc=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.wc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.Rc},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.wc===t.wc&&this.Rc===t.Rc},t.prototype.p=function(t){return xe(this.wc,t.wc)||xe(this.Rc,t.Rc)},t}(),Li=/^__.*__$/,ji=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.Ac=function(t,e){var n=[];return n.push(null!==this.Vt?new ut(t,this.data,this.Vt,e):new st(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new lt(t,this.fieldTransforms)),n},t}(),Bi=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.Ac=function(t,e){var n=[new ut(t,this.data,this.Vt,e)];return this.fieldTransforms.length>0&&n.push(new lt(t,this.fieldTransforms)),n},t}();function Vi(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw be()}}var Ui=function(){function t(t,e,n,i,r,o){this.settings=t,this.ii=e,this.serializer
1=n,this.ignoreUndefinedProperties=i,void 0===r&&this.mc(),this.fieldTransforms=r||[],this.Vt=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dc",{get:function(){return this.settings.dc},enumerable:!0,configurable:!0}),t.prototype.Pc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.ii,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.Vt)},t.prototype.Vc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.Pc({path:n,Ec:!1});return i.gc(t),i},t.prototype.pc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.Pc({path:n,Ec:!1});return i.mc(),i},t.prototype.yc=function(t){return this.Pc({path:void 0,Ec:!0})},t.prototype.fc=function(t){var e=!this.path||this.path.B()?"":" (found in field "+this.path.toString()+")";return new d(f.INVALID_ARGUMENT,"Function "+this.settings.methodName+"() called with invalid data. "+t+e)},t.prototype.contains=function(t){return void 0!==this.Vt.find((function(e){return t.q(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.q(e.field)}))},t.prototype.mc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.gc(this.path.get(t))},t.prototype.gc=function(t){if(0===t.length)throw this.fc("Document fields must not be empty");if(Vi(this.dc)&&Li.test(t))throw this.fc('Document fields cannot begin and end with "__"')},t}(),Hi=function(){function t(t,e,n){this.ii=t,this.ignoreUndefinedProperties=e,this.serializer=n||de.nt().bc(t)}return t.prototype.vc=function(t,e){var n=this.Sc(0,t);Gi("Data must be an object, but it was:",n,e);var i=qi(e,n);return new ji(new ft(i),null,n.fieldTransforms)},t.prototype.Dc=function(t,e,n){var i=this.Sc(2,t);Gi("Data must be an object, but it was:",i,e);var r,o,a=qi(e,i);if(n){for(var s=[],u=0,l=n;u<l.length;u++){var c=l[u],h=void 0;if(c instanceof Ai)h=c.cc;else{if("string"!=typeof c)throw be();h=Yi(t,c)}if(!i.contains(h))throw new d(f.INVALID_ARGUMENT,"Field '"+h+"' is specified in your field mask but missing from your input data.");Qi(s,h)||s.push(h)}r=new nt(s),o=i.fieldTransforms.filter((function(t){return r.dt(t.field)}))}else r=new nt(i.Vt),o=i.fieldTransforms;return new ji(new ft(a),r,o)},t.prototype.Cc=function(t,e){var n=this.Sc(1,t);Gi("Data must be an object, but it was:",n,e);var i=[],r=new dt;I(e,(function(e,o){var a=Yi(t,e),s=n.pc(a);if(o instanceof Di)i.push(a);else{var u=zi(o,s);null!=u&&(i.push(a),r.set(a,u))}}));var o=new nt(i);return new Bi(r.yt(),o,n.fieldTransforms)},t.prototype.Fc=function(t,e,n,i){var r=this.Sc(1,t),o=[Ki(t,e)],a=[n];if(i.length%2!=0)throw new d(f.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<i.length;s+=2)o.push(Ki(t,i[s])),a.push(i[s+1]);for(var u=[],l=new dt,c=o.length-1;c>=0;--c)if(!Qi(u,o[c])){var h=o[c],p=a[c],m=r.pc(h);if(p instanceof Di)u.push(h);else{var v=zi(p,m);null!=v&&(u.push(h),l.set(h,v))}}var g=new nt(u);return new Bi(l.yt(),g,r.fieldTransforms)},t.prototype.Sc=function(t,e){return new Ui({dc:t,methodName:e,path:x.G,Ec:!1},this.ii,this.serializer,this.ignoreUndefinedProperties)},t.prototype.Nc=function(t,e,n){return void 0===n&&(n=!1),zi(e,this.Sc(n?4:3,t))},t}();function zi(t,e){if(Wi(t))return Gi("Unsupported field value:",e,t),qi(t,e);if(t instanceof Oi)return function(t,e){if(!Vi(e.dc))throw e.fc(t.lc+"() can only be used with update() and set()");if(null===e.path)throw e.fc(t.lc+"() is not currently supported inside arrays");var n=t.Di(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Vt.push(e.path),t instanceof Array){if(e.settings.Ec&&4!==e.dc)throw e.fc("Nested arrays are not supported");return function(t,e){for(var n=[],i=0,r=0,o=t;r<o.length;r++){var a=zi(o[r],e.yc(i));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),i++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return e.serializer.ai(t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=_.fromDate(t);return{timestampValue:e.serializer.C(n)}}if(t instanceof _){var i=new _(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:e.serializer.C(i)}}if(t instanceof Fi)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Ii)return{bytesValue:e.serializer.ui(t)};if(t instanceof Hr){var r=e.ii,o=t.firestore.$c;if(!o.isEqual(r))throw e.fc("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+r.projectId+"/"+r.database);return{referenceValue:e.serializer._i(t.kc.path,t.firestore.$c)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.fc("Unsupported field value: "+yi(t))}(t,e)}function qi(t,e){var n={};return A(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):I(t,(function(t,i){var r=zi(i,e.Vc(t));null!=r&&(n[t]=r)})),{mapValue:{fields:n}}}function Wi(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof _||t instanceof Fi||t instanceof Ii||t instanceof Hr||t instanceof Oi)}function Gi(t,e,n){if(!Wi(n)||!gi(n)){var i=yi(n);throw e.fc("an object"===i?t+" a custom object":t+" "+i)}}function Ki(t,e){if(e instanceof Ai)return e.cc;if("string"==typeof e)return Yi(t,e);throw new d(f.INVALID_ARGUMENT,"Function "+t+"() called with invali
1d data. Field path arguments must be of type string or FieldPath.")}function Yi(t,e){try{return function(t){if(t.search(Ti)>=0)throw new d(f.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Ai.bind.apply(Ai,r.__spreadArrays([void 0],t.split("."))))}catch(r){throw new d(f.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).cc}catch(e){var n=(i=e)instanceof Error?i.message:i.toString();throw new d(f.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. "+n)}var i}function Qi(t,e){return t.some((function(t){return t.isEqual(e)}))}var $i=function(){function t(t,e,n,i,r,o){this.Tr=t,this.Lc=n,this.Mc=i,this.Oc=r,this.listener=o,this.state=0,this.xc=0,this.Bc=null,this.stream=null,this.$a=new Ve(t,e)}return t.prototype.qc=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.Uc=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Qc()},t.prototype.stop=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.qc()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))},t.prototype.Wc=function(){this.state=0,this.$a.reset()},t.prototype.jc=function(){var t=this;this.Uc()&&null===this.Bc&&(this.Bc=this.Tr.yr(this.Lc,6e4,(function(){return t.Kc()})))},t.prototype.Gc=function(t){this.zc(),this.stream.send(t)},t.prototype.Kc=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.Uc()?[2,this.close(0)]:[2]}))}))},t.prototype.zc=function(){this.Bc&&(this.Bc.cancel(),this.Bc=null)},t.prototype.close=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return this.zc(),this.$a.cancel(),this.xc++,3!==t?this.$a.reset():e&&e.code===f.RESOURCE_EXHAUSTED?(ye(e.toString()),ye("Using maximum backoff delay to prevent overloading the backend."),this.$a.Vr()):e&&e.code===f.UNAUTHENTICATED&&this.Oc._(),null!==this.stream&&(this.Hc(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Yc(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.Hc=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Jc(this.xc),n=this.xc;this.Oc.getToken().then((function(e){t.xc===n&&t.Xc(e)}),(function(n){e((function(){var e=new d(f.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Zc(e)}))}))},t.prototype.Xc=function(t){var e=this,n=this.Jc(this.xc);this.stream=this.t_(t),this.stream.e_((function(){n((function(){return e.state=2,e.listener.e_()}))})),this.stream.Yc((function(t){n((function(){return e.Zc(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Qc=function(){var t=this;this.state=4,this.$a.gr((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.Zc=function(t){return ge("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Jc=function(t){var e=this;return function(n){e.Tr.uo((function(){return e.xc===t?n():(ge("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Xi=function(t){function e(e,n,i,r,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,i,o)||this).serializer=r,a}return r.__extends(e,t),e.prototype.t_=function(t){return this.Mc.s_("Listen",t)},e.prototype.onMessage=function(t){this.$a.reset();var e=this.serializer.pi(t),n=this.serializer.bi(t);return this.listener.i_(e,n)},e.prototype.n_=function(t){var e={};e.database=this.serializer.wi,e.addTarget=this.serializer.ee(t);var n=this.serializer.zi(t);n&&(e.labels=n),this.Gc(e)},e.prototype.r_=function(t){var e={};e.database=this.serializer.wi,e.removeTarget=t,this.Gc(e)},e}($i),Zi=function(t){function e(e,n,i,r,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,i,o)||this).serializer=r,a.h_=!1,a.lastStreamToken=T.ht,a}return r.__extends(e,t),Object.defineProperty(e.prototype,"o_",{get:function(){return this.h_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.h_=!1,t.prototype.start.call(this)},e.prototype.Hc=function(){this.h_&&this.a_([])},e.prototype.t_=function(t){return this.Mc.s_("Write",t)},e.prototype.onMessage=function(t){if(we(!!t.streamToken),this.lastStreamToken=this.serializer.ci(t.streamToken),this.h_){this.$a.reset();var e=this.serializer.Mi(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.u_(n,e)}return we(!t.writeResults||0===t.writeResults.length),this.h_=!0,this.listener.c_()},e.prototype.__=function(){var t={};t.database=this.serializer.wi,this.Gc(t)},e.prototype.a_=function(t){var e=this,n={streamToken:this.serializer.ui(this.lastStreamToken),writes:t.map((function(t){return e.serializer.vi(t)}))};this.Gc(n)},e}($i),Ji=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).Mc=e,r.credentials=n,r.serializer=i,r}return r.__extends(e,t),e.prototype.d_=function(t,e){var n=this;return this.credentials.getToken().then((function(i){return n.Mc.d_(t,e,i)})).catch((function(t){throw t.code===f.UNAUTHENTICATED&&n.credentials._(),t}))},e.prototype.f_=function(t,e){var n=this;return this.credentials.getToken().then((function(i){return n.Mc.f_(t,e,i)})).catch((function(t){throw t.code===f.UNAUTHENTICATED&&n.credentials._(),t}))},e}((function(){this.l_=void 0})),tr=function(){function t(t){this.T_=t,this.E_=Gt(),this.mutations=[],this.I_=!1,this.w_=null,this.R_=new Set}return t.prototype.A_=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:if(this.m_(),this.mutations.length>0)throw new d(f.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:return n=ke(t),i={database:n.seri
1alizer.wi,documents:e.map((function(t){return n.serializer.fi(t)}))},[4,n.f_("BatchGetDocuments",i)];case 1:return o=r.sent(),a=new Map,o.forEach((function(t){var e=n.serializer.gi(t);a.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=a.get(t.toString());we(!!e),s.push(e)})),s)]}}))}))}(this.T_,t)];case 1:return[2,((e=i.sent()).forEach((function(t){t instanceof _t||t instanceof yt?n.P_(t):be()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.Ac(t,this.Rt(t))),this.R_.add(t)},t.prototype.update=function(t,e){try{this.write(e.Ac(t,this.V_(t)))}catch(t){this.w_=t}this.R_.add(t)},t.prototype.delete=function(t){this.write([new ct(t,this.Rt(t))]),this.R_.add(t)},t.prototype.commit=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(this.m_(),this.w_)throw this.w_;return t=this.E_,this.mutations.forEach((function(e){t=t.remove(e.key)})),t.forEach((function(t,n){e.mutations.push(new ht(t,e.Rt(t)))})),[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return n=ke(t),i={database:n.seri
1alizer.wi,writes:e.map((function(t){return n.serializer.vi(t)}))},[4,n.d_("Commit",i)];case 1:return o=r.sent(),[2,n.serializer.Mi(o.writeResults,o.commitTime)]}}))}))}(this.T_,this.mutations)];case 1:return n.sent(),this.I_=!0,[2]}}))}))},t.prototype.P_=function(t){var e;if(t instanceof yt)e=t.version;else{if(!(t instanceof _t))throw be();e=b.min()}var n=this.E_.get(t.key);if(null!==n){if(!e.isEqual(n))throw new d(f.ABORTED,"Document version changed between two reads.")}else this.E_=this.E_.Ae(t.key,e)},t.prototype.Rt=function(t){var e=this.E_.get(t);return!this.R_.has(t)&&e?ot.updateTime(e):ot.ft()},t.prototype.V_=function(t){var e=this.E_.get(t);if(!this.R_.has(t)&&e){if(e.isEqual(b.min()))throw new d(f.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ot.updateTime(e)}return ot.exists(!0)},t.prototype.write=function(t){this.m_(),this.mutations=this.mutations.concat(t)},t.prototype.m_=function(){},t}(),er=function(){function t(t,e){this.Aa=t,this.g_=e,this.state="Unknown",this.p_=0,this.y_=null,this.b_=!0}return t.prototype.v_=function(){var t=this;0===this.p_&&(this.S_("Unknown"),this.y_=this.Aa.yr("online_state_timeout",1e4,(function(){return t.y_=null,t.D_("Backend didn't respond within 10 seconds."),t.S_("Offline"),Promise.resolve()})))},t.prototype.C_=function(t){"Online"===this.state?this.S_("Unknown"):(this.p_++,this.p_>=1&&(this.F_(),this.D_("Connection failed 1 times. Most recent error: "+t.toString()),this.S_("Offline")))},t.prototype.set=function(t){this.F_(),this.p_=0,"Online"===t&&(this.b_=!1),this.S_(t)},t.prototype.S_=function(t){t!==this.state&&(this.state=t,this.g_(t))},t.prototype.D_=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.b_?(ye(e),this.b_=!1):ge("OnlineStateTracker",e)},t.prototype.F_=function(){null!==this.y_&&(this.y_.cancel(),this.y_=null)},t}(),nr=function(){function t(t,e,n,i,o){var a=this;this.N_=t,this.T_=e,this.Aa=n,this.k_=[],this.L_=new Map,this.M_=null,this.networkEnabled=!1,this.isPrimary=!1,this.O_=!1,this.x_=o,this.x_.B_((function(t){n.uo((function(){return r.__awaiter(a,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.q_()?(ge("RemoteStore","Restarting streams for network reachability change."),[4,this.U_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))}))})),this.Q_=new er(n,i),this.W_=function(t,e,n){var i=ke(t);return new Xi(e,i.Mc,i.credentials,i.serializer,n)}(this.T_,n,{e_:this.j_.bind(this),Yc:this.K_.bind(this),i_:this.G_.bind(this)}),this.z_=function(t,e,n){var i=ke(t);return new Zi(e,i.Mc,i.credentials,i.serializer,n)}(this.T_,n,{e_:this.H_.bind(this),Yc:this.Y_.bind(this),c_:this.J_.bind(this),u_:this.u_.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.networkEnabled=!0,this.X_()},t.prototype.X_=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return this.q_()?(t=this.z_,[4,this.N_.Yo()]):[3,3];case 1:return t.lastStreamToken=e.sent(),this.Z_()?this.tl():this.Q_.set("Unknown"),[4,this.el()];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.disableNetwork=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.sl()];case 1:return t.sent(),this.Q_.set("Offline"),[2]}}))}))},t.prototype.sl=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,this.z_.stop()];case 1:return t.sent(),[4,this.W_.stop()];case 2:return t.sent(),this.k_.length>0&&(ge("RemoteStore","Stopping write stream with "+this.k_.length+" pending writes"),this.k_=[]),this.il(),[2]}}))}))},t.prototype.mo=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return ge("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.sl()];case 1:return t.sent(),this.x_.mo(),this.Q_.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.L_.has(t.targetId)||(this.L_.set(t.targetId,t),this.Z_()?this.tl():this.W_.Uc()&&this.nl(t))},t.prototype.rl=function(t){this.L_.delete(t),this.W_.Uc()&&this.hl(t),0===this.L_.size&&(this.W_.Uc()?this.W_.jc():this.q_()&&this.Q_.set("Unknown"))},t.prototype.si=function(t){return this.L_.get(t)||null},t.prototype.ei=function(t){return this.ol.ei(t)},t.prototype.nl=function(t){this.M_.Ns(t.targetId),this.W_.n_(t)},t.prototype.hl=function(t){this.M_.Ns(t),this.W_.r_(t)},t.prototype.tl=function(){this.M_=new ae(this),this.W_.start(),this.Q_.v_()},t.prototype.Z_=function(){return this.q_()&&!this.W_.qc()&&this.L_.size>0},t.prototype.q_=function(){return!this.O_&&this.isPrimary&&this.networkEnabled},t.prototype.il=function(){this.M_=null},t.prototype.j_=function(){return r.__awaiter(this,void 0,void 0,(function(){var t=this;return r.__generator(this,(function(e){return this.L_.forEach((function(e,n){t.nl(e)})),[2]}))}))},t.prototype.K_=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.il(),this.Z_()?(this.Q_.C_(t),this.tl()):this.Q_.set("Unknown"),[2]}))}))},t.prototype.G_=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:if(this.Q_.set("Online"),!(t instanceof re&&2===t.state&&t.cause))return[3,6];r.label=1;case 1:return r.trys.push([1,3,,5]),[4,this.al(t)];case 2:return r.sent(),[3,5];case 3:return n=r.sent(),ge("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.ul(n)];case 4:return r.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof ne?this.M_.qs(t):t instanceof ie?this.M_.Hs(t):this.M_.Ws(t),e.isEqual(b.min()))return[3,13];r.label=7;case 7:return r.trys.push([7,11,,13]),[4,this.N_._h()];case 8:return i=r.sent(),e.S(i)>=0?[4,this.cl(e)]:[3,10];case 9:r.sent(),r.label=10;case 10:return[3,13];case 11:return ge("RemoteStore","Failed to raise snapshot:",o=r.sent()),[4,this.ul(o)];case 12:return r.sent(),[3,13];case 13:return[2]}}
1))}))},t.prototype.ul=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(!Un(t))throw t;return this.O_=!0,[4,this.sl()];case 1:return n.sent(),this.Q_.set("Offline"),this.Aa.Ua((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return ge("RemoteStore","Retrying IndexedDB access"),[4,this.N_._h()];case 1:return t.sent(),this.O_=!1,[4,this.X_()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.cl=function(t){var e=this,n=this.M_.Xs(t);return n.as.forEach((function(n,i){if(n.resumeToken.rt()>0){var r=e.L_.get(i);r&&e.L_.set(i,r.we(n.resumeToken,t))}})),n.us.forEach((function(t){var n=e.L_.get(t);if(n){e.L_.set(t,n.we(T.ht,n.Ee)),e.hl(t);var i=new Dt(n.target,t,1,n.sequenceNumber);e.nl(i)}})),this.ol.Mu(n)},t.prototype.al=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:e=t.cause,n=0,i=t.targetIds,r.label=1;case 1:return n<i.length?this.L_.has(o=i[n])?[4,this.ol._l(o,e)]:[3,3]:[3,5];case 2:r.sent(),this.L_.delete(o),this.M_.removeTarget(o),r.label=3;case 3:r.label=4;case 4:return n++,[3,1];case 5:return[2]}}
1))}))},t.prototype.el=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return this.ll()?[4,this.N_.qu(this.k_.length>0?this.k_[this.k_.length-1].batchId:-1)]:[3,5];case 1:return null!==(t=e.sent())?[3,2]:(0===this.k_.length&&this.z_.jc(),[3,4]);case 2:return this.dl(t),[4,this.el()];case 3:e.sent(),e.label=4;case 4:e.label=5;case 5:return this.fl()&&this.Tl(),[2]}}))}))},t.prototype.ll=function(){return this.q_()&&this.k_.length<10},t.prototype.El=function(){return this.k_.length},t.prototype.dl=function(t){this.k_.push(t),this.z_.Uc()&&this.z_.o_&&this.z_.a_(t.mutations)},t.prototype.fl=function(){return this.q_()&&!this.z_.qc()&&this.k_.length>0},t.prototype.Tl=function(){this.z_.start()},t.prototype.H_=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.z_.__(),[2]}))}))},t.prototype.J_=function(){var t=this;return this.N_.Jo(this.z_.lastStreamToken).then((function(){for(var e=0,n=t.k_;e<n.length;e++)t.z_.a_(n[e].mutations)})).catch(ri)},t.prototype.u_=function(t,e){var n=this,i=this.k_.shift(),r=De.from(i,t,e,this.z_.lastStreamToken);return this.ol.Il(r).then((function(){return n.el()}))},t.prototype.Y_=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return t&&this.k_.length>0?this.z_.o_?[4,this.wl(t)]:[3,2]:[3,5];case 1:return e.sent(),[3,4];case 2:return[4,this.Rl(t)];case 3:e.sent(),e.label=4;case 4:this.fl()&&this.Tl(),e.label=5;case 5:return[2]}}
1))}))},t.prototype.Rl=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return Rt(t.code)?[2,(ge("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.z_.lastStreamToken),this.z_.lastStreamToken=T.ht,this.N_.Jo(T.ht).catch(ri))]:[2]}))}))},t.prototype.wl=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i=this;return r.__generator(this,(function(r){return Rt(n=t.code)&&n!==f.ABORTED?(e=this.k_.shift(),[2,(this.z_.Wc(),this.ol.Al(e.batchId,t).then((function(){return i.el()})))]):[2]}))}))},t.prototype.ml=function(){return new tr(this.T_)},t.prototype.U_=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.sl()];case 1:return t.sent(),this.Q_.set("Unknown"),[4,this.enableNetwork()];case 2:return t.sent(),[2]}}))}))},t.prototype.Pl=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.q_()?(ge("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.U_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))},t.prototype.Vl=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.isPrimary=t,t&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return e.sent(),[3,5];case 2:return t?[3,4]:[4,this.sl()];case 3:e.sent(),this.Q_.set("Unknown"),e.label=4;case 4:e.label=5;case 5:return[2]}}))}))},t}();function ir(t,e){return"firestore_clients_"+t+"_"+e}function rr(t,e,n){var i="firestore_mutations_"+t+"_"+n;return e.t()&&(i+="_"+e.uid),i}function or(t,e){return"firestore_targets_"+t+"_"+e}var ar=function(){function t(t,e,n,i){this.user=t,this.batchId=e,this.state=n,this.error=i}return t.gl=function(e,n,i){var r=JSON.parse(i),o="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),a=void 0;return o&&r.error&&(o="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(a=new d(r.error.code,r.error.message)),o?new t(e,n,r.state,a):(ye("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+i),null)},t.prototype.pl=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}(),sr=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.gl=function(e,n){var i=JSON.parse(n),r="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),o=void 0;return r&&i.error&&(r="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(o=new d(i.error.code,i.error.message)),r?new t(e,i.state,o):(ye("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.pl=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}(),ur=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.gl=function(e,n){for(var i=JSON.parse(n),r="object"==typeof i&&i.activeTargetIds instanceof Array,o=$t(),a=0;r&&a<i.activeTargetIds.length;++a)r=P(i.activeTargetIds[a]),o=o.add(i.activeTargetIds[a]);return r?new t(e,o):(ye("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),lr=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.gl=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(ye("SharedClientState","Failed to parse online state: "+e),null)},t}(),cr=function(){function t(){this.activeTargetIds=$t()}return t.prototype.yl=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.bl=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.pl=function(){var t={activeTargetIds:this.activeTargetIds.W(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),hr=function(){function t(e,n,i,r,o){if(this.Tr=e,this.platform=n,this.persistenceKey=i,this.vl=r,this.ol=null,this.g_=null,this.ur=null,this.Sl=this.Dl.bind(this),this.Cl=new Mt(xe),this.ro=!1,this.Fl=[],!t.Gh(this.platform))throw new d(f.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.Nl=ir(this.persistenceKey,this.vl),this.$l=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Cl=this.Cl.Ae(this.vl,new cr),this.kl=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.Ll=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.Ml=new RegExp("^firestore_targets_"+a+"_(\\d+)$"),this.Ol=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Sl)}return t.Gh=function(t){return!(!t.window||null==t.window.localStorage)},t.prototype.start=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e,n,i,o,a,s,u,l,c,h=this;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.ol.bo()];case 1:for(t=r.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this.vl&&(o=this.getItem(ir(this.persistenceKey,i)))&&
1(a=ur.gl(i,o))&&(this.Cl=this.Cl.Ae(a.clientId,a));for(this.xl(),(s=this.storage.getItem(this.Ol))&&(u=this.Bl(s))&&this.ql(u),l=0,c=this.Fl;l<c.length;l++)this.Dl(c[l]);return this.Fl=[],this.platform.window.addEventListener("unload",(function(){return h.mo()})),this.ro=!0,[2]}}))}))},t.prototype.lr=function(t){this.setItem(this.$l,JSON.stringify(t))},t.prototype.Ul=function(){return this.Ql(this.Cl)},t.prototype.Wl=function(t){var e=!1;return this.Cl.forEach((function(n,i){i.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.jl=function(t){this.Kl(t,"pending")},t.prototype.Gl=function(t,e,n){this.Kl(t,e,n),this.zl(t)},t.prototype.Hl=function(t){var e="not-current";if(this.Wl(t)){var n=this.storage.getItem(or(this.persistenceKey,t));if(n){var i=sr.gl(t,n);i&&(e=i.state)}}return this.Yl.yl(t),this.xl(),e},t.prototype.Jl=function(t){this.Yl.bl(t),this.xl()},t.prototype.Xl=function(t){return this.Yl.activeTargetIds.has(t)},t.prototype.Zl=function(t){this.removeItem(or(this.persistenceKey,t))},t.prototype.td=function(t,e,n){this.ed(t,e,n)},t.prototype.Du=function(t,e,n){var i=this;e.forEach((function(t){i.zl(t)})),this.currentUser=t,n.forEach((function(t){i.jl(t)}))},t.prototype.sd=function(t){this.nd(t)},t.prototype.mo=function(){this.ro&&(this.platform.window.removeEventListener("storage",this.Sl),this.removeItem(this.Nl),this.ro=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return ge("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){ge("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){ge("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Dl=function(t){var e=this;if(t.storageArea===this.storage){if(ge("SharedClientState","EVENT",t.key,t.newValue),t.key===this.Nl)return void ye("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Tr.Ua((function(){return r.__awaiter(e,void 0,void 0,(function(){var e,n,i,o,a,s;return r.__generator(this,(function(r){if(this.ro){if(null!==t.key)if(this.kl.test(t.key)){if(null==t.newValue)return e=this.rd(t.key),[2,this.hd(e,null)];if(n=this.od(t.key,t.newValue))return[2,this.hd(n.clientId,n)]}else if(this.Ll.test(t.key)){if(null!==t.newValue&&(i=this.ad(t.key,t.newValue)))return[2,this.ud(i)]}else if(this.Ml.test(t.key)){if(null!==t.newValue&&(o=this._d(t.key,t.newValue)))return[2,this.ld(o)]}else if(t.key===this.Ol){if(null!==t.newValue&&(a=this.Bl(t.newValue)))return[2,this.ql(a)]}else t.key===this.$l&&(s=function(t){var e=je.dr;if(null!=t)try{var n=JSON.parse(t);we("number"==typeof n),e=n}catch(t){ye("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(t.newValue))!==je.dr&&this.ur(s)}else this.Fl.push(t);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Yl",{get:function(){return this.Cl.get(this.vl)},enumerable:!0,configurable:!0}),t.prototype.xl=function(){this.setItem(this.Nl,this.Yl.pl())},t.prototype.Kl=function(t,e,n){var i=new ar(this.currentUser,t,e,n),r=rr(this.persistenceKey,this.currentUser,t);this.setItem(r,i.pl())},t.prototype.zl=function(t){var e=rr(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.nd=function(t){this.storage.setItem(this.Ol,JSON.stringify({clientId:this.vl,onlineState:t}))},t.prototype.ed=function(t,e,n){var i=or(this.persistenceKey,t),r=new sr(t,e,n);this.setItem(i,r.pl())},t.prototype.rd=function(t){var e=this.kl.exec(t);return e?e[1]:null},t.prototype.od=function(t,e){var n=this.rd(t);return ur.gl(n,e)},t.prototype.ad=function(t,e){var n=this.Ll.exec(t),i=Number(n[1]);return ar.gl(new h(void 0!==n[2]?n[2]:null),i,e)},t.prototype._d=function(t,e){var n=this.Ml.exec(t),i=Number(n[1]);return sr.gl(i,e)},t.prototype.Bl=function(t){return lr.gl(t)},t.prototype.ud=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.ol.dd(t.batchId,t.state,t.error)]:(ge("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.ld=function(t){return this.ol.fd(t.targetId,t.state,t.error)},t.prototype.hd=function(t,e){var n=this,i=e?this.Cl.Ae(t,e):this.Cl.remove(t),r=this.Ql(this.Cl),o=this.Ql(i),a=[],s=[];return o.forEach((function(t){r.has(t)||a.push(t)})),r.forEach((function(t){o.has(t)||s.push(t)})),this.ol.Td(a,s).then((function(){n.Cl=i}))},t.prototype.ql=function(t){this.Cl.get(t.clientId)&&this.g_(t.onlineState)},t.prototype.Ql=function(t){var e=$t();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),fr=function(){function t(){this.Ed=new cr,this.Id={},this.ol=null,this.g_=null,this.ur=null}return t.prototype.jl=function(t){},t.prototype.Gl=function(t,e,n){},t.prototype.Hl=function(t){return this.Ed.yl(t),this.Id[t]||"not-current"},t.prototype.td=function(t,e,n){this.Id[t]=e},t.prototype.Jl=function(t){this.Ed.bl(t)},t.prototype.Xl=function(t){return this.Ed.activeTargetIds.has(t)},t.prototype.Zl=function(t){delete this.Id[t]},t.prototype.Ul=function(){return this.Ed.activeTargetIds},t.prototype.Wl=function(t){return this.Ed.activeTargetIds.has(t)},t.prototype.start=function(){return this.Ed=new cr,Promise.resolve()},t.prototype.Du=function(t,e,n){},t.prototype.sd=function(t){},t.prototype.mo=function(){},t.prototype.lr=function(t){},t}(),dr=function(t){this.key=t},pr=function(t){this.key=t},mr=function(){function t(t,e){this.query=t,this.wd=e,this.Rd=null,this.fs=!1,this.Ad=Yt(),this.ns=Yt(),this.md=new Xt(t.se.bind(t))}return Object.defineProperty(t.prototype,"Pd",{get:function(){return this.wd},enumerable:!0,configurable:!0}),t.prototype.Vd=function(t,e){var n=this,i=e?e.gd:new Zt,r=e?e.md:this.md,o=e?e.ns:this.ns,a=r,s=!1,u=this.query.oe()&&r.size===this.query.limit?r.last():null,l=this.query.ae()&&r.size===this.query.limit?r.first():null;if(t.pe((function(t,e){var c=r.get(t),h=e instanceof yt?e:null;h&&(h=n.query.matches(h)?h:null);var f=!!c&&n.ns.has(c.key),d=!!h&&(h.At||n.ns.has(h.key)&&h.hasCommittedMutations),p=!1;c&&h?c.data().isEqual(h.data())?f!==d&&(i.track({type:3,doc:h}),p=!0):n.pd(c,h)||(i.track({type:2,doc:h}),p=!0,(u&&n.query.se(h,u)>0||l&&n.query.se(h,l)<0)&&(s=!0)):!c&&h?(i.track({type:0,doc:h}),p=!0):c&&!h&&(i.track({type:1,doc:c}),p=!0,(u||l)&&(s=!0)),p&&(h?(a=a.add(h),o=d?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.oe()||this.query.ae())for(;a.size>this.query.limit;){var c=this.query.oe()?a.last():a.first();a=a.delete(c.key),o=o.delete(c.key),i.track({type:1,doc:c})}return{md:a,gd:i,yd:s,ns:o}},t.prototype.pd=function(t,e){return t.At&&e.hasCommittedMutations&&!e.At},t.prototype.xn=function(t,e,n){var i=this,r=this.md;this.md=t.md,this.ns=t.ns;var o=t.gd.es();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return be()}};return n(t)-n(e)}(t.type,e.type)||i.query.se(t.doc,e.doc)})),this.bd(n);var a=e?this.vd():[],s=0===this.Ad.size&&this.fs?1:0,u=s!==this.Rd;return this.Rd=s,0!==o.length||u?{snapshot:new Jt(this.query,t.md,r,o,t.ns,0===s,u,!1),Sd:a}:{Sd:a}},t.prototype.Dd=function(t){return this.fs&&"Offline"===t?(this.fs=!1,this.xn({md:this.md,gd:new Zt,ns:this.ns,yd:!1},!1)):{Sd:[]}},t.prototype.Cd=function(t){return!this.wd.has(t)&&!!this.md.has(t)&&!this.md.get(t).At},t.prototype.bd=function(t){var e=this;
1t&&(t.Ts.forEach((function(t){return e.wd=e.wd.add(t)})),t.Es.forEach((function(t){})),t.Is.forEach((function(t){return e.wd=e.wd.delete(t)})),this.fs=t.fs)},t.prototype.vd=function(){var t=this;if(!this.fs)return[];var e=this.Ad;this.Ad=Yt(),this.md.forEach((function(e){t.Cd(e.key)&&(t.Ad=t.Ad.add(e.key))}));var n=[];return e.forEach((function(e){t.Ad.has(e)||n.push(new pr(e))})),this.Ad.forEach((function(t){e.has(t)||n.push(new dr(t))})),n},t.prototype.Fd=function(t){this.wd=t.Ku,this.Ad=Yt();var e=this.Vd(t.documents);return this.xn(e,!0)},t.prototype.Nd=function(){return Jt.os(this.query,this.md,this.ns,0===this.Rd)},t}(),vr=function(){function t(t,e,n,i){this.Aa=t,this.$d=e,this.updateFunction=n,this.Va=i,this.kd=5,this.$a=new Ve(this.Aa,"transaction_retry")}return t.prototype.Ld=function(){this.Md()},t.prototype.Md=function(){var t=this;this.$a.gr((function(){return r.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return r.__generator(this,(function(i){return t=this.$d.ml(),(e=this.Od(t))&&e.then((function(e){n.Aa.uo((function(){return t.commit().then((function(){n.Va.resolve(e)})).catch((function(t){n.xd(t)}))}))})).catch((function(t){n.xd(t)})),[2]}))}))}))},t.prototype.Od=function(t){try{var e=this.updateFunction(t);
1return!O(e)&&e.catch&&e.then?e:(this.Va.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Va.reject(t),null}},t.prototype.xd=function(t){var e=this;this.kd>0&&this.Bd(t)?(this.kd-=1,this.Aa.uo((function(){return e.Md(),Promise.resolve()}))):this.Va.reject(t)},t.prototype.Bd=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Rt(e)}return!1},t}(),gr=function(t,e,n){this.query=t,this.targetId=e,this.view=n},yr=function(t){this.key=t,this.qd=!1},_r=function(){function t(t,e,n,i,r){this.N_=t,this.$d=e,this.Ud=n,this.currentUser=i,this.Qd=r,this.Wd=null,this.jd=new Te((function(t){return t.canonicalId()})),this.Kd=new Map,this.Gd=[],this.zd=new Mt(S.N),this.Hd=new Map,this.Yd=new oi,this.Jd={},this.Xd=new Map,this.Zd=tn.rh(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"tf",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){this.Wd=t},t.prototype.listen=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ef("listen()"),(n=this.jd.get(t))?(this.Ud.Hl(n.targetId),e=n.view.Nd(),[3,4]):[3,1];case 1:return[4,this.N_.Qu(t.ee())];case 2:return i=r.sent(),o=this.Ud.Hl(i.targetId),[4,this.sf(t,i.targetId,"current"===o)];case 3:e=r.sent(),this.tf&&this.$d.listen(i),r.label=4;case 4:return[2,e]}}))}))},t.prototype.sf=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.N_.ju(t,!0)];case 1:return i=r.sent(),o=new mr(t,i.Ku),a=o.Vd(i.documents),s=ee.ds(e,n&&"Offline"!==this.onlineState),u=o.xn(a,this.tf,s),this.if(e,u.Sd),l=new gr(t,e,o),[2,(this.jd.set(t,l),this.Kd.has(e)?this.Kd.get(e).push(t):this.Kd.set(e,[t]),u.snapshot)]}}))}))},t.prototype.rl=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ef("unlisten()"),e=this.jd.get(t),(n=this.Kd.get(e.targetId)).length>1?[2,(this.Kd.set(e.targetId,n.filter((function(e){return!e.isEqual(t)}))),void this.jd.delete(t))]:this.tf?(this.Ud.Jl(e.targetId),this.Ud.Wl(e.targetId)?[3,2]:[4,this.N_.Wu(e.targetId,!1).then((function(){i.Ud.Zl(e.targetId),i.$d.rl(e.targetId),i.nf(e.targetId)})).catch(ri)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return this.nf(e.targetId),[4,this.N_.Wu(e.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}}
1))}))},t.prototype.write=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:this.ef("write()"),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,this.N_.$u(t)];case 2:return n=r.sent(),this.Ud.jl(n.batchId),this.rf(n.batchId,e),[4,this.hf(n.Dn)];case 3:return r.sent(),[4,this.$d.el()];case 4:return r.sent(),[3,6];case 5:return i=r.sent(),o=Qn(i,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new vr(t,this.$d,e,n).Ld()},t.prototype.Mu=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:this.ef("applyRemoteEvent()"),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.N_.Mu(t)];case 2:return e=i.sent(),t.as.forEach((function(t,e){var i=n.Hd.get(e);i&&(we(t.Ts.size+t.Es.size+t.Is.size<=1),t.Ts.size>0?i.qd=!0:t.Es.size>0?we(i.qd):t.Is.size>0&&(we(i.qd),i.qd=!1))})),[4,this.hf(e,t)];case 3:return i.sent(),[3,6];case 4:return[4,ri(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}
1))}))},t.prototype.Dd=function(t,e){this.ef("applyOnlineStateChange()");var n=[];this.jd.forEach((function(e,i){var r=i.view.Dd(t);r.snapshot&&n.push(r.snapshot)})),this.Wd.af(t),this.Wd.i_(n),this.onlineState=t},t.prototype._l=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ef("rejectListens()"),this.Ud.td(t,"rejected",e),n=this.Hd.get(t),(i=n&&n.key)?(o=(o=new Mt(S.N)).Ae(i,new _t(i,b.min())),a=Yt().add(i),s=new te(b.min(),new Map,new jt(xe),o,a),[4,this.Mu(s)]):[3,2];case 1:return r.sent(),this.zd=this.zd.remove(i),this.Hd.delete(t),this.uf(),[3,4];case 2:return[4,this.N_.Wu(t,!1).then((function(){return u.nf(t,e)})).catch(ri)];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},t.prototype.Il=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(i){switch(i.label){case 0:this.ef("applySuccessfulWrite()"),this.cf(e=t.batch.batchId,null),this._f(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.N_.zo(t)];case 2:return n=i.sent(),this.Ud.Gl(e,"acknowledged"),[4,this.hf(n)];case 3:return i.sent(),[3,6];case 4:return[4,ri(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}
1))}))},t.prototype.Al=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n;return r.__generator(this,(function(i){switch(i.label){case 0:this.ef("rejectFailedWrite()"),this.cf(t,e),this._f(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.N_.Lu(t)];case 2:return n=i.sent(),this.Ud.Gl(t,"rejected",e),[4,this.hf(n)];case 3:return i.sent(),[3,6];case 4:return[4,ri(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.lf=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:this.$d.q_()||ge("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.N_.sa()];case 2:return-1===(e=r.sent())?[2,void t.resolve()]:((n=this.Xd.get(e)||[]).push(t),this.Xd.set(e,n),[3,4]);case 3:return i=r.sent(),o=Qn(i,"Initialization of waitForPendingWrites() operation failed"),t.reject(o),[3,4];case 4:return[2]}}
1))}))},t.prototype._f=function(t){(this.Xd.get(t)||[]).forEach((function(t){t.resolve()})),this.Xd.delete(t)},t.prototype.df=function(t){this.Xd.forEach((function(e){e.forEach((function(e){e.reject(new d(f.CANCELLED,t))}))})),this.Xd.clear()},t.prototype.rf=function(t,e){var n=this.Jd[this.currentUser.s()];n||(n=new Mt(xe)),n=n.Ae(t,e),this.Jd[this.currentUser.s()]=n},t.prototype.cf=function(t,e){var n=this.Jd[this.currentUser.s()];if(n){var i=n.get(t);i&&(e?i.reject(e):i.resolve(),n=n.remove(t)),this.Jd[this.currentUser.s()]=n}},t.prototype.nf=function(t,e){var n=this;void 0===e&&(e=null),this.Ud.Jl(t);for(var i=0,r=this.Kd.get(t);i<r.length;i++){var o=r[i];this.jd.delete(o),e&&this.Wd.ff(o,e)}this.Kd.delete(t),this.tf&&this.Yd.nc(t).forEach((function(t){n.Yd.Ch(t)||n.Tf(t)}))},t.prototype.Tf=function(t){var e=this.zd.get(t);null!==e&&(this.$d.rl(e),this.zd=this.zd.remove(t),this.Hd.delete(e),this.uf())},t.prototype.if=function(t,e){for(var n=0,i=e;n<i.length;n++){var r=i[n];r instanceof dr?(this.Yd.yh(r.key,t),this.Ef(r)):r instanceof pr?(ge("SyncEngine","Document no longer in limbo: "+r.key),this.Yd.vh(r.key,t),this.Yd.Ch(r.key)||this.Tf(r.key)):be()}},t.prototype.Ef=function(t){var e=t.key;this.zd.get(e)||(ge("SyncEngine","New document in limbo: "+e),this.Gd.push(e),this.uf())},t.prototype.uf=function(){for(;this.Gd.length>0&&this.zd.size<this.Qd;){var t=this.Gd.shift(),e=this.Zd.next();this.Hd.set(e,new yr(t)),this.zd=this.zd.Ae(t,e),this.$d.listen(new Dt(kt.Wt(t.path).ee(),e,2,je.dr))}},t.prototype.If=function(){return this.zd},t.prototype.wf=function(){return this.Gd},t.prototype.hf=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a=this;return r.__generator(this,(function(r){switch(r.label){case 0:return n=[],i=[],o=[],this.jd.forEach((function(r,s){o.push(Promise.resolve().then((function(){var e=s.view.Vd(t);return e.yd?a.N_.ju(s.query,!1).then((function(t){return s.view.Vd(t.documents,e)})):e})).then((function(t){var r=e&&e.as.get(s.targetId),o=s.view.xn(t,a.tf,r);if(a.if(s.targetId,o.Sd),o.snapshot){a.tf&&a.Ud.td(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Le.ar(s.targetId,o.snapshot);i.push(u)}})))})),[4,Promise.all(o)];case 1:return r.sent(),this.Wd.i_(n),[4,this.N_.Bu(i)];case 2:return r.sent(),[2]}}))}))},t.prototype.ef=function(t){},t.prototype.Pl=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return this.currentUser.isEqual(t)?[3,3]:[4,this.N_.Du(t)];case 1:return e=n.sent(),this.currentUser=t,this.df("'waitForPendingWrites' promise is rejected due to a user change."),this.Ud.Du(t,e.Fu,e.Nu),[4,this.hf(e.Cu)];case 2:n.sent(),n.label=3;case 3:return[4,this.$d.Pl()];case 4:return n.sent(),[2]}}))}))},t.prototype.enableNetwork=function(){return this.$d.enableNetwork()},t.prototype.disableNetwork=function(){return this.$d.disableNetwork()},t.prototype.ei=function(t){var e=this.Hd.get(t);if(e&&e.qd)return Yt().add(e.key);var n=Yt(),i=this.Kd.get(t);if(!i)return n;for(var r=0,o=i;r<o.length;r++){var a=this.jd.get(o[r]);n=n.He(a.view.Pd)}return n},t}(),br=function(t){function e(e,n,i,r,o){var a=this;return(a=t.call(this,e,n,i,r,o)||this).N_=e,a.Rf=void 0,a}return r.__extends(e,t),Object.defineProperty(e.prototype,"tf",{get:function(){return!0===this.Rf},enumerable:!0,configurable:!0}),e.prototype.enableNetwork=function(){return this.N_.ao(!0),t.prototype.enableNetwork.call(this)},e.prototype.disableNetwork=function(){return this.N_.ao(!1),t.prototype.disableNetwork.call(this)},e.prototype.Af=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(i){switch(i.label){case 0:return[4,this.N_.ju(t.query,!0)];case 1:return e=i.sent(),n=t.view.Fd(e),[2,(this.Rf&&this.if(t.targetId,n.Sd),n)]}}))}))},e.prototype.Dd=function(e,n){this.tf&&0===n&&(t.prototype.Dd.call(this,e,n),this.Ud.sd(e)),this.tf||1!==n||t.prototype.Dd.call(this,e,n)},e.prototype.dd=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ef("applyBatchState()"),[4,this.N_.zu(t)];case 1:return null===(i=r.sent())?[3,6]:"pending"!==e?[3,3]:[4,this.$d.el()];case 2:return r.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.cf(t,n||null),this.N_.Hu(t)):be(),r.label=4;case 4:return[4,this.hf(i)];case 5:return r.sent(),[3,7];case 6:ge("SyncEngine","Cannot apply mutation batch with id: "+t),r.label=7;case 7:return[2]}}
1))}))},e.prototype.Vl=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u=this;return r.__generator(this,(function(r){switch(r.label){case 0:return!0!==t||!0===this.Rf?[3,3]:(e=this.Ud.Ul(),[4,this.mf(e.W(),!0)]);case 1:return n=r.sent(),this.Rf=!0,[4,this.$d.Vl(!0)];case 2:for(r.sent(),i=0,o=n;i<o.length;i++)this.$d.listen(o[i]);return[3,7];case 3:return!1!==t||!1===this.Rf?[3,7]:(a=[],s=Promise.resolve(),this.Kd.forEach((function(t,e){u.Ud.Xl(e)?a.push(e):s=s.then((function(){return u.nf(e),u.N_.Wu(e,!0)})),u.$d.rl(e)})),[4,s]);case 4:return r.sent(),[4,this.mf(a,!1)];case 5:return r.sent(),this.Pf(),this.Rf=!1,[4,this.$d.Vl(!1)];case 6:r.sent(),r.label=7;case 7:return[2]}}))}))},e.prototype.Pf=function(){var t=this;this.Hd.forEach((function(e,n){t.$d.rl(n)})),this.Yd.rc(),this.Hd=new Map,this.zd=new Mt(S.N)},e.prototype.mf=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,l,c,h,f,d;return r.__generator(this,(function(r){switch(r.label){case 0:e=[],n=[],i=0,o=t,r.label=1;case 1:return i<o.length?(s=void 0,(u=this.Kd.get(a=o[i]))&&0!==u.length?[4,this.N_.Wu(a,!0)]:[3,8]):[3,14];case 2:return r.sent(),[4,this.N_.Qu(u[0].ee())];case 3:s=r.sent(),l=0,c=u,r.label=4;case 4:return l<c.length?(h=this.jd.get(c[l]),[4,this.Af(h)]):[3,7];case 5:(f=r.sent()).snapshot&&n.push(f.snapshot),r.label=6;case 6:return l++,[3,4];case 7:return[3,12];case 8:return[4,this.N_.Yu(a)];case 9:return d=r.sent(),[4,this.N_.Qu(d)];case 10:return s=r.sent(),[4,this.sf(this.Vf(d),a,!1)];case 11:r.sent(),r.label=12;case 12:e.push(s),r.label=13;case 13:return i++,[3,1];case 14:return[2,(this.Wd.i_(n),e)]}}))}))},e.prototype.Vf=function(t){return new kt(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)},e.prototype.bo=function(){return this.N_.bo()},e.prototype.fd=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return this.Rf?(ge("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.Kd.has(t))return[3,8];switch(e){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.N_.Kr()];case 3:return i=r.sent(),o=te.ls(t,"current"===e),[4,this.hf(i,o)];case 4:return r.sent(),[3,8];case 5:return[4,this.N_.Wu(t,!0)];case 6:return r.sent(),this.nf(t,n),[3,8];case 7:be(),r.label=8;case 8:return[2]}}
1))}))},e.prototype.Td=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c,h,f=this;return r.__generator(this,(function(d){switch(d.label){case 0:if(!this.Rf)return[3,10];n=0,i=t,d.label=1;case 1:return n<i.length?this.Kd.has(o=i[n])?(ge("SyncEngine","Adding an already active target "+o),[3,5]):[4,this.N_.Yu(o)]:[3,6];case 2:return a=d.sent(),[4,this.N_.Qu(a)];case 3:return s=d.sent(),[4,this.sf(this.Vf(a),s.targetId,!1)];case 4:d.sent(),this.$d.listen(s),d.label=5;case 5:return n++,[3,1];case 6:u=function(t){return r.__generator(this,(function(e){switch(e.label){case 0:return l.Kd.has(t)?[4,l.N_.Wu(t,!1).then((function(){f.$d.rl(t),f.nf(t)})).catch(ri)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},l=this,c=0,h=e,d.label=7;case 7:return c<h.length?[5,u(h[c])]:[3,10];case 8:d.sent(),d.label=9;case 9:return c++,[3,7];case 10:return[2]}}))}))},e}(_r),wr=function(){this.gf=void 0,this.pf=[]},kr=function(){function t(t){this.ol=t,this.yf=new Te((function(t){return t.canonicalId()})),this.onlineState="Unknown",this.bf=new Set,this.ol.subscribe(this)}return t.prototype.listen=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:if(n=!1,(i=this.yf.get(e=t.query))||(n=!0,i=new wr),!n)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),o=i,[4,this.ol.listen(e)];case 2:return o.gf=r.sent(),[3,4];case 3:return a=r.sent(),s=Qn(a,"Initialization of query '"+t.query+"' failed"),[2,void t.onError(s)];case 4:return this.yf.set(e,i),i.pf.push(t),t.Dd(this.onlineState),i.gf&&t.vf(i.gf)&&this.Sf(),[2]}}))}))},t.prototype.rl=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o;return r.__generator(this,(function(r){return n=!1,(i=this.yf.get(e=t.query))&&(o=i.pf.indexOf(t))>=0&&(i.pf.splice(o,1),n=0===i.pf.length),n?[2,(this.yf.delete(e),this.ol.rl(e))]:[2]}))}))},t.prototype.i_=function(t){for(var e=!1,n=0,i=t;n<i.length;n++){var r=i[n],o=this.yf.get(r.query);if(o){for(var a=0,s=o.pf;a<s.length;a++)s[a].vf(r)&&(e=!0);o.gf=r}}e&&this.Sf()},t.prototype.ff=function(t,e){var n=this.yf.get(t);if(n)for(var i=0,r=n.pf;i<r.length;i++)r[i].onError(e);this.yf.delete(t)},t.prototype.af=function(t){this.onlineState=t;var e=!1;this.yf.forEach((function(n,i){for(var r=0,o=i.pf;r<o.length;r++)o[r].Dd(t)&&(e=!0)})),e&&this.Sf()},t.prototype.Df=function(t){this.bf.add(t),t.next()},t.prototype.Cf=function(t){this.bf.delete(t)},t.prototype.Sf=function(){this.bf.forEach((function(t){t.next()}))},t}(),Cr=function(){function t(t,e,n){this.query=t,this.Ff=e,this.Nf=!1,this.$f=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.vf=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,i=t.docChanges;n<i.length;n++){var r=i[n];3!==r.type&&e.push(r)}t=new Jt(t.query,t.docs,t.ss,e,t.ns,t.fromCache,t.rs,!0)}var o=!1;return this.Nf?this.kf(t)&&(this.Ff.next(t),o=!0):this.Lf(t,this.onlineState)&&(this.Mf(t),o=!0),this.$f=t,o},t.prototype.onError=function(t){this.Ff.error(t)},t.prototype.Dd=function(t){this.onlineState=t;var e=!1;return this.$f&&!this.Nf&&this.Lf(this.$f,t)&&(this.Mf(this.$f),e=!0),e},t.prototype.Lf=function(t,e){return!t.fromCache||!(this.options.Of&&"Offline"!==e||t.docs.B()&&"Offline"!==e)},t.prototype.kf=function(t){return t.docChanges.length>0||!!(t.rs||this.$f&&this.$f.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.Mf=function(t){t=Jt.os(t.query,t.docs,t.ns,t.fromCache),this.Nf=!0,this.Ff.next(t)},t}(),xr=function(){function t(){}return t.prototype.Su=function(t){this.xf=t},t.prototype.Zn=function(t,e,n,i){var r=this;return e.te()||n.isEqual(b.min())?this.Bf(t,e):this.xf.Yn(t,i).next((function(o){var s=r.qf(e,o);return(e.oe()||e.ae())&&r.yd(e.Bt,s,i,n)?r.Bf(t,e):(me()<=a.LogLevel.DEBUG&&ge("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),e.toString()),r.xf.Zn(t,e,n).next((function(t){return s.forEach((function(e){t=t.Ae(e.key,e)})),t})))}))},t.prototype.qf=function(t,e){var n=new jt((function(e,n){return t.se(e,n)}));return e.forEach((function(e,i){i instanceof yt&&t.matches(i)&&(n=n.add(i))})),n},t.prototype.yd=function(t,e,n,i){if(n.size!==e.size)return!0;var r="F"===t?e.last():e.first();return!!r&&(r.hasPendingWrites||r.version.S(i)>0)},t.prototype.Bf=function(t,e){return me()<=a.LogLevel.DEBUG&&ge("IndexFreeQueryEngine","Using full collection scan to execute query:",e.toString()),this.xf.Zn(t,e,b.min())},t}(),Sr=function(){function t(t,e){this.jn=t,this.hh=e,this.Wn=[],this.Uf=1,this.lastStreamToken=T.ht,this.Qf=new jt(ai.Xu)}return t.prototype.Go=function(t){return Pe.resolve(0===this.Wn.length)},t.prototype.zo=function(t,e,n){return we(0===this.Wf(e.batchId,"acknowledged")),this.lastStreamToken=n,Pe.resolve()},t.prototype.Yo=function(t){return Pe.resolve(this.lastStreamToken)},t.prototype.Jo=function(t,e){return this.lastStreamToken=e,Pe.resolve()},t.prototype.Xo=function(t,e,n,i){var r=this.Uf;this.Uf++;var o=new Oe(r,e,n,i);this.Wn.push(o);for(var a=0,s=i;a<s.length;a++){var u=s[a];this.Qf=this.Qf.add(new ai(u.key,r)),this.jn.Dr(t,u.key.path.L())}return Pe.resolve(o)},t.prototype.Zo=function(t,e){return Pe.resolve(this.jf(e))},t.prototype.ea=function(t,e){var n=this.Kf(e+1),i=n<0?0:n;return Pe.resolve(this.Wn.length>i?this.Wn[i]:null)},t.prototype.sa=function(){return Pe.resolve(0===this.Wn.length?-1:this.Uf-1)},t.prototype.ia=function(t){return Pe.resolve(this.Wn.slice())}
1,t.prototype.Gn=function(t,e){var n=this,i=new ai(e,0),r=new ai(e,Number.POSITIVE_INFINITY),o=[];return this.Qf.Ke([i,r],(function(t){var e=n.jf(t.oc);o.push(e)})),Pe.resolve(o)},t.prototype.Xn=function(t,e){var n=this,i=new jt(xe);return e.forEach((function(t){var e=new ai(t,0),r=new ai(t,Number.POSITIVE_INFINITY);n.Qf.Ke([e,r],(function(t){i=i.add(t.oc)}))})),Pe.resolve(this.Gf(i))},t.prototype.nr=function(t,e){var n=e.path,i=n.length+1,r=n;S.et(r)||(r=r.child(""));var o=new ai(new S(r),0),a=new jt(xe);return this.Qf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===i&&(a=a.add(t.oc)),!0)}),o),Pe.resolve(this.Gf(a))},t.prototype.Gf=function(t){var e=this,n=[];return t.forEach((function(t){var i=e.jf(t);null!==i&&n.push(i)})),n},t.prototype.ra=function(t,e){var n=this;we(0===this.Wf(e.batchId,"removed")),this.Wn.shift();var i=this.Qf;return Pe.forEach(e.mutations,(function(r){var o=new ai(r.key,e.batchId);return i=i.delete(o),n.hh.Bo(t,r.key)})).next((function(){n.Qf=i}))},t.prototype.ha=function(t){},t.prototype.Ch=function(t,e){var n=new ai(e,0),i=this.Qf.ze(n);return Pe.resolve(e.isEqual(i&&i.key))},t.prototype.oa=function(t){return Pe.resolve()},t.prototype.Wf=function(t,e){return this.Kf(t)},t.prototype.Kf=function(t){return 0===this.Wn.length?0:t-this.Wn[0].batchId},t.prototype.jf=function(t){var e=this.Kf(t);return e<0||e>=this.Wn.length?null:this.Wn[e]},t}(),Er=function(){function t(t,e){this.jn=t,this.zf=e,this.docs=new Mt(S.N),this.size=0}return t.prototype.Nn=function(t,e,n){var i=e.key,r=this.docs.get(i),o=r?r.size:0,a=this.zf(e);return this.docs=this.docs.Ae(i,{Mr:e,size:a,readTime:n}),this.size+=a-o,this.jn.Dr(t,i.path.L())},t.prototype.kn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Ln=function(t,e){var n=this.docs.get(e);return Pe.resolve(n?n.Mr:null)},t.prototype.getEntries=function(t,e){var n=this,i=Ht();return e.forEach((function(t){var e=n.docs.get(t);i=i.Ae(t,e?e.Mr:null)})),Pe.resolve(i)},t.prototype.Zn=function(t,e,n){for(var i=qt(),r=new S(e.path.child("")),o=this.docs.ve(r);o.$e();){var a=o.Ne(),s=a.value,u=s.Mr,l=s.readTime;if(!e.path.q(a.key.path))break;l.S(n)<=0||u instanceof yt&&e.matches(u)&&(i=i.Ae(u.key,u))}return Pe.resolve(i)},t.prototype.Hf=function(t,e){return Pe.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Yr=function(e){return new t.Jr(this)},t.prototype.Zr=function(t){return Pe.resolve(this.size)},t}();Er.Jr=function(t){function e(e){var n=this;return(n=t.call(this)||this).th=e,n}return r.__extends(e,t),e.prototype.xn=function(t){var e=this,n=[];return this.Dn.forEach((function(i,r){r?n.push(e.th.Nn(t,r,e.readTime)):e.th.kn(i)})),Pe.vn(n)},e.prototype.Mn=function(t,e){return this.th.Ln(t,e)},e.prototype.On=function(t,e){return this.th.getEntries(t,e)},e}(Re);var Ir=function(){function t(t){this.persistence=t,this.Yf=new Te((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=b.min(),this.highestTargetId=0,this.Jf=0,this.Xf=new oi,this.targetCount=0,this.Zf=tn.nh()}return t.prototype.js=function(t,e){return this.Yf.forEach((function(t,n){return e(n)})),Pe.resolve()},t.prototype._h=function(t){return Pe.resolve(this.lastRemoteSnapshotVersion)},t.prototype.lh=function(t){return Pe.resolve(this.Jf)},t.prototype.oh=function(t){return this.highestTargetId=this.Zf.next(),Pe.resolve(this.highestTargetId)},t.prototype.dh=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Jf&&(this.Jf=e),Pe.resolve()},t.prototype.Th=function(t){this.Yf.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.Zf=new tn(e),this.highestTargetId=e),t.sequenceNumber>this.Jf&&(this.Jf=t.sequenceNumber)},t.prototype.fh=function(t,e){return this.Th(e),this.targetCount+=1,Pe.resolve()},t.prototype.Ih=function(t,e){return this.Th(e),Pe.resolve()},t.prototype.wh=function(t,e){return this.Yf.delete(e.target),this.Xf.nc(e.targetId),this.targetCount-=1,Pe.resolve()},t.prototype.Ah=function(t,e,n){var i=this,r=0,o=[];return this.Yf.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(i.Yf.delete(a),o.push(i.Rh(t,s.targetId)),r++)})),Pe.vn(o).next((function(){return r}))},t.prototype.Vh=function(t){return Pe.resolve(this.targetCount)},t.prototype.gh=function(t,e){var n=this.Yf.get(e)||null;return Pe.resolve(n)},t.prototype.ph=function(t,e,n){return this.Xf.ec(e,n),Pe.resolve()},t.prototype.bh=function(t,e,n){this.Xf.ic(e,n);var i=this.persistence.hh,r=[];return i&&e.forEach((function(e){r.push(i.Bo(t,e))})),Pe.vn(r)},t.prototype.Rh=function(t,e){return this.Xf.nc(e),Pe.resolve()},t.prototype.Sh=function(t,e){var n=this.Xf.hc(e);return Pe.resolve(n)},t.prototype.Ch=function(t,e){return Pe.resolve(this.Xf.Ch(e))},t}(),Ar=function(){function t(t){var e=this;this.tT={},this.Bh=new je(0),this.qh=!1,this.qh=!0,this.hh=t(this),this.Yh=new Ir(this),this.jn=new We,this.Qn=new Er(this.jn,(function(t){return e.hh.eT(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.mo=function(){return this.qh=!1,Promise.resolve()},Object.defineProperty(t.prototype,"ro",{get:function(){return this.qh},enumerable:!0,configurable:!0}),t.prototype.ho=function(){},t.prototype.Fo=function(){return this.jn},t.prototype.vo=function(t){var e=this.tT[t.s()];return e||(e=new Sr(this.jn,this.hh),this.tT[t.s()]=e),e},t.prototype.Do=function(){return this.Yh},t.prototype.Co=function(){return this.Qn},t.prototype.runTransaction=function(t,e,n){var i=this;ge("MemoryPersistence","Starting transaction:",t);var r=new Tr(this.Bh.next());
1return this.hh.sT(),n(r).next((function(t){return i.hh.iT(r).next((function(){return t}))})).yn().then((function(t){return r.Un(),t}))},t.prototype.nT=function(t,e){return Pe.Sn(Object.values(this.tT).map((function(n){return function(){return n.Ch(t,e)}})))},t}(),Tr=function(t){function e(e){var n=this;return(n=t.call(this)||this).Oh=e,n}return r.__extends(e,t),e}(Me),Or=function(){function t(t){this.persistence=t,this.rT=new oi,this.hT=null}return t.oT=function(e){return new t(e)},Object.defineProperty(t.prototype,"aT",{get:function(){if(this.hT)return this.hT;throw be()},enumerable:!0,configurable:!0}),t.prototype.yh=function(t,e,n){return this.rT.yh(n,e),this.aT.delete(n),Pe.resolve()},t.prototype.vh=function(t,e,n){return this.rT.vh(n,e),this.aT.add(n),Pe.resolve()},t.prototype.Bo=function(t,e){return this.aT.add(e),Pe.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.rT.nc(e.targetId).forEach((function(t){return n.aT.add(t)}));var i=this.persistence.Do();return i.Sh(t,e.targetId).next((function(t){t.forEach((function(t){return n.aT.add(t)}))})).next((function(){return i.wh(t,e)}))},t.prototype.sT=function(){this.hT=new Set},t.prototype.iT=function(t){var e=this,n=this.persistence.Co().Yr();return Pe.forEach(this.aT,(function(i){return e.uT(t,i).next((function(t){t||n.kn(i)}))})).next((function(){return e.hT=null,n.apply(t)}))},t.prototype.Wo=function(t,e){var n=this;return this.uT(t,e).next((function(t){t?n.aT.delete(e):n.aT.add(e)}))},t.prototype.eT=function(t){return 0},t.prototype.uT=function(t,e){var n=this;return Pe.Sn([function(){return Pe.resolve(n.rT.Ch(e))},function(){return n.persistence.Do().Ch(t,e)},function(){return n.persistence.nT(t,e)}])},t}(),Dr=function(){function t(){}return t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(n){switch(n.label){case 0:return this.Ud=this.cT(t),this.persistence=this._T(t),[4,this.persistence.start()];case 1:return n.sent(),this.lT=this.dT(t),this.N_=this.fT(t),this.$d=this.TT(t),this.ol=this.ET(t),this.IT=this.wT(t),this.Ud.g_=function(t){return e.ol.Dd(t,1)},this.$d.ol=this.ol,[4,this.N_.start()];case 2:return n.sent(),[4,this.Ud.start()];case 3:return n.sent(),[4,this.$d.start()];case 4:return n.sent(),[4,this.$d.Vl(this.ol.tf)];case 5:return n.sent(),[2]}}))}))},t.prototype.wT=function(t){return new kr(this.ol)},t.prototype.dT=function(t){return null},t.prototype.fT=function(t){return new ni(this.persistence,new xr,t.RT)},t.prototype._T=function(t){return new Ar(Or.oT)},t.prototype.TT=function(t){var e=this;return new nr(this.N_,t.T_,t.Aa,(function(t){return e.ol.Dd(t,0)}),t.platform.AT())},t.prototype.cT=function(t){return new fr},t.prototype.ET=function(t){return new _r(this.N_,this.$d,this.Ud,t.RT,t.Qd)},t.prototype.clearPersistence=function(t){throw new d(f.FAILED_PRECONDITION,"You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.")},t}(),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,(function(){var n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),[4,this.persistence.no((function(t){return r.__awaiter(n,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,this.ol.Vl(t)];case 1:return e.sent(),this.lT&&(t&&!this.lT.ro?this.lT.start(this.N_):t||this.lT.stop()),[2]}}))}))}))];case 2:return i.sent(),[2]}}))}))},e.prototype.fT=function(t){return new ii(this.persistence,new xr,t.RT)},e.prototype.ET=function(t){var e=new br(this.N_,this.$d,this.Ud,t.RT,t.Qd);return this.Ud instanceof hr&&(this.Ud.ol=e),e},e.prototype.dT=function(t){return new ti(this.persistence.hh.ko,t.Aa)},e.prototype._T=function(t){var e=ln.$o(t.mT),n=t.platform.bc(t.mT.ii);return new ln(t.PT.synchronizeTabs,e,t.clientId,t.platform,Jn.hu(t.PT.cacheSizeBytes),t.Aa,n,this.Ud)},e.prototype.cT=function(t){if(t.PT.VT&&t.PT.synchronizeTabs){if(!hr.Gh(t.platform))throw new d(f.UNIMPLEMENT
1ED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=ln.$o(t.mT);return new hr(t.Aa,t.platform,e,t.clientId,t.RT)}return new fr},e.prototype.clearPersistence=function(t){var e=ln.$o(t);return ln.clearPersistence(e)},e}(Dr),Rr=function(){function t(t,e,n,i){this.platform=t,this.mT=e,this.credentials=n,this.Aa=i,this.clientId=Ce.cn()}return t.prototype.start=function(t,e){var n=this;this.gT();var i=new Be,r=new Be,o=!1;return this.credentials.l((function(a){if(!o)return o=!0,ge("FirestoreClient","Initializing. user=",a.uid),n.pT(t,e,a,r).then(i.resolve,i.reject);n.Aa.Ua((function(){return n.Pl(a)}))})),this.Aa.uo((function(){return i.promise})),r.promise},t.prototype.enableNetwork=function(){var t=this;return this.gT(),this.Aa.enqueue((function(){return t.ol.enableNetwork()}))},t.prototype.pT=function(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,l=this;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),[4,this.platform.yT(this.mT)];case 1:return o=c.sent(),a=this.platform.bc(this.mT.ii),s=function(t,e,n){return new Ji(t,e,n)}(o,this.credentials,a),[4,t.initialize({Aa:this.Aa,mT:this.mT,platform:this.platform,T_:s,clientId:this.clientId,RT:n,Qd:100,PT:e})];case 2:return c.sent(),this.persistence=t.persistence,this.Ud=t.Ud,this.N_=t.N_,this.$d=t.$d,this.ol=t.ol,this.lT=t.lT,this.bT=t.IT,this.persistence.ho((function(){return r.__awaiter(l,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}}))}))})),i.resolve(),[3,4];case 3:if(u=c.sent(),i.reject(u),!this.vT(u))throw u;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+u),this.pT(new Dr,{VT:!1},n,i))];case 4:return[2]}}
1))}))},t.prototype.vT=function(t){return"FirebaseError"===t.name?t.code===f.FAILED_PRECONDITION||t.code===f.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.gT=function(){if(this.Aa.La)throw new d(f.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.Pl=function(t){return this.Aa.Wa(),ge("FirestoreClient","Credential Changed. Current user: "+t.uid),this.ol.Pl(t)},t.prototype.disableNetwork=function(){var t=this;return this.gT(),this.Aa.enqueue((function(){return t.ol.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.Aa.qa((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.lT&&this.lT.stop(),[4,this.$d.mo()];case 1:return t.sent(),[4,this.Ud.mo()];case 2:return t.sent(),[4,this.persistence.mo()];case 3:return t.sent(),this.credentials.T(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.gT();var e=new Be;return this.Aa.uo((function(){return t.ol.lf(e)})),e.promise},t.prototype.listen=function(t,e,n){var i=this;this.gT();var r=new Cr(t,e,n);return this.Aa.uo((function(){return i.bT.listen(r)})),r},t.prototype.rl=function(t){var e=this;this.ST||this.Aa.uo((function(){return e.bT.rl(t)}))},t.prototype.DT=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.gT(),e=new Be,[4,this.Aa.enqueue((function(){return r.__awaiter(n,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.N_.Uu(t)];case 1:return(n=r.sent())instanceof yt?e.resolve(n):n instanceof _t?e.resolve(null):e.reject(new d(f.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.)")),[3,3];case 2:return i=r.sent(),o=Qn(i,"Failed to get document '"+t+" from cache"),e.reject(o),[3,3];case 3:return[2]}}
1))}))}))];case 1:return[2,(i.sent(),e.promise)]}}))}))},t.prototype.CT=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.gT(),e=new Be,[4,this.Aa.enqueue((function(){return r.__awaiter(n,void 0,void 0,(function(){var n,i,o,a,s,u;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.N_.ju(t,!0)];case 1:return n=r.sent(),i=new mr(t,n.Ku),o=i.Vd(n.documents),a=i.xn(o,!1),e.resolve(a.snapshot),[3,3];case 2:return s=r.sent(),u=Qn(s,"Failed to execute query '"+t+" against cache"),e.reject(u),[3,3];case 3:return[2]}}))}))}))];case 1:return[2,(i.sent(),e.promise)]}}))}))},t.prototype.write=function(t){var e=this;this.gT();var n=new Be;return this.Aa.uo((function(){return e.ol.write(t,n)})),n.promise},t.prototype.ii=function(){return this.mT.ii},t.prototype.Df=function(t){var e=this;this.gT(),this.Aa.uo((function(){return e.bT.Df(t),Promise.resolve()}))},t.prototype.Cf=function(t){var e=this;this.ST||this.Aa.uo((function(){return e.bT.Cf(t),Promise.resolve()}))},Object.defineProperty(t.prototype,"ST",{get:function(){return this.Aa.La},enumerable:!0,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.gT();var n=new Be;return this.Aa.uo((function(){return e.ol.runTransaction(e.Aa,t,n),Promise.resolve()})),n.promise},t}(),Nr=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.FT(this.observer.next,t)},t.prototype.error=function(t){this.FT(this.observer.error,t)},t.prototype.NT=function(){this.muted=!0},t.prototype.FT=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function Mr(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,i=0,r=["next","error","complete"];i<r.length;i++){var o=r[i];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var Fr=function(){function t(t,e,n,i){this.firestore=t,this.timestampsInSnapshots=e,this.$T=n,this.converter=i}return t.prototype.kT=function(t){switch(F(t)){case 0:return null;case 1:return t.booleanValue;case 2:return z(t.integerValue||t.doubleValue);case 3:return this.LT(t.timestampValue);case 4:return this.MT(t);case 5:return t.stringValue;case 6:return new Ii(q(t.bytesValue));case 7:return this.OT(t.referenceValue);case 8:return this.xT(t.geoPointValue);case 9:return this.BT(t.arrayValue);case 10:return this.qT(t.mapValue);default:throw be()}},t.prototype.qT=function(t){var e=this,n={};return I(t.fields||{},(function(t,i){n[t]=e.kT(i)})),n},t.prototype.xT=function(t){return new Fi(z(t.latitude),z(t.longitude))},t.prototype.BT=function(t){var e=this;return(t.values||[]).map((function(t){return e.kT(t)}))},t.prototype.MT=function(t){switch(this.$T){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return R(n)?t(n):n}(t);return null==e?null:this.kT(e);case"estimate":return this.LT(N(t));default:return null}},t.prototype.LT=function(t){var e=H(t),n=new _(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.OT=function(t){var e=k.K(t);we(fe(e));var n=new Ae(e.get(1),e.get(3)),i=new S(e.k(5));return n.isEqual(this.firestore.$c)||ye("Document "+i+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.firestore.$c.projectId+"/"+this.firestore.$c.database+") instead."),new Hr(i,this.firestore,this.converter)},t}(),Lr=Jn.uu,jr=function(){function t(t){var e,n,i,r;if(void 0===t.host){if(void 0!==t.ssl)throw new d(f.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else di("settings","non-empty string","host",t.host),this.host=t.host,pi("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(bi("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","ignoreUndefinedProperties"]),pi("settings","object","credentials",t.credentials),this.credentials=t.credentials,pi("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),pi("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?ye("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&ye("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your co
1de to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(i=t.ignoreUndefinedProperties)&&void 0!==i&&i,pi("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Jn._u;else{if(t.cacheSizeBytes!==Lr&&t.cacheSizeBytes<Jn.cu)throw new d(f.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Jn.cu);this.cacheSizeBytes=t.cacheSizeBytes}pi("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=null!==(r=t.experimentalForceLongPolling)&&void 0!==r&&r}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&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),Br=function(){function t(e,n,i){var o=this;if(void 0===i&&(i=new Dr),this.UT=null,this.QT=new Yn,this.INTERNAL={delete:function(){return r.__awaiter(o,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.WT(),[4,this.jT.terminate()];case 1:return t.sent(),[2]}}))}))}},"object"==typeof e.options){var a=e;this.UT=a,this.$c=t.KT(a),this.GT=a.name,this.zT=new v(n)}else{var s=e;if(!s.projectId)throw new d(f.INVALID_ARGUMENT,"Must provide projectId");this.$c=new Ae(s.projectId,s.database),this.GT="[DEFAULT]",this.zT=new m}this.HT=i,this.YT=new jr({})}return Object.defineProperty(t.prototype,"JT",{get:function(){return this.XT||(this.XT=new Hi(this.$c,this.YT.ignoreUndefinedProperties)),this.XT},enumerable:!0,configurable:!0}),t.prototype.settings=function(t){ui("Firestore.settings",arguments,1),hi("Firestore.settings","object",1,t);var e=new jr(t);if(this.jT&&!this.YT.isEqual(e))throw new d(f.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.YT=e,void 0!==e.credentials&&(this.zT=function(t){if(!t)return new m;switch(t.type){case"gapi":var e=t.ZT;return we(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new y(e,t.V||"0");case"provider":return t.ZT;default:throw new d(f.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.WT(),this.jT.enableNetwork()},t.prototype.disableNetwork=function(){return this.WT(),this.jT.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.jT)throw new d(f.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var i=!1;return t&&(void 0!==t.experimentalTabSynchronization&&ye("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),i=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n),this.tE(this.HT,{VT:!0,cacheSizeBytes:this.YT.cacheSizeBytes,synchronizeTabs:i})},t.prototype.clearPersistence=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){if(void 0!==this.jT&&!this.jT.ST)throw new d(f.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return t=new Be,[2,(this.QT.Ma((function(){return r.__awaiter(e,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),e=this.eE(),[4,this.HT.clearPersistence(e)];case 1:return i.sent(),t.resolve(),[3,3];case 2:return n=i.sent(),t.reject(n),[3,3];case 3:return[2]}}
1))}))})),t.promise)]}))}))},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"sE",{get:function(){return this.WT(),this.jT.ST},enumerable:!0,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.WT(),this.jT.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){return this.WT(),Mr(t)?this.iE(t):(hi("Firestore.onSnapshotsInSync","function",1,t),this.iE({next:t}))},t.prototype.iE=function(t){var e=this,n=new Nr({next:function(){t.next&&t.next()},error:function(t){throw be()}});return this.jT.Df(n),function(){n.NT(),e.jT.Cf(n)}},t.prototype.WT=function(){return this.jT||this.tE(new Dr,{VT:!1}),this.jT},t.prototype.eE=function(){return new Ie(this.$c,this.GT,this.YT.host,this.YT.ssl,this.YT.forceLongPolling)},t.prototype.tE=function(t,e){var n=this.eE();return this.jT=new Rr(de.nt(),n,this.zT,this.QT),this.jT.start(t,e)},t.KT=function(t){if(!Object.prototype.hasOwnProperty.call(t.options,"projectId"))throw new d(f.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e=t.options.projectId;if(!e||"string"!=typeof e)throw new d(f.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Ae(e)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.UT)throw new d(f.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.UT},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return ui("Firestore.collection",arguments,1),hi("Firestore.collection","non-empty string",1,t),this.WT(),new Yr(k.K(t),this)},t.prototype.doc=function(t){return ui("Firestore.doc",arguments,1),hi("Firestore.doc","non-empty string",1,t),this.WT(),Hr.nE(k.K(t),this)},t.prototype.collectionGroup=function(t){if(ui("Firestore.collectionGroup",arguments,1),hi("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new d(f.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.WT(),new Gr(new kt(k.G,t),this)},t.prototype.runTransaction=function(t){var e=this;return ui("Firestore.runTransaction",arguments,1),hi("Firestore.runTransaction","function",1,t),this.WT().transaction((function(n){return t(new Vr(e,n))}))},t.prototype.batch=function(){return this.WT(),new Ur(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(me()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.SILENT:return"silent";default:return"error"}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){switch(ui("Firestore.setLogLevel",arguments,1),hi("Firestore.setLogLevel","non-empty string",1,t),t){case"debug":ve(a.LogLevel.DEBUG);break;case"error":ve(a.LogLevel.ERROR);break;case"silent":ve(a.LogLevel.SILENT);break;default:throw new d(f.INVALID_ARGUMENT,"Invalid log level: "+t)}},t.prototype.rE=function(){return this.YT.timestampsInSnapshots},t}(),Vr=function(){function t(t,e){this.hE=t,this.oE=e}return t.prototype.get=function(t){var e=this;ui("Transaction.get",arguments,1);var n=Zr("Transaction.get",t,this.hE);return this.oE.A_([n.kc]).then((function(t){if(!t||1!==t.length)return be();var i=t[0];if(i instanceof _t)return new qr(e.hE,n.kc,null,!1,!1,n.aE);if(i instanceof yt)return new qr(e.hE,n.kc,i,!1,!1,n.aE);throw be()}))},t.prototype.set=function(t,e,n){ci("Transaction.set",arguments,2,3);var i=Zr("Transaction.set",t,this.hE);n=Qr("Transaction.set",n);var r=to(i.aE,e,"Transaction.set"),o=r[0],a=r[1],s=n.merge||n.mergeFields?this.hE.JT.Dc(a,o,n.mergeFields):this.hE.JT.vc(a,o);return this.oE.set(i.kc,s),this},t.prototype.update=function(t,e,n){for(var i,r,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof e||e instanceof Ai?(li("Transaction.update",arguments,3),i=Zr("Transaction.update",t,this.hE),r=this.hE.JT.Fc("Transaction.update",e,n,o)):(ui("Transaction.update",arguments,2),i=Zr("Transaction.update",t,this.hE),r=this.hE.JT.Cc("Transaction.update",e)),this.oE.update(i.kc,r),this},t.prototype.delete=function(t){ui("Transaction.delete",arguments,1
1);var e=Zr("Transaction.delete",t,this.hE);return this.oE.delete(e.kc),this},t}(),Ur=function(){function t(t){this.hE=t,this.uE=[],this.cE=!1}return t.prototype.set=function(t,e,n){ci("WriteBatch.set",arguments,2,3),this._E();var i=Zr("WriteBatch.set",t,this.hE);n=Qr("WriteBatch.set",n);var r=to(i.aE,e,"WriteBatch.set"),o=r[0],a=r[1],s=n.merge||n.mergeFields?this.hE.JT.Dc(a,o,n.mergeFields):this.hE.JT.vc(a,o);return this.uE=this.uE.concat(s.Ac(i.kc,ot.ft())),this},t.prototype.update=function(t,e,n){for(var i,r,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this._E(),"string"==typeof e||e instanceof Ai?(li("WriteBatch.update",arguments,3),i=Zr("WriteBatch.update",t,this.hE),r=this.hE.JT.Fc("WriteBatch.update",e,n,o)):(ui("WriteBatch.update",arguments,2),i=Zr("WriteBatch.update",t,this.hE),r=this.hE.JT.Cc("WriteBatch.update",e)),this.uE=this.uE.concat(r.Ac(i.kc,ot.exists(!0))),this},t.prototype.delete=function(t){ui("WriteBatch.delete",arguments,1),this._E();var e=Zr("WriteBatch.delete",t,this.hE);return this.uE=this.uE.concat(new ct(e.kc,ot.ft())),this},t.prototype.commit=function(){return this._E(),this.cE=!0,this.uE.length>0?this.hE.WT().write(this.uE):Promise.resolve()},t.prototype._E=function(){if(this.cE)throw new d(f.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Hr=function(){function t(t,e,n){this.kc=t,this.firestore=e,this.aE=n,this.jT=this.firestore.WT()}return t.nE=function(e,n,i){if(e.length%2!=0)throw new d(f.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.j()+" has "+e.length);return new t(new S(e),n,i)},Object.defineProperty(t.prototype,"id",{get:function(){return this.kc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Yr(this.kc.path.L(),this.firestore,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.kc.path.j()},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){if(ui("DocumentReference.collection",arguments,1),hi("DocumentReference.collection","non-empty string",1,t),!t)throw new d(f.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=k.K(t);return new Yr(this.kc.path.child(e),this.firestore)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wi("isEqual","DocumentReference",1,e);return this.firestore===e.firestore&&this.kc.isEqual(e.kc)&&this.aE===e.aE},t.prototype.set=function(t,e){ci("DocumentReference.set",arguments,1,2),e=Qr("DocumentReference.set",e);var n=to(this.aE,t,"DocumentReference.set"),i=n[0],r=n[1],o=e.merge||e.mergeFields?this.firestore.JT.Dc(r,i,e.mergeFields):this.firestore.JT.vc(r,i);return this.jT.write(o.Ac(this.kc,ot.ft()))},t.prototype.update=function(t,e){for(var n,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return"string"==typeof t||t instanceof Ai?(li("DocumentReference.update",arguments,2),n=this.firestore.JT.Fc("DocumentReference.update",t,e,i)):(ui("DocumentReference.update",arguments,1),n=this.firestore.JT.Cc("DocumentReference.update",t)),this.jT.write(n.Ac(this.kc,ot.exists(!0)))},t.prototype.delete=function(){return ui("DocumentReference.delete",arguments,0),this.jT.write([new ct(this.kc,ot.ft())])},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];ci("DocumentReference.onSnapshot",arguments,1,4);var n,i={includeMetadataChanges:!1},r=0;"object"!=typeof t[r]||Mr(t[r])||(bi("DocumentReference.onSnapshot",i=t[r],["includeMetadataChanges"]),pi("DocumentReference.onSnapshot","boolean","includeMetadataChanges",i.includeMetadataChanges),r++);var o={includeMetadataChanges:i.includeMetadataChanges};return Mr(t[r])?n=t[r]:(hi("DocumentReference.onSnapshot","function",r,t[r]),fi("DocumentReference.onSnapshot","function",r+1,t[r+1]),fi("DocumentReference.onSnapshot","function",r+2,t[r+2]),n={next:t[r],error:t[r+1],complete:t[r+2]}),this.lE(o,n)},t.prototype.lE=function(t,e){var n=this,i=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(i=e.error.bind(e));var r=new Nr({next:function(t){if(e.next){var i=t.docs.get(n.kc);
1e.next(new qr(n.firestore,n.kc,i,t.fromCache,t.hasPendingWrites,n.aE))}},error:i}),o=this.jT.listen(kt.Wt(this.kc.path),r,t);return function(){r.NT(),n.jT.rl(o)}},t.prototype.get=function(t){var e=this;return ci("DocumentReference.get",arguments,0,1),Xr("DocumentReference.get",t),new Promise((function(n,i){t&&"cache"===t.source?e.firestore.WT().DT(e.kc).then((function(t){n(new qr(e.firestore,e.kc,t,!0,t instanceof yt&&t.At,e.aE))}),i):e.dE(n,i,t)}))},t.prototype.dE=function(t,e,n){var i=this.lE({includeMetadataChanges:!0,Of:!0},{next:function(r){i(),!r.exists&&r.metadata.fromCache?e(new d(f.UNAVAILABLE,"Failed to get document because the client is offline.")):r.exists&&r.metadata.fromCache&&n&&"server"===n.source?e(new d(f.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(r)},error:e})},t.prototype.withConverter=function(e){return new t(this.kc,this.firestore,e)},t}(),zr=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}(),qr=function(){function t(t,e,n,i,r,o){this.hE=t,this.kc=e,this.fE=n,this.TE=i,this.EE=r,this.aE=o}return t.prototype.data=function(t){if(ci("DocumentSnapshot.data",arguments,0,1),t=$r("DocumentSnapshot.data",t),this.fE){if(this.aE){var e=new Wr(this.hE,this.kc,this.fE,this.TE,this.EE);return this.aE.fromFirestore(e,t)}return new Fr(this.hE,this.hE.rE(),t.serverTimestamps,void 0).kT(this.fE.Lt())}},t.prototype.get=function(t,e){if(ci("DocumentSnapshot.get",arguments,1,2),e=$r("DocumentSnapshot.get",e),this.fE){var n=this.fE.data().field(Ki("DocumentSnapshot.get",t));if(null!==n)return new Fr(this.hE,this.hE.rE(),e.serverTimestamps,this.aE).kT(n)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.kc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Hr(this.kc,this.hE,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.fE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new zr(this.EE,this.TE)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw wi("isEqual","DocumentSnapshot",1,e);return this.hE===e.hE&&this.TE===e.TE&&this.kc.isEqual(e.kc)&&(null===this.fE?null===e.fE:this.fE.isEqual(e.fE))&&this.aE===e.aE},t}(),Wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(qr),Gr=function(){function t(t,e,n){this.IE=t,this.firestore=e,this.aE=n}return t.prototype.where=function(e,n,i){ui("Query.where",arguments,3),_i("Query.where",3,i);var r,o=function(t,e,n,i){if(!e.some((function(t){return t===i})))throw new d(f.INVALID_ARGUMENT,"Invalid value "+yi(i)+" provided to function Query.where() for its "+Ci(2)+" argument. Acceptable values: "+e.join(", "));return i}(0,["<","<=","==",">=",">","array-contains","in","array-contains-any"],0,n),a=Ki("Query.where",e);if(a.Y()){if("array-contains"===o||"array-contains-any"===o)throw new d(f.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o){this.wE(i,o);for(var s=[],u=0,l=i;u<l.length;u++){var c=l[u];s.push(this.RE(c))}r={arrayValue:{values:s}}}else r=this.RE(i)}else"in"!==o&&"array-contains-any"!==o||this.wE(i,o),r=this.firestore.JT.Nc("Query.where",i,"in"===o);var h=Ct.create(a,o,r);return this.AE(h),new t(this.IE.Gt(h),this.firestore,this.aE)},t.prototype.orderBy=function(e,n){var i;if(ci("Query.orderBy",arguments,1,2),fi("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)i="asc";else{if("desc"!==n)throw new d(f.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");i="desc"}if(null!==this.IE.startAt)throw new d(f.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.IE.endAt)throw new d(f.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var r=Ki("Query.orderBy",e),o=new Ot(r,i);return this.mE(o),new t(this.IE.zt(o),this.firestore,this.aE)},t.prototype.limit=function(e){return ui("Query.limit",arguments,1
1),hi("Query.limit","number",1,e),ki("Query.limit",1,e),new t(this.IE.Ht(e),this.firestore,this.aE)},t.prototype.limitToLast=function(e){return ui("Query.limitToLast",arguments,1),hi("Query.limitToLast","number",1,e),ki("Query.limitToLast",1,e),new t(this.IE.Yt(e),this.firestore,this.aE)},t.prototype.startAt=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];li("Query.startAt",arguments,1);var r=this.PE("Query.startAt",e,n,!0);return new t(this.IE.Jt(r),this.firestore,this.aE)},t.prototype.startAfter=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];li("Query.startAfter",arguments,1);var r=this.PE("Query.startAfter",e,n,!1);return new t(this.IE.Jt(r),this.firestore,this.aE)},t.prototype.endBefore=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];li("Query.endBefore",arguments,1);var r=this.PE("Query.endBefore",e,n,!0);return new t(this.IE.Xt(r),this.firestore,this.aE)},t.prototype.endAt=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];li("Query.endAt",arguments,1);var r=this.PE("Query.endAt",e,n,!1);return new t(this.IE.Xt(r),this.firestore,this.aE)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wi("isEqual","Query",1,e);return this.firestore===e.firestore&&this.IE.isEqual(e.IE)},t.prototype.withConverter=function(e){return new t(this.IE,this.firestore,e)},t.prototype.PE=function(t,e,n,i){if(_i(t,1,e),e instanceof qr){if(n.length>0)throw new d(f.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var r=e;if(!r.exists)throw new d(f.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+t+"().");return this.VE(r.fE,i)}var o=[e].concat(n);return this.gE(t,o,i)},t.prototype.VE=function(t,e){for(var n=[],i=0,r=this.IE.orderBy;i<r.length;i++){var o=r[i];if(o.field.Y())n.push(W(this.firestore.$c,t.key));else{var a=t.field(o.field);if(R(a))throw new d(f.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+o.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===a){var s=o.field.j();throw new d(f.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+s+"' (used as the orderBy) does not exist.")}n.push(a)}}return new Tt(n,e)},t.prototype.gE=function(t,e,n){var i=this.IE.xt;if(e.length>i.length)throw new d(f.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 r=[],o=0;o<e.length;o++){var a=e[o];if(i[o].field.Y()){if("string"!=typeof a)throw new d(f.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof a);if(!this.IE._e()&&-1!==a.indexOf("/"))throw new d(f.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+t+"() must be a plain document ID, but '"+a+"' contains a slash.");var s=this.IE.path.child(k.K(a));if(!S.et(s))throw new d(f.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 S(s);r.push(W(this.firestore.$c,u))}else{var l=this.firestore.JT.Nc(t,a);r.push(l)}}return new Tt(r,n)},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];ci("Query.onSnapshot",arguments,1,4);var n,i={},r=0;return"object"!=typeof t[r]||Mr(t[r])||(bi("Query.onSnapshot",i=t[r],["includeMetadataChanges"]),pi("Query.onSnapshot","boolean","includeMetadataChanges",i.includeMetadataChanges),r++),Mr(t[r])?n=t[r]:(hi("Query.onSnapshot","function",r,t[r]),fi("Query.onSnapshot","function",r+1,t[r+1]),fi("Query.onSnapshot","function",r+2,t[r+2]),n={next:t[r],error:t[r+1],complete:t[r+2]}),this.pE(this.IE),this.lE(i,n)},t.prototype.lE=function(t,e){var n=this,i=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(i=e.error.bind(e));var r=new Nr({next:function(t){e.next&&e.next(new Kr(n.firestore,
1n.IE,t,n.aE))},error:i}),o=this.firestore.WT(),a=o.listen(this.IE,r,t);return function(){r.NT(),o.rl(a)}},t.prototype.pE=function(t){if(t.ae()&&0===t.xt.length)throw new d(f.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},t.prototype.get=function(t){var e=this;return ci("Query.get",arguments,0,1),Xr("Query.get",t),this.pE(this.IE),new Promise((function(n,i){t&&"cache"===t.source?e.firestore.WT().CT(e.IE).then((function(t){n(new Kr(e.firestore,e.IE,t,e.aE))}),i):e.dE(n,i,t)}))},t.prototype.dE=function(t,e,n){var i=this.lE({includeMetadataChanges:!0,Of:!0},{next:function(r){i(),r.metadata.fromCache&&n&&"server"===n.source?e(new d(f.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(r)},error:e})},t.prototype.RE=function(t){if("string"==typeof t){if(""===t)throw new d(f.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.IE._e()&&-1!==t.indexOf("/"))throw new d(f.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+t+"' contains a '/' character.");var e=this.IE.path.child(k.K(t));if(!S.et(e))throw new d(f.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+e+"' is not because it has an odd number of segments ("+e.length+").");return W(this.firestore.$c,new S(e))}if(t instanceof Hr)return W(this.firestore.$c,t.kc);throw new d(f.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+yi(t)+".")},t.prototype.wE=function(t,e){if(!Array.isArray(t)||0===t.length)throw new d(f.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new d(f.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new d(f.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new d(f.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.AE=function(t){if(t instanceof Ct){var e=["array-contains","array-contains-any"],n=["in","array-contains-any"],i=e.indexOf(t.op)>=0,r=n.indexOf(t.op)>=0;if(t.ue()){var o=this.IE.jt();if(null!==o&&!o.isEqual(t.field))throw new d(f.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+t.field.toString()+"'");var a=this.IE.Kt();null!==a&&this.yE(t.field,a)}else if(r||i){var s=null;if(r&&(s=this.IE.ce(n)),null===s&&i&&(s=this.IE.ce(e)),null!=s)throw new d(f.INVALID_ARGUMENT,s===t.op?"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter.":"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},t.prototype.mE=function(t){if(null===this.IE.Kt()){var e=this.IE.jt();null!==e&&this.yE(e,t.field)}},t.prototype.yE=function(t,e){if(!e.isEqual(t))throw new d(f.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}(),Kr=function(){function t(t,e,n,i){this.hE=t,this.bE=e,this.vE=n,this.aE=i,this.SE=null,this.DE=null,this.metadata=new zr(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.vE.docs.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.vE.docs.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;
1ci("QuerySnapshot.forEach",arguments,1,2),hi("QuerySnapshot.forEach","function",1,t),this.vE.docs.forEach((function(i){t.call(e,n.CE(i))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Gr(this.bE,this.hE,this.aE)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(bi("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),pi("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.vE.hs)throw new d(f.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.SE&&this.DE===e||(this.SE=function(t,e,n,i){if(n.ss.B()){var r=0;return n.docChanges.map((function(e){return{type:"added",doc:new Wr(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),i),oldIndex:-1,newIndex:r++}}))}var o=n.ss;return n.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var r=new Wr(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),i),a=-1,s=-1;return 0!==e.type&&(a=o.indexOf(e.doc.key),o=o.delete(e.doc.key)),1!==e.type&&(s=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:Jr(e.type),doc:r,oldIndex:a,newIndex:s}}))}(this.hE,e,this.vE,this.aE),this.DE=e),this.SE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wi("isEqual","QuerySnapshot",1,e);return this.hE===e.hE&&this.bE.isEqual(e.bE)&&this.vE.isEqual(e.vE)&&this.aE===e.aE},t.prototype.CE=function(t){return new Wr(this.hE,t.key,t,this.metadata.fromCache,this.vE.ns.has(t.key),this.aE)},t}(),Yr=function(t){function e(e,n,i){var r=this;if((r=t.call(this,kt.Wt(e),n,i)||this).FE=e,e.length%2!=1)throw new d(f.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.j()+" has "+e.length);return r}return r.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.IE.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.IE.path.L();return t.B()?null:new Hr(new S(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.IE.path.j()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){if(ci("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=Ce.cn()),hi("CollectionReference.doc","non-empty string",1,t),""===t)throw new d(f.INVALID_ARGUMENT,"Document path must be a non-empty string");var e=k.K(t);return Hr.nE(this.IE.path.child(e),this.firestore,this.aE)},e.prototype.add=function(t){ui("CollectionReference.add",arguments,1),hi("CollectionReference.add","object",1,this.aE?this.aE.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.FE,this.firestore,t)},e}(Gr);function Qr(t,e){if(void 0===e)return{merge:!1};if(bi(t,e,["merge","mergeFields"]),pi(t,"boolean","merge",e.merge),function(t,e,n,i,r){void 0!==i&&function(t,e,n,i,r){if(!(i instanceof Array))throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+yi(i));for(var o=0;o<i.length;++o)if(!r(i[o]))throw new d(f.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+yi(i[o]))}(t,"mergeFields",0,i,(function(t){return"string"==typeof t||t instanceof Ai}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new d(f.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function $r(t,e){return void 0===e?{}:(bi(t,e,["serverTimestamps"]),mi(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function Xr(t,e){fi(t,"object",1,e),e&&(bi(t,e,["source"]),mi(t,0,"source",e.source,["default","server","cache"]))}function Zr(t,e,n){if(e instanceof Hr){if(e.firestore!==n)throw new d(f.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw wi(t,"DocumentReference",1,e)}function Jr(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return be()}}function to(t,e,n){var i;return t?(i=t.toFirestore(e),n="toFirestore() in "+n):i=e,[i,n]}function eo(t,e){function n(){var t="This constructor is private.";throw e&&(t+=" ",t+=e),new d(f.INVALID_ARGUMENT,t)}return n.prototype=t.prototype,Object.assign(n,t),n}var no=eo(Br,"Use firebase.firestore() instead."),io=eo(Vr,"Use firebase.firestore().runTransaction() instead."),ro=eo(Ur,"Use firebase.firestore().batch() instead."),oo=eo(Hr,"Use firebase.firestore().doc() instead."),ao=eo(qr),so=eo(Wr),uo=eo(Gr),lo=eo(Kr),co=eo(Yr,"Use firebase.firestore().collection() instead."),ho=eo(function(){function t(){}return t.delete=function(){return si("FieldValue.delete",arguments),new Di},t.serverTimestamp=function(){return si("FieldValue.serverTimestamp",arguments),new Pi},t.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];
1return li("FieldValue.arrayUnion",arguments,1),new Ri(t)},t.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return li("FieldValue.arrayRemove",arguments,1),new Ni(t)},t.increment=function(t){return hi("FieldValue.increment","number",1,t),ui("FieldValue.increment",arguments,1),new Mi(t)},t.prototype.isEqual=function(t){return this===t},t}(),"Use FieldValue.<field>() instead."),fo=eo(Ii,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),po={Firestore:no,GeoPoint:Fi,Timestamp:_,Blob:fo,Transaction:io,WriteBatch:ro,DocumentReference:oo,DocumentSnapshot:ao,Query:uo,QueryDocumentSnapshot:so,QuerySnapshot:lo,CollectionReference:co,FieldPath:Ai,FieldValue:ho,setLogLevel:Br.setLogLevel,CACHE_SIZE_UNLIMITED:Lr},mo=function(){function t(){}return t.prototype.B_=function(t){},t.prototype.mo=function(){},t}(),vo=function(){function t(){var t=this;this.NE=function(){return t.$E()},this.kE=function(){return t.LE()},this.ME=[],this.OE()}return t.prototype.B_=function(t){this.ME.push(t)},t.prototype.mo=function(){window.removeEventListener("online",this.NE),window.removeEventListener("offline",this.kE)},t.prototype.OE=function(){window.addEventListener("online",this.NE),window.addEventListener("offline",this.kE)},t.prototype.$E=function(){ge("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.ME;t<e.length;t++)(0,e[t])(0)},t.prototype.LE=function(){ge("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.ME;t<e.length;t++)(0,e[t])(1)},t.Gh=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),go=function(){function t(t){this.xE=t.xE,this.BE=t.BE}return t.prototype.e_=function(t){this.qE=t},t.prototype.Yc=function(t){this.UE=t},t.prototype.onMessage=function(t){this.QE=t},t.prototype.close=function(){this.BE()},t.prototype.send=function(t){this.xE(t)},t.prototype.WE=function(){this.qE()},t.prototype.jE=function(t){this.UE(t)},t.prototype.KE=function(t){this.QE(t)},t}(),yo={BatchGetDocuments:"batchGet",Commit:"commit"},_o="gl-js/ fire/"+c,bo=function(){function t(t){this.ii=t.ii,this.GE=(t.ssl?"https":"http")+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.zE=function(t,e){if(e)for(var n in e.o)e.o.hasOwnProperty(n)&&(t[n]=e.o[n]);t["X-Goog-Api-Client"]=_o},t.prototype.d_=function(t,e,n){var i=this,r=this.HE(t);return new Promise((function(o,a){var s=new l.XhrIo;s.listenOnce(l.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case l.ErrorCode.NO_ERROR:var e=s.getResponseJson();ge("Connection","XHR received:",JSON.stringify(e)),o(e);break;case l.ErrorCode.TIMEOUT:ge("Connection",'RPC "'+t+'" timed out'),a(new d(f.DEADLINE_EXCEEDED,"Request time out"));break;case l.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(ge("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var i=s.getResponseJson().error;if(i&&i.status&&i.message){var r=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(f).indexOf(e)>=0?e:f.UNKNOWN}(i.status);a(new d(r,i.message))}else a(new d(f.UNKNOWN,"Server responded with status "+s.getStatus()))}else ge("Connection",'RPC "'+t+'" failed'),a(new d(f.UNAVAILABLE,"Connection failed."));break;default:be()}}finally{ge("Connection",'RPC "'+t+'" completed.')}}));var u=Object.assign({},e);delete u.database;var c=JSON.stringify(u);ge("Connection","XHR sending: ",r+" "+c);var h={"Content-Type":"text/plain"};i.zE(h,n),s.send(r,"POST",c,h,15)}))},t.prototype.f_=function(t,e,n){return this.d_(t,e,n)},t.prototype.s_=function(t,e){var n=[this.GE,"/","google.firestore.v1.Firestore","/",t,"/channel"],i=l.createWebChannelTransport(),r={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ii.projectId+"/databases/"+this.ii.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.zE(r.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(r.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");ge("Connection","Creating WebChannel: "+o+" "+r);var a=i.createWebChannel(o,r),u=!1,c=!1,h=new go({xE:function(t){c?ge("Connection","Not sending because WebChannel is closed:",t):(u||(ge("Connection","Opening WebChannel transport."),a.open(),u=!0),ge("Connection","WebChannel sending:",t),a.send(t))},BE:function(){return a.close()}}),p=function(t,e){a.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return p(l.WebChannel.EventType.OPEN,(function(){c||ge("Connection","WebChannel transport opened.")})),p(l.WebChannel.EventType.CLOSE,(function(){c||(c=!0,ge("Connection","WebChannel transport closed"),h.jE())}
1)),p(l.WebChannel.EventType.ERROR,(function(t){c||(c=!0,ge("Connection","WebChannel transport errored:",t),h.jE(new d(f.UNAVAILABLE,"The operation could not be completed")))})),p(l.WebChannel.EventType.MESSAGE,(function(t){var e;if(!c){var n=t.data[0];we(!!n);var i=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(i){ge("Connection","WebChannel received error:",i);var r=i.status,o=function(t){var e=mt[t];if(void 0!==e)return Nt(e)}(r),s=i.message;void 0===o&&(o=f.INTERNAL,s="Unknown error status: "+r+" with message "+i.message),c=!0,h.jE(new d(o,s)),a.close()}else ge("Connection","WebChannel received:",n),h.KE(n)}})),setTimeout((function(){h.WE()}),0),h},t.prototype.HE=function(t){return this.GE+"/v1/projects/"+this.ii.projectId+"/databases/"+this.ii.database+"/documents:"+yo[t]},t}();function wo(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){return new Br(t,e,new Pr)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},po)))}(t),t.registerVersion("@firebase/firestore","1.14.6")}de.an(new(function(){function t(){this.ac="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.yT=function(t){return Promise.resolve(new bo(t))},t.prototype.AT=function(){return vo.Gh()?new vo:new mo},t.prototype.bc=function(t){return new he(t,{hi:!0})},t.prototype.un=function(t){return JSON.stringify(t)},t.prototype.atob=function(t){return atob(t)},t.prototype.btoa=function(t){return btoa(t)},t.prototype._n=function(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e)e.getRandomValues(n);else for(var i=0;i<t;i++)n[i]=Math.floor(256*Math.random());return n},t}())),wo(o),e.__PRIVATE_registerFirestore=wo},EeOn:function(t,e,n){"use strict";function i(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}n.r(e),n.d(e,"ErrorCode",(function(){return Yn})),n.d(e,"EventType",(function(){return Qn})),n.d(e,"WebChannel",(function(){return $n})),n.d(e,"XhrIo",(function(){return Xn})),n.d(e,"createWebChannelTransport",(function(){return Kn}));var r,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=a||{},s=o||self;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){var e=l(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var f="closure_uid_"+(1e9*Math.random()>>>0),d=0;function p(t,e,n){return t.call.apply(t.bind,arguments)}function m(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function v(t,e,n){return(v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?p:m).apply(null,arguments)}function g(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 y=Date.now||function(){return+new Date};function _(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t}function b(){this.j=this.j,this.i=this.i}b.prototype.j=!1,b.prototype.da=function(){!this.j&&(this.j=!0,this.C(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,f)&&t[f]||(t[f]=++d)}(this)},b.prototype.C=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var w=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},k=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&e.call(n,r[o],o,t)};function C(t){return Array.prototype.concat.apply([],arguments)}function x(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}function S(t){return/^[\s\xa0]*$/.test(t)}var E,I=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function A(t,e){return-1!=t.indexOf(e)}function T(t,e){return t<e?-1:t>e?1:0}t:{var O=s.navigator;if(O){var D=O.userAgent;if(D){E=D;break t}}E=""}function P(t,e,n){for(var i in t)e.call(n,t[i],i,t)}function R(t){var e={};for(var n in t)e[n]=t[n];return e}var N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function M(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<N.length;o++)n=N[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function F(t){return F[" "](t),t}F[" "]=u;var L,j,B=A(E,"Opera"),V=A(E,"Trident")||A(E,"MSIE"),U=A(E,"Edge"),H=U||V,z=A(E,"Gecko")&&!(A(E.toLowerCase(),"webkit")&&!A(E,"Edge"))&&!(A(E,"Trident")||A(E,"MSIE"))&&!A(E,"Edge"),q=A(E.toLowerCase(),"webkit")&&!A(E,"Edge");function W(){var t=s.document;return t?t.documentMode:void 0}t:{var G="",K=(j=E,z?/rv:([^\);]+)(\)|;)/.exec(j):U?/Edge\/([\d\.]+)/.exec(j):V?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(j):q?/WebKit\/(\S+)/.exec(j):B?/(?:Version)[ \/]?(\S+)/.exec(j):void 0);if(K&&(G=K?K[1]:""),V){var Y=W();if(null!=Y&&Y>parseFloat(G)){L=String(Y);break t}}L=G}var Q={};function $(t){return function(t,e){var n=Q;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=I(String(L)).split("."),i=I(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=T(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||T(0==a[2].length,0==s[2].length)||T(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}var X=s.document&&V&&(W()||parseInt(L,10))||void 0,Z=!V||9<=Number(X),J=V&&!$("9"),tt=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",u,e),s.removeEventListener("test",u,e)}catch(n){}return t}();function et(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function nt(t,e){if(et.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,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(z){t:{try{F(e.nodeName);var r=!0;break t}catch(o){}r=!1}r||(e=null)}}else"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="string"==typeof t.pointerType?t.pointerType:it[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}et.prototype.b=function(){this.defaultPrevented=!0},_(nt,et);var it={2:"touch",3:"pen",4:"mouse"};nt.prototype.b=function(){nt.M.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,J)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var rt="closure_listenable_"+(1e6*Math.random()|0),ot=0;function at(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.aa=r,this.key=++ot,this.V=this.X=!1}function st(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ut(t){this.src=t,this.a={},this.b=0}function lt(t,e){var n=e.type;if(n in t.a){var i,r=t.a[n],o=w(r,e);(i=0<=o)&&Array.prototype.splice.call(r,o,1),i&&(st(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ct(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.V&&o.listener==e&&o.capture==!!n&&o.aa==i)return r}return-1}ut.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=ct(t,e,i,r);return-1<a?(e=t[a],n||(e.X=!1)):((e=new at(e,this.src,o,!!i,r)).X=n,t.push(e)),e};var ht="closure_lm_"+(1e6*Math.random()|0),ft={};function dt(t,e,n,i,r){if(i&&i.once)return function t(e,n,i,r,o){if(Array.isArray(n)){for(var a=0;a<n.length;a++)t(e,n[a],i,r,o);return null}return i=wt(i),e&&e[rt]?e.sa(n,i,h(r)?!!r.capture:!!r,o):pt(e,n,i,!0,r,o)}(t,e,n,i,r);if(Array.isArray(e)){for(var o=0;o<e.length;o++)dt(t,e[o],n,i,r);return null}
1return n=wt(n),t&&t[rt]?t.ra(e,n,h(i)?!!i.capture:!!i,r):pt(t,e,n,!1,i,r)}function pt(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=h(r)?!!r.capture:!!r;if(a&&!Z)return null;var s=_t(t);if(s||(t[ht]=s=new ut(t)),(n=s.add(e,n,i,a,o)).proxy)return n;if(i=function(){var t=yt,e=Z?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)tt||(r=a),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(vt(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}return n}function mt(t){if("number"!=typeof t&&t&&!t.V){var e=t.src;if(e&&e[rt])lt(e.c,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(vt(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=_t(e))?(lt(n,t),0==n.b&&(n.src=null,e[ht]=null)):st(t)}}}function vt(t){return t in ft?ft[t]:ft[t]="on"+t}function gt(t,e){var n=t.listener,i=t.aa||t.src;return t.X&&mt(t),n.call(i,e)}function yt(t,e){if(t.V)return!0;if(!Z){if(!e)t:{e=["window","event"];for(var n=s,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}return gt(t,e=new nt(e,this))}return gt(t,new nt(e,this))}function _t(t){return(t=t[ht])instanceof ut?t:null}var bt="__closure_events_fn_"+(1e9*Math.random()>>>0);function wt(t){return"function"==l(t)?t:(t[bt]||(t[bt]=function(e){return t.handleEvent(e)}),t[bt])}function kt(){b.call(this),this.c=new ut(this),this.J=this,this.A=null}function Ct(t,e,n,i){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.V&&a.capture==n){var s=a.listener,u=a.aa||a.src;a.X&<(t.c,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}_(kt,b),kt.prototype[rt]=!0,(r=kt.prototype).addEventListener=function(t,e,n,i){dt(this,t,e,n,i)},r.removeEventListener=function(t,e,n,i){!function t(e,n,i,r,o){if(Array.isArray(n))for(var a=0;a<n.length;a++)t(e,n[a],i,r,o);else r=h(r)?!!r.capture:!!r,i=wt(i),e&&e[rt]?(e=e.c,(n=String(n).toString())in e.a&&-1<(i=ct(a=e.a[n],i,r,o))&&(st(a[i]),Array.prototype.splice.call(a,i,1),0==a.length&&(delete e.a[n],e.b--))):e&&(e=_t(e))&&(n=e.a[n.toString()],e=-1,n&&(e=ct(n,i,r,o)),(i=-1<e?n[e]:null)&&mt(i))}(this,t,e,n,i)},r.dispatchEvent=function(t){var e,n=this.A;if(n)for(e=[];n;n=n.A)e.push(n);n=this.J;var i=t.type||t;if("string"==typeof t)t=new et(t,n);else if(t instanceof et)t.target=t.target||n;else{var r=t;M(t=new et(i,n),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];r=Ct(a,i,!0,t)&&r}if(r=Ct(a=t.a=n,i,!0,t)&&r,r=Ct(a,i,!1,t)&&r,e)for(o=0;o<e.length;o++)r=Ct(a=t.a=e[o],i,!1,t)&&r;return r},r.C=function(){if(kt.M.C.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)st(n[i]);delete e.a[t],e.b--}}this.A=null},r.ra=function(t,e,n,i){return this.c.add(String(t),e,!1,n,i)},r.sa=function(t,e,n,i){return this.c.add(String(t),e,!0,n,i)};var xt=s.JSON.stringify;function St(){this.b=this.a=null}var Et,It=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,this.a=(t=this.a).next,t.next=null):t=this.c(),t},t}())((function(){return new Tt}),(function(t){t.reset()}),100);function At(){var t=Rt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Tt(){this.next=this.b=this.a=null}function Ot(t){s.setTimeout((function(){throw t}),0)}function Dt(t,e){Et||function(){var t=s.Promise.resolve(void 0);Et=function(){t.then(Nt)}}(),Pt||(Et(),Pt=!0),Rt.add(t,e)}St.prototype.add=function(t,e){var n=It.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Tt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Tt.prototype.reset=function(){this.next=this.b=this.a=null};var Pt=!1,Rt=new St;function Nt(){for(var t;t=At();){try{t.a.call(t.b)}catch(n){Ot(n)}var e=It;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Pt=!1}function Mt(t,e){kt.call(this),this.b=t||1,this.a=e||s,this.f=v(this.Ua,this),this.g=y()}function Ft(t){t.Z=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function Lt(t,e,n){if("function"==l(t))n&&(t=v(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=v(t.handleEvent,t)}return 2147483647<Number(e)?-1:s.setTimeout(t,e||0)}function jt(t,e,n){b.call(this),this.f=null!=n?v(t,n):t,this.c=e,this.b=v(this.Pa,this),this.a=[]}function Bt(t){t.T=Lt(t.b,t.c),t.f.apply(null,t.a)}function Vt(t){b.call(this),this.b=t,this.a={}}_(Mt,kt),(r=Mt.prototype).Z=!1,r.L=null,r.Ua=function(){if(this.Z){var t=y()-this.g;
10<t&&t<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-t):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.Z&&(Ft(this),this.start()))}},r.start=function(){this.Z=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=y())},r.C=function(){Mt.M.C.call(this),Ft(this),delete this.a},_(jt,b),(r=jt.prototype).ba=!1,r.T=null,r.Ia=function(t){this.a=arguments,this.T?this.ba=!0:Bt(this)},r.C=function(){jt.M.C.call(this),this.T&&(s.clearTimeout(this.T),this.T=null,this.ba=!1,this.a=[])},r.Pa=function(){this.T=null,this.ba&&(this.ba=!1,Bt(this))},_(Vt,b);var Ut=[];function Ht(t,e,n,i){Array.isArray(n)||(n&&(Ut[0]=n.toString()),n=Ut);for(var r=0;r<n.length;r++){var o=dt(e,n[r],i||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function zt(t){P(t.a,(function(t,e){this.a.hasOwnProperty(e)&&mt(t)}),t),t.a={}}function qt(){}Vt.prototype.C=function(){Vt.M.C.call(this),zt(this)},Vt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Wt=null;function Gt(){return Wt=Wt||new kt}function Kt(t){et.call(this,"serverreachability",t)}function Yt(t){var e=Gt();e.dispatchEvent(new Kt(e,t))}function Qt(t){et.call(this,"statevent",t)}function $t(t){var e=Gt();e.dispatchEvent(new Qt(e,t))}function Xt(t){et.call(this,"timingevent",t)}function Zt(t,e){if("function"!=l(t))throw Error("Fn must not be null and must be a function");return s.setTimeout((function(){t()}),e)}_(Kt,et),_(Qt,et),_(Xt,et);var Jt={NO_ERROR:0,Va:1,bb:2,ab:3,Ya:4,$a:5,cb:6,za:7,TIMEOUT:8,gb:9},te={Xa:"complete",kb:"success",Aa:"error",za:"abort",ib:"ready",jb:"readystatechange",TIMEOUT:"timeout",eb:"incrementaldata",hb:"progress",Za:"downloadprogress",lb:"uploadprogress"};function ee(){}function ne(){}ee.prototype.a=null;var ie,re={OPEN:"a",Wa:"b",Aa:"c",fb:"d"};function oe(){et.call(this,"d")}function ae(){et.call(this,"c")}function se(){}function ue(t,e,n){this.g=t,this.W=e,this.U=n||1,this.G=new Vt(this),this.N=le,this.O=new Mt(t=H?125:void 0),this.m=null,this.b=!1,this.j=this.A=this.f=this.B=this.s=this.P=this.h=null,this.i=[],this.a=null,this.w=0,this.c=this.v=null,this.H=-1,this.l=!1,this.J=0,this.D=null,this.o=this.R=this.F=!1}_(oe,et),_(ae,et),_(se,ee),ie=new se;var le=45e3,ce={},he={};function fe(t,e,n){t.B=1,t.f=Ne(Ae(e)),t.j=n,t.F=!0,de(t,null)}function de(t,e){t.s=y(),ve(t),t.A=Ae(t.f);var n=t.A,i=t.U;Array.isArray(i)||(i=[String(i)]),Ke(n.b,"t",i),t.w=0,t.a=Bn(t.g,t.g.w?e:null),0<t.J&&(t.D=new jt(v(t.ya,t,t.a),t.J)),Ht(t.G,t.a,"readystatechange",t.Sa),e=t.m?R(t.m):{},t.j?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.$(t.A,t.v,t.j,e)):(t.v="GET",t.a.$(t.A,t.v,null,e)),Yt(1)}function pe(t,e,n){for(var i=!0;!t.l&&t.w<n.length;){var r=me(t,n);if(r==he){4==e&&(t.c=4,$t(14),i=!1);break}if(r==ce){t.c=4,$t(15),i=!1;break}we(t,r)}4==e&&0==n.length&&(t.c=1,$t(16),i=!1),t.b=t.b&&i,i||(be(t),_e(t))}function me(t,e){var n=t.w,i=e.indexOf("\n",n);return-1==i?he:(n=Number(e.substring(n,i)),isNaN(n)?ce:(i+=1)+n>e.length?he:(e=e.substr(i,n),t.w=i+n,e))}function ve(t){t.P=y()+t.N,ge(t,t.N)}function ge(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Zt(v(t.Qa,t),e)}function ye(t){t.h&&(s.clearTimeout(t.h),t.h=null)}function _e(t){0==t.g.u||t.l||Nn(t.g,t)}function be(t){ye(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,Ft(t.O),zt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function we(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||tn(n.b,t)))if(n.A=t.H,!t.o&&tn(n.b,t)&&3==n.u){try{var i=n.ja.a.parse(e)}catch(m){i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3<t.s))break t;Rn(n),n.a.cancel(),n.a=null}Pn(n),$t(18)}}else n.ia=r[1],0<n.ia-n.G&&37500>r[2]&&n.U&&0==n.m&&!n.l&&(n.l=Zt(v(n.Na,n),6e3));if(1>=Je(n.b)&&n.O){try{n.O()}catch(m){}n.O=void 0}}else Fn(n,11)}else if((t.o||n.a==t)&&Rn(n),!S(e))for(e=i=n.ja.a.parse(e),i=0;i<e.length;i++)if(n.G=(r=e[i])[0],r=r[1],2==n.u)if("c"==r[0]){n.B=r[1],n.R=r[2];var o=r[3];null!=o&&(n.oa=o);var a=r[5];null!=a&&"number"==typeof a&&0<a&&(n.D=1.5*a);var s=n,u=t.a;if(u){var l=u.a?u.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var c=s.b;!c.a&&(A(l,"spdy")||A(l,"quic")||A(l,"h2"))&&(c.f=c.g,c.a=new Set,c.b&&(en(c,c.b),c.b=null))}if(s.s){var h=u.a?u.a.getResponseHeader("X-HTTP-Session-Id"):null;
vendor: 4,762 bytes, line 1
1h&&(s.ha=h,Re(s.v,s.s,h))}}n.u=3,n.c&&n.c.na();var f=t;if((s=n).ea=jn(s,s.w?s.R:null,s.P),f.o){nn(s.b,f);var d=f,p=s.D;p&&d.setTimeout(p),d.h&&(ye(d),ve(d)),s.a=f}else Dn(s);0<n.f.length&&In(n)}else"stop"!=r[0]&&"close"!=r[0]||Fn(n,7);else 3==n.u&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Fn(n,7):xn(n):"noop"!=r[0]&&n.c&&n.c.ma(r),n.m=0);Yt(4)}catch(m){}}function ke(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(c(t)||"string"==typeof t)k(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.I&&"function"==typeof t.I)n=void 0;else if(c(t)||"string"==typeof t){n=[];for(var i=t.length,r=0;r<i;r++)n.push(r)}else for(r in n=[],i=0,t)n[i++]=r;r=(i=function(t){if(t.I&&"function"==typeof t.I)return t.I();if("string"==typeof t)return t.split("");if(c(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}(t)).length;for(var o=0;o<r;o++)e.call(void 0,i[o],n&&n[o],t)}}function Ce(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 i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Ce)for(n=t.K(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function xe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];Se(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)Se(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function Se(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(r=ue.prototype).setTimeout=function(t){this.N=t},r.Sa=function(t){t=t.target;var e=this.D;e&&3==bn(t)?e.Ia():this.ya(t)},r.ya=function(t){try{if(t==this.a)t:{var e=bn(this.a),n=this.a.qa(),i=this.a.S();if(!(3>e||3==e&&!H&&!this.a.Y())){this.l||4!=e||7==n||Yt(8==n||0>=i?3:2),ye(this);var r=this.a.S();this.H=r;var o=this.a.Y();if(this.b=200==r){if(this.R&&!this.o){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.c=3,$t(12),be(this),_e(this);break t}this.o=!0,we(this,u)}this.F?(pe(this,e,o),H&&this.b&&3==e&&(Ht(this.G,this.O,"tick",this.Ra),this.O.start())):we(this,o),4==e&&be(this),this.b&&!this.l&&(4==e?Nn(this.g,this):(this.b=!1,ve(this)))}else 400==r&&0<o.indexOf("Unknown SID")?(this.c=3,$t(12)):(this.c=0,$t(13)),be(this),_e(this)}}}catch(l){}},r.Ra=function(){if(this.a){var t=bn(this.a),e=this.a.Y();this.w<e.length&&(ye(this),pe(this,t,e),this.b&&4!=t&&ve(this))}},r.cancel=function(){this.l=!0,be(this)},r.Qa=function(){this.h=null;var t=y();0<=t-this.P?(2!=this.B&&(Yt(3),$t(17)),be(this),this.c=2,_e(this)):ge(this,this.P-t)},(r=Ce.prototype).I=function(){xe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},r.K=function(){return xe(this),this.a.concat()},r.get=function(t,e){return Se(this.b,t)?this.b[t]:e},r.set=function(t,e){Se(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},r.forEach=function(t,e){for(var n=this.K(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}};var Ee=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ie(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ie){this.a=void 0!==e?e:t.a,Te(this,t.f),this.j=t.j,Oe(this,t.c),De(this,t.h),this.g=t.g,e=t.b;var n=new ze;n.c=e.c,e.a&&(n.a=new Ce(e.a),n.b=e.b),Pe(this,n),this.i=t.i}else t&&(n=String(t).match(Ee))?(this.a=!!e,Te(this,n[1]||"",!0),this.j=Me(n[2]||""),Oe(this,n[3]||"",!0),De(this,n[4]),this.g=Me(n[5]||"",!0),Pe(this,n[6]||"",!0),this.i=Me(n[7]||"")):(this.a=!!e,this.b=new ze(null,this.a))}function Ae(t){return new Ie(t)}function Te(t,e,n){t.f=n?Me(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Oe(t,e,n){t.c=n?Me(e,!0):e}function De(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Pe(t,e,n){e instanceof ze?(t.b=e,function(t,e){e&&!t.f&&(qe(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(We(this,e),Ke(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Fe(e,Ue)),t.b=new ze(e,t.a))}function Re(t,e,n){t.b.set(e,n)}function Ne(t){return Re(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^y()).toString(36)),t}function Me(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Fe(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Le),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Le(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ie.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Fe(e,je,!0),":");var n=this.c;
1return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Fe(e,je,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(Fe(n,"/"==n.charAt(0)?Ve:Be,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Fe(n,He)),t.join("")};var je=/[#\/\?@]/g,Be=/[#\?:]/g,Ve=/[#\?]/g,Ue=/[#\?@]/g,He=/#/g;function ze(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function qe(t){t.a||(t.a=new Ce,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function We(t,e){qe(t),e=Ye(t,e),Se(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Se((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&xe(t)))}function Ge(t,e){return qe(t),e=Ye(t,e),Se(t.a.b,e)}function Ke(t,e,n){We(t,e),0<n.length&&(t.c=null,t.a.set(Ye(t,e),x(n)),t.b+=n.length)}function Ye(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Qe(t,e){this.b=t,this.a=e}function $e(t){this.g=t||Xe,t=s.PerformanceNavigationTiming?0<(t=s.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(s.ca&&s.ca.ua&&s.ca.ua()&&s.ca.ua().mb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(r=ze.prototype).add=function(t,e){qe(this),this.c=null,t=Ye(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},r.forEach=function(t,e){qe(this),this.a.forEach((function(n,i){k(n,(function(n){t.call(e,n,i,this)}),this)}),this)},r.K=function(){qe(this);for(var t=this.a.I(),e=this.a.K(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},r.I=function(t){qe(this);var e=[];if("string"==typeof t)Ge(this,t)&&(e=C(e,this.a.get(Ye(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=C(e,t[n])}return e},r.set=function(t,e){return qe(this),this.c=null,Ge(this,t=Ye(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.I(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 i=e[n],r=encodeURIComponent(String(i));i=this.I(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),t.push(a)}}return this.c=t.join("&")};var Xe=10;function Ze(t){return!!t.b||!!t.a&&t.a.size>=t.f}function Je(t){return t.b?1:t.a?t.a.size:0}function tn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function en(t,e){t.a?t.a.add(e):t.b=e}function nn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function rn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var o=i(t.a.values()),a=o.next();!a.done;a=o.next())r=r.concat(a.value.i)}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return x(t.c)}function on(){}function an(){this.a=new on}function sn(t,e,n){var i=n||"";try{ke(t,(function(t,n){var r=t;h(t)&&(r=xt(t)),e.push(i+n+"="+encodeURIComponent(r))}))}catch(r){throw e.push(i+"type="+encodeURIComponent("_badmap")),r}}function un(t,e,n,i,r){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,r(i)}catch(o){}}$e.prototype.cancel=function(){var t,e;if(this.c=rn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=i(this.a.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},on.prototype.stringify=function(t){return s.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return s.JSON.parse(t,void 0)};var ln=s.JSON.parse;function cn(t){kt.call(this),this.headers=new Ce,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=hn,this.B=this.F=!1}_(cn,kt);var hn="",fn=/^https?$/i,dn=["POST","PUT"];function pn(t){return"content-type"==t.toLowerCase()}function mn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,vn(t),yn(t)}function vn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function gn(t){if(t.b&&void 0!==a&&(!t.s[1]||4!=bn(t)||2!=t.S()))if(t.l&&4==bn(t))Lt(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==bn(t)){t.b=!1;try{var e,n=t.S();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var o=String(t.D).match(Ee)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}r=!fn.test(o?o.toLowerCase():"")}e=r}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var l=2<bn(t)?t.a.statusText:""}catch(c){l=""}t.f=l+" ["+t.S()+"]",vn(t)}}finally{yn(t)}}}function yn(t,e){if(t.a){_n(t);var n=t.a,i=t.s[0]?u:null;
1t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){}}}function _n(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(s.clearTimeout(t.m),t.m=null)}function bn(t){return t.a?t.a.readyState:0}function wn(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=function(t){var e="";return P(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):Re(t,e,n))}function kn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Cn(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=kn("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=kn("baseRetryDelayMs",5e3,t),this.Ga=kn("retryDelaySeedMs",1e4,t),this.Da=kn("forwardChannelMaxRetries",2,t),this.ga=kn("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new $e(t&&t.concurrentRequestLimit),this.ja=new an,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function xn(t){if(Sn(t),3==t.u){var e=t.H++,n=Ae(t.v);Re(n,"SID",t.B),Re(n,"RID",e),Re(n,"TYPE","terminate"),Tn(t,n),(e=new ue(t,e,void 0)).B=2,e.f=Ne(Ae(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(e.f.toString(),"")),!n&&s.Image&&((new Image).src=e.f,n=!0),n||(e.a=Bn(e.g,null),e.a.$(e.f)),e.s=y(),ve(e)}Ln(t)}function Sn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Rn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&s.clearTimeout(t.g),t.g=null)}function En(t,e){t.f.push(new Qe(t.Fa++,e)),3==t.u&&In(t)}function In(t){Ze(t.b)||t.g||(t.g=!0,Dt(t.xa,t),t.o=0)}function An(t,e){var n;n=e?e.W:t.H++;var i=Ae(t.v);Re(i,"SID",t.B),Re(i,"RID",n),Re(i,"AID",t.G),Tn(t,i),t.h&&t.j&&wn(i,t.h,t.j),n=new ue(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=On(t,n,1e3),n.setTimeout(Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),en(t.b,n
1),fe(n,i,e)}function Tn(t,e){t.c&&ke({},(function(t,n){Re(e,n,t)}))}function On(t,e,n){n=Math.min(t.f.length,n);var i=t.c?v(t.c.Ha,t.c,t):null;t:for(var r=t.f,o=-1;;){var a=["count="+n];-1==o?0<n?a.push("ofs="+(o=r[0].b)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var l=r[u].b,c=r[u].a;if(0>(l-=o))o=Math.max(0,r[u].b-100),s=!1;else try{sn(c,a,"req"+l+"_")}catch(h){i&&i(c)}}if(s){i=a.join("&");break t}}return t=t.f.splice(0,n),e.i=t,i}function Dn(t){t.a||t.i||(t.J=1,Dt(t.wa,t),t.m=0)}function Pn(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Zt(v(t.wa,t),Mn(t,t.m)),t.m++,0))}function Rn(t){null!=t.l&&(s.clearTimeout(t.l),t.l=null)}function Nn(t,e){var n=null;if(t.a==e){Rn(t),t.a=null;var i=2}else{if(!tn(t.b,e))return;n=e.i,nn(t.b,e),i=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==i){n=e.j?e.j.length:0,e=y()-e.s;var r=t.o;(i=Gt()).dispatchEvent(new Xt(i,n,e,r)),In(t)}else Dn(t);else if(3==(r=e.c)||0==r&&0<t.A||!(1==i&&function(t,e){return!(Je(t.b)>=t.b.f-(t.g?1:0)||(t.g?(t.f=e.i.concat(t.f),0):1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da)||(t.g=Zt(v(t.xa,t,e),Mn(t,t.o)),t.o++,0)))}(t,e)||2==i&&Pn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),r){case 1:Fn(t,5);break;case 4:Fn(t,10);break;case 3:Fn(t,6);break;default:Fn(t,2)}}function Mn(t,e){var n=t.Ba+Math.floor(Math.random()*t.Ga);return t.c||(n*=2),n*e}function Fn(t,e){if(2==e){var n=null;t.c&&(n=null);var i=v(t.Ta,t);n||(n=new Ie("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||Te(n,"https"),Ne(n)),function(t,e){var n=new qt;if(s.Image){var i=new Image;i.onload=g(un,n,i,"TestLoadImage: loaded",!0,e),i.onerror=g(un,n,i,"TestLoadImage: error",!1,e),i.onabort=g(un,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=g(un,n,i,"TestLoadImage: timeout",!1,e),s.setTimeout((function(){i.ontimeout&&i.ontimeout()}),1e4),i.src=t}else e(!1)}(n.toString(),i)}else $t(2);t.u=0,t.c&&t.c.la(e),Ln(t),Sn(t)}function Ln(t){t.u=0,t.A=-1,t.c&&(0==rn(t.b).length&&0==t.f.length||(t.b.c.length=0,x(t.f),t.f.length=0),t.c.ka())}function jn(t,e,n){var i=function(t){return t instanceof Ie?Ae(t):new Ie(t,void 0)}(n);if(""!=i.c)e&&Oe(i,e+"."+i.c),De(i,i.h);else{var r=s.location;i=function(t,e,n,i){var r=new Ie(null,void 0);return t&&Te(r,t),e&&Oe(r,e),n&&De(r,n),i&&(r.g=i),r}(r.protocol,e?e+"."+r.hostname:r.hostname,+r.port,n)}return t.N&&P(t.N,(function(t,e){Re(i,e,t)})),n=t.ha,(e=t.s)&&n&&Re(i,e,n),Re(i,"VER",t.oa),Tn(t,i),i}function Bn(t,e){if(e&&!t.w)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new cn(t.Ea)).F=t.w,e}function Vn(){}function Un(){if(V&&!(10<=Number(X)))throw Error("Environmental error: no available transport.")}function Hn(t,e){kt.call(this),this.a=new Cn(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.j=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.pa&&(t?t["X-WebChannel-Client-Profile"]=e.pa:t={"X-WebChannel-Client-Profile":e.pa}),this.a.F=t,(t=e&&e.httpHeadersOverwriteParam)&&!S(t)&&(this.a.h=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!S(e)&&(this.a.s=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new Wn(this)}function zn(t){oe.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 qn(){ae.call(this),this.status=1}function Wn(t){this.a=t}(r=cn.prototype).$=function(t,e,n,i){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(t){var e;return(e=t.a)||(e=t.a={}),e}(this.G?this.G:ie),this.a.onreadystatechange=v(this.va,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void mn(this,o)}t=n||"";var r=new Ce(this.headers);i&&ke(i,(function(t,e){r.set(e,t)})),i=function(t){t:{for(var e=pn,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(r.K()),n=s.FormData&&t instanceof s.FormData,!(0<=w(dn,e))||i||n||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{_n(this),0<this.o&&((this.B=function(t){return V&&$(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=v(this.ta,this)):this.m=Lt(this.ta,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){mn(this,o)}},r.ta=function(){void 0!==a&&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"),yn(this))},r.C=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),yn(this,!0)),cn.M.C.call(this)},r.va=function(){this.j||(this.w||this.l||this.g?gn(this):this.Oa())},r.Oa=function(){gn(this)},r.S=function(){try{return 2<bn(this)?this.a.status:-1}catch(j){return-1}},r.Y=function(){try{return this.a?this.a.responseText:""}catch(j){return""}},r.Ja=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),ln(e)}},r.qa=function(){return this.h},r.Ma=function(){return"string"==typeof this.f?this.f:String(this.f)},(r=Cn.prototype).oa=8,r.u=1,r.xa=function(t){if(this.g)if(this.g=null,1==this.u){if(!t){this.H=Math.floor(1e5*Math.random());var e,n=new ue(this,t=this.H++,void 0),i=this.j;if(this.F&&(i?M(i=R(i),this.F):i=this.F),null===this.h&&(n.m=i),this.fa)t:{for(var r=e=0;r<this.f.length;r++){var o=this.f[r];if(void 0===(o="__data__"in o.a&&"string"==typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=r;break t}if(4096===e||r===this.f.length-1){e=r+1;break t}}e=1e3}else e=1e3;e=On(this,n,e),Re(r=Ae(this.v),"RID",t),Re(r,"CVER",22),this.s&&Re(r,"X-HTTP-Session-Id",this.s),Tn(this,r),this.h&&i&&wn(r,this.h,i),en(this.b,n),this.fa?(Re(r,"$req",e),Re(r,"SID","null"),n.R=!0,fe(n,r,null)):fe(n,r,e),this.u=2}}else 3==this.u&&(t?An(this,t):0==this.f.length||Ze(this.b)||An(this))},r.wa=function(){this.i=null,this.a=new ue(this,"rpc",this.J),null===this.h&&(this.a.m=this.j),this.a.J=0;var t=Ae(this.ea);Re(t,"RID","rpc"),Re(t,"SID",this.B),Re(t,"CI",this.U?"0":"1"),Re(t,"AID",this.G),Tn(this,t),Re(t,"TYPE","xmlhttp"),this.h&&this.j&&wn(t,this.h,this.j),this.D&&this.a.setTimeout(this.D);var e=this.a,n=this.R;e.B=1,e.f=Ne(Ae(t)),e.j=null,e.F=!0,de(e,n)},r.Na=function(){null!=this.l&&(this.l=null,this.a.cancel(),this.a=null,Pn(this),$t(19))},r.Ta=function(t){$t(t?2:1)},(r=Vn.prototype).na=function(){},r.ma=function(){},r.la=function(){},r.ka=function(){},r.Ha=function(){},Un.prototype.a=function(t,e){return new Hn(t,e)},_(Hn,kt),(r=Hn.prototype).addEventListener=function(t,e,n,i){Hn.M.addEventListener.call(this,t,e,n,i)},r.removeEventListener=function(t,e,n,i){Hn.M.removeEventListener.call(this,t,e,n,i)},r.Ka=function(){this.a.c=this.f,this.h&&(this.a.w=!0);var t=this.a,e=this.l,n=this.b||void 0;$t(0),t.P=e,t.N=n||{},t.U=t.W,t.v=jn(t,null,t.P),In(t)},r.close=function(){xn(this.a)},r.La=function(t){if("string"==typeof t){var e={};e.__data__=t,En(this.a,e)}else this.g?((e={}).__data__=xt(t),En(this.a,e)):En(this.a,t)},r.C=function(){this.a.c=null,delete this.f,xn(this.a),delete this.a,Hn.M.C.call(this)},_(zn,oe),_(qn,ae),_(Wn,Vn),Wn.prototype.na=function(){this.a.dispatchEvent("a")},Wn.prototype.ma=function(t){this.a.dispatchEvent(new zn(t))},Wn.prototype.la=function(t){this.a.dispatchEvent(new qn(t))},Wn.prototype.ka=function(){this.a.dispatchEvent("b")},Un.prototype.createWebChannel=Un.prototype.a,Hn.prototype.send=Hn.prototype.La,Hn.prototype.open=Hn.prototype.Ka,Hn.prototype.close=Hn.prototype.close,Jt.NO_ERROR=0,Jt.TIMEOUT=8,Jt.HTTP_ERROR=6,te.COMPLETE="complete",ne.EventType=re,re.OPEN="a",re.CLOSE="b",re.E
1RROR="c",re.MESSAGE="d",kt.prototype.listen=kt.prototype.ra,cn.prototype.listenOnce=cn.prototype.sa,cn.prototype.getLastError=cn.prototype.Ma,cn.prototype.getLastErrorCode=cn.prototype.qa,cn.prototype.getStatus=cn.prototype.S,cn.prototype.getResponseJson=cn.prototype.Ja,cn.prototype.getResponseText=cn.prototype.Y,cn.prototype.send=cn.prototype.$;var Gn={createWebChannelTransport:function(){return new Un},ErrorCode:Jt,EventType:te,WebChannel:ne,XhrIo:cn},Kn=Gn.createWebChannelTransport,Yn=Gn.ErrorCode,Qn=Gn.EventType,$n=Gn.WebChannel,Xn=Gn.XhrIo;e.default=Gn},FETv:function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return S})),n.d(e,"getGlobalVars",(function(){return C})),n.d(e,"registerAnalytics",(function(){return E})),n.d(e,"resetGlobalVars",(function(){return k})),n.d(e,"settings",(function(){return x}));var i=n("plFh"),r=n.n(i);n("XIqf");var o,a,s,u=function(){return(u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},l=n("Gjt8"),c=n("82Ps"),h=n("WRB3"),f="https://www.googletagmanager.com/gtag/js",d=function(t){return t.EVENT="event",t.SET="set",t.CONFIG="config",t}({}),p=function(t){return t.ADD_SHIPPING_INFO="add_shipping_info",t.ADD_PAYMENT_INFO="add_payment_info",t.ADD_TO_CART="add_to_cart",t.ADD_TO_WISHLIST="add_to_wishlist",t.BEGIN_CHECKOUT="begin_checkout",t.CHECKOUT_PROGRESS="checkout_progress",t.EXCEPTION="exception",t.GENERATE_LEAD="generate_lead",t.LOGIN="login",t.PAGE_VIEW="page_view",t.PURCHASE="purchase",t.REFUND="refund",t.REMOVE_FROM_CART="remove_from_cart",t.SCREEN_VIEW="screen_view",t.SEARCH="search",t.SELECT_CONTENT="select_content",t.SELECT_ITEM="select_item",t.SELECT_PROMOTION="select_promotion",t.SET_CHECKOUT_OPTION="set_checkout_option",t.SHARE="share",t.SIGN_UP="sign_up",t.TIMING_COMPLETE="timing_complete",t.VIEW_CART="view_cart",t.VIEW_ITEM="view_item",t.VIEW_ITEM_LIST="view_item_list",t.VIEW_PROMOTION="view_promotion",t.VIEW_SEARCH_RESULTS="view_search_results",t}({}),m=new l.Logger("@firebase/analytics"),v=((o={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',o["already-exists"]="A Firebase Analytics instance with the measurement ID ${id} already exists. Only one Firebase Analytics instance can be created for each measurement ID.",o["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",o["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",o),g=new c.ErrorFactory("analytics","Analytics",v),y={},_="dataLayer",b="gtag",w=!1;function k(t,e){void 0===t&&(t=!1),void 0===e&&(e={}),w=t,y=e,_="dataLayer",b="gtag"}function C(){return{initializedIdPromisesMap:y}}function x(t){if(w)throw g.create("already-initialized");t.dataLayerName&&(_=t.dataLayerName),t.gtagName&&(b=t.gtagName)}function S(t,e){var n=t.options.measurementId;if(!n)throw g.create("no-ga-id");if(null!=y[n])throw g.create("already-exists",{id:n});if(!w){(function(){for(var t=window.document.getElementsByTagName("script"),e=0,n=Object.values(t);e<n.length;e++){var i=n[e];if(i.src&&i.src.includes(f))return i}return null})()||function(t){var e=document.createElement("script");e.src=f+"?l="+t,e.async=!0,document.head.appendChild(e)}(_),function(t){var e=[];Array.isArray(window[t])?e=window[t]:window[t]=e}(_);var i=function(t,e,n){var i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];window[e].push(arguments)};return window[n]&&"function"==typeof window[n]&&(i=window[n]),window[n]=function(t,e){return function(n,i,r){if(n===d.EVENT){var o=[];if(r&&r.send_to){var a=r.send_to;Array.isArray(a)||(a=[a]);for(var s=0,u=a;s<u.length;s++){var l=e[u[s]];if(!l){o=[];break}o.push(l)}}if(0===o.length)for(var c=0,h=Object.values(e);c<h.length;c++)o.push(h[c]);Promise.all(o).then((function(){return t(d.EVENT,i,r||{})})).catch((function(t){return m.error(t)}))}else n===d.CONFIG?(e[i]||Promise.resolve()).then((function(){t(d.CONFIG,i,r)})).catch((function(t){return m.error(t)})):t(d.SET,i)}}(i,t),{gtagCore:i,wrappedGtag:window[n]}}(y,_,b);s=i.wrappedGtag,a=i.gtagCore,w=!0}return y[n]=function(t,e,n){return i=this,o=function(){var i,r;return function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return[4,e.getId()];case 1:return i=o.sent(),n("js",new Date),n(d.CONFIG,t.options.measurementId,((r={}).firebase_id=i,r.origin="firebase",r.update=!0,r)),[2]}}))},new((r=void 0)||(r=Promise))((function(t,e){function n(t){try{s(o.next(t))}catch(n){e(n)}}function a(t){try{s(o.throw(t))}catch(n){e(n)}}function s(e){var i;e.done?t(e.value):(i=e.value,i instanceof r?i:new r((function(t){t(i)}))).then(n,a)}s((o=o.apply(i,[])).next())}));var i,r,o}(t,e,a),{app:t,logEvent:function(t,e,i){return function(t,e,n,i,r){var o=i||{};r&&r.global||(o=u(u({},i),{send_to:e})),t(d.EVENT,n,o||{})}(s,n,t,e,i)},setCurrentScreen:function(t,e){return function(t,e,n,i){i&&i.global?t(d.SET,{screen_name:n}):t(d.CONFIG,e,{update:!0,screen_name:n})}(s,n,t,e)},setUserId:function(t,e){return function(t,e,n,i){i&&i.global?t(d.SET,{user_id:n}):t(d.CONFIG,e,{update:!0,user_id:n})}(s,n,t,e)},setUserProperties:function(t,e){return function(t,e,n,i){if(i&&i.global){for(var r={},o=0,a=Object.keys(n);o<a.length;o++){var s=a[o];r["user_properties."+s]=n[s]}t(d.SET,r)}else t(d.CONFIG,e,{update:!0,user_properties:n})}(s,n,t,e)},setAnalyticsCollectionEnabled:function(t){return function(t,e){window["ga-disable-"+t]=!e}(n,t)}}}function E(t){t.INTERNAL.registerComponent(new h.Component("analytics",(function(t){return S(t.getProvider("app").getImmediate(),t.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:x,EventName:p})),t.INTERNAL.registerComponent(new h.Component("analytics-internal",(function(t){try{return{logEvent:t.getProvider("analytics").getImmediate().logEvent}}catch(e){throw g.create("interop-component-reg-failed",{reason:e})}}),"PRIVATE")),t.registerVersion("@firebase/analytics","0.3.5")}E(r.a)},FeJI:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n("XVEb"),o=(i=n("0KrK"))&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("if",(function(t,e){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return r.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||r.isEmpty(t)?e.inverse(this):e.fn(this)})),t.registerHelper("unless",(function(e,n){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},t.exports=e.default},Fvkh:function(t,e,n){"use strict";e.__esModule=!0;var i=n("XVEb"),r=void 0;function o(t,e,n){if(i.isArray(t)){for(var r=[],o=0,a=t.length;o<a;o++)r.push(e.wrap(t[o],n));return r}return"boolean"==typeof t||"number"==typeof t?t+"":t}function a(t){this.srcFile=t,this.source=[]}r||((r=function(t,e,n,i){this.src="",i&&this.add(i)}).prototype={add:function(t){i.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){i.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),a.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){var t=this.empty();return this.each((function(e){t.add([" ",e,"\n"])})),t},each:function(t){for(var e=0,n=this.source.length;e<n;e++)t(this.source[e])},empty:function(){var t=this.currentLocation||{start:{}};return new r(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var e=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return t instanceof r?t:(t=o(t,this,e),new r(e.start.line,e.start.column,this.srcFile,t))},functionCall:function(t,e,n){return n=this.generateList(n),this.wrap([t,e?"."+e+"(":"(",n,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'}
1,objectLiteral:function(t){var e=this,n=[];Object.keys(t).forEach((function(i){var r=o(t[i],e);"undefined"!==r&&n.push([e.quotedString(i),":",r])}));var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},generateList:function(t){for(var e=this.empty(),n=0,i=t.length;n<i;n++)n&&e.add(","),e.add(o(t[n],this));return e},generateArray:function(t){var e=this.generateList(t);return e.prepend("["),e.add("]"),e}},e.default=a,t.exports=e.default},Gjt8:function(t,e,n){"use strict";function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var r;n.r(e),n.d(e,"LogLevel",(function(){return a})),n.d(e,"Logger",(function(){return h})),n.d(e,"setLogLevel",(function(){return f})),n.d(e,"setUserLogHandler",(function(){return d}));var o=[],a=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}({}),s={debug:a.DEBUG,verbose:a.VERBOSE,info:a.INFO,warn:a.WARN,error:a.ERROR,silent:a.SILENT},u=a.INFO,l=((r={})[a.DEBUG]="log",r[a.VERBOSE]="log",r[a.INFO]="info",r[a.WARN]="warn",r[a.ERROR]="error",r),c=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(),a=l[e];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[a].apply(console,i(["["+o+"] "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=c,this._userLogHandler=null,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in a))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!0,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,a.DEBUG],t)),this._logHandler.apply(this,i([this,a.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,a.VERBOSE],t)),this._logHandler.apply(this,i([this,a.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,a.INFO],t)),this._logHandler.apply(this,i([this,a.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,a.WARN],t)),this._logHandler.apply(this,i([this,a.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,a.ERROR],t)),this._logHandler.apply(this,i([this,a.ERROR],t))},t}();function f(t){var e="string"==typeof t?s[t]:t;o.forEach((function(t){t.logLevel=e}))}function d(t,e){for(var n=function(n){var i=null;e&&e.level&&(i=s[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=r.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!=i?i:e.logLevel)&&t({level:a[n].toLowerCase(),message:s,args:r,type:e.name})}},i=0,r=o;i<r.length;i++)n(r[i])}},INYq:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var o=r(n("T9/7")),a=i(n("VTm5")),s=i(n("0KrK")),u=r(n("XVEb")),l=r(n("mG+b")),c=i(n("lCA4"));function h(){var t=new o.HandlebarsEnvironment;return u.extend(t,o),t.SafeString=a.default,t.Exception=s.default,t.Utils=u,t.escapeExpression=u.escapeExpression,t.VM=l,t.template=function(e){return l.template(e,t)},t}var f=h();f.create=h,c.default(f),f.default=f,e.default=f,t.exports=e.default},IOcq:function(t,e,n){"use strict";n.r(e),n.d(e,"registerStorage",(function(){return jt}));var i=n("plFh"),r=n.n(i);function o(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}
1var a=n("WRB3"),s=function(){function t(t,e){this.code_=u(t),this.message_="Firebase Storage: "+e,this.serverResponse_=null,this.name_="FirebaseError"}return t.prototype.codeProp=function(){return this.code},t.prototype.codeEquals=function(t){return u(t)===this.codeProp()},t.prototype.serverResponseProp=function(){return this.serverResponse_},t.prototype.setServerResponseProp=function(t){this.serverResponse_=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),t}();function u(t){return"storage/"+t}function l(){return new s("unknown","An unknown error occurred, please check the error payload for server response.")}function c(){return new s("canceled","User canceled the upload/download.")}function h(){return new s("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function f(){return new s("no-download-url","The given file does not have any download URLs.")}function d(t,e,n){return new s("invalid-argument","Invalid argument in `"+e+"` at index "+t+": "+n)}function p(){return new s("app-deleted","The Firebase app was deleted.")}function m(t,e){return new s("invalid-format","String does not match format '"+t+"': "+e)}function v(t){throw new s("internal-error","Internal error: "+t)}var g={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function y(t){switch(t){case g.RAW:case g.BASE64:case g.BASE64URL:case g.DATA_URL:return;default:throw"Expected one of the event types: ["+g.RAW+", "+g.BASE64+", "+g.BASE64URL+", "+g.DATA_URL+"]."}}var _=function(t,e){this.data=t,this.contentType=e||null};function b(t,e){switch(t){case g.RAW:return new _(w(e));case g.BASE64:case g.BASE64URL:return new _(k(t,e));case g.DATA_URL:return new _((n=new C(e)).base64?k(g.BASE64,n.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw m(g.DATA_URL,"Malformed data URL.")}return w(e)}(n.rest),new C(e).contentType)}var n;throw l()}function w(t){for(var e=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<=127)e.push(i);else if(i<=2047)e.push(192|i>>6,128|63&i);else if(55296==(64512&i))if(n<t.length-1&&56320==(64512&t.charCodeAt(n+1))){var r=i,o=t.charCodeAt(++n);e.push(240|(i=65536|(1023&r)<<10|1023&o)>>18,128|i>>12&63,128|i>>6&63,128|63&i)}else e.push(239,191,189);else 56320==(64512&i)?e.push(239,191,189):e.push(224|i>>12,128|i>>6&63,128|63&i)}return new Uint8Array(e)}function k(t,e){switch(t){case g.BASE64:var n=-1!==e.indexOf("-"),i=-1!==e.indexOf("_");if(n||i)throw m(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case g.BASE64URL:var r=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(r||o)throw m(t,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(l){throw m(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var C=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw m(g.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n,i=e[1]||null;null!=i&&(this.base64=(n=i).length>=";base64".length&&";base64"===n.substring(n.length-";base64".length),this.contentType=this.base64?i.substring(0,i.length-";base64".length):i),this.rest=t.substring(t.indexOf(",")+1)},x={STATE_CHANGED:"state_changed"},S={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function E(t){switch(t){case"running":case"pausing":case"canceling":return S.RUNNING;case"paused":return S.PAUSED;case"success":return S.SUCCESS;case"canceled":return S.CANCELED;case"error":default:return S.ERROR}}function I(t){return null!=t}function A(t){return void 0!==t}function T(t){return"function"==typeof t}function O(t){return"object"==typeof t}function D(t){return O(t)&&null!==t}function P(t){return"string"==typeof t||t instanceof String}function R(t){return N(t)&&Number.isInteger(t)}function N(t){return"number"==typeof t||t instanceof Number}function M(t){return F()&&t instanceof Blob}function F(){return"undefined"!=typeof Blob}var L=function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_E
1RROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t}({}),j=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=L.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=L.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=L.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,i){if(this.sent_)throw v("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),I(i))for(var r in i)i.hasOwnProperty(r)&&this.xhr_.setRequestHeader(r,i[r].toString());return I(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw v("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw v("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw v("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){I(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){I(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),B=function(){function t(){}return t.prototype.createXhrIo=function(){return new j},t}();function V(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=V();if(void 0!==n){for(var i=new n,r=0;r<t.length;r++)i.append(t[r]);return i.getBlob()}if(F())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}var H=function(){function t(t,e){var n=0,i="";M(t)?(this.data_=t,n=t.size,i=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=i}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(M(this.data_)){var i=(o=e,a=n,(r=this.data_).webkitSlice?r.webkitSlice(o,a):r.mozSlice?r.mozSlice(o,a):r.slice?r.slice(o,a):null);return null===i?null:new t(i)}var r,o,a;return new t(new Uint8Array(this.data_.buffer,e,n-e),!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(F()){var i=e.map((function(e){return e instanceof t?e.data_:e}));return new t(U.apply(null,i))}var r=e.map((function(t){return P(t)?b(g.RAW,t).data:t.data_})),o=0;r.forEach((function(t){o+=t.byteLength}));var a=new Uint8Array(o),s=0;return r.forEach((function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]})),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}(),z=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var n;try{n=t.makeFromUrl(e)}catch(i){return new t(e,"")}if(""===n.path)return n;throw new s("invalid-default-bucket","Invalid default bucket '"+e+"'.")},t.makeFromUrl=function(e){var n=null,i=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function r(t){t.path_=decodeURIComponent(t.path)}for(var o="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),a=[{regex:i,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+o+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:r},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:r}],u=0;u<a.length;u++){var l=a[u],c=l.regex.exec(e);if(c){var h=c[l.indices.path];h||(h=""),n=new t(c[l.indices.bucket],h),l.postModify(n);break}}if(null==n)throw function(t){return new s("invalid-url","Invalid URL '"+t+"'.")}(e);return n},t}();function q(t){var e,n;try{e=JSON.parse(t)}catch(i){return null}return O(n=e)&&!Array.isArray(n)?e:null}function W(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function G(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function K(t){return"https://firebasestorage.googleapis.com/v0"+t}function Y(t){var e=encodeURIComponent,n="?";for(var i in t)t.hasOwnProperty(i)&&(n=n+(e(i)+"=")+e(t[i])+"&");return n.slice(0,-1)}function Q(t,e){return e}var $=function(t,e,n,i){this.server=t,this.local=e||t,this.writable=!!n,this.xform=i||Q},X=null;function Z(t,e,n){var i=q(e);return null===i?null:function(t,e,n){for(var i={type:"file"},r=n.length,o=0;o<r;o++){var a=n[o];i[a.local]=a.xform(i,e[a.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new z(t.bucket,t.fullPath);return e.makeStorageReference(n)}})}(i,t),i}(t,i,n)}function J(t,e){for(var n={},i=e.length,r=0;r<i;r++){var o=e[r];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}function tt(t){if(!O(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!O(n))throw"Expected object for 'customMetadata' mapping."}else if(D(n))throw"Mapping for '"+e+"' cannot be an object."}}function et(t){if(!O(t)||!t)throw"Expected ListOptions object.";for(var e in t)if("maxResults"===e){if(!R(t.maxResults)||t.maxResults<=0)throw"Expected maxResults to be a positive number.";if(t.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==e)throw"Unknown option: "+e;if(t.pageToken&&!P(t.pageToken))throw"Expected pageToken to be string."}}var nt=function(t,e,n,i){this.url=t,this.method=e,this.handler=n,this.timeout=i,this.urlParam
1s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function it(t){if(!t)throw l()}function rt(t,e){return function(n,i){var r=Z(t,i,e);return it(null!==r),r}}function ot(t){return function(e,n){var i;return(i=401===e.getStatus()?new s("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new s("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new s("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),i}}function at(t){var e=ot(t);return function(n,i){var r=e(n,i);return 404===n.getStatus()&&(r=new s("object-not-found","Object '"+t.path+"' does not exist.")),r.setServerResponseProp(i.serverResponseProp()),r}}function st(t,e,n){var i=K(e.fullServerUrl()),r=t.maxOperationRetryTime(),o=new nt(i,"GET",rt(t,n),r);return o.errorHandler=at(e),o}function ut(t,e,n,i,r){var o={};o.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(o.delimiter=n),i&&(o.pageToken=i),r&&(o.maxResults=r);var a=K(e.bucketOnlyServerUrl()),s=t.maxOperationRetryTime(),u=new nt(a,"GET",function(t,e){return function(n,i){var r=function(t,e,n){var i=q(n);return null===i?null:function(t,e,n){var i={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var r=0,o=n.prefixes;r<o.length;r++){var a=o[r].replace(/\/$/,""),s=t.makeStorageReference(new z(e,a));i.prefixes.push(s)}if(n.items)for(var u=0,l=n.items;u<l.length;u++)s=t.makeStorageReference(new z(e,l[u].name)),i.items.push(s);return i}(t,e,i)}(t,e,i);return it(null!==r),r}}(t,e.bucket),s);return u.urlParams=o,u.errorHandler=ot(e),u}function lt(t,e,n){var i=K(e.fullServerUrl()),r=t.maxOperationRetryTime(),o=new nt(i,"GET",function(t,e){return function(n,i){var r=Z(t,i,e);return it(null!==r),function(t,e){var n=q(e);if(null===n)return null;if(!P(n.downloadTokens))return null;var i=n.downloadTokens;if(0===i.length)return null;var r=encodeURIComponent;return i.split(",").map((function(e){var n=t.fullPath;return K("/b/"+r(t.bucket)+"/o/"+r(n))+Y({alt:"media",token:e})}))[0]}(r,i)}}(t,n),r);return o.errorHandler=at(e),o}function ct(t,e,n,i){var r=K(e.fullServerUrl()),o=J(n,i),a=t.maxOperationRetryTime(),s=new nt(r,"PATCH",rt(t,i),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=at(e),s}function ht(t,e){var n=K(e.fullServerUrl()),i=t.maxOperationRetryTime(),r=new nt(n,"DELETE",(function(t,e){}),i);return r.successCodes=[200,204],r.errorHandler=at(e),r}function ft(t,e,n){var i=Object.assign({},n);return i.fullPath=t.path,i.size=e.size(),i.contentType||(i.contentType=function(t,e){return e&&e.type()||"application/octet-stream"}(0,e)),i}var dt=function(t,e,n,i){this.current=t,this.total=e,this.finalized=!!n,this.metadata=i||null};function pt(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(i){it(!1)}return it(!!n&&-1!==(e||["active"]).indexOf(n)),n}var mt=function(t,e,n){if(T(t)||I(e)||I(n))this.next=t,this.error=e||null,this.complete=n||null;else{var i=t;this.next=i.next||null,this.error=i.error||null,this.complete=i.complete||null}},vt=function(t,e,n,i,r,o){this.bytesTransferred=t,this.totalBytes=e,this.state=n,this.metadata=i,this.task=r,this.ref=o};function gt(t,e,n){for(var i=e.length,r=e.length,o=0;o<e.length;o++)if(e[o].optional){i=o;break}var a,u,l,c;if(!(i<=n.length&&n.length<=r))throw(a=i)===(u=r)?(l=a,c=1===a?"argument":"arguments"):(l="between "+a+" and "+u,c="arguments"),new s("invalid-argument-count","Invalid argument count in `"+t+"`: Expected "+l+" "+c+", received "+n.length+".");for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(h){throw h instanceof Error?d(o,t,h.message):d(o,t,h)}}var yt=function(t,e){var n=this;this.validator=function(e){n.optional&&!A(e)||t(e)},this.optional=!!e};function _t(t,e){function n(t){if(!P(t))throw"Expected string."}var i,r,o;return t?(r=n,o=t,i=function(t){r(t),o(t)}):i=n,new yt(i,e)}function bt(){return new yt((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||F()&&t instanceof Blob))throw"Expected Blob or File."}))}function wt(t){return new yt(tt,t)}function kt(t){return new yt(et,t)}function Ct(){return new yt((function(t){if(!(N(t)&&t>=0))throw"Expected a number 0 or greater."}))}function xt(t,e){return new yt((function(e){if(!(null===e||I(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function St(t){return new yt((function(t){if(null!==t&&!T(t))throw"Expected a Function."}),t)}function Et(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then((function(){return t.apply(void 0,e)}))}}var It=function(){function t(t,e,n,i,r,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=t,this.authWrapper_=e,this.location_=n,this.blob_=r,this.metadata_=o,this.mappings_=i,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_="running",this.errorHandler_=function(t){a.request_=null,a.chunkMultiplier_=1,t.codeEquals("canceled")?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=t,a.transition_("error"))},this.metadataErrorHandler_=function(t){a.request_=null,t.codeEquals("canceled")?a.completeTransitions_():(a.error_=t,a.transition_("error"))},this.promise_=new Promise((function(t,e){a.resolve_=t,a.reject_=e,a.start_()}
1)),this.promise_.then(null,(function(){}))}return t.prototype.makeProgressCallback_=function(){var t=this,e=this.transferred_;return function(n){return t.updateProgress_(e+n)}},t.prototype.shouldDoResumable_=function(t){return t.size()>262144},t.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.authWrapper_.getAuthToken().then((function(n){switch(e.state_){case"running":t(n);break;case"canceling":e.transition_("canceled");break;case"pausing":e.transition_("paused")}}))},t.prototype.createResumable_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,i,r){var o=e.bucketOnlyServerUrl(),a=ft(e,i,r),s={name:a.fullPath},u=K(o),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":i.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=J(a,n),h=t.maxUploadRetryTime(),f=new nt(u,"POST",(function(t){var e;pt(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){it(!1)}return it(P(e)),e}),h);return f.urlParams=s,f.headers=l,f.body=c,f.errorHandler=ot(e),f}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),i=t.authWrapper_.makeRequest(n,e);t.request_=i,i.getPromise().then((function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_((function(n){var i=function(t,e,n,i){var r=t.maxUploadRetryTime(),o=new nt(n,"POST",(function(t){var e=pt(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){it(!1)}n||it(!1);var r=Number(n);return it(!isNaN(r)),new dt(r,i.size(),"final"===e)}),r);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=ot(e),o}(t.authWrapper_,t.location_,e,t.blob_),r=t.authWrapper_.makeRequest(i,n);t.request_=r,r.getPromise().then((function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.continueUpload_=function(){var t=this,e=262144*this.chunkMultiplier_,n=new dt(this.transferred_,this.blob_.size()),i=this.uploadUrl_;this.resolveToken_((function(r){var o;try{o=function(t,e,n,i,r,o,a,u){var l=new dt(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=i.size()),i.size()!==l.total)throw new s("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=l.total-l.current,f=c;r>0&&(f=Math.min(f,r));var d=l.current,p={"X-Goog-Upload-Command":f===c?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},m=i.slice(d,d+f);if(null===m)throw h();var v=e.maxUploadRetryTime(),g=new nt(n,"POST",(function(t,n){var r,a=pt(t,["active","final"]),s=l.current+f,u=i.size();return r="final"===a?rt(e,o)(t,n):null,new dt(s,u,"final"===a,r)}),v);return g.headers=p,g.body=m.uploadData(),g.progressCallback=u||null,g.errorHandler=ot(t),g}(t.location_,t.authWrapper_,i,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(u){return t.error_=u,void t.transition_("error")}var a=t.authWrapper_.makeRequest(o,r);t.request_=a,a.getPromise().then((function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_("success")):t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_((function(e){var n=st(t.authWrapper_,t.location_,t.mappings_),i=t.authWrapper_.makeRequest(n,e);t.request_=i,i.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_("success")}),t.metadataErrorHandler_)}))},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,i,r){var o=e.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();a["Content-Type"]="multipart/related; boundary="+s;var u=ft(e,i,r),l=J(u,n),c=H.getBlob("--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",i,"\r\n--"
1+s+"--");if(null===c)throw h();var f={name:u.fullPath},d=K(o),p=t.maxUploadRetryTime(),m=new nt(d,"POST",rt(t,n),p);return m.urlParams=f,m.headers=a,m.body=c.uploadData(),m.errorHandler=ot(e),m}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),i=t.authWrapper_.makeRequest(n,e);t.request_=i,i.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_("success")}),t.errorHandler_)}))},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case"canceling":case"pausing":this.state_=t,null!==this.request_&&this.request_.cancel();break;case"running":var e="paused"===this.state_;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case"paused":this.state_=t,this.notifyObservers_();break;case"canceled":this.error_=c(),this.state_=t,this.notifyObservers_();break;case"error":case"success":this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=E(this.state_);return new vt(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),t.prototype.on=function(t,e,n,i){function r(){if(t!==x.STATE_CHANGED)throw"Expected one of the event types: ["+x.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=St(!0).validator,s=xt(null,!0).validator;function u(t){try{return void a(t)}catch(e){}try{if(s(t),!(A(t.next)||A(t.error)||A(t.complete)))throw"";return}catch(e){throw o}}var l=[_t(r),xt(u,!0),St(!0),St(!0)];gt("on",l,arguments);var c=this;function h(t){return function(e,n,r){null!==t&>("on",t,arguments);var o=new mt(e,n,i);return c.addObserver_(o),function(){c.removeObserver_(o)}}}function f(t){if(null===t)throw o;u(t)}var d=[xt(f),St(!0),St(!0)],p=!(A(e)||A(n)||A(i));return p?h(d):h(null)(e,n,i)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(E(this.state_)){case S.SUCCESS:Et(this.resolve_.bind(null,this.snapshot))();break;case S.CANCELED:case S.ERROR:Et(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(E(this.state_)){case S.RUNNING:case S.PAUSED:t.next&&Et(t.next.bind(t,this.snapshot))();break;case S.SUCCESS:t.complete&&Et(t.complete.bind(t))();break;case S.CANCELED:case S.ERROR:t.error&&Et(t.error.bind(t,this.error_))();break;default:t.error&&Et(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){gt("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){gt("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){gt("cancel",[],arguments);var t="running"===this.state_||"pausing"===this.state_;return t&&this.transition_("canceling"),t},t}(),At=function(){function t(t,e){this.authWrapper=t,this.location=e instanceof z?e:z.makeFromUrl(e)}return t.prototype.toString=function(){return gt("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return function(){if(X)return X;var t=[];t.push(new $("bucket")),t.push(new $("generation")),t.push(new $("metageneration")),t.push(new $("name","fullPath",!0));var e=new $("name");e.xform=function(t,e){return function(t){return!P(t)||t.length<2?t:G(t)}(e)},t.push(e);var n=new $("size");return n.xform=function(t,e){return I(e)?Number(e):e},t.push(n),t.push(new $("timeCreated")),t.push(new $("updated")),t.push(new $("md5Hash",null,!0)),t.push(new $("cacheControl",null,!0)),t.push(new $("contentDisposition",null,!0)),t.push(new $("contentEncoding",null,!0)),t.push(new $("contentLanguage",null,!0)),t.push(new $("contentType",null,!0)),t.push(new $("metadata","customMetadata",!0)),X=t}()},t.prototype.child=function(t){gt("child",[_t()],arguments);var e=W(this.location.path,t),n=new z(this.location.bucket,e);return this.newRef(this.authWrapper,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this.location.path);if(null===t)return null;var e=new z(this.location.bucket,t);return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new z(this.location.bucket,"");return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return G(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),gt("put",[bt(),wt(!0)],arguments),this.throwIfRoot_("put"),new It(this,this.authWrapper,this.location,this.mappings(),new H(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=g.RAW),gt("putString",[_t(),_t(y,!0),wt(!0)],arguments),this.throwIfRoot_("putString");var i=b(e,t),r=Object.assign({},n);return!I(r.contentType)&&I(i.contentType)&&(r.contentType=i.contentType),new It(this,this.authWrapper,this.location,this.mappings(),new H(i.data,!0),r)},t.prototype.delete=function(){var t=this;return gt("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(e){var n=ht(t.authWrapper,t.location);
1return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){gt("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return n=this,r=function(){var n,i,r;return function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return[4,this.list({pageToken:e})];case 1:return n=o.sent(),(i=t.prefixes).push.apply(i,n.prefixes),(r=t.items).push.apply(r,n.items),null==n.nextPageToken?[3,3]:[4,this.listAllHelper(t,n.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}
1))},new((i=void 0)||(i=Promise))((function(t,e){function o(t){try{s(r.next(t))}catch(n){e(n)}}function a(t){try{s(r.throw(t))}catch(n){e(n)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(o,a)}s((r=r.apply(n,[])).next())}));var n,i,r},t.prototype.list=function(t){gt("list",[kt(!0)],arguments);var e=this;return this.authWrapper.getAuthToken().then((function(n){var i=t||{},r=ut(e.authWrapper,e.location,"/",i.pageToken,i.maxResults);return e.authWrapper.makeRequest(r,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return gt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(e){var n=st(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return gt("updateMetadata",[wt()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var i=ct(e.authWrapper,e.location,t,e.mappings());return e.authWrapper.makeRequest(i,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return gt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(e){var n=lt(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw f();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new s("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(t)},t}(),Tt=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}(),Ot=function(){function t(){this.map=new Map,this.id=-9007199254740991}return t.prototype.addRequest=function(t){var e=this,n=this.id;this.id++,this.map.set(n,t),t.getPromise().then((function(){return e.map.delete(n)}),(function(){return e.map.delete(n)}))},t.prototype.clear=function(){this.map.forEach((function(t){t&&t.cancel(!0)})),this.map.clear()},t}(),Dt=function(){function t(e,n,i,r,o,a){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var u=this.app_.options;I(u)&&(this.bucket_=t.extractBucket_(u),this.appId_=null!==(s=u.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=i,this.requestMaker_=r,this.pool_=a,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new Ot}return t.extractBucket_=function(t){var e=t.storageBucket||null;return null==e?null:z.makeFromBucketSpec(e).bucket},t.prototype.getAuthToken=function(){var t=this.authProvider_.getImmediate({optional:!0});return t?t.getToken().then((function(t){return null!==t?t.accessToken:null}),(function(){return null})):Promise.resolve(null)},t.prototype.bucket=function(){if(this.deleted_)throw p();return this.bucket_},t.prototype.service=function(){return this.service_},t.prototype.makeStorageReference=function(t){return this.storageRefMaker_(this,t)},t.prototype.makeRequest=function(t,e){if(this.deleted_)return new Tt(p());var n=this.requestMaker_(t,this.appId_,e,this.pool_);return this.requestMap_.addRequest(n),n},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},t.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},t.prototype.setMaxUploadRetryTime=function(t){this.maxUploadRetryTime_=t},t.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},t.prototype.setMaxOperationRetryTime=function(t){this.maxOperationRetryTime_=t},t}(),Pt=function(){function t(t,e,n,i,r,o,a,s,u,l,c){var h=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=i,this.successCodes_=r.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c,this.promise_=new Promise((function(t,e){h.resolve_=t,h.reject_=e,h.start_()}
1))}return t.prototype.start_=function(){var t=this;function e(e,n){var i,r=t.resolve_,o=t.reject_,a=n.xhr;if(n.wasSuccessCode)try{var u=t.callback_(a,a.getResponseText());A(u)?r(u):r()}catch(h){o(h)}else null!==a?((i=l()).setServerResponseProp(a.getResponseText()),o(t.errorCallback_?t.errorCallback_(a,i):i)):o(i=n.canceled?t.appDelete_?p():c():new s("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new Rt(!1,null,!0)):this.backoffId_=function(e,n,i){var r=1,a=null,s=!1,u=0;function l(){return 2===u}var c=!1;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];c||(c=!0,n.apply(null,t))}function f(e){a=setTimeout((function(){a=null,function(e,n){if(n)e(!1,new Rt(!1,null,!0));else{var i=t.pool_.createXhrIo();t.pendingXhr_=i,null!==t.progressCallback_&&i.addUploadProgressListener(r),i.send(t.url_,t.method_,t.body_,t.headers_).then((function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(r),t.pendingXhr_=null;var i=(n=n).getErrorCode()===L.NO_ERROR,o=n.getStatus();if(i&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new Rt(a,n))}else{var s=n.getErrorCode()===L.ABORT;e(!1,new Rt(!1,null,s))}}))}function r(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}}(d,l())}),e)}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c)if(t)h.call.apply(h,o([null,t],e));else{var i,a=l()||s;a?h.call.apply(h,o([null,t],e)):(r<64&&(r*=2),1===u?(u=2,i=0):i=1e3*(r+Math.random()),f(i))}}var p=!1;function m(t){p||(p=!0,c||(null!==a?(t||(u=2),clearTimeout(a),f(0)):t||(u=1)))}return f(0),setTimeout((function(){s=!0,m(!0)}),i),m}(0,e,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=-1!==[408,429].indexOf(t),i=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||i},t}(),Rt=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n};function Nt(t,e,n,i){var o=Y(t.urlParams),a=t.url+o,s=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(s,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(s,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==r.a?r.a.SDK_VERSION:"AppManager")}(s),new Pt(a,t.method,s,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i)}var Mt=function(){function t(t,e,n,i){if(this.bucket_=null,this.authWrapper_=new Dt(t,e,(function(t,e){return new At(t,e)}),Nt,this,n),this.app_=t,null!=i)this.bucket_=z.makeFromBucketSpec(i);else{var r=this.authWrapper_.bucket();null!=r&&(this.bucket_=new z(r,""))}this.internals_=new Ft(this)}return t.prototype.ref=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(gt("ref",[_t(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new At(this.authWrapper_,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{z.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return gt("refFromURL",[_t(e,!1)],arguments),new At(this.authWrapper_,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){gt("setMaxUploadRetryTime",[Ct()],arguments),this.authWrapper_.setMaxUploadRetryTime(t)},t.prototype.setMaxOperationRetryTime=function(t){gt("setMaxOperationRetryTime",[Ct()],arguments),this.authWrapper_.setMaxOperationRetryTime(t)},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),t}(),Ft=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},t}();function Lt(t,e){var n=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal");return new Mt(n,i,new B,e)}function jt(t){var e={TaskState:S,TaskEvent:x,StringFormat:g,Storage:Mt,Reference:At};t.INTERNAL.registerComponent(new a.Component("storage",Lt,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.3.34")}jt(r.a)},Jk8n:function(t,e,n){"use strict";
1e.__esModule=!0;var i=function(){var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,
vendor: 4,983 bytes, line 1
1EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:return o[s-1];case 2:this.$=i.prepareProgram(o[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=o[s];break;case 9:this.$={type:"CommentStatement",value:i.stripComment(o[s]),strip:i.stripFlags(o[s],o[s]),loc:i.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[s],value:o[s],loc:i.locInfo(this._$)};break;case 11:this.$=i.prepareRawBlock(o[s-2],o[s-1],o[s],this._$);break;case 12:this.$={path:o[s-3],params:o[s-2],hash:o[s-1]};break;case 13:this.$=i.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!1,this._$);break;case 14:this.$=i.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!0,this._$);break;case 15:this.$={open:o[s-5],path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:i.stripFlags(o[s-5],o[s])};break;case 16:case 17:this.$={path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:i.stripFlags(o[s-5],o[s])};break;case 18:this.$={strip:i.stripFlags(o[s-1],o[s-1]),program:o[s]};break;case 19:var u=i.prepareBlock(o[s-2],o[s-1],o[s],o[s],!1,this._$),l=i.prepareProgram([u],o[s-1].loc);l.chained=!0,this.$={strip:o[s-2].strip,program:l,chain:!0};break;case 20:this.$=o[s];break;case 21:this.$={path:o[s-1],strip:i.stripFlags(o[s-2],o[s])};break;case 22:case 23:this.$=i.prepareMustache(o[s-3],o[s-2],o[s-1],o[s-4],i.stripFlags(o[s-4],o[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[s-3],params:o[s-2],hash:o[s-1],indent:"",strip:i.stripFlags(o[s-4],o[s]),loc:i.locInfo(this._$)};break;case 25:this.$=i.preparePartialBlock(o[s-2],o[s-1],o[s],this._$);break;case 26:this.$={path:o[s-3],params:o[s-2],hash:o[s-1],strip:i.stripFlags(o[s-4],o[s])};break;case 27:case 28:this.$=o[s];break;case 29:this.$={type:"SubExpression",path:o[s-3],params:o[s-2],hash:o[s-1],loc:i.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[s],loc:i.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:i.id(o[s-2]),value:o[s],loc:i.locInfo(this._$)};break;case 32:this.$=i.id(o[s-1]);break;case 33:case 34:this.$=o[s];break;case 35:this.$={type:"StringLiteral",value:o[s],original:o[s],loc:i.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[s]),original:Number(o[s]),loc:i.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===o[s],original:"true"===o[s],loc:i.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:i.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:i.locInfo(this._$)};break;case 40:case 41:this.$=o[s];break;case 42:this.$=i.preparePath(!0,o[s],this._$);break;case 43:this.$=i.preparePath(!1,o[s],this._$);break;case 44:o[s-2].push({part:i.id(o[s]),original:o[s],separator:o[s-1]}),this.$=o[s-2];break;case 45:this.$=[{part:i.id(o[s]),original:o[s]}];break;case 46:this.$=[];break;case 47:o[s-1].push(o[s]);break;case 48:this.$=[];break;case 49:o[s-1].push(o[s]);break;case 50:this.$=[];break;case 51:o[s-1].push(o[s]);break;case 58:this.$=[];break;case 59:o[s-1].push(o[s]);break;case 64:this.$=[];break;case 65:o[s-1].push(o[s]);break;case 70:this.$=[];break;case 71:o[s-1].push(o[s]);break;case 78:this.$=[];break;case 79:o[s-1].push(o[s]);break;case 82:this.$=[];break;case 83:o[s-1].push(o[s]);break;case 86:this.$=[];break;case 87:o[s-1].push(o[s]);break;case 90:this.$=[];break;case 91:o[s-1].push(o[s]);break;case 94:this.$=[];break;case 95:o[s-1].push(o[s]);break;case 98:this.$=[o[s]];break;case 99:o[s-1].push(o[s]);break;case 100:this.$=[o[s]];break;case 101:o[s-1].push(o[s
vendor: 11,531 bytes, line 1
1])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=
1[0],n=[null],i=[],r=this.table,o="",a=0,s=0,u=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;i.push(l);var c=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,f,d,p,m,v,g,y,_,b={};;){if(this.defaultActions[d=e[e.length-1]]?p=this.defaultActions[d]:(null==h&&(_=void 0,"number"!=typeof(_=this.lexer.lex()||1)&&(_=this.symbols_[_]||_),h=_),p=r[d]&&r[d][h]),void 0===p||!p.length||!p[0]){var w="";if(!u){for(v in y=[],r[d])this.terminals_[v]&&v>2&&y.push("'"+this.terminals_[v]+"'");w=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:l,expected:y})}}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+h);switch(p[0]){case 1:e.push(h),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),e.push(p[1]),h=null,f?(h=f,f=null):(s=this.lexer.yyleng,o=this.lexer.yytext,a=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(b.$=n[n.length-(g=this.productions_[p[1]][1])],b._$={first_line:i[i.length-(g||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(g||1)].first_column,last_column:i[i.length-1].last_column},c&&(b._$.range=[i[i.length-(g||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.call(b,o,s,a,this.yy,p[1],n,i)))return m;g&&(e=e.slice(0,-1*g*2),n=n.slice(0,-1*g),i=i.slice(0,-1*g)),e.push(this.productions_[p[1]][0]),n.push(b.$),i.push(b._$),e.push(r[e[e.length-2]][e[e.length-1]]);break;case 3:return!0}}return!0}};function e(){this.yy={}}return t.lexer={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}
vendor: 5,821 bytes, line 1
1,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,i,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;a<o.length&&(!(n=this._input.match(this.rules[o[a]]))||e&&!(n[0].length>e[0].length)||(e=n,i=a,this.options.flex));a++);return e?((r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,i){function r(t,n){return e.yytext=e.yytext.substring(t,e.yyleng-n+t)}switch(n){case 0:if("\\\\"===e.yytext.slice(-2)?(r(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(r(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(r(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=r(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=r(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}},e.prototype=t,t.Parser=e,new e}();
1e.default=i,t.exports=e.default},L8TE:function(t,e,n){"use strict";e.__esModule=!0;var i,r=(i=n("V4YE"))&&i.__esModule?i:{default:i};function o(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function a(t,e,n){void 0===e&&(e=t.length);var i=t[e-1];return i?"ContentStatement"===i.type?(t[e-2]||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(i.original):void 0:n}function s(t,e,n){void 0===e&&(e=-1);var i=t[e+1];return i?"ContentStatement"===i.type?(t[e+2]||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(i.original):void 0:n}function u(t,e,n){var i=t[null==e?0:e+1];if(i&&"ContentStatement"===i.type&&(n||!i.rightStripped)){var r=i.value;i.value=i.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),i.rightStripped=i.value!==r}}function l(t,e,n){var i=t[null==e?t.length-1:e-1];if(i&&"ContentStatement"===i.type&&(n||!i.leftStripped)){var r=i.value;return i.value=i.value.replace(n?/\s+$/:/[ \t]+$/,""),i.leftStripped=i.value!==r,i.leftStripped}}(o.prototype=new r.default).Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var i=t.body,r=0,o=i.length;r<o;r++){var c=i[r],h=this.accept(c);if(h){var f=a(i,r,n),d=s(i,r,n),p=h.openStandalone&&f,m=h.closeStandalone&&d,v=h.inlineStandalone&&f&&d;h.close&&u(i,r,!0),h.open&&l(i,r,!0),e&&v&&(u(i,r),l(i,r)&&"PartialStatement"===c.type&&(c.indent=/([ \t]+$)/.exec(i[r-1].original)[1])),e&&p&&(u((c.program||c.inverse).body),l(i,r)),e&&m&&(u(i,r),l((c.inverse||c.program).body))}}return t},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,n=t.program&&t.inverse,i=n,r=n;if(n&&n.chained)for(i=n.body[0].program;r.chained;)r=r.body[r.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:s(e.body),closeStandalone:a((i||e).body)};if(t.openStrip.close&&u(e.body,null,!0),n){var c=t.inverseStrip;c.open&&l(e.body,null,!0),c.close&&u(i.body,null,!0),t.closeStrip.open&&l(r.body,null,!0),!this.options.ignoreStandalone&&a(e.body)&&s(i.body)&&(l(e.body),u(i.body))}else t.closeStrip.open&&l(e.body,null,!0);return o},o.prototype.Decorator=o.prototype.MustacheStatement=function(t){return t.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}},e.default=o,t.exports=e.default},LDpk:function(t,e,n){"use strict";e.__esModule=!0;var i,r=(i=n("0KrK"))&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},t.exports=e.default},ML8A:function(t,e,n){"use strict";e.__esModule=!0,e.wrapHelper=function(t,e){return"function"!=typeof t?t:function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)}}},MtdZ:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Compiler=u,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0),e.compat&&(e.useDepths=!0);var i=n.parse(t,e),o=(new n.Compiler).compile(i,e);return(new n.JavaScriptCompiler).compile(o,e)},e.compile=function(t,e,n){if(void 0===e&&(e={}),null==t||"string"!=typeof t&&"Program"!==t.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=o.extend({},e))||(e.data=!0),e.compat&&(e.useDepths=!0);var i=void 0;function a(){var i=n.parse(t,e),r=(new n.Compiler).compile(i,e),o=(new n.JavaScriptCompiler).compile(r,e,void 0,!0);return n.template(o)}function s(t,e){return i||(i=a()),i.call(this,t,e)}return s._setup=function(t){return i||(i=a()),i._setup(t)},s._child=function(t,e,n,r){return i||(i=a()),i._child(t,e,n,r)},s};var r=i(n("0KrK")),o=n("XVEb"),a=i(n("QSAZ")),s=[].slice;function u(){}function l(t,e){if(t===e)return!0;
vendor: 3,595 bytes, line 1
1if(o.isArray(t)&&o.isArray(e)&&t.length===e.length){for(var n=0;n<t.length;n++)if(!l(t[n],e[n]))return!1;return!0}}function c(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}u.prototype={compiler:u,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var n=0;n<e;n++){var i=this.opcodes[n],r=t.opcodes[n];if(i.opcode!==r.opcode||!l(i.args,r.args))return!1}for(e=this.children.length,n=0;n<e;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},guid:0,compile:function(t,e){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds,e.blockParams=e.blockParams||[],e.knownHelpers=o.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},e.knownHelpers),this.accept(t)},compileProgram:function(t){var e=(new this.compiler).compile(t,this.options),n=this.guid++;return this.usePartial=this.usePartial||e.usePartial,this.children[n]=e,this.useDepths=this.useDepths||e.useDepths,n},accept:function(t){if(!this[t.type])throw new r.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var e=this[t.type](t);return this.sourceNode.shift(),e},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var e=t.body,n=e.length,i=0;i<n;i++)this.accept(e[i]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){c(t);var e=t.program,n=t.inverse;e=e&&this.compileProgram(e),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);"helper"===i?this.helperSexpr(t,e,n):"simple"===i?(this.simpleSexpr(t),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,e,n),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var e=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,e,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},PartialStatement:function(t){this.usePartial=!0;var e=t.program;e&&(e=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new r.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o="SubExpression"===t.name.type;o&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),this.opcode(t.escaped&&!this.options.noEscape?"appendEscaped":"append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){c(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var i=t.path,r=i.parts[0],o=null!=e||null!=n;this.opcode("getContext",i.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",r,o)}
vendor: 3,703 bytes, line 1
1,simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var i=this.setupFullMustacheParams(t,e,n),o=t.path,s=o.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",i.length,s);else{if(this.options.knownHelpersOnly)throw new r.default("You specified knownHelpersOnly, but used the unknown helper "+s,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,a.default.helpers.simpleId(o))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=a.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(e);i?this.opcode("lookupBlockParam",i,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,i=e.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(e[n].value);for(;n--;)this.opcode("assignToHash",e[n].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:s.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var e=a.default.helpers.simpleId(t.path),n=e&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&a.default.helpers.helperExpression(t),r=!n&&(i||e);if(r&&!i){var o=this.options;o.knownHelpers[t.path.parts[0]]?i=!0:o.knownHelpersOnly&&(r=!1)}return i?"helper":r?"ambiguous":"simple"},pushParams:function(t){for(var e=0,n=t.length;e<n;e++)this.pushParam(t[e])},pushParam:function(t){var e=null!=t.value?t.value:t.original||"";if(this.stringParams)e.replace&&(e=e.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",e,t.type),"SubExpression"===t.type&&this.accept(t);else{if(this.trackIds){var n=void 0;if(!t.parts||a.default.helpers.scopedId(t)||t.depth||(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else(e=t.original||e).replace&&(e=e.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,e)}this.accept(t)}},setupFullMustacheParams:function(t,e,n,i){var r=t.params;return this.pushParams(r),this.opcode("pushProgram",e),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),r},blockParamIndex:function(t){for(var e=0,n=this.options.blockParams.length;e<n;e++){var i=this.options.blockParams[e],r=i&&o.indexOf(i,t);if(i&&r>=0)return[e,r]}}}},N8Ls:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
vendor: 5,844 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},NCTj:function(t,e){!function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialProgress=t,t.prototype.Constant_={}
1,t.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},t.prototype.setProgress=t.prototype.setProgress=function(t){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=t+"%")},t.prototype.setBuffer=t.prototype.setBuffer=function(t){this.bufferbar_.style.width=t+"%",this.auxbar_.style.width=100-t+"%"},t.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")}},componentHandler.register({constructor:t,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})}()},PKsm:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",(function(){for(var e=[void 0],n=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)e.push(arguments[i]);var r=1;null!=n.hash.level?r=n.hash.level:n.data&&null!=n.data.level&&(r=n.data.level),e[0]=r,t.log.apply(t,e)}))},t.exports=e.default},Pa2V:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},PbUJ:function(t,e){!function(){"use strict";var t=function(t){this.element_=t,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window.MaterialTextfield=t,t.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"}
1,t.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"},t.prototype.onKeyDown_=function(t){var e=t.target.value.split("\n").length;13===t.keyCode&&e>=this.maxRows&&t.preventDefault()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onReset_=function(t){this.updateClasses_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},t.prototype.checkDisabled=t.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkFocus=t.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.checkValidity=t.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))},t.prototype.checkDirty=t.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)},t.prototype.disable=t.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},t.prototype.enable=t.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},t.prototype.change=t.prototype.change=function(t){this.input_.value=t||"",this.updateClasses_()},t.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())}},componentHandler.register({constructor:t,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})}()},QQ50:function(t,e){t.exports=["docs.google.com"]},QSAZ:function(t,e,n){"use strict";e.__esModule=!0;var i={helpers:{helperExpression:function(t){return"SubExpression"===t.type||("MustacheStatement"===t.type||"BlockStatement"===t.type)&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return 1===t.parts.length&&!i.helpers.scopedId(t)&&!t.depth}}};e.default=i,t.exports=e.default},"T9/7":function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=c;var r=n("XVEb"),o=i(n("0KrK")),a=n("svB4"),s=n("3/2H"),u=i(n("UImk")),l=n("hQOw");function c(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}e.VERSION="4.7.7",e.COMPILER_REVISION=8,e.LAST_COMPATIBLE_COMPILER_REVISION=7,e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">
1= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},c.prototype={constructor:c,logger:u.default,log:u.default.log,registerHelper:function(t,e){if("[object Object]"===r.toString.call(t)){if(e)throw new o.default("Arg not supported with multiple helpers");r.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===r.toString.call(t))r.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===r.toString.call(t)){if(e)throw new o.default("Arg not supported with multiple decorators");r.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}},e.log=u.default.log,e.createFrame=r.createFrame,e.logger=u.default},UH1A:function(t,e,n){!function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function n(t){return new Promise((function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function i(t,e,i){var r,o=new Promise((function(o,a){n(r=t[e].apply(t,i)).then(o,a)}));return o.request=r,o}function r(t,e,n){var r=i(t,e,n);return r.then((function(t){if(t)return new c(t,r.request)}))}function o(t,e,n){n.forEach((function(n){Object.defineProperty(t.prototype,n,{get:function(){return this[e][n]},set:function(t){this[e][n]=t}})}))}function a(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return i(this[e],r,arguments)})}))}function s(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return this[e][i].apply(this[e],arguments)})}))}function u(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return r(this[e],i,arguments)})}))}function l(t){this._index=t}function c(t,e){this._cursor=t,this._request=e}function h(t){this._store=t}function f(t){this._tx=t,this.complete=new Promise((function(e,n){t.oncomplete=function(){e()},t.onerror=function(){n(t.error)},t.onabort=function(){n(t.error)}}))}function d(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new f(n)}function p(t){this._db=t}o(l,"_index",["name","keyPath","multiEntry","unique"]),a(l,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(l,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),o(c,"_cursor",["direction","key","primaryKey","value"]),a(c,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(c.prototype[t]=function(){var e=this,i=arguments;return Promise.resolve().then((function(){return e._cursor[t].apply(e._cursor,i),n(e._request).then((function(t){if(t)return new c(t,e._request)}))}))})})),h.prototype.createIndex=function(){return new l(this._store.createIndex.apply(this._store,arguments))},h.prototype.index=function(){return new l(this._store.index.apply(this._store,arguments))},o(h,"_store",["name","keyPath","indexNames","autoIncrement"]),a(h,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(h,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(h,"_store",IDBObjectStore,["deleteIndex"]),f.prototype.objectStore=function(){return new h(this._tx.objectStore.apply(this._tx,arguments))},o(f,"_tx",["objectStoreNames","mode"]),s(f,"_tx",IDBTransaction,["abort"]),d.prototype.createObjectStore=function(){return new h(this._db.createObjectStore.apply(this._db,arguments))},o(d,"_db",["name","version","objectStoreNames"]),s(d,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new f(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach((function(t){[h,l].forEach((function(n){t in n.prototype&&(n.prototype[t.replace("open","iterate")]=function(){var n=e(arguments),i=n[n.length-1],r=this._store||this._index,o=r[t].apply(r,n.slice(0,-1));o.onsuccess=function(){i(o.result)}})}))})),[l,h].forEach((function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var n=this,i=[];return new Promise((function(r){n.iterateCursor(t,(function(t){t?(i.push(t.value),void 0===e||i.length!=e?t.continue():r(i)):r(i)}))}))})})),t.openDb=function(t,e,n){var r=i(indexedDB,"open",[t,e]),o=r.request;return o&&(o.onupgradeneeded=function(t){n&&n(new d(o.result,t.oldVersion,o.transaction))}),r.then((function(t){return new p(t)}))},t.deleteDb=function(t){return i(indexedDB,"deleteDatabase",[t])},Object.defineProperty(t,"__esModule",{value:!0})}(e)},UImk:function(t,e,n){"use strict";e.__esModule=!0;var i=n("XVEb"),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=i.indexOf(r.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=r.lookupLevel(t),"undefined"!=typeof console&&r.lookupLevel(r.level)<=t){var e=r.methodMap[t];console[e]||(e="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[e].apply(console,i)}}};e.default=r,t.exports=e.default},Ua55:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i,a=n("Pa2V"),s=n("82Ps"),u=n("Gjt8"),l=n("WRB3"),c=function(){function t(t){this.domStorage_=t,this.prefix_="firebase:"}return t.prototype.set=function(t,e){null==e?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),s.stringify(e))},t.prototype.get=function(t){var e=this.domStorage_.getItem(this.prefixedName_(t));return null==e?null:s.jsonEval(e)},t.prototype.remove=function(t){this.domStorage_.removeItem(this.prefixedName_(t))},t.prototype.prefixedName_=function(t){return this.prefix_+t},t.prototype.toString=function(){return this.domStorage_.toString()},t}(),h=function(){function t(){this.cache_={},this.isInMemoryStorage=!0}return t.prototype.set=function(t,e){null==e?delete this.cache_[t]:this.cache_[t]=e},t.prototype.get=function(t){return s.contains(this.cache_,t)?this.cache_[t]:null},t.prototype.remove=function(t){delete this.cache_[t]},t}(),f=function(t){try{if("undefined"!=typeof window&&void 0!==window[t]){var e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new c(e)}}catch(n){}return new h},d=f("localStorage"),p=f("sessionStorage"),m=new u.Logger("@firebase/database"),v=(r=1,function(){return r++}),g=function(t){var e=s.stringToByteArray(t),n=new s.Sha1;n.update(e);var i=n.digest();return s.base64.encodeByteArray(i)},y=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var i="",r=0;r<e.length;r++){var o=e[r];Array.isArray(o)||o&&"object"==typeof o&&"number"==typeof o.length?i+=t.apply(null,o):i+="object"==typeof o?s.stringify(o):o,i+=" "}return i},_=null,b=!0,w=function(t,e){s.assert(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?(m.logLevel=u.LogLevel.VERBOSE,_=m.log.bind(m),e&&p.set("logging_enabled",!0)):"function"==typeof t?_=t:(_=null,p.remove("logging_enabled"))},k=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!0===b&&(b=!1,null===_&&!0===p.get("logging_enabled")&&w(!0)),_){var n=y.apply(null,t);_(n)}},C=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];k.apply(void 0,a.__spread([t],e))}},x=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE INTERNAL ERROR: "+y.apply(void 0,a.__spread(t));m.error(n)},S=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE FATAL ERROR: "+y.apply(void 0,a.__spread(t));throw m.error(n),new Error(n)},E=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE WARNING: "+y.apply(void 0,a.__spread(t));m.warn(n)},I=function(t){return"number"==typeof t&&(t!=t||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY)},A="[MIN_NAME]",T="[MAX_NAME]",O=function(t,e){if(t===e)return 0;if(t===A||e===T)return-1;if(e===A||t===T)return 1;var n=Y(t),i=Y(e);return null!==n?null!==i?n-i==0?t.length-e.length:n-i:-1:null!==i?1:t<e?-1:1},D=function(t,e){return t===e?0:t<e?-1:1},P=function(t,e){if(e&&t in e)return e[t];throw new Error("Missing required key ("+t+") in object: "+s.stringify(e))},R=function t(e){if("object"!=typeof e||null===e)return s.stringify(e);var n=[];for(var i in e)n.push(i);n.sort();for(var r="{",o=0;o<n.length;o++)0!==o&&(r+=","),r+=s.stringify(n[o]),r+=":",r+=t(e[n[o]]);return r+"}"},N=function(t,e){var n=t.length;if(n<=e)return[t];for(var i=[],r=0;r<n;r+=e)i.push(t.substring(r,r+e>n?n:r+e));return i};function M(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}var F,L,j,B,V,U,H,z,q,W,G=function(t){var e,n,i,r,o;s.assert(!I(t),"Invalid JSON number"),0===t?(n=0,i=0,e=1/t==-1/0?1:0):(e=t<0,(t=Math.abs(t))>=Math.pow(2,-1022)?(n=(r=Math.min(Math.floor(Math.log(t)/Math.LN2),1023))+1023,i=Math.round(t*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,i=Math.round(t/Math.pow(2,-1074))));var a=[];for(o=52;o;o-=1)a.push(i%2?1:0),i=Math.floor(i/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(e?1:0),a.reverse();var u=a.join(""),l="";for(o=0;o<64;o+=8){var c=parseInt(u.substr(o,8),2).toString(16);1===c.length&&(c="0"+c),l+=c}return l.toLowerCase()},K=new RegExp("^-?(0*)\\d{1,10}$"),Y=function(t){if(K.test(t)){var e=Number(t);if(e>=-2147483648&&e<=2147483647)return e}return null},Q=function(t){try{t()}catch(e){setTimeout((function(){throw E("Exception was thrown by user callback.",e.stack||""),e}),Math.floor(0))}},$=function(t,e){var n=setTimeout(t,e);return"object"==typeof n&&n.unref&&n.unref(),n},X=function(){function t(t,e){if(void 0===e){this.pieces_=t.split("/");for(var n=0,i=0;i<this.pieces_.length;i++)this.pieces_[i].length>0&&(this.pieces_[n]=this.pieces_[i],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=e}return Object.defineProperty(t,"Empty",{get:function(){return new t("")},enumerable:!0,configurable:!0}),t.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},t.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},t.prototype.popFront=function(){var e=this.pieceNum_;return e<this.pieces_.length&&e++,new t(this.pieces_,e)},t.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},t.prototype.toString=function(){for(var t="",e=this.pieceNum_;e<this.pieces_.length;e++)""!==this.pieces_[e]&&(t+="/"+this.pieces_[e]);return t||"/"},t.prototype.toUrlEncodedString=function(){for(var t="",e=this.pieceNum_;e<this.pieces_.length;e++)""!==this.pieces_[e]&&(t+="/"+encodeURIComponent(String(this.pieces_[e])));return t||"/"},t.prototype.slice=function(t){return void 0===t&&(t=0),this.pieces_.slice(this.pieceNum_+t)},t.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var e=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)e.push(this.pieces_[n]);return new t(e,0)},t.prototype.child=function(e){for(var n=[],i=this.pieceNum_;i<this.pieces_.length;i++)n.push(this.pieces_[i]);if(e instanceof t)for(i=e.pieceNum_;i<e.pieces_.length;i++)n.push(e.pieces_[i]);else{var r=e.split("/");for(i=0;i<r.length;i++)r[i].length>0&&n.push(r[i])}return new t(n,0)},t.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},t.relativePath=function(e,n){var i=e.getFront(),r=n.getFront();if(null===i)return n;if(i===r)return t.relativePath(e.popFront(),n.popFront());
1throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+e+")")},t.comparePaths=function(t,e){for(var n=t.slice(),i=e.slice(),r=0;r<n.length&&r<i.length;r++){var o=O(n[r],i[r]);if(0!==o)return o}return n.length===i.length?0:n.length<i.length?-1:1},t.prototype.equals=function(t){if(this.getLength()!==t.getLength())return!1;for(var e=this.pieceNum_,n=t.pieceNum_;e<=this.pieces_.length;e++,n++)if(this.pieces_[e]!==t.pieces_[n])return!1;return!0},t.prototype.contains=function(t){var e=this.pieceNum_,n=t.pieceNum_;if(this.getLength()>t.getLength())return!1;for(;e<this.pieces_.length;){if(this.pieces_[e]!==t.pieces_[n])return!1;++e,++n}return!0},t}(),Z=function(){function t(t,e){this.errorPrefix_=e,this.parts_=t.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=s.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(t,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),t.prototype.push=function(t){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(t),this.byteLength_+=s.stringLength(t),this.checkValid_()},t.prototype.pop=function(){var t=this.parts_.pop();this.byteLength_-=s.stringLength(t),this.parts_.length>0&&(this.byteLength_-=1)},t.prototype.checkValid_=function(){if(this.byteLength_>t.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+t.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>t.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+t.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},t.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},t}(),J=function(){function t(t,e,n,i,r,o){void 0===r&&(r=""),void 0===o&&(o=!1),this.secure=e,this.namespace=n,this.webSocketOnly=i,this.persistenceKey=r,this.includeNamespaceInQueryParams=o,this.host=t.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=d.get("host:"+t)||this.host}return t.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},t.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},t.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},t.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},t.prototype.updateHost=function(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&d.set("host:"+this.host,this.internalHost))},t.prototype.connectionURL=function(t,e){var n;if(s.assert("string"==typeof t,"typeof type must == string"),s.assert("object"==typeof e,"typeof params must == object"),"websocket"===t)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==t)throw new Error("Unknown connection type: "+t);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(e.ns=this.namespace);var i=[];return M(e,(function(t,e){i.push(t+"="+e)})),n+i.join("&")},t.prototype.toString=function(){var t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t},t.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},t}(),tt=function(t){var e=et(t),n=e.namespace;return"firebase.com"===e.domain&&S(e.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!==n||"localhost"===e.domain||S("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),e.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&E("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new J(e.host,e.secure,n,"ws"===e.scheme||"wss"===e.scheme,"",n!==e.subdomain),path:new X(e.pathString)}},et=function(t){var e="",n="",i="",r="",o="",s=!0,u="https",l=443;if("string"==typeof t){var c=t.indexOf("//");c>=0&&(u=t.substring(0,c-1),t=t.substring(c+2));var h=t.indexOf("/");-1===h&&(h=t.length);var f=t.indexOf("?");-1===f&&(f=t.length),e=t.substring(0,Math.min(h,f)),h<f&&(r=function(t){for(var e="",n=t.split("/"),i=0;i<n.length;i++)if(n[i].length>0){var r=n[i];try{r=decodeURIComponent(r.replace(/\+/g," "))}catch(o){}e+="/"+r}return e}(t.substring(h,f)));var d=function(t){var e,n,i={};"?"===t.charAt(0)&&(t=t.substring(1));try{for(var r=a.__values(t.split("&")),o=r.next();!o.done;o=r.next()){var s=o.value;if(0!==s.length){var u=s.split("=");
12===u.length?i[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):E("Invalid query segment '"+s+"' in query '"+t+"'")}}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i}(t.substring(Math.min(t.length,f)));(c=e.indexOf(":"))>=0?(s="https"===u||"wss"===u,l=parseInt(e.substring(c+1),10)):c=e.length;var p=e.slice(0,c);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{var m=e.indexOf(".");i=e.substring(0,m).toLowerCase(),n=e.substring(m+1),o=i}"ns"in d&&(o=d.ns)}return{host:e,port:l,domain:n,subdomain:i,secure:s,scheme:u,pathString:r,namespace:o}},nt=/[\[\].#$\/\u0000-\u001F\u007F]/,it=/[\[\].#$\u0000-\u001F\u007F]/,rt=function(t){return"string"==typeof t&&0!==t.length&&!nt.test(t)},ot=function(t){return"string"==typeof t&&0!==t.length&&!it.test(t)},at=function(t){return null===t||"string"==typeof t||"number"==typeof t&&!I(t)||t&&"object"==typeof t&&s.contains(t,".sv")},st=function(t,e,n,i,r){r&&void 0===n||ut(s.errorPrefix(t,e,r),n,i)},ut=function t(e,n,i){var r=i instanceof X?new Z(i,e):i;if(void 0===n)throw new Error(e+"contains undefined "+r.toErrorString());if("function"==typeof n)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+n.toString());if(I(n))throw new Error(e+"contains "+n.toString()+" "+r.toErrorString());if("string"==typeof n&&n.length>10485760/3&&s.stringLength(n)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+n.substring(0,50)+"...')");if(n&&"object"==typeof n){var o=!1,a=!1;if(M(n,(function(n,i){if(".value"===n)o=!0;else if(".priority"!==n&&".sv"!==n&&(a=!0,!rt(n)))throw new Error(e+" contains an invalid key ("+n+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(n),t(e,i,r),r.pop()})),o&&a)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},lt=function(t,e,n,i,r){if(!r||void 0!==n){var o=s.errorPrefix(t,e,r);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var a=[];M(n,(function(t,e){var n=new X(t);if(ut(o,e,i.child(n)),".priority"===n.getBack()&&!at(e))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(n)})),function(t,e){var n,i;for(n=0;n<e.length;n++)for(var r=(i=e[n]).slice(),o=0;o<r.length;o++)if(".priority"===r[o]&&o===r.length-1);else if(!rt(r[o]))throw new Error(t+"contains an invalid key ("+r[o]+") in path "+i.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');e.sort(X.comparePaths);var a=null;for(n=0;n<e.length;n++){if(i=e[n],null!==a&&a.contains(i))throw new Error(t+"contains a path "+a.toString()+" that is ancestor of another path "+i.toString());a=i}}(o,a)}},ct=function(t,e,n,i){if(!i||void 0!==n){if(I(n))throw new Error(s.errorPrefix(t,e,i)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!at(n))throw new Error(s.errorPrefix(t,e,i)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},ht=function(t,e,n,i){if(!i||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(s.errorPrefix(t,e,i)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},ft=function(t,e,n,i){if(!(i&&void 0===n||rt(n)))throw new Error(s.errorPrefix(t,e,i)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},dt=function(t,e,n,i){if(!(i&&void 0===n||ot(n)))throw new Error(s.errorPrefix(t,e,i)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},pt=function(t,e,n,i){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),dt(t,e,n,i)},mt=function(t,e){if(".info"===e.getFront())throw new Error(t+" failed = Can't modify data under /.info/")},vt=function(t,e,n){var i=n.path.toString();if("string"!=typeof n.repoInfo.host||0===n.repoInfo.host.length||!rt(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==i.length&&!function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),ot(t)}(i))throw new Error(s.errorPrefix(t,e,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},gt=function(t,e,n,i){if((!i||void 0!==n)&&"boolean"!=typeof n)throw new Error(s.errorPrefix(t,e,i)+"must be a boolean.")},yt=function(){function t(t,e){this.repo_=t,this.path_=e}return t.prototype.cancel=function(t){s.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),s.validateCallback("OnDisconnect.cancel",1,t,!0);var e=new s.Deferred;return this.repo_.onDisconnectCancel(this.path_,e.wrapCallback(t)),e.promise},t.prototype.remove=function(t){s.validateArgCount("OnDisconnect.remove",0,1,arguments.length),mt("OnDisconnect.remove",this.path_),s.validateCallback("OnDisconnect.remove",1,t,!0);var e=new s.Deferred;return this.repo_.onDisconnectSet(this.path_,null,e.wrapCallback(t)),e.promise},t.prototype.set=function(t,e){s.validateArgCount("OnDisconnect.set",1,2,arguments.length),mt("OnDisconnect.set",this.path_),st("OnDisconnect.set",1,t,this.path_,!1),s.validateCallback("OnDisconnect.set",2,e,!0);var n=new s.Deferred;return this.repo_.onDisconnectSet(this.path_,t,n.wrapCallback(e)),n.promise},t.prototype.setWithPriority=function(t,e,n){s.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),mt("OnDisconnect.setWithPriority",this.path_),st("OnDisconnect.setWithPriority",1,t,this.path_,!1),ct("OnDisconnect.setWithPriority",2,e,!1),s.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var i=new s.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,t,e,i.wrapCallback(n)),i.promise},t.prototype.update=function(t,e){if(s.validateArgCount("OnDisconnect.update",1,2,arguments.length),mt("OnDisconnect.update",this.path_),Array.isArray(t)){for(var n={},i=0;i<t.length;++i)n[""+i]=t[i];t=n,E("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}lt("OnDisconnect.update",1,t,this.path_,!1),s.validateCallback("OnDisconnect.update",2,e,!0);var r=new s.Deferred;return this.repo_.onDisconnectUpdate(this.path_,t,r.wrapCallback(e)),r.promise},t}(),_t=function(){function t(t,e){this.committed=t,this.snapshot=e}return t.prototype.toJSON=function(){return s.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},t}(),bt=(F="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",L=0,j=[],function(t){var e,n=t===L;L=t;var i=new Array(8);for(e=7;e>=0;e--)i[e]=F.charAt(t%64),t=Math.floor(t/64);s.assert(0===t,"Cannot push at time == 0");var r=i.join("");if(n){for(e=11;e>=0&&63===j[e];e--)j[e]=0;j[e]++}else for(e=0;e<12;e++)j[e]=Math.floor(64*Math.random());for(e=0;e<12;e++)r+=F.charAt(j[e]);return s.assert(20===r.length,"nextPushId: Length should be 20."),r}),wt=function(){function t(t,e){this.name=t,this.node=e}return t.Wrap=function(e,n){return new t(e,n)},t}(),kt=function(){function t(){}return t.prototype.getCompare=function(){return this.compare.bind(this)},t.prototype.indexedValueChanged=function(t,e){var n=new wt(A,t),i=new wt(A,e);return 0!==this.compare(n,i)},t.prototype.minPost=function(){return wt.MIN},t}(),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),Object.defineProperty(e,"__EMPTY_NODE",{get:function(){return B},set:function(t){B=t},enumerable:!0,configurable:!0}),e.prototype.compare=function(t,e){return O(t.name,e.name)}
1,e.prototype.isDefinedOn=function(t){throw s.assertionError("KeyIndex.isDefinedOn not expected to be called.")},e.prototype.indexedValueChanged=function(t,e){return!1},e.prototype.minPost=function(){return wt.MIN},e.prototype.maxPost=function(){return new wt(T,B)},e.prototype.makePost=function(t,e){return s.assert("string"==typeof t,"KeyIndex indexValue must always be a string."),new wt(t,B)},e.prototype.toString=function(){return".key"},e}(kt),xt=new Ct,St=function(t){return"number"==typeof t?"number:"+G(t):"string:"+t},Et=function(t){if(t.isLeafNode()){var e=t.val();s.assert("string"==typeof e||"number"==typeof e||"object"==typeof e&&s.contains(e,".sv"),"Priority must be a string or number.")}else s.assert(t===V||t.isEmpty(),"priority of unexpected type.");s.assert(t===V||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},It=function(){function t(e,n){void 0===n&&(n=t.__childrenNodeConstructor.EMPTY_NODE),this.value_=e,this.priorityNode_=n,this.lazyHash_=null,s.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),Et(this.priorityNode_)}return Object.defineProperty(t,"__childrenNodeConstructor",{get:function(){return U},set:function(t){U=t},enumerable:!0,configurable:!0}),t.prototype.isLeafNode=function(){return!0},t.prototype.getPriority=function(){return this.priorityNode_},t.prototype.updatePriority=function(e){return new t(this.value_,e)},t.prototype.getImmediateChild=function(e){return".priority"===e?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.getChild=function(e){return e.isEmpty()?this:".priority"===e.getFront()?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.hasChild=function(){return!1},t.prototype.getPredecessorChildName=function(t,e){return null},t.prototype.updateImmediateChild=function(e,n){return".priority"===e?this.updatePriority(n):n.isEmpty()&&".priority"!==e?this:t.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)},t.prototype.updateChild=function(e,n){var i=e.getFront();return null===i?n:n.isEmpty()&&".priority"!==i?this:(s.assert(".priority"!==i||1===e.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(i,t.__childrenNodeConstructor.EMPTY_NODE.updateChild(e.popFront(),n)))},t.prototype.isEmpty=function(){return!1},t.prototype.numChildren=function(){return 0},t.prototype.forEachChild=function(t,e){return!1},t.prototype.val=function(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.priorityNode_.isEmpty()||(t+="priority:"+St(this.priorityNode_.val())+":");var e=typeof this.value_;t+=e+":",t+="number"===e?G(this.value_):this.value_,this.lazyHash_=g(t)}return this.lazyHash_},t.prototype.getValue=function(){return this.value_},t.prototype.compareTo=function(e){return e===t.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof t.__childrenNodeConstructor?-1:(s.assert(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))},t.prototype.compareToLeafNode_=function(e){var n=typeof e.value_,i=typeof this.value_,r=t.VALUE_TYPE_ORDER.indexOf(n),o=t.VALUE_TYPE_ORDER.indexOf(i);return s.assert(r>=0,"Unknown leaf type: "+n),s.assert(o>=0,"Unknown leaf type: "+i),r===o?"object"===i?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:o-r},t.prototype.withIndex=function(){return this},t.prototype.isIndexed=function(){return!0},t.prototype.equals=function(t){return t===this||!!t.isLeafNode()&&this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)},t.VALUE_TYPE_ORDER=["object","boolean","number","string"],t}(),At=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.compare=function(t,e){var n=t.node.getPriority(),i=e.node.getPriority(),r=n.compareTo(i);return 0===r?O(t.name,e.name):r},e.prototype.isDefinedOn=function(t){return!t.getPriority().isEmpty()},e.prototype.indexedValueChanged=function(t,e){return!t.getPriority().equals(e.getPriority())},e.prototype.minPost=function(){return wt.MIN},e.prototype.maxPost=function(){return new wt(T,new It("[PRIORITY-POST]",z))},e.prototype.makePost=function(t,e){var n=H(t);return new wt(e,new It("[PRIORITY-POST]",n))},e.prototype.toString=function(){return".priority"},e}(kt)),Tt=function(){function t(t,e,n,i,r){void 0===r&&(r=null),this.isReverse_=i,this.resultGenerator_=r,this.nodeStack_=[];for(var o=1;!t.isEmpty();)if(t=t,o=e?n(t.key,e):1,i&&(o*=-1),o<0)t=this.isReverse_?t.left:t.right;else{if(0===o){this.nodeStack_.push(t);break}this.nodeStack_.push(t),t=this.isReverse_?t.right:t.left}}return t.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var t,e=this.nodeStack_.pop();if(t=this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value},this.isReverse_)for(e=e.left;!e.isEmpty();)this.nodeStack_.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack_.push(e),e=e.left;return t},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 this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}},t}(),Ot=function(){function t(e,n,i,r,o){this.key=e,this.value=n,this.color=null!=i?i:t.RED,this.left=null!=r?r:Pt.EMPTY_NODE,this.right=null!=o?o:Pt.EMPTY_NODE}return t.prototype.copy=function(e,n,i,r,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
1null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)},t.prototype.count=function(){return this.left.count()+1+this.right.count()},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 i=this,r=n(t,i.key);return(i=r<0?i.copy(null,null,null,i.left.insert(t,e,n),null):0===r?i.copy(null,e,null,null,null):i.copy(null,null,null,null,i.right.insert(t,e,n))).fixUp_()},t.prototype.removeMin_=function(){if(this.left.isEmpty())return Pt.EMPTY_NODE;var t=this;return t.left.isRed_()||t.left.left.isRed_()||(t=t.moveRedLeft_()),(t=t.copy(null,null,null,t.left.removeMin_(),null)).fixUp_()},t.prototype.remove=function(t,e){var n,i;if(e(t,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(t,e),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===e(t,n.key)){if(n.right.isEmpty())return Pt.EMPTY_NODE;i=n.right.min_(),n=n.copy(i.key,i.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(t,e))}return n.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.count()+1},t.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
1if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)},t.RED=!0,t.BLACK=!1,t}(),Dt=function(){function t(){}return t.prototype.copy=function(t,e,n,i,r){return this},t.prototype.insert=function(t,e,n){return new Ot(t,e,null)},t.prototype.remove=function(t,e){return this},t.prototype.count=function(){return 0},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.check_=function(){return 0},t.prototype.isRed_=function(){return!1},t}(),Pt=function(){function t(e,n){void 0===n&&(n=t.EMPTY_NODE),this.comparator_=e,this.root_=n}return t.prototype.insert=function(e,n){return new t(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,Ot.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Ot.BLACK,null,null))},t.prototype.get=function(t){for(var e,n=this.root_;!n.isEmpty();){if(0===(e=this.comparator_(t,n.key)))return n.value;e<0?n=n.left:e>0&&(n=n.right)}return null},t.prototype.getPredecessorKey=function(t){for(var e,n=this.root_,i=null;!n.isEmpty();){if(0===(e=this.comparator_(t,n.key))){if(n.left.isEmpty())return i?i.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}e<0?n=n.left:e>0&&(i=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},t.prototype.isEmpty=function(){return this.root_.isEmpty()},t.prototype.count=function(){return this.root_.count()},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.reverseTraversal=function(t){return this.root_.reverseTraversal(t)},t.prototype.getIterator=function(t){return new Tt(this.root_,null,this.comparator_,!1,t)},t.prototype.getIteratorFrom=function(t,e){return new Tt(this.root_,t,this.comparator_,!1,e)},t.prototype.getReverseIteratorFrom=function(t,e){return new Tt(this.root_,t,this.comparator_,!0,e)},t.prototype.getReverseIterator=function(t){return new Tt(this.root_,null,this.comparator_,!0,t)},t.EMPTY_NODE=new Dt,t}(),Rt=Math.log(2),Nt=function(){function t(t){this.count=parseInt(Math.log(t+1)/Rt,10),this.current_=this.count-1;var e=parseInt(Array(this.count+1).join("1"),2);this.bits_=t+1&e}return t.prototype.nextBitIsOne=function(){var t=!(this.bits_&1<<this.current_);return this.current_--,t},t}(),Mt=function(t,e,n,i){t.sort(e);var r=function(e){for(var i=null,r=null,o=t.length,a=function(e,i){var r=o-e,a=o;o-=e;var u=function e(i,r){var o,a,s=r-i;if(0===s)return null;if(1===s)return o=t[i],a=n?n(o):o,new Ot(a,o.node,Ot.BLACK,null,null);var u=parseInt(s/2,10)+i,l=e(i,u),c=e(u+1,r);return o=t[u],a=n?n(o):o,new Ot(a,o.node,Ot.BLACK,l,c)}(r+1,a),l=t[r],c=n?n(l):l;s(new Ot(c,l.node,i,null,u))},s=function(t){i?(i.left=t,i=t):(r=t,i=t)},u=0;u<e.count;++u){var l=e.nextBitIsOne(),c=Math.pow(2,e.count-(u+1));l?a(c,Ot.BLACK):(a(c,Ot.BLACK),a(c,Ot.RED))}return r}(new Nt(t.length));return new Pt(i||e,r)},Ft={},Lt=function(){function t(t,e){this.indexes_=t,this.indexSet_=e}return Object.defineProperty(t,"Default",{get:function(){return s.assert(Ft&&At,"ChildrenNode.ts has not been loaded"),q=q||new t({".priority":Ft},{".priority":At})},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=s.safeGet(this.indexes_,t);if(!e)throw new Error("No index defined for "+t);return e instanceof Pt?e:null},t.prototype.hasIndex=function(t){return s.contains(this.indexSet_,t.toString())},t.prototype.addIndex=function(e,n){s.assert(e!==xt,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var i,r=[],o=!1,u=n.getIterator(wt.Wrap),l=u.getNext();l;)o=o||e.isDefinedOn(l.node),r.push(l),l=u.getNext();i=o?Mt(r,e.getCompare()):Ft;var c=e.toString(),h=a.__assign({},this.indexSet_);h[c]=e;var f=a.__assign({},this.indexes_);return f[c]=i,new t(f,h)},t.prototype.addToIndexes=function(e,n){var i=this;return new t(s.map(this.indexes_,(function(t,r){var o=s.safeGet(i.indexSet_,r);
1if(s.assert(o,"Missing index implementation for "+r),t===Ft){if(o.isDefinedOn(e.node)){for(var a=[],u=n.getIterator(wt.Wrap),l=u.getNext();l;)l.name!==e.name&&a.push(l),l=u.getNext();return a.push(e),Mt(a,o.getCompare())}return Ft}var c=n.get(e.name),h=t;return c&&(h=h.remove(new wt(e.name,c))),h.insert(e,e.node)})),this.indexSet_)},t.prototype.removeFromIndexes=function(e,n){return new t(s.map(this.indexes_,(function(t){if(t===Ft)return t;var i=n.get(e.name);return i?t.remove(new wt(e.name,i)):t})),this.indexSet_)},t}();function jt(t,e){return O(t.name,e.name)}function Bt(t,e){return O(t,e)}var Vt=function(){function t(t,e,n){this.children_=t,this.priorityNode_=e,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Et(this.priorityNode_),this.children_.isEmpty()&&s.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(t,"EMPTY_NODE",{get:function(){return W||(W=new t(new Pt(Bt),null,Lt.Default))},enumerable:!0,configurable:!0}),t.prototype.isLeafNode=function(){return!1},t.prototype.getPriority=function(){return this.priorityNode_||W},t.prototype.updatePriority=function(e){return this.children_.isEmpty()?this:new t(this.children_,e,this.indexMap_)},t.prototype.getImmediateChild=function(t){if(".priority"===t)return this.getPriority();var e=this.children_.get(t);return null===e?W:e},t.prototype.getChild=function(t){var e=t.getFront();return null===e?this:this.getImmediateChild(e).getChild(t.popFront())},t.prototype.hasChild=function(t){return null!==this.children_.get(t)},t.prototype.updateImmediateChild=function(e,n){if(s.assert(n,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(n);var i=new wt(e,n),r=void 0,o=void 0;n.isEmpty()?(r=this.children_.remove(e),o=this.indexMap_.removeFromIndexes(i,this.children_)):(r=this.children_.insert(e,n),o=this.indexMap_.addToIndexes(i,this.children_));var a=r.isEmpty()?W:this.priorityNode_;return new t(r,a,o)},t.prototype.updateChild=function(t,e){var n=t.getFront();if(null===n)return e;s.assert(".priority"!==t.getFront()||1===t.getLength(),".priority must be the last token in a path");var i=this.getImmediateChild(n).updateChild(t.popFront(),e);return this.updateImmediateChild(n,i)},t.prototype.isEmpty=function(){return this.children_.isEmpty()},t.prototype.numChildren=function(){return this.children_.count()},t.prototype.val=function(e){if(this.isEmpty())return null;var n={},i=0,r=0,o=!0;if(this.forEachChild(At,(function(a,s){n[a]=s.val(e),i++,o&&t.INTEGER_REGEXP_.test(a)?r=Math.max(r,Number(a)):o=!1})),!e&&o&&r<2*i){var a=[];for(var s in n)a[s]=n[s];return a}return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.getPriority().isEmpty()||(t+="priority:"+St(this.getPriority().val())+":"),this.forEachChild(At,(function(e,n){var i=n.hash();""!==i&&(t+=":"+e+":"+i)})),this.lazyHash_=""===t?"":g(t)}return this.lazyHash_},t.prototype.getPredecessorChildName=function(t,e,n){var i=this.resolveIndex_(n);if(i){var r=i.getPredecessorKey(new wt(t,e));return r?r.name:null}return this.children_.getPredecessorKey(t)},t.prototype.getFirstChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.minKey();return n&&n.name}return this.children_.minKey()},t.prototype.getFirstChild=function(t){var e=this.getFirstChildName(t);return e?new wt(e,this.children_.get(e)):null},t.prototype.getLastChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.maxKey();return n&&n.name}return this.children_.maxKey()},t.prototype.getLastChild=function(t){var e=this.getLastChildName(t);return e?new wt(e,this.children_.get(e)):null},t.prototype.forEachChild=function(t,e){var n=this.resolveIndex_(t);return n?n.inorderTraversal((function(t){return e(t.name,t.node)})):this.children_.inorderTraversal(e)},t.prototype.getIterator=function(t){return this.getIteratorFrom(t.minPost(),t)},t.prototype.getIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getIteratorFrom(t,(function(t){return t}));for(var i=this.children_.getIteratorFrom(t.name,wt.Wrap),r=i.peek();null!=r&&e.compare(r,t)<0;)i.getNext(),r=i.peek();return i},t.prototype.getReverseIterator=function(t){return this.getReverseIteratorFrom(t.maxPost(),t)}
1,t.prototype.getReverseIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getReverseIteratorFrom(t,(function(t){return t}));for(var i=this.children_.getReverseIteratorFrom(t.name,wt.Wrap),r=i.peek();null!=r&&e.compare(r,t)>0;)i.getNext(),r=i.peek();return i},t.prototype.compareTo=function(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===Ut?-1:0},t.prototype.withIndex=function(e){if(e===xt||this.indexMap_.hasIndex(e))return this;var n=this.indexMap_.addIndex(e,this.children_);return new t(this.children_,this.priorityNode_,n)},t.prototype.isIndexed=function(t){return t===xt||this.indexMap_.hasIndex(t)},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode())return!1;var e=t;if(this.getPriority().equals(e.getPriority())){if(this.children_.count()===e.children_.count()){for(var n=this.getIterator(At),i=e.getIterator(At),r=n.getNext(),o=i.getNext();r&&o;){if(r.name!==o.name||!r.node.equals(o.node))return!1;r=n.getNext(),o=i.getNext()}return null===r&&null===o}return!1}return!1},t.prototype.resolveIndex_=function(t){return t===xt?null:this.indexMap_.get(t.toString())},t.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,t}(),Ut=new(function(t){function e(){return t.call(this,new Pt(Bt),Vt.EMPTY_NODE,Lt.Default)||this}return a.__extends(e,t),e.prototype.compareTo=function(t){return t===this?0:1},e.prototype.equals=function(t){return t===this},e.prototype.getPriority=function(){return this},e.prototype.getImmediateChild=function(t){return Vt.EMPTY_NODE},e.prototype.isEmpty=function(){return!1},e}(Vt));function Ht(t,e){if(void 0===e&&(e=null),null===t)return Vt.EMPTY_NODE;if("object"==typeof t&&".priority"in t&&(e=t[".priority"]),s.assert(null===e||"string"==typeof e||"number"==typeof e||"object"==typeof e&&".sv"in e,"Invalid priority type found: "+typeof e),"object"==typeof t&&".value"in t&&null!==t[".value"]&&(t=t[".value"]),"object"!=typeof t||".sv"in t)return new It(t,Ht(e));if(t instanceof Array){var n=Vt.EMPTY_NODE;return M(t,(function(e,i){if(s.contains(t,e)&&"."!==e.substring(0,1)){var r=Ht(i);!r.isLeafNode()&&r.isEmpty()||(n=n.updateImmediateChild(e,r))}})),n.updatePriority(Ht(e))}var i=[],r=!1;if(M(t,(function(t,e){if("."!==t.substring(0,1)){var n=Ht(e);n.isEmpty()||(r=r||!n.getPriority().isEmpty(),i.push(new wt(t,n)))}})),0===i.length)return Vt.EMPTY_NODE;var o=Mt(i,jt,(function(t){return t.name}),Bt);if(r){var a=Mt(i,At.getCompare());return new Vt(o,Ht(e),new Lt({".priority":a},{".priority":At}))}return new Vt(o,Ht(e),Lt.Default)}Object.defineProperties(wt,{MIN:{value:new wt(A,Vt.EMPTY_NODE)},MAX:{value:new wt(T,Ut)}}),Ct.__EMPTY_NODE=Vt.EMPTY_NODE,It.__childrenNodeConstructor=Vt,V=Ut,z=Ut,function(t){H=t}(Ht);var zt,qt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.compare=function(t,e){var n=t.node.compareTo(e.node);return 0===n?O(t.name,e.name):n},e.prototype.isDefinedOn=function(t){return!0},e.prototype.indexedValueChanged=function(t,e){return!t.equals(e)},e.prototype.minPost=function(){return wt.MIN},e.prototype.maxPost=function(){return wt.MAX},e.prototype.makePost=function(t,e){var n=Ht(t);return new wt(e,n)},e.prototype.toString=function(){return".value"},e}(kt)),Wt=function(t){function e(e){var n=t.call(this)||this;return n.indexPath_=e,s.assert(!e.isEmpty()&&".priority"!==e.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return a.__extends(e,t),e.prototype.extractChild=function(t){return t.getChild(this.indexPath_)},e.prototype.isDefinedOn=function(t){return!t.getChild(this.indexPath_).isEmpty()},e.prototype.compare=function(t,e){var n=this.extractChild(t.node),i=this.extractChild(e.node),r=n.compareTo(i);return 0===r?O(t.name,e.name):r},e.prototype.makePost=function(t,e){var n=Ht(t),i=Vt.EMPTY_NODE.updateChild(this.indexPath_,n);return new wt(e,i)},e.prototype.maxPost=function(){var t=Vt.EMPTY_NODE.updateChild(this.indexPath_,Ut);return new wt(T,t)},e.prototype.toString=function(){return this.indexPath_.slice().join("/")},e}(kt),Gt=function(){function t(t,e,n){this.node_=t,this.ref_=e,this.index_=n}return t.prototype.val=function(){return s.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()}
1,t.prototype.exportVal=function(){return s.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},t.prototype.toJSON=function(){return s.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},t.prototype.exists=function(){return s.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},t.prototype.child=function(e){s.validateArgCount("DataSnapshot.child",0,1,arguments.length),e=String(e),dt("DataSnapshot.child",1,e,!1);var n=new X(e),i=this.ref_.child(n);return new t(this.node_.getChild(n),i,At)},t.prototype.hasChild=function(t){s.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),dt("DataSnapshot.hasChild",1,t,!1);var e=new X(t);return!this.node_.getChild(e).isEmpty()},t.prototype.getPriority=function(){return s.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},t.prototype.forEach=function(e){var n=this;if(s.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),s.validateCallback("DataSnapshot.forEach",1,e,!1),this.node_.isLeafNode())return!1;var i=this.node_;return!!i.forEachChild(this.index_,(function(i,r){return e(new t(r,n.ref_.child(i),At))}))},t.prototype.hasChildren=function(){return s.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(t.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),t.prototype.numChildren=function(){return s.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},t.prototype.getRef=function(){return s.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),t}(),Kt=function(){function t(t,e,n,i){this.eventType=t,this.eventRegistration=e,this.snapshot=n,this.prevName=i}return t.prototype.getPath=function(){var t=this.snapshot.getRef();return"value"===this.eventType?t.path:t.getParent().path},t.prototype.getEventType=function(){return this.eventType},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+s.stringify(this.snapshot.exportVal())},t}(),Yt=function(){function t(t,e,n){this.eventRegistration=t,this.error=e,this.path=n}return t.prototype.getPath=function(){return this.path},t.prototype.getEventType=function(){return"cancel"},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.path.toString()+":cancel"},t}(),Qt=function(){function t(t,e,n){this.callback_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){return"value"===t},t.prototype.createEvent=function(t,e){var n=e.getQueryParams().getIndex();return new Kt("value",this,new Gt(t.snapshotNode,e.getRef(),n))},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var i=this.callback_;return function(){i.call(e,t.snapshot)}},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new Yt(this,t,e):null},t.prototype.matches=function(e){return e instanceof t&&(!e.callback_||!this.callback_||e.callback_===this.callback_&&e.context_===this.context_)},t.prototype.hasAnyCallback=function(){return null!==this.callback_},t}(),$t=function(){function t(t,e,n){this.callbacks_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){var e="children_added"===t?"child_added":t;return s.contains(this.callbacks_,e="children_removed"===e?"child_removed":e)},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new Yt(this,t,e):null},t.prototype.createEvent=function(t,e){s.assert(null!=t.childName,"Child events should have a childName.");var n=e.getRef().child(t.childName),i=e.getQueryParams().getIndex();return new Kt(t.type,this,new Gt(t.snapshotNode,n,i),t.prevName)},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var i=this.callbacks_[t.eventType];return function(){i.call(e,t.snapshot,t.prevName)}},t.prototype.matches=function(e){var n=this;if(e instanceof t){if(!this.callbacks_||!e.callbacks_)return!0;
1if(this.context_===e.context_){var i=Object.keys(e.callbacks_),r=Object.keys(this.callbacks_),o=i.length;if(o===r.length){if(1===o){var a=i[0],s=r[0];return!(s!==a||e.callbacks_[a]&&this.callbacks_[s]&&e.callbacks_[a]!==this.callbacks_[s])}return r.every((function(t){return e.callbacks_[t]===n.callbacks_[t]}))}}}return!1},t.prototype.hasAnyCallback=function(){return null!==this.callbacks_},t}(),Xt=function(){function t(t,e,n,i){this.repo=t,this.path=e,this.queryParams_=n,this.orderByCalled_=i}return Object.defineProperty(t,"__referenceConstructor",{get:function(){return s.assert(zt,"Reference.ts has not been loaded"),zt},set:function(t){zt=t},enumerable:!0,configurable:!0}),t.validateQueryEndpoints_=function(t){var e=null,n=null;if(t.hasStart()&&(e=t.getIndexStartValue()),t.hasEnd()&&(n=t.getIndexEndValue()),t.getIndex()===xt){var i="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",r="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(t.hasStart()){if(t.getIndexStartName()!==A)throw new Error(i);if("string"!=typeof e)throw new Error(r)}if(t.hasEnd()){if(t.getIndexEndName()!==T)throw new Error(i);if("string"!=typeof n)throw new Error(r)}}else if(t.getIndex()===At){if(null!=e&&!at(e)||null!=n&&!at(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(s.assert(t.getIndex()instanceof Wt||t.getIndex()===qt,"unknown index type."),null!=e&&"object"==typeof e||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},t.validateLimit_=function(t){if(t.hasStart()&&t.hasEnd()&&t.hasLimit()&&!t.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},t.prototype.validateNoPreviousOrderByCall_=function(t){if(!0===this.orderByCalled_)throw new Error(t+": You can't combine multiple orderBy calls.")},t.prototype.getQueryParams=function(){return this.queryParams_},t.prototype.getRef=function(){return s.validateArgCount("Query.ref",0,0,arguments.length),new t.__referenceConstructor(this.repo,this.path)},t.prototype.on=function(e,n,i,r){s.validateArgCount("Query.on",2,4,arguments.length),ht("Query.on",1,e,!1),s.validateCallback("Query.on",2,n,!1);var o=t.getCancelAndContextArgs_("Query.on",i,r);if("value"===e)this.onValueEvent(n,o.cancel,o.context);else{var a={};a[e]=n,this.onChildEvent(a,o.cancel,o.context)}return n},t.prototype.onValueEvent=function(t,e,n){var i=new Qt(t,e||null,n||null);this.repo.addEventCallbackForQuery(this,i)},t.prototype.onChildEvent=function(t,e,n){var i=new $t(t,e,n);this.repo.addEventCallbackForQuery(this,i)},t.prototype.off=function(t,e,n){s.validateArgCount("Query.off",0,3,arguments.length),ht("Query.off",1,t,!0),s.validateCallback("Query.off",2,e,!0),s.validateContextObject("Query.off",3,n,!0);var i=null,r=null;if("value"===t){var o=e||null;i=new Qt(o,null,n||null)}else t&&(e&&((r={})[t]=e),i=new $t(r,null,n||null));this.repo.removeEventCallbackForQuery(this,i)},t.prototype.once=function(e,n,i,r){var o=this;s.validateArgCount("Query.once",1,4,arguments.length),ht("Query.once",1,e,!1),s.validateCallback("Query.once",2,n,!0);var a=t.getCancelAndContextArgs_("Query.once",i,r),u=!0,l=new s.Deferred;l.promise.catch((function(){}));var c=function t(i){u&&(u=!1,o.off(e,t),n&&n.bind(a.context)(i),l.resolve(i))};return this.on(e,c,(function(t){o.off(e,c),a.cancel&&a.cancel.bind(a.context)(t),l.reject(t)})),l.promise},t.prototype.limitToFirst=function(e){if(s.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToFirst(e),this.orderByCalled_)},t.prototype.limitToLast=function(e){if(s.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set
1(by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToLast(e),this.orderByCalled_)},t.prototype.orderByChild=function(e){if(s.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===e)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===e)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===e)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');dt("Query.orderByChild",1,e,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new X(e);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var i=new Wt(n),r=this.queryParams_.orderBy(i);return t.validateQueryEndpoints_(r),new t(this.repo,this.path,r,!0)},t.prototype.orderByKey=function(){s.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var e=this.queryParams_.orderBy(xt);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByPriority=function(){s.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var e=this.queryParams_.orderBy(At);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByValue=function(){s.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var e=this.queryParams_.orderBy(qt);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.startAt=function(e,n){void 0===e&&(e=null),s.validateArgCount("Query.startAt",0,2,arguments.length),st("Query.startAt",1,e,this.path,!0),ft("Query.startAt",2,n,!0);var i=this.queryParams_.startAt(e,n);if(t.validateLimit_(i),t.validateQueryEndpoints_(i),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===e&&(e=null,n=null),new t(this.repo,this.path,i,this.orderByCalled_)},t.prototype.endAt=function(e,n){void 0===e&&(e=null),s.validateArgCount("Query.endAt",0,2,arguments.length),st("Query.endAt",1,e,this.path,!0),ft("Query.endAt",2,n,!0);var i=this.queryParams_.endAt(e,n);if(t.validateLimit_(i),t.validateQueryEndpoints_(i),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new t(this.repo,this.path,i,this.orderByCalled_)},t.prototype.equalTo=function(t,e){if(s.validateArgCount("Query.equalTo",1,2,arguments.length),st("Query.equalTo",1,t,this.path,!1),ft("Query.equalTo",2,e,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(t,e).endAt(t,e)},t.prototype.toString=function(){return s.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},t.prototype.toJSON=function(){return s.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},t.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},t.prototype.queryIdentifier=function(){var t=this.queryObject(),e=R(t);return"{}"===e?"default":e},t.prototype.isEqual=function(e){if(s.validateArgCount("Query.isEqual",1,1,arguments.length),!(e instanceof t)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var i=this.repo===e.repo,r=this.path.equals(e.path),o=this.queryIdentifier()===e.queryIdentifier();return i&&r&&o},t.getCancelAndContextArgs_=function(t,e,n){var i={cancel:null,context:null};if(e&&n)i.cancel=e,s.validateCallback(t,3,i.cancel,!0),i.context=n,s.validateContextObject(t,4,i.context,!0);else if(e)if("object"==typeof e&&null!==e)i.context=e;else{if("function"!=typeof e)throw new Error(s.errorPrefix(t,3,!0)+" must either be a cancel callback or a context object.");
1i.cancel=e}return i},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),t}(),Zt=function(){function t(t){this.node_=t}return t.prototype.getImmediateChild=function(e){return new t(this.node_.getImmediateChild(e))},t.prototype.node=function(){return this.node_},t}(),Jt=function(){function t(t,e){this.syncTree_=t,this.path_=e}return t.prototype.getImmediateChild=function(e){var n=this.path_.child(e);return new t(this.syncTree_,n)},t.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},t}(),te=function(t,e,n){return t&&"object"==typeof t?(s.assert(".sv"in t,"Unexpected leaf node or priority contents"),"string"==typeof t[".sv"]?ee(t[".sv"],e,n):"object"==typeof t[".sv"]?ne(t[".sv"],e):void s.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2))):t},ee=function(t,e,n){switch(t){case"timestamp":return n.timestamp;default:s.assert(!1,"Unexpected server value: "+t)}},ne=function(t,e,n){t.hasOwnProperty("increment")||s.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2));var i=t.increment;"number"!=typeof i&&s.assert(!1,"Unexpected increment value: "+i);var r=e.node();if(s.assert(null!=r,"Expected ChildrenNode.EMPTY_NODE for nulls"),!r.isLeafNode())return i;var o=r.getValue();return"number"!=typeof o?i:o+i},ie=function(t,e,n,i){return oe(e,new Jt(n,t),i)},re=function(t,e,n){return oe(t,new Zt(e),n)};function oe(t,e,n){var i,r=t.getPriority().val(),o=te(r,e.getImmediateChild(".priority"),n);if(t.isLeafNode()){var a=t,s=te(a.getValue(),e,n);return s!==a.getValue()||o!==a.getPriority().val()?new It(s,Ht(o)):t}var u=t;return i=u,o!==u.getPriority().val()&&(i=i.updatePriority(new It(o))),u.forEachChild(At,(function(t,r){var o=oe(r,e.getImmediateChild(t),n);o!==r&&(i=i.updateImmediateChild(t,o))})),i}var ae,se,ue=function(){function t(){this.value=null,this.children=new Map}return t.prototype.find=function(t){if(null!=this.value)return this.value.getChild(t);if(!t.isEmpty()&&this.children.size>0){var e=t.getFront();return t=t.popFront(),this.children.has(e)?this.children.get(e).find(t):null}return null},t.prototype.remember=function(e,n){if(e.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(e,n);else{var i=e.getFront();this.children.has(i)||this.children.set(i,new t);var r=this.children.get(i);e=e.popFront(),r.remember(e,n)}},t.prototype.forget=function(t){if(t.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var e=this.value;this.value=null;var n=this;return e.forEachChild(At,(function(t,e){n.remember(new X(t),e)})),this.forget(t)}if(this.children.size>0){var i=t.getFront();return t=t.popFront(),this.children.has(i)&&this.children.get(i).forget(t)&&this.children.delete(i),0===this.children.size}return!0},t.prototype.forEachTree=function(t,e){null!==this.value?e(t,this.value):this.forEachChild((function(n,i){var r=new X(t.toString()+"/"+n);i.forEachTree(r,e)}))},t.prototype.forEachChild=function(t){this.children.forEach((function(e,n){t(n,e)}))},t}(),le=function(t){return t[t.OVERWRITE=0]="OVERWRITE",t[t.MERGE=1]="MERGE",t[t.ACK_USER_WRITE=2]="ACK_USER_WRITE",t[t.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",t}({}),ce=function(){function t(t,e,n,i){this.fromUser=t,this.fromServer=e,this.queryId=n,this.tagged=i,s.assert(!i||e,"Tagged queries must be from server.")}return t.User=new t(!0,!1,null,!1),t.Server=new t(!1,!0,null,!1),t.forServerTaggedQuery=function(e){return new t(!1,!0,e,!0)},t}(),he=function(){function t(t,e,n){this.path=t,this.affectedTree=e,this.revert=n,this.type=le.ACK_USER_WRITE,this.source=ce.User}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return s.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new X(e));return new t(X.Empty,n,this.revert)}return s.assert(this.path.getFront()===e,"operationForChild called for unrelated child."),new t(this.path.popFront(),this.affectedTree,this.revert)},t}(),fe=function(){function t(t,e){void 0===e&&(ae||(ae=new Pt(D)),e=ae),this.value=t,this.children=e}return t.fromObject=function(e){var n=t.Empty;return M(e,(function(t,e){n=n.set(new X(t),e)})),n},t.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},t.prototype.findRootMostMatchingPathAndValue=function(t,e){if(null!=this.value&&e(this.value))return{path:X.Empty,value:this.value};if(t.isEmpty())return null;var n=t.getFront(),i=this.children.get(n);if(null!==i){var r=i.findRootMostMatchingPathAndValue(t.popFront(),e);return null!=r?{path:new X(n).child(r.path),value:r.value}:null}return null},t.prototype.findRootMostValueAndPath=function(t){return this.findRootMostMatchingPathAndValue(t,(function(){return!0}))},t.prototype.subtree=function(e){if(e.isEmpty())return this;var n=e.getFront(),i=this.children.get(n);return null!==i?i.subtree(e.popFront()):t.Empty},t.prototype.set=function(e,n){if(e.isEmpty())return new t(n,this.children);var i=e.getFront(),r=(this.children.get(i)||t.Empty).set(e.popFront(),n),o=this.children.insert(i,r);return new t(this.value,o)},t.prototype.remove=function(e){if(e.isEmpty())return this.children.isEmpty()?t.Empty:new t(null,this.children);var n=e.getFront(),i=this.children.get(n);if(i){var r=i.remove(e.popFront()),o=void 0;return o=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),null===this.value&&o.isEmpty()?t.Empty:new t(this.value,o)}return this},t.prototype.get=function(t){if(t.isEmpty())return this.value;var e=t.getFront(),n=this.children.get(e);return n?n.get(t.popFront()):null},t.prototype.setTree=function(e,n){if(e.isEmpty())return n;var i,r=e.getFront(),o=(this.children.get(r)||t.Empty).setTree(e.popFront(),n);return i=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new t(this.value,i)},t.prototype.fold=function(t){return this.fold_(X.Empty,t)}
1,t.prototype.fold_=function(t,e){var n={};return this.children.inorderTraversal((function(i,r){n[i]=r.fold_(t.child(i),e)})),e(t,this.value,n)},t.prototype.findOnPath=function(t,e){return this.findOnPath_(t,X.Empty,e)},t.prototype.findOnPath_=function(t,e,n){var i=!!this.value&&n(e,this.value);if(i)return i;if(t.isEmpty())return null;var r=t.getFront(),o=this.children.get(r);return o?o.findOnPath_(t.popFront(),e.child(r),n):null},t.prototype.foreachOnPath=function(t,e){return this.foreachOnPath_(t,X.Empty,e)},t.prototype.foreachOnPath_=function(e,n,i){if(e.isEmpty())return this;this.value&&i(n,this.value);var r=e.getFront(),o=this.children.get(r);return o?o.foreachOnPath_(e.popFront(),n.child(r),i):t.Empty},t.prototype.foreach=function(t){this.foreach_(X.Empty,t)},t.prototype.foreach_=function(t,e){this.children.inorderTraversal((function(n,i){i.foreach_(t.child(n),e)})),this.value&&e(t,this.value)},t.prototype.foreachChild=function(t){this.children.inorderTraversal((function(e,n){n.value&&t(e,n.value)}))},t.Empty=new t(null),t}(),de=function(){function t(t,e){this.source=t,this.path=e,this.type=le.LISTEN_COMPLETE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,X.Empty):new t(this.source,this.path.popFront())},t}(),pe=function(){function t(t,e,n){this.source=t,this.path=e,this.snap=n,this.type=le.OVERWRITE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,X.Empty,this.snap.getImmediateChild(e)):new t(this.source,this.path.popFront(),this.snap)},t}(),me=function(){function t(t,e,n){this.source=t,this.path=e,this.children=n,this.type=le.MERGE}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){var n=this.children.subtree(new X(e));return n.isEmpty()?null:n.value?new pe(this.source,X.Empty,n.value):new t(this.source,X.Empty,n)}return s.assert(this.path.getFront()===e,"Can't get a merge for a child not on the path of the operation"),new t(this.source,this.path.popFront(),this.children)},t.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},t}(),ve=function(){function t(t,e,n){this.node_=t,this.fullyInitialized_=e,this.filtered_=n}return t.prototype.isFullyInitialized=function(){return this.fullyInitialized_},t.prototype.isFiltered=function(){return this.filtered_},t.prototype.isCompleteForPath=function(t){if(t.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var e=t.getFront();return this.isCompleteForChild(e)},t.prototype.isCompleteForChild=function(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)},t.prototype.getNode=function(){return this.node_},t}(),ge=function(){function t(t,e){this.eventCache_=t,this.serverCache_=e}return t.prototype.updateEventSnap=function(e,n,i){return new t(new ve(e,n,i),this.serverCache_)},t.prototype.updateServerSnap=function(e,n,i){return new t(this.eventCache_,new ve(e,n,i))},t.prototype.getEventCache=function(){return this.eventCache_},t.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},t.prototype.getServerCache=function(){return this.serverCache_},t.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},t.Empty=new t(new ve(Vt.EMPTY_NODE,!1,!1),new ve(Vt.EMPTY_NODE,!1,!1)),t}(),ye=function(){function t(t,e,n,i,r){this.type=t,this.snapshotNode=e,this.childName=n,this.oldSnap=i,this.prevName=r}return t.valueChange=function(e){return new t(t.VALUE,e)},t.childAddedChange=function(e,n){return new t(t.CHILD_ADDED,n,e)},t.childRemovedChange=function(e,n){return new t(t.CHILD_REMOVED,n,e)},t.childChangedChange=function(e,n,i){return new t(t.CHILD_CHANGED,n,e,i)},t.childMovedChange=function(e,n){return new t(t.CHILD_MOVED,n,e)},t.CHILD_ADDED="child_added",t.CHILD_REMOVED="child_removed",t.CHILD_CHANGED="child_changed",t.CHILD_MOVED="child_moved",t.VALUE="value",t}(),_e=function(){function t(t){this.index_=t}return t.prototype.updateChild=function(t,e,n,i,r,o){s.assert(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=t.getImmediateChild(e);return a.getChild(i).equals(n.getChild(i))&&a.isEmpty()===n.isEmpty()?t:(null!=o&&(n.isEmpty()?t.hasChild(e)?o.trackChildChange(ye.childRemovedChange(e,a)):s.assert(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(ye.childAddedChange(e,n)):o.trackChildChange(ye.childChangedChange(e,n,a))),t.isLeafNode()&&n.isEmpty()?t:t.updateImmediateChild(e,n).withIndex(this.index_))},t.prototype.updateFullNode=function(t,e,n){return null!=n&&(t.isLeafNode()||t.forEachChild(At,(function(t,i){e.hasChild(t)||n.trackChildChange(ye.childRemovedChange(t,i))}
1)),e.isLeafNode()||e.forEachChild(At,(function(e,i){if(t.hasChild(e)){var r=t.getImmediateChild(e);r.equals(i)||n.trackChildChange(ye.childChangedChange(e,i,r))}else n.trackChildChange(ye.childAddedChange(e,i))}))),e.withIndex(this.index_)},t.prototype.updatePriority=function(t,e){return t.isEmpty()?Vt.EMPTY_NODE:t.updatePriority(e)},t.prototype.filtersNodes=function(){return!1},t.prototype.getIndexedFilter=function(){return this},t.prototype.getIndex=function(){return this.index_},t}(),be=function(){function t(){this.changeMap=new Map}return t.prototype.trackChildChange=function(t){var e=t.type,n=t.childName;s.assert(e===ye.CHILD_ADDED||e===ye.CHILD_CHANGED||e===ye.CHILD_REMOVED,"Only child changes supported for tracking"),s.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var i=this.changeMap.get(n);if(i){var r=i.type;if(e===ye.CHILD_ADDED&&r===ye.CHILD_REMOVED)this.changeMap.set(n,ye.childChangedChange(n,t.snapshotNode,i.snapshotNode));else if(e===ye.CHILD_REMOVED&&r===ye.CHILD_ADDED)this.changeMap.delete(n);else if(e===ye.CHILD_REMOVED&&r===ye.CHILD_CHANGED)this.changeMap.set(n,ye.childRemovedChange(n,i.oldSnap));else if(e===ye.CHILD_CHANGED&&r===ye.CHILD_ADDED)this.changeMap.set(n,ye.childAddedChange(n,t.snapshotNode));else{if(e!==ye.CHILD_CHANGED||r!==ye.CHILD_CHANGED)throw s.assertionError("Illegal combination of changes: "+t+" occurred after "+i);this.changeMap.set(n,ye.childChangedChange(n,t.snapshotNode,i.oldSnap))}}else this.changeMap.set(n,t)},t.prototype.getChanges=function(){return Array.from(this.changeMap.values())},t}(),we=new(function(){function t(){}return t.prototype.getCompleteChild=function(t){return null},t.prototype.getChildAfterChild=function(t,e,n){return null},t}()),ke=function(){function t(t,e,n){void 0===n&&(n=null),this.writes_=t,this.viewCache_=e,this.optCompleteServerCache_=n}return t.prototype.getCompleteChild=function(t){var e=this.viewCache_.getEventCache();if(e.isCompleteForChild(t))return e.getNode().getImmediateChild(t);var n=null!=this.optCompleteServerCache_?new ve(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(t,n)},t.prototype.getChildAfterChild=function(t,e,n){var i=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),r=this.writes_.calcIndexedSlice(i,e,1,n,t);return 0===r.length?null:r[0]},t}(),Ce=function(t,e){this.viewCache=t,this.changes=e},xe=function(){function t(t){this.filter_=t}return t.prototype.assertIndexed=function(t){s.assert(t.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),s.assert(t.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},t.prototype.applyOperation=function(e,n,i,r){var o,a,u=new be;if(n.type===le.OVERWRITE){var l=n;l.source.fromUser?o=this.applyUserOverwrite_(e,l.path,l.snap,i,r,u):(s.assert(l.source.fromServer,"Unknown source."),a=l.source.tagged||e.getServerCache().isFiltered()&&!l.path.isEmpty(),o=this.applyServerOverwrite_(e,l.path,l.snap,i,r,a,u))}else if(n.type===le.MERGE){var c=n;c.source.fromUser?o=this.applyUserMerge_(e,c.path,c.children,i,r,u):(s.assert(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.getServerCache().isFiltered(),o=this.applyServerMerge_(e,c.path,c.children,i,r,a,u))}else if(n.type===le.ACK_USER_WRITE){var h=n;o=h.revert?this.revertUserWrite_(e,h.path,i,r,u):this.ackUserWrite_(e,h.path,h.affectedTree,i,r,u)}else{if(n.type!==le.LISTEN_COMPLETE)throw s.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(e,n.path,i,u)}var f=u.getChanges();return t.maybeAddValueEvent_(e,o,f),new Ce(o,f)},t.maybeAddValueEvent_=function(t,e,n){var i=e.getEventCache();if(i.isFullyInitialized()){var r=i.getNode().isLeafNode()||i.getNode().isEmpty(),o=t.getCompleteEventSnap();(n.length>0||!t.getEventCache().isFullyInitialized()||r&&!i.getNode().equals(o)||!i.getNode().getPriority().equals(o.getPriority()))&&n.push(ye.valueChange(e.getCompleteEventSnap()))}},t.prototype.generateEventCacheAfterServerEvent_=function(t,e,n,i,r){var o=t.getEventCache();if(null!=n.shadowingWrite(e))return t;var a=void 0,u=void 0;if(e.isEmpty())if(s.assert(t.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),t.getServerCache().isFiltered()){var l=t.getCompleteServerSnap(),c=n.calcCompleteEventChildren(l instanceof Vt?l:Vt.EMPTY_NODE);a=this.filter_.updateFullNode(t.getEventCache().getNode(),c,r)}else{var h=n.calcCompleteEventCache(t.getCompleteServerSnap());a=this.filter_.updateFullNode(t.getEventCache().getNode(),h,r)}else{var f=e.getFront();if(".priority"===f){s.assert(1===e.getLength(),"Can't have a priority with additional path components");var d=o.getNode();u=t.getServerCache().getNode();var p=n.calcEventCacheAfterServerOverwrite(e,d,u);a=null!=p?this.filter_.updatePriority(d,p):o.getNode()}else{var m=e.popFront(),v=void 0;if(o.isCompleteForChild(f)){u=t.getServerCache().getNode();var g=n.calcEventCacheAfterServerOverwrite(e,o.getNode(),u);v=null!=g?o.getNode().getImmediateChild(f).updateChild(m,g):o.getNode().getImmediateChild(f)}else v=n.calcCompleteChild(f,t.getServerCache());a=null!=v?this.filter_.updateChild(o.getNode(),f,v,m,i,r):o.getNode()}}return t.updateEventSnap(a,o.isFullyInitialized()||e.isEmpty(),this.filter_.filtersNodes())},t.prototype.applyServerOverwrite_=function(t,e,n,i,r,o,a){var s,u=t.getServerCache(),l=o?this.filter_:this.filter_.getIndexedFilter();if(e.isEmpty())s=l.updateFullNode(u.getNode(),n,null);else if(l.filtersNodes()&&!u.isFiltered()){var c=u.getNode().updateChild(e,n);s=l.updateFullNode(u.getNode(),c,null)}else{var h=e.getFront();if(!u.isCompleteForPath(e)&&e.getLength()>1)return t;var f=e.popFront(),d=u.getNode().getImmediateChild(h).updateChild(f,n);s=".priority"===h?l.updatePriority(u.getNode(),d):l.updateChild(u.getNode(),h,d,f,we,null)}var p=t.updateServerSnap(s,u.isFullyInitialized()||e.isEmpty(),l.filtersNodes()),m=new ke(i,p,r);return this.generateEventCacheAfterServerEvent_(p,e,i,m,a)},t.prototype.applyUserOverwrite_=function(t,e,n,i,r,o){var a,s,u=t.getEventCache(),l=new ke(i,t,r);if(e.isEmpty())s=this.filter_.updateFullNode(t.getEventCache().getNode(),n,o),a=t.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var c=e.getFront();if(".priority"===c)s=this.filter_.updatePriority(t.getEventCache().getNode(),n),a=t.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var h=e.popFront(),f=u.getNode().getImmediateChild(c),d=void 0;if(h.isEmpty())d=n;else{var p=l.getCompleteChild(c);d=null!=p?".priority"===h.getBack()&&p.getChild(h.parent()).isEmpty()?p:p.updateChild(h,n):Vt.EMPTY_NODE}if(f.equals(d))a=t;else{var m=this.filter_.updateChild(u.getNode(),c,d,h,l,o);a=t.updateEventSnap(m,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},t.cacheHasChild_=function(t,e){return t.getEventCache().isCompleteForChild(e)},t.prototype.applyUserMerge_=function(e,n,i,r,o,a){var s=this,u=e;return i.foreach((function(i,l){var c=n.child(i);
1t.cacheHasChild_(e,c.getFront())&&(u=s.applyUserOverwrite_(u,c,l,r,o,a))})),i.foreach((function(i,l){var c=n.child(i);t.cacheHasChild_(e,c.getFront())||(u=s.applyUserOverwrite_(u,c,l,r,o,a))})),u},t.prototype.applyMerge_=function(t,e){return e.foreach((function(e,n){t=t.updateChild(e,n)})),t},t.prototype.applyServerMerge_=function(t,e,n,i,r,o,a){var s=this;if(t.getServerCache().getNode().isEmpty()&&!t.getServerCache().isFullyInitialized())return t;var u,l=t;u=e.isEmpty()?n:fe.Empty.setTree(e,n);var c=t.getServerCache().getNode();return u.children.inorderTraversal((function(e,n){if(c.hasChild(e)){var u=t.getServerCache().getNode().getImmediateChild(e),h=s.applyMerge_(u,n);l=s.applyServerOverwrite_(l,new X(e),h,i,r,o,a)}})),u.children.inorderTraversal((function(e,n){var u=!t.getServerCache().isCompleteForChild(e)&&null==n.value;if(!c.hasChild(e)&&!u){var h=t.getServerCache().getNode().getImmediateChild(e),f=s.applyMerge_(h,n);l=s.applyServerOverwrite_(l,new X(e),f,i,r,o,a)}})),l},t.prototype.ackUserWrite_=function(t,e,n,i,r,o){if(null!=i.shadowingWrite(e))return t;var a=t.getServerCache().isFiltered(),s=t.getServerCache();if(null!=n.value){if(e.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(e))return this.applyServerOverwrite_(t,e,s.getNode().getChild(e),i,r,a,o);if(e.isEmpty()){var u=fe.Empty;return s.getNode().forEachChild(xt,(function(t,e){u=u.set(new X(t),e)})),this.applyServerMerge_(t,e,u,i,r,a,o)}return t}var l=fe.Empty;return n.foreach((function(t,n){var i=e.child(t);s.isCompleteForPath(i)&&(l=l.set(t,s.getNode().getChild(i)))})),this.applyServerMerge_(t,e,l,i,r,a,o)},t.prototype.listenComplete_=function(t,e,n,i){var r=t.getServerCache(),o=t.updateServerSnap(r.getNode(),r.isFullyInitialized()||e.isEmpty(),r.isFiltered());return this.generateEventCacheAfterServerEvent_(o,e,n,we,i)},t.prototype.revertUserWrite_=function(t,e,n,i,r){var o;if(null!=n.shadowingWrite(e))return t;
1var a=new ke(n,t,i),u=t.getEventCache().getNode(),l=void 0;if(e.isEmpty()||".priority"===e.getFront()){var c=void 0;if(t.getServerCache().isFullyInitialized())c=n.calcCompleteEventCache(t.getCompleteServerSnap());else{var h=t.getServerCache().getNode();s.assert(h instanceof Vt,"serverChildren would be complete if leaf node"),c=n.calcCompleteEventChildren(h)}l=this.filter_.updateFullNode(u,c=c,r)}else{var f=e.getFront(),d=n.calcCompleteChild(f,t.getServerCache());null==d&&t.getServerCache().isCompleteForChild(f)&&(d=u.getImmediateChild(f)),(l=null!=d?this.filter_.updateChild(u,f,d,e.popFront(),a,r):t.getEventCache().getNode().hasChild(f)?this.filter_.updateChild(u,f,Vt.EMPTY_NODE,e.popFront(),a,r):u).isEmpty()&&t.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(t.getCompleteServerSnap())).isLeafNode()&&(l=this.filter_.updateFullNode(l,o,r))}return o=t.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(X.Empty),t.updateEventSnap(l,o,this.filter_.filtersNodes())},t}(),Se=function(){function t(t){this.query_=t,this.index_=this.query_.getQueryParams().getIndex()}return t.prototype.generateEventsForChanges=function(t,e,n){var i=this,r=[],o=[];return t.forEach((function(t){t.type===ye.CHILD_CHANGED&&i.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push(ye.childMovedChange(t.childName,t.snapshotNode))})),this.generateEventsForType_(r,ye.CHILD_REMOVED,t,n,e),this.generateEventsForType_(r,ye.CHILD_ADDED,t,n,e),this.generateEventsForType_(r,ye.CHILD_MOVED,o,n,e),this.generateEventsForType_(r,ye.CHILD_CHANGED,t,n,e),this.generateEventsForType_(r,ye.VALUE,t,n,e),r},t.prototype.generateEventsForType_=function(t,e,n,i,r){var o=this,a=n.filter((function(t){return t.type===e}));a.sort(this.compareChanges_.bind(this)),a.forEach((function(e){var n=o.materializeSingleChange_(e,r);i.forEach((function(i){i.respondsTo(e.type)&&t.push(i.createEvent(n,o.query_))}))}))},t.prototype.materializeSingleChange_=function(t,e){return"value"===t.type||"child_removed"===t.type||(t.prevName=e.getPredecessorChildName(t.childName,t.snapshotNode,this.index_)),t},t.prototype.compareChanges_=function(t,e){if(null==t.childName||null==e.childName)throw s.assertionError("Should only compare child_ events.");var n=new wt(t.childName,t.snapshotNode),i=new wt(e.childName,e.snapshotNode);return this.index_.compare(n,i)},t}(),Ee=function(){function t(t,e){this.query_=t,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),i=new _e(n.getIndex()),r=n.getNodeFilter();this.processor_=new xe(r);var o=e.getServerCache(),a=e.getEventCache(),s=i.updateFullNode(Vt.EMPTY_NODE,o.getNode(),null),u=r.updateFullNode(Vt.EMPTY_NODE,a.getNode(),null),l=new ve(s,o.isFullyInitialized(),i.filtersNodes()),c=new ve(u,a.isFullyInitialized(),r.filtersNodes());this.viewCache_=new ge(c,l),this.eventGenerator_=new Se(this.query_)}return t.prototype.getQuery=function(){return this.query_},t.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},t.prototype.getCompleteServerCache=function(t){var e=this.viewCache_.getCompleteServerSnap();return e&&(this.query_.getQueryParams().loadsAllData()||!t.isEmpty()&&!e.getImmediateChild(t.getFront()).isEmpty())?e.getChild(t):null},t.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},t.prototype.addEventRegistration=function(t){this.eventRegistrations_.push(t)},t.prototype.removeEventRegistration=function(t,e){var n=[];if(e){s.assert(null==t,"A cancel should cancel all event registrations.");var i=this.query_.path;this.eventRegistrations_.forEach((function(t){var r=t.createCancelEvent(e=e,i);r&&n.push(r)}))}if(t){for(var r=[],o=0;o<this.eventRegistrations_.length;++o){var a=this.eventRegistrations_[o];if(a.matches(t)){if(t.hasAnyCallback()){r=r.concat(this.eventRegistrations_.slice(o+1));break}}else r.push(a)}this.eventRegistrations_=r}else this.eventRegistrations_=[];return n},t.prototype.applyOperation=function(t,e,n){t.type===le.MERGE&&null!==t.source.queryId&&(s.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),s.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var i=this.viewCache_,r=this.processor_.applyOperation(i,t,e,n);return this.processor_.assertIndexed(r.viewCache),s.assert(r.viewCache.getServerCache().isFullyInitialized()||!i.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=r.viewCache,this.generateEventsForChanges_(r.changes,r.viewCache.getEventCache().getNode(),null)},t.prototype.getInitialEvents=function(t){var e=this.viewCache_.getEventCache(),n=[];
1return e.getNode().isLeafNode()||e.getNode().forEachChild(At,(function(t,e){n.push(ye.childAddedChange(t,e))})),e.isFullyInitialized()&&n.push(ye.valueChange(e.getNode())),this.generateEventsForChanges_(n,e.getNode(),t)},t.prototype.generateEventsForChanges_=function(t,e,n){return this.eventGenerator_.generateEventsForChanges(t,e,n?[n]:this.eventRegistrations_)},t}(),Ie=function(){function t(){this.views=new Map}return Object.defineProperty(t,"__referenceConstructor",{get:function(){return s.assert(se,"Reference.ts has not been loaded"),se},set:function(t){s.assert(!se,"__referenceConstructor has already been defined"),se=t},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return 0===this.views.size},t.prototype.applyOperation=function(t,e,n){var i,r,o=t.source.queryId;if(null!==o){var u=this.views.get(o);return s.assert(null!=u,"SyncTree gave us an op for an invalid query."),u.applyOperation(t,e,n)}var l=[];try{for(var c=a.__values(this.views.values()),h=c.next();!h.done;h=c.next())l=l.concat((u=h.value).applyOperation(t,e,n))}catch(f){i={error:f}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return l},t.prototype.addEventRegistration=function(t,e,n,i,r){var o=t.queryIdentifier(),a=this.views.get(o);if(!a){var s=n.calcCompleteEventCache(r?i:null),u=!1;s?u=!0:i instanceof Vt?(s=n.calcCompleteEventChildren(i),u=!1):(s=Vt.EMPTY_NODE,u=!1);var l=new ge(new ve(s,u,!1),new ve(i,r,!1));a=new Ee(t,l),this.views.set(o,a)}return a.addEventRegistration(e),a.getInitialEvents(e)},t.prototype.removeEventRegistration=function(e,n,i){var r,o,s=e.queryIdentifier(),u=[],l=[],c=this.hasCompleteView();if("default"===s)try{for(var h=a.__values(this.views.entries()),f=h.next();!f.done;f=h.next()){var d,p=a.__read(f.value,2),m=p[0];l=l.concat((d=p[1]).removeEventRegistration(n,i)),d.isEmpty()&&(this.views.delete(m),d.getQuery().getQueryParams().loadsAllData()||u.push(d.getQuery()))}}catch(v){r={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}else(d=this.views.get(s))&&(l=l.concat(d.removeEventRegistration(n,i)),d.isEmpty()&&(this.views.delete(s),d.getQuery().getQueryParams().loadsAllData()||u.push(d.getQuery())));return c&&!this.hasCompleteView()&&u.push(new t.__referenceConstructor(e.repo,e.path)),{removed:u,events:l}},t.prototype.getQueryViews=function(){var t,e,n=[];try{for(var i=a.__values(this.views.values()),r=i.next();!r.done;r=i.next()){var o=r.value;o.getQuery().getQueryParams().loadsAllData()||n.push(o)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},t.prototype.getCompleteServerCache=function(t){var e,n,i=null;try{for(var r=a.__values(this.views.values()),o=r.next();!o.done;o=r.next())i=i||o.value.getCompleteServerCache(t)}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i},t.prototype.viewForQuery=function(t){if(t.getQueryParams().loadsAllData())return this.getCompleteView();var e=t.queryIdentifier();return this.views.get(e)},t.prototype.viewExistsForQuery=function(t){return null!=this.viewForQuery(t)},t.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},t.prototype.getCompleteView=function(){var t,e;try{for(var n=a.__values(this.views.values()),i=n.next();!i.done;i=n.next()){var r=i.value;if(r.getQuery().getQueryParams().loadsAllData())return r}}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},t}(),Ae=function(){function t(t){this.writeTree_=t}return t.prototype.addWrite=function(e,n){if(e.isEmpty())return new t(new fe(n));var i=this.writeTree_.findRootMostValueAndPath(e);if(null!=i){var r=i.path,o=i.value,a=X.relativePath(r,e);return o=o.updateChild(a,n),new t(this.writeTree_.set(r,o))}var s=new fe(n);return new t(this.writeTree_.setTree(e,s))},t.prototype.addWrites=function(t,e){var n=this;return M(e,(function(e,i){n=n.addWrite(t.child(e),i)})),n},t.prototype.removeWrite=function(e){return e.isEmpty()?t.Empty:new t(this.writeTree_.setTree(e,fe.Empty))},t.prototype.hasCompleteWrite=function(t){return null!=this.getCompleteNode(t)},t.prototype.getCompleteNode=function(t){var e=this.writeTree_.findRootMostValueAndPath(t);return null!=e?this.writeTree_.get(e.path).getChild(X.relativePath(e.path,t)):null},t.prototype.getCompleteChildren=function(){var t=[],e=this.writeTree_.value;return null!=e?e.isLeafNode()||e.forEachChild(At,(function(e,n){t.push(new wt(e,n))}
1)):this.writeTree_.children.inorderTraversal((function(e,n){null!=n.value&&t.push(new wt(e,n.value))})),t},t.prototype.childCompoundWrite=function(e){if(e.isEmpty())return this;var n=this.getCompleteNode(e);return new t(null!=n?new fe(n):this.writeTree_.subtree(e))},t.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},t.prototype.apply=function(t){return function t(e,n,i){if(null!=n.value)return i.updateChild(e,n.value);var r=null;return n.children.inorderTraversal((function(n,o){".priority"===n?(s.assert(null!==o.value,"Priority writes must always be leaf nodes"),r=o.value):i=t(e.child(n),o,i)})),i.getChild(e).isEmpty()||null===r||(i=i.updateChild(e.child(".priority"),r)),i}(X.Empty,this.writeTree_,t)},t.Empty=new t(new fe(null)),t}(),Te=function(){function t(){this.visibleWrites_=Ae.Empty,this.allWrites_=[],this.lastWriteId_=-1}return t.prototype.childWrites=function(t){return new Oe(t,this)},t.prototype.addOverwrite=function(t,e,n,i){s.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),this.allWrites_.push({path:t,snap:e,writeId:n,visible:i}),i&&(this.visibleWrites_=this.visibleWrites_.addWrite(t,e)),this.lastWriteId_=n},t.prototype.addMerge=function(t,e,n){s.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:t,children:e,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(t,e),this.lastWriteId_=n},t.prototype.getWrite=function(t){for(var e=0;e<this.allWrites_.length;e++){var n=this.allWrites_[e];if(n.writeId===t)return n}return null},t.prototype.removeWrite=function(t){var e=this,n=this.allWrites_.findIndex((function(e){return e.writeId===t}));s.assert(n>=0,"removeWrite called with nonexistent writeId.");var i=this.allWrites_[n];this.allWrites_.splice(n,1);for(var r=i.visible,o=!1,a=this.allWrites_.length-1;r&&a>=0;){var u=this.allWrites_[a];u.visible&&(a>=n&&this.recordContainsPath_(u,i.path)?r=!1:i.path.contains(u.path)&&(o=!0)),a--}return!!r&&(o?(this.resetTree_(),!0):(i.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(i.path):M(i.children,(function(t){e.visibleWrites_=e.visibleWrites_.removeWrite(i.path.child(t))})),!0))},t.prototype.getCompleteWriteData=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcCompleteEventCache=function(e,n,i,r){if(i||r){var o=this.visibleWrites_.childCompoundWrite(e);return!r&&o.isEmpty()?n:r||null!=n||o.hasCompleteWrite(X.Empty)?t.layerTree_(this.allWrites_,(function(t){return(t.visible||r)&&(!i||!~i.indexOf(t.writeId))&&(t.path.contains(e)||e.contains(t.path))}),e).apply(n||Vt.EMPTY_NODE):null}var a=this.visibleWrites_.getCompleteNode(e);if(null!=a)return a;var s=this.visibleWrites_.childCompoundWrite(e);return s.isEmpty()?n:null!=n||s.hasCompleteWrite(X.Empty)?s.apply(n||Vt.EMPTY_NODE):null},t.prototype.calcCompleteEventChildren=function(t,e){var n=Vt.EMPTY_NODE,i=this.visibleWrites_.getCompleteNode(t);if(i)return i.isLeafNode()||i.forEachChild(At,(function(t,e){n=n.updateImmediateChild(t,e)})),n;if(e){var r=this.visibleWrites_.childCompoundWrite(t);return e.forEachChild(At,(function(t,e){var i=r.childCompoundWrite(new X(t)).apply(e);n=n.updateImmediateChild(t,i)}
1)),r.getCompleteChildren().forEach((function(t){n=n.updateImmediateChild(t.name,t.node)})),n}return this.visibleWrites_.childCompoundWrite(t).getCompleteChildren().forEach((function(t){n=n.updateImmediateChild(t.name,t.node)})),n},t.prototype.calcEventCacheAfterServerOverwrite=function(t,e,n,i){s.assert(n||i,"Either existingEventSnap or existingServerSnap must exist");var r=t.child(e);if(this.visibleWrites_.hasCompleteWrite(r))return null;var o=this.visibleWrites_.childCompoundWrite(r);return o.isEmpty()?i.getChild(e):o.apply(i.getChild(e))},t.prototype.calcCompleteChild=function(t,e,n){var i=t.child(e),r=this.visibleWrites_.getCompleteNode(i);return null!=r?r:n.isCompleteForChild(e)?this.visibleWrites_.childCompoundWrite(i).apply(n.getNode().getImmediateChild(e)):null},t.prototype.shadowingWrite=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcIndexedSlice=function(t,e,n,i,r,o){var a,s=this.visibleWrites_.childCompoundWrite(t),u=s.getCompleteNode(X.Empty);if(null!=u)a=u;else{if(null==e)return[];a=s.apply(e)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var l=[],c=o.getCompare(),h=r?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),f=h.getNext();f&&l.length<i;)0!==c(f,n)&&l.push(f),f=h.getNext();return l},t.prototype.recordContainsPath_=function(t,e){if(t.snap)return t.path.contains(e);for(var n in t.children)if(t.children.hasOwnProperty(n)&&t.path.child(n).contains(e))return!0;return!1},t.prototype.resetTree_=function(){this.visibleWrites_=t.layerTree_(this.allWrites_,t.DefaultFilter_,X.Empty),this.lastWriteId_=this.allWrites_.length>0?this.allWrites_[this.allWrites_.length-1].writeId:-1},t.DefaultFilter_=function(t){return t.visible},t.layerTree_=function(t,e,n){for(var i=Ae.Empty,r=0;r<t.length;++r){var o=t[r];if(e(o)){var a=o.path,u=void 0;if(o.snap)n.contains(a)?(u=X.relativePath(n,a),i=i.addWrite(u,o.snap)):a.contains(n)&&(u=X.relativePath(a,n),i=i.addWrite(X.Empty,o.snap.getChild(u)));else{if(!o.children)throw s.assertionError("WriteRecord should have .snap or .children");if(n.contains(a))u=X.relativePath(n,a),i=i.addWrites(u,o.children);else if(a.contains(n))if((u=X.relativePath(a,n)).isEmpty())i=i.addWrites(X.Empty,o.children);else{var l=s.safeGet(o.children,u.getFront());if(l){var c=l.getChild(u.popFront());i=i.addWrite(X.Empty,c)}}}}}return i},t}(),Oe=function(){function t(t,e){this.treePath_=t,this.writeTree_=e}return t.prototype.calcCompleteEventCache=function(t,e,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,t,e,n)},t.prototype.calcCompleteEventChildren=function(t){return this.writeTree_.calcCompleteEventChildren(this.treePath_,t)},t.prototype.calcEventCacheAfterServerOverwrite=function(t,e,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,t,e,n)},t.prototype.shadowingWrite=function(t){return this.writeTree_.shadowingWrite(this.treePath_.child(t))},t.prototype.calcIndexedSlice=function(t,e,n,i,r){return this.writeTree_.calcIndexedSlice(this.treePath_,t,e,n,i,r)},t.prototype.calcCompleteChild=function(t,e){return this.writeTree_.calcCompleteChild(this.treePath_,t,e)},t.prototype.child=function(e){return new t(this.treePath_.child(e),this.writeTree_)},t}(),De=function(){function t(t){this.listenProvider_=t,this.syncPointTree_=fe.Empty,this.pendingWriteTree_=new Te,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return t.prototype.applyUserOverwrite=function(t,e,n,i){return this.pendingWriteTree_.addOverwrite(t,e,n,i),i?this.applyOperationToSyncPoints_(new pe(ce.User,t,e)):[]},t.prototype.applyUserMerge=function(t,e,n){this.pendingWriteTree_.addMerge(t,e,n);var i=fe.fromObject(e);return this.applyOperationToSyncPoints_(new me(ce.User,t,i))},t.prototype.ackUserWrite=function(t,e){void 0===e&&(e=!1);var n=this.pendingWriteTree_.getWrite(t);if(this.pendingWriteTree_.removeWrite(t)){var i=fe.Empty;return null!=n.snap?i=i.set(X.Empty,!0):M(n.children,(function(t,e){i=i.set(new X(t),e)})),this.applyOperationToSyncPoints_(new he(n.path,i,e))}return[]},t.prototype.applyServerOverwrite=function(t,e){return this.applyOperationToSyncPoints_(new pe(ce.Server,t,e))},t.prototype.applyServerMerge=function(t,e){var n=fe.fromObject(e);return this.applyOperationToSyncPoints_(new me(ce.Server,t,n))},t.prototype.applyListenComplete=function(t){return this.applyOperationToSyncPoints_(new de(ce.Server,t))},t.prototype.applyTaggedQueryOverwrite=function(e,n,i){var r=this.queryKeyForTag_(i);if(null!=r){var o=t.parseQueryKey_(r),a=o.path,s=o.queryId,u=X.relativePath(a,e),l=new pe(ce.forServerTaggedQuery(s),u,n);return this.applyTaggedOperation_(a,l)}return[]},t.prototype.applyTaggedQueryMerge=function(e,n,i){var r=this.queryKeyForTag_(i);if(r){var o=t.parseQueryKey_(r),a=o.path,s=o.queryId,u=X.relativePath(a,e),l=fe.fromObject(n),c=new me(ce.forServerTaggedQuery(s),u,l);return this.applyTaggedOperation_(a,c)}return[]},t.prototype.applyTaggedListenComplete=function(e,n){var i=this.queryKeyForTag_(n);if(i){var r=t.parseQueryKey_(i),o=r.path,a=r.queryId,s=X.relativePath(o,e),u=new de(ce.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,u)}return[]},t.prototype.addEventRegistration=function(e,n){var i=e.path,r=null,o=!1;this.syncPointTree_.foreachOnPath(i,(function(t,e){var n=X.relativePath(t,i);r=r||e.getCompleteServerCache(n),o=o||e.hasCompleteView()}));var a,u=this.syncPointTree_.get(i);u?(o=o||u.hasCompleteView(),r=r||u.getCompleteServerCache(X.Empty)):(u=new Ie,this.syncPointTree_=this.syncPointTree_.set(i,u)),null!=r?a=!0:(a=!1,r=Vt.EMPTY_NODE,this.syncPointTree_.subtree(i).foreachChild((function(t,e){var n=e.getCompleteServerCache(X.Empty);n&&(r=r.updateImmediateChild(t,n))}
1)));var l=u.viewExistsForQuery(e);if(!l&&!e.getQueryParams().loadsAllData()){var c=t.makeQueryKey_(e);s.assert(!this.queryToTagMap.has(c),"View does not exist, but we have a tag");var h=t.getNextQueryTag_();this.queryToTagMap.set(c,h),this.tagToQueryMap.set(h,c)}var f=this.pendingWriteTree_.childWrites(i),d=u.addEventRegistration(e,n,f,r,a);if(!l&&!o){var p=u.viewForQuery(e);d=d.concat(this.setupListener_(e,p))}return d},t.prototype.removeEventRegistration=function(e,n,i){var r=this,o=e.path,a=this.syncPointTree_.get(o),s=[];if(a&&("default"===e.queryIdentifier()||a.viewExistsForQuery(e))){var u=a.removeEventRegistration(e,n,i);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var l=u.removed;s=u.events;var c=-1!==l.findIndex((function(t){return t.getQueryParams().loadsAllData()})),h=this.syncPointTree_.findOnPath(o,(function(t,e){return e.hasCompleteView()}));if(c&&!h){var f=this.syncPointTree_.subtree(o);if(!f.isEmpty())for(var d=this.collectDistinctViewsForSubTree_(f),p=0;p<d.length;++p){var m=d[p],v=m.getQuery(),g=this.createListenerForView_(m);this.listenProvider_.startListening(t.queryForListening_(v),this.tagForQuery_(v),g.hashFn,g.onComplete)}}!h&&l.length>0&&!i&&(c?this.listenProvider_.stopListening(t.queryForListening_(e),null):l.forEach((function(e){var n=r.queryToTagMap.get(t.makeQueryKey_(e));r.listenProvider_.stopListening(t.queryForListening_(e),n)}))),this.removeTags_(l)}return s},t.prototype.calcCompleteEventCache=function(t,e){var n=this.pendingWriteTree_,i=this.syncPointTree_.findOnPath(t,(function(e,n){var i=X.relativePath(e,t),r=n.getCompleteServerCache(i);if(r)return r}));return n.calcCompleteEventCache(t,i,e,!0)},t.prototype.collectDistinctViewsForSubTree_=function(t){return t.fold((function(t,e,n){if(e&&e.hasCompleteView())return[e.getCompleteView()];var i=[];return e&&(i=e.getQueryViews()),M(n,(function(t,e){i=i.concat(e)})),i}))},t.prototype.removeTags_=function(e){for(var n=0;n<e.length;++n){var i=e[n];if(!i.getQueryParams().loadsAllData()){var r=t.makeQueryKey_(i),o=this.queryToTagMap.get(r);this.queryToTagMap.delete(r),this.tagToQueryMap.delete(o)}}},t.queryForListening_=function(t){return t.getQueryParams().loadsAllData()&&
1!t.getQueryParams().isDefault()?t.getRef():t},t.prototype.setupListener_=function(e,n){var i=e.path,r=this.tagForQuery_(e),o=this.createListenerForView_(n),a=this.listenProvider_.startListening(t.queryForListening_(e),r,o.hashFn,o.onComplete),u=this.syncPointTree_.subtree(i);if(r)s.assert(!u.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var l=u.fold((function(t,e,n){if(!t.isEmpty()&&e&&e.hasCompleteView())return[e.getCompleteView().getQuery()];var i=[];return e&&(i=i.concat(e.getQueryViews().map((function(t){return t.getQuery()})))),M(n,(function(t,e){i=i.concat(e)})),i})),c=0;c<l.length;++c){var h=l[c];this.listenProvider_.stopListening(t.queryForListening_(h),this.tagForQuery_(h))}return a},t.prototype.createListenerForView_=function(t){var e=this,n=t.getQuery(),i=this.tagForQuery_(n);return{hashFn:function(){return(t.getServerCache()||Vt.EMPTY_NODE).hash()},onComplete:function(t){if("ok"===t)return i?e.applyTaggedListenComplete(n.path,i):e.applyListenComplete(n.path);var r=function(t,e){var n="Unknown Error";"too_big"===t?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===t?n="Client doesn't have permission to access the desired data.":"unavailable"===t&&(n="The service is unavailable");var i=new Error(t+" at "+e.path.toString()+": "+n);return i.code=t.toUpperCase(),i}(t,n);return e.removeEventRegistration(n,null,r)}}},t.makeQueryKey_=function(t){return t.path.toString()+"$"+t.queryIdentifier()},t.parseQueryKey_=function(t){var e=t.indexOf("$");return s.assert(-1!==e&&e<t.length-1,"Bad queryKey."),{queryId:t.substr(e+1),path:new X(t.substr(0,e))}},t.prototype.queryKeyForTag_=function(t){return this.tagToQueryMap.get(t)},t.prototype.tagForQuery_=function(e){var n=t.makeQueryKey_(e);return this.queryToTagMap.get(n)},t.getNextQueryTag_=function(){return t.nextQueryTag_++},t.prototype.applyTaggedOperation_=function(t,e){var n=this.syncPointTree_.get(t);s.assert(n,"Missing sync point for query tag that we're tracking");var i=this.pendingWriteTree_.childWrites(t);return n.applyOperation(e,i,null)},t.prototype.applyOperationToSyncPoints_=function(t){return this.applyOperationHelper_(t,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(X.Empty))},t.prototype.applyOperationHelper_=function(t,e,n,i){if(t.path.isEmpty())return this.applyOperationDescendantsHelper_(t,e,n,i);var r=e.get(X.Empty);null==n&&null!=r&&(n=r.getCompleteServerCache(X.Empty));var o=[],a=t.path.getFront(),s=t.operationForChild(a),u=e.children.get(a);if(u&&s){var l=n?n.getImmediateChild(a):null,c=i.child(a);o=o.concat(this.applyOperationHelper_(s,u,l,c))}return r&&(o=o.concat(r.applyOperation(t,i,n))),o},t.prototype.applyOperationDescendantsHelper_=function(t,e,n,i){var r=this,o=e.get(X.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(X.Empty));var a=[];return e.children.inorderTraversal((function(e,o){var s=n?n.getImmediateChild(e):null,u=i.child(e),l=t.operationForChild(e);l&&(a=a.concat(r.applyOperationDescendantsHelper_(l,o,s,u)))})),o&&(a=a.concat(o.applyOperation(t,i,n))),a},t.nextQueryTag_=1,t}(),Pe=function(){function t(){this.rootNode_=Vt.EMPTY_NODE}return t.prototype.getNode=function(t){return this.rootNode_.getChild(t)},t.prototype.updateSnapshot=function(t,e){this.rootNode_=this.rootNode_.updateChild(t,e)},t}(),Re=function(){function t(t,e){var n=this;this.app_=t,this.authProvider_=e,this.auth_=null,this.auth_=e.getImmediate({optional:!0}),this.auth_||e.get().then((function(t){return n.auth_=t}))}return t.prototype.getToken=function(t){return this.auth_?this.auth_.getToken(t).catch((function(t){return t&&"auth/token-not-initialized"===t.code?(k("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(t)})):Promise.resolve(null)},t.prototype.addTokenChangeListener=function(t){this.auth_?this.auth_.addAuthTokenListener(t):(setTimeout((function(){return t(null)}),0),this.authProvider_.get().then((function(e){return e.addAuthTokenListener(t)})))},t.prototype.removeTokenChangeListener=function(t){this.authProvider_.get().then((function(e){return e.removeAuthTokenListener(t)}))},t.prototype.notifyForInvalidToken=function(){var t='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';E(t+="credential"in this.app_.options?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.')},t}(),Ne=function(){function t(){this.counters_={}}return t.prototype.incrementCounter=function(t,e){void 0===e&&(e=1),s.contains(this.counters_,t)||(this.counters_[t]=0),this.counters_[t]+=e},t.prototype.get=function(){return s.deepCopy(this.counters_)},t}(),Me=function(){function t(){}return t.getCollection=function(t){var e=t.toString();return this.collections_[e]||(this.collections_[e]=new Ne),this.collections_[e]},t.getOrCreateReporter=function(t,e){var n=t.toString();return this.reporters_[n]||(this.reporters_[n]=e()),this.reporters_[n]},t.collections_={},t.reporters_={},t}(),Fe=function(){function t(t){this.collection_=t,this.last_=null}return t.prototype.get=function(){var t=this.collection_.get(),e=a.__assign({},t);return this.last_&&M(this.last_,(function(t,n){e[t]=e[t]-n})),this.last_=t,e},t}(),Le=function(){function t(t,e){this.server_=e,this.statsToReport_={},this.statsListener_=new Fe(t);var n=1e4+2e4*Math.random();$(this.reportStats_.bind(this),Math.floor(n))}return t.prototype.includeStat=function(t){this.statsToReport_[t]=!0},t.prototype.reportStats_=function(){var t=this,e=this.statsListener_.get(),n={},i=!1;M(e,(function(e,r){r>0&&s.contains(t.statsToReport_,e)&&(n[e]=r,i=!0)})),i&&this.server_.reportStats(n),$(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},t}(),je=function(){function t(){this.eventLists_=[],this.recursionDepth_=0}return t.prototype.queueEvents=function(t){for(var e=null,n=0;n<t.length;n++){var i=t[n],r=i.getPath();null===e||r.equals(e.getPath())||(this.eventLists_.push(e),e=null),null===e&&(e=new Be(r)),e.add(i)}e&&this.eventLists_.push(e)},t.prototype.raiseEventsAtPath=function(t,e){this.queueEvents(e),this.raiseQueuedEventsMatchingPredicate_((function(e){return e.equals(t)}))},t.prototype.raiseEventsForChangedPath=function(t,e){this.queueEvents(e),this.raiseQueuedEventsMatchingPredicate_((function(e){return e.contains(t)||t.contains(e)}))},t.prototype.raiseQueuedEventsMatchingPredicate_=function(t){this.recursionDepth_++;for(var e=!0,n=0;n<this.eventLists_.length;n++){var i=this.eventLists_[n];i&&(t(i.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):e=!1)}e&&(this.eventLists_=[]),this.recursionDepth_--},t}(),Be=function(){function t(t){this.path_=t,this.events_=[]}
1return t.prototype.add=function(t){this.events_.push(t)},t.prototype.raise=function(){for(var t=0;t<this.events_.length;t++){var e=this.events_[t];if(null!==e){this.events_[t]=null;var n=e.getEventRunner();_&&k("event: "+e.toString()),Q(n)}}},t.prototype.getPath=function(){return this.path_},t}(),Ve=function(){function t(t){this.allowedEvents_=t,this.listeners_={},s.assert(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}return t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Array.isArray(this.listeners_[t]))for(var i=a.__spread(this.listeners_[t]),r=0;r<i.length;r++)i[r].callback.apply(i[r].context,e)},t.prototype.on=function(t,e,n){this.validateEventType_(t),this.listeners_[t]=this.listeners_[t]||[],this.listeners_[t].push({callback:e,context:n});var i=this.getInitialEvent(t);i&&e.apply(n,i)},t.prototype.off=function(t,e,n){this.validateEventType_(t);for(var i=this.listeners_[t]||[],r=0;r<i.length;r++)if(i[r].callback===e&&(!n||n===i[r].context))return void i.splice(r,1)},t.prototype.validateEventType_=function(t){s.assert(this.allowedEvents_.find((function(e){return e===t})),"Unknown event: "+t)},t}(),Ue=function(t){function e(){var e,n,i=t.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",e="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",e="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",e="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",e="webkitHidden")),i.visible_=!0,n&&document.addEventListener(n,(function(){var t=!document[e];t!==i.visible_&&(i.visible_=t,i.trigger("visible",t))}),!1),i}return a.__extends(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return s.assert("visible"===t,"Unknown event type: "+t),[this.visible_]},e}(Ve),He=function(t){function e(){var e=t.call(this,["online"])||this;return e.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||s.isMobileCordova()||(window.addEventListener("online",(function(){e.online_||(e.online_=!0,e.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){e.online_&&(e.online_=!1,e.trigger("online",!1))}),!1)),e}return a.__extends(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return s.assert("online"===t,"Unknown event type: "+t),[this.online_]},e.prototype.currentlyOnline=function(){return this.online_},e}(Ve),ze=function(){function t(t){this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return t.prototype.closeAfter=function(t,e){this.closeAfterResponse=t,this.onClose=e,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},t.prototype.handleResponse=function(t,e){var n=this;this.pendingResponses[t]=e;for(var i=function(){var t=r.pendingResponses[r.currentResponseNum];delete r.pendingResponses[r.currentResponseNum];for(var e=function(e){t[e]&&Q((function(){n.onMessage_(t[e])}))},i=0;i<t.length;++i)e(i);if(r.currentResponseNum===r.closeAfterResponse)return r.onClose&&(r.onClose(),r.onClose=null),"break";r.currentResponseNum++},r=this;this.pendingResponses[this.currentResponseNum]&&"break"!==i(););},t}(),qe=function(){function t(t,e,n,i){this.connId=t,this.repoInfo=e,this.transportSessionId=n,this.lastSessionId=i,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=C(t),this.stats_=Me.getCollection(e),this.urlFn=function(t){return e.connectionURL("long_polling",t)}}return t.prototype.open=function(t,e){var n=this;this.curSegmentNum=0,this.onDisconnect_=e,this.myPacketOrderer=new ze(t),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(t){if(s.isNodeSdk()||"complete"===document.readyState)t();else{var e=!1,n=function n(){document.body?e||(e=!0,t()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new We((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=a.__read(t,5),r=i[0],o=i[1],s=i[2];if(n.incrementIncomingBytes_(t),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===r)n.id=o,n.password=s;else{if("close"!==r)throw new Error("Unrecognized command received: "+r);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=a.__read(t,2),r=i[0],o=i[1];n.incrementIncomingBytes_(t),n.myPacketOrderer.handleResponse(r,o)}),(function(){n.onClosed_()}),n.urlFn);var t={start:"t"};t.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(t.cb=n.scriptTagHolder.uniqueCallbackIdentifier),t.v="5",n.transportSessionId&&(t.s=n.transportSessionId),n.lastSessionId&&(t.ls=n.lastSessionId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(t.r="f");var e=n.urlFn(t);n.log_("Connecting via long-poll to "+e),n.scriptTagHolder.addTag(e,(function(){}))}}))},t.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},t.forceAllow=function(){t.forceAllow_=!0},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){return!(s.isNodeSdk()||!t.forceAllow_&&(t.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},t.prototype.markConnectionHealthy=function(){},t.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},t.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},t.prototype.send=function(t){var e=s.stringify(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);
1for(var n=s.base64Encode(e),i=N(n,1840),r=0;r<i.length;r++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,i.length,i[r]),this.curSegmentNum++},t.prototype.addDisconnectPingFrame=function(t,e){if(!s.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=t,n.pw=e,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},t.prototype.incrementIncomingBytes_=function(t){var e=s.stringify(t).length;this.bytesReceived+=e,this.stats_.incrementCounter("bytes_received",e)},t}(),We=function(){function t(e,n,i,r){if(this.onDisconnect=i,this.urlFn=r,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,s.isNodeSdk())this.commandCB=e,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=v(),window["pLPCommand"+this.uniqueCallbackIdentifier]=e,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=t.createIFrame_();var o="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)&&(o='<script>document.domain="'+document.domain+'";<\/script>');var a="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(u){k("frame writing exception"),u.stack&&k(u.stack),k(u)}}}return t.createIFrame_=function(){var t=document.createElement("iframe");if(t.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(t);try{t.contentWindow.document||k("No IE domain setting required")}catch(n){var e=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+e+"';document.close();})())"}return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t},t.prototype.close=function(){var t=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)}),Math.floor(0)));var e=this.onDisconnect;e&&(this.onDisconnect=null,e())},t.prototype.startLongPoll=function(t,e){for(this.myID=t,this.myPW=e,this.alive=!0;this.newRequest_(););},t.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var t={};t.id=this.myID,t.pw=this.myPW,t.ser=this.currentSerial;for(var e=this.urlFn(t),n="",i=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+n.length<=1870;){var r=this.pendingSegs.shift();n=n+"&seg"+i+"="+r.seg+"&ts"+i+"="+r.ts+"&d"+i+"="+r.d,i++}return this.addLongPollTag_(e+=n,this.currentSerial),!0}return!1},t.prototype.enqueueSegment=function(t,e,n){this.pendingSegs.push({seg:t,ts:e,d:n}),this.alive&&this.newRequest_()},t.prototype.addLongPollTag_=function(t,e){var n=this;this.outstandingRequests.add(e);var i=function(){n.outstandingRequests.delete(e),n.newRequest_()},r=setTimeout(i,Math.floor(25e3));this.addTag(t,(function(){clearTimeout(r),i()}))},t.prototype.addTag=function(t,e){var n=this;s.isNodeSdk()?this.doNodeLongPoll(t,e):setTimeout((function(){try{if(!n.sendNewPolls)return;var i=n.myIFrame.doc.createElement("script");i.type="text/javascript",i.async=!0,i.src=t,i.onload=i.onreadystatechange=function(){var t=i.readyState;t&&"loaded"!==t&&"complete"!==t||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),e())},i.onerror=function(){k("Long-poll script failed to load: "+t),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(i)}catch(r){}}),Math.floor(1))},t}(),Ge="",Ke=null;"undefined"!=typeof MozWebSocket?Ke=MozWebSocket:"undefined"!=typeof WebSocket&&(Ke=WebSocket);var Ye=function(){function t(e,n,i,r){this.connId=e,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=C(this.connId),this.stats_=Me.getCollection(n),this.connURL=t.connectionURL_(n,i,r)}return t.connectionURL_=function(t,e,n){var i={v:"5"};return!s.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(i.r="f"),e&&(i.s=e),n&&(i.ls=n),t.connectionURL("websocket",i)},t.prototype.open=function(t,e){var n=this;this.onDisconnect=e,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,d.set("previous_websocket_failure",!0);try{if(s.isNodeSdk()){var i={headers:{"User-Agent":"Firebase/5/"+Ge+"/"+process.platform+"/"+(s.CONSTANTS.NODE_ADMIN?"AdminNode":"Node")}},r=process.env,o=0===this.connURL.indexOf("wss://")?r.HTTPS_PROXY||r.https_proxy:r.HTTP_PROXY||r.http_proxy;o&&(i.proxy={origin:o}),this.mySock=new Ke(this.connURL,[],i)}else this.mySock=new Ke(this.connURL)}catch(u){this.log_("Error instantiating WebSocket.");var a=u.message||u.data;return a&&this.log_(a),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
1,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(t){n.handleIncomingFrame(t)},this.mySock.onerror=function(t){n.log_("WebSocket error. Closing connection.");var e=t.message||t.data;e&&n.log_(e),n.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Ke&&!t.forceDisallow_},t.previouslyFailed=function(){return d.isInMemoryStorage||!0===d.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){d.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(t){if(this.frames.push(t),this.frames.length===this.totalFrames){var e=this.frames.join("");this.frames=null;var n=s.jsonEval(e);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(t){this.totalFrames=t,this.frames=[]},t.prototype.extractFrameCount_=function(t){if(s.assert(null===this.frames,"We already have a frame buffer"),t.length<=6){var e=Number(t);if(!isNaN(e))return this.handleNewFrameCount_(e),null}return this.handleNewFrameCount_(1),t},t.prototype.handleIncomingFrame=function(t){if(null!==this.mySock){var e=t.data;if(this.bytesReceived+=e.length,this.stats_.incrementCounter("bytes_received",e.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(e);else{var n=this.extractFrameCount_(e);null!==n&&this.appendFrame_(n)}}},t.prototype.send=function(t){this.resetKeepAlive();var e=s.stringify(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);var n=N(e,16384);n.length>1&&this.sendString_(String(n.length));for(var i=0;i<n.length;i++)this.sendString_(n[i])},t.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},t.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},t.prototype.resetKeepAlive=function(){var t=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){t.mySock&&t.sendString_("0"),t.resetKeepAlive()}),Math.floor(45e3))},t.prototype.sendString_=function(t){try{this.mySock.send(t)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},t.responsesRequiredToBeHealthy=2,t.healthyTimeout=3e4,t}(),Qe=function(){function t(t){this.initTransports_(t)}return Object.defineProperty(t,"ALL_TRANSPORTS",{get:function(){return[qe,Ye]},enumerable:!0,configurable:!0}),t.prototype.initTransports_=function(e){var n,i,r=Ye&&Ye.isAvailable(),o=r&&!Ye.previouslyFailed();if(e.webSocketOnly&&(r||E("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),o=!0),o)this.transports_=[Ye];else{var s=this.transports_=[];try{for(var u=a.__values(t.ALL_TRANSPORTS),l=u.next();!l.done;l=u.next()){var c=l.value;c&&c.isAvailable()&&s.push(c)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}},t.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},t.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},t}(),$e=function(){function t(t,e,n,i,r,o,a){this.id=t,this.repoInfo_=e,this.onMessage_=n,this.onReady_=i,this.onDisconnect_=r,this.onKill_=o,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=C("c:"+this.id+":"),this.transportManager_=new Qe(e),this.log_("Connection created"),this.start_()}return t.prototype.start_=function(){var t=this,e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),i=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){t.conn_&&t.conn_.open(n,i)}),Math.floor(0));var r=e.healthyTimeout||0;r>0&&(this.healthyTimeout_=$((function(){t.healthyTimeout_=null,t.isHealthy_||(t.conn_&&t.conn_.bytesReceived>
1102400?(t.log_("Connection exceeded healthy timeout but has received "+t.conn_.bytesReceived+" bytes. Marking connection healthy."),t.isHealthy_=!0,t.conn_.markConnectionHealthy()):t.conn_&&t.conn_.bytesSent>10240?t.log_("Connection exceeded healthy timeout but has sent "+t.conn_.bytesSent+" bytes. Leaving connection alive."):(t.log_("Closing unhealthy connection after timeout."),t.close()))}),Math.floor(r)))},t.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},t.prototype.disconnReceiver_=function(t){var e=this;return function(n){t===e.conn_?e.onConnectionLost_(n):t===e.secondaryConn_?(e.log_("Secondary connection lost."),e.onSecondaryConnectionLost_()):e.log_("closing an old connection")}},t.prototype.connReceiver_=function(t){var e=this;return function(n){2!==e.state_&&(t===e.rx_?e.onPrimaryMessageReceived_(n):t===e.secondaryConn_?e.onSecondaryMessageReceived_(n):e.log_("message on old connection"))}},t.prototype.sendRequest=function(t){this.sendData_({t:"d",d:t})},t.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},t.prototype.onSecondaryControl_=function(t){if("t"in t){var e=t.t;"a"===e?this.upgradeIfSecondaryHealthy_():"r"===e?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===e&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},t.prototype.onSecondaryMessageReceived_=function(t){var e=P("t",t),n=P("d",t);if("c"===e)this.onSecondaryControl_(n);else{if("d"!==e)throw new Error("Unknown protocol layer: "+e);this.pendingDataMessages.push(n)}},t.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},t.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},t.prototype.onPrimaryMessageReceived_=function(t){var e=P("t",t),n=P("d",t);"c"===e?this.onControl_(n):"d"===e&&this.onDataMessage_(n)},t.prototype.onDataMessage_=function(t){this.onPrimaryResponse_(),this.onMessage_(t)},t.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},t.prototype.onControl_=function(t){var e=P("t",t);if("d"in t){var n=t.d;if("h"===e)this.onHandshake_(n);else if("n"===e){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var i=0;i<this.pendingDataMessages.length;++i)this.onDataMessage_(this.pendingDataMessages[i]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===e?this.onConnectionShutdown_(n):"r"===e?this.onReset_(n):"e"===e?x("Server Error: "+n):"o"===e?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):x("Unknown control packet command: "+e)}},t.prototype.onHandshake_=function(t){var e=t.ts,n=t.v,i=t.h;this.sessionId=t.s,this.repoInfo_.updateHost(i),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,e),"5"!==n&&E("Protocol version mismatch detected"),this.tryStartUpgrade_())},t.prototype.tryStartUpgrade_=function(){var t=this.transportManager_.upgradeTransport();t&&this.startUpgrade_(t)},t.prototype.startUpgrade_=function(t){var e=this;this.secondaryConn_=new t(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),i=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,i),$((function(){e.secondaryConn_&&(e.log_("Timed out trying to upgrade."),e.secondaryConn_.close())}),Math.floor(6e4))},t.prototype.onReset_=function(t){this.log_("Reset packet received. New host: "+t),this.repoInfo_.updateHost(t),1===this.state_?this.close():(this.closeConnections_(),this.start_())},t.prototype.onConnectionEstablished_=function(t,e){var n=this;this.log_("Realtime connection established."),this.conn_=t,this.state_=1,this.onReady_&&(this.onReady_(e,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):$((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},t.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},t.prototype.onSecondaryConnectionLost_=function(){var t=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==t&&this.rx_!==t||this.close()},t.prototype.onConnectionLost_=function(t){this.conn_=null,t||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(d.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},t.prototype.onConnectionShutdown_=function(t){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(t),this.onKill_=null),this.onDisconnect_=null,this.close()},t.prototype.sendData_=function(t){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(t)},t.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},t.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},t}(),Xe=function(){function t(){}return t.prototype.put=function(t,e,n,i){},t.prototype.merge=function(t,e,n,i){},t.prototype.refreshAuthToken=function(t){},t.prototype.onDisconnectPut=function(t,e,n){},t.prototype.onDisconnectMerge=function(t,e,n){},t.prototype.onDisconnectCancel=function(t,e){},t.prototype.reportStats=function(t){},t}(),Ze=function(t){function e(n,i,r,o,a,u){var l=t.call(this)||this;if(l.repoInfo_=n,l.onDataUpdate_=i,l.onConnectStatus_=r,l.onServerInfoUpdate_=o,l.authTokenProvider_=a,l.authOverride_=u,l.id=e.nextPersistentConnectionId_++,l.log_=C("p:"+l.id+":"),l.interruptReasons_={},l.listens=new Map,l.outstandingPuts_=[],l.outstandingPutCount_=0,l.onDisconnectRequestQueue_=[],l.connected_=!1,l.reconnectDelay_=1e3,l.maxReconnectDelay_=3e5,l.securityDebugCallback_=null,l.lastSessionId=null,l.establishConnectionTimer_=null,l.visible_=!1,l.requestCBHash_={},l.requestNumber_=0,l.realtime_=null,l.authToken_=null,l.forceTokenRefresh_=!1,l.invali
1dAuthTokenCount_=0,l.firstConnection_=!0,l.lastConnectionAttemptTime_=null,l.lastConnectionEstablishedTime_=null,u&&!s.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return l.scheduleConnect_(0),Ue.getInstance().on("visible",l.onVisible_,l),-1===n.host.indexOf("fblocal")&&He.getInstance().on("online",l.onOnline_,l),l}return a.__extends(e,t),e.prototype.sendRequest=function(t,e,n){var i=++this.requestNumber_,r={r:i,a:t,b:e};this.log_(s.stringify(r)),s.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(r),n&&(this.requestCBHash_[i]=n)},e.prototype.listen=function(t,e,n,i){var r=t.queryIdentifier(),o=t.path.toString();this.log_("Listen called for "+o+" "+r),this.listens.has(o)||this.listens.set(o,new Map),s.assert(t.getQueryParams().isDefault()||!t.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),s.assert(!this.listens.get(o).has(r),"listen() called twice for same path/queryId.");var a={onComplete:i,hashFn:e,query:t,tag:n};this.listens.get(o).set(r,a),this.connected_&&this.sendListen_(a)},e.prototype.sendListen_=function(t){var n=this,i=t.query,r=i.path.toString(),o=i.queryIdentifier();this.log_("Listen on "+r+" for "+o);var a={p:r};t.tag&&(a.q=i.queryObject(),a.t=t.tag),a.h=t.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,u=a.s;e.warnOnListenWarnings_(s,i),(n.listens.get(r)&&n.listens.get(r).get(o))===t&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(r,o),t.onComplete&&t.onComplete(u,s))}))},e.warnOnListenWarnings_=function(t,e){if(t&&"object"==typeof t&&s.contains(t,"w")){var n=s.safeGet(t,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var i='".indexOn": "'+e.getQueryParams().getIndex().toString()+'"',r=e.path.toString();E("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+i+" at "+r+" to your security rules for better performance.")}}},e.prototype.refreshAuthToken=function(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(t)},e.prototype.reduceReconnectDelayIfAdminCredential_=function(t){(t&&40===t.length||s.isAdmin(t))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},e.prototype.tryAuth=function(){var t=this;if(this.connected_&&this.authToken_){var e=this.authToken_,n=s.isValidFormat(e)?"auth":"gauth",i={cred:e};null===this.authOverride_?i.noauth=!0:"object"==typeof this.authOverride_&&(i.authvar=this.authOverride_),this.sendRequest(n,i,(function(n){var i=n.s,r=n.d||"error";t.authToken_===e&&("ok"===i?t.invalidAuthTokenCount_=0:t.onAuthRevoked_(i,r))}))}},e.prototype.unlisten=function(t,e){var n=t.path.toString(),i=t.queryIdentifier();this.log_("Unlisten called for "+n+" "+i),s.assert(t.getQueryParams().isDefault()||!t.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,i)&&this.connected_&&this.sendUnlisten_(n,i,t.queryObject(),e)},e.prototype.sendUnlisten_=function(t,e,n,i){this.log_("Unlisten on "+t+" for "+e);var r={p:t};i&&(r.q=n,r.t=i),this.sendRequest("n",r)},e.prototype.onDisconnectPut=function(t,e,n){this.connected_?this.sendOnDisconnect_("o",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:e,onComplete:n})},e.prototype.onDisconnectMerge=function(t,e,n){this.connected_?this.sendOnDisconnect_("om",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:e,onComplete:n})},e.prototype.onDisconnectCancel=function(t,e){this.connected_?this.sendOnDisconnect_("oc",t,null,e):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:e})},e.prototype.sendOnDisconnect_=function(t,e,n,i){var r={p:e,d:n};this.log_("onDisconnect "+t,r),this.sendRequest(t,r,(function(t){i&&setTimeout((function(){i(t.s,t.d)}),Math.floor(0))}))},e.prototype.put=function(t,e,n,i){this.putInternal("p",t,e,n,i)},e.prototype.merge=function(t,e,n,i){this.putInternal("m",t,e,n,i)},e.prototype.putInternal=function(t,e,n,i,r){var o={p:e,d:n};void 0!==r&&(o.h=r),this.outstandingPuts_.push({action:t,request:o,onComplete:i}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+e)},e.prototype.sendPut_=function(t){var e=this,n=this.outstandingPuts_[t].action,i=this.outstandingPuts_[t].request,r=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(n,i,(function(i){e.log_(n+" response",i),delete e.outstandingPuts_[t],e.outstandingPutCount_--,0===e.outstandingPutCount_&&(e.outstandingPuts_=[]),r&&r(i.s,i.d)}))},e.prototype.reportStats=function(t){var e=this;if(this.connected_){var n={c:t};this.log_("reportStats",n),this.sendRequest("s",n,(function(t){"ok"!==t.s&&e.log_("reportStats","Error sending stats: "+t.d)}))}},e.prototype.onDataMessage_=function(t){if("r"in t){this.log_("from server: "+s.stringify(t));var e=t.r,n=this.requestCBHash_[e];n&&(delete this.requestCBHash_[e],n(t.b))}else{if("error"in t)throw"A server-side error has occurred: "+t.error;"a"in t&&this.onDataPush_(t.a,t.b)}},e.prototype.onDataPush_=function(t,e){this.log_("handleServerMessage",t,e),"d"===t?this.onDataUpdate_(e.p,e.d,!1,e.t):"m"===t?this.onDataUpdate_(e.p,e.d,!0,e.t):"c"===t?this.onListenRevoked_(e.p,e.q):"ac"===t?this.onAuthRevoked_(e.s,e.d):"sd"===t?this.onSecurityDebugPacket_(e):x("Unrecognized action received from server: "+s.stringify(t)+"\nAre you using the latest client?")},e.prototype.onReady_=function(t,e){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(t),this.lastSessionId=e,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},e.prototype.scheduleConnect_=function(t){var e=this;s.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){e.establishConnectionTimer_=null,e.establishConnection_()}),Math.floor(t))},e.prototype.onVisible_=function(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=t},e.prototype.onOnline_=function(t){t?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},e.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var t=(new Date).getTime()-this.lastConnectionAttemptTime_,e=Math.max(0,this.reconnectDelay_-t);
1e=Math.random()*e,this.log_("Trying to reconnect in "+e+"ms"),this.scheduleConnect_(e),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},e.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),i=this.onRealtimeDisconnect_.bind(this),r=this.id+":"+e.nextConnectionId_++,o=this,a=this.lastSessionId,u=!1,l=null,c=function(){l?l.close():(u=!0,i())};this.realtime_={close:c,sendRequest:function(t){s.assert(l,"sendRequest call when we're not connected not allowed."),l.sendRequest(t)}};var h=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(h).then((function(e){u?k("getToken() completed but was canceled"):(k("getToken() completed. Creating connection."),o.authToken_=e&&e.accessToken,l=new $e(r,o.repoInfo_,t,n,i,(function(t){E(t+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")}),a))})).then(null,(function(t){o.log_("Failed to get token: "+t),u||(s.CONSTANTS.NODE_ADMIN&&E(t),c())}))}},e.prototype.interrupt=function(t){k("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},e.prototype.resume=function(t){k("Resuming connection for reason: "+t),delete this.interruptReasons_[t],s.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},e.prototype.handleTimestamp_=function(t){var e=t-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:e})},e.prototype.cancelSentTransactions_=function(){for(var t=0;t<this.outstandingPuts_.length;t++){var e=this.outstandingPuts_[t];e&&"h"in e.request&&e.queued&&(e.onComplete&&e.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},e.prototype.onListenRevoked_=function(t,e){var n;n=e?e.map((function(t){return R(t)})).join("$"):"default";var i=this.removeListen_(t,n);i&&i.onComplete&&i.onComplete("permission_denied")},e.prototype.removeListen_=function(t,e){var n,i=new X(t).toString();if(this.listens.has(i)){var r=this.listens.get(i);n=r.get(e),r.delete(e),0===r.size&&this.listens.delete(i)}else n=void 0;return n},e.prototype.onAuthRevoked_=function(t,e){k("Auth token revoked: "+t+"/"+e),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==t&&"permission_denied"!==t||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},e.prototype.onSecurityDebugPacket_=function(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t.msg.replace("\n","\nFIREBASE: "))},e.prototype.restoreState_=function(){var t,e,n,i;this.tryAuth();try{for(var r=a.__values(this.listens.values()),o=r.next();!o.done;o=r.next()){var s=o.value;try{for(var u=(n=void 0,a.__values(s.values())),l=u.next();!l.done;l=u.next())this.sendListen_(l.value)}catch(f){n={error:f}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(d){t={error:d}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}for(var c=0;c<this.outstandingPuts_.length;c++)this.outstandingPuts_[c]&&this.sendPut_(c);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}},e.prototype.sendConnectStats_=function(){var t={},e="js";s.CONSTANTS.NODE_ADMIN?e="admin_node":s.CONSTANTS.NODE_CLIENT&&(e="node"),t["sdk."+e+"."+Ge.replace(/\./g,"-")]=1,s.isMobileCordova()?t["framework.cordova"]=1:s.isReactNative()&&(t["framework.reactnative"]=1),this.reportStats(t)},e.prototype.shouldReconnect_=function(){var t=He.getInstance().currentlyOnline();return s.isEmpty(this.interruptReasons_)&&t},e.nextPersistentConnectionId_=0,e.nextConnectionId_=0,e}(Xe),Je=function(t){function e(e,n,i){var r=t.call(this)||this;return r.repoInfo_=e,r.onDataUpdate_=n,r.authTokenProvider_=i,r.log_=C("p:rest:"),r.listens_={},r}return a.__extends(e,t),e.prototype.reportStats=function(t){throw new Error("Method not implemented.")},e.getListenId_=function(t,e){return void 0!==e?"tag$"+e:(s.assert(t.getQueryParams().isDefault(),"should have a tag if it's not a default query."),t.path.toString())},e.prototype.listen=function(t,n,i,r){var o=this,a=t.path.toString();this.log_("Listen called for "+a+" "+t.queryIdentifier());var u=e.getListenId_(t,i),l={};this.listens_[u]=l;var c=t.getQueryParams().toRestQueryStringParameters();this.restRequest_(a+".json",c,(function(t,e){var n=e;404===t&&(n=null,t=null),null===t&&o.onDataUpdate_(a,n,!1,i),s.safeGet(o.listens_,u)===l&&r(t?401===t?"permission_denied":"rest_error:"+t:"ok",null)}))},e.prototype.unlisten=function(t,n){var i=e.getListenId_(t,n);delete this.listens_[i]},e.prototype.refreshAuthToken=function(t){},e.prototype.restRequest_=function(t,e,n){var i=this;void 0===e&&(e={}),e.format="export",this.authTokenProvider_.getToken(!1).then((function(r){var o=r&&r.accessToken;o&&(e.auth=o);var a=(i.repoInfo_.secure?"https://":"http://")+i.repoInfo_.host+t+"?ns="+i.repoInfo_.namespace+s.querystring(e);i.log_("Sending REST request for "+a);var u=new XMLHttpRequest;u.onreadystatechange=function(){if(n&&4===u.readyState){i.log_("REST Response for "+a+" received. status:",u.status,"response:",u.responseText);var t=null;if(u.status>=200&&u.status<300){try{t=s.jsonEval(u.responseText)}catch(e){E("Failed to parse JSON response for "+a+": "+u.responseText)}n(null,t)}else 401!==u.status&&404!==u.status&&E("Got unsuccessful REST response for "+a+" Status: "+u.status),n(u.status);n=null}},u.open("GET",a,!0),u.send()}))},e}(Xe),tn=function(){function t(t,e,n,i){var r=this;this.repoInfo_=t,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new je,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new ue,this.persistentConnection_=null;var o=new Re(n,i);if(this.stats_=Me.getCollection(t),e||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Je(this.repoInfo_,this.onDataUpdate_.bind(this),o),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var a=n.options.databaseAuthVariableOverride;
1if(null!=a){if("object"!=typeof a)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{s.stringify(a)}catch(u){throw new Error("Invalid authOverride provided: "+u)}}this.persistentConnection_=new Ze(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),o,a),this.server_=this.persistentConnection_}o.addTokenChangeListener((function(t){r.server_.refreshAuthToken(t)})),this.statsReporter_=Me.getOrCreateReporter(t,(function(){return new Le(r.stats_,r.server_)})),this.transactionsInit_(),this.infoData_=new Pe,this.infoSyncTree_=new De({startListening:function(t,e,n,i){var o=[],a=r.infoData_.getNode(t.path);return a.isEmpty()||(o=r.infoSyncTree_.applyServerOverwrite(t.path,a),setTimeout((function(){i("ok")}),0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new De({startListening:function(t,e,n,i){return r.server_.listen(t,n,e,(function(e,n){var o=i(e,n);r.eventQueue_.raiseEventsForChangedPath(t.path,o)})),[]},stopListening:function(t,e){r.server_.unlisten(t,e)}})}return t.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},t.prototype.name=function(){return this.repoInfo_.namespace},t.prototype.serverTime=function(){var t=this.infoData_.getNode(new X(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t},t.prototype.generateServerValues=function(){return(t=(t={timestamp:this.serverTime()})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t},t.prototype.onDataUpdate_=function(t,e,n,i){this.dataUpdateCount++;var r=new X(t);e=this.interceptServerDataCallback_?this.interceptServerDataCallback_(t,e):e;var o=[];if(i)if(n){var a=s.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyTaggedQueryMerge(r,a,i)}else{var u=Ht(e);o=this.serverSyncTree_.applyTaggedQueryOverwrite(r,u,i)}else if(n){var l=s.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyServerMerge(r,l)}else{var c=Ht(e);o=this.serverSyncTree_.applyServerOverwrite(r,c)}var h=r;o.length>0&&(h=this.rerunTransactions_(r)),this.eventQueue_.raiseEventsForChangedPath(h,o)},t.prototype.interceptServerData_=function(t){this.interceptServerDataCallback_=t},t.prototype.onConnectStatus_=function(t){this.updateInfo_("connected",t),!1===t&&this.runOnDisconnectEvents_()},t.prototype.onServerInfoUpdate_=function(t){var e=this;M(t,(function(t,n){e.updateInfo_(t,n)}))},t.prototype.updateInfo_=function(t,e){var n=new X("/.info/"+t),i=Ht(e);this.infoData_.updateSnapshot(n,i);var r=this.infoSyncTree_.applyServerOverwrite(n,i);this.eventQueue_.raiseEventsForChangedPath(n,r)},t.prototype.getNextWriteId_=function(){return this.nextWriteId_++},t.prototype.setWithPriority=function(t,e,n,i){var r=this;this.log_("set",{path:t.toString(),value:e,priority:n});var o=this.generateServerValues(),a=Ht(e,n),s=this.serverSyncTree_.calcCompleteEventCache(t),u=re(a,s,o),l=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(t,u,l,!0);this.eventQueue_.queueEvents(c),this.server_.put(t.toString(),a.val(!0),(function(e,n){var o="ok"===e;o||E("set at "+t+" failed: "+e);var a=r.serverSyncTree_.ackUserWrite(l,!o);r.eventQueue_.raiseEventsForChangedPath(t,a),r.callOnCompleteCallback(i,e,n)}));var h=this.abortTransactions_(t);this.rerunTransactions_(h),this.eventQueue_.raiseEventsForChangedPath(h,[])},t.prototype.update=function(t,e,n){var i=this;this.log_("update",{path:t.toString(),value:e});var r=!0,o=this.generateServerValues(),a={};if(M(e,(function(e,n){r=!1,a[e]=ie(t.child(e),Ht(n),i.serverSyncTree_,o)})),r)k("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserMerge(t,a,s);this.eventQueue_.queueEvents(u),this.server_.merge(t.toString(),e,(function(e,r){var o="ok"===e;o||E("update at "+t+" failed: "+e);var a=i.serverSyncTree_.ackUserWrite(s,!o),u=a.length>0?i.rerunTransactions_(t):t;i.eventQueue_.raiseEventsForChangedPath(u,a),i.callOnCompleteCallback(n,e,r)})),M(e,(function(e){var n=i.abortTransactions_(t.child(e));i.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(t,[])}},t.prototype.runOnDisconnectEvents_=function(){var t=this;this.log_("onDisconnectEvents");var e=this.generateServerValues(),n=new ue;this.onDisconnect_.forEachTree(X.Empty,(function(i,r){var o=ie(i,r,t.serverSyncTree_,e);n.remember(i,o)}));var i=[];
1n.forEachTree(X.Empty,(function(e,n){i=i.concat(t.serverSyncTree_.applyServerOverwrite(e,n));var r=t.abortTransactions_(e);t.rerunTransactions_(r)})),this.onDisconnect_=new ue,this.eventQueue_.raiseEventsForChangedPath(X.Empty,i)},t.prototype.onDisconnectCancel=function(t,e){var n=this;this.server_.onDisconnectCancel(t.toString(),(function(i,r){"ok"===i&&n.onDisconnect_.forget(t),n.callOnCompleteCallback(e,i,r)}))},t.prototype.onDisconnectSet=function(t,e,n){var i=this,r=Ht(e);this.server_.onDisconnectPut(t.toString(),r.val(!0),(function(e,o){"ok"===e&&i.onDisconnect_.remember(t,r),i.callOnCompleteCallback(n,e,o)}))},t.prototype.onDisconnectSetWithPriority=function(t,e,n,i){var r=this,o=Ht(e,n);this.server_.onDisconnectPut(t.toString(),o.val(!0),(function(e,n){"ok"===e&&r.onDisconnect_.remember(t,o),r.callOnCompleteCallback(i,e,n)}))},t.prototype.onDisconnectUpdate=function(t,e,n){var i=this;if(s.isEmpty(e))return k("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(t.toString(),e,(function(r,o){"ok"===r&&M(e,(function(e,n){var r=Ht(n);i.onDisconnect_.remember(t.child(e),r)})),i.callOnCompleteCallback(n,r,o)}))},t.prototype.addEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.addEventRegistration(t,e):this.serverSyncTree_.addEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.removeEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.removeEventRegistration(t,e):this.serverSyncTree_.removeEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},t.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},t.prototype.stats=function(t){if(void 0===t&&(t=!1),"undefined"!=typeof console){var e;t?(this.statsListener_||(this.statsListener_=new Fe(this.stats_)),e=this.statsListener_.get()):e=this.stats_.get();var n=Object.keys(e).reduce((function(t,e){return Math.max(e.length,t)}),0);M(e,(function(t,e){for(var i=t,r=t.length;r<n+2;r++)i+=" ";console.log(i+e)}))}},t.prototype.statsIncrementCounter=function(t){this.stats_.incrementCounter(t),this.statsReporter_.includeStat(t)},t.prototype.log_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),k.apply(void 0,a.__spread([n],t))},t.prototype.callOnCompleteCallback=function(t,e,n){t&&Q((function(){if("ok"===e)t(null);else{var i=(e||"error").toUpperCase(),r=i;n&&(r+=": "+n);var o=new Error(r);o.code=i,t(o)}}))},Object.defineProperty(t.prototype,"database",{get:function(){return this.__database||(this.__database=new hn(this))},enumerable:!0,configurable:!0}),t}(),en=function(){function t(e){this.indexedFilter_=new _e(e.getIndex()),this.index_=e.getIndex(),this.startPost_=t.getStartPost_(e),this.endPost_=t.getEndPost_(e)}return t.prototype.getStartPost=function(){return this.startPost_},t.prototype.getEndPost=function(){return this.endPost_},t.prototype.matches=function(t){return this.index_.compare(this.getStartPost(),t)<=0&&this.index_.compare(t,this.getEndPost())<=0},t.prototype.updateChild=function(t,e,n,i,r,o){return this.matches(new wt(e,n))||(n=Vt.EMPTY_NODE),this.indexedFilter_.updateChild(t,e,n,i,r,o)},t.prototype.updateFullNode=function(t,e,n){e.isLeafNode()&&(e=Vt.EMPTY_NODE);var i=e.withIndex(this.index_);i=i.updatePriority(Vt.EMPTY_NODE);var r=this;return e.forEachChild(At,(function(t,e){r.matches(new wt(t,e))||(i=i.updateImmediateChild(t,Vt.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(t,i,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.indexedFilter_},t.prototype.getIndex=function(){return this.index_},t.getStartPost_=function(t){if(t.hasStart()){var e=t.getIndexStartName();return t.getIndex().makePost(t.getIndexStartValue(),e)}return t.getIndex().minPost()},t.getEndPost_=function(t){if(t.hasEnd()){var e=t.getIndexEndName();return t.getIndex().makePost(t.getIndexEndValue(),e)}return t.getIndex().maxPost()},t}
1(),nn=function(){function t(t){this.rangedFilter_=new en(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft()}return t.prototype.updateChild=function(t,e,n,i,r,o){return this.rangedFilter_.matches(new wt(e,n))||(n=Vt.EMPTY_NODE),t.getImmediateChild(e).equals(n)?t:t.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(t,e,n,i,r,o):this.fullLimitUpdateChild_(t,e,n,r,o)},t.prototype.updateFullNode=function(t,e,n){var i;if(e.isLeafNode()||e.isEmpty())i=Vt.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<e.numChildren()&&e.isIndexed(this.index_)){i=Vt.EMPTY_NODE.withIndex(this.index_);var r=void 0;r=this.reverse_?e.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):e.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;r.hasNext()&&o<this.limit_;){var a=r.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;i=i.updateImmediateChild(a.name,a.node),o++}}else{i=(i=e.withIndex(this.index_)).updatePriority(Vt.EMPTY_NODE);var s=void 0,u=void 0,l=void 0;if(r=void 0,this.reverse_){r=i.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),u=this.rangedFilter_.getStartPost();var c=this.index_.getCompare();l=function(t,e){return c(e,t)}}else r=i.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),u=this.rangedFilter_.getEndPost(),l=this.index_.getCompare();o=0;for(var h=!1;r.hasNext();)a=r.getNext(),!h&&l(s,a)<=0&&(h=!0),h&&o<this.limit_&&l(a,u)<=0?o++:i=i.updateImmediateChild(a.name,Vt.EMPTY_NODE)}return this.rangedFilter_.getIndexedFilter().updateFullNode(t,i,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},t.prototype.getIndex=function(){return this.index_},t.prototype.fullLimitUpdateChild_=function(t,e,n,i,r){var o;if(this.reverse_){var a=this.index_.getCompare();o=function(t,e){return a(e,t)}}else o=this.index_.getCompare();var u=t;s.assert(u.numChildren()===this.limit_,"");var l=new wt(e,n),c=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),h=this.rangedFilter_.matches(l);if(u.hasChild(e)){for(var f=u.getImmediateChild(e),d=i.getChildAfterChild(this.index_,c,this.reverse_);null!=d&&(d.name===e||u.hasChild(d.name));)d=i.getChildAfterChild(this.index_,d,this.reverse_);var p=null==d?1:o(d,l);if(h&&!n.isEmpty()&&p>=0)return null!=r&&r.trackChildChange(ye.childChangedChange(e,n,f)),u.updateImmediateChild(e,n);null!=r&&r.trackChildChange(ye.childRemovedChange(e,f));var m=u.updateImmediateChild(e,Vt.EMPTY_NODE);return null!=d&&this.rangedFilter_.matches(d)?(null!=r&&r.trackChildChange(ye.childAddedChange(d.name,d.node)),m.updateImmediateChild(d.name,d.node)):m}return n.isEmpty()?t:h&&o(c,l)>=0?(null!=r&&(r.trackChildChange(ye.childRemovedChange(c.name,c.node)),r.trackChildChange(ye.childAddedChange(e,n))),u.updateImmediateChild(e,n).updateImmediateChild(c.name,Vt.EMPTY_NODE)):t},t}(),rn=function(){function t(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=At}return t.prototype.hasStart=function(){return this.startSet_},t.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},t.prototype.getIndexStartValue=function(){return s.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},t.prototype.getIndexStartName=function(){return s.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:A},t.prototype.hasEnd=function(){return this.endSet_},t.prototype.getIndexEndValue=function(){return s.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},t.prototype.getIndexEndName=function(){return s.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:T},t.prototype.hasLimit=function(){return this.limitSet_},t.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},t.prototype.getLimit=function(){return s.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},t.prototype.getIndex=function(){return this.index_},t.prototype.copy_=function(){var e=new t;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e},t.prototype.limit=function(t){var e=this.copy_();return e.limitSet_=!0,e.limit_=t,e.viewFrom_="",e},t.prototype.limitToFirst=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},t.prototype.limitToLast=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},t.prototype.startAt=function(t,e){var n=this.copy_();return n.startSet_=!0,void 0===t&&(t=null),n.indexStartValue_=t,null!=e?(n.startNameSet_=!0,n.indexStartName_=e):(n.startNameSet_=!1,n.indexStartName_=""),n},t.prototype.endAt=function(t,e){var n=this.copy_();return n.endSet_=!0,void 0===t&&(t=null),n.indexEndValue_=t,void 0!==e?(n.endNameSet_=!0,n.indexEndName_=e):(n.endNameSet_=!1,n.indexEndName_=""),n},t.prototype.orderBy=function(t){var e=this.copy_();return e.index_=t,e},t.prototype.getQueryObject=function(){var e=t.WIRE_PROTOCOL_CONSTANTS_,n={};
1if(this.startSet_&&(n[e.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[e.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[e.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[e.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[e.LIMIT]=this.limit_;var i=this.viewFrom_;""===i&&(i=this.isViewFromLeft()?e.VIEW_FROM_LEFT:e.VIEW_FROM_RIGHT),n[e.VIEW_FROM]=i}return this.index_!==At&&(n[e.INDEX]=this.index_.toString()),n},t.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},t.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===At},t.prototype.getNodeFilter=function(){return this.loadsAllData()?new _e(this.getIndex()):this.hasLimit()?new nn(this):new en(this)},t.prototype.toRestQueryStringParameters=function(){var e,n=t.REST_QUERY_CONSTANTS_,i={};return this.isDefault()||(this.index_===At?e=n.PRIORITY_INDEX:this.index_===qt?e=n.VALUE_INDEX:this.index_===xt?e=n.KEY_INDEX:(s.assert(this.index_ instanceof Wt,"Unrecognized index type!"),e=this.index_.toString()),i[n.ORDER_BY]=s.stringify(e),this.startSet_&&(i[n.START_AT]=s.stringify(this.indexStartValue_),this.startNameSet_&&(i[n.START_AT]+=","+s.stringify(this.indexStartName_))),this.endSet_&&(i[n.END_AT]=s.stringify(this.indexEndValue_),this.endNameSet_&&(i[n.END_AT]+=","+s.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?i[n.LIMIT_TO_FIRST]=this.limit_:i[n.LIMIT_TO_LAST]=this.limit_)),i},t.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},t.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},t.DEFAULT=new t,t}(),on=function(t){function e(e,n){if(!(e instanceof tn))throw new Error("new Reference() no longer supported - use app.database().");return t.call(this,e,n,rn.DEFAULT,!1)||this}return a.__extends(e,t),e.prototype.getKey=function(){return s.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},e.prototype.child=function(t){return s.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof t?t=String(t):t instanceof X||(null===this.path.getFront()?pt("Reference.child",1,t,!1):dt("Reference.child",1,t,!1)),new e(this.repo,this.path.child(t))},e.prototype.getParent=function(){s.validateArgCount("Reference.parent",0,0,arguments.length);var t=this.path.parent();return null===t?null:new e(this.repo,t)},e.prototype.getRoot=function(){s.validateArgCount("Reference.root",0,0,arguments.length);for(var t=this;null!==t.getParent();)t=t.getParent();return t},e.prototype.databaseProp=function(){return this.repo.database},e.prototype.set=function(t,e){s.validateArgCount("Reference.set",1,2,arguments.length),mt("Reference.set",this.path),st("Reference.set",1,t,this.path,!1),s.validateCallback("Reference.set",2,e,!0);var n=new s.Deferred;return this.repo.setWithPriority(this.path,t,null,n.wrapCallback(e)),n.promise},e.prototype.update=function(t,e){if(s.validateArgCount("Reference.update",1,2,arguments.length),mt("Reference.update",this.path),Array.isArray(t)){for(var n={},i=0;i<t.length;++i)n[""+i]=t[i];t=n,E("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}lt("Reference.update",1,t,this.path,!1),s.validateCallback("Reference.update",2,e,!0);var r=new s.Deferred;return this.repo.update(this.path,t,r.wrapCallback(e)),r.promise},e.prototype.setWithPriority=function(t,e,n){if(s.validateArgCount("Reference.setWithPriority",2,3,arguments.length),mt("Reference.setWithPriority",this.path),st("Reference.setWithPriority",1,t,this.path,!1),ct("Reference.setWithPriority",2,e,!1),s.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var i=new s.Deferred;return this.repo.setWithPriority(this.path,t,e,i.wrapCallback(n)),i.promise},e.prototype.remove=function(t){return s.validateArgCount("Reference.remove",0,1,arguments.length),mt("Reference.remove",this.path),s.validateCallback("Reference.remove",1,t,!0),this.set(null,t)},e.prototype.transaction=function(t,e,n){if(s.validateArgCount("Reference.transaction",1,3,arguments.length),mt("Reference.transaction",this.path),s.validateCallback("Reference.transaction",1,t,!1),s.validateCallback("Reference.transaction",2,e,!0),gt("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var i=new s.Deferred;"function"==typeof e&&i.promise.catch((function(){}));var r=function(t,n,r){t?i.reject(t):i.resolve(new _t(n,r)),"function"==typeof e&&e(t,n,r)};return this.repo.startTransaction(this.path,t,r,n),i.promise},e.prototype.setPriority=function(t,e){s.validateArgCount("Reference.setPriority",1,2,arguments.length),mt("Reference.setPriority",this.path),ct("Reference.setPriority",1,t,!1),s.validateCallback("Reference.setPriority",2,e,!0);var n=new s.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),t,null,n.wrapCallback(e)),n.promise},e.prototype.push=function(t,e){s.validateArgCount("Reference.push",0,2,arguments.length),mt("Reference.push",this.path),st("Reference.push",1,t,this.path,!0),s.validateCallback("Reference.push",2,e,!0);var n,i=this.repo.serverTime(),r=bt(i),o=this.child(r),a=this.child(r);return n=null!=t?o.set(t,e).then((function(){return a})):Promise.resolve(a),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"==typeof e&&n.catch((function(){})),o},e.prototype.onDisconnect=function(){return mt("Reference.onDisconnect",this.path),new yt(this.repo,this.path)},Object.defineProperty(e.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),e}(Xt);Xt.__referenceConstructor=on,Ie.__referenceConstructor=on;var an=function(){this.children={},this.childCount=0,this.value=null},sn=function(){function t(t,e,n){void 0===t&&(t=""),void 0===e&&(e=null),void 0===n&&(n=new an),this.name_=t,this.parent_=e,this.node_=n}return t.prototype.subTree=function(e){for(var n=e instanceof X?e:new X(e),i=this,r=n.getFront();null!==r;)i=new t(r,i,s.safeGet(i.node_.children,r)||new an),r=(n=n.popFront()).getFront();return i},t.prototype.getValue=function(){return this.node_.value},t.prototype.setValue=function(t){s.assert(void 0!==t,"Cannot set value to undefined"),this.node_.value=t,this.updateParents_()},t.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},t.prototype.hasChildren=function(){return this.node_.childCount>0},t.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},t.prototype.forEachChild=function(e){var n=this;M(this.node_.children,(function(i,r){e(new t(i,n,r))}))},t.prototype.forEachDescendant=function(t,e,n){e&&!n&&t(this),this.forEachChild((function(e){e.forEachDescendant(t,!0,n)})),e&&n&&t(this)},t.prototype.forEachAncestor=function(t,e){for(var n=e?this:this.parent();null!==n;){if(t(n))return!0;n=n.parent()}return!1},t.prototype.forEachImmediateDescendantWithValue=function(t){this.forEachChild((function(e){null!==e.getValue()?t(e):e.forEachImmediateDescendantWithValue(t)}))},t.prototype.path=function(){return new X(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},t.prototype.name=function(){return this.name_},t.prototype.parent=function(){return this.parent_},t.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},t.prototype.updateChild_=function(t,e){var n=e.isEmpty(),i=s.contains(this.node_.children,t);n&&i?(delete this.node_.children[t],this.node_.childCount--,this.updateParents_()):n||i||(this.node_.children[t]=e.node_,this.node_.childCount++,this.updateParents_())},t}(),un=function(t){return t[t.RUN=0]="RUN",t[t.SENT=1]="SENT",t[t.COMPLETED=2]="COMPLETED",t[t.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",t[t.NEEDS_ABORT=4]="NEEDS_ABORT",t}({});tn.MAX_TRANSACTION_RETRIES_=25,tn.prototype.transactionsInit_=function(){this.transactionQueueTree_=new sn},tn.prototype.startTransaction=function(t,e,n,i){this.log_("transaction on "+t);var r=function(){},o=new on(this,t);o.on("value",r);var a={path:t,update:e,onComplete:n,status:null,order:v(),applyLocally:i,retryCount:0,unwatcher:function(){o.off("value",r)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=this.getLatestState_(t);a.currentInputSnapshot=u;var l=a.update(u.val());if(void 0===l){if(a.unwatcher(),a.currentOutputSnapshotRaw=null,a.currentOutputSnapshotResolved=null,a.onComplete){var c=new Gt(a.currentInputSnapshot,new on(this,a.path),At);a.onComplete(null,!1,c)}}else{ut("transaction failed: Data returned ",l,a.path),a.status=un.RUN;var h=this.transactionQueueTree_.subTree(t),f=h.getValue()||[];f.push(a),h.setValue(f);var d=void 0;"object"==typeof l&&null!==l&&s.contains(l,".priority")?(d=s.safeGet(l,".priority"),s.assert(at(d),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):d=(this.serverSyncTree_.calcCompleteEventCache(t)||Vt.EMPTY_NODE).getPriority().val(),d=d;var p=this.generateServerValues(),m=Ht(l,d),g=re(m,u,p);a.currentOutputSnapshotRaw=m,a.currentOutputSnapshotResolved=g,a.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(t,g,a.currentWriteId,a.applyLocally);this.eventQueue_.raiseEventsForChangedPath(t,y),this.sendReadyTransactions_()}},tn.prototype.getLatestState_=function(t,e){return this.serverSyncTree_.calcCompleteEventCache(t,e)||Vt.EMPTY_NODE},tn.prototype.sendReadyTransactions_=function(t){var e=this;if(void 0===t&&(t=this.transactionQueueTree_),t||this.pruneCompletedTransactionsBelowNode_(t),null!==t.getValue()){var n=this.buildTransactionQueue_(t);s.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(t){return t.status===un.RUN}))&&this.sendTransactionQueue_(t.path(),n)}else t.hasChildren()&&t.forEachChild((function(t){e.sendReadyTransactions_(t)}))},tn.prototype.sendTransactionQueue_=function(t,e){for(var n=this,i=e.map((function(t){return t.currentWriteId})),r=this.getLatestState_(t,i),o=r,a=r.hash(),u=0;u<e.length;u++){var l=e[u];s.assert(l.status===un.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),l.status=un.SENT,l.retryCount++;var c=X.relativePath(t,l.path);o=o.updateChild(c,l.currentOutputSnapshotRaw)}var h=o.val(!0),f=t;this.server_.put(f.toString(),h,(function(i){n.log_("transaction put response",{path:f.toString(),status:i});var r=[];if("ok"===i){for(var o=[],a=0;a<e.length;a++){if(e[a].status=un.COMPLETED,r=r.concat(n.serverSyncTree_.ackUserWrite(e[a].currentWriteId)),e[a].onComplete){var s=e[a].currentOutputSnapshotResolved,u=new on(n,e[a].path),l=new Gt(s,u,At);o.push(e[a].onComplete.bind(null,null,!0,l))}e[a].unwatcher()}for(n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(t)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(t,r),a=0;a<o.length;a++)Q(o[a])}else{if("datastale"===i)for(a=0;a<e.length;a++)e[a].status=e[a].status===un.SENT_NEEDS_ABORT?un.NEEDS_ABORT:un.RUN;else for(E("transaction at "+f.toString()+" failed: "+i),a=0;a<e.length;a++)e[a].status=un.NEEDS_ABORT,e[a].abortReason=i;n.rerunTransactions_(t)}}),a)},tn.prototype.rerunTransactions_=function(t){var e=this.getAncestorTransactionNode_(t),n=e.path(),i=this.buildTransactionQueue_(e);return this.rerunTransactionQueue_(i,n),n},tn.prototype.rerunTransactionQueue_=function(t,e){if(0!==t.length){for(var n=[],i=[],r=t.filter((function(t){return t.status===un.RUN})).map((function(t){return t.currentWriteId})),o=0;o<t.length;
1o++){var a=t[o],u=X.relativePath(e,a.path),l=!1,c=void 0;if(s.assert(null!==u,"rerunTransactionsUnderNode_: relativePath should not be null."),a.status===un.NEEDS_ABORT)l=!0,c=a.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0));else if(a.status===un.RUN)if(a.retryCount>=tn.MAX_TRANSACTION_RETRIES_)l=!0,c="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0));else{var h=this.getLatestState_(a.path,r);a.currentInputSnapshot=h;var f=t[o].update(h.val());if(void 0!==f){ut("transaction failed: Data returned ",f,a.path);var d=Ht(f);"object"==typeof f&&null!=f&&s.contains(f,".priority")||(d=d.updatePriority(h.getPriority()));var p=a.currentWriteId,m=this.generateServerValues(),v=re(d,h,m);a.currentOutputSnapshotRaw=d,a.currentOutputSnapshotResolved=v,a.currentWriteId=this.getNextWriteId_(),r.splice(r.indexOf(p),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(a.path,v,a.currentWriteId,a.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(p,!0))}else l=!0,c="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(e,i),i=[],l&&(t[o].status=un.COMPLETED,setTimeout(t[o].unwatcher,Math.floor(0)),t[o].onComplete))if("nodata"===c){var g=new on(this,t[o].path),y=new Gt(t[o].currentInputSnapshot,g,At);n.push(t[o].onComplete.bind(null,null,!1,y))}else n.push(t[o].onComplete.bind(null,new Error(c),!1,null))}for(this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_),o=0;o<n.length;o++)Q(n[o]);this.sendReadyTransactions_()}},tn.prototype.getAncestorTransactionNode_=function(t){var e,n=this.transactionQueueTree_;for(e=t.getFront();null!==e&&null===n.getValue();)n=n.subTree(e),e=(t=t.popFront()).getFront();return n},tn.prototype.buildTransactionQueue_=function(t){var e=[];return this.aggregateTransactionQueuesForNode_(t,e),e.sort((function(t,e){return t.order-e.order})),e},tn.prototype.aggregateTransactionQueuesForNode_=function(t,e){var n=this,i=t.getValue();if(null!==i)for(var r=0;r<i.length;r++)e.push(i[r]);t.forEachChild((function(t){n.aggregateTransactionQueuesForNode_(t,e)}))},tn.prototype.pruneCompletedTransactionsBelowNode_=function(t){var e=this,n=t.getValue();if(n){for(var i=0,r=0;r<n.length;r++)n[r].status!==un.COMPLETED&&(n[i]=n[r],i++);n.length=i,t.setValue(n.length>0?n:null)}t.forEachChild((function(t){e.pruneCompletedTransactionsBelowNode_(t)}))},tn.prototype.abortTransactions_=function(t){var e=this,n=this.getAncestorTransactionNode_(t).path(),i=this.transactionQueueTree_.subTree(t);return i.forEachAncestor((function(t){e.abortTransactionsOnNode_(t)})),this.abortTransactionsOnNode_(i),i.forEachDescendant((function(t){e.abortTransactionsOnNode_(t)})),n},tn.prototype.abortTransactionsOnNode_=function(t){var e=t.getValue();if(null!==e){for(var n=[],i=[],r=-1,o=0;o<e.length;o++)e[o].status===un.SENT_NEEDS_ABORT||(e[o].status===un.SENT?(s.assert(r===o-1,"All SENT items should be at beginning of queue."),r=o,e[o].status=un.SENT_NEEDS_ABORT,e[o].abortReason="set"):(s.assert(e[o].status===un.RUN,"Unexpected transaction status in abort"),e[o].unwatcher(),i=i.concat(this.serverSyncTree_.ackUserWrite(e[o].currentWriteId,!0)),e[o].onComplete&&n.push(e[o].onComplete.bind(null,new Error("set"),!1,null))));for(-1===r?t.setValue(null):e.length=r+1,this.eventQueue_.raiseEventsForChangedPath(t.path(),i),o=0;o<n.length;o++)Q(n[o])}};var ln,cn=function(){function t(){this.repos_={},this.useRestClient_=!1}return t.getInstance=function(){return ln||(ln=new t),ln},t.prototype.interrupt=function(){var t,e,n,i;try{for(var r=a.__values(Object.keys(this.repos_)),o=r.next();!o.done;o=r.next()){var s=o.value;try{for(var u=(n=void 0,a.__values(Object.keys(this.repos_[s]))),l=u.next();!l.done;l=u.next())this.repos_[s][l.value].interrupt()}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(h){t={error:h}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.resume=function(){var t,e,n,i;try{for(var r=a.__values(Object.keys(this.repos_)),o=r.next();!o.done;o=r.next()){var s=o.value;try{for(var u=(n=void 0,a.__values(Object.keys(this.repos_[s]))),l=u.next();!l.done;l=u.next())this.repos_[s][l.value].resume()}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(h){t={error:h}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.databaseFromApp=function(t,e,n){var i=n||t.options.databaseURL;void 0===i&&S("Can't determine Firebase Database URL. Be sure to include databaseURL option when calling firebase.initializeApp().");var r=tt(i),o=r.repoInfo,a=void 0;return"undefined"!=typeof process&&(a=process.env.FIREBASE_DATABASE_EMULATOR_HOST),a&&(o=(r=tt(i="http://"+a+"?ns="+o.namespace)).repoInfo),vt("Invalid Firebase Database URL",1,r),r.path.isEmpty()||S("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(o,t,e).database},t.prototype.deleteRepo=function(t){var e=s.safeGet(this.repos_,t.app.name);e&&s.safeGet(e,t.repoInfo_.toURLString())===t||S("Database "+t.app.name+"("+t.repoInfo_+") has already been deleted."),t.interrupt(),delete e[t.repoInfo_.toURLString()]},t.prototype.createRepo=function(t,e,n){var i=s.safeGet(this.repos_,e.name);i||(this.repos_[e.name]=i={});var r=s.safeGet(i,t.toURLString());return r&&S("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),r=new tn(t,this.useRestClient_,e,n),i[t.toURLString()]=r,r},t.prototype.forceRestClient=function(t){this.useRestClient_=t},t}(),hn=function(){function t(t){this.repo_=t,t instanceof tn||S("Don't call new Database() directly - please use firebase.database()."),this.root_=new on(t,X.Empty),this.INTERNAL=new fn(this)}return Object.defineProperty(t.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),t.prototype.ref=function(t){return this.checkDeleted_("ref"),s.validateArgCount("database.ref",0,1,arguments.length),t instanceof on?this.refFromURL(t.toString()):void 0!==t?this.root_.child(t):this.root_},t.prototype.refFromURL=function(t){var e="database.refFromURL";this.checkDeleted_(e),s.validateArgCount(e,1,1,arguments.length);var n=tt(t);vt(e,1,n);var i=n.repoInfo;return i.host!==this.repo_.repoInfo_.host&&S(e+": Host name does not match the current database: (found "+i.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},t.prototype.checkDeleted_=function(t){null===this.repo_&&S("Cannot call "+t+" on a deleted database.")},t.prototype.goOffline=function(){s.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},t.prototype.goOnline=function(){s.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},t.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(t){return{".sv":{increment:t}}}},t}(),fn=function(){function t(t){this.database=t}return t.prototype.delete=function(){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(t){return this.database.checkDeleted_("delete"),cn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}
1))},t}(),dn=Object.freeze({__proto__:null,forceLongPolling:function(){Ye.forceDisallow(),qe.forceAllow()},forceWebSockets:function(){qe.forceDisallow()},isWebSocketsAvailable:function(){return Ye.isAvailable()},setSecurityDebugCallback:function(t,e){t.repo.persistentConnection_.securityDebugCallback_=e},stats:function(t,e){t.repo.stats(e)},statsIncrementCounter:function(t,e){t.repo.statsIncrementCounter(e)},dataUpdateCount:function(t){return t.repo.dataUpdateCount},interceptServerData:function(t,e){return t.repo.interceptServerData_(e)}}),pn=Ze;Ze.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)},Ze.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};var mn=Object.freeze({__proto__:null,DataConnection:pn,RealTimeConnection:$e,hijackHash:function(t){var e=Ze.prototype.put;return Ze.prototype.put=function(n,i,r,o){void 0!==o&&(o=t()),e.call(this,n,i,r,o)},function(){Ze.prototype.put=e}},ConnectionTarget:J,queryIdentifier:function(t){return t.queryIdentifier()},forceRestClient:function(t){cn.getInstance().forceRestClient(t)}}),vn=hn.ServerValue;function gn(e){Ge=e.SDK_VERSION;var n=e.INTERNAL.registerComponent(new l.Component("database",(function(t,e){var n=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal");return cn.getInstance().databaseFromApp(n,i,e)}),"PUBLIC").setServiceProps({Reference:on,Query:Xt,Database:hn,DataSnapshot:Gt,enableLogging:w,INTERNAL:dn,ServerValue:vn,TEST_ACCESS:mn}).setMultipleInstances(!0));e.registerVersion("@firebase/database","0.6.3"),s.isNodeSdk()&&(t.exports=n)}gn(o),e.DataSnapshot=Gt,e.Database=hn,e.OnDisconnect=yt,e.Query=Xt,e.Reference=on,e.ServerValue=vn,e.enableLogging=w,e.registerDatabase=gn},UaQO:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n("XVEb"),o=(i=n("0KrK"))&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("with",(function(t,e){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");r.isFunction(t)&&(t=t.call(this));var n=e.fn;if(r.isEmpty(t))return e.inverse(this);var i=e.data;return e.data&&e.ids&&((i=r.createFrame(e.data)).contextPath=r.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:i,blockParams:r.blockParams([t],[i&&i.contextPath])})}))},t.exports=e.default},UlAd:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
vendor: 5,737 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},V4YE:function(t,e,n){"use strict";
1e.__esModule=!0;var i,r=(i=n("0KrK"))&&i.__esModule?i:{default:i};function o(){this.parents=[]}function a(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function s(t){a.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function u(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}o.prototype={constructor:o,mutating:!1,acceptKey:function(t,e){var n=this.accept(t[e]);if(this.mutating){if(n&&!o.prototype[n.type])throw new r.default('Unexpected node type "'+n.type+'" found when accepting '+e+" on "+t.type);t[e]=n}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new r.default(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,n=t.length;e<n;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,n--)},accept:function(t){if(t){if(!this[t.type])throw new r.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:a,Decorator:a,BlockStatement:s,DecoratorBlock:s,PartialStatement:u,PartialBlockStatement:function(t){u.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},e.default=o,t.exports=e.default},VTm5:function(t,e,n){"use strict";function i(t){this.string=t}e.__esModule=!0,i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},e.default=i,t.exports=e.default},WRB3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("pD9t"),r=n("82Ps"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),a=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new r.Deferred;this.instancesDeferred.set(e,n);try{var i=this.getOrInitializeService(e);i&&n.resolve(i)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=i.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.optional,r=this.normalizeInstanceIdentifier(e.identifier);try{var o=this.getOrInitializeService(r);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(a){if(n)return null;throw a}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(c){}try{for(var r=i.__values(this.instancesDeferred.entries()),o=r.next();!o.done;o=r.next()){var a=i.__read(o.value,2),s=a[1],u=this.normalizeInstanceIdentifier(a[0]);try{var l=this.getOrInitializeService(u);s.resolve(l)}catch(c){}}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}(),s=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new a(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=s,e.Provider=a},XIqf:function(t,e,n){"use strict";n.r(e),n.d(e,"registerInstallations",(function(){return X}));var i=n("plFh"),r=n.n(i),o=n("WRB3"),a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
1function s(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function l(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}var h,f=n("82Ps"),d=n("UH1A"),p=((h={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',h["not-registered"]="Firebase Installation is not registered.",h["installation-not-found"]="Firebase Installation not found.",h["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',h["app-offline"]="Could not process request. Application offline.",h["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",h),m=new f.ErrorFactory("installations","Installations",p);function v(t){return t instanceof f.FirebaseError&&t.code.includes("request-failed")}function g(t){return"https://firebaseinstallations.googleapis.com/v1/projects/"+t.projectId+"/installations"}function y(t){return{token:t.token,requestStatus:2,expiresIn:(e=t.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()};var e}function _(t,e){return s(this,void 0,void 0,(function(){var n,i;return u(this,(function(r){switch(r.label){case 0:return[4,e.json()];case 1:return n=r.sent(),[2,m.create("request-failed",{requestName:t,serverCode:(i=n.error).code,serverMessage:i.message,serverStatus:i.status})]}}))}))}function b(t){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey})}function w(t,e){var n=e.refreshToken,i=b(t);return i.append("Authorization",function(t){return"FIS_v2 "+t}(n)),i}function k(t){return s(this,void 0,void 0,(function(){var e;return u(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return(e=n.sent()).status>=500&&e.status<600?[2,t()]:[2,e]}}))}))}function C(t,e){var n=e.fid;return s(this,void 0,void 0,(function(){var e,i,r,o,a;return u(this,(function(s){switch(s.label){case 0:return e=g(t),i=b(t),r={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:"FIS_v2",appId:t.appId,sdkVersion:"w:0.4.10"})},[4,k((function(){return fetch(e,r)}))];case 1:return(o=s.sent()).ok?[4,o.json()]:[3,3];case 2:return[2,{fid:(a=s.sent()).fid||n,registrationStatus:2,refreshToken:a.refreshToken,authToken:y(a.authToken)}];case 3:return[4,_("Create Installation",o)];case 4:throw s.sent()}}))}))}function x(t){return new Promise((function(e){setTimeout(e,t)}))}var S=/^[cdef][\w-]{21}$/;function E(){try{var t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;var e=function(t){return(e=t,btoa(String.fromCharCode.apply(String,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}(e))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var e}(t);return S.test(e)?e:""}catch(n){return""}}function I(t){return t.appName+"!"+t.appId}var A=new Map;function T(t,e){var n=I(t);O(n,e),function(t,e){var n=P();n&&n.postMessage({key:t,fid:e}),R()}(n,e)}function O(t,e){var n,i,r=A.get(t);if(r)try{for(var o=l(r),a=o.next();!a.done;a=o.next())(0,a.value)(e)}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}var D=null;function P(){return!D&&"BroadcastChannel"in self&&((D=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(t){O(t.data.key,t.data.fid)}),D}function R(){0===A.size&&D&&(D.close(),D=null)}var N="firebase-installations-store",M=null;function F(){return M||(M=Object(d.openDb)("firebase-installations-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(N)}}))),M}function L(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o,a;return u(this,(function(s){switch(s.label){case 0:return n=I(t),[4,F()];case 1:return i=s.sent(),r=i.transaction(N,"readwrite"),[4,(o=r.objectStore(N)).get(n)];case 2:return a=s.sent(),[4,o.put(e,n)];case 3:return s.sent(),[4,r.complete];case 4:return s.sent(),a&&a.fid===e.fid||T(t,e.fid),[2,e]}}))}))}function j(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return e=I(t),[4,F()];case 1:return n=r.sent(),[4,(i=n.transaction(N,"readwrite")).objectStore(N).delete(e)];case 2:return r.sent(),[4,i.complete];case 3:return r.sent(),[2]}}))}))}function B(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o,a,s;return u(this,(function(u){switch(u.label){case 0:return n=I(t),[4,F()];case 1:return i=u.sent(),r=i.transaction(N,"readwrite"),[4,(o=r.objectStore(N)).get(n)];case 2:return a=u.sent(),void 0!==(s=e(a))?[3,4]:[4,o.delete(n)];case 3:return u.sent(),[3,6];case 4:return[4,o.put(s,n)];case 5:u.sent(),u.label=6;case 6:return[4,r.complete];case 7:return u.sent(),!s||a&&a.fid===s.fid||T(t,s.fid),[2,s]}}))}))}function V(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return[4,B(t,(function(n){var i=function(t){return z(t||{fid:E(),registrationStatus:0})}(n),r=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(m.create("app-offline"))};var n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:function(t,e){return s(this,void 0,void 0,(function(){var n,i;return u(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,7]),[4,C(t,e)];case 1:return n=r.sent(),[2,L(t,n)];case 2:return v(i=r.sent())&&409===i.serverCode?[4,j(t)]:[3,4];case 3:return r.sent(),[3,6];case 4:return[4,L(t,{fid:e.fid,registrationStatus:0})];case 5:r.sent(),r.label=6;case 6:throw i;case 7:return[2]}}
1))}))}(t,n)}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:U(t)}:{installationEntry:e}}(t,i);return e=r.registrationPromise,r.installationEntry}))];case 1:return""!==(n=r.sent()).fid?[3,3]:(i={},[4,e]);case 2:return[2,(i.installationEntry=r.sent(),i)];case 3:return[2,{installationEntry:n,registrationPromise:e}]}}))}))}function U(t){return s(this,void 0,void 0,(function(){var e,n,i,r;return u(this,(function(o){switch(o.label){case 0:return[4,H(t)];case 1:e=o.sent(),o.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,x(100)];case 3:return o.sent(),[4,H(t)];case 4:return e=o.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,V(t)];case 6:return n=o.sent(),i=n.installationEntry,(r=n.registrationPromise)?[2,r]:[2,i];case 7:return[2,e]}}))}))}function H(t){return B(t,(function(t){if(!t)throw m.create("installation-not-found");return z(t)}))}function z(t){return 1===(e=t).registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:t.fid,registrationStatus:0}:t;var e}function q(t,e){var n=t.appConfig,i=t.platformLoggerProvider;return s(this,void 0,void 0,(function(){var t,r,o,a,s;return u(this,(function(u){switch(u.label){case 0:return t=function(t,e){var n=e.fid;return g(t)+"/"+n+"/authTokens:generate"}(n,e),r=w(n,e),(o=i.getImmediate({optional:!0}))&&r.append("x-firebase-client",o.getPlatformInfoString()),a={method:"POST",headers:r,body:JSON.stringify({installation:{sdkVersion:"w:0.4.10"}})},[4,k((function(){return fetch(t,a)}))];case 1:return(s=u.sent()).ok?[4,s.json()]:[3,3];case 2:return[2,y(u.sent())];case 3:return[4,_("Generate Auth Token",s)];case 4:throw u.sent()}}))}))}function W(t,e){return void 0===e&&(e=!1),s(this,void 0,void 0,(function(){var n,i,r;return u(this,(function(o){switch(o.label){case 0:return[4,B(t.appConfig,(function(i){if(!K(i))throw m.create("not-registered");var r,o=i.authToken;if(!e&&2===(r=o).requestStatus&&!function(t){var e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+36e5}(r))return i;if(1===o.requestStatus)return n=function(t,e){return s(this,void 0,void 0,(function(){var n,i;return u(this,(function(r){switch(r.label){case 0:return[4,G(t.appConfig)];case 1:n=r.sent(),r.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,x(100)];case 3:return r.sent(),[4,G(t.appConfig)];case 4:return n=r.sent(),[3,2];case 5:return 0===(i=n.authToken).requestStatus?[2,W(t,e)]:[2,i]}}))}))}(t,e),i;if(!navigator.onLine)throw m.create("app-offline");var l=function(t){var e={requestStatus:1,requestTime:Date.now()};return a(a({},t),{authToken:e})}(i);return n=function(t,e){return s(this,void 0,void 0,(function(){var n,i,r;return u(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,q(t,e)];case 1:return n=o.sent(),r=a(a({},e),{authToken:n}),[4,L(t.appConfig,r)];case 2:return o.sent(),[2,n];case 3:return!v(i=o.sent())||401!==i.serverCode&&404!==i.serverCode?[3,5]:[4,j(t.appConfig)];case 4:return o.sent(),[3,7];case 5:return r=a(a({},e),{authToken:{requestStatus:0}}),[4,L(t.appConfig,r)];case 6:o.sent(),o.label=7;case 7:throw i;case 8:return[2]}}
1))}))}(t,l),l}))];case 1:return i=o.sent(),n?[4,n]:[3,3];case 2:return r=o.sent(),[3,4];case 3:r=i.authToken,o.label=4;case 4:return[2,r]}}))}))}function G(t){return B(t,(function(t){if(!K(t))throw m.create("not-registered");var e;return 1===(e=t.authToken).requestStatus&&e.requestTime+1e4<Date.now()?a(a({},t),{authToken:{requestStatus:0}}):t}))}function K(t){return void 0!==t&&2===t.registrationStatus}function Y(t){return s(this,void 0,void 0,(function(){var e;return u(this,(function(n){switch(n.label){case 0:return[4,V(t)];case 1:return(e=n.sent().registrationPromise)?[4,e]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function Q(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o;return u(this,(function(a){switch(a.label){case 0:return n=function(t,e){var n=e.fid;return g(t)+"/"+n}(t,e),i=w(t,e),r={method:"DELETE",headers:i},[4,k((function(){return fetch(n,r)}))];case 1:return(o=a.sent()).ok?[3,3]:[4,_("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}}))}))}function $(t){return m.create("missing-app-config-values",{valueName:t})}function X(t){t.INTERNAL.registerComponent(new o.Component("installations",(function(t){var e=t.getProvider("app").getImmediate(),n={appConfig:function(t){var e,n;if(!t||!t.options)throw $("App Configuration");if(!t.name)throw $("App Name");try{for(var i=l(["projectId","apiKey","appId"]),r=i.next();!r.done;r=i.next()){var o=r.value;if(!t.options[o])throw $(o)}}catch(a){e={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}(e),platformLoggerProvider:t.getProvider("platform-logger")};return{app:e,getId:function(){return function(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return[4,V(t.appConfig)];case 1:return e=r.sent(),n=e.installationEntry,(i=e.registrationPromise)?i.catch(console.error):W(t).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(t){return function(t,e){return void 0===e&&(e=!1),s(this,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return[4,Y(t.appConfig)];case 1:return n.sent(),[4,W(t,e)];case 2:return[2,n.sent().token]}}))}))}(n,t)},delete:function(){return function(t){return s(this,void 0,void 0,(function(){var e,n;return u(this,(function(i){switch(i.label){case 0:return[4,B(e=t.appConfig,(function(t){if(!t||0!==t.registrationStatus)return t}))];case 1:if(!(n=i.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw m.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw m.create("app-offline");case 3:return[4,Q(e,n)];case 4:return i.sent(),[4,j(e)];case 5:i.sent(),i.label=6;case 6:return[2]}}
1))}))}(n)},onIdChange:function(t){return function(t,e){var n=t.appConfig;return function(t,e){P();var n=I(t),i=A.get(n);i||(i=new Set,A.set(n,i)),i.add(e)}(n,e),function(){!function(t,e){var n=I(t),i=A.get(n);i&&(i.delete(e),0===i.size&&A.delete(n),R())}(n,e)}}(n,t)}}}),"PUBLIC")),t.registerVersion("@firebase/installations","0.4.10")}X(r.a)},XVEb:function(t,e,n){"use strict";e.__esModule=!0,e.extend=s,e.indexOf=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return o.test(t)?t.replace(r,a):t},e.isEmpty=function(t){return!t&&0!==t||!(!c(t)||0!==t.length)},e.createFrame=function(t){var e=s({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(t){return i[t]}function s(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var u=Object.prototype.toString;e.toString=u;var l=function(t){return"function"==typeof t};l(/x/)&&(e.isFunction=l=function(t){return"function"==typeof t&&"[object Function]"===u.call(t)}),e.isFunction=l;var c=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===u.call(t)};e.isArray=c},YFPv:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},ZcxV:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n("T9/7"),o=i(n("0KrK")),a=n("XVEb"),s=i(n("Fvkh"));function u(t){this.value=t}function l(){}l.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=r.COMPILER_REVISION;return[t,r.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return a.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,i){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.prec
vendor: 7,169 bytes, line 1
1ompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var r=t.opcodes,a=void 0,s=void 0,u=void 0,l=void 0;for(u=0,l=r.length;u<l;u++)this.source.currentLocation=(a=r[u]).loc,s=s||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=s,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var c=this.createFunctionContext(i);if(this.isChild)return c;var h={compiler:this.compilerInfo(),main:c};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var f=this.context,d=f.programs,p=f.decorators;for(u=0,l=d.length;u<l;u++)d[u]&&(h[u]=d[u],p[u]&&(h[u+"_d"]=p[u],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),i?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),e.srcName?(h=h.toStringWithSourceMap({file:e.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(t){var e=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var r=0;Object.keys(this.aliases).forEach((function(t){var i=e.aliases[t];i.children&&i.referenceCount>1&&(n+=", alias"+ ++r+"="+t,i.children[0]="alias"+r)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(n);return t?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n ",a,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,i=void 0,r=void 0,o=void 0,a=void 0;return this.source.each((function(t){t.appendToBuffer?(o?t.prepend(" + "):o=t,a=t):(o&&(r?o.prepend("buffer += "):i=!0,a.add(";"),o=a=void 0),r=!0,e||(n=!1))})),n?o?(o.prepend("return "),a.add(";")):r||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var n=this.topStack();e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack((function(t){return[" != null ? ",t,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,i){var r=0;i||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[r++])),this.resolvePath("context",t,r,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){this.pushStackLiteral(t?"container.data(data, "+t+")":"data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(t,e,n,i,r){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,n,i){var r=e.popStack(),o=0,a=n.length;for(t&&a--;o<a;o++)r=e.nameLookup(r,n[o],i);return t?[e.aliasable("container.strict"),"(",r,", ",e.quotedString(n[o]),", ",JSON.stringify(e.source.currentLocation)," )"]:r}(this.options.strict&&r,this,e,t));else for(var a=e.length;n<a;n++)this.replaceStack((function(r){var a=o.nameLookup(r,e[n],t);return i?[" && ",a]:[" != null ? ",a," : ",r]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"SubExpression"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){this.pushStackLiteral(null!=t?this.programExpression(t):null)},registerDecorator:function(t,e){var n=this.nameLookup("decorators",e,"decorator"),i=this.setupHelperArgs(e,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["f
1n","props","container",i])," || fn;"])},invokeHelper:function(t,e,n){var i=this.popStack(),r=this.setupHelper(t,e),o=[];n&&o.push(r.name),o.push(i),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],s=this.source.functionCall(a,"call",r.callParams);this.push(s)},itemsSeparatedBy:function(t,e){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(e,t[i]);return n},invokeKnownHelper:function(t,e){var n=this.setupHelper(t,e);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(t,e){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,e),r=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",t,"helper")," || ",n,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",r,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(t,e,n){var i=[],r=this.setupParams(e,1,i);t&&(e=this.popStack(),delete r.name),n&&(r.indent=JSON.stringify(n)),r.helpers="helpers",r.partials="partials",r.decorators="container.decorators",i.unshift(t?e:this.nameLookup("partials",e,"partial")),this.options.compat&&(r.depths="depths"),r=this.objectLiteral(r),i.push(r),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash:function(t){var e=this.popStack(),n=void 0,i=void 0,r=void 0;this.trackIds&&(r=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var o=this.hash;n&&(o.contexts[t]=n),i&&(o.types[t]=i),r&&(o.ids[t]=r),o.values[t]=e},pushId:function(t,e,n){"BlockParam"===t?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===t?this.pushString(e):this.pushStackLiteral("SubExpression"===t?"true":"null")},compiler:l,compileChildren:function(t,e){for(var n=t.children,i=void 0,r=void 0,o=0,a=n.length;o<a;o++){i=n[o],r=new this.compiler;var s=this.matchExistingProgram(i);if(null==s){this.context.programs.push("");var u=this.context.programs.length;i.index=u,i.name="program"+u,this.context.programs[u]=r.compile(i,e,this.context,!this.precompile),this.context.decorators[u]=r.decorators,this.context.environments[u]=i,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=s.index,i.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(t){for(var e=0,n=this.context.environments.length;e<n;e++){var i=this.context.environments[e];if(i&&i.equals(t))return i}},programExpression:function(t){var e=this.environment.children[t],n=[e.index,"data",e.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof u||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new u(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var e=["("],n=void 0,i=void 0,r=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof u)e=["(",n=[a.value]],r=!0;else{i=!0;var s=this.incrStack();e=["((",this.push(s)," = ",a,")"],n=this.topStack()}var l=t.call(this,n);r||this.popStack(),i&&this.stackSlot--,this.push(e.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot}
1,flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;e<n;e++){var i=t[e];if(i instanceof u)this.compileStack.push(i);else{var r=this.incrStack();this.pushSource([r," = ",i,";"]),this.compileStack.push(r)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),n=(e?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof u)return n.value;if(!e){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,e=t[t.length-1];return e instanceof u?e.value:e},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var e=this.aliases[t];return e?(e.referenceCount++,e):((e=this.aliases[t]=this.source.wrap(t)).aliasable=!0,e.referenceCount=1,e)},setupHelper:function(t,e,n){var i=[];return{params:i,paramsInit:this.setupHelperArgs(e,t,i,n),name:this.nameLookup("helpers",e,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(i)}},setupParams:function(t,e,n){var i={},r=[],o=[],a=[],s=!n,u=void 0;s&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var l=this.popStack(),c=this.popStack();(c||l)&&(i.fn=c||"container.noop",i.inverse=l||"container.noop");for(var h=e;h--;)u=this.popStack(),n[h]=u,this.trackIds&&(a[h]=this.popStack()),this.stringParams&&(o[h]=this.popStack(),r[h]=this.popStack());return s&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(a)),this.stringParams&&(i.types=this.source.generateArray(o),i.contexts=this.source.generateArray(r)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},setupHelperArgs:function(t,e,n,i){var r=this.setupParams(t,e,n);return r.loc=JSON.stringify(this.source.currentLocation),r=this.objectLiteral(r),i?(this.useRegister("options"),n.push("options"),["options=",r]):n?(n.push(r),""):r}},function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=l.RESERVED_WORDS={},n=0,i=t.length;n<i;n++)e[t[n]]=!0}(),l.isValidJavaScriptVariableName=function(t){return!l.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},e.default=l,t.exports=e.default},ZeiE:function(t,e,n){"use strict";e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.extend.apply(void 0,[Object.create(null)].concat(e))};var i=n("XVEb")},boMX:function(t,e,n){"use strict";n.r(e);var i=n("plFh"),r=n.n(i);(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=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}return globalThis}(this);function i(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:i(t)}}!function(t,i){if(i){var r=n;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in r||(r[a]={}),r=r[a]}(i=i(o=r[t=t[t.length-1]]))!=o&&null!=i&&e(r,t,{configurable:!0,writable:!0,value:i})}}("Promise",(function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function i(){this.a=null}function r(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;i.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c((function(){e.g()}))}this.a.push(t)};var a=n.setTimeout;i.prototype.c=function(t){a(t,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(t){this.c((function(){throw t}))},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}}
vendor: 1,338 bytes, line 1
1,e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.u(t):this.h(t)}},e.prototype.u=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.w(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)s.b(this.a[t]);this.a=null}};var s=new i;return e.prototype.s=function(t){var e=this.f();t.Oa(e.resolve,e.reject)},e.prototype.w=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(n){o(n)}}:e}var r,o,a=new e((function(t,e){r=t,o=e}));return this.Oa(i(t,r),i(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Oa=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(n):this.a.push(n)}
1,e.resolve=r,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var i=o(t),a=i.next();!a.done;a=i.next())r(a.value).Oa(e,n)}))},e.all=function(t){var n=o(t),i=n.next();return i.done?r([]):new e((function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Oa(o(a.length-1),e),i=n.next()}while(!i.done)}))},e}));var a=a||{},s=this||self,u=/^[\w+/_-]+[=]{0,2}$/,l=null;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){var e=h(t);return"array"==e||"object"==e&&"number"==typeof t.length}function d(t){return"function"==h(t)}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t){return Object.prototype.hasOwnProperty.call(t,v)&&t[v]||(t[v]=++g)}var v="closure_uid_"+(1e9*Math.random()>>>0),g=0;function y(t,e,n){return t.call.apply(t.bind,arguments)}function _(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),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")?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 k=Date.now||function(){return+new Date};function C(t,e){function n(){}n.prototype=e.prototype,t.Za=e.prototype,t.prototype=new n,t.prototype.constructor=t}
1function x(t,e,n){this.code=I+t,this.message=e||A[t]||"",this.a=n||null}function S(t){var e=t&&t.code;return e?new x(e.substring(I.length),t.message,t.serverResponse):null}C(x,Error),x.prototype.v=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},x.prototype.toJSON=function(){return this.v()};var E,I="auth/",A={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
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.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},T={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function O(t){for(var e in T)if(T[e].id===t)return{firebaseEndpoint:(t=T[e]).Ra,secureTokenEndpoint:t.Xa,identityPlatformEndpoint:t.Ua};return null}function D(t){if(!t)return!1;
1try{return!!t.$goog_Thenable}catch(e){return!1}}function P(t){if(Error.captureStackTrace)Error.captureStackTrace(this,P);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function R(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");P.call(this,n+t[i])}function N(t,e){throw new R("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function M(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function F(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function L(){this.b=this.a=null}E=O("__EID__")?"__EID__":void 0,C(P,Error),P.prototype.name="CustomError",C(R,P),R.prototype.name="AssertionError",M.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 j=new M((function(){return new V}),(function(t){t.reset()}));function B(){var t=ve,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function V(){this.next=this.b=this.a=null}L.prototype.add=function(t,e){var n=j.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},V.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},V.prototype.reset=function(){this.next=this.b=this.a=null};var U=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},H=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&e.call(n,r[o],o,t)},z=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],r=0,o="string"==typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(i[r++]=s)}return i},q=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),r="string"==typeof t?t.split(""):t,o=0;o<n;o++)o in r&&(i[o]=e.call(void 0,r[o],o,t));return i},W=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t))return!0;return!1};function G(t,e){return 0<=U(t,e)}function K(t,e){var n;return(n=0<=(e=U(t,e)))&&Array.prototype.splice.call(t,e,1),n}function Y(t,e){!function(t,e){for(var n="string"==typeof 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,i){e.call(void 0,n,i,t)&&Array.prototype.splice.call(t,i,1)}))}function Q(t){return Array.prototype.concat.apply([],arguments)}function $(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}var X,Z=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},J=/&/g,tt=/</g,et=/>/g,nt=/"/g,it=/'/g,rt=/\x00/g,ot=/[\x00&<>"']/;function at(t,e){return-1!=t.indexOf(e)}function st(t,e){return t<e?-1:t>e?1:0}t:{var ut=s.navigator;if(ut){var lt=ut.userAgent;if(lt){X=lt;break t}}X=""}function ct(t){return at(X,t)}function ht(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function ft(t){for(var e in t)return!1;return!0}function dt(t){var e,n={};for(e in t)n[e]=t[e];return n}var pt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function mt(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<pt.length;o++)n=pt[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function vt(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||s).Element&&i.Location){var r=i;break t}}catch(a){}r=null}if(r&&void 0!==r[e]&&(!t||!(t instanceof r[e])&&(t instanceof r.Location||t instanceof r.Element))){if(p(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;N("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function gt(t,e){this.a=t===bt&&e||"",this.b=_t}function yt(t){return t instanceof gt&&t.constructor===gt&&t.b===_t?t.a:(N("expected object of type Const, got '"+t+"'"),"type_error:Const")}gt.prototype.ra=!0,gt.prototype.qa=function(){return this.a},gt.prototype.toString=function(){return"Const{"+this.a+"}"};var _t={},bt={},wt=new gt(bt,"");function kt(t,e){this.a=t===At&&e||"",this.b=It}function Ct(t){return t instanceof kt&&t.constructor===kt&&t.b===It?t.a:(N("expected object of type TrustedResourceUrl, got '"+t+"' of type "+h(t)),"type_error:TrustedResourceUrl")}function xt(t,e){var n=yt(t);if(!Et.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(St,(function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format str
1ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[i])instanceof gt?yt(t):encodeURIComponent(String(t))})),new kt(At,t)}kt.prototype.ra=!0,kt.prototype.qa=function(){return this.a.toString()},kt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var St=/%{(\w+)}/g,Et=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,It={},At={};function Tt(t,e){this.a=t===Nt&&e||"",this.b=Rt}function Ot(t){return t instanceof Tt&&t.constructor===Tt&&t.b===Rt?t.a:(N("expected object of type SafeUrl, got '"+t+"' of type "+h(t)),"type_error:SafeUrl")}Tt.prototype.ra=!0,Tt.prototype.qa=function(){return this.a.toString()},Tt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Dt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Pt(t){return t instanceof Tt?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Dt.test(t)||(t="about:invalid#zClosurez"),new Tt(Nt,t))}var Rt={},Nt={};function Mt(){this.a="",this.b=Lt}function Ft(t){return t instanceof Mt&&t.constructor===Mt&&t.b===Lt?t.a:(N("expected object of type SafeHtml, got '"+t+"' of type "+h(t)),"type_error:SafeHtml")}Mt.prototype.ra=!0,Mt.prototype.qa=function(){return this.a.toString()},Mt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Lt={};function jt(t){var e=new Mt;return e.a=t,e}jt("<!DOCTYPE html>");var Bt=jt("");function Vt(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function Ut(t){return ot.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(J,"&")),-1!=t.indexOf("<")&&(t=t.replace(tt,"<")),-1!=t.indexOf(">")&&(t=t.replace(et,">")),-1!=t.indexOf('"')&&(t=t.replace(nt,""")),-1!=t.indexOf("'")&&(t=t.replace(it,"'")),-1!=t.indexOf("\0")&&(t=t.replace(rt,"�"))),t}function Ht(t){return Ht[" "](t),t}jt("<br>"),Ht[" "]=c;var zt,qt,Wt=ct("Opera"),Gt=ct("Trident")||ct("MSIE"),Kt=ct("Edge"),Yt=Kt||Gt,Qt=ct("Gecko")&&!(at(X.toLowerCase(),"webkit")&&!ct("Edge"))&&!(ct("Trident")||ct("MSIE"))&&!ct("Edge"),$t=at(X.toLowerCase(),"webkit")&&!ct("Edge");function Xt(){var t=s.document;return t?t.documentMode:void 0}t:{var Zt="",Jt=(qt=X,Qt?/rv:([^\);]+)(\)|;)/.exec(qt):Kt?/Edge\/([\d\.]+)/.exec(qt):Gt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(qt):$t?/WebKit\/(\S+)/.exec(qt):Wt?/(?:Version)[ \/]?(\S+)/.exec(qt):void 0);if(Jt&&(Zt=Jt?Jt[1]:""),Gt){var te=Xt();if(null!=te&&te>parseFloat(Zt)){zt=String(te);break t}}zt=Zt}var ee,ne={};function ie(t){return function(t,e){var n=ne;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=Z(String(zt)).split("."),i=Z(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=st(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||st(0==a[2].length,0==s[2].length)||st(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}ee=s.document&&Gt?Xt():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(qt){}var re=!Gt||9<=Number(ee);function oe(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ae(t,e){ht(e,(function(e,n){e&&"object"==typeof e&&e.ra&&(e=e.qa()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:le.hasOwnProperty(n)?t.setAttribute(le[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}var se,ue,le={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 ce(t,e,n){function i(n){n&&e.appendChild("string"==typeof n?t.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];!f(o)||p(o)&&0<o.nodeType?i(o):H(fe(o)?$(o):o,i)}}function he(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function fe(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 de(t){s.setTimeout((function(){throw t}),0)}function pe(t,e){ue||function(){if(s.Promise&&s.Promise.resolve){var t=s.Promise.resolve(void 0);ue=function(){t.then(ge)}}else ue=function(){var t=ge;!d(s.setImmediate)||s.Window&&s.Window.prototype&&!ct("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(se||(se=function(){var t=s.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ct("Presto")&&(t=function(){var t=he(document,"IFRAME");t.style.display="none",function(t){var e=new kt(At,yt(wt));vt(t,"HTMLIFrameElement"),t.src=Ct(e).toString()}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Ft(Bt)),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=b((function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!ct("Trident")&&!ct("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Db;n.Db=null,t()}},function(t){i.next={Db:t},i=i.next,e.port2.postMessage(0)}}return function(t){s.setTimeout(t,0)}}()),se(t)):s.setImmediate(t)}}(),me||(ue(),me=!0),ve.add(t,e)}var me=!1,ve=new L;function ge(){for(var t;t=B();
1){try{t.a.call(t.b)}catch(e){de(e)}F(j,t)}me=!1}function ye(t,e){if(this.a=_e,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=c)try{var n=this;t.call(e,(function(t){De(n,be,t)}),(function(t){if(!(t instanceof je))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}De(n,we,t)}))}catch(i){De(this,we,i)}}var _e=0,be=2,we=3;function ke(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}ke.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ce=new M((function(){return new ke}),(function(t){t.reset()}));function xe(t,e,n){var i=Ce.get();return i.g=t,i.b=e,i.f=n,i}function Se(t){if(t instanceof ye)return t;var e=new ye(c);return De(e,be,t),e}function Ee(t){return new ye((function(e,n){n(t)}))}function Ie(t,e,n){Pe(t,e,n,null)||pe(w(e,t))}function Ae(t){return new ye((function(e){var n=t.length,i=[];if(n)for(var r=function(t,r,o){n--,i[t]=r?{Mb:!0,value:o}:{Mb:!1,reason:o},0==n&&e(i)},o=0;o<t.length;o++)Ie(t[o],w(r,o,!0),w(r,o,!1));else e(i)}))}function Te(t,e){t.b||t.a!=be&&t.a!=we||Re(t),t.f?t.f.next=e:t.b=e,t.f=e}function Oe(t,e,n,i){var r=xe(null,null,null);return r.a=new ye((function(t,o){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(a){o(a)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof je?o(e):t(r)}catch(a){o(a)}}:o})),r.a.c=t,Te(t,r),r.a}function De(t,e,n){t.a==_e&&(t===n&&(e=we,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Pe(n,t.Yc,t.Zc,t)||(t.i=n,t.a=e,t.c=null,Re(t),e!=we||n instanceof je||function(t,e){t.g=!0,pe((function(){t.g&&Le.call(null,e)}))}(t,n)))}function Pe(t,e,n,i){if(t instanceof ye)return Te(t,xe(e||c,n||null,i)),!0;if(D(t))return t.then(e,n,i),!0;if(p(t))try{var r=t.then;if(d(r))return function(t,e,n,i,r){function o(t){a||(a=!0,i.call(r,t))}var a=!1;try{e.call(t,(function(t){a||(a=!0,n.call(r,t))}),o)}catch(s){o(s)}}(t,r,e,n,i),!0}catch(o){return n.call(i,o),!0}return!1}function Re(t){t.h||(t.h=!0,pe(t.ec,t))}function Ne(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Me(t,e,n,i){if(n==we&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Fe(e,n,i);else try{e.c?e.g.call(e.f):Fe(e,n,i)}catch(r){Le.call(null,r)}F(Ce,e)}function Fe(t,e,n){e==be?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}ye.prototype.then=function(t,e,n){return Oe(this,d(t)?t:null,d(e)?e:null,n)},ye.prototype.$goog_Thenable=!0,(t=ye.prototype).ma=function(t,e){return(t=xe(t,t,e)).c=!0,Te(this,t),this},t.o=function(t,e){return Oe(this,null,t,e)},t.cancel=function(t){if(this.a==_e){var e=new je(t);pe((function(){!function t(e,n){if(e.a==_e)if(e.c){var i=e.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==e&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==_e&&1==r?t(i,n):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):Ne(i),Me(i,o,we,n)))}e.c=null}else De(e,we,n)}(this,e)}),this)}},t.Yc=function(t){this.a=_e,De(this,be,t)},t.Zc=function(t){this.a=_e,De(this,we,t)},t.ec=function(){for(var t;t=Ne(this);)Me(this,t,this.a,this.i);this.h=!1};var Le=de;function je(t){P.call(this,t)}function Be(){0!=Ve&&(Ue[m(this)]=this),this.wa=this.wa,this.na=this.na}C(je,P),je.prototype.name="cancel";var Ve=0,Ue={};function He(t){if(!t.wa&&(t.wa=!0,t.Ba(),0!=Ve)){var e=m(t);if(0!=Ve&&t.na&&0<t.na.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ue[e]}}Be.prototype.wa=!1,Be.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var ze=Object.freeze||function(t){return t},qe=!Gt||9<=Number(ee),We=Gt&&!ie("9"),Ge=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",c,e),s.removeEventListener("test",c,e)}catch(n){}return t}();function Ke(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function Ye(t,e){if(Ke.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(Qt){t:{try{Ht(e.nodeName);var r=!0;break t}catch(o){}r=!1}r||(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="string"==typeof t.pointerType?t.pointerType:Qe[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Ke.prototype.preventDefault=function(){this.defaultPrevented=!0},C(Ye,Ke);var Qe=ze({2:"touch",3:"pen",4:"mouse"});Ye.prototype.preventDefault=function(){Ye.Za.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,We)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},Ye.prototype.f=function(){return this.a};var $e="closure_listenable_"+(1e6*Math.random()|0),Xe=0;function Ze(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Ta=r,this.key=++Xe,this.ua=this.Na=!1}function Je(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function tn(t){this.src=t,this.a={},this.b=0}function en(t,e){var n=e.type;n in t.a&&K(t.a[n],e)&&(Je(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function nn(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.ua&&o.listener==e&&o.capture==!!n&&o.Ta==i)return r}return-1}tn.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=nn(t,e,i,r);return-1<a?(e=t[a],n||(e.Na=!1)):((e=new Ze(e,this.src,o,!!i,r)).Na=n,t.push(e)),e};var rn="closure_lm_"+(1e6*Math.random()|0),on={};function an(t,e,n,i,r){if(i&&i.once)un(t,e,n,i,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)an(t,e[o],n,i,r);else n=gn(n),t&&t[$e]?_n(t,e,n,p(i)?!!i.capture:!!i,r):sn(t,e,n,!1,i,r)}function sn(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=p(r)?!!r.capture:!!r,s=mn(t);if(s||(t[rn]=s=new tn(t)),!(n=s.add(e,n,i,a,o)).proxy)if(i=function(){var t=pn,e=qe?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=i,i.src=t,i.listener=n,t.addEventListener)Ge||(r=a),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(hn(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function un(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)un(t,e[o],n,i,r);else n=gn(n),t&&t[$e]?bn(t,e,n,p(i)?!!i.capture:!!i,r):sn(t,e,n,!0,i,r)}function ln(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)ln(t,e[o],n,i,r);else i=p(i)?!!i.capture:!!i,n=gn(n),t&&t[$e]?(t=t.u,(e=String(e).toString())in t.a&&-1<(n=nn(o=t.a[e],n,i,r))&&(Je(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=mn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=nn(e,n,i,r)),(n=-1<t?e[t]:null)&&cn(n))}function cn(t){if("number"!=typeof t&&t&&!t.ua){var e=t.src;if(e&&e[$e])en(e.u,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(hn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=mn(e))?(en(n,t),0==n.b&&(n.src=null,e[rn]=null)):Je(t)}}}function hn(t){return t in on?on[t]:on[t]="on"+t}function fn(t,e,n,i){var r=!0;if((t=mn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.ua&&(o=dn(o,i),r=r&&!1!==o)}return r}function dn(t,e){var n=t.listener,i=t.Ta||t.src;return t.Na&&cn(t),n.call(i,e)}function pn(t,e){if(t.ua)return!0;if(!qe){if(!e)t:{e=["window","event"];for(var n=s,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new Ye(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var o=fn(i[r],t,!0,e);n=n&&o}for(r=0;r<i.length;r++)e.b=i[r],o=fn(i[r],t,!1,e),n=n&&o}return n}return dn(t,new Ye(e,this))}function mn(t){return(t=t[rn])instanceof tn?t:null}var vn="__closure_events_fn_"+(1e9*Math.random()>>>0);function gn(t){return d(t)?t:(t[vn]||(t[vn]=function(e){return t.handleEvent(e)}),t[vn])}function yn(){Be.call(this),this.u=new tn(this),this.Yb=this,this.eb=null}function _n(t,e,n,i,r){t.u.add(String(e),n,!1,i,r)}function bn(t,e,n,i,r){t.u.add(String(e),n,!0,i,r)}function wn(t,e,n,i){if(!(e=t.u.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.ua&&a.capture==n){var s=a.listener,u=a.Ta||a.src;a.Na&&en(t.u,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function kn(t,e,n){if(d(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:s.setTimeout(t,e||0)}function Cn(t){var e=null;return new ye((function(n,i){-1==(e=kn((function(){n(void 0)}),t))&&i(Error("Failed to schedule timer."))})).o((function(t){throw s.clearTimeout(e),t}))}function xn(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"==typeof 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 Sn(t){if(t.X&&"function"==typeof t.X)return t.X();if(!t.V||"function"!=typeof t.V){if(f(t)||"string"==typeof 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 En(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 i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof En)for(n=t.X(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function In(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];An(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)An(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function An(t,e){return Object.prototype.hasOwnProperty.call(t,e)}C(yn,Be),yn.prototype[$e]=!0,yn.prototype.addEventListener=function(t,e,n,i){an(this,t,e,n,i)},yn.prototype.removeEventListener=function(t,e,n,i){ln(this,t,e,n,i)},yn.prototype.dispatchEvent=function(t){var e,n=this.eb;if(n)for(e=[];n;n=n.eb)e.push(n);n=this.Yb;var i=t.type||t;if("string"==typeof t)t=new Ke(t,n);else if(t instanceof Ke)t.target=t.target||n;else{var r=t;mt(t=new Ke(i,n),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];r=wn(a,i,!0,t)&&r}if(r=wn(a=t.b=n,i,!0,t)&&r,r=wn(a,i,!1,t)&&r,e)for(o=0;o<e.length;o++)r=wn(a=t.b=e[o],i,!1,t)&&r;return r},yn.prototype.Ba=function(){if(yn.Za.Ba.call(this),this.u){var t,e=this.u;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)Je(n[i]);delete e.a[t],e.b--}}this.eb=null},(t=En.prototype).V=function(){In(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.X=function(){return In(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return An(this.b,t)?this.b[t]:e},t.set=function(t,e){An(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.X(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}};var Tn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function On(t,e){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,t instanceof On?(this.h=void 0!==e?e:t.h,Dn(this,t.f),this.i=t.i,this.b=t.b,Pn(this,t.l),this.c=t.c,Rn(this,Zn(t.a)),this.g=t.g):t&&(n=String(t).match(Tn))?(this.h=!!e,Dn(this,n[1]||"",!0),this.i=jn(n[2]||""),this.b=jn(n[3]||"",!0),Pn(this,n[4]),this.c=jn(n[5]||"",!0),Rn(this,n[6]||"",!0),this.g=jn(n[7]||"")):(this.h=!!e,this.a=new Gn(null,this.h))}function Dn(t,e,n){t.f=n?jn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Pn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Rn(t,e,n){e instanceof Gn?(t.a=e,function(t,e){e&&!t.f&&(Kn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Qn(this,e),Xn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Bn(e,qn)),t.a=new Gn(e,t.h))}function Nn(t,e,n){t.a.set(e,n)}function Mn(t,e){return t.a.get(e)}function Fn(t){return t instanceof On?new On(t):new On(t,void 0)}function Ln(t,e){var n=new On(null,void 0);return Dn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function jn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Bn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Vn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Vn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}On.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Bn(e,Un,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Bn(e,Un,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Bn(n,"/"==n.charAt(0)?zn:Hn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Bn(n,Wn)),t.join("")},On.prototype.resolve=function(t){var e=new On(this),n=!!t.f;n?Dn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var i=t.c;if(n)Pn(e,t.l);else if(n=!!t.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=e.c.lastIndexOf("/");-1!=r&&(i=e.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(at(r,"./")||at(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return n?e.c=i:n=""!==t.a.toString(),n?Rn(e,Zn(t.a)):n=!!t.g,n&&(e.g=t.g),e};var Un=/[#\/\?@]/g,Hn=/[#\?:]/g,zn=/[#\?]/g,qn=/[#\?@]/g,Wn=/#/g;function Gn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Kn(t){t.a||(t.a=new En,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function Yn(t){var e=Sn(t);
1if(void 0===e)throw Error("Keys are undefined");var n=new Gn(null,void 0);t=xn(t);for(var i=0;i<e.length;i++){var r=e[i],o=t[i];Array.isArray(o)?Xn(n,r,o):n.add(r,o)}return n}function Qn(t,e){Kn(t),e=Jn(t,e),An(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,An((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&In(t)))}function $n(t,e){return Kn(t),e=Jn(t,e),An(t.a.b,e)}function Xn(t,e,n){Qn(t,e),0<n.length&&(t.c=null,t.a.set(Jn(t,e),$(n)),t.b+=n.length)}function Zn(t){var e=new Gn;return e.c=t.c,t.a&&(e.a=new En(t.a),e.b=t.b),e}function Jn(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function ti(t){var e=[];return function t(e,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),t(e,r[a],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(a=n[r])&&(i.push(o),ri(r,i),i.push(":"),t(e,a,i),o=",");return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":ri(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new ei,t,e),e.join("")}function ei(){}(t=Gn.prototype).add=function(t,e){Kn(this),this.c=null,t=Jn(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){Kn(this),this.a.forEach((function(n,i){H(n,(function(n){t.call(e,n,i,this)}),this)}),this)},t.X=function(){Kn(this);for(var t=this.a.V(),e=this.a.X(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},t.V=function(t){Kn(this);var e=[];if("string"==typeof t)$n(this,t)&&(e=Q(e,this.a.get(Jn(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=Q(e,t[n])}return e},t.set=function(t,e){return Kn(this),this.c=null,$n(this,t=Jn(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.V(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.X(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(String(i));i=this.V(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),t.push(a)}}return this.c=t.join("&")};var ni={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ii=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ri(t,e){e.push('"',t.replace(ii,(function(t){var e=ni[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ni[t]=e),e})),'"')}function oi(){var t=Ci();return Gt&&!!ee&&11==ee||/Edge\/\d+/.test(t)}function ai(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function si(t,e){e=e||s.window;var n="about:blank";t&&(n=Ot(Pt(t))),e.location.href=n}function ui(t){return!!((t=(t||Ci()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function li(t){t=t||s.window;try{t.close()}catch(e){}}function ci(t,e,n){var i=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Ci().toLowerCase(),i&&(e.target=i,at(n,"crios/")&&(e.target="_blank")),bi(Ci())==_i&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof Tt?n:Pt(void 0!==n.href?n.href:String(n)),n=t.target||n.target,r=[],t)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(t[a]?1:0))}var a=r.join(",");if((ct("iPhone")&&!ct("iPod")&&!ct("iPad")||ct("iPad")||ct("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(vt(a=he(document,"A"),"HTMLAnchorElement"),e instanceof Tt||e instanceof Tt||(e="object"==typeof e&&e.ra?e.qa():String(e),Dt.test(e)||(e="about:invalid#zClosurez"),e=new Tt(Nt,e)),a.href=Ot(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=i.open("",n,a),t=Ot(e),a&&(Yt&&at(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=jt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ut(t)+'">'),i=a.document)&&(i.write(Ft(t)),i.close())):(a=i.open(Ot(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var hi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,fi=/^[^@]+@[^@]+$/;function di(){var t=null;return new ye((function(e){"complete"==s.document.readyState?e():(t=function(){e()},un(window,"load",t))})).o((function(e){throw ln(window,"load",t),e}))}function pi(t){return t=t||Ci(),!("file:"!==Ai()&&"ionic:"!==Ai()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function mi(){var t=s.window;try{return!(!t||t==t.top)}catch(e){return!1}}function vi(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.importScripts}function gi(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":vi()?"Worker":"Browser"}function yi(){var t=gi();return"ReactNative"===t||"Node"===t}var _i="Firefox";function bi(t){var e=t.toLowerCase();return at(e,"opera/")||at(e,"opr/")||at(e,"opios/")?"Opera":at(e,"iemobile")?"IEMobile":at(e,"msie")||at(e,"trident/")?"IE":at(e,"edge/")?"Edge":at(e,"firefox/")?_i:at(e,"silk/")?"Silk":at(e,"blackberry")?"Blackberry":at(e,"webos")?"Webos":!at(e,"safari/")||at(e,"chrome/")||at(e,"crios/")||at(e,"android")?!at(e,"chrome/")&&!at(e,"crios/")||at(e,"edge/")?at(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var wi={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function ki(t,e){e=e||[];var n,i=[],r={};for(n in wi)r[wi[n]]=!0;for(n=0;n<e.length;n++)void 0!==r[e[n]]&&(delete r[e[n]],i.push(e[n]));return i.sort(),(e=i).length||(e=["FirebaseCore-web"]),"Browser"===(i=gi())?i=bi(r=Ci()):"Worker"===i&&(i=bi(r=Ci())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function Ci(){return s.navigator&&s.navigator.userAgent||""}function xi(t,e){t=t.split("."),e=e||s;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Si(){try{var t=s.localStorage,e=Ri();if(t)return t.setItem(e,"1"),t.removeItem(e),!oi()||!!s.indexedDB}catch(n){return vi()&&!!s.indexedDB}return!1}function Ei(){return(Ii()||"chrome-extension:"===Ai()||pi())&&!yi()&&Si()&&!vi()}function Ii(){return"http:"===Ai()||"https:"===Ai()}function Ai(){return s.location&&s.location.protocol||null}function Ti(t){return!ui(t=t||Ci())&&bi(t)!=_i}function Oi(t){return void 0===t?null:ti(t)}function Di(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function Pi(t){if(null!==t)return JSON.parse(t)}function Ri(t){return t||Math.floor(1e9*Math.random()).toString()}function Ni(t){return"Safari"!=bi(t=t||Ci())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Mi(){var t=s.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Fi(t,e){if(t>
1e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Ci(),e=gi(),this.b=ui(t)||"ReactNative"===e}function Li(){var t=s.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function ji(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 Bi(){return!(!xi("fireauth.oauthhelper",s)&&!xi("fireauth.iframe",s))}Fi.prototype.get=function(){var t=s.navigator;return!t||"boolean"!=typeof t.onLine||!Ii()&&"chrome-extension:"!==Ai()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Vi,Ui={};function Hi(t){Ui[t]||(Ui[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var zi={};Object.defineProperty(zi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(zi,"abcd",{configurable:!0,enumerable:!0,value:2}),Vi=2==zi.abcd}catch(qt){Vi=!1}function qi(t,e,n){Vi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Wi(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&qi(t,n,e[n])}function Gi(t){var e={};return Wi(e,t),e}function Ki(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)qi(e,n,Ki(t[n]));return e}function Yi(t){var e=t&&(t[Ji]?"phone":null);if(!(e&&t&&t[Zi]))throw new x("internal-error","Internal assert: invalid MultiFactorInfo object");qi(this,"uid",t[Zi]),qi(this,"displayName",t[$i]||null);var n=null;t[Xi]&&(n=new Date(t[Xi]).toUTCString()),qi(this,"enrollmentTime",n),qi(this,"factorId",e)}function Qi(t){try{var e=new tr(t)}catch(n){e=null}return e}Yi.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var $i="displayName",Xi="enrolledAt",Zi="mfaEnrollmentId",Ji="phoneInfo";function tr(t){Yi.call(this,t),qi(this,"phoneNumber",t[Ji])}function er(t){var e={},n=t[or],i=t[sr],r=t[ur];if(t=Qi(t[ar]),!r||r!=ir&&r!=rr&&!n||r==rr&&!i||r==nr&&!t)throw Error("Invalid checkActionCode response!");r==rr?(e[cr]=n||null,e[fr]=n||null,e[lr]=i):(e[cr]=i||null,e[fr]=i||null,e[lr]=n||null),e[hr]=t||null,qi(this,pr,r),qi(this,dr,Ki(e))}C(tr,Yi),tr.prototype.v=function(){var t=tr.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var nr="REVERT_SECOND_FACTOR_ADDITION",ir="EMAIL_SIGNIN",rr="VERIFY_AND_CHANGE_EMAIL",or="email",ar="mfaInfo",sr="newEmail",ur="requestType",lr="email",cr="fromEmail",hr="multiFactorInfo",fr="previousEmail",dr="data",pr="operation";function mr(t){var e=Mn(t=Fn(t),vr)||null,n=Mn(t,gr)||null,i=Mn(t,br)||null;if(i=i&&kr[i]||null,!e||!n||!i)throw new x("argument-error",vr+", "+gr+"and "+br+" are required in a valid action code URL.");Wi(this,{apiKey:e,operation:i,code:n,continueUrl:Mn(t,yr)||null,languageCode:Mn(t,_r)||null,tenantId:Mn(t,wr)||null})}var vr="apiKey",gr="oobCode",yr="continueUrl",_r="languageCode",br="mode",wr="tenantId",kr={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:nr,signIn:ir,verifyAndChangeEmail:rr,verifyEmail:"VERIFY_EMAIL"};function Cr(t){try{return new mr(t)}catch(e){return null}}function xr(t){var e=t[Tr];if(void 0===e)throw new x("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new x("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Sr];if(n&&"object"==typeof n){e=n[Pr];var i=n[Or];if(n=n[Dr],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new x("argument-error",Or+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new x("argument-error",Dr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new x("argument-error",Pr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new x("missing-android-pkg-name")}}else if(void 0!==n)throw new x("argument-error",Sr+" property must be a non null object when specified.");if(this.f=null,(e=t[Ar])&&"object"==typeof e){if("string"==typeof(e=e[Rr])&&e.length)this.f=e;else if(void 0!==e)throw new x("argument-error",Rr+" property must be a non empty string when specified.")}else if(void 0!==e)throw new x("argument-error",Ar+" property must be a non null object when specified.");if(void 0!==(e=t[Ir])&&"boolean"!=typeof e)throw new x("argument-error",Ir+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Er])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new x("argument-error",Er+" property must be a non empty string when specified.");this.i=t||null}var Sr="android",Er="dynamicLinkDomain",Ir="handleCodeInApp",Ar="iOS",Tr="url",Or="installApp",Dr="minimumVersion",Pr="packageName",Rr="bundleId";function Nr(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 Mr=null;function Fr(t){var e=jr(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,k(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Lr(t){try{return new Fr(t)}catch(e){return null}}function jr(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(;i<t.length;){var n=t.charAt(i++),r=Mr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Mr){Mr={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=t.concat(e[n].split("")),r=0;r<i.length;r++){var o=i[r];void 0===Mr[o]&&(Mr[o]=r)}}}();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;e(r<<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(i){}return null}Fr.prototype.S=function(){return this.f},Fr.prototype.i=function(){return this.b},Fr.prototype.toString=function(){return this.g};var Br="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Vr=["client_id","response_type","scope","redirect_uri","state"],Ur={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:Vr},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:Vr},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:Vr},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Br},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Hr(t){for(var e in Ur)if(Ur[e].ea==t)return Ur[e];return null}function zr(t){var e={};e["facebook.com"]=Yr,e["google.com"]=$r,e["github.com"]=Qr,e["twitter.com"]=Xr;var n=t&&t[Wr];try{if(n)return e[n]?new e[n](t):new Kr(t);if(void 0!==t[qr])return new Gr(t)}catch(i){}return null}var qr="idToken",Wr="providerId";function Gr(t){var e=t[Wr];if(!e&&t[qr]){var n=Lr(t[qr]);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.
1isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),qi(this,"providerId",e),qi(this,"isNewUser",n)}function Kr(t){Gr.call(this,t),qi(this,"profile",Ki((t=Pi(t.rawUserInfo||"{}"))||{}))}function Yr(t){if(Kr.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Qr(t){if(Kr.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");qi(this,"username",this.profile&&this.profile.login||null)}function $r(t){if(Kr.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Xr(t){if(Kr.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");qi(this,"username",t.screenName||null)}function Zr(t){var e=Fn(t),n=Mn(e,"link"),i=Mn(Fn(n),"link");return e=Mn(e,"deep_link_id"),Mn(Fn(e),"link")||e||i||n||t}function Jr(t,e){if(!t&&!e)throw new x("internal-error","Internal assert: no raw session string available");if(t&&e)throw new x("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?to:eo}C(Kr,Gr),C(Yr,Kr),C(Qr,Kr),C($r,Kr),C(Xr,Kr);var to="enroll",eo="signin";function no(){}function io(t,e){return t.then((function(t){if(t[za]){var n=Lr(t[za]);if(!n||e!=n.h)throw new x("user-mismatch");return t}throw new x("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==I+"user-not-found"?new x("user-mismatch"):t}))}function ro(t,e){if(!e)throw new x("internal-error","failed to construct a credential");this.a=e,qi(this,"providerId",t),qi(this,"signInMethod",t)}function oo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function ao(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new ro(t.providerId,t.pendingToken)}catch(e){}return null}function so(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&qi(this,"idToken",e.idToken),e.accessToken&&qi(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&qi(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new x("internal-error","failed to construct a credential");qi(this,"accessToken",e.oauthToken),qi(this,"secret",e.oauthTokenSecret)}qi(this,"providerId",t),qi(this,"signInMethod",n)}function uo(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:Yn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function lo(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 so(t.providerId,e,t.signInMethod)}catch(n){}}return null}function co(t,e){this.Oc=e||[],Wi(this,{providerId:t,isOAuthProvider:!0}),this.Fb={},this.lb=(Hr(t)||{}).Ha||null,this.kb=null}function ho(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new x("argument-error",'SAML provider IDs must be prefixed with "saml."');co.call(this,t,[])}function fo(t){co.call(this,t,Vr),this.a=[]}function po(){fo.call(this,"facebook.com")}function mo(t){if(!t)throw new x("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return p(t)&&(e=t.accessToken),(new po).credential({accessToken:e})}function vo(){fo.call(this,"github.com")}function go(t){if(!t)throw new x("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return p(t)&&(e=t.accessToken),(new vo).credential({accessToken:e})}function yo(){fo.call(this,"google.com"),this.Aa("profile")}function _o(t,e){var n=t;return p(t)&&(n=t.idToken,e=t.accessToken),(new yo).credential({idToken:n,accessToken:e})}function bo(){co.call(this,"twitter.com",Br)}function wo(t,e){var n=t;if(p(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new x("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new so("twitter.com",n,"twitter.com")}function ko(t,e,n){this.a=t,this.f=e,qi(this,"providerId","password"),qi(this,"signInMethod",n===xo.EMAIL_LINK_SIGN_IN_METHOD?xo.EMAIL_LINK_SIGN_IN_METHOD:xo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Co(t){return t&&t.email&&t.password?new ko(t.email,t.password,t.signInMethod):null}function xo(){Wi(this,{providerId:"password",isOAuthProvider:!1})}function So(t,e){if(!(e=Eo(e)))throw new x("argument-error","Invalid email link!");return new ko(t,e.code,xo.EMAIL_LINK_SIGN_IN_METHOD)}function Eo(t){return(t=Cr(t=Zr(t)))&&t.operation===ir?t:null}function Io(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new x("internal-error");this.a=t,qi(this,"providerId","phone"),this.ea="phone",qi(this,"signInMethod","phone")}function Ao(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return H(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new Io(e)}return null}function To(t){return t.a.Ja&&t.a.da?{temporaryProof:t.a.Ja,phoneNumber:t.a.da}:{sessionInfo:t.a.bb,code:t.a.ab}}function Oo(t){try{this.a=t||r.a.auth()}catch(e){throw new x("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().")}Wi(this,{providerId:"phone",isOAuthProvider:!1})}function Do(t,e){if(!t)throw new x("missing-verification-id");if(!e)throw new x("missing-verification-code");return new Io({bb:t,ab:e})}function Po(t){if(t.temporaryProof&&t.phoneNumber)return new Io({Ja:t.temporaryProof,da:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return _o(o,n);case"facebook.com":return mo(n);case"github.com":return go(n);case"twitter.com":return wo(n,i);default:return n||i||o||a?a?0==e.indexOf("saml.")?new ro(e,a):new so(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new fo(e).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(s){return null}}function Ro(t){if(!t.isOAuthProvider)throw new x("invalid-oauth-provider")}function No(t,e,n,i,r,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=i||null,this.i=o||null,this.h=a||null,this.a=r||null,!this.g&&!this.a)throw new x("invalid-auth-event");
1if(this.g&&this.a)throw new x("invalid-auth-event");if(this.g&&!this.f)throw new x("invalid-auth-event")}function Mo(t){return(t=t||{}).type?new No(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&S(t.error),t.postBody,t.tenantId):null}function Fo(){this.b=null,this.a=[]}Jr.prototype.Fa=function(){return Se(this.a?this.a:this.b)},Jr.prototype.v=function(){return this.type==to?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},no.prototype.ia=function(){},no.prototype.b=function(){},no.prototype.c=function(){},no.prototype.v=function(){},ro.prototype.ia=function(t){return us(t,oo(this))},ro.prototype.b=function(t,e){var n=oo(this);return n.idToken=e,ls(t,n)},ro.prototype.c=function(t,e){return io(cs(t,oo(this)),e)},ro.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},so.prototype.ia=function(t){return us(t,uo(this))},so.prototype.b=function(t,e){var n=uo(this);return n.idToken=e,ls(t,n)},so.prototype.c=function(t,e){return io(cs(t,uo(this)),e)},so.prototype.v=function(){var t={providerId:this.providerId,sign
1InMethod: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},co.prototype.Ia=function(t){return this.Fb=dt(t),this},C(ho,co),C(fo,co),fo.prototype.Aa=function(t){return G(this.a,t)||this.a.push(t),this},fo.prototype.Nb=function(){return $(this.a)},fo.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 x("argument-error","credential failed: must provide the ID token and/or the access token.");return new so(this.providerId,n,this.providerId)},C(po,fo),qi(po,"PROVIDER_ID","facebook.com"),qi(po,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),C(vo,fo),qi(vo,"PROVIDER_ID","github.com"),qi(vo,"GITHUB_SIGN_IN_METHOD","github.com"),C(yo,fo),qi(yo,"PROVIDER_ID","google.com"),qi(yo,"GOOGLE_SIGN_IN_METHOD","google.com"),C(bo,co),qi(bo,"PROVIDER_ID","twitter.com"),qi(bo,"TWITTER_SIGN_IN_METHOD","twitter.com"),ko.prototype.ia=function(t){return this.signInMethod==xo.EMAIL_LINK_SIGN_IN_METHOD?Ws(t,ys,{email:this.a,oobCode:this.f}):Ws(t,Vs,{email:this.a,password:this.f})},ko.prototype.b=function(t,e){return this.signInMethod==xo.EMAIL_LINK_SIGN_IN_METHOD?Ws(t,_s,{idToken:e,email:this.a,oobCode:this.f}):Ws(t,Ps,{idToken:e,email:this.a,password:this.f})},ko.prototype.c=function(t,e){return io(this.ia(t),e)},ko.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Wi(xo,{PROVIDER_ID:"password"}),Wi(xo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Wi(xo,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Io.prototype.ia=function(t){return t.cb(To(this))},Io.prototype.b=function(t,e){var n=To(this);return n.idToken=e,Ws(t,Hs,n)},Io.prototype.c=function(t,e){var n=To(this);return n.operation="REAUTH",io(t=Ws(t,zs,n),e)},Io.prototype.v=function(){var t={providerId:"phone"};return this.a.bb&&(t.verificationId=this.a.bb),this.a.ab&&(t.verificationCode=this.a.ab),this.a.Ja&&(t.temporaryProof=this.a.Ja),this.a.da&&(t.phoneNumber=this.a.da),t},Oo.prototype.cb=function(t,e){var n=this.a.b;return Se(e.verify()).then((function(i){if("string"!=typeof i)throw new x("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var r=p(t)?t.session:null,o=p(t)?t.phoneNumber:t;return(r&&r.type==to?r.Fa().then((function(t){return function(t,e){return Ws(t,Ns,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}})})):r&&r.type==eo?r.Fa().then((function(e){return function(t,e){return Ws(t,Ms,e).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})})):function(t,e){return Ws(t,Os,e)}(n,{phoneNumber:o,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 x("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Wi(Oo,{PROVIDER_ID:"phone"}),Wi(Oo,{PHONE_SIGN_IN_METHOD:"phone"}),No.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},No.prototype.S=function(){return this.h},No.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var Lo,jo=null;function Bo(t){var e="unauthorized-domain",n=void 0,i=Fn(t);t=i.b,"chrome-extension"==(i=i.f)?n=Vt("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"==i||"https"==i?n=Vt("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",x.call(this,e,n)}
1function Vo(t,e,n){x.call(this,t,n),(t=e||{}).Gb&&qi(this,"email",t.Gb),t.da&&qi(this,"phoneNumber",t.da),t.credential&&qi(this,"credential",t.credential),t.Wb&&qi(this,"tenantId",t.Wb)}function Uo(t){if(t.code){var e=t.code||"";0==e.indexOf(I)&&(e=e.substring(I.length));var n={credential:Po(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new x(e,t.message||void 0);return new Vo(e,n,t.message)}return null}function Ho(){}function zo(){}function qo(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 i=e[n];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Wo(){}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.oc,this),this.a.onerror=b(this.Pb,this),this.a.onprogress=b(this.pc,this),this.a.ontimeout=b(this.tc,this)}function Ko(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Yo(t,e,n){this.reset(t,e,n,void 0,void 0)}function Qo(t){this.f=t,this.b=this.c=this.a=null}function $o(t,e){this.name=t,this.value=e}C(Bo,x),C(Vo,x),Vo.prototype.v=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.v();return e&&mt(t,e),t},Vo.prototype.toJSON=function(){return this.v()},Ho.prototype.c=null,C(zo,Ho),zo.prototype.a=function(){var t=qo(this);return t?new ActiveXObject(t):new XMLHttpRequest},zo.prototype.b=function(){var t={};return qo(this)&&(t[0]=!0,t[1]=!0),t},Lo=new zo,C(Wo,Ho),Wo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Go;throw Error("Unsupported browser")},Wo.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.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ko(this,4)},t.Pb=function(){this.status=500,this.response=this.responseText="",Ko(this,4)},t.tc=function(){this.Pb()},t.pc=function(){this.status=200,Ko(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Yo.prototype.a=null,Yo.prototype.reset=function(t,e,n,i,r){i||k(),delete this.a},$o.prototype.toString=function(){return this.name};var Xo=new $o("SEVERE",1e3),Zo=new $o("WARNING",900),Jo=new $o("CONFIG",700),ta=new $o("FINE",500);Qo.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(N("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 ea={},na=null;function ia(t){var e;if(na||(na=new Qo(""),ea[""]=na,na.c=Jo),!(e=ea[t])){e=new Qo(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=ia(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,ea[t]=e}return e}function ra(t,e){t&&t.log(ta,e,void 0)}function oa(t){this.f=t}function aa(t){yn.call(this),this.s=t,this.readyState=sa,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=ia("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}C(oa,Ho),oa.prototype.a=function(){return new aa(this.f)},oa.prototype.b=function(t){return function(){return t}}({}),C(aa,yn);var sa=0;function ua(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function la(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,ca(t)}function ca(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ha(t){yn.call(this),this.headers=new En,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=fa,this.w=this.R=!1}(t=aa.prototype).open=function(t,e){if(this.readyState!=sa)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,ca(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.s.fetch(new Request(this.g,e)).then(this.sc.bind(this),this.Sa.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,la(this,!1)),this.readyState=sa},t.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ca(this)),this.a&&(this.readyState=3,ca(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==s.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,ua(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?la(this,!0):ca(this),3==this.readyState&&ua(this)}},t.rc=function(t){this.a&&(this.response=this.responseText=t,la(this,!0))},t.qc=function(t){this.a&&(this.response=t,la(this,!0))},t.Sa=function(t){var e=this.h;e&&e.log(Zo,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&la(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(Zo,"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(Zo,"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")},C(ha,yn);var fa="";ha.prototype.b=ia("goog.net.XhrIo");var da=/^https?$/i,pa=["POST","PUT"];function ma(t){return"content-type"==t.toLowerCase()}function va(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ga(t),_a(t)}function ga(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ya(t){if(t.c&&void 0!==a)if(t.B[1]&&4==wa(t)&&2==ka(t))ra(t.b,Ca(t,"Local request error detected and ignored"));else if(t.i&&4==wa(t))kn(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==wa(t)){ra(t.b,Ca(t,"Request complete")),t.c=!1;try{var e,n=ka(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var o=String(t.l).match(Tn)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}r=!da.test(o?o.toLowerCase():"")}e=r}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var l=2<wa(t)?t.a.statusText:""}catch(c){ra(t.b,"Can not get status: "+c.message),l=""}t.h=l+" ["+ka(t)+"]",ga(t)}}finally{_a(t)}}}function _a(t,e){if(t.a){ba(t);var n=t.a,i=t.B[0]?c:null;t.a=null,t.B=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){(t=t.b)&&t.log(Xo,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function ba(t){t.a&&t.w&&(t.a.ontimeout=null),t.s&&(s.clearTimeout(t.s),t.s=null)}function wa(t){return t.a?t.a.readyState:0}function ka(t){try{return 2<wa(t)?t.a.status:-1}catch(e){return-1}}function Ca(t,e){return e+" ["+t.P+" "+t.l+" "+ka(t)+"]"}function xa(t){var e=Ma;this.g=[],this.w=e,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Sa(t,e,n){t.a=!0,t.c=n,t.f=!e,Ta(t)}function Ea(t){if(t.a){if(!t.u)throw new Oa(t);t.u=!1}}function Ia(t,e,n,i){t.g.push([e,n,i]),t.a&&Ta(t)}function Aa(t){return W(t.g,(function(t){return d(t[1])}))}function Ta(t){if(t.h&&t.a&&Aa(t)){var e=t.h,n=Ra[e];n&&(s.clearTimeout(n.a),delete Ra[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!1;t.g.length&&!t.i;){var r=t.g.shift(),o=r[0],a=r[1];if(r=r[2],o=t.f?a:o)try{var u=o.call(r||t.s,e);void 0!==u&&(t.f=t.f&&(u==e||u instanceof Error),t.c=e=u),(D(e)||"function"==typeof s.Promise&&e instanceof s.Promise)&&(i=!0,t.i=!0)}catch(l){e=l,t.f=!0,Aa(t)||(n=!0)}}t.c=e,i&&(u=b(t.m,t,!0),i=b(t.m,t,!1),e instanceof xa?(Ia(e,u,i),e.B=!0):e.then(u,i)),n&&(e=new Pa(e),Ra[e.a]=e,t.h=e.a)}function Oa(){P.call(this)}function Da(){P.call(this)}function Pa(t){this.a=s.setTimeout(b(this.c,this),0),this.b=t}(t=ha.prototype).Ka=function(){void 0!==a&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ra(this.b,Ca(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ra(this.b,Ca(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),_a(this))},t.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),_a(this,!0)),ha.Za.Ba.call(this)},t.Sb=function(){this.wa||(this.O||this.i||this.f?ya(this):this.Hc())},t.Hc=function(){ya(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case fa: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(Xo,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ra(this.b,"Can not get response: "+e.message),null}},xa.prototype.cancel=function(t){if(this.a)this.c instanceof xa&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Da(this),Ea(this),Sa(this,!1,t))}},xa.prototype.m=function(t,e){this.i=!1,Sa(this,t,e)},xa.prototype.then=function(t,e,n){var i,r,o=new ye((function(t,e){i=t,r=e}));return Ia(this,i,(function(t){t instanceof Da?o.cancel():r(t)})),o.then(t,e,n)}
1,xa.prototype.$goog_Thenable=!0,C(Oa,P),Oa.prototype.message="Deferred has already fired",Oa.prototype.name="AlreadyCalledError",C(Da,P),Da.prototype.message="Deferred was canceled",Da.prototype.name="CanceledError",Pa.prototype.c=function(){throw delete Ra[this.a],this.b};var Ra={};function Na(t){var e={},n=e.document||document,i=Ct(t).toString(),r=he(document,"SCRIPT"),o={Tb:r,Ka:void 0},a=new xa(o),c=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(c=window.setTimeout((function(){Fa(r,!0);var t=new Ba(ja,"Timeout reached for loading script "+i);Ea(a),Sa(a,!1,t)}),h),o.Ka=c),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Fa(r,e.ud||!1,c),Ea(a),Sa(a,!0,null))},r.onerror=function(){Fa(r,!0,c);var t=new Ba(La,"Error while loading script "+i);Ea(a),Sa(a,!1,t)},mt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ae(r,o),function(t,e){vt(t,"HTMLScriptElement"),t.src=Ct(e),null===l&&(l=(e=(e=s.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&u.test(e)?e:""),(e=l)&&t.setAttribute("nonce",e)}(r,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(r),a}function Ma(){if(this&&this.Tb){var t=this.Tb;t&&"SCRIPT"==t.tagName&&Fa(t,!0,this.Ka)}}function Fa(t,e,n){null!=n&&s.clearTimeout(n),t.onload=c,t.onerror=c,t.onreadystatechange=c,e&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var La=0,ja=1;function Ba(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),P.call(this,n),this.code=t}function Va(t){this.f=t}function Ua(t,e,n){if(this.c=t,this.u=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||qa,this.g=dt(t.secureTokenHeaders||Wa),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=t.firebaseTimeout||Ga,this.a=dt(t.firebaseHeaders||Ka),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==gi(),!(n=s.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!vi())throw new x("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=vi()?new oa(self):yi()?new Va(n):new Wo,this.b=null}C(Ba,P),C(Va,Ho),Va.prototype.a=function(){return new this.f},Va.prototype.b=function(){return{}};var Ha,za="idToken",qa=new Fi(3e4,6e4),Wa={"Content-Type":"application/x-www-form-urlencoded"},Ga=new Fi(3e4,6e4),Ka={"Content-Type":"application/json"};function Ya(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function Qa(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function $a(t,e,n,i,r,o,a){(function(){var t=Ci();return!((t="Chrome"!=bi(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Gt&&ee&&!(9<ee))})()||vi()?t=b(t.w,t):(Ha||(Ha=new ye((function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(s[Za]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Ia(t,null,e,void 0)}(Na(xt(Xa,{onload:Za})),(function(){e(Error("CORS_UNSUPPORTED"))})))}(t,e)}))),t=b(t.s,t)),t(e,n,i,r,o,a)}Ua.prototype.S=function(){return this.b},Ua.prototype.w=function(t,e,n,i,r,o){if(vi()&&(void 0===s.fetch||void 0===s.Headers||void 0===s.Request))throw new x("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new ha(this.f);if(o){a.g=Math.max(0,o);var u=setTimeout((function(){a.dispatchEvent("timeout")}),o)}_n(a,"complete",(function(){u&&clearTimeout(u);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return ra(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)})),bn(a,"ready",(function(){u&&clearTimeout(u),He(this)})),bn(a,"timeout",(function(){u&&clearTimeout(u),He(this),e&&e(null)})),function(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.N=!1,t.c=!0,t.a=t.D?t.D.a():Lo.a(),t.B=function(t){return t.c||(t.c=t.b())}(t.D?t.D:Lo),t.a.onreadystatechange=b(t.Sb,t);try{ra(t.b,Ca(t,"Opening Xhr")),t.O=!0,t.a.open(n,String(e),!0),t.O=!1}catch(a){return ra(t.b,Ca(t,"Error opening Xhr: "+a.message)),void va(t,a)}e=i||"";var o=new En(t.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"==typeof t)H(t,e,void 0);else for(var n=Sn(t),i=xn(t),r=i.length,o=0;o<r;o++)e.call(void 0,i[o],n&&n[o],t)}(r,(function(t,e){o.set(e,t)})),r=function(t){t:{for(var e=ma,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(o.X()),i=s.FormData&&e instanceof s.FormData,!G(pa,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{ba(t),0<t.g&&(t.w=function(t){return Gt&&ie(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),ra(t.b,Ca(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.w)),t.w?(t.a.timeout=t.g,t.a.ontimeout=b(t.Ka,t)):t.s=kn(t.Ka,t.g,t)),ra(t.b,Ca(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){ra(t.b,Ca(t,"Send error: "+a.message)),va(t,a)}}(a,t,n,i,r)};var Xa=new gt(bt,"https://apis.google.com/js/client.js?onload=%{onload}"),Za="__fcb"+Math.floor(1e6*Math.random()).toString();function Ja(t){if("string"!=typeof(t=t.email)||!fi.test(t))throw new x("invalid-email")}function ts(t){"email"in t&&Ja(t)}function es(t){if(!t[za]){if(t.mfaPendingCredential)throw new x("multi-factor-auth-required",null,dt(t));throw new x("internal-error")}}function ns(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new x("internal-error")}else{if(!t.sessionInfo)throw new x("missing-verification-id");if(!t.code)throw new x("missing-verification-code")}}Ua.prototype.s=function(t,e,n,i,r){var o=this;Ha.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})})).o((function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},Ua.prototype.vb=function(){return Ws(this,Rs,{})},Ua.prototype.xb=function(t,e){return Ws(this,Ds,{idToken:t,email:e})},Ua.prototype.yb=function(t,e){return Ws(this,Ps,{idToken:t,password:e})};var is={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function rs(t){if(!t.phoneVerificationInfo)throw new x("internal-error");
1if(!t.phoneVerificationInfo.sessionInfo)throw new x("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new x("missing-verification-code")}function os(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new x("internal-error")}function as(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&$n(t=new Gn(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function ss(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Uo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Uo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Uo(t)):t.errorMessage&&(e=Gs(t.errorMessage)),e)throw e;es(t)}function us(t,e){return e.returnIdpCredential=!0,Ws(t,Fs,e)}function ls(t,e){return e.returnIdpCredential=!0,Ws(t,js,e)}function cs(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Ws(t,Ls,e)}function hs(t){if(!t.oobCode)throw new x("invalid-action-code")}(t=Ua.prototype).zb=function(t,e){var n={idToken:t},i=[];return ht(is,(function(t,r){var o=e[r];null===o?i.push(t):r in e&&(n[r]=o)})),i.length&&(n.deleteAttribute=i),Ws(this,Ds,n)},t.rb=function(t,e){return mt(t={requestType:"PASSWORD_RESET",email:t},e),Ws(this,Es,t)},t.sb=function(t,e){return mt(t={requestType:"EMAIL_SIGNIN",email:t},e),Ws(this,Cs,t)},t.qb=function(t,e){return mt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Ws(this,xs,t)},t.Ab=function(t,e,n){return mt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Ws(this,Ss,t)},t.cb=function(t){return Ws(this,Us,t)},t.jb=function(t,e){return Ws(this,Ts,{oobCode:t,newPassword:e})},t.Pa=function(t){return Ws(this,ds,{oobCode:t})},t.fb=function(t){return Ws(this,fs,{oobCode:t})};var fs={endpoint:"setAccountInfo",A:hs,Y:"email",C:!0},ds={endpoint:"resetPassword",A:hs,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new x("internal-error")},C:!0},ps={endpoint:"signupNewUser",A:function(t){if(Ja(t),!t.password)throw new x("weak-password")},G:es,U:!0,C:!0},ms={endpoint:"createAuthUri",C:!0},vs={endpoint:"deleteAccount",M:["idToken"]},gs={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(t){if("array"!=h(t.deleteProvider))throw new x("internal-error")}},ys={endpoint:"emailLinkSignin",M:["email","oobCode"],A:Ja,G:es,U:!0,C:!0},_s={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:Ja,G:es,U:!0},bs={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:rs,G:es,C:!0,La:!0},ws={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:rs,G:es,C:!0,La:!0},ks={endpoint:"getAccountInfo"},Cs={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new x("internal-error");Ja(t)},Y:"email",C:!0},xs={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new x("internal-error")},Y:"email",C:!0},Ss={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new x("internal-error")},Y:"email",C:!0},Es={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new x("internal-error");Ja(t)},Y:"email",C:!0},Is={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},As={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new x("internal-error")}},Ts={endpoint:"resetPassword",A:hs,Y:"email",C:!0},Os={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Ds={endpoint:"setAccountInfo",M:["idToken"],A:ts,U:!0},Ps={endpoint:"setAccountInfo",M:["idToken"],A:function(t){if(ts(t),!t.password)throw new x("weak-password")},G:es,U:!0},Rs={endpoint:"signupNewUser",G:es,U:!0,C:!0},Ns={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phoneEnrollmentInfo)throw new x("internal-error");
1if(!t.phoneEnrollmentInfo.phoneNumber)throw new x("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new x("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new x("internal-error")},C:!0,La:!0},Ms={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new x("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new x("internal-error")},C:!0,La:!0},Fs={endpoint:"verifyAssertion",A:os,Wa:as,G:ss,U:!0,C:!0},Ls={endpoint:"verifyAssertion",A:os,Wa:as,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new x("user-not-found");if(t.errorMessage)throw Gs(t.errorMessage);es(t)},U:!0,C:!0},js={endpoint:"verifyAssertion",A:function(t){if(os(t),!t.idToken)throw new x("internal-error")},Wa:as,G:ss,U:!0},Bs={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new x("invalid-custom-token")},G:es,U:!0,C:!0},Vs={endpoint:"verifyPassword",A:function(t){if(Ja(t),!t.password)throw new x("wrong-password")},G:es,U:!0,C:!0},Us={endpoint:"verifyPhoneNumber",A:ns,G:es,C:!0},Hs={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new x("internal-error");ns(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Uo(t);es(t)}},zs={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:ns,G:es,C:!0},qs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[za]^!!t.refreshToken)throw new x("internal-error")},C:!0,La:!0};function Ws(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 i=t[e[n]];if(null==i||""===i)return!1}return!0}(n,e.M))return Ee(new x("internal-error"));var i,r=!!e.La,o=e.Rb||"POST";return Se(n).then(e.A).then((function(){return e.U&&(n.returnSecureToken=!0),e.C&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),function(t,e,n,i,r,o,a){var s=Fn(e+n);Nn(s,"key",t.c),a&&Nn(s,"cb",k().toString());var u="GET"==i;if(u)for(var l in r)r.hasOwnProperty(l)&&Nn(s,l,r[l]);return new ye((function(e,n){$a(t,s.toString(),(function(t){t?t.error?n(Ks(t,o||{})):e(t):n(new x("network-request-failed"))}),i,u?void 0:ti(Di(r)),t.a,t.i.get())}))}(t,r?t.l:t.h,e.endpoint,o,n,e.Eb,e.hb||!1)})).then((function(t){return i=t,e.Wa?e.Wa(n,i):i})).then(e.G).then((function(){if(!e.Y)return i;if(!(e.Y in i))throw new x("internal-error");return i[e.Y]}))}function Gs(t){return Ks({error:{errors:[{message:t}],code:400,message:t}})}function Ks(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new x(i[n]):null)return n;for(var r in n=t.error&&t.error.message||"",mt(i={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",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,i)if(0===n.indexOf(r))return new x(i[r],e);return!e&&t&&(e=Oi(t)),new x("internal-error",e)}function Ys(t){this.b=t,this.a=null,this.nb=function(t){return(Zs||(Zs=new ye((function(t,e){function n(){Mi(),xi("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Mi(),e(Error("Network Error"))},timeout:$s.get()})}if(xi("gapi.iframes.Iframe"))t();else if(xi("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();s[i]=function(){xi("gapi.load")?n():e(Error("Network Error"))},Se(Na(i=xt(Qs,{onload:i}))).o((function(){e(Error("Network Error"))}))}})).o((function(t){throw Zs=null,t})))).then((function(){return new ye((function(e,n){xi("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:xi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(i){function r(){clearTimeout(o),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),Xs.get());i.ping(r).then(r,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var Qs=new gt(bt,"https://apis.google.com/js/api.js?onload=%{onload}"),$s=new Fi(3e4,6e4),Xs=new Fi(5e3,15e3),Zs=null;function Js(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=Ln(this.i,"/__/auth/iframe"),Nn(this.a,"apiKey",this.g),Nn(this.a,"appName",this.h),this.b=null,this.c=[]}function tu(t,e,n,i,r){this.s=t,this.m=e,this.c=n,this.u=i,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function eu(t){try{return r.a.app(t).auth().Ea()}catch(e){return[]}}function nu(t,e,n,i,r){this.u=t,this.f=e,this.b=n,this.c=i||null,this.h=r||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function iu(t){var e=ai();return function(t){return Ws(t,Is,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var n=Fn(e),i=n.f;n=n.b;for(var r=0;r<t.length;r++){var o=t[r],a=n,s=i;if(0==o.indexOf("chrome-extension://")?a=Fn(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:hi.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Bo(ai())}))}function ru(t){return t.l||(t.l=di().then((function(){if(!t.s){var e=t.c,n=t.h,i=eu(t.b),r=new Js(t.u,t.f,t.b);r.f=e,r.b=n,r.c=$(i||[]),t.s=r.toString()}t.i=new Ys(t.s),function(t){if(!t.i)throw Error("IfcHandler must be initialized!");!function(t,e){t.nb.then((function(){t.a.register("authEvent",e,xi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.i,(function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=Mo(e.authEvent),n=0;n<t.g.length;n++)i=t.g[n](e)||i;return(n={}).status=i?"ACK":"ERROR",Se(n)}return n.status="ERROR",Se(n)}))}(t)}))),t.l}
1function ou(t){return t.m||(t.w=t.c?ki(t.c,eu(t.b)):null,t.m=new Ua(t.f,O(t.h),t.w)),t.m}function au(t,e,n,i,r,o,a,s,u,l,c){return(t=new tu(t,e,n,i,r)).l=o,t.g=a,t.i=s,t.b=dt(u||null),t.f=l,t.ub(c).toString()}function su(t){if(this.a=t||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new x("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function uu(t){this.b=t,this.a={},this.f=b(this.c,this)}Js.prototype.toString=function(){return this.f?Nn(this.a,"v",this.f):Qn(this.a.a,"v"),this.b?Nn(this.a,"eid",this.b):Qn(this.a.a,"eid"),this.c.length?Nn(this.a,"fw",this.c.join(",")):Qn(this.a.a,"fw"),this.a.toString()},tu.prototype.ub=function(t){return this.h=t,this},tu.prototype.toString=function(){var t=Ln(this.s,"/__/auth/handler");if(Nn(t,"apiKey",this.m),Nn(t,"appName",this.c),Nn(t,"authType",this.u),this.a.isOAuthProvider){var e=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(u){n=null}for(var i in e.kb=n,Nn(t,"providerId",this.a.providerId),n=Di((e=this.a).Fb))n[i]=n[i].toString();i=e.Oc,n=dt(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}e.lb&&e.kb&&!n[e.lb]&&(n[e.lb]=e.kb),ft(n)||Nn(t,"customParameters",Oi(n))}if("function"==typeof this.a.Nb&&(e=this.a.Nb()).length&&Nn(t,"scopes",e.join(",")),this.l?Nn(t,"redirectUrl",this.l):Qn(t.a,"redirectUrl"),this.g?Nn(t,"eventId",this.g):Qn(t.a,"eventId"),this.i?Nn(t,"v",this.i):Qn(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Mn(t,s)&&Nn(t,s,this.b[s]);return this.h?Nn(t,"tid",this.h):Qn(t.a,"tid"),this.f?Nn(t,"eid",this.f):Qn(t.a,"eid"),(s=eu(this.c)).length&&Nn(t,"fw",s.join(",")),t.toString()},(t=nu.prototype).Lb=function(t,e,n){var i=new x("popup-closed-by-user"),r=new x("web-storage-unsupported"),o=this,a=!1;return this.ka().then((function(){(function(t){var e={type:"webStorageSupport"};return ru(t).then((function(){return function(t,e){return t.nb.then((function(){return new ye((function(n){t.a.send(e.type,e,n,xi("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&&li(t),e(r),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(t){return new ye((function(e){return function n(){Cn(2e3).then((function(){if(t&&!t.closed)return n();e()}))}()}))}(t)})).then((function(){if(!a)return Cn(n).then((function(){e(i)}))}))},t.Ub=function(){var t=Ci();return!Ti(t)&&!Ni(t)},t.Qb=function(){return!1},t.Jb=function(t,e,n,i,r,o,a,s){if(!t)return Ee(new x("popup-blocked"));if(a&&!Ti())return this.ka().o((function(e){li(t),r(e)})),i(),Se();this.a||(this.a=iu(ou(this)));var u=this;return this.a.then((function(){var e=u.ka().o((function(e){throw li(t),r(e),e}));return i(),e})).then((function(){Ro(n),a||si(au(u.u,u.f,u.b,e,n,null,o,u.c,void 0,u.h,s),t)})).o((function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t}))},t.Kb=function(t,e,n,i){this.a||(this.a=iu(ou(this)));var r=this;return this.a.then((function(){Ro(e),si(au(r.u,r.f,r.b,t,e,ai(),n,r.c,void 0,r.h,i))})).o((function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t}))},t.ka=function(){var t=this;return ru(this).then((function(){return t.i.nb})).o((function(){throw t.a=null,new x("network-request-failed")}))},t.Xb=function(){return!0},t.Ca=function(t){this.g.push(t)},t.Qa=function(t){Y(this.g,(function(e){return e==t}))},(t=su.prototype).get=function(t){return Se(this.a.getItem(t)).then((function(t){return t&&Pi(t)}))},t.set=function(t,e){return Se(this.a.setItem(t,Oi(e)))},t.T=function(t){return Se(this.a.removeItem(t))},t.ba=function(){},t.ha=function(){};var lu,cu=[];function hu(t,e,n){ft(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function fu(t){this.a=t}function du(t){this.c=t,this.b=!1,this.a=[]}function pu(t,e,n,i){var r,o,a,s,u=n||{},l=null;if(t.b)return Ee(Error("connection_unavailable"));var c=i?800:50,h="undefined"!=typeof MessageChannel?new MessageChannel:null;return new ye((function(n,i){h?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),a=setTimeout((function(){i(Error("unsupported_event"))}),c),t.a.push(l={messageChannel:h,onMessage:o=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout((function(){i(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}}),h.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:r,data:u},[h.port2])):i(Error("connection_unavailable"))})).then((function(e){return mu(t,l),e})).o((function(e){throw mu(t,l),e}))}function mu(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),Y(t.a,(function(t){return t==e}))}}function vu(){if(!yu())throw new x("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=s.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var t=this;vi()&&self?(this.l=function(){var t=vi()?self:null;if(H(cu,(function(n){n.b==t&&(e=n)})),!e){var e=new uu(t);cu.push(e)}return e}(),hu(this.l,"keyChanged",(function(e,n){return Cu(t).then((function(e){return 0<e.length&&H(t.a,(function(t){t(e)})),{keyProcessed:G(e,n.key)}}))})),hu(this.l,"ping",(function(){return Se(["keyChanged"])}))):function(){var t=s.navigator;return t&&t.serviceWorker?Se().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):Se(null)}().then((function(e){(t.h=e)&&(t.g=new du(new fu(e)),pu(t.g,"ping",null,!0).then((function(e){e[0].fulfilled&&G(e[0].value,"keyChanged")&&(t.s=!0)})).o((function(){})))}))}function gu(t){return t.m||(t.m=function t(e){return new ye((function(n,i){var r=e.u.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(e){}i(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){i(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(r):function(t){return new ye((function(e,n){var i=t.u.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){n(Error(t.target.error))}}))}(e).then((function(){return t(e)})).then((function(t){n(t)})).o((function(t){i(t)}))}}))}(t)),t.m}function yu(){try{return!!s.indexedDB}catch(qt){return!1}}function _u(t){return t.objectStore("firebaseLocalStorage")}function bu(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function wu(t){return new ye((function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}}))}function ku(t,e){return t.g&&t.h&&function(){var t=s.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?pu(t.g,"keyChanged",{key:e},t.s).then((function(){})).o((function(){})):Se()}function Cu(t){return gu(t).then((function(t){var e=_u(bu(t,!1));return e.getAll?wu(e.getAll()):new ye((function(t,n){var i=[],r=e.openCursor();r.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},r.onerror=function(t){n(t.target.error)}}))})).then((function(e){var n={},i=[];if(0==t.b){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=function t(e,n){var i,r=[];for(i in e)i in n?typeof e[i]!=typeof n[i]?r.push(i):"object"==typeof e[i]&&null!=e[i]&&null!=n[i]?0<t(e[i],n[i]).length&&r.push(i):e[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in e||r.push(i);return r}(t.c,n),t.c=n}return i}))}function xu(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Su(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Se().then((function(){if(yu()){var t=Ri(),i="__sak"+t;return lu||(lu=new vu),(n=lu).set(i,t).then((function(){return n.get(i)})).then((function(e){if(e!==t)throw Error("indexedDB not supported!");return n.T(i)})).then((function(){return n})).o((function(){return e.c}))}return e.c})).then((function(t){return e.type=t.type,t.ba((function(t){H(e.a,(function(e){e(t)}))}
1)),t}))}function Eu(){this.a={},this.type="inMemory"}function Iu(){if(!function(){var t="Node"==gi();if(!(t=Au()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==gi())throw new x("internal-error","The LocalStorage compatibility library was not found.");throw new x("web-storage-unsupported")}this.a=Au()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Au(){try{var t=s.localStorage,e=Ri();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Tu(){this.type="nullStorage"}function Ou(){if(!function(){var t="Node"==gi();if(!(t=Du()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==gi())throw new x("internal-error","The SessionStorage compatibility library was not found.");throw new x("web-storage-unsupported")}this.a=Du()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Du(){try{var t=s.sessionStorage,e=Ri();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Pu(){var t={};t.Browser=Mu,t.Node=Fu,t.ReactNative=Lu,t.Worker=ju,this.a=t[gi()]}uu.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var r=[];H(i,(function(e){r.push(Se().then((function(){return e(t.origin,t.data.data)})))})),Ae(r).then((function(i){var r=[];H(i,(function(t){r.push({fulfilled:t.Mb,value:t.value,reason:t.reason?t.reason.message:void 0})})),H(r,(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:r})}))}},fu.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},du.prototype.close=function(){for(;0<this.a.length;)mu(this,this.a[0]);this.b=!0},(t=vu.prototype).set=function(t,e){var n,i=!1,r=this;return gu(this).then((function(e){return wu((e=_u(bu(n=e,!0))).get(t))})).then((function(o){var a=_u(bu(n,!0));return o?(o.value=e,wu(a.put(o))):(r.b++,i=!0,(o={}).fbase_key=t,o.value=e,wu(a.add(o)))})).then((function(){return r.c[t]=e,ku(r,t)})).ma((function(){i&&r.b--}))},t.get=function(t){return gu(this).then((function(e){return wu(_u(bu(e,!1)).get(t))})).then((function(t){return t&&t.value}))},t.T=function(t){var e=!1,n=this;return gu(this).then((function(i){return e=!0,n.b++,wu(_u(bu(i,!0)).delete(t))})).then((function(){return delete n.c[t],ku(n,t)})).ma((function(){e&&n.b--}))},t.ba=function(t){0==this.a.length&&function(t){xu(t),function e(){t.f=setTimeout((function(){t.i=Cu(t).then((function(e){0<e.length&&H(t.a,(function(t){t(e)}))})).then((function(){e()})).o((function(t){"STOP_EVENT"!=t.message&&e()}))}),800)}()}(this),this.a.push(t)},t.ha=function(t){Y(this.a,(function(e){return e==t})),0==this.a.length&&xu(this)},(t=Su.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.T=function(t){return this.b.then((function(e){return e.T(t)}))},t.ba=function(t){this.a.push(t)},t.ha=function(t){Y(this.a,(function(e){return e==t}))},(t=Eu.prototype).get=function(t){return Se(this.a[t])},t.set=function(t,e){return this.a[t]=e,Se()},t.T=function(t){return delete this.a[t],Se()},t.ba=function(){},t.ha=function(){},(t=Iu.prototype).get=function(t){var e=this;return Se().then((function(){return Pi(e.a.getItem(t))}))},t.set=function(t,e){var n=this;return Se().then((function(){var i=Oi(e);null===i?n.T(t):n.a.setItem(t,i)}))},t.T=function(t){var e=this;return Se().then((function(){e.a.removeItem(t)}))},t.ba=function(t){s.window&&an(s.window,"storage",t)},t.ha=function(t){s.window&&ln(s.window,"storage",t)},(t=Tu.prototype).get=function(){return Se(null)},t.set=function(){return Se()},t.T=function(){return Se()},t.ba=function(){},t.ha=function(){},(t=Ou.prototype).get=function(t){var e=this;return Se().then((function(){return Pi(e.a.getItem(t))}))},t.set=function(t,e){var n=this;return Se().then((function(){var i=Oi(e);null===i?n.T(t):n.a.setItem(t,i)}))},t.T=function(t){var e=this;return Se().then((function(){e.a.removeItem(t)}))},t.ba=function(){},t.ha=function(){};var Ru,Nu,Mu={F:Iu,$a:Ou},Fu={F:Iu,$a:Ou},Lu={F:su,$a:Tu},ju={F:Iu,$a:Tu},Bu={od:"local",NONE:"none",qd:"session"};function Vu(){var t=!(Ni(Ci())||!mi()),e=Ti(),n=Si();this.m=t,this.h=e,this.l=n,this.a={},Ru||(Ru=new Pu),t=Ru;try{this.g=!oi()&&Bi()||!s.indexedDB?new t.a.F:new Su(vi()?new Eu:new t.a.F)}catch(i){this.g=new Eu,this.h=!0}try{this.i=new t.a.$a}catch(i){this.i=new Eu}this.u=new Eu,this.f=b(this.Vb,this),this.b={}}function Uu(){return Nu||(Nu=new Vu),Nu}function Hu(t,e){switch(e){case"session":return t.i;case"none":return t.u;default:return t.g}}function zu(t,e){return"firebase:"+t.name+(e?":"+e:"")}function qu(t,e,n){return n=zu(e,n),"local"==e.F&&(t.b[n]=null),Hu(t,e.F).T(n)}function Wu(t){t.c&&(clearInterval(t.c),t.c=null)}function Gu(t){this.a=t,this.b=Uu()}(t=Vu.prototype).get=function(t,e){return Hu(this,t.F).get(zu(t,e))},t.set=function(t,e,n){var i=zu(t,n),r=this,o=Hu(this,t.F);return o.set(i,e).then((function(){return o.get(i)})).then((function(e){"local"==t.F&&(r.b[i]=e)}))},t.addListener=function(t,e,n){t=zu(t,e),this.l&&(this.b[t]=s.localStorage.getItem(t)),ft(this.a)&&(Hu(this,"local").ba(this.f),this.h||(oi()||!Bi())&&s.indexedDB||!this.l||function(t){Wu(t),t.c=setInterval((function(){for(var e in t.a){var n=s.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new Ye({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Vb(n))}}),1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},t.removeListener=function(t,e,n){t=zu(t,e),this.a[t]&&(Y(this.a[t],(function(t){return t==n})),0==this.a[t].length&&delete this.a[t]),ft(this.a)&&(Hu(this,"local").ha(this.f),Wu(this))},t.Vb=function(t){if(t&&t.f){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=s.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.ib(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?Hu(this,"local").ha(this.f):Wu(this),this.m)if(n=s.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?
1s.localStorage.setItem(e,i):s.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var o=this;n=function(){void 0===t.a.a&&o.b[e]===s.localStorage.getItem(e)||(o.b[e]=s.localStorage.getItem(e),o.ib(e))},Gt&&ee&&10==ee&&s.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else H(t,b(this.ib,this))},t.ib=function(t){this.a[t]&&H(this.a[t],(function(t){t()}))};var Ku,Yu={name:"authEvent",F:"local"};function Qu(){this.a=Uu()}function $u(t,e){this.b=Xu,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0===Ku&&(Ku=s.Int32Array?new Int32Array(rl):rl),this.reset()}C($u,(function(){this.b=-1}));for(var Xu=64,Zu=Xu-1,Ju=[],tl=0;tl<Zu;tl++)Ju[tl]=0;var el=Q(128,Ju);function nl(t){for(var e=t.f,n=t.l,i=0,r=0;r<e.length;)n[i++]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r=4*i;for(e=16;64>e;e++){var o=(0|n[e-16])+(((r=0|n[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+a|0}i=0|t.a[0],r=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=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&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|Ku[e])|0)+(0|n[e])|0)|0,o=h,h=c,c=l,l=u+a|0,u=s,s=r,r=i,i=a+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|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 il(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if("string"==typeof e)for(;i<n;)t.f[r++]=e.charCodeAt(i++),r==t.b&&(nl(t),r=0);else{if(!f(e))throw Error("message must be string or array");for(;i<n;){var o=e[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(nl(t),r=0)}}t.c=r,t.g+=n}$u.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):$(this.h)};var rl=[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 ol(){$u.call(this,8,al)}C(ol,$u);var al=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function sl(t,e,n,i,r){this.u=t,this.i=e,this.l=n,this.m=i||null,this.s=r||null,this.h=e+":"+n,this.w=new Qu,this.g=new Gu(this.h),this.f=null,this.b=[],this.a=this.c=null}function ul(t){return new x("invalid-cordova-configuration",t)}function ll(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function cl(t){return t.f||(t.f=t.ka().then((function(){return new ye((function(e){t.Ca((function n(i){return e(i),t.Qa(n),!1})),function(t){function e(e){i=!0,r&&r.cancel(),hl(t).then((function(i){var r=n;if(i&&e&&e.url){var o=null;-1!=(r=Zr(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Pi(Mn(o=Fn(r),"firebaseError")||null))?S(o):null)?new No(i.c,i.b,null,null,o,null,i.S()):new No(i.c,i.b,r,i.f,null,null,i.S())),r=o||n}ll(t,r)}))}var n=new No("unknown",null,null,null,new x("no-auth-event")),i=!1,r=Cn(500).then((function(){return hl(t).then((function(){i||ll(t,n)}))})),o=s.handleOpenURL;s.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(xi("BuildInfo.packageName",s).toLowerCase()+"://")&&e({url:t}),"function"==typeof o)try{o(t)}catch(n){console.error(n)}},jo||(jo=new Fo),function(t){var e=jo;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=xi("universalLinks.subscribe",s))&&t(null,e.b))}(e)}(t)}))}))),t.f}function hl(t){var e=null;return function(t){return t.b.get(Yu,t.a).then((function(t){return Mo(t)}))}(t.g).then((function(n){return e=n,qu((n=t.g).b,Yu,n.a)})).then((function(){return e}))}function fl(t){this.a=t,this.b=Uu()}(t=sl.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(pi(void 0)?di().then((function(){return new ye((function(t,e){var n=s.document,i=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(i),t()}),!1)}))})):Ee(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof xi("universalLinks.subscribe",s))throw ul("cordova-universal-links-plugin-fix is not installed");if(void 0===xi("BuildInfo.packageName",s))throw ul("cordova-plugin-buildinfo is not installed");if("function"!=typeof xi("cordova.plugins.browsertab.openUrl",s))throw ul("cordova-plugin-browsertab is not installed");if("function"!=typeof xi("cordova.InAppBrowser.open",s))throw ul("cordova-plugin-inappbrowser is not installed")}),(function(){throw new x("cordova-not-ready")}))},t.Lb=function(t,e){return e(new x("operation-not-supported-in-this-environment")),Se()}
1,t.Jb=function(){return Ee(new x("operation-not-supported-in-this-environment"))},t.Xb=function(){return!1},t.Ub=function(){return!0},t.Qb=function(){return!0},t.Kb=function(t,e,n,i){if(this.c)return Ee(new x("redirect-operation-pending"));var r=this,o=s.document,a=null,u=null,l=null,c=null;return this.c=Se().then((function(){return Ro(e),cl(r)})).then((function(){return function(t,e,n,i,r){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 No(e,i,null,o,new x("no-auth-event"),null,r),u=xi("BuildInfo.packageName",s);if("string"!=typeof u)throw new x("invalid-cordova-configuration");var l=xi("BuildInfo.displayName",s),c={};if(Ci().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=u;else{if(!Ci().toLowerCase().match(/android/))return Ee(new x("operation-not-supported-in-this-environment"));c.apn=u}l&&(c.appDisplayName=l),o=function(t){var e=new ol;il(e,t),t=[];var n=8*e.g;il(e,el,56>e.c?56-e.c:e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(nl(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return function(t){return q(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}(o),c.sessionId=o;var h=au(t.u,t.i,t.l,e,n,null,i,t.m,c,t.s,r);return t.ka().then((function(){var e=t.h;return t.w.a.set(Yu,a.v(),e)})).then((function(){var e=xi("cordova.plugins.browsertab.isAvailable",s);if("function"!=typeof e)throw new x("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!=typeof(n=xi("cordova.plugins.browsertab.openUrl",s)))throw new x("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=xi("cordova.InAppBrowser.open",s)))throw new x("invalid-cordova-configuration");e=Ci(),t.a=n(h,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,t,e,n,i)})).then((function(){return new ye((function(t,e){u=function(){var e=xi("cordova.plugins.browsertab.close",s);return t(),"function"==typeof e&&e(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ca(u),c=function(){Li()&&l()},o.addEventListener("resume",l=function(){a||(a=Cn(2e3).then((function(){e(new x("redirect-cancelled-by-user"))})))},!1),Ci().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)})).o((function(t){return hl(r).then((function(){throw t}))}))})).ma((function(){l&&o.removeEventListener("resume",l,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),u&&r.Qa(u),r.c=null}))},t.Ca=function(t){this.b.push(t),cl(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new No("unknown",null,null,null,new x("no-auth-event")),t(e))}))},t.Qa=function(t){Y(this.b,(function(e){return e==t}))};var dl={name:"pendingRedirect",F:"session"};function pl(t){return qu(t.b,dl,t.a)}function ml(t,e,n){this.i={},this.w=0,this.D=t,this.u=e,this.m=n,this.h=[],this.f=!1,this.l=b(this.s,this),this.b=new Tl,this.B=new Nl,this.g=new fl(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=vl(this.D,this.u,this.m,E)}function vl(t,e,n,i){var o=r.a.SDK_VERSION||null;return pi()?new sl(t,e,n,o,i):new nu(t,e,n,o,i)}function gl(t){t.f||(t.f=!0,t.a.Ca(t.l));var e=t.a;return t.a.ka().o((function(n){throw t.a==e&&t.reset(),n}))}function yl(t){t.a.Ub()&&gl(t).o((function(e){var n=new No("unknown",null,null,null,new x("operation-not-supported-in-this-environment"));xl(e)&&t.s(n)})),t.a.Qb()||Ol(t.b)}function _l(t,e){G(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(dl,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?pl(t.g).then((function(){gl(t).o((function(e){var n=new No("unknown",null,null,null,new x("operation-not-supported-in-this-environment"));xl(e)&&t.s(n)}))})):yl(t)})).o((function(){yl(t)}))}function bl(t,e){Y(t.h,(function(t){return t==e}))}ml.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=vl(this.D,this.u,this.m),this.i={}},ml.prototype.s=function(t){if(!t)throw new x("invalid-auth-event");
1if(6e5<=k()-this.w&&(this.i={},this.w=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Cb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.w=k())),e=!0;break}}return Ol(this.b),e};var wl=new Fi(2e3,1e4),kl=new Fi(3e4,6e4);function Cl(t,e,n,i,r,o,a){return t.a.Jb(e,n,i,(function(){t.f||(t.f=!0,t.a.Ca(t.l))}),(function(){t.reset()}),r,o,a)}function xl(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Sl(t,e,n,i,r){var o;return function(t){return t.b.set(dl,"pending",t.a)}(t.g).then((function(){return t.a.Kb(e,n,i,r).o((function(e){if(xl(e))throw new x("operation-not-supported-in-this-environment");return o=e,pl(t.g).then((function(){throw o}))})).then((function(){return t.a.Xb()?new ye((function(){})):pl(t.g).then((function(){return t.pa()})).then((function(){})).o((function(){}))}))}))}function El(t,e,n,i,r){return t.a.Lb(i,(function(t){e.la(n,null,t,r)}),wl.get())}ml.prototype.pa=function(){return this.b.pa()};var Il={};function Al(t,e,n){var i=e+":"+n;return Il[i]||(Il[i]=new ml(t,e,n)),Il[i]}function Tl(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Ol(t){t.g||(t.g=!0,Rl(t,!1,null,null))}function Dl(t){t.g&&!t.i&&Rl(t,!1,null,null)}function Pl(t,e){if(t.b=function(){return Se(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Rl(t,e,n,i){e?i?function(t,e){if(t.b=function(){return Ee(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):Pl(t,n):Pl(t,{user:null}),t.f=[],t.c=[]}function Nl(){}function Ml(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(t){this.Bb=t},enumerable:!1})}function Fl(t,e){this.a=e,qi(this,"verificationId",t)}function Ll(t,e,n,i){return new Oo(t).cb(e,n).then((function(t){return new Fl(t,i)}))}function jl(t){var e=jr(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new x("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Wi(this,{token:t,expirationTime:ji(1e3*e.exp),authTime:ji(1e3*e.auth_time),issuedAtTime:ji(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function Bl(t,e,n){var i=e&&e[Ul];if(!i)throw new x("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=dt(e),this.g=n,this.c=new Jr(null,i),this.b=[];var r=this;H(e[Vl]||[],(function(t){(t=Qi(t))&&r.b.push(t)})),qi(this,"auth",this.a),qi(this,"session",this.c),qi(this,"hints",this.b)}Tl.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Tl.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!o),"unknown"!=n||r||o?t.a?(Rl(this,!0,null,t.a),Se()):e.Da(n,i)?function(t,e,n){n=n.Da(e.c,e.b);var i=e.g,r=e.f,o=e.i,a=e.S(),s=!!e.c.match(/Redirect$/);n(i,r,a,o).then((function(e){Rl(t,s,e,null)})).o((function(e){Rl(t,s,null,e)}))}(this,t,e):Ee(new x("invalid-auth-event")):(Rl(this,!1,null,null),Se())}else Ee(new x("invalid-auth-event"))},Tl.prototype.pa=function(){var t=this;return new ye((function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new x("timeout");t.a&&t.a.cancel(),t.a=Cn(kl.get()).then((function(){t.b||(t.g=!0,Rl(t,!0,null,e))}))}(t))}))},Nl.prototype.h=function(t,e){if(t){var n=t.c,i=t.b;t.a?(e.la(t.c,null,t.a,t.b),Se()):e.Da(n,i)?function(t,e){var n=t.b,i=t.c;e.Da(i,n)(t.g,t.f,t.S(),t.i).then((function(t){e.la(i,t,null,n)})).o((function(t){e.la(i,null,t,n)}))}(t,e):Ee(new x("invalid-auth-event"))}else Ee(new x("invalid-auth-event"))},Fl.prototype.confirm=function(t){return t=Do(this.verificationId,t),this.a(t)};var Vl="mfaInfo",Ul="mfaPendingCredential";function Hl(t,e,n,i){x.call(this,"multi-factor-auth-required",i,e),this.b=new Bl(t,e,n),qi(this,"resolver",this.b)}function zl(t,e,n){if(t&&p(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Hl(e,t.serverResponse,n,t.message)}catch(i){}return null}function ql(){}function Wl(t){qi(this,"factorId",t.ea),this.a=t}function Gl(t){if(Wl.call(this,t),this.a.ea!=Oo.PROVIDER_ID)throw new x("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function Kl(t,e){for(var n in Ke.call(this,t),e)this[n]=e[n]}function Yl(t,e){this.a=t,this.b=[],this.c=b(this.wc,this),an(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&H(e.multiFactor.enrolledFactors,(function(t){var e=null,i={};
1if(t){t.uid&&(i[Zi]=t.uid),t.displayName&&(i[$i]=t.displayName),t.enrollmentTime&&(i[Xi]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[Ji]=t.phoneNumber);try{e=new tr(i)}catch(r){}t=e}else t=null;t&&n.push(t)})),Ql(this,n)}function Ql(t,e){t.b=e,qi(t,"enrolledFactors",e)}function $l(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 Xl(t){this.c=t,this.b=this.a=null}function Zl(t){return t.b&&1e3*t.b.c||0}function Jl(t,e){var n=e.refreshToken;t.b=Lr(e[za]||""),t.a=n}function tc(t,e){this.a=t||null,this.b=e||null,Wi(this,{lastSignInTime:ji(e||null),creationTime:ji(t||null)})}function ec(t,e,n,i,r,o){Wi(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function nc(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null,t=r.a.SDK_VERSION?ki(r.a.SDK_VERSION):null,this.a=new Ua(this.l,O(E),t),this.b=new Xl(this.a),lc(this,e[za]),Jl(this.b,e),qi(this,"refreshToken",this.b.a),fc(this,n||{}),yn.call(this),this.P=!1,this.s&&Ei()&&(this.i=Al(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(t){return new $l((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=Zl(t.b)-k()-3e5;return 0<e?e:0}))}(this),this.Z=b(this.Ma,this);var i=this;this.oa=null,this.za=function(t){i.va(t.g)},this.aa=null,this.W=[],this.ya=function(t){rc(i,t.c)},this.$=null,this.O=new Yl(this,n),qi(this,"multiFactor",this.O)}function ic(t,e){t.aa&&ln(t.aa,"languageCodeChanged",t.za),(t.aa=e)&&an(e,"languageCodeChanged",t.za)}function rc(t,e){t.W=e,Qa(t.a,r.a.SDK_VERSION?ki(r.a.SDK_VERSION,t.W):null)}function oc(t,e){t.$&&ln(t.$,"frameworkChanged",t.ya),(t.$=e)&&an(e,"frameworkChanged",t.ya)}function ac(t){try{return r.a.app(t.m).auth()}catch(e){throw new x("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function sc(t){t.D||t.B.b||(t.B.start(),ln(t,"tokenChanged",t.Z),an(t,"tokenChanged",t.Z))}function uc(t){ln(t,"tokenChanged",t.Z),t.B.stop()}function lc(t,e){t.xa=e,qi(t,"_lat",e)}function cc(t){for(var e=[],n=0;n<t.R.length;n++)e.push(t.R[n](t));return Ae(e).then((function(){return t}))}function hc(t){t.i&&!t.P&&(t.P=!0,_l(t.i,t))}function fc(t,e){Wi(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new tc(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function dc(){}function pc(t){return Se().then((function(){if(t.D)throw new x("app-deleted")}))}function mc(t){return q(t.providerData,(function(t){return t.providerId}))}function vc(t,e){e&&(gc(t,e.providerId),t.providerData.push(e))}function gc(t,e){Y(t.providerData,(function(t){return t.providerId==e}))}function yc(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&qi(t,e,n)}function _c(t,e){t!=e&&(Wi(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),qi(t,"metadata",e.metadata?function(t){return new tc(t.a,t.b)}(e.metadata):new tc),H(e.providerData,(function(e){vc(t,e)})),function(t,e){t.b=e.b,t.a=e.a}(t.b,e.b),qi(t,"refreshToken",t.b.a),Ql(t.O,e.O.b))}function bc(t){return t.I().then((function(e){var n=t.isAnonymous;return function(t,e){return Ws(t.a,ks,{idToken:e}).then(b(t.Ic,t))}(t,e).then((function(){return n||yc(t,"isAnonymous",!1),e}))}))}function wc(t,e){e[za]&&t.xa!=e[za]&&(Jl(t.b,e),t.dispatchEvent(new Kl("tokenChanged")),lc(t,e[za]),yc(t,"refreshToken",t.b.a))}function kc(t,e){return bc(t).then((function(){if(G(mc(t),e))return cc(t).then((function(){throw new x("provider-already-linked")}))}))}function Cc(t,e,n){return Gi({user:t,credential:Po(e),additionalUserInfo:e=zr(e),operationType:n})}function xc(t,e){return wc(t,e),t.reload().then((function(){return t}))}
1function Sc(t,e,n,i,o){if(!Ei())return Ee(new x("operation-not-supported-in-this-environment"));if(t.h&&!o)return Ee(t.h);var a=Hr(n.providerId),s=Ri(t.uid+":::"),u=null;(!Ti()||mi())&&t.s&&n.isOAuthProvider&&(u=au(t.s,t.l,t.m,e,n,null,s,r.a.SDK_VERSION||null,null,null,t.tenantId));var l=ci(u,a&&a.ta,a&&a.sa);return i=i().then((function(){if(Ic(t),!o)return t.I().then((function(){}))})).then((function(){return Cl(t.i,l,e,n,s,!!u,t.tenantId)})).then((function(){return new ye((function(n,i){t.la(e,null,new x("cancelled-popup-request"),t.g||null),t.f=n,t.w=i,t.g=s,t.c=El(t.i,t,e,l,s)}))})).then((function(t){return l&&li(l),t?Gi(t):null})).o((function(t){throw l&&li(l),t})),Ac(t,i,o)}function Ec(t,e,n,i,r){if(!Ei())return Ee(new x("operation-not-supported-in-this-environment"));if(t.h&&!r)return Ee(t.h);var o=null,a=Ri(t.uid+":::");return i=i().then((function(){if(Ic(t),!r)return t.I().then((function(){}))})).then((function(){return t.fa=a,cc(t)})).then((function(e){return t.ga&&(e=(e=t.ga).b.set(Dc,t.v(),e.a)),e})).then((function(){return Sl(t.i,e,n,a,t.tenantId)})).o((function(e){if(o=e,t.ga)return Pc(t.ga);throw o})).then((function(){if(o)throw o})),Ac(t,i,r)}function Ic(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new x("internal-error");throw new x("auth-domain-config-required")}}function Ac(t,e,n){var i=function(t,e,n){return t.h&&!n?(e.cancel(),Ee(t.h)):e.o((function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.h||t.dispatchEvent(new Kl("userInvalidated")),t.h=e),e}))}(t,e,n);return t.N.push(i),i.ma((function(){K(t.N,i)})),i.o((function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=zl(e.v(),ac(t),b(t.hc,t))),n||e}))}function Tc(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[za]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=new nc(e,n,t);return t.providerData&&H(t.providerData,(function(t){t&&vc(i,Gi(t))})),t.redirectEventId&&(i.fa=t.redirectEventId),i}function Oc(t){this.a=t,this.b=Uu()}Bl.prototype.Pc=function(t){var e=this;return t.ob(this.a.b,this.c).then((function(t){var n=dt(e.f);return delete n[Vl],delete n[Ul],mt(n,t),e.g(n)}))},C(Hl,x),ql.prototype.ob=function(t,e,n){return e.type==to?function(t,e,n,i){return n.Fa().then((function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),mt(n,{phoneVerificationInfo:To(t.a)}),Ws(e,bs,n)}))}(this,t,e,n):function(t,e,n){return n.Fa().then((function(n){return mt(n={mfaPendingCredential:n},{phoneVerificationInfo:To(t.a)}),Ws(e,ws,n)}))}(this,t,e)},C(Wl,ql),C(Gl,Wl),C(Kl,Ke),(t=Yl.prototype).wc=function(t){Ql(this,function(t){var e=[];return H(t.mfaInfo||[],(function(t){(t=Qi(t))&&e.push(t)})),e}(t.ed))},t.Ob=function(){return this.a.I().then((function(t){return new Jr(t,null)}))},t.dc=function(t,e){var n=this,i=this.a.a;return this.Ob().then((function(n){return t.ob(i,n,e)})).then((function(t){return wc(n.a,t),n.a.reload()}))},t.$c=function(t){var e=this,n="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then((function(t){return Ws(i,qs,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var i=z(e.b,(function(t){return t.uid!=n}));return Ql(e,i),wc(e.a,t),e.a.reload().o((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},t.v=function(){return{multiFactor:{enrolledFactors:q(this.b,(function(t){return t.v()}))}}},$l.prototype.start=function(){this.a=this.c,function t(e,n){e.stop(),e.b=Cn(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(e,n)).then((function(){return function(){var t=s.document,e=null;return Li()||!t?Se():new ye((function(n){e=function(){Li()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).o((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}()})).then((function(){return e.h()})).then((function(){t(e,!0)})).o((function(n){e.i(n)&&t(e,!1)}))}(this,!0)},$l.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Xl.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Zl(this)}},Xl.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?
1Ee(new x("user-token-expired")):t||!this.b||k()>Zl(this)-3e4?this.a?function(t,e){return function(t,e){return new ye((function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?$a(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?i(Ks(t)):t.access_token&&t.refresh_token?n(t):i(new x("internal-error")):i(new x("network-request-failed"))}),"POST",Yn(e).toString(),t.g,t.m.get()):i(new x("internal-error"))}))}(t.c,e).then((function(e){return t.b=Lr(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).o((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}(this,{grant_type:"refresh_token",refresh_token:this.a}):Se(null):Se({accessToken:this.b.toString(),refreshToken:this.a})},tc.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},C(nc,yn),nc.prototype.va=function(t){this.oa=t,Ya(this.a,t)},nc.prototype.ja=function(){return this.oa},nc.prototype.Ea=function(){return $(this.W)},nc.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},qi(nc.prototype,"providerId","firebase"),(t=nc.prototype).reload=function(){var t=this;return Ac(this,pc(this).then((function(){return bc(t).then((function(){return cc(t)})).then(dc)})))},t.mc=function(t){return this.I(t).then((function(t){return new jl(t)}))},t.I=function(t){var e=this;return Ac(this,pc(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new x("internal-error");return t.accessToken!=e.xa&&(lc(e,t.accessToken),e.dispatchEvent(new Kl("tokenChanged"))),yc(e,"refreshToken",t.refreshToken),t.accessToken})))},t.Ic=function(t){if(!(t=t.users)||!t.length)throw new x("internal-error");fc(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?q(t,(function(t){return new ec(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;n<e.length;n++)vc(this,e[n]);yc(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new Kl("userReloaded",{ed:t}))},t.Jc=function(t){return Hi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(t)},t.pb=function(t){var e=this,n=null;return Ac(this,t.c(this.a,this.uid).then((function(t){return wc(e,t),n=Cc(e,t,"reauthenticate"),e.h=null,e.reload()})).then((function(){return n})),!0)},t.Ac=function(t){return Hi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(t)},t.mb=function(t){var e=this,n=null;return Ac(this,kc(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=Cc(e,t,"link"),xc(e,t)})).then((function(){return n})))},t.Bc=function(t,e){var n=this;return Ac(this,kc(this,"phone").then((function(){return Ll(ac(n),t,e,b(n.mb,n))})))},t.Kc=function(t,e){var n=this;return Ac(this,Se().then((function(){return Ll(ac(n),t,e,b(n.pb,n))})),!0)},t.xb=function(t){var e=this;return Ac(this,this.I().then((function(n){return e.a.xb(n,t)})).then((function(t){return wc(e,t),e.reload()})))},t.cd=function(t){var e=this;return Ac(this,this.I().then((function(n){return t.b(e.a,n)})).then((function(t){return wc(e,t),e.reload()})))},t.yb=function(t){var e=this;return Ac(this,this.I().then((function(n){return e.a.yb(n,t)})).then((function(t){return wc(e,t),e.reload()})))},t.zb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return pc(this);var e=this;return Ac(this,this.I().then((function(n){return e.a.zb(n,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return wc(e,t),yc(e,"displayName",t.displayName||null),yc(e,"photoURL",t.photoUrl||null),H(e.providerData,(function(t){"password"===t.providerId&&(qi(t,"displayName",e.displayName),qi(t,"photoURL",e.photoURL))})),cc(e)})).then(dc))},t.ad=function(t){var e=this;return Ac(this,bc(this).then((function(n){return G(mc(e),t)?function(t,e,n){return Ws(t,gs,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then((function(t){var n={};return H(t.providerUserInfo||[],(function(t){n[t.providerId]=!0})),H(mc(e),(function(t){n[t]||gc(e,t)})),n[Oo.PROVIDER_ID]||qi(e,"phoneNumber",null),cc(e)})):cc(e).then((function(){throw new x("no-such-provider")}))})))},t.delete=function(){var t=this;return Ac(this,this.I().then((function(e){return Ws(t.a,vs,{idToken:e})})).then((function(){t.dispatchEvent(new Kl("userDeleted"))}))).then((function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");ic(t,null),oc(t,null),t.N=[],t.D=!0,uc(t),qi(t,"refreshToken",null),t.i&&bl(t.i,t)}
1))},t.Cb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.fa||null)==e||"reauthViaRedirect"==t&&(this.fa||null)==e)},t.la=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(n&&this.w?this.w(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?b(this.Hb,this):"reauthViaPopup"==t&&e==(this.g||null)?b(this.Ib,this):"linkViaRedirect"==t&&(this.fa||null)==e?b(this.Hb,this):"reauthViaRedirect"==t&&(this.fa||null)==e?b(this.Ib,this):null},t.Cc=function(t){var e=this;return Sc(this,"linkViaPopup",t,(function(){return kc(e,t.providerId).then((function(){return cc(e)}))}),!1)},t.Lc=function(t){return Sc(this,"reauthViaPopup",t,(function(){return Se()}),!0)},t.Dc=function(t){var e=this;return Ec(this,"linkViaRedirect",t,(function(){return kc(e,t.providerId)}),!1)},t.Mc=function(t){return Ec(this,"reauthViaRedirect",t,(function(){return Se()}),!0)},t.Hb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Ac(this,this.I().then((function(n){return ls(r.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})})).then((function(t){return o=Cc(r,t,"link"),xc(r,t)})).then((function(){return o})))},t.Ib=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Ac(this,Se().then((function(){return io(cs(r.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),r.uid)})).then((function(t){return o=Cc(r,t,"reauthenticate"),wc(r,t),r.h=null,r.reload()})).then((function(){return o})),!0)},t.qb=function(t){var e=this,n=null;return Ac(this,this.I().then((function(e){return n=e,void 0===t||ft(t)?{}:Nr(new xr(t))})).then((function(t){return e.a.qb(n,t)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},t.Ab=function(t,e){var n=this,i=null;return Ac(this,this.I().then((function(t){return i=t,void 0===e||ft(e)?{}:Nr(new xr(e))})).then((function(e){return n.a.Ab(i,t,e)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},t.hc=function(t){var e=null,n=this;return Ac(this,t=io(Se(t),n.uid).then((function(t){return e=Cc(n,t,"reauthenticate"),wc(n,t),n.h=null,n.reload()})).then((function(){return e})),!0)},t.toJSON=function(){return this.v()},t.v=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&mt(t,this.metadata.v()),H(this.providerData,(function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))})),mt(t,this.O.v()),t};var Dc={name:"redirectUser",F:"session"};function Pc(t){return qu(t.b,Dc,t.a)}function Rc(t){this.a=t,this.b=Uu(),this.c=null,this.f=function(t){var e=Fc("local"),n=Fc("session"),i=Fc("none");return function(t,e,n){var i=zu(e,n),r=Hu(t,e.F);return t.get(e,n).then((function(o){var a=null;try{a=Pi(s.localStorage.getItem(i))}catch(u){}if(a&&!o)return s.localStorage.removeItem(i),t.set(e,a,n);a&&o&&"localStorage"!=r.type&&s.localStorage.removeItem(i)}))}(t.b,e,t.a).then((function(){return t.b.get(n,t.a)})).then((function(r){return r?n: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(Mc,t.a).then((function(t){return t?Fc(t):e}))}))}))})).then((function(e){return t.c=e,Nc(t,e.F)})).o((function(){t.c||(t.c=e)}))}(this),this.b.addListener(Fc("local"),this.a,b(this.g,this))}function Nc(t,e){var n,i=[];for(n in Bu)Bu[n]!==e&&i.push(qu(t.b,Fc(Bu[n]),t.a));return i.push(qu(t.b,Mc,t.a)),function(t){return new ye((function(e,n){var i=t.length,r=[];if(i)for(var o=function(t,n){i--,r[t]=n,0==i&&e(r)},a=function(t){n(t)},s=0;s<t.length;s++)Ie(t[s],w(o,s),a);else e(r)}))}(i)}Rc.prototype.g=function(){var t=this,e=Fc("local");Vc(this,(function(){return Se().then((function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null})).then((function(n){if(n)return Nc(t,"local").then((function(){t.c=e}))}))}))};var Mc={name:"persistence",F:"session"};function Fc(t){return{name:"authUser",F:t}}function Lc(t,e){return Vc(t,(function(){return t.b.set(t.c,e.v(),t.a)}))}function jc(t){return Vc(t,(function(){return qu(t.b,t.c,t.a)}))}function Bc(t,e){return Vc(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),Tc(t||{})}))}))}function Vc(t,e){return t.f=t.f.then(e,e),t.f}function Uc(t){if(this.l=!1,qi(this,"settings",new Ml),qi(this,"app",t),!Yc(this).options||!Yc(this).options.apiKey)throw new x("invalid-api-key");t=r.a.SDK_VERSION?ki(r.a.SDK_VERSION):null,this.b=new Ua(Yc(this).options&&Yc(this).options.apiKey,O(E),t),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(b(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(b(this.yc,this)),Gc(this,null),this.i=new Rc(Yc(this).options.apiKey+":"+Yc(this).name),this.B=new Oc(Yc(this).options.apiKey+":"+Yc(this).name),this.Z=Zc(this,function(t){var e=Yc(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Dc,t.a).then((function(t){return t&&e&&(t.authDomain=e),Tc(t||{})}))}(t.B,Yc(t).options.authDomain).then((function(e){return(t.D=e)&&(e.ga=t.B),Pc(t.B)}));return Zc(t,e)}(t).then((function(){return Bc(t.i,e)})).then((function(e){return e?(e.ga=t.B,t.D&&(t.D.fa||null)==(e.fa||null)?e:e.reload().then((function(){return Lc(t.i,e).then((function(){return e}))})).o((function(n){return"auth/network-request-failed"==n.code?e:jc(t.
1i)}))):null})).then((function(e){Gc(t,e||null)}));return Zc(t,n)}(this)),this.h=Zc(this,function(t){return t.Z.then((function(){return Wc(t)})).o((function(){})).then((function(){if(!t.l)return t.oa()})).o((function(){})).then((function(){if(!t.l){t.aa=!0;var e=t.i;e.b.addListener(Fc("local"),e.a,t.oa)}}))}(this)),this.aa=!1,this.oa=b(this.Xc,this),this.Ma=b(this.ca,this),this.xa=b(this.jc,this),this.ya=b(this.uc,this),this.za=b(this.vc,this),this.a=null,function(t){var e=Yc(t).options.authDomain,n=Yc(t).options.apiKey;e&&Ei()&&(t.Zb=t.Z.then((function(){if(!t.l){if(t.a=Al(e,n,Yc(t).name),_l(t.a,t),Qc(t)&&hc(Qc(t)),t.D){hc(t.D);var i=t.D;i.va(t.ja()),ic(i,t),rc(i=t.D,t.N),oc(i,t),t.D=null}return t.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=b(this.delete,this),this.INTERNAL.logFramework=b(this.Ec,this),this.s=0,yn.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ja()},set:function(t){this.va(t)},enumerable:!1}),t.$=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.ub(t)},enumerable:!1}),t.R=null}(this),this.N=[]}function Hc(t){Ke.call(this,"languageCodeChanged"),this.g=t}function zc(t){Ke.call(this,"frameworkChanged"),this.c=t}function qc(t){return t.Zb||Ee(new x("auth-domain-config-required"))}function Wc(t){if(!Ei())return Ee(new x("operation-not-supported-in-this-environment"));var e=qc(t).then((function(){return t.a.pa()})).then((function(t){return t?Gi(t):null}));return Zc(t,e)}function Gc(t,e){Qc(t)&&(function(t,e){Y(t.R,(function(t){return t==e}))}(Qc(t),t.Ma),ln(Qc(t),"tokenChanged",t.xa),ln(Qc(t),"userDeleted",t.ya),ln(Qc(t),"userInvalidated",t.za),uc(Qc(t))),e&&(e.R.push(t.Ma),an(e,"tokenChanged",t.xa),an(e,"userDeleted",t.ya),an(e,"userInvalidated",t.za),0<t.s&&sc(e)),qi(t,"currentUser",e),e&&(e.va(t.ja()),ic(e,t),rc(e,t.N),oc(e,t))}function Kc(t,e){var n=null,i=null;return Zc(t,e.then((function(e){return n=Po(e),i=zr(e),function(t,e){var n={};return n.apiKey=Yc(t).options.apiKey,n.authDomain=Yc(t).options.authDomain,n.appName=Yc(t).name,t.Z.then((function(){return function(t,e,n,i){var r=new nc(t,e);return n&&(r.ga=n),i&&rc(r,i),r.reload().then((function(){return r}))}(n,e,t.B,t.Ea())})).then((function(e){return Qc(t)&&e.uid==Qc(t).uid?(_c(Qc(t),e),t.ca(e)):(Gc(t,e),hc(e),t.ca(e))})).then((function(){Xc(t)}))}(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=zl(e.v(),t,b(t.ic,t))),n||e})).then((function(){return Gi({user:Qc(t),credential:n,additionalUserInfo:i,operationType:"signIn"})})))}function Yc(t){return t.app}function Qc(t){return t.currentUser}function $c(t){return Qc(t)&&Qc(t)._lat||null}function Xc(t){if(t.aa){for(var e=0;e<t.m.length;e++)t.m[e]&&t.m[e]($c(t));if(t.W!==t.getUid()&&t.O.length)for(t.W=t.getUid(),e=0;e<t.O.length;e++)t.O[e]&&t.O[e]($c(t))}}function Zc(t,e){return t.P.push(e),e.ma((function(){K(t.P,e)})),e}function Jc(){}function th(){this.a={},this.b=1e12}Rc.prototype.tb=function(t){var e=null,n=this;return function(t){var e=new x("invalid-persistence-type"),n=new x("unsupported-persistence-type");t:{for(i in Bu)if(Bu[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(gi()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!yu()&&"none"!==t)throw n;break;default:if(!Si()&&"none"!==t)throw n}}(t),Vc(this,(function(){return t!=n.c.F?n.b.get(n.c,n.a).then((function(i){return e=i,Nc(n,t)})).then((function(){if(n.c=Fc(t),e)return n.b.set(n.c,e,n.a)})):Se()}))},C(Uc,yn),C(Hc,Ke),C(zc,Ke),(t=Uc.prototype).tb=function(t){return Zc(this,t=this.i.tb(t))},t.va=function(t){this.$===t||this.l||(this.$=t,Ya(this.b,this.$),this.dispatchEvent(new Hc(this.ja())))},t.ja=function(){return this.$},t.dd=function(){var t=s.navigator;this.va(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.Ec=function(t){this.N.push(t),Qa(this.b,r.a.SDK_VERSION?ki(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new zc(this.N))},t.Ea=function(){return $(this.N)},t.ub=function(t){this.R===t||this.l||(this.R=t,this.b.b=this.R)},t.S=function(){return this.R},t.toJSON=function(){return{apiKey:Yc(this).options.apiKey,authDomain:Yc(this).options.authDomain,appName:Yc(this).name,currentUser:Qc(this)&&Qc(this).v()}},t.Cb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},t.la=function(t,e,n,i){"signInViaPopup"==t&&this.g==i&&(n&&this.w?this.w(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?b(this.gc,this):null},t.gc=function(t,e,n,i){var r=this,o={requestUri:t,postBody:i,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.Z.then((function(){return Kc(r,us(r.b,o))}))}
1,t.Vc=function(t){if(!Ei())return Ee(new x("operation-not-supported-in-this-environment"));var e=this,n=Hr(t.providerId),i=Ri(),o=null;(!Ti()||mi())&&Yc(this).options.authDomain&&t.isOAuthProvider&&(o=au(Yc(this).options.authDomain,Yc(this).options.apiKey,Yc(this).name,"signInViaPopup",t,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var a=ci(o,n&&n.ta,n&&n.sa);return Zc(this,n=qc(this).then((function(n){return Cl(n,a,"signInViaPopup",t,i,!!o,e.S())})).then((function(){return new ye((function(t,n){e.la("signInViaPopup",null,new x("cancelled-popup-request"),e.g),e.f=t,e.w=n,e.g=i,e.c=El(e.a,e,"signInViaPopup",a,i)}))})).then((function(t){return a&&li(a),t?Gi(t):null})).o((function(t){throw a&&li(a),t})))},t.Wc=function(t){if(!Ei())return Ee(new x("operation-not-supported-in-this-environment"));var e=this;return Zc(this,qc(this).then((function(){return function(t){return Vc(t,(function(){return t.b.set(Mc,t.c.F,t.a)}))}(e.i)})).then((function(){return Sl(e.a,"signInViaRedirect",t,void 0,e.S())})))},t.pa=function(){var t=this;return Wc(this).then((function(e){return t.a&&Dl(t.a.b),e})).o((function(e){throw t.a&&Dl(t.a.b),e}))},t.bd=function(t){if(!t)return Ee(new x("null-user"));if(this.R!=t.tenantId)return Ee(new x("tenant-id-mismatch"));var e=this,n={};n.apiKey=Yc(this).options.apiKey,n.authDomain=Yc(this).options.authDomain,n.appName=Yc(this).name;var i=function(t,e,n,i){var r=t.b,o={};return o[za]=r.b&&r.b.toString(),o.refreshToken=r.a,e=new nc(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ga=n),i&&rc(e,i),_c(e,t),e}(t,n,e.B,e.Ea());return Zc(this,this.h.then((function(){if(Yc(e).options.apiKey!=t.l)return i.reload()})).then((function(){return Qc(e)&&t.uid==Qc(e).uid?(_c(Qc(e),t),e.ca(t)):(Gc(e,i),hc(i),e.ca(i))})).then((function(){Xc(e)})))},t.wb=function(){var t=this;return Zc(this,this.h.then((function(){return t.a&&Dl(t.a.b),Qc(t)?(Gc(t,null),jc(t.i).then((function(){Xc(t)}))):Se()})))},t.Xc=function(){var t=this;return Bc(this.i,Yc(this).options.authDomain).then((function(e){if(!t.l){var n;if(n=Qc(t)&&e){n=Qc(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return _c(Qc(t),e),Qc(t).I();(Qc(t)||e)&&(Gc(t,e),e&&(hc(e),e.ga=t.B),t.a&&_l(t.a,t),Xc(t))}}))},t.ca=function(t){return Lc(this.i,t)},t.jc=function(){Xc(this),this.ca(Qc(this))},t.uc=function(){this.wb()},t.vc=function(){this.wb()},t.ic=function(t){var e=this;return this.h.then((function(){return Kc(e,Se(t))}))},t.xc=function(t){var e=this;this.addAuthTokenListener((function(){t.next(Qc(e))}))},t.yc=function(t){var e=this;!function(t,e){t.O.push(e),Zc(t,t.h.then((function(){!t.l&&G(t.O,e)&&t.W!==t.getUid()&&(t.W=t.getUid(),e($c(t)))})))}(this,(function(){t.next(Qc(e))}))},t.Gc=function(t,e,n){var i=this;return this.aa&&Promise.resolve().then((function(){d(t)?t(Qc(i)):d(t.next)&&t.next(Qc(i))})),this.$b(t,e,n)},t.Fc=function(t,e,n){var i=this;return this.aa&&Promise.resolve().then((function(){i.W=i.getUid(),d(t)?t(Qc(i)):d(t.next)&&t.next(Qc(i))})),this.ac(t,e,n)},t.kc=function(t){var e=this;return Zc(this,this.h.then((function(){return Qc(e)?Qc(e).I(t).then((function(t){return{accessToken:t}})):null})))},t.Rc=function(t){var e=this;return this.h.then((function(){return Kc(e,Ws(e.b,Bs,{token:t}))})).then((function(t){var n=t.user;return yc(n,"isAnonymous",!1),e.ca(n),t}))},t.Sc=function(t,e){var n=this;return this.h.then((function(){return Kc(n,Ws(n.b,Vs,{email:t,password:e}))}))},t.cc=function(t,e){var n=this;return this.h.then((function(){return Kc(n,Ws(n.b,ps,{email:t,password:e}))}))},t.Ya=function(t){var e=this;return this.h.then((function(){return Kc(e,t.ia(e.b))}))},t.Qc=function(t){return Hi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(t)},t.vb=function(){var t=this;return this.h.then((function(){var e=Qc(t);if(e&&e.isAnonymous){var n=Gi({providerId:null,isNewUser:!1});return Gi({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return Kc(t,t.b.vb()).then((function(e){var n=e.user;return yc(n,"isAnonymous",!0),t.ca(n),e}))}))},t.getUid=function(){return Qc(this)&&Qc(this).uid||null},t.bc=function(t){this.addAuthTokenListener(t),this.s++,0<this.s&&Qc(this)&&sc(Qc(this))},t.Nc=function(t){var e=this;H(this.m,(function(n){n==t&&e.s--})),0>this.s&&(this.s=0),0==this.s&&Qc(this)&&uc(Qc(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.m.push(t),Zc(this,this.h.then((function(){e.l||G(e.m,t)&&t($c(e))})))},t.removeAuthTokenListener=function(t){Y(this.m,(function(e){return e==t}))},t.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener(Fc("local"),t.a,this.oa),this.a&&(bl(this.a,this),Dl(this.a.b)),Promise.resolve()},t.fc=function(t){return Zc(this,function(t,e){return Ws(t,ms,{identifier:e,continueUri:Ii()?ai():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.b,t))},t.zc=function(t){return!!Eo(t)},t.sb=function(t,e){var n=this;return Zc(this,Se().then((function(){var t=new xr(e);
1if(!t.c)throw new x("argument-error",Ir+" must be true when sending sign in link to email");return Nr(t)})).then((function(e){return n.b.sb(t,e)})).then((function(){})))},t.fd=function(t){return this.Pa(t).then((function(t){return t.data.email}))},t.jb=function(t,e){return Zc(this,this.b.jb(t,e).then((function(){})))},t.Pa=function(t){return Zc(this,this.b.Pa(t).then((function(t){return new er(t)})))},t.fb=function(t){return Zc(this,this.b.fb(t).then((function(){})))},t.rb=function(t,e){var n=this;return Zc(this,Se().then((function(){return void 0===e||ft(e)?{}:Nr(new xr(e))})).then((function(e){return n.b.rb(t,e)})).then((function(){})))},t.Uc=function(t,e){return Zc(this,Ll(this,t,e,b(this.Ya,this)))},t.Tc=function(t,e){var n=this;return Zc(this,Se().then((function(){var i=e||ai(),r=So(t,i);if(!(i=Eo(i)))throw new x("argument-error","Invalid email link!");if(i.tenantId!==n.S())throw new x("tenant-id-mismatch");return n.Ya(r)})))},Jc.prototype.render=function(){},Jc.prototype.reset=function(){},Jc.prototype.getResponse=function(){},Jc.prototype.execute=function(){};var eh=null;function nh(t,e){return(e=ih(e))&&t.a[e]||null}function ih(t){return(t=void 0===t?1e12:t)?t.toString():null}function rh(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=oe(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():an(this.f,"click",this.i)}function oh(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function ah(){}function sh(){}th.prototype.render=function(t,e){return this.a[this.b.toString()]=new rh(t,e),this.b++},th.prototype.reset=function(t){var e=nh(this,t);t=ih(t),e&&t&&(e.delete(),delete this.a[t])},th.prototype.getResponse=function(t){return(t=nh(this,t))?t.getResponse():null},th.prototype.execute=function(t){(t=nh(this,t))&&t.execute()},rh.prototype.getResponse=function(){return oh(this),this.b},rh.prototype.execute=function(){oh(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(i){}t.a=setTimeout((function(){if(t.a=null,t.b=null,n)try{n()}catch(i){}t.h&&t.execute()}),6e4)}),500))},rh.prototype.delete=function(){oh(this),this.g=!0,clearTimeout(this.a),this.a=null,ln(this.f,"click",this.i)},qi(ah,"FACTOR_ID","phone"),sh.prototype.g=function(){return eh||(eh=new th),Se(eh)},sh.prototype.c=function(){};var uh=null;function lh(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var ch=new gt(bt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),hh=new Fi(3e4,6e4);lh.prototype.g=function(t){var e=this;return new ye((function(n,i){var r=setTimeout((function(){i(new x("network-request-failed"))}),hh.get());!s.grecaptcha||t!==e.f&&!e.b?(s[e.a]=function(){if(s.grecaptcha){e.f=t;var o=s.grecaptcha.render;s.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(r),n(s.grecaptcha)}else clearTimeout(r),i(new x("internal-error"));delete s[e.a]},Se(Na(xt(ch,{onload:e.a,hl:t||""}))).o((function(){clearTimeout(r),i(new x("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),n(s.grecaptcha))}))},lh.prototype.c=function(){this.b--};var fh=null;function dh(t,e,n,i,r,o,a){if(qi(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=e,this.g=null,a?(uh||(uh=new sh),a=uh):(fh||(fh=new lh),a=fh),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[vh])throw new x("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[gh],!s.document)throw new x("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!oe(e)||!this.i&&oe(e).hasChildNodes())throw new x("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Ua(t,o||null,r||null),this.w=i||function(){return null};var u=this;this.l=[];var l=this.a[ph];this.a[ph]=function(t){if(yh(u,t),"function"==typeof l)l(t);else if("string"==typeof l){var e=xi(l,s);"function"==typeof e&&e(t)}};var c=this.a[mh];this.a[mh]=function(){if(yh(u,null),"function"==typeof c)c();else if("string"==typeof c){var t=xi(c,s);"function"==typeof t&&t()}}}var ph="callback",mh="expired-callback",vh="sitekey",gh="size";function yh(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(i){}}function _h(t,e){return t.h.push(e),e.ma((function(){K(t.h,e)})),e}function bh(t){if(t.D)throw new x("internal-error","RecaptchaVerifier instance has been destroyed.")}function wh(t,e,n){var i=!1;try{this.b=n||r.a.app()}catch(s){throw new x("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new x("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ea()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=r.a.SDK_VERSION?ki(r.a.SDK_VERSION,a):null,dh.call(this,n,t,e,(function(){try{var t=o.b.auth().ja()}catch(e){t=null}return t}),a,O(E),i)}function kh(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new x("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=e.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r
1+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=e[r].optional&&void 0===n[r],!e[r].K(n[r])&&!o){if(e=e[r],0>r||r>=Ch.length)throw new x("internal-error","Argument validator received an unsupported number of arguments.");n=Ch[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}i=null}}if(i)throw new x("argument-error",t+" failed: "+i)}(t=dh.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=_h(this,Se().then((function(){if(Ii()&&!vi())return di();throw new x("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.w())})).then((function(e){return t.g=e,Ws(t.s,As,{})})).then((function(e){t.a[vh]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},t.render=function(){bh(this);var t=this;return _h(this,this.Ga().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=oe(e);e=function(t,e,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!re&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Ut(a.name),'"'),a.type){o.push(' type="',Ut(a.type),'"');var s={};mt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=he(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):ae(o,a)),2<i.length&&ce(r,o,i),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},t.verify=function(){bh(this);var t=this;return _h(this,this.render().then((function(e){return new ye((function(n){var i=t.g.getResponse(e);if(i)n(i);else{t.l.push((function e(i){i&&(function(t,e){Y(t.l,(function(t){return t==e}))}(t,e),n(i))})),t.i&&t.g.execute(t.c)}}))})))},t.reset=function(){bh(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){bh(this),this.D=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=oe(this.u);for(var e;e=t.firstChild;)t.removeChild(e)}},C(wh,dh);var Ch="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function xh(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"==typeof t}}}function Sh(t,e){return{name:t||"",J:"a boolean",optional:!!e,K:function(t){return"boolean"==typeof t}}}function Eh(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:p}}function Ih(t,e){return{name:t||"",J:"a function",optional:!!e,K:d}}function Ah(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function Th(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(e){return!!e&&!(!e.ia||t&&e.providerId!==t)}}}function Oh(t,e){return p(t)&&"string"==typeof t.type&&t.type===e&&d(t.Fa)}function Dh(t){return p(t)&&"string"==typeof t.uid}function Ph(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||!d(t.verify))}}}function Rh(t,e,n,i){return{name:n||"",J:t.J+" or "+e.J,optional:!!i,K:function(n){return t.K(n)||e.K(n)}}}function Nh(t,e){for(var n in e){var i=e[n].name;t[i]=Lh(i,t[n],e[n].j)}}function Mh(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:w((function(t){return this[t]}),n),set:w((function(t,e,n,i){kh(t,[n],[i],!0),this[e]=i}),i,n,e[n].gb),enumerable:!0})}}function Fh(t,e,n,i){t[e]=Lh(e,n,i)}function Lh(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return kh(o,n,t),e.apply(this,t)}if(!n)return e;var r,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in e)i[r]=e[r];for(r in e.prototype)i.prototype[r]=e.prototype[r];return i}Nh(Uc.prototype,{fb:{name:"applyActionCode",j:[xh("code")]},Pa:{name:"checkActionCode",j:[xh("code")]},jb:{name:"confirmPasswordReset",j:[xh("code"),xh("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[xh("email"),xh("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[xh("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[xh("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Rh(Eh(),Ih(),"nextOrObserver"),Ih("opt_error",!0),Ih("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Rh(Eh(),Ih(),"nextOrObserver"),Ih("opt_error",!0),Ih("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[xh("email"),Rh(Eh("opt_actionCodeSettings",!0),Ah(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[xh("email"),Eh("actionCodeSettings")]},tb:{name:"setPersistence",j:[xh("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Th()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Th()]},Rc:{name:"signInWithCustomToken",j:[xh("token")]},Sc:{name:"signInWithEmailAndPassword",j:[xh("email"),xh("password")]},Tc:{name:"signInWithEmailLink",j:[xh("email"),xh("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[xh("phoneNumber"),Ph()]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]}
1,Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[Rh({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof nc)}},Ah(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[xh(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[xh("code")]}}),Mh(Uc.prototype,{lc:{name:"languageCode",gb:Rh(xh(),Ah(),"languageCode")},ti:{name:"tenantId",gb:Rh(xh(),Ah(),"tenantId")}}),(Uc.Persistence=Bu).LOCAL="local",Uc.Persistence.SESSION="session",Uc.Persistence.NONE="none",Nh(nc.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Sh("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Sh("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Th()]},mb:{name:"linkWithCredential",j:[Th()]},Bc:{name:"linkWithPhoneNumber",j:[xh("phoneNumber"),Ph()]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Th()]},pb:{name:"reauthenticateWithCredential",j:[Th()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[xh("phoneNumber"),Ph()]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[Rh(Eh("opt_actionCodeSettings",!0),Ah(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[xh(null,!0)]},ad:{name:"unlink",j:[xh("provider")]},xb:{name:"updateEmail",j:[xh("email")]},yb:{name:"updatePassword",j:[xh("password")]},cd:{name:"updatePhoneNumber",j:[Th("phone")]},zb:{name:"updateProfile",j:[Eh("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[xh("email"),Rh(Eh("opt_actionCodeSettings",!0),Ah(null,!0),"opt_actionCodeSettings",!0)]}}),Nh(th.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Nh(Jc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Nh(ye.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Mh(Ml.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Sh("appVerificationDisabledForTesting")}}),Nh(Fl.prototype,{confirm:{name:"confirm",j:[xh("verificationCode")]}}),Fh(no,"fromJSON",(function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[lo,Co,Ao,ao],i=0;i<n.length;i++)if(e=n[i](t))return e;return null}),[Rh(xh(),Eh(),"json")]),Fh(xo,"credential",(function(t,e){return new ko(t,e)}),[xh("email"),xh("password")]),Nh(ko.prototype,{v:{name:"toJSON",j:[xh(null,!0)]}}),Nh(po.prototype,{Aa:{name:"addScope",j:[xh("scope")]},Ia:{name:"setCustomParameters",j:[Eh("customOAuthParameters")]}}),Fh(po,"credential",mo,[Rh(xh(),Eh(),"token")]),Fh(xo,"credentialWithLink",So,[xh("email"),xh("emailLink")]),Nh(vo.prototype,{Aa:{name:"addScope",j:[xh("scope")]},Ia:{name:"setCustomParameters",j:[Eh("customOAuthParameters")]}}),Fh(vo,"credential",go,[Rh(xh(),Eh(),"token")]),Nh(yo.prototype,{Aa:{name:"addScope",j:[xh("scope")]},Ia:{name:"setCustomParameters",j:[Eh("customOAuthParameters")]}}),Fh(yo,"credential",_o,[Rh(xh(),Rh(Eh(),Ah()),"idToken"),Rh(xh(),Ah(),"accessToken",!0)]),Nh(bo.prototype,{Ia:{name:"setCustomParameters",j:[Eh("customOAuthParameters")]}}),Fh(bo,"credential",wo,[Rh(xh(),Eh(),"token"),xh("secret",!0)]),Nh(fo.prototype,{Aa:{name:"addScope",j:[xh("scope")]},credential:{name:"credential",j:[Rh(xh(),Rh(Eh(),Ah()),"optionsOrIdToken"),Rh(xh(),Ah(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Eh("customOAuthParameters")]}}),Nh(so.prototype,{v:{name:"toJSON",j:[xh(null,!0)]}}),Nh(ro.prototype,{v:{name:"toJSON",j:[xh(null,!0)]}}),Fh(Oo,"credential",Do,[xh("verificationId"),xh("verificationCode")]),Nh(Oo.prototype,{cb:{name:"verifyPhoneNumber",j:[Rh(xh(),{name:"phoneInfoOptions",J:"valid phone info o
1ptions",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?Oh(t.session,to)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Oh(t.session,eo)&&Dh(t.multiFactorHint):t.session&&t.multiFactorUid?Oh(t.session,eo)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),Ph()]}}),Nh(Io.prototype,{v:{name:"toJSON",j:[xh(null,!0)]}}),Nh(x.prototype,{toJSON:{name:"toJSON",j:[xh(null,!0)]}}),Nh(Vo.prototype,{toJSON:{name:"toJSON",j:[xh(null,!0)]}}),Nh(Bo.prototype,{toJSON:{name:"toJSON",j:[xh(null,!0)]}}),Nh(Hl.prototype,{toJSON:{name:"toJSON",j:[xh(null,!0)]}}),Nh(Bl.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}}]}}),Nh(Yl.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}},xh("displayName",!0)]},$c:{name:"unenroll",j:[Rh({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Dh},xh(),"multiFactorInfoIdentifier")]}}),Nh(wh.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Fh(mr,"parseLink",Cr,[xh("link")]),Fh(ah,"assertion",(function(t){return new Gl(t)}),[Th("phone")]),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ir,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:nr,VERIFY_AND_CHANGE_EMAIL:rr,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Uc,AuthCredential:no,Error:x};Fh(t,"EmailAuthProvider",xo,[]),Fh(t,"FacebookAuthProvider",po,[]),Fh(t,"GithubAuthProvider",vo,[]),Fh(t,"GoogleAuthProvider",yo,[]),Fh(t,"TwitterAuthProvider",bo,[]),Fh(t,"OAuthProvider",fo,[xh("providerId")]),Fh(t,"SAMLAuthProvider",ho,[xh("providerId")]),Fh(t,"PhoneAuthProvider",Oo,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Uc)}}]),Fh(t,"RecaptchaVerifier",wh,[Rh(xh(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Eh("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof r.a.app.App)}}]),Fh(t,"ActionCodeURL",mr,[]),Fh(t,"PhoneMultiFactorGenerator",ah,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new Uc(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:b((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:b(t.kc,t),addAuthTokenListener:b(t.bc,t),removeAuthTokenListener:b(t.Nc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.6"),r.a.INTERNAL.extendNamespace({User:nc})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},"d+30":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",(function(t,e,n){return t?n.lookupProperty(t,e):t}))},t.exports=e.default},dnLt:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n("XVEb"),o=(i=n("0KrK"))&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new o.default("Must pass iterator to #each");var n,i=e.fn,a=e.inverse,s=0,u="",l=void 0,c=void 0;function h(e,n,o){l&&(l.key=e,l.index=n,l.first=0===n,l.last=!!o,c&&(l.contextPath=c+e)),u+=i(t[e],{data:l,blockParams:r.blockParams([t[e],e],[c+e,null])})}if(e.data&&e.ids&&(c=r.appendContextPath(e.data.contextPath,e.ids[0])+"."),r.isFunction(t)&&(t=t.call(this)),e.data&&(l=r.createFrame(e.data)),t&&"object"==typeof t)if(r.isArray(t))for(var f=t.length;s<f;s++)s in t&&h(s,s,s===t.length-1);else if(global.Symbol&&t[global.Symbol.iterator]){for(var d=[],p=t[global.Symbol.iterator](),m=p.next();!m.done;m=p.next())d.push(m.value);for(f=(t=d).length;s<f;s++)h(s,s,s===t.length-1)}else n=void 0,Object.keys(t).forEach((function(t){void 0!==n&&h(n,s-1),n=t,s++})),void 0!==n&&h(n,s-1,!0);return 0===s&&(u=a(this)),u}))},t.exports=e.default},flH9:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i;n("XIqf");var o,a=n("YFPv"),s=n("82Ps"),u=n("Gjt8"),l=n("WRB3"),c=function(){function t(t,e,n,i){this.client=t,this.storage=e,this.storageCache=n,this.logger=i}return t.prototype.isCachedDataFresh=function(t,e){if(!e)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-e,i=n<=t;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+t+". Is cache hit: "+i+"."),i},t.prototype.fetch=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e,n,i,r,o;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return e=a.sent(),n=e[0],(i=e[1])&&this.isCachedDataFresh(t.cacheMaxAgeMillis,n)?[2,i]:(t.eTag=i&&i.eTag,[4,this.client.fetch(t)]);case 2:return r=a.sent(),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===r.status&&o.push(this.storage.setLastSuccessfulFetchResponse(r)),[4,Promise.all(o)];case 3:return a.sent(),[2,r]}}))}))},t}(),h=((o={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",o["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",o["registration-api-key"]="Undefined API key. Check Firebase app initialization.",o["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",o["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",o["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",o["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",o["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",o["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",o["fetch-timeout"]='The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',o["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',o["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",o["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",o),f=new s.ErrorFactory("remoteconfig","Remote Config",h),d=function(){function t(t,e,n,i,r,o){this.firebaseInstallations=t,this.sdkVersion=e,this.namespace=n,this.projectId=i,this.apiKey=r,this.appId=o}return t.prototype.fetch=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e,n,i,r,o,s,u,l,c,h,d,p,m,v,g,y;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:e=a.sent(),n=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",i=n+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,r={sdk_version:this.sdkVersion,app_instance_id:e[0],app_instance_id_token:e[1],app_id:this.appId,language_code:(void 0===_&&(_=navigator),_.languages&&_.languages[0]||_.language)},o={method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":t.eTag||"*"},body:JSON.stringify(r)},s=fetch(i,o),u=new Promise((function(e,n){t.signal.addEventListener((function(){var t=new Error("The operation was aborted.");t.name="AbortError",n(t)}))})),a.label=2;case 2:return a.trys.push([2,5,,6]),[4,Promise.race([s,u])];case 3:return a.sent(),[4,s];case 4:return l=a.sent(),[3,6];case 5:throw c=a.sent(),h="fetch-client-network","AbortError"===c.name&&(h="fetch-timeout"),f.create(h,{originalErrorMessage:c.message});case 6:if(d=l.status,p=l.headers.get("ETag")||void 0,200!==l.status)return[3,11];g=void 0,a.label=7;case 7:return a.trys.push([7,9,,10]),[4,l.json()];case 8:return g=a.sent(),[3,10];case 9:throw y=a.sent(),f.create("fetch-client-parse",{originalErrorMessage:y.message});case 10:m=g.entries,v=g.state,a.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===v?d=500:"NO_CHANGE"===v?d=304:"NO_TEMPLATE"!==v&&"EMPTY_CONFIG"!==v||(m={}),304!==d&&200!==d)throw f.create("fetch-status",{httpStatus:d});return[2,{status:d,eTag:p,config:m}]}var _}))}))},t}(),p=function(){function t(){this.listeners=[]}return t.prototype.addEventListener=function(t){this.listeners.push(t)}
1,t.prototype.abort=function(){this.listeners.forEach((function(t){return t()}))},t}(),m=["1","true","t","yes","y","on"],v=function(){function t(t,e){void 0===e&&(e=""),this._source=t,this._value=e}return t.prototype.asString=function(){return this._value},t.prototype.asBoolean=function(){return"static"!==this._source&&m.indexOf(this._value.toLowerCase())>=0},t.prototype.asNumber=function(){if("static"===this._source)return 0;var t=Number(this._value);return isNaN(t)&&(t=0),t},t.prototype.getSource=function(){return this._source},t}(),g=function(){function t(t,e,n,i,r){this.app=t,this._client=e,this._storageCache=n,this._storage=i,this._logger=r,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return t.prototype.setLogLevel=function(t){switch(t){case"debug":this._logger.logLevel=u.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=u.LogLevel.SILENT;break;default:this._logger.logLevel=u.LogLevel.ERROR}},Object.defineProperty(t.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!0,configurable:!0}),t.prototype.activate=function(){return a.__awaiter(this,void 0,void 0,(function(){var t,e,n;return a.__generator(this,(function(i){switch(i.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return t=i.sent(),n=t[1],(e=t[0])&&e.config&&e.eTag&&e.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(e.config),this._storage.setActiveConfigEtag(e.eTag)])]:[2,!1];case 2:return i.sent(),[2,!0]}}))}))},t.prototype.ensureInitialized=function(){var t=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){t._isInitializationComplete=!0}))),this._initializePromise},t.prototype.fetch=function(){return a.__awaiter(this,void 0,void 0,(function(){var t,e,n,i=this;return a.__generator(this,(function(r){switch(r.label){case 0:t=new p,setTimeout((function(){return a.__awaiter(i,void 0,void 0,(function(){return a.__generator(this,(function(e){return t.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:t})];case 2:return r.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return r.sent(),[3,6];case 4:return e=r.sent(),n=(o=e)instanceof s.FirebaseError&&-1!==o.code.indexOf("fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw r.sent(),e;case 6:return[2]}var o}))}))},t.prototype.fetchAndActivate=function(){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(t){switch(t.label){case 0:return[4,this.fetch()];case 1:return t.sent(),[2,this.activate()]}}))}))},t.prototype.getAll=function(){var t,e,n=this;return(t=this._storageCache.getActiveConfig(),e=this.defaultConfig,void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(a.__assign(a.__assign({},t),e))).reduce((function(t,e){return t[e]=n.getValue(e),t}),{})},t.prototype.getBoolean=function(t){return this.getValue(t).asBoolean()},t.prototype.getNumber=function(t){return this.getValue(t).asNumber()},t.prototype.getString=function(t){return this.getValue(t).asString()},t.prototype.getValue=function(t){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+t+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var e=this._storageCache.getActiveConfig();return e&&void 0!==e[t]?new v("remote",e[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new v("default",String(this.defaultConfig[t])):(this._logger.debug('Returning static value for key "'+t+'". Define a default or remote value if this is unintentional.'),new v("static"))},t}();function y(t,e){var n=t.target.error||void 0;return f.create(e,{originalErrorMessage:n&&n.message})}var _=function(){function t(t,e,n,i){void 0===i&&(i=new Promise((function(t,e){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(t){e(y(t,"storage-open"))},n.onsuccess=function(e){t(e.target.result)},n.onupgradeneeded=function(t){var e=t.target.result;switch(t.oldVersion){case 0:e.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=t,this.appName=e,this.namespace=n,this.openDbPromise=i}return t.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},t.prototype.setLastFetchStatus=function(t){return this.set("last_fetch_status",t)},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.set("last_successful_fetch_timestamp_millis",t)},t.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},t.prototype.setLastSuccessfulFetchResponse=function(t){return this.set("last_successful_fetch_response",t)},t.prototype.getActiveConfig=function(){return this.get("active_config")},t.prototype.setActiveConfig=function(t){return this.set("active_config",t)},t.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},t.prototype.setActiveConfigEtag=function(t){return this.set("active_config_etag",t)},t.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},t.prototype.setThrottleMetadata=function(t){return this.set("throttle_metadata",t)},t.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},t.prototype.get=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e,n=this;return a.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return e=i.sent(),[2,new Promise((function(i,r){var o=e.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),a=n.createCompositeKey(t);try{var s=o.get(a);s.onerror=function(t){r(y(t,"storage-get"))},s.onsuccess=function(t){var e=t.target.result;i(e?e.value:void 0)}}catch(u){r(f.create("storage-get",{originalErrorMessage:u&&u.message}))}}))]}}))}))},t.prototype.set=function(t,e){return a.__awaiter(this,void 0,void 0,(function(){var n,i=this;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return n=r.sent(),[2,new Promise((function(r,o){var a=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=i.createCompositeKey(t);try{var u=a.put({compositeKey:s,value:e});u.onerror=function(t){o(y(t,"storage-set"))},u.onsuccess=function(){r()}}catch(l){o(f.create("storage-set",{originalErrorMessage:l&&l.message}))}}))]}}))}))},t.prototype.delete=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e,n=this;return a.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return e=i.sent(),[2,new Promise((function(i,r){var o=e.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),a=n.createCompositeKey(t);try{var s=o.delete(a);s.onerror=function(t){r(y(t,"storage-delete"))},s.onsuccess=function(){i()}}catch(u){r(f.create("storage-delete",{originalErrorMessage:u&&u.message}))}}))]}}))}))},t.prototype.createCompositeKey=function(t){return[this.appId,this.appName,this.namespace,t].join()},t}(),b=function(){function t(t){this.storage=t}return t.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},t.prototype.getActiveConfig=function(){return this.activeConfig},t.prototype.loadFromStorage=function(){return a.__awaiter(this,void 0,void 0,(function(){var t,e,n,i,r,o;return a.__generator(this,(function(a){switch(a.label){case 0:return t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return(i=a.sent())&&(this.lastFetchStatus=i),[4,e];case 2:return(r=a.sent())&&(this.lastSuccessfulFetchTimestampMillis=r),[4,n];case 3:return(o=a.sent())&&(this.activeConfig=o),[2]}}))}))},t.prototype.setLastFetchStatus=function(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)},t.prototype.setActiveConfig=function(t){return this.activeConfig=t,this.storage.setActiveConfig(t)},t}();function w(t){var e=1e3*Math.pow(2,t),n=Math.round(.5*e*(Math.random()-.5)*2);return Math.min(144e5,e+n)}function k(t,e){return new Promise((function(n,i){var r=Math.max(e-Date.now(),0),o=setTimeout(n,r);t.addEventListener((function(){clearTimeout(o),i(f.create("fetch-throttle",{throttleEndTimeMillis:e}))}))}))}var C=function(){function t(t,e){this.client=t,this.storage=e}return t.prototype.fetch=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e;return a.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return e=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(t,e)]}}))}))},t.prototype.attemptFetch=function(t,e){var n=e.throttleEndTimeMillis,i=e.backoffCount;return a.__awaiter(this,void 0,void 0,(function(){var e,r,o;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,k(t.signal,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return e=a.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return a.sent(),[2,e];case 5:if(!function(t){if(!(t instanceof s.FirebaseError))return!1;var e=Number(t.httpStatus);return 429===e||500===e||503===e||504===e}(r=a.sent()))throw r;return o={throttleEndTimeMillis:Date.now()+w(i),backoffCount:i+1},[4,this.storage.setThrottleMetadata(o)];case 6:return a.sent(),[2,this.attemptFetch(t,o)];case 7:return[2]}}
1))}))},t}(),x="@firebase/remote-config";function S(t){t.INTERNAL.registerComponent(new l.Component("remoteConfig",(function(e,n){var i=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();if("undefined"==typeof window)throw f.create("registration-window");var o=i.options,a=o.projectId,s=o.apiKey,l=o.appId;if(!a)throw f.create("registration-project-id");if(!s)throw f.create("registration-api-key");if(!l)throw f.create("registration-app-id");var h=new _(l,i.name,n=n||"firebase"),p=new b(h),m=new u.Logger(x);m.logLevel=u.LogLevel.ERROR;var v=new d(r,t.SDK_VERSION,n,a,s,l),y=new C(v,h),w=new c(y,h,p,m),k=new g(i,w,p,h,m);return k.ensureInitialized(),k}),"PUBLIC").setMultipleInstances(!0)),t.registerVersion(x,"0.1.21")}S(r),e.registerRemoteConfig=S},hQOw:function(t,e,n){"use strict";e.__esModule=!0,e.createProtoAccessControl=function(t){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,n){return function(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(function(t){!0!==o[t]&&(o[t]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(e),!1)}("function"==typeof t?e.methods:e.properties,n)},e.resetLoggedProperties=function(){Object.keys(o).forEach((function(t){delete o[t]}))};var i=n("ZeiE"),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("UImk")),o=Object.create(null)},huQ6:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
vendor: 12,340 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},kTG4:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},kfAI:function(t,e){!function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialSpinner=t,t.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4}
1,t.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"},t.prototype.createLayer=t.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 i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),r.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var o=[n,i,r],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(i),e.appendChild(r),this.element_.appendChild(e)},t.prototype.stop=t.prototype.stop=function(){this.element_.classList.remove("is-active")},t.prototype.start=t.prototype.start=function(){this.element_.classList.add("is-active")},t.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")}},componentHandler.register({constructor:t,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0})}()},kfSZ:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},lCA4:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e="undefined"!=typeof global?global:window,n=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=n),t}},t.exports=e.default},"mG+b":function(t,e,n){"use strict";e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1;if(!(e>=a.LAST_COMPATIBLE_COMPILER_REVISION&&e<=a.COMPILER_REVISION)){if(e<a.LAST_COMPATIBLE_COMPILER_REVISION)throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+a.REVISION_CHANGES[a.COMPILER_REVISION]+") or downgrade your runtime to an older version ("+a.REVISION_CHANGES[e]+").");throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},e.template=function(t,e){if(!e)throw new o.default("No environment passed to template");if(!t||!t.main)throw new o.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var n=t.compiler&&7===t.compiler[0],i={strict:function(t,e,n){if(!t||!(e in t))throw new o.default('"'+e+'" not defined in '+t,{loc:n});return i.lookupProperty(t,e)},lookupProperty:function(t,e){var n=t[e];return null==n||Object.prototype.hasOwnProperty.call(t,e)||l.resultIsAllowed(n,i.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,r=0;r<n;r++)if(null!=(t[r]&&i.lookupProperty(t[r],e)))return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:r.escapeExpression,invokePartial:function(n,i,a){a.hash&&(i=r.extend({},i,a.hash),a.ids&&(a.ids[0]=!0)),n=e.VM.resolvePartial.call(this,n,i,a);var s=r.extend({},a,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=e.VM.invokePartial.call(this,n,i,s);if(null==u&&e.compile&&(a.partials[a.name]=e.compile(n,t.compilerOptions,e),u=a.partials[a.name](i,s)),null!=u){if(a.indent){for(var l=u.split("\n"),c=0,h=l.length;c<h&&(l[c]||c+1!==h);c++)l[c]=a.indent+l[c];u=l.join("\n")}return u}throw new o.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,i,r){var o=this.programs[t],a=this.fn(t);return e||r||i||n?o=c(this,t,a,e,n,i,r):o||(o=this.programs[t]=c(this,t,a)),o},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=r.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function a(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.data;a._setup(n),!n.partial&&t.useData&&(r=f(e,r));var o=void 0,s=t.useBlockParams?[]:void 0;function u(e){return""+t.main(i,e,i.helpers,i.partials,r,s,o)}return t.useDepths&&(o=n.depths?e!=n.depths[0]?[e].concat(n.depths):n.depths:[e]),(u=d(t.main,u,i,n.depths||[],r,s))(e,n)}
1return a.isTop=!0,a._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a=r.extend({},e.helpers,o.helpers);!function(t,e){Object.keys(t).forEach((function(n){t[n]=function(t,e){var n=e.lookupProperty;return u.wrapHelper(t,(function(t){return r.extend({lookupProperty:n},t)}))}(t[n],e)}))}(a,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=r.extend({},e.decorators,o.decorators)),i.hooks={},i.protoAccessControl=l.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||n;s.moveHelperToHooks(i,"helperMissing",c),s.moveHelperToHooks(i,"blockHelperMissing",c)}},a._child=function(e,n,r,a){if(t.useBlockParams&&!r)throw new o.default("must pass block params");if(t.useDepths&&!a)throw new o.default("must pass parent depths");return c(i,e,t[e],n,0,r,a)},a},e.wrapProgram=c,e.resolvePartial=function(t,e,n){return t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],t},e.invokePartial=function(t,e,n){var i=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var s=void 0;if(n.fn&&n.fn!==h&&function(){n.data=a.createFrame(n.data);var t=n.fn;s=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=a.createFrame(n.data),n.data["partial-block"]=i,t(e,n)},t.partials&&(n.partials=r.extend({},n.partials,t.partials))}(),void 0===t&&s&&(t=s),void 0===t)throw new o.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=h;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("XVEb")),o=(i=n("0KrK"))&&i.__esModule?i:{default:i},a=n("T9/7"),s=n("svB4"),u=n("ML8A"),l=n("hQOw");function c(t,e,n,i,r,o,a){function s(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;
vendor: 1,190 bytes, line 1
1return!a||e==a[0]||e===t.nullContext&&null===a[0]||(s=[e].concat(a)),n(t,e,t.helpers,t.partials,r.data||i,o&&[r.blockParams].concat(o),s)}return(s=d(n,s,t,a,i,o)).program=e,s.depth=a?a.length:0,s.blockParams=r||0,s}function h(){return""}function f(t,e){return e&&"root"in e||((e=e?a.createFrame(e):{}).root=t),e}function d(t,e,n,i,o,a){if(t.decorator){var s={};e=t.decorator(e,s,n,i&&i[0],o,a,i),r.extend(e,s)}return e}},pD9t:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),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,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return b}
vendor: 5,737 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return S}));var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(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,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=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&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(i){c(o[0][3],i)}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 _(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}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={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(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 k(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 C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},plFh:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var i,r,o=n("kTG4"),a=n("82Ps"),s=n("WRB3"),u=n("Gjt8"),l=((i={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i["invalid-log-argument"]="First argument to `onLog` must be null or a function.",i),c=new a.ErrorFactory("app","Firebase",l),h=((r={})["@firebase/app"]="fire-core",r["@firebase/analytics"]="fire-analytics",r["@firebase/auth"]="fire-auth",r["@firebase/database"]="fire-rtdb",r["@firebase/functions"]="fire-fn",r["@firebase/installations"]="fire-iid",r["@firebase/messaging"]="fire-fcm",r["@firebase/performance"]="fire-perf",r["@firebase/remote-config"]="fire-rc",r["@firebase/storage"]="fire-gcs",r["@firebase/firestore"]="fire-fst",r["fire-js"]="fire-js",r["firebase-wrapper"]="fire-js-all",r),f=new u.Logger("@firebase/app"),d=function(){function t(t,e,n){var i,r,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(t),this.container=new s.ComponentContainer(e.name),this._addComponent(new s.Component("app",(function(){return u}),"PUBLIC"));try{for(var l=o.__values(this.firebase_.INTERNAL.components.values()),c=l.next();!c.done;c=l.next())this._addComponent(c.value)}catch(h){i={error:h}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){f.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},t}();d.prototype.name&&d.prototype.options||d.prototype.delete||console.log("dc");var p=function t(){var e=function(t){var e={},n=new Map,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="[DEFAULT]");var s=o.name;if("string"!=typeof s||!s)throw c.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw c.create("duplicate-app",{appName:s});var u=new t(n,o,i);return e[s]=u,u},app:r,registerVersion:function(t,e,n){var i,r=null!==(i=h[t])&&void 0!==i?i:t;n&&(r+="-"+n);var o=r.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+r+'" with version "'+e+'":'];return o&&u.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(u.join(" "))}l(new s.Component(r+"-version",(function(){return{library:r,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw c.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.14.5",INTERNAL:{registerComponent:l,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function r(t){if(!a.contains(e,t=t||"[DEFAULT]"))throw c.create("no-app",{appName:t});return e[t]}function l(s){var u,l,h=s.name;if(n.has(h))return f.debug("There were multiple attempts to register component "+h+"."),"PUBLIC"===s.type?i[h]:null;if(n.set(h,s),"PUBLIC"===s.type){var d=function(t){if(void 0===t&&(t=r()),"function"!=typeof t[h])throw c.create("invalid-app-argument",{appName:h});return t[h]()};void 0!==s.serviceProps&&a.deepExtend(d,s.serviceProps),i[h]=d,t.prototype[h]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,h);return n.apply(this,s.multipleInstances?t:[])}}try{for(var p=o.__values(Object.keys(e)),m=p.next();!m.done;m=p.next())e[m.value]._addComponent(s)}catch(v){u={error:v}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}return"PUBLIC"===s.type?i[h]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),r.App=t,i}(d);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){a.deepExtend(e,t)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),e}(),m=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(a.isBrowser()&&void 0!==self.firebase){f.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&f.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 g=p.initializeApp;p.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a.isNode()&&f.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),g.apply(void 0,t)};var y=p;!function(t,e){t.INTERNAL.registerComponent(new s.Component("platform-logger",(function(t){return new m(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.4",void 0),t.registerVersion("fire-js","")}(y),e.default=y,e.firebase=y},svB4:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){r.default(t),o.default(t),a.default(t),s.default(t),u.default(t),l.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var r=i(n("tH/t")),o=i(n("dnLt")),a=i(n("LDpk")),s=i(n("FeJI")),u=i(n("PKsm")),l=i(n("d+30")),c=i(n("UaQO"))},t1LS:function(t,e,n){"use strict";var i,r=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i;n("boMX"),n("Ua55"),n("AmJI"),n("yNI9"),n("tfXa"),n("IOcq"),n("tBSM"),n("FETv"),n("flH9"),r.registerVersion("firebase","7.14.6","app"),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';
1\n"),r.registerVersion("firebase","7.14.6"),t.exports=r},tBSM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i;n("XIqf");var o,a,s,u,l=n("N8Ls"),c=n("82Ps"),h=n("Gjt8"),f=n("WRB3"),d=((o={})["trace started"]="Trace {$traceName} was started before.",o["trace stopped"]="Trace {$traceName} is not running.",o["no window"]="Window is not available.",o["no app id"]="App id is not available.",o["no project id"]="Project id is not available.",o["no api key"]="Api key is not available.",o["invalid cc log"]="Attempted to queue invalid cc event",o["FB not default"]="Performance can only start when Firebase app instance is the default one.",o["RC response not ok"]="RC response is not ok",o["invalid attribute name"]="Attribute name {$attributeName} is invalid.",o["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",o["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",o["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",o),p=new c.ErrorFactory("performance","Performance",d),m=function(){function t(t){if(this.window=t,!t)throw p.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay)}return t.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},t.prototype.mark=function(t){this.performance&&this.performance.mark&&this.performance.mark(t)},t.prototype.measure=function(t,e,n){this.performance&&this.performance.measure&&this.performance.measure(t,e,n)},t.prototype.getEntriesByType=function(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]},t.prototype.getEntriesByName=function(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]},t.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},t.prototype.requiredApisAvailable=function(){return!!(fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled)},t.prototype.setupObserver=function(t,e){this.PerformanceObserver&&new this.PerformanceObserver((function(t){for(var n=0,i=t.getEntries();n<i.length;n++)e(i[n])})).observe({entryTypes:[t]})},t.getInstance=function(){return void 0===a&&(a=new t(s)),a},t}();function v(t,e){var n=t.length-e.length;if(n<0||n>1)throw p.create("invalid String merger input");for(var i=[],r=0;r<t.length;r++)i.push(t.charAt(r)),e.length>r&&i.push(e.charAt(r));return i.join("")}var g,y=function(){function t(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=v("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=v("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return t.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw p.create("no app id");return t},t.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw p.create("no project id");return t},t.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw p.create("no api key");return t},t.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},t.getInstance=function(){return void 0===u&&(u=new t),u},t}();function _(){return g}var b=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.VISIBLE=1]="VISIBLE",t[t.HIDDEN=2]="HIDDEN",t}({}),w=["firebase_","google_","ga_"],k=new RegExp("^[a-zA-Z]\\w*$");function C(){var t=m.getInstance().navigator;
1return"serviceWorker"in t?t.serviceWorker.controller?2:3:1}function x(){switch(m.getInstance().document.visibilityState){case"visible":return b.VISIBLE;case"hidden":return b.HIDDEN;default:return b.UNKNOWN}}function S(){var t=m.getInstance().navigator.connection;switch(t&&t.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var E=new h.Logger("Performance");function I(t){if(!t)return t;var e=y.getInstance(),n=t.entries||{};return e.loggingEnabled=void 0===n.fpr_enabled||"true"===String(n.fpr_enabled),n.fpr_log_source&&(e.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(e.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(e.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),e.logTraceAfterSampling=A(e.tracesSamplingRate),e.logNetworkAfterSampling=A(e.networkRequestsSamplingRate),t}function A(t){return Math.random()<=t}E.logLevel=h.LogLevel.INFO;var T,O=1;function D(){return O=2,T=T||function(){var t=m.getInstance().document;return new Promise((function(e){if(t&&"complete"!==t.readyState){t.addEventListener("readystatechange",(function n(){"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())}))}else e()}))}().then((function(){return(t=y.getInstance().installationsService.getId()).then((function(t){g=t})),t;var t})).then((function(t){return function(t){var e=function(){var t=m.getInstance().localStorage;if(t){var e=t.getItem("@firebase/performance/configexpire");if(e&&Number(e)>Date.now()){var n=t.getItem("@firebase/performance/config");if(n)try{return JSON.parse(n)}catch(o){return}}}}();return e?(I(e),Promise.resolve()):function(t){return(e=y.getInstance().installationsService.getToken(),e.then((function(t){})),e).then((function(e){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+y.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+y.getInstance().getApiKey(),i=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+e},body:JSON.stringify({app_instance_id:t,app_instance_id_token:e,app_id:y.getInstance().getAppId(),app_version:"0.3.5",sdk_version:"0.0.1"})});return fetch(i).then((function(t){if(t.ok)return t.json();throw p.create("RC response not ok")}))})).catch((function(){E.info("Could not fetch config, will use default configs")}));var e}(t).then(I).then((function(t){return function(t){var e=m.getInstance().localStorage;t&&e&&(e.setItem("@firebase/performance/config",JSON.stringify(t)),e.setItem("@firebase/performance/configexpire",String(Date.now()+60*y.getInstance().configTimeToLive*60*1e3)))}(t)}),(function(){}))}(t)})).then((function(){return P()}),(function(){return P()}))}function P(){O=3}var R,N=3,M=[],F=!1;function L(t){if(!t.eventTime||!t.message)throw p.create("invalid cc log");M=l.__spreadArrays(M,[t])}function j(t,e){R||(R=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(void 0,e);L({message:i,eventTime:Date.now()})}}(U)),R(t,e)}function B(t){var e=y.getInstance();!e.instrumentationEnabled&&t.isAuto||(e.dataCollectionEnabled||t.isAuto)&&m.getInstance().requiredApisAvailable()&&(t.isAuto&&x()!==b.VISIBLE||e.loggingEnabled&&e.logTraceAfterSampling&&(3===O?V(t):D().then((function(){return V(t)}),(function(){return V(t)}))))}function V(t){_()&&setTimeout((function(){return j(t,1)}),0)}function U(t,e){return 0===e?(i={url:(n=t).url,http_method:n.httpMethod||0,http_response_code:200,response_payload_bytes:n.responsePayloadBytes,client_start_time_us:n.startTimeUs,time_to_response_initiated_us:n.timeToResponseInitiatedUs,time_to_response_completed_us:n.timeToResponseCompletedUs},r={application_info:H(),network_request_metric:i},JSON.stringify(r)):function(t){var e={name:t.name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs};0!==Object.keys(t.counters).length&&(e.counters=t.counters);var n=t.getAttributes();0!==Object.keys(n).length&&(e.custom_attributes=n);var i={application_info:H(),trace_metric:e};return JSON.stringify(i)}(t);var n,i,r}function H(){return{google_app_id:y.getInstance().getAppId(),app_instance_id:_(),web_app_info:{sdk_version:"0.3.5",page_url:m.getInstance().getUrl(),service_worker_status:C(),visibility_state:x(),effective_connection_type:S()},application_process_state:0}}var z=["_fp","_fcp","_fid"],q=function(){function t(t,e,n){void 0===e&&(e=!1),this.name=t,this.isAuto=e,this.state=1,this.customAttributes={},this.counters={},this.api=m.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||"FB-PERF-TRACE-MEASURE-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return t.prototype.start=function(){if(1!==this.state)throw p.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},t.prototype.stop=function(){if(2!==this.state)throw p.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),B(this)},t.prototype.record=function(t,e,n){if(this.durationUs=Math.floor(1e3*e),this.startTimeUs=Math.floor(1e3*t),n&&n.attributes&&(this.customAttributes=l.__assign({},n.attributes)),n&&n.metrics)for(var i=0,r=Object.keys(n.metrics);i<r.length;i++){var o=r[i];isNaN(Number(n.metrics[o]))||(this.counters[o]=Number(Math.floor(n.metrics[o])))}B(this)},t.prototype.incrementMetric=function(t,e){void 0===e&&(e=1),void 0===this.counters[t]&&this.putMetric(t,0),this.counters[t]+=e},t.prototype.putMetric=function(t,e){if(!function(t,e){return!(0===t.length||t.length>100)&&(e&&e.startsWith("_wt_")&&z.indexOf(t)>-1||!t.startsWith("_"))}(t,this.name))throw p.create("invalid custom metric name",{customMetricName:t});this.counters[t]=e},t.prototype.getMetric=function(t){return this.counters[t]||0},t.prototype.putAttribute=function(t,e){var n=function(t){return!(0===t.length||t.length>40||w.some((function(e){return t.startsWith(e)}))||!t.match(k))}(t),i=function(t){return 0!==t.length&&t.length<=100}(e);if(n&&i)this.customAttributes[t]=e;else{if(!n)throw p.create("invalid attribute name",{attributeName:t});if(!i)throw p.create("invalid attribute value",{attributeValue:e})}},t.prototype.getAttribute=function(t){return this.customAttributes[t]},t.prototype.removeAttribute=function(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]},t.prototype.getAttributes=function(){return l.__assign({},this.customAttributes)},t.prototype.setStartTime=function(t){this.startTimeUs=t},t.prototype.setDuration=function(t){this.durationUs=t},t.prototype.calculateTraceMetrics=function(){var t=this.api.getEntriesByName(this.traceMeasure),e=t&&t[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))},t.createOobTrace=function(e,n,i){var r=m.getInstance().getUrl();if(r){var o=new t("_wt_"+r,!0),a=Math.floor(1e3*m.getInstance().getTimeOrigin());if(o.setStartTime(a),e&&e[0]&&(o.setDuration(Math.floor(1e3*e[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd))),n){var s=n.find((function(t){return"first-paint"===t.name}));s&&s.startTime&&o.putMetric("_fp",Math.floor(1e3*s.startTime));var u=n.find((function(t){return"first-contentful-paint"===t.name}));u&&u.startTime&&o.putMetric("_fcp",Math.floor(1e3*u.startTime)),i&&o.putMetric("_fid",Math.floor(1e3*i))}B(o)}},t.createUserTimingTrace=function(e){B(new t(e,!1,e))},t}();function W(t){var e=t;if(e&&void 0!==e.responseStart){var n=m.getInstance().getTimeOrigin(),i=Math.floor(1e3*(e.startTime+n)),r
1=e.responseStart?Math.floor(1e3*(e.responseStart-e.startTime)):void 0,o=Math.floor(1e3*(e.responseEnd-e.startTime));!function(t){var e=y.getInstance();if(e.instrumentationEnabled){var n=t.url,i=e.logEndPointUrl.split("?")[0],r=e.flTransportEndpointUrl.split("?")[0];n!==i&&n!==r&&e.loggingEnabled&&e.logNetworkAfterSampling&&setTimeout((function(){return j(t,0)}),0)}}({url:e.name&&e.name.split("?")[0],responsePayloadBytes:e.transferSize,startTimeUs:i,timeToResponseInitiatedUs:r,timeToResponseCompletedUs:o})}}function G(){_()&&(setTimeout((function(){return function(){var t=m.getInstance(),e=t.getEntriesByType("navigation"),n=t.getEntriesByType("paint");if(t.onFirstInputDelay){var i=setTimeout((function(){q.createOobTrace(e,n),i=void 0}),5e3);t.onFirstInputDelay((function(t){i&&(clearTimeout(i),q.createOobTrace(e,n,t))}))}else q.createOobTrace(e,n)}()}),0),setTimeout((function(){return function(){for(var t=m.getInstance(),e=0,n=t.getEntriesByType("resource");e<n.length;e++)W(n[e]);t.setupObserver("resource",W)}()}),0),setTimeout((function(){return function(){for(var t=m.getInstance(),e=0,n=t.getEntriesByType("measure");e<n.length;e++)K(n[e]);t.setupObserver("measure",K)}()}),0))}function K(t){var e=t.name;"FB-PERF-TRACE-MEASURE"!==e.substring(0,"FB-PERF-TRACE-MEASURE".length)&&q.createUserTimingTrace(e)}var Y=function(){function t(t){this.app=t,m.getInstance().requiredApisAvailable()?(F||(function t(e){setTimeout((function(){if(0!==N)return M.length?void function(){var e=l.__spreadArrays(M);M=[];var n=e.map((function(t){return{source_extension_json_proto3:t.message,event_time_ms:String(t.eventTime)}}));(function(e,n){return function(t){var e=y.getInstance().getFlTransportFullUrl();return fetch(e,{method:"POST",body:JSON.stringify(t)})}(e).then((function(t){return t.ok||E.info("Call to Firebase backend failed."),t.json()})).then((function(e){var i=Number(e.nextRequestWaitMillis),r=1e4;isNaN(i)||(r=Math.max(i,r));var o=e.logResponseDetails;Array.isArray(o)&&o.length>0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(M=l.__spreadArrays(n,M),E.info("Retry transport request later.")),N=3,t(r)}))})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:y.getInstance().logSource,log_event:n},e).catch((function(){M=l.__spreadArrays(e,M),N--,E.info("Tries left: "+N+"."),t(1e4)}))}():t(1e4)}),e)}(5500),F=!0),D().then(G,G)):E.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled.")}return t.prototype.trace=function(t){return new q(t)},Object.defineProperty(t.prototype,"instrumentationEnabled",{get:function(){return y.getInstance().instrumentationEnabled},set:function(t){y.getInstance().instrumentationEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataCollectionEnabled",{get:function(){return y.getInstance().dataCollectionEnabled},set:function(t){y.getInstance().dataCollectionEnabled=t},enumerable:!0,configurable:!0}),t}();function Q(t){t.INTERNAL.registerComponent(new f.Component("performance",(function(t){return function(t,e){if("[DEFAULT]"!==t.name)throw p.create("FB not default");if("undefined"==typeof window)throw p.create("no window");return function(t){s=t}(window),y.getInstance().firebaseAppInstance=t,y.getInstance().installationsService=e,new Y(t)}(t.getProvider("app").getImmediate(),t.getProvider("installations").getImmediate())}),"PUBLIC")),t.registerVersion("@firebase/performance","0.3.5")}Q(r),e.registerPerformance=Q},"tH/t":function(t,e,n){"use strict";e.__esModule=!0;var i=n("XVEb");e.default=function(t){t.registerHelper("blockHelperMissing",(function(e,n){var r=n.inverse,o=n.fn;if(!0===e)return o(this);if(!1===e||null==e)return r(this);if(i.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):r(this);if(n.data&&n.ids){var a=i.createFrame(n.data);a.contextPath=i.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(e,n)}))},t.exports=e.default},tfXa:function(t,e,n){"use strict";n.r(e);var i=n("plFh"),r=n.n(i),o=(n("XIqf"),n("WRB3")),a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
1function s(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function l(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}var h,f=n("82Ps"),d=n("UH1A"),p=((h={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',h["only-available-in-window"]="This method is available in a Window context.",h["only-available-in-sw"]="This method is available in a service worker context.",h["permission-default"]="The notification permission was not granted and dismissed instead.",h["permission-blocked"]="The notification permission was not granted and blocked instead.",h["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",h["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",h["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",h["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",h["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",h["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",h["token-update-no-token"]="FCM returned no token when updating the user to push.",h["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",h["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",h["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",h["invalid-vapid-key"]="The public VAPID key must be a string.",h["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",h),m=new f.ErrorFactory("messaging","Messaging",p);function v(t){return m.create("missing-app-config-values",{valueName:t})}function g(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(e),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i}function _(t){return s(this,void 0,void 0,(function(){var e,n=this;return u(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(!i.sent().map((function(t){return t.name})).includes("fcm_token_details_db"))return[2,null];i.label=2;case 2:return e=null,[4,Object(d.openDb)("fcm_token_details_db",5,(function(i){return s(n,void 0,void 0,(function(){var n,r,o,a;return u(this,(function(s){switch(s.label){case 0:return i.oldVersion<2?[2]:i.objectStoreNames.contains("fcm_token_object_Store")?[4,(n=i.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(t)]:[2];case 1:return r=s.sent(),[4,n.clear()];case 2:if(s.sent(),!r)return[2];if(2===i.oldVersion){if(!(o=r).auth||!o.p256dh||!o.endpoint)return[2];e={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"==typeof o.vapidKey?o.vapidKey:g(o.vapidKey)}}}else(3===i.oldVersion||4===i.oldVersion)&&(e={token:(o=r).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:g(o.auth),p256dh:g(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:g(o.vapidKey)}});return[2]}}
1))}))}))];case 3:return i.sent().close(),[4,Object(d.deleteDb)("fcm_token_details_db")];case 4:return i.sent(),[4,Object(d.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(d.deleteDb)("undefined")];case 6:return i.sent(),[2,b(e)?e:null]}}))}))}function b(t){if(!t||!t.subscriptionOptions)return!1;var e=t.subscriptionOptions;return"number"==typeof t.createTime&&t.createTime>0&&"string"==typeof t.token&&t.token.length>0&&"string"==typeof e.auth&&e.auth.length>0&&"string"==typeof e.p256dh&&e.p256dh.length>0&&"string"==typeof e.endpoint&&e.endpoint.length>0&&"string"==typeof e.swScope&&e.swScope.length>0&&"string"==typeof e.vapidKey&&e.vapidKey.length>0}var w="firebase-messaging-store",k=null;function C(){return k||(k=Object(d.openDb)("firebase-messaging-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(w)}}))),k}function x(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return e=I(t),[4,C()];case 1:return[4,r.sent().transaction(w).objectStore(w).get(e)];case 2:return(n=r.sent())?[2,n]:[3,3];case 3:return[4,_(t.appConfig.senderId)];case 4:return(i=r.sent())?[4,S(t,i)]:[3,6];case 5:return r.sent(),[2,i];case 6:return[2]}}
1))}))}function S(t,e){return s(this,void 0,void 0,(function(){var n,i,r;return u(this,(function(o){switch(o.label){case 0:return n=I(t),[4,C()];case 1:return i=o.sent(),[4,(r=i.transaction(w,"readwrite")).objectStore(w).put(e,n)];case 2:return o.sent(),[4,r.complete];case 3:return o.sent(),[2,e]}}))}))}function E(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return e=I(t),[4,C()];case 1:return n=r.sent(),[4,(i=n.transaction(w,"readwrite")).objectStore(w).delete(e)];case 2:return r.sent(),[4,i.complete];case 3:return r.sent(),[2]}}))}))}function I(t){return t.appConfig.appId}var A="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function T(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o,a;return u(this,(function(s){switch(s.label){case 0:return[4,R(t)];case 1:n=s.sent(),i=N(e),r={method:"POST",headers:n,body:JSON.stringify(i)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(P(t.appConfig),r)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),m.create("token-subscribe-failed",{errorInfo:a});case 6:if(o.error)throw m.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw m.create("token-subscribe-no-token");return[2,o.token]}}))}))}function O(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o,a;return u(this,(function(s){switch(s.label){case 0:return[4,R(t)];case 1:n=s.sent(),i=N(e.subscriptionOptions),r={method:"PATCH",headers:n,body:JSON.stringify(i)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(P(t.appConfig)+"/"+e.token,r)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),m.create("token-update-failed",{errorInfo:a});case 6:if(o.error)throw m.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw m.create("token-update-no-token");return[2,o.token]}}))}))}function D(t,e){return s(this,void 0,void 0,(function(){var n,i,r,o;return u(this,(function(a){switch(a.label){case 0:return[4,R(t)];case 1:n=a.sent(),i={method:"DELETE",headers:n},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(P(t.appConfig)+"/"+e,i)];case 3:return[4,a.sent().json()];case 4:if((r=a.sent()).error)throw m.create("token-unsubscribe-failed",{errorInfo:r.error.message});return[3,6];case 5:throw o=a.sent(),m.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}}
1))}))}function P(t){return"https://fcmregistrations.googleapis.com/v1/projects/"+t.projectId+"/registrations"}function R(t){var e=t.appConfig,n=t.installations;return s(this,void 0,void 0,(function(){var t;return u(this,(function(i){switch(i.label){case 0:return[4,n.getToken()];case 1:return t=i.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}}))}))}function N(t){var e=t.vapidKey,n={web:{endpoint:t.endpoint,auth:t.auth,p256dh:t.p256dh}};return e!==A&&(n.web.applicationPubKey=e),n}function M(t,e,n){return s(this,void 0,void 0,(function(){var i,r,o,a;return u(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw m.create("permission-blocked");return[4,B(e,n)];case 1:return i=s.sent(),[4,x(t)];case 2:return r=s.sent(),o={vapidKey:n,swScope:e.scope,endpoint:i.endpoint,auth:g(i.getKey("auth")),p256dh:g(i.getKey("p256dh"))},r?[3,3]:[2,j(t,o)];case 3:if(c=(l=o).endpoint===(u=r.subscriptionOptions).endpoint,l.vapidKey===u.vapidKey&&c&&l.auth===u.auth&&l.p256dh===u.p256dh)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,D(t,r.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,j(t,o)];case 8:return Date.now()>=r.createTime+6048e5?[2,L({token:r.token,createTime:Date.now(),subscriptionOptions:o},t,e)]:[2,r.token];case 9:return[2]}var u,l,c}))}))}function F(t,e){return s(this,void 0,void 0,(function(){var n,i;return u(this,(function(r){switch(r.label){case 0:return[4,x(t)];case 1:return(n=r.sent())?[4,D(t,n.token)]:[3,4];case 2:return r.sent(),[4,E(t)];case 3:r.sent(),r.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return(i=r.sent())?[2,i.unsubscribe()]:[2,!0]}}))}))}function L(t,e,n){return s(this,void 0,void 0,(function(){var i,r,o;return u(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,5]),[4,O(e,t)];case 1:return i=s.sent(),r=a({token:i,createTime:Date.now()},t),[4,S(e,r)];case 2:return s.sent(),[2,i];case 3:return o=s.sent(),[4,F(e,n)];case 4:throw s.sent(),o;case 5:return[2]}}
1))}))}function j(t,e){return s(this,void 0,void 0,(function(){var n,i;return u(this,(function(r){switch(r.label){case 0:return[4,T(t,e)];case 1:return n=r.sent(),i={token:n,createTime:Date.now(),subscriptionOptions:e},[4,S(t,i)];case 2:return r.sent(),[2,i.token]}}))}))}function B(t,e){return s(this,void 0,void 0,(function(){var n;return u(this,(function(i){switch(i.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return(n=i.sent())?[2,n]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:y(e)})]}}))}))}var V=function(t){return t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked",t}({});function U(t){return"object"==typeof t&&!!t&&"google.c.a.c_id"in t}var H=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(t){return e.messageEventListener(t)}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),t.prototype.getToken=function(){return s(this,void 0,void 0,(function(){var t;return u(this,(function(e){switch(e.label){case 0:return this.vapidKey||(this.vapidKey=A),[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:e.sent(),e.label=3;case 3:if("granted"!==Notification.permission)throw m.create("permission-blocked");return[2,M(this.firebaseDependencies,t,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return s(this,void 0,void 0,(function(){var t;return u(this,(function(e){switch(e.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),[2,F(this.firebaseDependencies,t)]}}))}))},t.prototype.requestPermission=function(){return s(this,void 0,void 0,(function(){var t;return u(this,(function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw m.create("denied"===t?"permission-blocked":"permission-default")}}))}))},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw m.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw m.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw m.create("invalid-sw-registration");if(this.swRegistration)throw m.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback="function"==typeof t?t:t.next,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw m.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.getServiceWorkerRegistration=function(){return s(this,void 0,void 0,(function(){var t,e;return u(this,(function(n){switch(n.label){case 0:if(this.swRegistration)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return t.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,4];case 3:throw e=n.sent(),m.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 4:return[2,this.swRegistration]}}))}))},t.prototype.messageEventListener=function(t){var e;return s(this,void 0,void 0,(function(){var n,i,r,o;return u(this,(function(a){switch(a.label){case 0:return(null===(e=t.data)||void 0===e?void 0:e.firebaseMessaging)?(i=(n=t.data.firebaseMessaging).type,r=n.payload,this.onMessageCallback&&i===V.PUSH_RECEIVED&&this.onMessageCallback(r),U(o=r.data)&&"1"===o["google.c.a.e"]?[4,this.logEvent(i,o)]:[3,2]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}}
1))}))},t.prototype.logEvent=function(t,e){return s(this,void 0,void 0,(function(){var n;return u(this,(function(i){switch(i.label){case 0:return n=function(t){switch(t){case V.NOTIFICATION_CLICKED:return"notification_open";case V.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return i.sent().logEvent(n,{message_id:e["google.c.a.c_id"],message_name:e["google.c.a.c_l"],message_time:e["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},t}(),z=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(t){t.waitUntil(e.onPush(t))})),self.addEventListener("pushsubscriptionchange",(function(t){t.waitUntil(e.onSubChange(t))})),self.addEventListener("notificationclick",(function(t){t.waitUntil(e.onNotificationClick(t))}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(!t||"function"!=typeof t)throw m.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.getToken=function(){var t,e;return s(this,void 0,void 0,(function(){var n;return u(this,(function(i){switch(i.label){case 0:return this.vapidKey?[3,2]:[4,x(this.firebaseDependencies)];case 1:n=i.sent(),this.vapidKey=null!==(e=null===(t=null==n?void 0:n.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:A,i.label=2;case 2:return[2,M(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return F(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw m.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw m.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw m.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw m.create("only-available-in-window")},t.prototype.onMessage=function(){throw m.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw m.create("only-available-in-window")},t.prototype.onPush=function(t){return s(this,void 0,void 0,(function(){var e,n,i;return u(this,(function(r){switch(r.label){case 0:return(e=function(t){var e=t.data;if(!e)return null;try{return e.json()}catch(n){return null}}(t))?[4,G()]:[2];case 1:return function(t){return t.some((function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")}))}(n=r.sent())?[2,W(n,e)]:(i=function(t){var e;if(t&&"object"==typeof t.notification){var n=a({},t.notification);return n.data=a(a({},t.notification.data),((e={}).FCM_MSG=t,e)),n}}(e))?[4,Y(i)]:[3,3];case 2:return r.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(e)]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2]}}
1))}))},t.prototype.onSubChange=function(t){var e,n;return s(this,void 0,void 0,(function(){var i;return u(this,(function(r){switch(r.label){case 0:return t.newSubscription?[3,2]:[4,F(this.firebaseDependencies,self.registration)];case 1:return r.sent(),[2];case 2:return[4,x(this.firebaseDependencies)];case 3:return i=r.sent(),[4,F(this.firebaseDependencies,self.registration)];case 4:return r.sent(),[4,M(this.firebaseDependencies,self.registration,null!==(n=null===(e=null==i?void 0:i.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==n?n:A)];case 5:return r.sent(),[2]}}))}))},t.prototype.onNotificationClick=function(t){var e,n;return s(this,void 0,void 0,(function(){var i,r,o,a;return u(this,(function(s){switch(s.label){case 0:return(i=null===(n=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===n?void 0:n.FCM_MSG)?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),(r=function(t){var e,n,i;return(null!==(n=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==n?n:null===(i=t.notification)||void 0===i?void 0:i.click_action)||(U(t.data)?self.location.origin:null)}(i))?[4,q(r)]:[2]):[2];case 1:return(o=s.sent())?[3,4]:[4,self.clients.openWindow(r)];case 2:return o=s.sent(),[4,new Promise((function(t){setTimeout(t,3e3)}))];case 3:return s.sent(),[3,6];case 4:return[4,o.focus()];case 5:o=s.sent(),s.label=6;case 6:return o?(a=K(V.NOTIFICATION_CLICKED,i),[2,o.postMessage(a)]):[2]}}))}))},t}();function q(t){return s(this,void 0,void 0,(function(){var e,n,i,r,o,a,s;return u(this,(function(u){switch(u.label){case 0:return e=new URL(t,self.location.href),[4,G()];case 1:n=u.sent();try{for(i=l(n),r=i.next();!r.done;r=i.next())if(o=r.value,new URL(o.url,self.location.href).host===e.host)return[2,o]}catch(c){a={error:c}}finally{try{r&&!r.done&&(s=i.return)&&s.call(i)}finally{if(a)throw a.error}}return[2,null]}}))}))}function W(t,e){var n,i,r=K(V.PUSH_RECEIVED,e);try{for(var o=l(t),a=o.next();!a.done;a=o.next())a.value.postMessage(r)}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function G(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function K(t,e){return{firebaseMessaging:{type:t,payload:e}}}function Y(t){var e,n=null!==(e=t.title)&&void 0!==e?e:"",i=t.actions,r=Notification.maxActions;return i&&r&&i.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,t)}var Q={isSupported:$};function $(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}r.a.INTERNAL.registerComponent(new o.Component("messaging",(function(t){var e=t.getProvider("app").getImmediate(),n={app:e,appConfig:function(t){var e,n;if(!t||!t.options)throw v("App Configuration Object");if(!t.name)throw v("App Name");var i=t.options;try{for(var r=l(["projectId","apiKey","appId","messagingSenderId"]),o=r.next();!o.done;o=r.next()){var a=o.value;if(!i[a])throw v(a)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return{appName:t.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}(e),installations:t.getProvider("installations").getImmediate(),analyticsProvider:t.getProvider("analytics-internal")};if(!$())throw m.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new z(n):new H(n)}),"PUBLIC").setServiceProps(Q))},vEql:function(t,e,n){"use strict";var i,r=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i;r.registerVersion("firebase","7.14.6","app"),t.exports=r}
1,vjMV:function(t,e){t.exports={webapp:{apiKey:"AIzaSyDNSjMY0J-CKJu6Edo9ze3mOYdNvs9vOYI",authDomain:"app.getveryfast.com",databaseURL:"https://vf-prime-production.firebaseio.com",projectId:"vf-prime-production",storageBucket:"vf-prime-production.appspot.com",messagingSenderId:"613761653341",appId:"1:613761653341:web:d18ed28efb6a053ffb4bb4",measurementId:"G-3TSPWK5DGP"},chrome:{apiKey:"AIzaSyDNSjMY0J-CKJu6Edo9ze3mOYdNvs9vOYI",authDomain:"vf-prime-production.firebaseapp.com",databaseURL:"https://vf-prime-production.firebaseio.com",projectId:"vf-prime-production",storageBucket:"vf-prime-production.appspot.com",messagingSenderId:"613761653341",appId:"1:613761653341:web:a04ef05e598ec944fb4bb4",measurementId:"G-WS142TYWDW"}}},xy2J:function(t,e,n){t.exports={webappUrl:"https://app.getveryfast.com",debugAnalytics:!1,facebookPixelToken:"EAAMZAd8aVGBMBAFa7vZBLuVlFvlDyUMrJiAddn2X1iCFUgQ08AjqOdt6JqbIcBJzfO8NvfdjEMeaNZBlPDrKTqc5YNJbwGDMtbLxZAl7itxRXddc1Nf5D3RQqkZCbl7HRtNRWAYJt9WTkAc8awrrcbrYgNIyry74IfUWsL9aZA9x5ukPp9nFZA7",facebookPixelId:"2853375661613215",blacklist:n("QQ50"),debugRemoteConfig:!1}},xzff:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(n("INYq")),o=i(n("QSAZ")),a=n("33n6"),s=n("MtdZ"),u=i(n("ZcxV")),l=i(n("V4YE")),c=i(n("lCA4")),h=r.default.create;function f(){var t=h();return t.compile=function(e,n){return s.compile(e,n,t)},t.precompile=function(e,n){return s.precompile(e,n,t)},t.AST=o.default,t.Compiler=s.Compiler,t.JavaScriptCompiler=u.default,t.Parser=a.parser,t.parse=a.parse,t.parseWithoutProcessing=a.parseWithoutProcessing,t}var d=f();d.create=f,c.default(d),d.Visitor=l.default,d.default=d,e.default=d,t.exports=e.default},yNI9:function(t,e,n){"use strict";var i,r=(i=n("plFh"))&&"object"==typeof i&&"default"in i?i.default:i,o=n("UlAd"),a=n("WRB3"),s={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"},u=function(t){function e(n,i,r){var o=t.call(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o.code=n,o.details=r,o}return o.__extends(e,t),e}(Error),l=function(){function t(t,e){var n=this;this.auth=null,this.messaging=null,this.auth=t.getImmediate({optional:!0}),this.messaging=e.getImmediate({optional:!0}),this.auth||t.get().then((function(t){return n.auth=t}),(function(){})),this.messaging||e.get().then((function(t){return n.messaging=t}),(function(){}))}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:if(!this.auth)return[2,void 0];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(t=e.sent())?[2,t.accessToken]:[2,void 0];case 3:return e.sent(),[2,void 0];case 4:return[2]}}
1))}))},t.prototype.getInstanceIdToken=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}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 c(t,e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=e(t[i]));return n}var h,f=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 c(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=Number(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?c(t,(function(t){return e.decode(t)})):t},t}(),d=function(){function t(t,e,n,i){var r=this;void 0===i&&(i="us-central1"),this.app_=t,this.region_=i,this.serializer=new f,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return r.deleteService()}},this.contextProvider=new l(e,n),this.cancelAllRequests=new Promise((function(t){r.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(i){return n.call(t,i,e||{})}},t.prototype.postJSON=function(t,e,n){return o.__awaiter(this,void 0,void 0,(function(){var i,r;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 i=o.sent(),[3,4];case 3:return o.sent(),[2,{status:0,json:null}];case 4:r=null,o.label=5;case 5:return o.trys.push([5,7,,8]),[4,i.json()];case 6:return r=o.sent(),[3,8];case 7:return o.sent(),[3,8];case 8:return[2,{status:i.status,json:r}]}}))}))},t.prototype.call=function(t,e,n){return o.__awaiter(this,void 0,void 0,(function(){var i,r,a,l,c,h,f,d;return o.__generator(this,(function(o){switch(o.label){case 0:return i=this._url(t),e=this.serializer.encode(e),r={data:e},a=new Headers,[4,this.contextProvider.getContext()];case 1:return(l=o.sent()).authToken&&a.append("Authorization","Bearer "+l.authToken),l.instanceIdToken&&a.append("Firebase-Instance-ID-Token",l.instanceIdToken),c=n.timeout||7e4,[4,Promise.race([this.postJSON(i,r,a),(p=c,new Promise((function(t,e){setTimeout((function(){e(new u("deadline-exceeded","deadline-exceeded"))}),p)}))),this.cancelAllRequests])];case 2:if(!(h=o.sent()))throw new u("cancelled","Firebase Functions instance was deleted.");if(f=function(t,e,n){var i=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"}(t),r=i,o=void 0;try{var a=e&&e.error;if(a){var l=a.status;if("string"==typeof l){if(!s[l])return new u("internal","internal");i=s[l],r=l}var c=a.message;
1"string"==typeof c&&(r=c),void 0!==(o=a.details)&&(o=n.decode(o))}}catch(h){}return"ok"===i?null:new u(i,r,o)}(h.status,h.json,this.serializer))throw f;if(!h.json)throw new u("internal","Response is not valid JSON object.");if(void 0===(d=h.json.data)&&(d=h.json.result),void 0===d)throw new u("internal","Response is missing data field.");return[2,{data:this.serializer.decode(d)}]}var p}))}))},t}();h={Functions:d},r.INTERNAL.registerComponent(new a.Component("functions",(function(t,e){var n=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),r=t.getProvider("messaging");return new d(n,i,r,e)}),"PUBLIC").setServiceProps(h).setMultipleInstances(!0)),r.registerVersion("@firebase/functions","0.4.44")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function a(t){setTimeout((function(){throw t}),0)}var s={closed:!0,next:function(t){},error:function(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete:function(){}},u=Array.isArray||function(t){return t&&"number"==typeof t.length};function l(t){return null!==t&&"object"==typeof t}var c,h=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map((function(t,e){return"".concat(e+1,") ").concat(t.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),f=((c=function(){function t(e){_classCallCheck(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return _createClass(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(i(r))try{r.call(this)}catch(p){e=p instanceof h?d(p.errors):[p]}if(u(o))for(var s=-1,c=o.length;++s<c;){var f=o[s];if(l(f))try{f.unsubscribe()}catch(p){e=e||[],p instanceof h?e=e.concat(d(p.errors)):e.push(p)}}if(e)throw new h(e)}}},{key:"add",value:function(e){var n=e;if(!e)return t.EMPTY;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 i=n;(n=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}]),t}()).EMPTY=function(t){return t.closed=!0,t}(new c),c);function d(t){return t.reduce((function(t,e){return t.concat(e instanceof h?e.errors:e)}),[])}var p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),m=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;switch(_classCallCheck(this,n),(o=e.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s;break;case 1:if(!t){o.destination=s;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new v(_assertThisInitialized(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new v(_assertThisInitialized(o),t,i,r)}return o}return _createClass(n,[{key:p,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}
vendor: 8,385 bytes, line 1
1],[{key:"create",value:function(t,e,i){var r=new n(t,e,i);return r.syncErrorThrowable=!1,r}}]),n}(f),v=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,o,a){var u,l;_classCallCheck(this,n),(u=e.call(this))._parentSubscriber=t;var c=_assertThisInitialized(u);return i(r)?l=r:r&&(l=r.next,o=r.error,a=r.complete,r!==s&&(i((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(_assertThisInitialized(u)))),u._context=c,u._next=l,u._error=o,u._complete=a,u}return _createClass(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=o.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):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(a(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(m),g="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){return t}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return b(e)}function b(t){return 0===t.length?y:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var w,k=((w=function(){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(t,e,n){var i=this.operator,r=function(t,e,n){if(t){if(t instanceof m)return t;if(t[p])return t[p]()}return t||e||n?new m(t,e,n):new m(s)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,i=e.destination,r=e.isStopped;if(n||r)return!1;t=i&&i instanceof m?i:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var n=this;return new(e=C(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(n){i(n),r&&r.unsubscribe()}}),i,e)}))}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:g,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?this:b(e)(this)}},{key:"toPromise",value:function(t){var e=this;return new(t=C(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))}}]),t}()).create=function(t){return new w(t)},w);function C(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var x,S=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),E=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).subject=t,r.subscriber=i,r.closed=!1,r}return _createClass(n,[{key:"unsubscribe",value: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)}}}}]),n}(f),I=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).destination=t,i}return n}(m),A=((x=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(n,[{key:p,value:function(){return new I(this)}},{key:"lift",value:function(t){var e=new T(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new S;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)}},{key:"error",value:function(t){if(this.closed)throw new S;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new S;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new S;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,t)}},{key:"_subscribe",value:function(t){if(this.closed)throw new S;return this.hasError?(t.error(this.thrownError),f.EMPTY):this.isStopped?(t.complete(),f.EMPTY):(this.observers.push(t),new E(this,t))}},{key:"asObservable",value:function(){var t=new k;return t.source=this,t}}]),n}(k)).create=function(t,e){return new T(t,e)},x),T=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).destination=t,r.source=i,r}return _createClass(n,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):f.EMPTY}}]),n}(A);function O(t){return t&&"function"==typeof t.schedule}var D=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this)).parent=t,o.outerValue=i,o.outerIndex=r,o.index=0,o}return _createClass(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(m),P=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}};var R="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",N=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function M(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var F=function(t){if(t&&"function"==typeof t[g])return i=t,function(t){var e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(N(t))return P(t);if(M(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,a),t};if(t&&"function"==typeof t[R])return e=t,function(t){for(var n=e[R]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};
1var e,n,i,r=l(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(r," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.")};function L(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new D(t,n,i);if(!r.closed)return e instanceof k?e.subscribe(r):F(e)(r)}var j=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(m);function B(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 V(t,e))}}var V=function(){function t(e,n){_classCallCheck(this,t),this.project=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new U(t,this.project,this.thisArg))}}]),t}(),U=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value: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)}}]),n}(m);function H(t,e){return new k((function(n){var i=new f,r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function z(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new k((function(n){var i=new f;return i.add(e.schedule((function(){var r=t[g]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}))}(t,e);if(M(t))return function(t,e){return new k((function(n){var i=new f;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}))}(t,e);if(N(t))return H(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new k((function(n){var i,r=new f;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[R](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof k?t:new k(F(t))}function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(q((function(n,i){return z(t(n,i)).pipe(B((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new W(t,n))})}var W=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new G(t,this.project,this.concurrent))}}]),t}(),G=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=e.call(this,t)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=new D(this,e,n),r=this.destination;r.add(i);var o=L(this,t,void 0,void 0,i);o!==i&&r.add(o)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyComplete",value: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()}}]),n}(j);function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return q(y,t)}function Y(t,e){return e?H(t,e):new k(P(t))}function Q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return O(o)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(i=e.pop())):"number"==typeof o&&(i=e.pop()),null===r&&1===e.length&&e[0]instanceof k?e[0]:K(i)(Y(e,r))}function $(){return function(t){return t.lift(new Z(t))}}var X,Z=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new J(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),J=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value: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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(m),tt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(X=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return _createClass(n,[{key:"_subscribe",value:function(t){return this.get
1Subject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new f).add(this.source.subscribe(new et(this.getSubject(),this))),t.closed&&(this._connection=null,t=f.EMPTY)),t}},{key:"refCount",value:function(){return $()(this)}}]),n}(k).prototype)._subscribe},_isComplete:{value:X._isComplete,writable:!0},getSubject:{value:X.getSubject},connect:{value:X.connect},refCount:{value:X.refCount}},et=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).connectable=i,r}return _createClass(n,[{key:"_error",value:function(t){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(I);function nt(){return new A}function it(){return function(t){return $()((e=nt,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,tt);return i.source=t,i.subjectFactory=n,i})(t));var e}}function rt(t){return{toString:t}.toString()}function ot(t,e,n){return rt((function(){var i=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=_construct(r,e);return a.annotation=o,a;function a(t,e,n){for(var i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}))}var at=ot("Inject",(function(t){return{token:t}})),st=ot("Optional"),ut=ot("Self"),lt=ot("SkipSelf"),ct=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}({});function ht(t){for(var e in t)if(t[e]===ht)return e;throw Error("Could not find renamed property on target object.")}function ft(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function mt(t){return vt(t,t[yt])||vt(t,t[wt])}function vt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(kt))?t[_t]:null}var yt=ht({"\u0275prov":ht}),_t=ht({"\u0275inj":ht}),bt=ht({"\u0275provFallback":ht}),wt=ht({ngInjectableDef:ht}),kt=ht({ngInjectorDef:ht});function Ct(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var St=ht({__forward_ref__:ht});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return Ct(this())},t}function It(t){return At(t)?t():t}function At(t){return"function"==typeof t&&t.hasOwnProperty(St)&&t.__forward_ref__===Et}var Tt,Ot="undefined"!=typeof globalThis&&globalThis,Dt="undefined"!=typeof window&&window,Pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global,Nt=Ot||Rt||Dt||Pt,Mt=ht({"\u0275cmp":ht}),Ft=ht({"\u0275dir":ht}),Lt=ht({"\u0275pipe":ht}),jt=ht({"\u0275mod":ht}),Bt=ht({"\u0275loc":ht}),Vt=ht({"\u0275fac":ht}),Ut=ht({__NG_ELEMENT_ID__:ht}),Ht=function(){function t(e,n){_classCallCheck(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=dt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(t,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),t}(),zt=new Ht("INJECTOR",-1),qt={},Wt=/\n/gm,Gt=ht({provide:String,useValue:ht}),Kt=void 0;function Yt(t){var e=Kt;return Kt=t,e}function Qt(t){var e=Tt;return Tt=t,e}function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.Default;if(void 0===Kt)throw new Error("inject() must be called from an injection context");return null===Kt?Jt(t,void 0,e):Kt.get(t,e&ct.Optional?null:void 0,e)}function Xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.Default;return(Tt||$t)(It(t),e)}var Zt=Xt;function Jt(t,e,n){var i=mt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&ct.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Ct(t),"]"))}function te(t){for(var e=[],n=0;n<t.length;n++){var i=It(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=ct.Default,a=0;a<i.length;a++){var s=i[a];s instanceof st||"Optional"===s.ngMetadataName||s===st?o|=ct.Optional:s instanceof lt||"SkipSelf"===s.ngMetadataName||s===lt?o|=ct.SkipSelf:s instanceof ut||"Self"===s.ngMetadataName||s===ut?o|=ct.Self:r=s instanceof at||s===at?s.token:s}e.push(Xt(r,o))}else e.push(Xt(i))}return e}var ee=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt;if(e===qt){var n=new Error("NullInjectorError: No provider for ".concat(Ct(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),ne=function t(){_classCallCheck(this,t)},ie=function t(){_classCallCheck(this,t)};function re(t,e){t.forEach((function(t){return Array.isArray(t)?re(t,e):e(t)}))}function oe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ae(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){for(var n=[],i=0;i<t;i++)n.push(e);return n}function ue(t,e,n){var i=ce(t,e);return i>=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function le(t,e){var n=ce(t,e);if(n>=0)return t[1|n]}function ce(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var he=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),fe=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),de={},pe=[],me=0;function ve(t){return rt((function(){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===he.OnPush,directiveDefs:null,pipeDefs:null,
1selectors:t.selectors||pe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||fe.Emulated,id:"c",styles:t.styles||pe,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return r.id+=me++,r.inputs=ke(t.inputs,i),r.outputs=ke(t.outputs),a&&a.forEach((function(t){return t(r)})),r.directiveDefs=o?function(){return("function"==typeof o?o():o).map(ye)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(_e)}:null,r}))}function ge(t,e,n){var i=t.\u0275cmp;i.directiveDefs=function(){return e.map(ye)},i.pipeDefs=function(){return n.map(_e)}}function ye(t){return Se(t)||function(t){return t[Ft]||null}(t)}function _e(t){return function(t){return t[Lt]||null}(t)}var be={};function we(t){var e={type:t.type,bootstrap:t.bootstrap||pe,declarations:t.declarations||pe,imports:t.imports||pe,exports:t.exports||pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&rt((function(){be[t.id]=t.type})),e}function ke(t,e){if(null==t)return de;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var Ce=ve;function xe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Se(t){return t[Mt]||null}function Ee(t,e){return t.hasOwnProperty(Vt)?t[Vt]:null}function Ie(t,e){var n=t[jt]||null;if(!n&&!0===e)throw new Error("Type ".concat(Ct(t)," does not have '\u0275mod' property."));return n}function Ae(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function De(t){return 2==(2&t.flags)}function Pe(t){return 1==(1&t.flags)}function Re(t){return null!==t.template}function Ne(t){return 0!=(512&t[2])}var Me=void 0;function Fe(){return void 0!==Me?Me:"undefined"!=typeof document?document:void 0}function Le(t){return!!t.listen}var je={createRenderer:function(t,e){return Fe()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function Ve(t,e){return Be(e[t+20])}function Ue(t,e){return Be(e[t.index])}function He(t,e){return t.data[e+20]}function ze(t,e){return t[e+20]}function qe(t,e){var n=e[t];return Ae(n)?n:n[0]}function We(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ye(t,e){return null===t||null==e?null:t[e]}function Qe(t){t[18]=0}function $e(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var Xe={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ze(){return Xe.bindingsEnabled}function Je(){return Xe.lFrame.lView}function tn(){return Xe.lFrame.tView}function en(t){Xe.lFrame.contextLView=t}function nn(){return Xe.lFrame.previousOrParentTNode}function rn(t,e){Xe.lFrame.previousOrParentTNode=t,Xe.lFrame.isParent=e}function on(){return Xe.lFrame.isParent}function an(){Xe.lFrame.isParent=!1}function sn(){return Xe.checkNoChangesMode}function un(t){Xe.checkNoChangesMode=t}function ln(){var t=Xe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cn(){return Xe.lFrame.bindingIndex++}function hn(t){var e=Xe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function fn(t,e){var n=Xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,dn(e)}function dn(t){Xe.lFrame.currentDirectiveIndex=t}function pn(t){var e=Xe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function mn(){return Xe.lFrame.currentQueryIndex}function vn(t){Xe.lFrame.currentQueryIndex=t}function gn(t,e){var n=_n();Xe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function yn(t,e){var n=_n(),i=t[1];Xe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function _n(){var t=Xe.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,
1currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function wn(){var t=Xe.lFrame;return Xe.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var kn=wn;function Cn(){var t=wn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function xn(){return Xe.lFrame.selectedIndex}function Sn(t){Xe.lFrame.selectedIndex=t}function En(){var t=Xe.lFrame;return He(t.tView,t.selectedIndex)}function In(){Xe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function An(){Xe.lFrame.currentNamespace=null}function Tn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n<i;n++){var r=t.data[n];r.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,r.afterContentInit),r.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,r.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r.afterContentChecked)),r.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,r.afterViewInit),r.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,r.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,r.afterViewChecked)),null!=r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r.onDestroy)}}function On(t,e,n){Rn(t,e,3,n)}function Dn(t,e,n,i){(3&t[2])===n&&Rn(t,e,n,i)}function Pn(t,e){var n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Rn(t,e,n,i){for(var r=null!=i?i:-1,o=0,a=void 0!==i?65535&t[18]:0;a<e.length;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(Nn(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Nn(t,e,n,i){var r=n[i]<0,o=n[i+1],a=t[r?-n[i]:n[i]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var Mn=function t(e,n,i){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Fn(t,e,n){for(var i=Le(t),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],u=n[r++];i?t.setAttribute(e,s,u,a):e.setAttributeNS(a,s,u)}else{var l=o,c=n[++r];jn(l)?i&&t.setProperty(e,l,c):i?t.setAttribute(e,l,c):e.setAttribute(l,c),r++}}return r}function Ln(t){return 3===t||4===t||6===t}function jn(t){return 64===t.charCodeAt(0)}function Bn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var n=-1,i=0;i<e.length;i++){var r=e[i];"number"==typeof r?n=r:0===n||Vn(t,n,r,null,-1===n||2===n?e[++i]:null)}return t}function Vn(t,e,n,i,r){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var s=t[o++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=o-1;break}}}for(;o<t.length;){var u=t[o];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,n),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function Un(t){return-1!==t}function Hn(t){return 32767&t}function zn(t){return t>>16}function qn(t,e){for(var n=zn(t),i=e;n>0;)i=i[15],n--;return i}function Wn(t){return"string"==typeof t?t:null==t?"":""+t}function Gn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Wn(t)}var Kn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt);function Yn(t){return{name:"body",target:t.ownerDocument.body}}function Qn(t){return t instanceof Function?t():t}var $n=!0;function Xn(t){var e=$n;return $n=t,e}var Zn=0;function Jn(t,e){var n=ei(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ti(i.data,t),ti(e,null),ti(i.blueprint,null));var r=ni(t,e),o=t.injectorIndex;if(Un(r))for(var a=Hn(r),s=qn(r,e),u=s[1].data,l=0;l<8;l++)e[o+l]=s[a+l]|u[a+l];return e[o+8]=r,o}function ti(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ei(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ni(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function ii(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[Ut]:n.charCodeAt(0)||0;null==i&&(i=n[Ut]=Zn++);var r=255&i,o=1<<r,a=64&r,s=32&r,u=e.data;128&r?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}(t,e,n)}function ri(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ct.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Ut];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){gn(e,t);try{var a=o();if(null!=a||i&ct.Optional)return a;throw new Error("No provider for ".concat(Gn(n),"!"))}finally{kn()}}else if("number"==typeof o){if(-1===o)return new hi(t,e);var s=null,u=ei(t,e),l=-1,c=i&ct.Host?e[16][6]:null;for((-1===u||i&ct.SkipSelf)&&(l=-1===u?ni(t,e):e[u+8],ci(i,!1)?(s=e[1],u=Hn(l),e=qn(l,e)):u=-1);-1!==u;){l=e[u+8];var h=e[1];if(li(o,u,h.data)){var f=ai(u,e,n,s,i,c);if(f!==oi)return f}ci(i,e[1].data[u+8]===c)&&li(o,u,e)?(s=h,u=Hn(l),e=qn(l,e)):u=-1}
1}}if(i&ct.Optional&&void 0===r&&(r=null),0==(i&(ct.Self|ct.Host))){var d=e[9],p=Qt(void 0);try{return d?d.get(n,r,i&ct.Optional):Jt(n,r,i&ct.Optional)}finally{Qt(p)}}if(i&ct.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(Gn(n),"]"))}var oi={};function ai(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],u=si(s,a,n,null==i?De(s)&&$n:i!=a&&3===s.type,r&ct.Host&&o===s);return null!==u?ui(e,a,u,s):oi}function si(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,u=t.directiveStart,l=o>>16,c=r?s+l:t.directiveEnd,h=i?s:s+l;h<c;h++){var f=a[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(r){var d=a[u];if(d&&Re(d)&&d.type===n)return u}return null}function ui(t,e,n,i){var r=t[n],o=e.data;if(r instanceof Mn){var a=r;if(a.resolving)throw new Error("Circular dep for ".concat(Gn(o[n])));var s,u=Xn(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=Qt(a.injectImpl)),gn(t,i);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,o=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&Qt(s),Xn(u),a.resolving=!1,kn()}}return r}function li(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<<t)}function ci(t,e){return!(t&ct.Self||t&ct.Host&&e)}var hi=function(){function t(e,n){_classCallCheck(this,t),this._tNode=e,this._lView=n}return _createClass(t,[{key:"get",value:function(t,e){return ri(this._tNode,this._lView,t,void 0,e)}}]),t}();function fi(t){return rt((function(){var e=Object.getPrototypeOf(t.prototype).constructor,n=e[Vt]||function t(e){var n=e;if(At(e))return function(){var e=t(It(n));return e?e():null};var i=Ee(n);if(null===i){var r=gt(n);i=r&&r.factory}return i||null}(e);return null!==n?n:function(t){return new t}}))}function di(t){return t.ngDebugContext}function pi(t){return t.ngOriginalError}function mi(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];t.error.apply(t,n)}var vi=function(){function t(){_classCallCheck(this,t),this._console=console}return _createClass(t,[{key:"handleError",value:function(t){var e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||mi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(t){return t?di(t)?di(t):this._findContext(pi(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=pi(t);e&&pi(e);)e=pi(e);return e}}]),t}(),gi=function(){function t(e){_classCallCheck(this,t),this.changingThisBreaksApplicationSecurity=e}return _createClass(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),t}(),yi=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(gi),_i=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(gi),bi=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(gi),wi=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(gi),ki=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(gi);function Ci(t){return t instanceof gi?t.changingThisBreaksApplicationSecurity:t}function xi(t,e){var n=Si(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===e}function Si(t){return t instanceof gi&&t.getTypeName()||null}var Ei=!0,Ii=!1;function Ai(){return Ii=!0,Ei}var Ti=function(){function t(e){_classCallCheck(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var n=this.inertDocument.body;if(null==n){var i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i),n=this.inertDocument.createElement("body"),i.appendChild(n)}n.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!n.querySelector||n.querySelector("svg")?(n.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(t,[{key:"getInertBodyElement_XHR",value:function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){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}},{key:"getInertBodyElement_DOMParser",value: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}}},{key:"getInertBodyElement_InertDocument",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}for(var r=t.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),t}(),Oi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Di=/^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 Pi(t){return(t=String(t)).match(Oi)||t.match(Di)?t:(Ai()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(t," (see http://g.co/ng/security#xss)")),"unsafe:"+t)}function Ri(t){var e,n={},i=_createForOfIteratorHelper(t.split(","));try{for(i.s();!(e=i.n()).done;){n[e.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function Ni(){for(var t={},e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(t[s]=!0)}return t}var Mi,Fi=Ri("area,br,col,hr,img,wbr"),Li=Ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ji=Ri("rp,rt"),Bi=Ni(ji,Li),Vi=Ni(Fi,Ni(Li,Ri("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")),Ni(ji,Ri("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")),Bi),Ui=Ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Hi=Ri("srcset"),zi=Ni(Ui,Hi,Ri("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),Ri("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),qi=Ri("script,style,template"),Wi=function(){function t(){_classCallCheck(this,t),this.sanitizedSomething=!1,this.buf=[]}return _createClass(t,[{key:"sanitizeChildren",value: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 i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var e=t.nodeName.toLowerCase();if(!Vi.hasOwnProperty(e))return this.sanitizedSomething=!0,!qi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);for(var n,i=t.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(zi.hasOwnProperty(s)){var u=o.value;Ui[s]&&(u=Pi(u)),Hi[s]&&(n=u,u=(n=String(n)).split(",").map((function(t){return Pi(t.trim())})).join(", ")),this.buf.push(" ",a,'="',Yi(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Vi.hasOwnProperty(e)&&!Fi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(Yi(t))}},{key:"checkClobberedElement",value: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: ".concat(t.outerHTML));return e}}]),t}(),Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ki=/([^\#-~ |!])/g;function Yi(t){return t.replace(/&/g,"&").replace(Gi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ki,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function Qi(t,e){var n=null;try{Mi=Mi||new Ti(t);var i=e?String(e):"";n=Mi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Mi.getInertBodyElement(i)}while(i!==o);var a=new Wi,s=a.sanitizeChildren($i(n)||n);return Ai()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=$i(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function $i(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xi=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Zi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ji=/^url\(([^)]+)\)$/;function tr(t){var e=nr();return e?e.sanitize(Xi.HTML,t)||"":xi(t,"HTML")?Ci(t):Qi(Fe(),Wn(t))}function er(t){var e=nr();return e?e.sanitize(Xi.URL,t)||"":xi(t,"URL")?Ci(t):Pi(Wn(t))}function nr(){var t=Je();return t&&t[12]}function ir(t,e){t.__ngContext__=e}function rr(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function or(){throw new Error("Cannot mix multi providers and regular providers")}function ar(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var o=e.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}n=r+1}}function sr(t,e,n){for(var i=0;i<t.length;){var r=t[i++];if(n&&"class"===r){if(-1!==ar((r=t[i]).toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function ur(t){return 0===t.type&&"ng-template"!==t.tagName}function lr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function cr(t,e,n){for(var i=4,r=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(Ln(t[e]))return e;return t.length}(r),a=!1,s=0;s<e.length;s++){var u=e[s];if("number"!=typeof u){if(!a)if(4&i){if(i=2|1&i,""!==u&&!lr(t,u,n)||""===u&&1===e.length){if(hr(i))return!1;a=!0}}else{var l=8&i?u:e[++s];if(8&i&&null!==t.attrs){if(!sr(t.attrs,l,n)){if(hr(i))return!1;a=!0}continue}var c=fr(8&i?"class":u,r,ur(t),n);if(-1===c){if(hr(i))return!1;a=!0;continue}if(""!==l){var h;h=c>
1o?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==ar(f,l,0)||2&i&&l!==h){if(hr(i))return!1;a=!0}}}}else{if(!a&&!hr(i)&&!hr(u))return!1;if(a&&hr(u))continue;a=!1,i=u|1&i}}return hr(i)||a}function hr(t){return 0==(1&t)}function fr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r<e.length;){var a=e[r];if(a===t)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=e[++r];"string"==typeof s;)s=e[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function dr(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<e.length;i++)if(cr(t,e[i],n))return!0;return!1}function pr(t,e){t:for(var n=0;n<e.length;n++){var i=e[n];if(t.length===i.length){for(var r=0;r<t.length;r++)if(t[r]!==i[r])continue t;return!0}}return!1}function mr(t,e){return t?":not("+e.trim()+")":e}function vr(t){for(var e=t[0],n=1,i=2,r="",o=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&i){var s=t[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||hr(a)||(e+=mr(o,r),r=""),i=a,o=o||!hr(i);n++}return""!==r&&(e+=mr(o,r)),e}var gr={};function yr(t){var e=t[3];return Te(e)?e[3]:e}function _r(t){return wr(t[13])}function br(t){return wr(t[4])}function wr(t){for(;null!==t&&!Te(t);)t=t[4];return t}function kr(t){Cr(tn(),Je(),xn()+t,sn())}function Cr(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&On(e,r,n)}else{var o=t.preOrderHooks;null!==o&&Dn(e,o,0,n)}Sn(n)}function xr(t,e){return t<<17|e<<2}function Sr(t){return t>>17&32767}function Er(t){return 2|t}function Ir(t){return(131068&t)>>2}function Ar(t,e){return-131069&t|e<<2}function Tr(t){return 1|t}function Or(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1];if(-1!==o){var a=t.data[o];vn(r),a.contentQueries(2,e[o],o)}}}function Dr(t,e,n){return Le(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Pr(t,e,n,i,r,o,a,s,u,l){var c=e.blueprint.slice();return c[0]=r,c[2]=140|i,Qe(c),c[3]=c[15]=t,c[8]=n,c[10]=a||t&&t[10],c[11]=s||t&&t[11],c[12]=u||t&&t[12]||null,c[9]=l||t&&t[9]||null,c[6]=o,c[16]=2==e.type?t[16]:c,c}function Rr(t,e,n,i,r,o){var a=n+20,s=t.data[a]||function(t,e,n,i,r,o){var a=nn(),s=on(),u=s?a:a&&a.parent,l=t.data[n]=zr(0,u&&u!==e?u:null,i,n,r,o);return null===t.firstChild&&(t.firstChild=l),a&&(!s||null!=a.child||null===l.parent&&2!==a.type?s||(a.next=l):a.child=l),l}(t,e,a,i,r,o);return rn(s,!0),s}function Nr(t,e,n){yn(e,e[6]);try{var i=t.viewQuery;null!==i&&ho(1,i,n);var r=t.template;null!==r&&Lr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Or(t,e),t.staticViewQueries&&ho(2,t.viewQuery,n);var o=t.components;null!==o&&function(t,e){for(var n=0;n<e.length;n++)ao(t,e[n])}(e,o)}catch(a){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),a}finally{e[2]&=-5,Cn()}}function Mr(t,e,n,i){var r=e[2];if(256!=(256&r)){yn(e,e[6]);var o=sn();try{Qe(e),Xe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Lr(t,e,n,2,i);var a=3==(3&r);if(!o)if(a){var s=t.preOrderCheckHooks;null!==s&&On(e,s,null)}else{var u=t.preOrderHooks;null!==u&&Dn(e,u,0,null),Pn(e,0)}if(function(t){for(var e=_r(t);null!==e;e=br(e))if(e[2])for(var n=e[9],i=0;i<n.length;i++){var r=n[i],o=r[3];0==(1024&r[2])&&$e(o,1),r[2]|=1024}}(e),function(t){for(var e=_r(t);null!==e;e=br(e))for(var n=10;n<e.length;n++){var i=e[n],r=i[1];Ke(i)&&Mr(r,i,r.template,i[8])}}(e),null!==t.contentQueries&&Or(t,e),!o)if(a){var l=t.contentCheckHooks;null!==l&&On(e,l)}else{var c=t.contentHooks;null!==c&&Dn(e,c,1),Pn(e,1)}!function(t,e){try{var n=t.expandoInstructions;if(null!==n)for(var i=t.expandoStartIndex,r=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(Sn(0-a),r=i+=9+n[++o]):i+=a:(null!==a&&(fn(i,r),a(2,e[r])),r++)}}finally{Sn(-1)}}(t,e);var h=t.components;null!==h&&function(t,e){for(var n=0;n<e.length;n++)oo(t,e[n])}(e,h);var f=t.viewQuery;if(null!==f&&ho(2,f,i),!o)if(a){var d=t.viewCheckHooks;null!==d&&On(e,d)}else{var p=t.viewHooks;null!==p&&Dn(e,p,2),Pn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,$e(e[3],-1))}finally{Cn()}}}function Fr(t,e,n,i){var r=e[10],o=!sn(),a=Ge(e);try{o&&!a&&r.begin&&r.begin(),a&&Nr(t,e,i),Mr(t,e,n,i)}finally{o&&!a&&r.end&&r.end()}}function Lr(t,e,n,i,r){var o=xn();try{Sn(-1),2&i&&e.length>20&&Cr(t,e,0,sn()),n(i,r)}finally{Sn(o)}}function jr(t,e,n){if(Oe(e))for(var i=e.directiveEnd,r=e.directiveStart;r<i;r++){var o=t.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function Br(t,e,n){Ze()&&(function(t,e,n,i){var r=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Jn(n,e),ir(i,e);for(var a=n.initialInputs,s=r;s<o;s++){var u=t.data[s],l=Re(u);l&&eo(e,n,u);var c=ui(e,t,s,n);ir(c,e),null!==a&&no(0,s-r,c,u,0,a),l&&(qe(n.index,e)[8]=c)}}(t,e,n,Ue(n,e)),128==(128&n.flags)&&function(t,e,n){var i=n.directiveStart,r=n.directiveEnd,o=t.expandoInstructions,a=t.firstCreatePass,s=n.index-20,u=Xe.lFrame.currentDirectiveIndex;try{Sn(s);for(var l=i;l<r;l++){var c=t.data[l],h=e[l];dn(l),null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?Qr(c,h):a&&o.push(null)}}finally{Sn(-1),dn(u)}}(t,e,n))}function Vr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue,i=e.localNames;if(null!==i)for(var r=e.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(e,t):t[a];t[r++]=s}}function Ur(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Hr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Hr(t,e,n,i,r,o,a,s,u,l){var c=20+i,h=c+r,f=function(t,e){for(var n=[],i=0;i<e;i++)n.push(i<t?null:gr);return n}(c,h);return f[1]={type:t,id:e,blueprint:f,template:n,queries:null,viewQuery:s,node:null,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:l,incompleteFirstPass:!1}
1}function zr(t,e,n,i,r,o){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function qr(t,e,n){for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Wr(t,e,n,i,r,o,a,s){var u,l=Ue(e,n),c=e.inputs;!s&&null!=c&&(u=c[i])?(yo(t,n,u,i,r),De(e)&&function(t,e){var n=qe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=a?a(r,e.tagName||"",i):r,Le(o)?o.setProperty(l,i,r):jn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Gr(t,e,n,i){var r=!1;if(Ze()){var o=function(t,e,n){var i=t.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];dr(n,a.selectors,!1)&&(r||(r=[]),ii(Jn(n,e),t,a.type),Re(a)?(2&n.flags&&rr(n),Xr(t,n),r.unshift(a)):r.push(a))}return r}(t,e,n),a=null===i?null:{"":-1};if(null!==o){var s=0;r=!0,Jr(n,t.data.length,o.length);for(var u=0;u<o.length;u++){var l=o[u];l.providersResolver&&l.providersResolver(l)}$r(t,n,o.length);for(var c=!1,h=!1,f=0;f<o.length;f++){var d=o[f];n.mergedAttrs=Bn(n.mergedAttrs,d.hostAttrs),to(t,e,d),Zr(t.data.length-1,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!c&&(d.onChanges||d.onInit||d.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),c=!0),h||!d.onChanges&&!d.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),h=!0),Kr(t,d),s+=d.hostVars}!function(t,e){for(var n=e.directiveEnd,i=t.data,r=e.attrs,o=[],a=null,s=null,u=e.directiveStart;u<n;u++){var l=i[u],c=l.inputs,h=null===r||ur(e)?null:io(c,r);o.push(h),a=qr(c,u,a),s=qr(l.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=s}(t,n),Yr(t,e,s)}a&&function(t,e,n){if(e)for(var i=t.localNames=[],r=0;r<e.length;r+=2){var o=n[e[r+1]];if(null==o)throw new Error("Export of name '".concat(e[r+1],"' not found!"));i.push(e[r],o)}}(n,i,a)}return n.mergedAttrs=Bn(n.mergedAttrs,n.attrs),r}function Kr(t,e){var n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Yr(t,e,n){for(var i=0;i<n;i++)e.push(gr),t.blueprint.push(gr),t.data.push(null)}function Qr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $r(t,e,n){var i=20-e.index,r=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,r,n)}function Xr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Zr(t,e,n){if(n){if(e.exportAs)for(var i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Re(e)&&(n[""]=t)}}function Jr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function to(t,e,n){t.data.push(n);var i=n.factory||(n.factory=Ee(n.type)),r=new Mn(i,Re(n),null);t.blueprint.push(r),e.push(r)}function eo(t,e,n){var i=Ue(e,t),r=Ur(n),o=t[10],a=so(t,Pr(t,r,null,n.onPush?64:16,i,e,o,o.createRenderer(i,n)));t[e.index]=a}function no(t,e,n,i,r,o){var a=o[e];if(null!==a)for(var s=i.setInput,u=0;u<a.length;){var l=a[u++],c=a[u++],h=a[u++];null!==s?i.setInput(n,h,l,c):n[c]=h}}function io(t,e){for(var n=null,i=0;i<e.length;){var r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ro(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function oo(t,e){var n=qe(e,t);if(Ke(n)){var i=n[1];80&n[2]?Mr(i,n,i.template,n[8]):n[5]>0&&function t(e){for(var n=_r(e);null!==n;n=br(n))for(var i=10;i<n.length;i++){var r=n[i];if(1024&r[2]){var o=r[1];Mr(o,r,o.template,r[8])}else r[5]>0&&t(r)}var a=e[1].components;if(null!==a)for(var s=0;s<a.length;s++){var u=qe(a[s],e);Ke(u)&&u[5]>0&&t(u)}}(n)}}function ao(t,e){var n=qe(e,t),i=n[1];!function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Nr(i,n,n[8])}function so(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function uo(t){for(;t;){t[2]|=64;var e=yr(t);if(Ne(t)&&!e)return t;t=e}return null}function lo(t,e,n){var i=e[10];i.begin&&i.begin();try{Mr(t,e,t.template,n)}catch(r){throw go(e,r),r}finally{i.end&&i.end()}}function co(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],i=We(n),r=i[1];Fr(r,i,r.template,n)}}(t[8])}function ho(t,e,n){vn(0),e(t,n)}var fo=Promise.resolve(null);function po(t){return t[7]||(t[7]=[])}function mo(t){return t.cleanup||(t.cleanup=[])}function vo(t,e,n){return(null===t||Re(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function go(t,e){var n=t[9],i=n?n.get(vi,null):null;i&&i.handleError(e)}function yo(t,e,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],u=e[a],l=t.data[a];null!==l.setInput?l.setInput(u,r,i,s):u[s]=r}}function _o(t,e){var n=e[3];return-1===t.index?Te(n)?n:null:n}function bo(t,e){var n=_o(t,e);return n?Po(e[11],n[7]):null}function wo(t,e,n,i,r){if(null!=i){var o,a=!1;Te(i)?o=i:Ae(i)&&(a=!0,i=i[0]);var s=Be(i);0===t&&null!==n?null==r?Oo(e,n,s):To(e,n,s,r||null):1===t&&null!==n?To(e,n,s,r||null):2===t?function(t,e,n){var i=Po(t,e);i&&function(t,e,n,i){Le(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,s,a):3===t&&e.destroyNode(s),null!=o&&function(t,e,n,i,r){var o=n[7];o!==Be(n)&&wo(e,t,i,o,r);for(var a=10;a<n.length;a++){var s=n[a];Lo(s[1],s,t,e,i,o)}}(e,t,o,n,r)}}function ko(t,e,n,i){var r=bo(t.node,e);r&&Lo(t,e,e[11],n?1:2,r,i)}function Co(t,e){var n=t[9],i=n.indexOf(e);1024&e[2]&&$e(e[3],-1),n.splice(i,1)}function xo(t,e){if(!(t.length<=10)){var n=10+e,i=t[n];if(i){var r=i[17];null!==r&&r!==t&&Co(r,i),e>0&&(t[n-1][4]=i[4]);var o=ae(t,10+e);ko(i[1],i,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function So(t,e){if(!(256&e[2])){var n=e[11];Le(n)&&n.destroyNode&&Lo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Io(t[1],t);for(;e;){var n=null;if(Ae(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Ae(e)&&Io(e[1],e),e=Eo(e,t);null===e&&(e=t),Ae(e)&&Io(e[1],e),n=e&&e[4]}e=n}}(e)}}function Eo(t,e){var n;return Ae(t)&&(n=t[6])&&2===n.type?_o(n,t):t[3]===e?null:t[3]}function Io(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i<n.length;i+=2){var r=e[n[i]];if(!(r instanceof Mn)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(t,e),function(t,e){var n=t.cleanup;if(null!==n){for(var i=e[7],r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){var o=n[r+1],a="function"==typeof o?o(e):Be(e[o]),s=i[n[r+2]],u=n[r+3];"boolean"==typeof u?a.removeEventListener(n[r],s,u):u>=0?i[u]():i[-u].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&Le(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Te(e[3])){i!==e[3]&&Co(i,e);var r=e[19];null!==r&&r.detachView(t)}}}function Ao(t,e,n){for(var i=e.parent;
1null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?bo(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ue(e,n).parentNode;if(2&i.flags){var o=t.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==fe.ShadowDom&&a!==fe.Native)return null}return Ue(i,n)}function To(t,e,n,i){Le(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Oo(t,e,n){Le(t)?t.appendChild(e,n):e.appendChild(n)}function Do(t,e,n,i){null!==i?To(t,e,n,i):Oo(t,e,n)}function Po(t,e){return Le(t)?t.parentNode(e):e.parentNode}function Ro(t,e){if(2===t.type){var n=_o(t,e);return null===n?null:Mo(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Ue(t,e):null}function No(t,e,n,i){var r=Ao(t,i,e);if(null!=r){var o=e[11],a=Ro(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s<n.length;s++)Do(o,r,n[s],a);else Do(o,r,n,a)}}function Mo(t,e){var n=10+t+1;if(n<e.length){var i=e[n],r=i[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){var i=n.type;if(3===i)return Ue(n,e);if(0===i)return Mo(-1,e[n.index]);if(4===i||5===i){var r=n.child;if(null!==r)return t(e,r);var o=e[n.index];return Te(o)?Mo(-1,o):Be(o)}var a=e[16],s=a[6],u=yr(a),l=s.projection[n.projection];return null!=l?t(u,l):t(e,n.next)}return null}(i,r)}return e[7]}function Fo(t,e,n,i,r,o,a){for(;null!=n;){var s=i[n.index],u=n.type;a&&0===e&&(s&&ir(Be(s),i),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Fo(t,e,n.child,i,r,o,!1),wo(e,t,r,s,o)):1===u?jo(t,e,i,n,r,o):wo(e,t,r,s,o)),n=a?n.projectionNext:n.next}}function Lo(t,e,n,i,r,o){Fo(n,i,t.node.child,e,r,o,!1)}function jo(t,e,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)wo(e,t,r,s[u],o);else Fo(t,e,s,a[3],r,o,!0)}function Bo(t,e,n){Le(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Vo(t,e,n){Le(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}var Uo,Ho,zo,qo=function(){function t(e,n){_classCallCheck(this,t),this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return _createClass(t,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}So(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,n,i;e=this._lView[1],i=t,po(n=this._lView).push(i),e.firstCreatePass&&mo(e).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){uo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){lo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){un(!0);try{lo(t,e,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Lo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,i,r){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(Be(a)),Te(a))for(var s=10;s<a.length;s++){var u=a[s],l=u[1].firstChild;null!==l&&t(u[1],u,l,r)}var c=i.type;if(4===c||5===c)t(e,n,i.child,r);else if(1===c){var h=n[16],f=h[6].projection[i.projection];if(Array.isArray(f))r.push.apply(r,_toConsumableArray(f));else{var d=yr(h);t(d[1],d,f,r,!0)}}i=o?i.projectionNext:i.next}return r}(t[1],t,t[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),Wo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t))._view=t,i}return _createClass(n,[{key:"detectChanges",value:function(){co(this._view)}},{key:"checkNoChanges",value:function(){!function(t){un(!0);try{co(t)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qo);function Go(t,e,n){return Uo||(Uo=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(t)),new Uo(Ue(e,n))}function Ko(t,e,n,i){return Ho||(Ho=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._declarationView=t,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Pr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Nr(e,n,t),new qo(n)}}]),n}(t)),0===n.type?new Ho(i,n,Go(e,n,i)):null}function Yo(t,e,n,i){var r;zo||(zo=function(t){_inherits(i,t);var n=_createSuper(i);function i(t,e,r){var o;return _classCallCheck(this,i),(o=n.call(this))._lContainer=t,o._hostTNode=e,o._hostView=r,o}return _createClass(i,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(ne,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new zo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=e),i<o-10?(e[4]=n[r],oe(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[9];
1e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(a,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(i,n,this._lContainer,s),ko(i,n,!0,Mo(s,this._lContainer)),t.attachToViewContainerRef(this),oe(this._lContainer[8],s,t),t}},{key:"move",value:function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1);!function(t,e){var n=xo(t,e);n&&So(n[1],n)}(this._lContainer,e),ae(this._lContainer[8],e)}},{key:"detach",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=xo(this._lContainer,e);return n&&null!=ae(this._lContainer[8],e)?new qo(n):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Go(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new hi(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=ni(this._hostTNode,this._hostView),e=qn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=zn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return Un(t)&&null!=n?new hi(n,e):new hi(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),i}(t));var o=i[n.index];if(Te(o))r=o;else{var a;if(4===n.type)a=Be(o);else if(a=i[11].createComment(""),Ne(i)){var s=i[11],u=Ue(n,i);To(s,Po(s,u),a,function(t,e){return Le(t)?t.nextSibling(e):e.nextSibling}(s,u))}else No(i[1],i,a,n);i[n.index]=r=ro(o,i,a,n),so(i,r)}return new zo(r,n,i)}function Qo(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&De(t)){var i=qe(t.index,e);return new qo(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new qo(e[16],e):null}(nn(),Je(),t)}var $o=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return Xo()},t}(),Xo=Qo,Zo=new Ht("Set Injector scope."),Jo={},ta={},ea=[],na=void 0;function ia(){return void 0===na&&(na=new ee),na}function ra(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new oa(t,n,e||ia(),i)}var oa=function(){function t(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&re(n,(function(t){return r.processProvider(t,e,n)}
1)),re([e],(function(t){return r.processInjectorType(t,[],a)})),this.records.set(zt,ua(void 0,this));var s=this.records.get(Zo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Ct(e))}return _createClass(t,[{key:"destroy",value: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()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.Default;this.assertNotDestroyed();var i,r=Yt(this);try{if(!(n&ct.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Ht)&&mt(t);o=a&&this.injectableDefInScope(a)?ua(aa(t),Jo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&ct.Self?ia():this.parent).get(t,e=n&ct.Optional&&e===qt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ct(t)),r)throw s;return function(t,e,n,i){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=Ct(e);if(Array.isArray(e))r=e.map(Ct).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ct(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Wt,"\n "))}("\n"+t.message,r,"R3InjectorError",i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{Yt(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Ct(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=It(t)))return!1;var r=gt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=gt(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{re(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,r=e.providers;re(r,(function(t){return i.processProvider(t,n,r||ea)}))},c=0;c<u.length;c++)l(c)}this.injectorDefTypes.add(a),this.records.set(a,ua(r.factory,Jo));var h=r.providers;if(null!=h&&!s){var f=t;re(h,(function(t){return i.processProvider(t,f,h)}))}return void 0!==o&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,n){var i=ca(t=It(t))?t:It(t&&t.provide),r=function(t,e,n){return la(t)?ua(void 0,t.useValue):ua(sa(t,e,n),Jo)}(t,e,n);if(ca(t)||!0!==t.multi){var o=this.records.get(i);o&&void 0!==o.multi&&or()}else{var a=this.records.get(i);a?void 0===a.multi&&or():((a=ua(void 0,Jo,!0)).factory=function(){return te(a.multi)},this.records.set(i,a)),i=t,a.multi.push(t)}this.records.set(i,r)}},{key:"hydrate",value:function(t,e){var n;return e.value===ta?function(t){throw new Error("Cannot instantiate cyclic dependency! ".concat(t))}(Ct(t)):e.value===Jo&&(e.value=ta,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}},{key:"injectableDefInScope",value:function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();function aa(t){var e=mt(t),n=null!==e?e.factory:Ee(t);if(null!==n)return n;var i=gt(t);if(null!==i)return i.factory;if(t instanceof Ht)throw new Error("Token ".concat(Ct(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=se(e,"?");throw new Error("Can't resolve all parameters for ".concat(Ct(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[yt]||t[wt]||t[bt]&&t[bt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function sa(t,e,n){var i,r=void 0;if(ca(t)){var o=It(t);return Ee(o)||aa(o)}if(la(t))r=function(){return It(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,_toConsumableArray(te(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Xt(It(t.useExisting))};else{var a=It(t&&(t.useClass||t.provide));if(a||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: [".concat(e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Ct(t),"'")+i)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(a)||aa(a);r=function(){return _construct(a,_toConsumableArray(te(t.deps)))}}return r}function ua(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function la(t){return null!==t&&"object"==typeof t&&Gt in t}function ca(t){return"function"==typeof t}var ha=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=ra(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},fa=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?ha(t,e,""):ha(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=qt,t.NULL=new ee,t.\u0275prov=dt({token:t,providedIn:"any",factory:function(){return Xt(zt)}}),t.__NG_ELEMENT_ID__=-1,t}(),da=new Ht("AnalyzeForEntryComponents"),pa=new Map,ma=new Set;function va(t){return"string"==typeof t?t:t.text()}function ga(t,e,n){var i=n?t.styles:null,r=n?t.classes:null,o=0;if(null!==e)for(var a=0;a<e.length;a++){var s=e[a];"number"==typeof s?o=s:1==o?r=xt(r,s):2==o&&(i=xt(i,s+": "+e[++a]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}var ya=null;function _a(){if(!ya){var t=Nt.Symbol;if(t&&t.iterator)ya=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ya=i)}}return ya}function ba(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var wa=function(){function t(e){_classCallCheck(this,t),this.wrapped=e}return _createClass(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}]),t}();function ka(t){return!!Ca(t)&&(Array.isArray(t)||!(t instanceof Map)&&_a()in t)}function Ca(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function xa(t,e,n){return t[e]=n}function Sa(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ea(t,e,n,i){var r=Je();return Sa(r,cn(),e)&&(tn(),function(t,e,n,i,r,o){var a=Ue(t,e),s=e[11];if(null==i)Le(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var u=null==r?Wn(i):r(i,t.tagName||"",n);Le(s)?s.setAttribute(a,n,u,o):o?a.setAttributeNS(o,n,u):a.setAttribute(n,u)}}(En(),r,t,e,n,i)),Ea}function Ia(t,e,n,i){return Sa(t,cn(),n)?e+Wn(n)+i:gr}function Aa(t,e,n,i,r,o,a,s){var u=Je(),l=tn(),c=t+20,h=l.firstCreatePass?function(t,e,n,i,r,o,a,s,u){var l=e.consts,c=Rr(e,n[6],t,0,a||null,Ye(l,s));Gr(e,n,c,Ye(l,u)),Tn(e,c);var h=c.tViews=Hr(2,-1,i,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),f=zr(0,null,2,-1,null,null);return f.injectorIndex=c.injectorIndex,h.node=f,null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(t,l,u,e,n,i,r,o,a):l.data[c];rn(h,!1);var f=u[11].createComment("");No(l,u,f,h),ir(f,u),so(u,u[c]=ro(f,u,f,h)),Pe(h)&&Br(l,u,h),null!=a&&Vr(u,h,s)}function Ta(t){return ze(Xe.lFrame.contextLView,t)}function Oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.Default,n=Je();return null==n?Xt(t,e):ri(nn(),n,It(t),e)}function Da(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Ln(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===e)return n[r+1];r+=2}}return null}(nn(),t)}function Pa(){throw new Error("invalid")}function Ra(t,e,n){var i=Je();return Sa(i,cn(),e)&&Wr(tn(),En(),i,t,e,i[11],n,!1),Ra}function Na(t,e,n,i,r){var o=r?"class":"style";yo(t,n,e.inputs[o],o,i)}function Ma(t,e,n,i){var r=Je(),o=tn(),a=20+t,s=r[11],u=r[a]=Dr(e,s,Xe.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,i,r,o,a){var s=e.consts,u=Ye(s,o),l=Rr(e,n[6],t,3,r,u);return Gr(e,n,l,Ye(s,a)),null!==l.attrs&&ga(l,l.attrs,!1),null!==l.mergedAttrs&&ga(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(t,o,r,0,e,n,i):o.data[a];rn(l,!0);var c=l.mergedAttrs;null!==c&&Fn(s,u,c);var h=l.classes;null!==h&&Vo(s,u,h);var f=l.styles;null!==f&&Bo(s,u,f),No(o,r,u,l),0===Xe.lFrame.elementDepthCount&&ir(u,r),Xe.lFrame.elementDepthCount++,Pe(l)&&(Br(o,r,l),jr(o,l,r)),null!==i&&Vr(r,l)}function Fa(){var t=nn();on()?an():rn(t=t.parent,!1);var e=t;Xe.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(Tn(n,t),Oe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}
1(e)&&Na(n,e,Je(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Na(n,e,Je(),e.stylesWithoutHost,!1)}function La(t,e,n,i){Ma(t,e,n,i),Fa()}function ja(t,e,n){var i=Je(),r=tn(),o=t+20,a=r.firstCreatePass?function(t,e,n,i,r){var o=e.consts,a=Ye(o,i),s=Rr(e,n[6],t,4,"ng-container",a);return null!==a&&ga(s,a,!0),Gr(e,n,s,Ye(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,r,i,e,n):r.data[o];rn(a,!0);var s=i[o]=i[11].createComment("");No(r,i,s,a),ir(s,i),Pe(a)&&(Br(r,i,a),jr(r,a,i)),null!=n&&Vr(i,a)}function Ba(){var t=nn(),e=tn();on()?an():rn(t=t.parent,!1),e.firstCreatePass&&(Tn(e,t),Oe(t)&&e.queries.elementEnd(t))}function Va(t,e,n){ja(t,e,n),Ba()}function Ua(){return Je()}function Ha(t){return!!t&&"function"==typeof t.then}function za(t){return!!t&&"function"==typeof t.subscribe}function qa(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Je(),o=tn(),a=nn();return Ga(o,r,r[11],a,t,e,n,i),qa}function Wa(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=nn(),o=Je(),a=tn();return Ga(a,o,vo(pn(a.data),r,o),r,t,e,n,i),Wa}function Ga(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Pe(i),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),c=po(e),h=!0;if(3===i.type){var f=Ue(i,e),d=s?s(f):de,p=d.target||f,m=c.length,v=s?function(t){return s(Be(t[i.index])).target}:i.index;if(Le(n)){var g=null;if(!s&&u&&(g=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=e[7],u=r[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=Ya(i,e,o,!1);var y=n.listen(d.name||p,r,o);c.push(o,y),l&&l.push(r,v,m,m+1)}}else o=Ya(i,e,o,!0),p.addEventListener(r,o,a),c.push(o),l&&l.push(r,v,m,a)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var w=_.length;if(w)for(var k=0;k<w;k+=2){var C=e[_[k]][_[k+1]].subscribe(o),x=c.length;c.push(o,C),l&&l.push(r,i.index,x,-(x+1))}}}function Ka(t,e,n){try{return!1!==e(n)}catch(i){return go(t,i),!1}}function Ya(t,e,n,i){return function r(o){if(o===Function)return n;var a=2&t.flags?qe(t.index,e):e;0==(32&e[2])&&uo(a);for(var s=Ka(e,n,o),u=r.__ngNextListenerFn__;u;)s=Ka(e,u,o)&&s,u=u.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Qa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Xe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Xe.lFrame.contextLView))[8]}(t)}function $a(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r<e.length;r++){var o=e[r];if("*"!==o){if(null===i?dr(t,o,!0):pr(i,o))return r}else n=r}return n}function Xa(t){var e=Je()[16][6];if(!e.projection)for(var n=e.projection=se(t?t.length:1,null),i=n.slice(),r=e.child;null!==r;){var o=t?$a(r,t):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Za(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Je(),r=tn(),o=Rr(r,i[6],t,1,null,n||null);null===o.projection&&(o.projection=e),an(),function(t,e,n){jo(e[11],0,e,n,Ao(t,n,e),Ro(n.parent||e[6],e))}(r,i,o)}function Ja(t,e,n,i,r){var o=Je(),a=Ia(o,e,n,i);return a!==gr&&Wr(tn(),En(),o,t,a,o[11],r,!1),Ja}var ts=[];function es(t,e,n,i,r){for(var o=t[n+1],a=null===e,s=i?Sr(o):Ir(o),u=!1;0!==s&&(!1===u||a);){var l=t[s+1];ns(t[s],e)&&(u=!0,t[s+1]=i?Tr(l):Er(l)),s=i?Sr(l):Ir(l)}u&&(t[n+1]=i?Er(o):Tr(o))}function ns(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ce(t,e)>=0}var is={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rs(t){return t.substring(is.key,is.keyEnd)}function os(t,e){var n=is.textEnd;return n===e?-1:(e=is.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,is.key=e,n),as(t,e,n))}function as(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ss(t,e,n){return hs(t,e,n,!1),ss}function us(t,e){return hs(t,e,null,!0),us}function ls(t){fs(ue,cs,t,!0)}function cs(t,e){for(var n=function(t){return function(t){is.key=0,is.keyEnd=0,is.value=0,is.valueEnd=0,is.textEnd=t.length}(t),os(t,as(t,0,is.textEnd))}(e);n>=0;
1n=os(e,n))ue(t,rs(e),!0)}function hs(t,e,n,i){var r,o,a=Je(),s=tn(),u=hn(2);(s.firstUpdatePass&&ps(s,t,u,i),e!==gr&&Sa(a,u,e))&&(null==n&&(r=null===(o=Xe.lFrame)?null:o.currentSanitizer)&&(n=r),gs(s,s.data[xn()+20],a,a[11],t,a[u+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Ct(Ci(t)))),t}(e,n),i,u))}function fs(t,e,n,i){var r=tn(),o=hn(2);r.firstUpdatePass&&ps(r,null,o,i);var a=Je();if(n!==gr&&Sa(a,o,n)){var s=r.data[xn()+20];if(bs(s,i)&&!ds(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=xt(u,n||"")),Na(r,s,a,n,i)}else!function(t,e,n,i,r,o,a,s){r===gr&&(r=ts);for(var u=0,l=0,c=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==c||null!==h;){var f=u<r.length?r[u+1]:void 0,d=l<o.length?o[l+1]:void 0,p=null,m=void 0;c===h?(u+=2,l+=2,f!==d&&(p=h,m=d)):null===h||null!==c&&c<h?(u+=2,p=c):(l+=2,p=h,m=d),null!==p&&gs(t,e,n,i,p,m,a,s),c=u<r.length?r[u]:null,h=l<o.length?o[l]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(t,e,n){if(null==n||""===n)return ts;var i=[],r=Ci(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&t(i,a,r[a]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,o)}}function ds(t,e){return e>=t.expandoStartIndex}function ps(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[xn()+20],a=ds(t,n);bs(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=pn(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=vs(n=ms(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=ms(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Ir(i))return t[Sr(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Sr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=vs(s=ms(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o<r;o++)i=vs(i,t[o].hostAttrs,n);return vs(i,e.attrs,n)}(t,e,i)}return void 0!==o&&(i?e.residualClasses=o:e.residualStyles=o),n}(r,o,e,i),function(t,e,n,i,r,o){var a=o?e.classBindings:e.styleBindings,s=Sr(a),u=Ir(a);t[i]=n;var l,c=!1;if(Array.isArray(n)){var h=n;(null===(l=h[1])||ce(h,l)>0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Sr(t[s+1]);t[i+1]=xr(f,s),0!==f&&(t[f+1]=Ar(t[f+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=xr(s,0),0!==s&&(t[s+1]=Ar(t[s+1],i)),s=i;else t[i+1]=xr(u,0),0===s?s=i:t[u+1]=Ar(t[u+1],i),u=i;c&&(t[i+1]=Er(t[i+1])),es(t,l,i,!0),es(t,l,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ce(o,e)>=0&&(n[i+1]=Tr(n[i+1]))}(e,l,t,i,o),a=xr(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function ms(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=vs(i,(o=e[s]).hostAttrs,r),o!==t);)s++;return null!==t&&(n.directiveStylingLast=s),i}function vs(t,e,n){var i=n?1:2,r=-1;if(null!==e)for(var o=0;o<e.length;o++){var a=e[o];"number"==typeof a?r=a:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ue(t,a,!!n||e[++o]))}return void 0===t?null:t}function gs(t,e,n,i,r,o,a,s){if(3===e.type){var u=t.data,l=u[s+1];_s(1==(1&l)?ys(u,e,n,r,Ir(l),a):void 0)||(_s(o)||2==(2&l)&&(o=ys(u,null,n,r,s,a)),function(t,e,n,i,r){var o=Le(t);if(e)r?o?t.addClass(n,i):n.classList.add(i):o?t.removeClass(n,i):n.classList.remove(i);else{var a=-1==i.indexOf("-")?void 0:2;null==r?o?t.removeStyle(n,i,a):n.style.removeProperty(i):o?t.setStyle(n,i,r,a):n.style.setProperty(i,r)}}(i,a,Ve(xn(),n),r,o))}}function ys(t,e,n,i,r,o){for(var a=null===e,s=void 0;r>0;){var u=t[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===gr&&(f=h?ts:void 0);var d=h?le(f,i):c===i?f:void 0;if(l&&!_s(d)&&(d=le(u,i)),_s(d)&&(s=d,a))return s;var p=t[r+1];r=a?Sr(p):Ir(p)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=le(m,i))}return s}function _s(t){return void 0!==t}function bs(t,e){return 0!=(t.flags&(e?16:32))}function ws(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),i=tn(),r=t+20,o=i.firstCreatePass?Rr(i,n[6],t,3,null,null):i.data[r],a=n[r]=function(t,e){return Le(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);No(i,n,a,o),rn(o,!1)}function ks(t){return Cs("",t,""),ks}function Cs(t,e,n){var i=Je(),r=Ia(i,t,e,n);return r!==gr&&function(t,e,n){var i=Ve(e,t),r=t[11];Le(r)?r.setValue(i,n):i.textContent=n}(i,xn(),r),Cs}function xs(t,e,n){fs(ue,cs,Ia(Je(),t,e,n),!0)}function Ss(t,e,n){var i=Je();return Sa(i,cn(),e)&&Wr(tn(),En(),i,t,e,i[11],n,!0),Ss}function Es(t,e,n){var i=Je();if(Sa(i,cn(),e)){var r=tn(),o=En();Wr(r,o,i,t,e,vo(pn(r.data),o,i),n,!0)}return Es}function Is(t,e){var n=We(t)[1],i=n.data.length-1;Tn(n,{directiveStart:i,directiveEnd:i+1})}function As(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Re(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=Ts(t.inputs),o.declaredInputs=Ts(t.declaredInputs),o.outputs=Ts(t.outputs);var a=r.hostBindings;a&&Ps(t,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Os(t,s),u&&Ds(t,u),ft(t.inputs,r.inputs),ft(t.declaredInputs,r.declaredInputs),ft(t.outputs,r.outputs),Re(r)&&r.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=t.afterContentInit||r.afterContentInit,o.afterViewChecked=t.afterViewChecked||r.afterViewChecked,o.afterViewInit=t.afterViewInit||r.afterViewInit,o.doCheck=t.doCheck||r.doCheck,o.onDestroy=t.onDestroy||r.onDestroy,o.onInit=t.onInit||r.onInit}var c=r.features;if(c)for(var h=0;h<c.length;h++){var f=c[h];f&&f.ngInherit&&f(t),f===As&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,i=t.length-1;i>=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Bn(r.hostAttrs,n=Bn(n,r.hostAttrs))}}(i)}function Ts(t){return t===de?{}:t===pe?[]:t}function Os(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Ds(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ps(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Rs=function(){function t(e,n,i){_classCallCheck(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Ns(t){t.type.prototype.ngOnChanges&&(t.setInput=Ms,t.onChanges=function(){var t=Fs(this),e=t&&t.current;if(e){var n=t.previous;if(n===de)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function Ms(t,e,n,i){var r=Fs(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:de,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Rs(u&&u.currentValue,e,a===de),t[i]=e}function Fs(t){return t.__ngSimpleChanges__||null}function Ls(t,e,n,i,r){if(t=It(t),Array.isArray(t))for(var o=0;o<t.length;o++)Ls(t[o],e,n,i,r);else{var a=tn(),s=Je(),u=ca(t)?t:It(t.provide),l=sa(t),c=nn(),h=65535&c.providerIndexes,f=c.directiveStart,d=c.providerIndexes>>16;if(ca(t)||!t.multi){var p=new Mn(l,r,Oa),m=Vs(u,e,r?h:h+d,f);-1===m?(ii(Jn(c,s),a,u),js(a,t,e.length),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=Vs(u,e,h+d,f),g=Vs(u,e,h,h+d),y=v>=0&&n[v],_=g>=0&&n[g];if(r&&!_||!r&&!y){ii(Jn(c,s),a,u);var b=function(t,e,n,i,r){var o=new Mn(t,n,Oa);return o.multi=[],o.index=e,o.componentProviders=0,Bs(o,r,i&&!n),o}(r?Hs:Us,n.length,r,i,l);!r&&_&&(n[g].providerFactory=b),js(a,t,e.length,0),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(b),s.push(b)}else js(a,t,v>-1?v:g,Bs(n[r?g:v],l,!r&&i));!r&&i&&_&&n[g].componentProviders++}}}function js(t,e,n,i){var r=ca(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Bs(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Vs(t,e,n,i){for(var r=n;r<i;r++)if(e[r]===t)return r;return-1}function Us(t,e,n,i){return zs(this.multi,[])}function Hs(t,e,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=ui(n,n[1],this.providerFactory.index,i);zs(o,r=s.slice(0,a));for(var u=a;u<s.length;u++)r.push(s[u])}else zs(o,r=[]);return r}function zs(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function qs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(t,e,n){var i=tn();if(i.firstCreatePass){var r=Re(t);Ls(n,i.data,i.blueprint,r,!0),Ls(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}}Ns.ngInherit=!0;var Ws=function t(){_classCallCheck(this,t)},Gs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Ct(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Ks=function(){var t=function t(){_classCallCheck(this,t)};return t.NULL=new Gs,t}(),Ys=function(){var t=function t(e){_classCallCheck(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return Qs(t)},t}(),Qs=function(t){return Go(t,nn(),Je())},$s=function t(){_classCallCheck(this,t)},Xs=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),Zs=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return Js()},t}(),Js=function(){var t=Je(),e=qe(nn().index,t);
vendor: 11,792 bytes, line 1
1return function(t){var e=t[11];if(Le(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ae(e)?e:t)},tu=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=dt({token:t,providedIn:"root",factory:function(){return null}}),t}(),eu=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},nu=new eu("9.1.9"),iu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return ka(t)}},{key:"create",value:function(t){return new ou(t)}}]),t}(),ru=function(t,e){return e},ou=function(){function t(e){_classCallCheck(this,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=e||ru}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex<lu(n,i,r)?e:n,a=lu(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{r||(r=[]);var u=a-i,l=s-i;if(u!=l){for(var c=0;c<u;c++){var h=c<r.length?r[c]:r[c]=0,f=h+c;l<=f&&f<u&&(r[c]=h+1)}r[o.previousIndex]=l-u}}a!==s&&t(o,a,s)}}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!ka(t))throw new Error("Error trying to diff '".concat(Ct(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=t[s],r=this._trackByFn(s,i),null!==o&&ba(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),ba(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,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 i,r=t[_a()]();!(i=r.next()).done;)e(i.value)}(t,(function(t){r=e._trackByFn(n,t),null!==o&&ba(o.trackById,r)?(a&&(o=e._verifyReinsertion(o,t,r,n)),ba(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,r,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=t,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var t,e;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}}},{key:"_mismatch",value:function(t,e,n,i){var r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(ba(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ba(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new au(e,n),r,i),t}},{key:"_verifyReinsertion",value:function(t,e,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}},{key:"_truncate",value: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)}},{key:"_reinsertAfter",value:function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_moveAfter",value:function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_addAfter",value:function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,n){var i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new uu),this._linkedRecords.put(t),t.currentIndex=n,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value: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}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uu),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}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),t}(),au=function t(e,n){_classCallCheck(this,t),this.item=e,this.trackById=n,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},su=function(){function t(){_classCallCheck(this,t),this._head=null,this._tail=null}return _createClass(t,[{key:"add",value: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)}},{key:"get",value:function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&ba(n.trackById,t))return n;return null}},{key:"remove",value: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}(),uu=function(){function t(){_classCallCheck(this,t),this.map=new Map}return _createClass(t,[{key:"put",value:function(t){var e=t.trackById,n=this.map.get(e);n||(n=new su,this.map.set(e,n)),n.add(t)}},{key:"get",value:function(t,e){var n=this.map.get(t);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),t}();function lu(t,e,n){var i=t.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+e+r}var cu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return t instanceof Map||Ca(t)}},{key:"create",value:function(){return new hu}}]),t}(),hu=function(){function t(){_classCallCheck(this,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 _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||Ca(t)))throw new Error("Error trying to diff '".concat(Ct(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,i){if(n&&n.key===i)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var r=e._getOrCreateRecordForKey(i,t);n=e._insertBeforeOrAppend(n,r)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value: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}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new fu(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var t;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}}},{key:"_maybeAddToChanges",value:function(t,e){ba(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}}
1,{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(n){return e(t[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),t}(),fu=function t(e){_classCallCheck(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},du=function(){var t=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value: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 '".concat(t,"' of type '").concat((e=t).name||typeof e,"'"))}}],[{key:"create",value:function(e,n){if(null!=n){var i=n.factories.slice();e=e.concat(i)}return new t(e)}},{key:"extend",value: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 lt,new st]]}}}]),t}();return t.\u0275prov=dt({token:t,providedIn:"root",factory:function(){return new t([new iu])}}),t}(),pu=function(){var t=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value: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 '".concat(t,"'"))}}],[{key:"create",value:function(e,n){if(n){var i=n.factories.slice();e=e.concat(i)}return new t(e)}},{key:"extend",value: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 lt,new st]]}}}]),t}();return t.\u0275prov=dt({token:t,providedIn:"root",factory:function(){return new t([new cu])}}),t}(),mu=[new cu],vu=new du([new iu]),gu=new pu(mu),yu=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return _u(t,Ys)},t}(),_u=function(t,e){return Ko(t,e,nn(),Je())},bu=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return wu(t,Ys)},t}(),wu=function(t,e){return Yo(t,e,nn(),Je())},ku={},Cu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).ngModule=t,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(t){var e=Se(t);return new Eu(e,this.ngModule)}}]),n}(Ks);function xu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Su=new Ht("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Kn}}),Eu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(vr).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"create",value:function(t,e,n,i){var r,o,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var o=t.get(n,ku,r);return o!==ku||i===ku?o:e.get(n,i,r)}}}(t,i.injector):t,s=a.get($s,je),u=a.get(tu,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Le(t))return t.selectRootElement(e,n===fe.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(l,n,this.componentDef.encapsulation):Dr(c,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),p={components:[],scheduler:Kn,clean:fo,playerHandler:null,flags:0},m=Hr(0,-1,null,1,0,null,null,null,null,null),v=Pr(null,m,p,f,null,null,s,l,u,a);yn(v,null);try{var g=function(t,e,n,i,r,o){var a=n[1];n[20]=t;var s=Rr(a,null,0,3,null,null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(ga(s,u,!0),null!==t&&(Fn(r,t,u),null!==s.classes&&Vo(r,t,s.classes),null!==s.styles&&Bo(r,t,s.styles)));var l=i.createRenderer(t,e),c=Pr(n,Ur(e),null,e.onPush?64:16,n[20],s,i,l,void 0);
1return a.firstCreatePass&&(ii(Jn(s,n),a,e.type),Xr(a,s),Jr(s,n.length,1)),so(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Fn(l,h,["ng-version",nu.full]);else{var y=function(t){for(var e=[],n=[],i=1,r=2;i<t.length;){var o=t[i];if("string"==typeof o)2===r?""!==o&&e.push(o,t[++i]):8===r&&n.push(o);else{if(!hr(r))break;r=o}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),_=y.attrs,b=y.classes;_&&Fn(l,h,_),b&&b.length>0&&Vo(l,h,b.join(" "))}if(o=He(m,0),void 0!==e)for(var w=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var C=e[k];w.push(null!=C?Array.from(C):null)}r=function(t,e,n,i,r){var o=n[1],a=function(t,e,n){var i=nn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$r(t,i,1),to(t,e,n));var r=ui(e,t,e.length-1,i);ir(r,e);var o=Ue(i,e);return o&&ir(o,e),r}(o,n,e);i.components.push(a),t[8]=a,r&&r.forEach((function(t){return t(a,e)})),e.contentQueries&&e.contentQueries(1,a,n.length-1);var s=nn();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Sn(s.index-20);var u=n[1];Kr(u,e),Yr(u,n,e.hostVars),Qr(e,a)}return a}(g,this.componentDef,v,p,[Is]),Nr(m,v,null)}finally{Cn()}var x=new Iu(this.componentType,r,Go(Ys,o,v),v,o);return n&&!d||(m.node.child=o),x}},{key:"inputs",get:function(){return xu(this.componentDef.inputs)}},{key:"outputs",get:function(){return xu(this.componentDef.outputs)}}]),n}(Ws),Iu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s,u,l,c;return _classCallCheck(this,n),(s=e.call(this)).location=r,s._rootLView=o,s._tNode=a,s.destroyCbs=[],s.instance=i,s.hostView=s.changeDetectorRef=new Wo(o),u=o[1],l=o,null==(c=u.node)&&(u.node=c=zr(0,null,2,-1,null,null)),l[6]=c,s.componentType=t,s}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(t){this.destroyCbs&&this.destroyCbs.push(t)}},{key:"injector",get:function(){return new hi(this._tNode,this._rootLView)}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),Au=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Tu={};function Ou(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Du(e);if(n)return n;var i=e.split("-")[0];if(n=Du(i))return n;if("en"===i)return Au;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function Du(t){return t in Tu||(Tu[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),Tu[t]}var Pu=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();function Ru(t){var e;null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Nu=new Map,Mu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;_classCallCheck(this,n),(r=e.call(this))._parent=i,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new Cu(_assertThisInitialized(r));var o=Ie(t),a=t[Bt]||null;
1return a&&Ru(a),r._bootstrapComponents=Qn(o.bootstrap),r._r3Injector=ra(t,i,[{provide:ne,useValue:_assertThisInitialized(r)},{provide:Ks,useValue:r.componentFactoryResolver}],Ct(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return _createClass(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.Default;return t===fa||t===ne||t===zt?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ne),Fu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).moduleType=t,null!==Ie(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Ct(e)," vs ").concat(Ct(e.name)))})(n,Nu.get(n),e),Nu.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(t),i}return _createClass(n,[{key:"create",value:function(t){return new Mu(this.moduleType,t)}}]),n}(ie);function Lu(t,e,n){var i=ln()+t,r=Je();return r[i]===gr?xa(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function ju(t,e,n,i,r){return Uu(Je(),ln(),t,e,n,i,r)}function Bu(t,e){var n=t[e];return n===gr?void 0:n}function Vu(t,e,n,i,r,o){var a=e+n;return Sa(t,a,r)?xa(t,a+1,o?i.call(o,r):i(r)):Bu(t,a+1)}function Uu(t,e,n,i,r,o,a){var s=e+n;return function(t,e,n,i){var r=Sa(t,e,n);return Sa(t,e+1,i)||r}(t,s,r,o)?xa(t,s+2,a?i.call(a,r,o):i(r,o)):Bu(t,s+2)}function Hu(t,e){var n,i=tn(),r=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ee(n.type)),a=Qt(Oa),s=Xn(!1),u=o();return Xn(s),Qt(a),function(t,e,n,i){var r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,Je(),t,u),u}function zu(t,e,n){var i=Je(),r=ze(i,t);return Gu(i,Wu(i,t)?Vu(i,ln(),e,r.transform,n,r):r.transform(n))}function qu(t,e,n,i){var r=Je(),o=ze(r,t);return Gu(r,Wu(r,t)?Uu(r,ln(),e,o.transform,n,i,o):o.transform(n,i))}function Wu(t,e){return t[1].data[e+20].pure}function Gu(t,e){return wa.isWrapped(e)&&(e=wa.unwrap(e),t[Xe.lFrame.bindingIndex]=gr),e}var Ku=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(t=e.call(this)).__isAsync=i,t}return _createClass(n,[{key:"emit",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,i){var r,o=function(t){return null},a=function(){return null};t&&"object"==typeof t?(r=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(r=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),i&&(a=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,r,o,a);return t instanceof f&&t.add(s),s}}]),n}(A);function Yu(){return this._results[_a()]()}var Qu=function(){function t(){_classCallCheck(this,t),this.dirty=!0,this._results=[],this.changes=new Ku,this.length=0;var e=_a(),n=t.prototype;n[e]||(n[e]=Yu)}return _createClass(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}}
1,{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i<e.length;i++){var r=e[i];Array.isArray(r)?(n===e&&(n=e.slice(0,i)),t(r,n)):n!==e&&n.push(r)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),$u=function(){function t(e){_classCallCheck(this,t),this.queryList=e,this.matches=null}return _createClass(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),Xu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new t(r)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var e=0;e<this.queries.length;e++)null!==pl(t,e).matches&&this.queries[e].setDirty()}}]),t}(),Zu=function t(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.predicate=e,this.descendants=n,this.isStatic=i,this.read=r},Ju=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}},{key:"elementEnd",value:function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}},{key:"embeddedTView",value:function(e){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(e,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new t(n):null}},{key:"template",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"track",value:function(t){this.queries.push(t)}},{key:"length",get:function(){return this.queries.length}}]),t}(),tl=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i<n.length;i++)this.matchTNodeWithReadOption(t,e,el(e,n[i]));else{var r=this.metadata.predicate;r===yu?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,si(e,t,r,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(t,e,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ys||i===bu||i===yu&&0===e.type)this.addMatch(e.index,-2);else{var r=si(e,t,i,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,n)}}},{key:"addMatch",value:function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}]),t}();function el(t,e){var n=t.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function nl(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Go(Ys,t,e):0===t.type?Ko(yu,Ys,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ys?Go(Ys,e,t):n===yu?Ko(yu,Ys,e,t):n===bu?Yo(bu,Ys,e,t):void 0}(t,e,i):ui(t,t[1],n,e)}function il(t,e,n,i){var r=e[19].queries[i];if(null===r.matches){for(var o=t.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var l=a[u];s.push(l<0?null:nl(e,o[l],a[u+1],n.metadata.read))}r.matches=s}return r.matches}function rl(t){var e=Je(),n=tn(),i=mn();vn(i+1);var r=pl(n,i);if(t.dirty&&Ge(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{var o=r.crossesNgTemplate?function t(e,n,i,r){var o=e.queries.getByIndex(i),a=o.matches;if(null!==a)for(var s=il(e,n,o,i),u=0;u<a.length;u+=2){var l=a[u];if(l>0)r.push(s[u/2]);else{for(var c=a[u+1],h=n[-l],f=10;f<h.length;f++){var d=h[f];
1d[17]===d[3]&&t(d[1],d,c,r)}if(null!==h[9])for(var p=h[9],m=0;m<p.length;m++){var v=p[m];t(v[1],v,c,r)}}}return r}(n,e,i,[]):il(n,e,r,i);t.reset(o),t.notifyOnChanges()}return!0}return!1}function ol(t,e,n){sl(tn(),Je(),t,e,n,!0)}function al(t,e,n){sl(tn(),Je(),t,e,n,!1)}function sl(t,e,n,i,r,o){t.firstCreatePass&&(dl(t,new Zu(n,i,o,r),-1),o&&(t.staticViewQueries=!0)),fl(t,e)}function ul(t,e,n,i){cl(tn(),Je(),e,n,i,!1,nn(),t)}function ll(t,e,n,i){cl(tn(),Je(),e,n,i,!0,nn(),t)}function cl(t,e,n,i,r,o,a,s){t.firstCreatePass&&(dl(t,new Zu(n,i,o,r),a.index),function(t,e){var n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,s),o&&(t.staticContentQueries=!0)),fl(t,e)}function hl(){return t=Je(),e=mn(),t[19].queries[e].queryList;var t,e}function fl(t,e){var n=new Qu;!function(t,e,n,i){var r=po(e);r.push(n),t.firstCreatePass&&mo(t).push(i,r.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new Xu),e[19].queries.push(new $u(n))}function dl(t,e,n){null===t.queries&&(t.queries=new Ju),t.queries.track(new tl(e,n))}function pl(t,e){return t.queries.getByIndex(e)}var ml=new Ht("Application Initializer"),vl=function(){var t=function(){function t(e){var n=this;_classCallCheck(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return _createClass(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();Ha(r)&&e.push(r)}Promise.all(e).then((function(){n()})).catch((function(e){t.reject(e)})),0===e.length&&n(),this.initialized=!0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(ml,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}(),gl=new Ht("AppId"),yl={provide:gl,useFactory:function(){return"".concat(_l()).concat(_l()).concat(_l())},deps:[]};function _l(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var bl=new Ht("Platform Initializer"),wl=new Ht("Platform ID"),kl=new Ht("appBootstrapListener"),Cl=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}(),xl=new Ht("LocaleId"),Sl=new Ht("DefaultCurrencyCode"),El=function t(e,n){_classCallCheck(this,t),this.ngModuleFactory=e,this.componentFactories=n},Il=function(t){return new Fu(t)},Al=Il,Tl=function(t){return Promise.resolve(Il(t))},Ol=function(t){var e=Il(t),n=Qn(Ie(t).declarations).reduce((function(t,e){var n=Se(e);return n&&t.push(new Eu(n)),t}),[]);return new El(e,n)},Dl=Ol,Pl=function(t){return Promise.resolve(Ol(t))},Rl=function(){var t=function(){function t(){_classCallCheck(this,t),this.compileModuleSync=Al,this.compileModuleAsync=Tl,this.compileModuleAndAllComponentsSync=Dl,this.compileModuleAndAllComponentsAsync=Pl}return _createClass(t,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}(),Nl=new Ht("compilerOptions"),Ml=Promise.resolve(0);function Fl(t){"undefined"==typeof Zone?Ml.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Ll=function(){function t(e){var n,i,r=e.enableLongStackTrace,o=void 0!==r&&r,a=e.shouldCoalesceEventChangeDetection,s=void 0!==a&&a;if(_classCallCheck(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ku(!1),this.onMicrotaskEmpty=new Ku(!1),this.onStable=new Ku(!1),this.onError=new Ku(!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)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,i=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,(function(){t.lastRequestAnimationFrameId=-1,Ul(t),Vl(t)})),Ul(t))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:i},onInvokeTask:function(t,e,r,o,a,s){try{return Hl(n),t.invokeTask(r,o,a,s)}finally{i&&"eventTask"===o.type&&i(),zl(n)}}
vendor: 4,109 bytes, line 1
1,onInvoke:function(t,e,i,r,o,a,s){try{return Hl(n),t.invoke(i,r,o,a,s)}finally{zl(n)}},onHasTask:function(t,e,i,r){t.hasTask(i,r),e===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Ul(n),Vl(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(t,e,i,r){return t.handleError(i,r),n.runOutsideAngular((function(){return n.onError.emit(r)})),!1}})}return _createClass(t,[{key:"run",value:function(t,e,n){return this._inner.run(t,e,n)}},{key:"runTask",value:function(t,e,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,Bl,jl,jl);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(t,e,n){return this._inner.runGuarded(t,e,n)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),t}();function jl(){}var Bl={};function Vl(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 Ul(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Hl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zl(t){t._nesting--,Vl(t)}var ql,Wl=function(){function t(){_classCallCheck(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ku,this.onMicrotaskEmpty=new Ku,this.onStable=new Ku,this.onError=new Ku}return _createClass(t,[{key:"run",value:function(t,e,n){return t.apply(e,n)}},{key:"runGuarded",value:function(t,e,n){return t.apply(e,n)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,n,i){return t.apply(e,n)}}]),t}(),Gl=function(){var t=function(){function t(e){var n=this;_classCallCheck(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(t,[{key:"_watchAngularEvents",value: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(){Ll.assertNotInAngularZone(),Fl((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var t=this;if(this.isStable())Fl((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}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]}},{key:"addCallback",value:function(t,e,n){var i=this,r=-1;e&&e>0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}
1),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}(),Kl=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,Yl.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Yl.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}(),Yl=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Ql=function(t,e,n){var i=t.get(Nl,[]).concat(e),r=new Fu(n);if(0===pa.size)return Promise.resolve(r);var o,a,s=(o=i.map((function(t){return t.providers})),a=[],o.forEach((function(t){return t&&a.push.apply(a,_toConsumableArray(t))})),a);if(0===s.length)return Promise.resolve(r);var u=function(){var t=Nt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),l=fa.create({providers:s}).get(u.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=i.then(va))}return e}return pa.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),r.push(i(e).then((function(i){a[s+n]=i,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(r).then((function(){return function(t){ma.delete(t)}(n)}));e.push(u)})),pa=new Map,Promise.all(e).then((function(){}))}().then((function(){return r}))},$l=new Ht("AllowMultipleToken"),Xl=function t(e,n){_classCallCheck(this,t),this.name=e,this.token=n};function Zl(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new Ht(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Jl();if(!o||o.injector.get($l,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:Zo,useValue:"platform"});!function(t){if(ql&&!ql.destroyed&&!ql.injector.get($l,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ql=t.get(tc);var e=t.get(bl,null);e&&e.forEach((function(t){return t()}))}(fa.create({providers:a,name:i}))}return function(t){var e=Jl();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}(r)}}function Jl(){return ql&&!ql.destroyed?ql:null}var tc=function(){var t=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,o=(n=e?e.ngZone:void 0,i=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new Wl:("zone.js"===n?void 0:n)||new Ll({enableLongStackTrace:Ai(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Ll,useValue:o}];return o.run((function(){var e=fa.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(vi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return rc(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){i.handleError(t)}})}
1)),function(t,e,i){try{var o=((a=n.injector.get(vl)).runInitializers(),a.donePromise.then((function(){return Ru(n.injector.get(xl,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return Ha(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}(i,o)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=ec({},n);return Ql(this.injector,i,t).then((function(t){return e.bootstrapModuleFactory(t,i)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(ic);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Ct(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(fa))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}();function ec(t,e){return Array.isArray(e)?e.reduce(ec,t):Object.assign(Object.assign({},t),e)}var nc,ic=((nc=function(){function t(e,n,i,r,o,a){var s=this;_classCallCheck(this,t),this._zone=e,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ai(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new k((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),l=new k((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){Ll.assertNotInAngularZone(),Fl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Ll.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=Q(u,l.pipe(it()))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var n,i=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 Ws?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ne),o=n.create(fa.NULL,[],e||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(Gl,null);return a&&o.injector.get(Kl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Ai()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=_createForOfIteratorHelper(this._views);try{for(r.s();!(i=r.n()).done;)i.value.checkNoChanges()}catch(o){r.e(o)}finally{r.f()}}}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}
1))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;rc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(kl,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),rc(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}()).\u0275fac=function(t){return new(t||nc)(Xt(Ll),Xt(Cl),Xt(fa),Xt(vi),Xt(Ks),Xt(vl))},nc.\u0275prov=dt({token:nc,factory:nc.\u0275fac}),nc);function rc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var oc=function t(){_classCallCheck(this,t)},ac=function t(){_classCallCheck(this,t)},sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uc=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._compiler=e,this._config=n||sc}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=_slicedToArray(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("zn8P")(r).then((function(t){return t[o]})).then((function(t){return lc(t,r,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+o]})).then((function(t){return lc(t,i,r)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(Rl),Xt(ac,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t}();function lc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var cc=Zl(null,"core",[{provide:wl,useValue:"unknown"},{provide:tc,deps:[fa]},{provide:Kl,deps:[]},{provide:Cl,deps:[]}]),hc=[{provide:ic,useClass:ic,deps:[Ll,Cl,fa,vi,Ks,vl]},{provide:Su,deps:[Ll],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:vl,useClass:vl,deps:[[new st,ml]]},{provide:Rl,useClass:Rl,deps:[]},yl,{provide:du,useFactory:function(){return vu},deps:[]},{provide:pu,useFactory:function(){return gu},deps:[]},{provide:xl,useFactory:function(t){return Ru(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new at(xl),new st,new lt]]},{provide:Sl,useValue:"USD"}],fc=function(){var t=function t(e){_classCallCheck(this,t)};return t.\u0275mod=we({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Xt(ic))},providers:hc}),t}(),dc=n("vjMV"),pc=n("xy2J"),mc={production:!0,stripeConfig:{key:"pk_live_sGZRwXtEG7jka7HRP6LG3fnq",quarterly:"price_1HpSQYEjLLwmUDxAvADhezCy",yearly:"price_1HpSQYEjLLwmUDxARJrO77Tp"},firebaseConfig:dc.webapp,extensionId:"mfkiheojdlkamhimblpljacaeoncjock",emulator:!1,webappUrl:pc.webappUrl,blacklist:pc.blacklist,debugRemoteConfig:pc.debugRemoteConfig},vc=null;function gc(){return vc}var yc,_c=new Ht("DocumentToken"),bc=((yc=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||yc)},yc.\u0275prov=dt({factory:wc,token:yc,providedIn:"platform"}),yc);function wc(){return Xt(xc)}var kc,Cc=new Ht("Location Initialized"),xc=((kc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._doc=t,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=gc().getLocation(),this._history=gc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return gc().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){Sc()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Sc()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(bc)).\u0275fac=function(t){return new(t||kc)(Xt(_c))},kc.\u0275prov=dt({factory:Ec,token:kc,providedIn:"platform"}),kc);function Sc(){return!!window.history.pushState}function Ec(){return new xc(Xt(_c))}function Ic(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}function Ac(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Tc(t){return t&&"?"!==t[0]?"?"+t:t}var Oc,Dc=((Oc=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Oc)},Oc.\u0275prov=dt({factory:Pc,token:Oc,providedIn:"root"}),Oc);function Pc(t){var e=Xt(_c).location;return new Lc(Xt(bc),e&&e.origin||"")}var Rc,Nc,Mc,Fc=new Ht("appBaseHref"),Lc=((Mc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;if(_classCallCheck(this,n),(r=e.call(this))._platformLocation=t,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return Ic(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+Tc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Tc(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Tc(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Dc)).\u0275fac=function(t){return new(t||Mc)(Xt(bc),Xt(Fc,8))},Mc.\u0275prov=dt({token:Mc,factory:Mc.\u0275fac}),Mc),jc=((Nc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=Ic(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Tc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Tc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Dc)).\u0275fac=function(t){return new(t||Nc)(Xt(bc),Xt(Fc,8))},Nc.\u0275prov=dt({token:Nc,factory:Nc.\u0275fac}),Nc),Bc=((Rc=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._subject=new Ku,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Ac(Uc(r)),this._platformStrategy.onPopState((function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})}))}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+Tc(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Uc(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tc(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tc(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}()).\u0275fac=function(t){return new(t||Rc)(Xt(Dc),Xt(bc))},Rc.normalizeQueryParams=Tc,Rc.joinWithSlash=Ic,Rc.stripTrailingSlash=Ac,Rc.\u0275prov=dt({factory:Vc,token:Rc,providedIn:"root"}),Rc);function Vc(){return new Bc(Xt(Dc),Xt(bc))}function Uc(t){return t.replace(/\/index.html$/,"")}var Hc={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},zc=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scie
vendor: 4,959 bytes, line 1
1ntific]="Scientific",t}(),qc=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Wc=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),Gc=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),Kc=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),Yc=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function Qc(t,e){return eh(Ou(t)[Pu.DateFormat],e)}function $c(t,e){return eh(Ou(t)[Pu.TimeFormat],e)}function Xc(t,e){return eh(Ou(t)[Pu.DateTimeFormat],e)}function Zc(t,e){var n=Ou(t),i=n[Pu.NumberSymbols][e];if(void 0===i){if(e===Yc.CurrencyDecimal)return n[Pu.NumberSymbols][Yc.Decimal];if(e===Yc.CurrencyGroup)return n[Pu.NumberSymbols][Yc.Group]}return i}function Jc(t,e){return Ou(t)[Pu.NumberFormats][e]}function th(t){if(!t[Pu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[Pu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function eh(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 nh(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var ih=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,rh={},oh=/((?:[^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]*)/,ah=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),sh=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),uh=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function lh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function ch(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=n));for(var a=String(t);a.length<e;)a="0"+a;return i&&(a=a.substr(a.length-e)),o+a}function hh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(t,e){switch(t){case sh.FullYear:return e.getFullYear();case sh.Month:return e.getMonth();case sh.Date:return e.getDate();case sh.Hours:return e.getHours();case sh.Minutes:return e.getMinutes();case sh.Seconds:return e.getSeconds();case sh.FractionalSeconds:return e.getMilliseconds();case sh.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((n>0||u>-n)&&(u+=n),t===sh.Hours)0===u&&-12===n&&(u=12);else if(t===sh.FractionalSeconds)return s=e,ch(u,3).substr(0,s);var l=Zc(a,Yc.MinusSign);return ch(u,e,l,i,r)}}function fh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wc.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(t,e,n,i,r,o){switch(n){case uh.Months:return function(t,e,n){var i=Ou(t),r=eh([i[Pu.MonthsFormat],i[Pu.MonthsStandalone]],e);return eh(r,n)}(e,r,i)[t.getMonth()];case uh.Days:return function(t,e,n){var i=Ou(t),r=eh([i[Pu.DaysFormat],i[Pu.DaysStandalone]],e);return eh(r,n)}(e,r,i)[t.getDay()];case uh.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=Ou(t);return th(e),(e[Pu.ExtraData][2]||[]).map((function(t){return"string"==typeof t?nh(t):[nh(t[0]),nh(t[1])]}))}(e),c=function(t,e,n){var i=Ou(t);th(i);var r=eh([i[Pu.ExtraData][0],i[Pu.ExtraData][1]],e)||[];return eh(r,n)||[]}
1(e,r,i);if(l.forEach((function(t,e){if(Array.isArray(t)){var n=t[0],i=n.hours,r=n.minutes,o=t[1],l=o.hours,h=o.minutes;a>=i&&s>=r&&(a<l||a===l&&s<h)&&(u=c[e])}else{var f=t.hours,d=t.minutes;f===a&&d===s&&(u=c[e])}})),u)return u}return function(t,e,n){var i=Ou(t),r=eh([i[Pu.DayPeriodsFormat],i[Pu.DayPeriodsStandalone]],e);return eh(r,n)}(e,r,i)[a<12?0:1];case uh.Eras:return function(t,e){return eh(Ou(t)[Pu.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(r,o,t,e,n,i)}}function dh(t){return function(e,n,i){var r=-1*i,o=Zc(n,Yc.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ah.Short:return(r>=0?"+":"")+ch(a,2,o)+ch(Math.abs(r%60),2,o);case ah.ShortGMT:return"GMT"+(r>=0?"+":"")+ch(a,1,o);case ah.Long:return"GMT"+(r>=0?"+":"")+ch(a,2,o)+":"+ch(Math.abs(r%60),2,o);case ah.Extended:return 0===i?"Z":(r>=0?"+":"")+ch(a,2,o)+":"+ch(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function ph(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+u)/7)}else{var c=(o=n.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),h=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-c.getTime();r=1+Math.round(h/6048e5)}return ch(r,t,Zc(i,Yc.MinusSign))}}var mh={};function vh(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function gh(t){return t instanceof Date&&!isNaN(t.valueOf())}var yh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function _h(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var l=function(t){var e,n,i,r,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;"0"===a.charAt(i);i++);if(i===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(a.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var c=e.minInt,h=e.minFrac,f=e.maxFrac;if(o){var d=o.match(yh);if(null===d)throw new Error("".concat(o," is not a valid digit info"));var p=d[1],m=d[3],v=d[5];null!=p&&(c=wh(p)),null!=m&&(h=wh(m)),null!=v?f=wh(v):null!=m&&h>f&&(f=h)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(e,r),n),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(var u=a;u<i.length;u++)i[u]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,a=o+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r<Math.max(0,o);r++)i.push(0);var h=0!==o,f=e+t.integerLen,d=i.reduceRight((function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,h&&(0===i[n]&&n>=f?i.pop():h=!1),e>=10?1:0}),0);d&&(i.unshift(d),t.integerLen++)}(l,h,f);var g=l.digits,y=l.integerLen,_=l.exponent,b=[];for(u=g.every((function(t){return!t}));y<c;y++)g.unshift(0);for(;y<0;y++)g.unshift(0);y>0?b=g.splice(y,g.length):(b=g,g=[0]);var w=[];for(g.length>=e.lgSize&&w.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)w.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&w.unshift(g.join("")),s=w.join(Zc(n,i)),b.length&&(s+=Zc(n,r)+b.join("")),_&&(s+=Zc(n,Yc.Exponential)+"+"+_)}else s=Zc(n,Yc.Infinity);return s=t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function bh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l<u.length;l++){var c=u.charAt(l);"0"===c?n.minFrac=n.maxFrac=l+1:"#"===c?n.maxFrac=l+1:n.posSuf+=c}var h=s.split(",");if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,o){var f=r.length-n.posPre.length-n.posSuf.length,d=o.indexOf("#");n.negPre=o.substr(0,d).replace(/'/g,""),n.negSuf=o.substr(d+f).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function wh(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var kh=function t(){_classCallCheck(this,t)};function Ch(t,e,n,i){var r="=".concat(t);if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(t,'"'))}var xh,Sh=((xh=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).locale=t,i}return _createClass(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return Ou(t)[Pu.PluralCase]}(e||this.locale)(t)){case qc.Zero:return"zero";case qc.One:return"one";case qc.Two:return"two";case qc.Few:return"few";case qc.Many:return"many";default:return"other"}}}]),n}(kh)).\u0275fac=function(t){return new(t||xh)(Xt(xl))},xh.\u0275prov=dt({token:xh,factory:xh.\u0275fac}),xh);function Eh(t,e){e=encodeURIComponent(e);var n,i=_createForOfIteratorHelper(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===e)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var Ih,Ah,Th,Oh,Dh=((Ah=function(){function t(e,n,i,r){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Ct(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ka(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}()).\u0275fac=function(t){return new(t||Ah)(Oa(du),Oa(pu),Oa(Ys),Oa(Zs))},Ah.\u0275dir=Ce({type:Ah,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Ah),Ph=((Ih=function(){function t(e){_classCallCheck(this,t),this._viewContainerRef
1=e,this._componentRef=null,this._moduleRef=null}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ne);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(Ks)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),t}()).\u0275fac=function(t){return new(t||Ih)(Oa(bu))},Ih.\u0275dir=Ce({type:Ih,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Ns]}),Ih),Rh=function(){function t(e,n,i,r){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Nh=((Th=function(){function t(e,n,i){_classCallCheck(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value: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(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((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)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Rh(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new Mh(t,o);n.push(a)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var u=new Mh(t,s);n.push(u)}}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}},{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(t){Ai()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}()).\u0275fac=function(t){return new(t||Th)(Oa(bu),Oa(yu),Oa(du))},Th.\u0275dir=Ce({type:Th,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Th),Mh=function t(e,n){_classCallCheck(this,t),this.record=e,this.view=n},Fh=((Oh=function(){function t(e,n){_classCallCheck(this,t),this._viewContainer=e,this._context=new Lh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(t,[{key:"_updateView",value:function(){this._context.$implicit?this._thenView
1Ref||(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)))}},{key:"ngIf",set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}},{key:"ngIfThen",set:function(t){jh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(t){jh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}()).\u0275fac=function(t){return new(t||Oh)(Oa(bu),Oa(yu))},Oh.\u0275dir=Ce({type:Oh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Oh),Lh=function t(){_classCallCheck(this,t),this.$implicit=null,this.ngIf=null};function jh(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat(Ct(e),"'."))}var Bh,Vh,Uh,Hh,zh,qh,Wh,Gh=function(){function t(e,n){_classCallCheck(this,t),this._viewContainerRef=e,this._templateRef=n,this._created=!1}return _createClass(t,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}]),t}(),Kh=((Wh=function(){function t(){_classCallCheck(this,t),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return _createClass(t,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}},{key:"_matchCase",value:function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}},{key:"_updateDefaultCases",value:function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}},{key:"ngSwitch",set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}}]),t}()).\u0275fac=function(t){return new(t||Wh)},Wh.\u0275dir=Ce({type:Wh,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Wh),Yh=((qh=function(){function t(e,n,i){_classCallCheck(this,t),this.ngSwitch=i,i._addCase(),this._view=new Gh(e,n)}return _createClass(t,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),t}()).\u0275fac=function(t){return new(t||qh)(Oa(bu),Oa(yu),Oa(Kh,1))},qh.\u0275dir=Ce({type:qh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),qh),Qh=((zh=function t(e,n,i){_classCallCheck(this,t),i._addDefault(new Gh(e,n))}).\u0275fac=function(t){return new(t||zh)(Oa(bu),Oa(yu),Oa(Kh,1))},zh.\u0275dir=Ce({type:zh,selectors:[["","ngSwitchDefault",""]]}),zh),$h=((Hh=function(){function t(e){_classCallCheck(this,t),this._localization=e,this._caseViews={}}return _createClass(t,[{key:"addCase",value:function(t,e){this._caseViews[t]=e}},{key:"_updateView",value:function(){this._clearViews();var t=Object.keys(this._caseViews),e=Ch(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(t){t&&(this._activeView=t,this._activeView.create())}},{key:"ngPlural",set:function(t){this._switchValue=t,this._updateView()}}]),t}()).\u0275fac=function(t){return new(t||Hh)(Oa(kh))},Hh.\u0275dir=Ce({type:Hh,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),Hh),Xh=((Uh=function t(e,n,i,r){_classCallCheck(this,t),this.value=e;var o=!isNaN(Number(e));r.addCase(o?"=".concat(e):e,new Gh(i,n))}).\u0275fac=function(t){return new(t||Uh)(Da("ngPluralCase"),Oa(yu),Oa(bu),Oa($h,1))},Uh.\u0275dir=Ce({type:Uh,selectors:[["","ngPluralCase",""]]}),Uh),Zh=((Vh=function(){function t(e,n,i){_classCallCheck(this,t),this._ngEl=e,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}},{key:"_setStyle",value:function(t,e){var n=_slicedToArray(t.split("."),2),i=n[0],r=n[1];null!=(e=null!=e&&r?"".concat(e).concat(r):e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(t){var e=this;t.forEachRemovedItem((function(t){return e._setStyle(t.key,null)})),t.forEachAddedItem((function(t){return e._setStyle(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._setStyle(t.key,t.currentValue)}))}},{key:"ngStyle",set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}}]),t}()).\u0275fac=function(t){return new(t||Vh)(Oa(Ys),Oa(pu),Oa(Zs))},Vh.\u0275dir=Ce({type:Vh,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),Vh),Jh=((Bh=function(){function t(e){_classCallCheck(this,t),this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(this._shouldRecreateView(t)){var e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}},{key:"_hasContextShapeChanged",value:function(t){var e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){var i,r=_createForOfIteratorHelper(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1===e.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var i=n[e];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),t}()).\u0275fac=function(t){return new(t||Bh)(Oa(bu))},Bh.\u0275dir=Ce({type:Bh,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ns]}),Bh);function tf(t,e){return Error("InvalidPipeArgument: '".concat(e,"' for pipe '").concat(Ct(t),"'"))}var ef,nf,rf,of,af,sf,uf,lf,cf,hf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"createSubscription",value:function(t,e){return t.subscribe({next:e,error:function(t){throw t}})}},{key:"dispose",value:function(t){t.unsubscribe()}},{key:"onDestroy",value:function(t){t.unsubscribe()}}]),t}(),ff=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"createSubscription",value:function(t,e){return t.then(e,(function(t){throw t}))}},{key:"dispose",value:function(t){}},{key:"onDestroy",value:function(t){}}]),t}()),df=new hf,pf=((nf=function(){function t(e){_classCallCheck(this,t),this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):ba(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,wa.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}},{key:"_subscribe",value: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)}))}},{key:"_selectStrategy",value:function(e){if(Ha(e))return ff;if(za(e))return df;throw tf(t,e)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}]),t}()).\u0275fac=function(t){return new(t||nf)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ct.Default,e=Qo(!0);if(null!=e||t&ct.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},nf.\u0275pipe=xe({name:"async",type:nf,pure:!1}),nf),mf=((ef=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw tf(t,e);return e.toLowerCase()}}]),t}()).\u0275fac=function(t){return new(t||ef)},ef.\u0275pipe=xe({name:"lowercase",type:ef,pure:!0}),ef),vf
vendor: 7,067 bytes, line 1
1=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,
1gf=((af=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw tf(t,e);return e.replace(vf,(function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}))}}]),t}()).\u0275fac=function(t){return new(t||af)},af.\u0275pipe=xe({name:"titlecase",type:af,pure:!0}),af),yf=((of=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw tf(t,e);return e.toUpperCase()}}]),t}()).\u0275fac=function(t){return new(t||of)},of.\u0275pipe=xe({name:"uppercase",type:of,pure:!0}),of),_f=((rf=function(){function t(e){_classCallCheck(this,t),this.locale=e}return _createClass(t,[{key:"transform",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return function(t,e,n,i){var r=function(t){if(gh(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 i=_slicedToArray(t.split("-").map((function(t){return+t})),3),r=i[0],o=i[1],a=i[2];return new Date(r,o-1,a)}if(e=t.match(ih))return function(t){var e=new Date(0),n=0,i=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-i,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 s=new Date(t);if(!gh(s))throw new Error('Unable to convert "'.concat(t,'" into a date'));return s}(t);e=function t(e,n){var i=function(t){return Ou(t)[Pu.LocaleId]}(e);if(rh[i]=rh[i]||{},rh[i][n])return rh[i][n];var r="";switch(n){case"shortDate":r=Qc(e,Kc.Short);break;case"mediumDate":r=Qc(e,Kc.Medium);break;case"longDate":r=Qc(e,Kc.Long);break;case"fullDate":r=Qc(e,Kc.Full);break;case"shortTime":r=$c(e,Kc.Short);break;case"mediumTime":r=$c(e,Kc.Medium);break;case"longTime":r=$c(e,Kc.Long);break;case"fullTime":r=$c(e,Kc.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");r=lh(Xc(e,Kc.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");r=lh(Xc(e,Kc.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");r=lh(Xc(e,Kc.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),f=t(e,"fullDate");r=lh(Xc(e,Kc.Full),[h,f])}return r&&(rh[i][n]=r),r}(n,e)||e;for(var o,a=[];e;){if(!(o=oh.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var u=r.getTimezoneOffset();i&&(u=vh(i,u),r=function(t,e,n){var i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(vh(e,i)-i))}(r,i));var l="";return a.forEach((function(t){var e=function(t){if(mh[t])return mh[t];var e;switch(t){case"G":case"GG":case"GGG":e=fh(uh.Eras,Gc.Abbreviated);break;case"GGGG":e=fh(uh.Eras,Gc.Wide);break;case"GGGGG":e=fh(uh.Eras,Gc.Narrow);break;case"y":e=hh(sh.FullYear,1,0,!1,!0);break;case"yy":e=hh(sh.FullYear,2,0,!0,!0);break;case"yyy":e=hh(sh.FullYear,3,0,!1,!0);break;case"yyyy":e=hh(sh.FullYear,4,0,!1,!0);break;case"M":case"L":e=hh(sh.Month,1,1);break;case"MM":case"LL":e=hh(sh.Month,2,1);break;case"MMM":e=fh(uh.Months,Gc.Abbreviated);break;case"MMMM":e=fh(uh.Months,Gc.Wide);break;case"MMMMM":e=fh(uh.Months,Gc.Narrow);break;case"LLL":e=fh(uh.Months,Gc.Abbreviated,Wc.Standalone);break;case"LLLL":e=fh(uh.Months,Gc.Wide,Wc.Standalone);break;case"LLLLL":e=fh(uh.Months,Gc.Narrow,Wc.Standalone);break;case"w":e=ph(1);break;case"ww":e=ph(2);break;case"W":e=ph(1,!0);break;case"d":e=hh(sh.Date,1);break;case"dd":e=hh(sh.Date,2);break;case"E":case"EE":case"EEE":e=fh(uh.Days,Gc.Abbreviated);break;case"EEEE":e=fh(uh.Days,Gc.Wide);break;case"EEEEE":e=fh(uh.Days,Gc.Narrow);break;case"EEEEEE":e=fh(uh.Days,Gc.Short);break;case"a":case"aa":case"aaa":e=fh(uh.DayPeriods,Gc.Abbreviated);break;case"aaaa":e=fh(uh.DayPeriods,Gc.Wide);break;case"aaaaa":e=fh(uh.DayPeriods,Gc.Narrow);break;
1case"b":case"bb":case"bbb":e=fh(uh.DayPeriods,Gc.Abbreviated,Wc.Standalone,!0);break;case"bbbb":e=fh(uh.DayPeriods,Gc.Wide,Wc.Standalone,!0);break;case"bbbbb":e=fh(uh.DayPeriods,Gc.Narrow,Wc.Standalone,!0);break;case"B":case"BB":case"BBB":e=fh(uh.DayPeriods,Gc.Abbreviated,Wc.Format,!0);break;case"BBBB":e=fh(uh.DayPeriods,Gc.Wide,Wc.Format,!0);break;case"BBBBB":e=fh(uh.DayPeriods,Gc.Narrow,Wc.Format,!0);break;case"h":e=hh(sh.Hours,1,-12);break;case"hh":e=hh(sh.Hours,2,-12);break;case"H":e=hh(sh.Hours,1);break;case"HH":e=hh(sh.Hours,2);break;case"m":e=hh(sh.Minutes,1);break;case"mm":e=hh(sh.Minutes,2);break;case"s":e=hh(sh.Seconds,1);break;case"ss":e=hh(sh.Seconds,2);break;case"S":e=hh(sh.FractionalSeconds,1);break;case"SS":e=hh(sh.FractionalSeconds,2);break;case"SSS":e=hh(sh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=dh(ah.Short);break;case"ZZZZZ":e=dh(ah.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=dh(ah.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=dh(ah.Long);break;default:return null}return mh[t]=e,e}(t);l+=e?e(r,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}(e,n,r||this.locale,i)}catch(o){throw tf(t,o.message)}}}]),t}()).\u0275fac=function(t){return new(t||rf)(Oa(xl))},rf.\u0275pipe=xe({name:"date",type:rf,pure:!0}),rf),bf=/#/g,wf=((cf=function(){function t(e){_classCallCheck(this,t),this._localization=e}return _createClass(t,[{key:"transform",value:function(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw tf(t,n);return n[Ch(e,Object.keys(n),this._localization,i)].replace(bf,e.toString())}}]),t}()).\u0275fac=function(t){return new(t||cf)(Oa(kh))},cf.\u0275pipe=xe({name:"i18nPlural",type:cf,pure:!0}),cf),kf=((lf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw tf(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}]),t}()).\u0275fac=function(t){return new(t||lf)},lf.\u0275pipe=xe({name:"i18nSelect",type:lf,pure:!0}),lf),Cf=((uf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return JSON.stringify(t,null,2)}}]),t}()).\u0275fac=function(t){return new(t||uf)},uf.\u0275pipe=xe({name:"json",type:uf,pure:!1}),uf),xf=((sf=function(){function t(e){_classCallCheck(this,t),this.differs=e,this.keyValues=[]}return _createClass(t,[{key:"transform",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sf;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem((function(t){e.keyValues.push({key:t.key,value:t.currentValue})})),this.keyValues.sort(n)),this.keyValues}}]),t}()).\u0275fac=function(t){return new(t||sf)(Oa(pu))},sf.\u0275pipe=xe({name:"keyvalue",type:sf,pure:!1}),sf);function Sf(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var Ef,If,Af,Tf=((Af=function(){function t(e){_classCallCheck(this,t),this._locale=e}return _createClass(t,[{key:"transform",value:function(e,n,i){if(Pf(e))return null;i=i||this._locale;try{return function(t,e,n){return _h(t,bh(Jc(e,zc.Decimal),Zc(e,Yc.MinusSign)),e,Yc.Group,Yc.Decimal,n)}(Rf(e),i,n)}catch(r){throw tf(t,r.message)}}}]),t}()).\u0275fac=function(t){return new(t||Af)(Oa(xl))},Af.\u0275pipe=xe({name:"number",type:Af,pure:!0}),Af),Of=((If=function(){function t(e){_classCallCheck(this,t),this._locale=e}return _createClass(t,[{key:"transform",value:function(e,n,i){if(Pf(e))return null;i=i||this._locale;try{return function(t,e,n){return _h(t,bh(Jc(e,zc.Percent),Zc(e,Yc.MinusSign)),e,Yc.Group,Yc.Decimal,n,!0).replace(new RegExp("%","g"),Zc(e,Yc.PercentSign))}(Rf(e),i,n)}catch(r){throw tf(t,r.message)}}}]),t}()).\u0275fac=function(t){return new(t||If)(Oa(xl))},If.\u0275pipe=xe({name:"percent",type:If,pure:!0}),If),Df=((Ef=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";_classCallCheck(this,t),this._locale=e,this._defaultCurrencyCode=n}return _createClass(t,[{key:"transform",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(Pf(e))return null;o=o||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=function(t){return Ou(t)[Pu.Currencies]}(n)[t]||Hc[t]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||t}(a,"symbol"===i?"wide":"narrow",o):i);try{return function(t,e,n,i,r){var o=bh(Jc(e,zc.Currency),Zc(e,Yc.MinusSign));return o.minFrac=function(t){var e,n=Hc[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),o.maxFrac=o.minFrac,_h(t,o,e,Yc.CurrencyGroup,Yc.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}(Rf(e),o,a,n,r)}catch(s){throw tf(t,s.message)}}}]),t}()).\u0275fac=function(t){return new(t||Ef)(Oa(xl),Oa(Sl))},Ef.\u0275pipe=xe({name:"currency",type:Ef,pure:!0}),Ef);function Pf(t){return null==t||""===t||t!=t}
1function Rf(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}var Nf,Mf,Ff=((Mf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e,n,i){if(null==e)return e;if(!this.supports(e))throw tf(t,e);return e.slice(n,i)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}()).\u0275fac=function(t){return new(t||Mf)},Mf.\u0275pipe=xe({name:"slice",type:Mf,pure:!1}),Mf),Lf=((Nf=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Nf}),Nf.\u0275inj=pt({factory:function(t){return new(t||Nf)},providers:[{provide:kh,useClass:Sh}]}),Nf);function jf(t){return"browser"===t}function Bf(t){return"server"===t}var Vf,Uf,Hf,zf,qf,Wf=((Vf=function t(){_classCallCheck(this,t)}).\u0275prov=dt({token:Vf,providedIn:"root",factory:function(){return new Gf(Xt(_c),window,Xt(vi))}}),Vf),Gf=function(){function t(e,n,i){_classCallCheck(this,t),this.document=e,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return _createClass(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value: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("#".concat(t));if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='".concat(t,"']"));if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}]),t}(),Kf=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=Yf||(Yf=document.querySelector("base"))?Yf.getAttribute("href"):null;return null==n?null:(e=n,Uf||(Uf=document.createElement("a")),Uf.setAttribute("href",e),"/"===Uf.pathname.charAt(0)?Uf.pathname:"/"+Uf.pathname)}},{key:"resetBaseElement",value:function(){Yf=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return Eh(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,vc||(vc=t)}}]),n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function t(){_classCallCheck(this,t)}}())),Yf=null,Qf=new Ht("TRANSITION_ID"),$f=[{provide:ml,useFactory:function(t,e,n){return function(){n.get(vl).donePromise.then((function(){var n=gc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t}
1)).forEach((function(t){return n.remove(t)}))}))}},deps:[Qf,_c,fa],multi:!0}],Xf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){Nt.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Nt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Nt.getAllAngularRootElements=function(){return t.getAllRootElements()},Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push((function(t){var e=Nt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?gc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Yl=e}}]),t}(),Zf=new Ht("EventManagerPlugins"),Jf=((Hf=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=i})),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event ".concat(t))}}]),t}()).\u0275fac=function(t){return new(t||Hf)(Xt(Zf),Xt(Ll))},Hf.\u0275prov=dt({token:Hf,factory:Hf.\u0275fac}),Hf),td=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"addGlobalEventListener",value:function(t,e,n){var i=gc().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(e));return this.addEventListener(i,e,n)}}]),t}(),ed=((qf=function(){function t(){_classCallCheck(this,t),this._stylesSet=new Set}return _createClass(t,[{key:"addStyles",value: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)}},{key:"onStylesAdded",value:function(t){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),t}()).\u0275fac=function(t){return new(t||qf)},qf.\u0275prov=dt({token:qf,factory:qf.\u0275fac}),qf),nd=((zf=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._doc=t,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(t.head),i}return _createClass(n,[{key:"_addStylesToHost",value:function(t,e){var n=this;t.forEach((function(t){var i=n._doc.createElement("style");i.textContent=t,n._styleNodes.add(e.appendChild(i))}))}},{key:"addHost",value:function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}},{key:"removeHost",value:function(t){this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(t){return gc().remove(t)}))}}]),n}(ed)).\u0275fac=function(t){return new(t||zf)(Xt(_c))},zf.\u0275prov=dt({token:zf,factory:zf.\u0275fac}),zf),id={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/"},rd=/%COMP%/g;function od(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];Array.isArray(r)?od(t,r,n):(r=r.replace(rd,t),n.push(r))}return n}function ad(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var sd,ud,ld,cd,hd,fd,dd=((sd=function(){function t(e,n,i){_classCallCheck(this,t),this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new pd(e)}return _createClass(t,[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case fe.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new md(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyTo
1Host(t),n;case fe.Native:case fe.ShadowDom:return new vd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=od(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||sd)(Xt(Jf),Xt(nd),Xt(gl))},sd.\u0275prov=dt({token:sd,factory:sd.\u0275fac}),sd),pd=function(){function t(e){_classCallCheck(this,t),this.eventManager=e,this.data=Object.create(null)}return _createClass(t,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(id[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,n){t&&t.insertBefore(e,n)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(n.textContent=""),n}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,n,i){if(i){e=i+":"+e;var r=id[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}},{key:"removeAttribute",value:function(t,e,n){if(n){var i=id[n];i?t.removeAttributeNS(i,e):t.removeAttribute("".concat(n,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,n,i){i&Xs.DashCase?t.style.setProperty(e,n,i&Xs.Important?"important":""):t.style[e]=n}},{key:"removeStyle",value:function(t,e,n){n&Xs.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,n){t[e]=n}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ad(n)):this.eventManager.addEventListener(t,e,ad(n))}}]),t}(),md=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;_classCallCheck(this,n),(a=e.call(this,t)).component=r;var s,u=od(o+"-"+r.id,r.styles,[]);return i.addStyles(u),a.contentAttr="_ngcontent-%COMP%".replace(rd,o+"-"+r.id),a.hostAttr=(s=o+"-"+r.id,"_nghost-%COMP%".replace(rd,s)),a}return _createClass(n,[{key:"applyToHost",value:function(t){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,t,this.hostAttr,"")}},{key:"createElement",value:function(t,e){var i=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,t,e);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(pd),vd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;_classCallCheck(this,n),(a=e.call(this,t)).sharedStylesHost=i,a.hostEl=r,a.component=o,a.shadowRoot=o.encapsulation===fe.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=od(o.id,o.styles,[]),u=0;u<s.length;u++){var l=document.createElement("style");l.textContent=s[u],a.shadowRoot.appendChild(l)}return a}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,e){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"insertBefore",value:function(t,e,i){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(t),e,i)}},{key:"removeChild",value:function(t,e){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(t)))}}]),n}
1(pd),gd=((ud=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,n){var i=this;return t.addEventListener(e,n,!1),function(){return i.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){return t.removeEventListener(e,n)}}]),n}(td)).\u0275fac=function(t){return new(t||ud)(Xt(_c))},ud.\u0275prov=dt({token:ud,factory:ud.\u0275fac}),ud),yd=["alt","control","meta","shift"],_d={"\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"},bd={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"},wd={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},kd=((hd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n,[{key:"supports",value:function(t){return null!=n.parseEventName(t)}},{key:"addEventListener",value:function(t,e,i){var r=n.parseEventName(e),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return gc().onAndCancel(t,r.domEventName,o)}))}}],[{key:"parseEventName",value:function(t){var e=t.toLowerCase().split("."),i=e.shift();if(0===e.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(e.pop()),o="";if(yd.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=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&&bd.hasOwnProperty(e)&&(e=bd[e]))}return _d[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),yd.forEach((function(i){i!=n&&(0,wd[i])(t)&&(e+=i+".")})),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(td)).\u0275fac=function(t){return new(t||hd)(Xt(_c))},hd.\u0275prov=dt({token:hd,factory:hd.\u0275fac}),hd),Cd=((cd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||cd)},cd.\u0275prov=dt({factory:function(){return Xt(xd)},token:cd,providedIn:"root"}),cd),xd=((ld=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._doc=t,i}return _createClass(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Xi.NONE:return e;case Xi.HTML:return xi(e,"HTML")?Ci(e):Qi(this._doc,String(e));case Xi.STYLE:return xi(e,"Style")?Ci(e):function(t){if(!(t=String(t).trim()))return"";var e=t.match(Ji);return e&&Pi(e[1])===e[1]||t.match(Zi)&&function(t){for(var e=!0,n=!0,i=0;i<t.length;i++){var r=t.charAt(i);"'"===r&&n?e=!e:'"'===r&&e&&(n=!n)}return e&&n}(t)?t:(Ai()&&console.warn("WARNING: sanitizing unsafe style value ".concat(t," (see http://g.co/ng/security#xss).")),"unsafe")}(e);case Xi.SCRIPT:if(xi(e,"Script"))return Ci(e);throw new Error("unsafe value used in a script context");case Xi.URL:return Si(e),xi(e,"URL")?Ci(e):Pi(String(e));case Xi.RESOURCE_URL:if(xi(e,"ResourceURL"))return Ci(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new yi(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new _i(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new bi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new wi(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new ki(t)}}]),n}(Cd)).\u0275fac=function(t){return new(t||ld)(Xt(_c))},ld.\u0275prov=dt({factory:function(){return t=Xt(zt),new xd(t.get(_c));var t},token:ld,providedIn:"root"}),ld),Sd=Zl(cc,"browser",[{provide:wl,useValue:"browser"},{provide:bl,useValue:function(){Kf.makeCurrent(),Xf.init()},multi:!0},{provide:_c,useFactory:function(){return function(t){Me=t}(document),document},deps:[]}]),Ed=[[],{provide:Zo,useValue:"root"},{provide:vi,useFactory:function(){return new vi},deps:[]},{provide:Zf,useClass:gd,multi:!0,deps:[_c,Ll,wl]},{provide:Zf,useClass:kd,multi:!0,deps:[_c]},[],{provide:dd,useClass:dd,deps:[Jf,nd,gl]},{provide:$s,useExisting:dd},{provide:ed,useExisting:nd},{provide:nd,useClass:nd,deps:[_c]},{provide:Gl,useClass:Gl,deps:[Ll]},{provide:Jf,useClass:Jf,deps:[Zf,Ll]},[]],Id=((fd=function(){function t(e){if(_classCallCheck(this,t),e)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.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:gl,useValue:e.appId},{provide:Qf,useExisting:gl},$f]}}}]),t}()).\u0275mod=we({type:fd}),fd.\u0275inj=pt({factory:function(t){return new(t||fd)(Xt(fd,12))},providers:Ed,imports:[Lf,fc]}),fd);function Ad(){return new Od(Xt(_c))}var Td,Od=((Td=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}()).\u0275fac=function(t){return new(t||Td)(Xt(_c))},Td.\u0275prov=dt({factory:Ad,token:Td,providedIn:"root"}),Td);function Dd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[e.length-1];return O(i)?(e.pop(),H(e,i)):Y(e)}"undefined"!=typeof window&&window;var Pd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._value=t,i}return _createClass(n,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(A),Rd=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Nd={};function Md(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=null,r=null;return O(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(i=e.pop()),1===e.length&&u(e[0])&&(e=e[0]),Y(e,r).lift(new Fd(i))}var Fd=function(){function t(e){_classCallCheck(this,t),this.resultSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ld(t,this.resultSelector))}}]),t}(),Ld=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return _createClass(n,[{key:"_next",value:function(t){this.values.push(Nd),this.observables.push(t)}},{key:"_complete",value: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 i=t[n];this.add(L(this,i,i,n))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,n,i,r){var o=this.values,a=this.toRespond?o[n]===Nd?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(j),jd=new k((function(t){return t.complete()}
1));function Bd(t){return t?function(t){return new k((function(e){return t.schedule((function(){return e.complete()}))}))}(t):jd}function Vd(t){return new k((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?z(n):Bd()).subscribe(e)}))}function Ud(){return K(1)}function Hd(t,e){return function(n){return n.lift(new zd(t,e))}}var zd=function(){function t(e,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new qd(t,this.predicate,this.thisArg))}}]),t}(),qd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value: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)}}]),n}(m),Wd=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();function Gd(t){return function(e){return 0===t?Bd():e.lift(new Kd(t))}}var Kd=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new Wd}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Yd(t,this.total))}}]),t}(),Yd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()}}]),n}(m);function Qd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zd;return function(e){return e.lift(new $d(t))}}var $d=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Xd(t,this.errorFactory))}}]),t}(),Xd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(m);function Zd(){return new Rd}function Jd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new tp(t))}}var tp=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ep(t,this.defaultValue))}}]),t}(),ep=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(m);function np(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Hd((function(e,n){return t(e,n,i)})):y,Gd(1),n?Jd(e):Qd((function(){return new Rd})))}}function ip(t){return function(e){var n=new rp(t),i=e.lift(n);return n.caught=i}}var rp=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new op(t,this.selector,this.caught))}}]),t}(),op=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new D(this,void 0,void 0);this.add(i);var r=L(this,e,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}(j);function ap(t){return function(e){return 0===t?Bd():e.lift(new sp(t))}}var sp=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new Wd}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new up(t,this.total))}}]),t}(),up=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(m);function lp(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Hd((function(e,n){return t(e,n,i)})):y,ap(1),n?Jd(e):Qd((function(){return new Rd})))}}var cp=function(){function t(e,n,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=n,this.source=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new hp(t,this.predicate,this.thisArg,this.source))}}]),t}(),hp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t)).predicate=i,a.thisArg=r,a.source=o,a.index=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value: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)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(m);function fp(t,e){return"function"==typeof e?function(n){return n.pipe(fp((function(n,i){return z(t(n,i)).pipe(B((function(t,r){return e(n,t,i,r)})))}
1)))}:function(e){return e.lift(new dp(t))}}var dp=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new pp(t,this.project))}}]),t}(),pp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new D(this,e,n),o=this.destination;o.add(r),this.innerSubscription=L(this,t,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}}]),n}(j);function mp(){return Ud()(Dd.apply(void 0,arguments))}function vp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[e.length-1];return O(i)?(e.pop(),function(t){return mp(e,t,i)}):function(t){return mp(e,t)}}function gp(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new yp(t,e,n))}}var yp=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _p(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),_p=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(m);function bp(t,e){return q(t,e,1)}function wp(){}function kp(t,e,n){return function(i){return i.lift(new Cp(t,e,n))}}var Cp=function(){function t(e,n,i){_classCallCheck(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new xp(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),xp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t))._tapNext=wp,s._tapError=wp,s._tapComplete=wp,s._tapError=o||wp,s._tapComplete=a||wp,i(r)?(s._context=_assertThisInitialized(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||wp,s._tapError=r.error||wp,s._tapComplete=r.complete||wp),s}return _createClass(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(m);function Sp(t){return function(e){return e.lift(new Ip(t))}}var Ep,Ip=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ap(t,this.callback))}}]),t}(),Ap=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).add(new f(i)),r}return n}(m),Tp=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},Op=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=e.call(this,t,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Tp),Dp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Tp),Pp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Tp),Rp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Tp),Np=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Tp),Mp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Tp),Fp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Tp),Lp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Tp),jp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Tp),Bp=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),Vp=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Up=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Hp=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),zp=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),qp=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Wp=function(){function t(e,n,i){_classCallCheck(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),Gp=((Ep=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ep)},Ep.\u0275cmp=ve({type:Ep,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&La(0,"router-outlet")},directives:function(){return[ig]},encapsulation:2}),Ep),Kp=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Yp(t){return new Kp(t)}function Qp(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function $p(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=t[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}var Xp=function t(e,n){_classCallCheck(this,t),this.routes=e,this.module=n};function Zp(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<t.length;n++){var i=t[n];Jp(i,tm(e,i))}}function Jp(t,e){if(!t)throw new Error("\n Invalid configuration of route '".concat(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 '".concat(e,"': Array cannot be specified"));if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '".concat(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 '".concat(e,"': redirectTo and children cannot be used together"));if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and loadChildren cannot be used together"));if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': children and loadChildren cannot be used together"));if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and component cannot be used together"));if(t.path&&t.matcher)throw new Error("Invalid configuration of route '".concat(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 '".concat(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 '".concat(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 '".concat(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: \"".concat(e,'", redirectTo: "').concat(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 '".concat(e,"': pathMatch can only be set to 'prefix' or 'full'"));t.children&&Zp(t.children,e)}function tm(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function em(t){var e=t.children&&t.children.map(em),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Gp),n}function nm(t,e){var n,i=Object.keys(t),r=Object.keys(e);if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!im(t[n=i[o]],e[n]))return!1;return!0}function im(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function rm(t){return Array.prototype.concat.apply([],t)}function om(t){return t.length>0?t[t.length-1]:null}function am(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sm(t){return za(t)?t:Ha(t)?z(Promise.resolve(t)):Dd(t)}function um(t,e,n){return n?function(t,e){return nm(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!fm(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))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 im(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!fm(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!fm(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!fm(n.segments,a)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var lm=function(){function t(e,n,i){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=i}return _createClass(t,[{key:"toString",value:function(){return vm.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Yp(this.queryParams)),this._queryParamMap}}]),t}(),cm=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,am(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return gm(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),hm=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Cm(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Yp(this.parameters)),this._parameterMap}}]),t}();function fm(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function dm(t,e){var n=[];return am(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),am(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var pm=function t(){_classCallCheck(this,t)},mm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{
1key:"parse",value:function(t){var e=new Am(t);return new lm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i;return"".concat("/".concat(function t(e,n){if(!e.hasChildren())return gm(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return am(e.children,(function(e,n){"primary"!==n&&r.push("".concat(n,":").concat(t(e,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var o=dm(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(gm(e),"/(").concat(o.join("//"),")")}(t.root,!0)),(n=t.queryParams,i=Object.keys(n).map((function(t){var e=n[t];return Array.isArray(e)?e.map((function(e){return"".concat(_m(t),"=").concat(_m(e))})).join("&"):"".concat(_m(t),"=").concat(_m(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),vm=new mm;function gm(t){return t.segments.map((function(t){return Cm(t)})).join("/")}function ym(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _m(t){return ym(t).replace(/%3B/gi,";")}function bm(t){return ym(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wm(t){return decodeURIComponent(t)}function km(t){return wm(t.replace(/\+/g,"%20"))}function Cm(t){return"".concat(bm(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(bm(t),"=").concat(bm(e[t]))})).join("")));var e}var xm=/^[^\/()?;=#]+/;function Sm(t){var e=t.match(xm);return e?e[0]:""}
1var Em=/^[^=?&#]+/,Im=/^[^?&#]+/,Am=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new cm([],{}):new cm([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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.primary=new cm(t,e)),n}},{key:"parseSegment",value:function(){var t=Sm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new hm(wm(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Sm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=Sm(this.remaining);i&&(n=i,this.capture(n))}t[wm(e)]=wm(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Em);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Im);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=km(e),o=km(n);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Sm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new cm([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Tm=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Om(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=Om(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Dm(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Dm(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function Om(t,e){if(t===e.value)return e;var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var r=Om(t,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function Dm(t,e){if(t===e.value)return[e];var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var r=Dm(t,n.value);if(r.length)return r.unshift(e),r}}catch(o){i.e(o)}finally{i.f()}return[]}var Pm=function(){function t(e,n){_classCallCheck(this,t),this.value=e,this.children=n}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Rm(t){var e={};
1return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Nm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).snapshot=i,Vm(_assertThisInitialized(r),t),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Tm);function Mm(t,e){var n=function(t,e){var n=new jm([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bm("",new Pm(n,[]))}(t,e),i=new Pd([new hm("",{})]),r=new Pd({}),o=new Pd({}),a=new Pd({}),s=new Pd(""),u=new Fm(i,r,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new Nm(new Pm(u,[]),n)}var Fm=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(B((function(t){return Yp(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B((function(t){return Yp(t)})))),this._queryParamMap}}]),t}();function Lm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var jm=function(){function t(e,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Yp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Yp(this.queryParams)),this._queryParamMap}}]),t}(),Bm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,i)).url=t,Vm(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return Um(this._root)}}]),n}(Tm);function Vm(t,e){e.value._routerState=t,e.children.forEach((function(e){return Vm(t,e)}))}function Um(t){var e=t.children.length>0?" { ".concat(t.children.map(Um).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Hm(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,nm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),nm(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(!nm(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),nm(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function zm(t,e){var n,i;return nm(t.params,e.params)&&fm(n=t.url,i=e.url)&&n.every((function(t,e){return nm(t.parameters,i[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||zm(t.parent,e.parent))}function qm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Wm(t,e,n,i,r){var o={};return i&&am(i,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new lm(n.root===t?e:function t(e,n,i){var r={};return am(e.children,(function(e,o){r[o]=e===n?i:t(e,n,i)})),new cm(e.segments,r)}(n.root,t,e),o,r)}var Gm=function(){function t(e,n,i){if(_classCallCheck(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&qm(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==om(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Km=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Ym(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function Qm(t,e,n){if(t||(t=new cm([],{})),0===t.segments.length&&t.hasChildren())return $m(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r<t.segments.length;){if(i>=n.length)return o;var a=t.segments[r],s=Ym(n[i]),u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!tv(s,u,a))return o;i+=2}else{if(!tv(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){var o=new cm(t.segments.slice(0,i.pathIndex),{});return o.children.primary=new cm(t.segments.slice(i.pathIndex),t.children),$m(o,0,r)}return i.match&&0===r.length?new cm(t.segments,{}):i.match&&!t.hasChildren()?Xm(t,e,n):i.match?$m(t,0,r):Xm(t,e,n)}function $m(t,e,n){if(0===n.length)return new cm(t.segments,{});var i=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),r={};return am(i,(function(n,i){null!==n&&(r[i]=Qm(t.children[i],e,n))}
1)),am(t.children,(function(t,e){void 0===i[e]&&(r[e]=t)})),new cm(t.segments,r)}function Xm(t,e,n){for(var i=t.segments.slice(0,e),r=0;r<n.length;){if("object"==typeof n[r]&&void 0!==n[r].outlets){var o=Zm(n[r].outlets);return new cm(i,o)}if(0===r&&qm(n[0]))i.push(new hm(t.segments[e].path,n[0])),r++;else{var a=Ym(n[r]),s=r<n.length-1?n[r+1]:null;a&&s&&qm(s)?(i.push(new hm(a,Jm(s))),r+=2):(i.push(new hm(a,{})),r++)}}return new cm(i,{})}function Zm(t){var e={};return am(t,(function(t,n){null!==t&&(e[n]=Xm(new cm([],{}),0,t))})),e}function Jm(t){var e={};return am(t,(function(t,n){return e[n]="".concat(t)})),e}function tv(t,e,n){return t==n.path&&nm(e,n.parameters)}var ev=function(){function t(e,n,i,r){_classCallCheck(this,t),this.routeReuseStrategy=e,this.futureState=n,this.currState=i,this.forwardEvent=r}return _createClass(t,[{key:"activate",value:function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Hm(this.futureState.root),this.activateChildRoutes(e,n,t)}},{key:"deactivateChildRoutes",value:function(t,e,n){var i=this,r=Rm(e);t.children.forEach((function(t){var e=t.value.outlet;i.deactivateRoutes(t,r[e],n),delete r[e]})),am(r,(function(t,e){i.deactivateRouteAndItsChildren(t,n)}))}},{key:"deactivateRoutes",value:function(t,e,n){var i=t.value,r=e?e.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:i,route:t,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){var n=this,i=e.getContext(t.value.outlet);if(i){var r=Rm(t),o=t.value.component?i.children:e;am(r,(function(t,e){return n.deactivateRouteAndItsChildren(t,o)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(t,e,n){var i=this,r=Rm(e);t.children.forEach((function(t){i.activateRoutes(t,r[t.value.outlet],n),i.forwardEvent(new qp(t.value.snapshot))})),t.children.length&&this.forwardEvent(new Hp(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,n){var i=t.value,r=e?e.value:null;if(Hm(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),nv(s.route)}else{var u=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),l=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=l,a.outlet&&a.outlet.activateWith(i,l),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,n)}}]),t}();function nv(t){Hm(t.value),t.children.forEach(nv)}function iv(t){return"function"==typeof t}function rv(t){return t instanceof lm}var ov=function t(e){_classCallCheck(this,t),this.segmentGroup=e||null},av=function t(e){_classCallCheck(this,t),this.urlTree=e};function sv(t){return new k((function(e){return e.error(new ov(t))}))}function uv(t){return new k((function(e){return e.error(new av(t))}))}function lv(t){return new k((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}))}var cv=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.configLoader=n,this.urlSerializer
1=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(ne)}return _createClass(t,[{key:"apply",value:function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(B((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(ip((function(e){if(e instanceof av)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ov)throw t.noMatchError(e);throw e})))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(B((function(n){return e.createUrlTree(n,t.queryParams,t.fragment)}))).pipe(ip((function(t){if(t instanceof ov)throw e.noMatchError(t);throw t})))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new cm([],{primary:t}):t;return new lm(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(B((function(t){return new cm([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Dd({});var o=[],a=[],s={};return am(n,(function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(t,e,l,u)).pipe(B((function(t){return s[r]=t})));"primary"===r?o.push(c):a.push(c)})),Dd.apply(null,o.concat(a)).pipe(Ud(),np(),B((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,r,o){var a=this;return Dd.apply(void 0,_toConsumableArray(n)).pipe(B((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(ip((function(t){if(t instanceof ov)return Dd(null);throw t})))})),Ud(),lp((function(t){return!!t})),ip((function(t,n){if(t instanceof Rd||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,i,r))return Dd(new cm([],{}));throw new ov(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,o,a){return pv(i)!==o?sv(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):sv(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?uv(o):this.lineralizeSegments(n,o).pipe(q((function(n){var o=new cm(n,{});return r.expandSegment(t,o,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){var a=this,s=hv(e,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return sv(e);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?uv(f):this.lineralizeSegments(i,f).pipe(q((function(i){return a.expandSegment(t,e,n,i.concat(r.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(B((function(t){return n._loadedConfig=t,new cm(i,{})}))):Dd(new cm(i,{}));var o=hv(e,n,i),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return sv(e);var l=i.slice(u);return this.getChildConfig(t,n,i).pipe(q((function(t){var n=t.module,i=t.routes,o=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return dv(t,e,n)&&"primary"!==pv(n)}))}(t,n,i)?{segmentGroup:fv(new cm(e,function(t,e){var n={};n.primary=e;var i,r=_createForOfIteratorHelper(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;""===o.path&&"primary"!==pv(o)&&(n[pv(o)]=new cm([],{}))}}catch(a){r.e(a)}finally{r.f()}return n}(i,new cm(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return dv(t,e,n)}
1))}(t,n,i)?{segmentGroup:fv(new cm(t.segments,function(t,e,n,i){var r,o={},a=_createForOfIteratorHelper(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;dv(t,e,s)&&!i[pv(s)]&&(o[pv(s)]=new cm([],{}))}}catch(u){a.e(u)}finally{a.f()}return Object.assign(Object.assign({},i),o)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,l,i),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?r.expandChildren(n,i,a).pipe(B((function(t){return new cm(s,t)}))):0===i.length&&0===u.length?Dd(new cm(s,{})):r.expandSegment(n,a,i,u,"primary",!0).pipe(B((function(t){return new cm(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Dd(new Xp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Dd(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?z(r).pipe(B((function(i){var r,o=t.get(i);if(function(t){return t&&iv(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!iv(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return sm(r)}))).pipe(Ud(),(i=function(t){return!0===t},function(t){return t.lift(new cp(i,void 0,t))})):Dd(!0)}(t.injector,e,n).pipe(q((function(n){return n?i.configLoader.load(t.injector,e).pipe(B((function(t){return e._loadedConfig=t,t}))):function(t){return new k((function(e){return e.error(Qp("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Dd(new Xp([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Dd(n);if(i.numberOfChildren>1||!i.children.primary)return lv(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new lm(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return am(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return am(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)})),new cm(o,a)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function hv(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 i=(e.matcher||$p)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function fv(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new cm(t.segments.concat(e.segments),e.children)}return t}function dv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function pv(t){return t.outlet||"primary"}var mv=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},vv=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function gv(t,e,n){var i=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(i?i.module.injector:n).get(t)}function yv(t,e,n){var i=Rm(t),r=t.value;am(i,(function(t,i){yv(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new vv(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var _v=Symbol("INITIAL_VALUE");function bv(){return fp((function(t){return Md.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(ap(1),vp(_v))})))).pipe(gp((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==_v)return t;if(i===_v&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||rv(i))return i}return t}),t)}),_v),Hd((function(t){return t!==_v})),B((function(t){return rv(t)?t:!0===t})),ap(1))}))}function wv(t,e){return null!==t&&e&&e(new zp(t)),Dd(!0)}function kv(t,e){return null!==t&&e&&e(new Up(t)),Dd(!0)}function Cv(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Dd(i.map((function(i){return Vd((function(){var r,o=gv(i,e,n);if(function(t){return t&&iv(t.canActivate)}(o))r=sm(o.canActivate(e,t));else{if(!iv(o))throw new Error("Invalid CanActivate guard");r=sm(o(e,t))}return r.pipe(lp())}))}))).pipe(bv()):Dd(!0)}function xv(t,e,n){var i=e[e.length-1],r=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 Vd((function(){return Dd(e.guards.map((function(r){var o,a=gv(r,e.node,n);if(function(t){return t&&iv(t.canActivateChild)}(a))o=sm(a.canActivateChild(i,t));else{if(!iv(a))throw new Error("Invalid CanActivateChild guard");o=sm(a(i,t))}
1return o.pipe(lp())}))).pipe(bv())}))}));return Dd(r).pipe(bv())}var Sv=function t(){_classCallCheck(this,t)},Ev=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(t,[{key:"recognize",value:function(){try{var t=Tv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new jm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Pm(n,e),r=new Bm(this.url,i);return this.inheritParamsAndData(r._root),Dd(r)}catch(o){return new k((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=Lm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,i=this,r=dm(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[t.value.outlet]=t.value})),r.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),r}},{key:"processSegment",value:function(t,e,n,i){var r,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;try{return this.processSegmentAgainstRoute(a,e,n,i)}catch(s){if(!(s instanceof Sv))throw s}}}catch(u){o.e(u)}finally{o.f()}if(this.noLeftoversInUrl(e,n,i))return[];throw new Sv}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo)throw new Sv;if((t.outlet||"primary")!==i)throw new Sv;var r,o=[],a=[];if("**"===t.path){var s=n.length>0?om(n).parameters:{};r=new jm(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pv(t),i,t.component,t,Iv(e),Av(e)+n.length,Rv(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Sv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||$p)(n,t,e);if(!i)throw new Sv;var r={};am(i.posParams,(function(t,e){r[e]=t.path}));var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new jm(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pv(t),i,t.component,t,Iv(e),Av(e)+o.length,Rv(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=Tv(e,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Pm(r,d)]}if(0===l.length&&0===f.length)return[new Pm(r,[])];var p=this.processSegment(l,h,f,"primary");return[new Pm(r,p)]}}]),t}();function Iv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Av(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 Tv(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return Ov(t,e,n)&&"primary"!==Dv(n)}))}(t,n,i)){var o=new cm(e,function(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Dv(s)){var u=new cm([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[Dv(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}
1(t,e,i,new cm(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return Ov(t,e,n)}))}(t,n,i)){var a=new cm(t.segments,function(t,e,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ov(t,n,l)&&!r[Dv(l)]){var c=new cm([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Dv(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new cm(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ov(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Dv(t){return t.outlet||"primary"}function Pv(t){return t.data||{}}function Rv(t){return t.resolve||{}}function Nv(t,e,n,i){var r=gv(t,e,i);return sm(r.resolve?r.resolve(e,n):r(e,n))}function Mv(t){return function(e){return e.pipe(fp((function(e){var n=t(e);return n?z(n).pipe(B((function(){return e}))):z([e])})))}}var Fv=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),Lv=new Ht("ROUTES"),jv=function(){function t(e,n,i,r){_classCallCheck(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(B((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Xp(rm(r.injector.get(Lv)).map(em),r)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?z(this.loader.load(t)):sm(t()).pipe(q((function(t){return t instanceof ie?Dd(t):z(e.compiler.compileModuleAsync(t))})))}}]),t}(),Bv=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Vv(t){throw t}function Uv(t,e,n){return e.parse("/")}function Hv(t,e){return Dd(null)}var zv,qv,Wv,Gv=((Wv=function(){function t(e,n,i,r,o,a,s,u){var l=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Vv,this.malformedUriErrorHandler=Uv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hv,afterPreactivation:Hv},this.urlHandlingStrategy=new Bv,this.routeReuseStrategy=new Fv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(ne),this.console=o.get(Cl);var c=o.get(Ll);this.isNgZoneEnabled=c instanceof Ll,this.resetConfig(u),this.currentUrlTree=new lm(new cm([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new jv(a,s,(function(t){return l.triggerEvent(new Bp(t))}),(function(t){return l.triggerEvent(new Vp(t))})),this.routerState=Mm(this.currentUrlTree,this.rootComponentType),this.transitions=new Pd({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 _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Hd((function(t){return 0!==t.id})),B((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}
1)),fp((function(t){var i,r,o,a=!1,s=!1;return Dd(t).pipe(kp((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),fp((function(t){var i,r,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Dd(t).pipe(fp((function(t){var i=e.transitions.getValue();return n.next(new Op(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?jd:[t]})),fp((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(fp((function(t){return function(t,e,n,i,r){return new cv(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(B((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),kp((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,r,o){return function(i){return i.pipe(q((function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ev(t,e,n,i,r,o).recognize()}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe(B((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var a})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),kp((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),kp((function(t){var i=new Np(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,c=t.source,h=t.restoredState,f=t.extras,d=new Op(u,e.serializeUrl(l),c,h);n.next(d);var p=Mm(l,e.rootComponentType).snapshot;return Dd(Object.assign(Object.assign({},t),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),jd})),Mv((function(t){var n=t.targetSnapshot,i=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),kp((function(t){var n=new Mp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),B((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,o=n._root,function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Rm(n);return e.children.forEach((function(e){!function(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,s=n?n.value:null,u=i?i.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!fm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!fm(t.url,e.url)||!nm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zm(t,e)||!nm(t.queryParams,e.queryParams);case"paramsChange":default:return!zm(t,e)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new mv(r)):(a.data=s.data,a._resolvedData=s._resolvedData),t(e,n,a.component?u?u.children:null:i,r,o),l&&o.canDeactivateChecks.push(new vv(u&&u.outlet&&u.outlet.component||null,s))}else s&&yv(n,u,o),o.canActivateChecks.push(new mv(r)),t(e,null,a.component?u?u.children:null:i,r,o)}(e,a[e.value.outlet],i,r.concat([e.value]),o),delete a[e.value.outlet]})),am(a,(function(t,e){return yv(t,i.getContext(e),o)})),o}(o,i?i._root:null,r,[o.value]))});var n,i,r,o})),function(t,e){return function(n){return n.pipe(q((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Dd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return z(t).pipe(q((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;
1return o&&0!==o.length?Dd(o.map((function(o){var a,s=gv(o,e,r);if(function(t){return t&&iv(t.canDeactivate)}(s))a=sm(s.canDeactivate(t,e,n,i));else{if(!iv(s))throw new Error("Invalid CanDeactivate guard");a=sm(s(t,e,n,i))}return a.pipe(lp())}))).pipe(bv()):Dd(!0)}(t.component,t.route,n,e,i)})),lp((function(t){return!0!==t}),!0))}(s,i,r,t).pipe(q((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return z(e).pipe(bp((function(e){return z([kv(e.route.parent,i),wv(e.route,i),xv(t,e.path,n),Cv(t,e.route,n)]).pipe(Ud(),lp((function(t){return!0!==t}),!0))})),lp((function(t){return!0!==t}),!0))}(i,a,t,e):Dd(n)})),B((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),kp((function(t){if(rv(t.guardsResult)){var n=Qp('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),kp((function(t){var n=new Fp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Hd((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new Pp(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),Mv((function(t){if(t.guards.canActivateChecks.length)return Dd(t).pipe(kp((function(t){var n=new Lp(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(q((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?z(r).pipe(bp((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Dd({});if(1===r.length){var o=r[0];return Nv(t[o],e,n,i).pipe(B((function(t){return _defineProperty({},o,t)})))}var a={};return z(r).pipe(q((function(r){return Nv(t[r],e,n,i).pipe(B((function(t){return a[r]=t,t})))}))).pipe(np(),B((function(){return a})))}(t._resolve,t,e,i).pipe(B((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Lm(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return _(gp(t,e),Gd(1),Jd(e))(n)}:function(e){return _(gp((function(e,n,i){return t(e,n,i+1)})),Gd(1))(e)}}((function(t,e){return t})),B((function(e){return t}))):Dd(t)})))}),kp((function(t){var n=new jp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),Mv((function(t){var n=t.targetSnapshot,i=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),B((function(t){var n=function(t,e,n){var i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var o=function(e,n,i){return n.children.map((function(n){var r,o=_createForOfIteratorHelper(i.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(s){o.e(s)}finally{o.f()}return t(e,n)}))}(e,n,i);return new Pm(r,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");if(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 i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,s),s}var u,l=new Fm(new Pd((u=n.value).url),new Pd(u.params),new Pd(u.queryParams),new Pd(u.fragment),new Pd(u.data),u.outlet,u.component,u),c=n.children.map((function(n){return t(e,n)}));return new Pm(l,c)}(t,e._root,n?n._root:void 0);return new Nm(i,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})})),kp((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)})),(i=e.rootContexts,r=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},B((function(t){return new ev(r,t.targetRouterState,t.currentRouterState,o).activate(i),t}))),kp({next:function(){a=!0},complete:function(){a=!0}}),Sp((function(){if(!a&&!s){e.resetUrlToCurrentUrlTree();var i=new Pp(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(i),t.resolve(!1)}e.currentNavigation=null})),ip((function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=rv(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new Pp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(o),r?setTimeout((function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new Rp(t.id,e.serializeUrl(t.extractedUrl),i);n.next(a);try{t.resolve(e.errorHandler(i))}catch(l){t.reject(l)}}var u;return jd})))})))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var n=t.parseUrl(e.url),i="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;
1setTimeout((function(){t.scheduleNavigation(n,i,r,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Zp(t),this.config=t.map(em),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,o=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;Ai()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r,c=null;if(a)switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}else c=o?this.currentUrlTree.queryParams:i||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return Wm(e.root,e.root,e,i,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Gm(!0,0,t);var e=0,n=!1,i=t.reduce((function(t,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return am(i.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(t),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(t),[i]):0===r?(i.split("/").forEach((function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[].concat(_toConsumableArray(t),[i])}),[]);return new Gm(n,e,i)}(n);if(o.toRoot())return Wm(e.root,new cm([],{}),e,i,r);var a=function(t,e,n){if(t.isAbsolute)return new Km(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Km(n.snapshot._urlSegment,!0,0);var i=qm(t.commands[0])?0:1;return function(t,e,n){for(var i=t,r=e,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Km(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?$m(a.segmentGroup,a.index,o.commands):Qm(a.segmentGroup,a.index,o.commands);return Wm(a.segmentGroup,s,e,i,r)}(u,this.currentUrlTree,t,c,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Ai()&&this.isNgZoneEnabled&&!Ll.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=rv(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(rv(t))return um(this.currentUrlTree,t,e);var n=this.parseUrl(t);return um(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var i=t[n];return null!=i&&(e[n]=i),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new Dp(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: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,i,r){var o,a,s,u=this.getTransition();if(u&&"imperative"!==e&&"imperative"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"hashchange"==e&&"popstate"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"popstate"==e&&"hashchange"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise((function(t,e){o=t,a=e}));var l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}()).\u0275fac=function(t){Pa()},Wv.\u0275dir=Ce({type:Wv}),Wv),Kv=((qv=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.router=e,this.route=n,this.commands=[],null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(t,[{key:"onClick",value:function(){var t={skipLocationChange:Qv(this.skipLocationChange),replaceUrl:Qv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Ai()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qv(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||qv)(Oa(Gv),Oa(Fm),Da("tabindex"),Oa(Zs),Oa(Ys))},qv.\u0275dir=Ce({type:qv,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&qa("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),qv),Yv=((zv=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.router=e,this.route=n,this.locationStrategy=i,this.commands=[],this.subscription=e.events.subscribe((function(t){t instanceof Dp&&r.updateTargetUrlAndHref()}))}return _createClass(t,[{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,n,i){if(0!==t||e||n||i)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:Qv(this.skipLocationChange),replaceUrl:Qv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Ai()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qv(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||zv)(Oa(Gv),Oa(Fm),Oa(Dc))},zv.\u0275dir=Ce({type:zv,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Ss("href",e.href,er),Ea("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ns]}),zv);function Qv(t){return""===t||!!t}var $v,Xv,Zv,Jv,tg=(($v=function(){function t(e,n,i,r,o){var a=this;_classCallCheck(this,t),this.router=e,this.element=n,this.renderer=i,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe((function(t){t instanceof Dp&&a.update()}))}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}},{key:"routerLinkActive",set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))}}]),t}()).\u0275fac=function(t){return new(t||$v)(Oa(Gv),Oa(Ys),Oa(Zs),Oa(Kv,8),Oa(Yv,8))},$v.\u0275dir=Ce({type:$v,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,Kv,!0),ul(n,Yv,!0)),2&t&&(rl(i=hl())&&(e.links=i),rl(i=hl())&&(e.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[Ns]}),$v),eg=function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new ng,this.attachRef=null},ng=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new eg,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),ig=((Xv=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.parentContexts=e,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ku,this.deactivateEvents=new Ku,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value: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))}}},{key:"detach",value: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}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value: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),i=this.parentContexts.getOrCreateContext(this.name).children,r=new rg(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),t}()).\u0275fac=function(t){return new(t||Xv)(Oa(ng),Oa(bu),Oa(Ks),Da("name"),Oa($o))},Xv.\u0275dir=Ce({type:Xv,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Xv),rg=function(){function t(e,n,i){_classCallCheck(this,t),this.route=e,this.childContexts=n,this.parent=i}return _createClass(t,[{key:"get",value:function(t,e){return t===Fm?this.route:t===ng?this.childContexts:this.parent.get(t,e)}}]),t}(),og=function t(){_classCallCheck(this,t)},ag=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return Dd(null)}}]),t}(),sg=((Jv=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new jv(n,i,(function(t){return e.triggerEvent(new Bp(t))}),(function(t){return e.triggerEvent(new Vp(t))}))}return _createClass(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(Hd((function(t){return t instanceof Dp})),bp((function(){return t.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var t=this.injector.get(ne);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var n,i=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;
1if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(t,o)):o.children&&i.push(this.processRoutes(t,o.children))}}catch(s){r.e(s)}finally{r.f()}return z(i).pipe(K(),B((function(t){})))}},{key:"preloadConfig",value:function(t,e){var n=this;return this.preloadingStrategy.preload(e,(function(){return n.loader.load(t.injector,e).pipe(q((function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})))}))}}]),t}()).\u0275fac=function(t){return new(t||Jv)(Xt(Gv),Xt(oc),Xt(Rl),Xt(fa),Xt(og))},Jv.\u0275prov=dt({token:Jv,factory:Jv.\u0275fac}),Jv),ug=((Zv=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof Op?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Dp&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof Wp&&(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]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Wp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){Pa()},Zv.\u0275dir=Ce({type:Zv}),Zv),lg=new Ht("ROUTER_CONFIGURATION"),cg=new Ht("ROUTER_FORROOT_GUARD"),hg=[Bc,{provide:pm,useClass:mm},{provide:Gv,useFactory:function(t,e,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Gv(null,t,e,n,i,r,o,rm(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=gc();c.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[pm,ng,Bc,fa,oc,Rl,Lv,lg,[function(){return function t(){_classCallCheck(this,t)}}(),new st],[function(){return function t(){_classCallCheck(this,t)}}(),new st]]},ng,{provide:Fm,useFactory:function(t){return t.routerState.root},deps:[Gv]},{provide:oc,useClass:uc},sg,ag,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(ip((function(){return Dd(null)})))}}]),t}(),{provide:lg,useValue:{enableTracing:!1}}];function fg(){return new Xl("Router",Gv)}var dg,pg=((dg=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[hg,yg(e),{provide:cg,useFactory:gg,deps:[[Gv,new st,new lt]]},{provide:lg,useValue:n||{}},{provide:Dc,useFactory:vg,deps:[bc,[new at(Fc),new st],lg]},{provide:ug,useFactory:mg,deps:[Gv,Wf,lg]},{provide:og,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:ag},{provide:Xl,multi:!0,useFactory:fg},[bg,{provide:ml,multi:!0,useFactory:wg,deps:[bg]},{provide:Cg,useFactory:kg,deps:[bg]},{provide:kl,multi:!0,useExisting:Cg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[yg(e)]}}}]),t}()).\u0275mod=we({type:dg}),dg.\u0275inj=pt({factory:function(t){return new(t||dg)(Xt(cg,8),Xt(Gv,8))}}),dg);function mg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ug(t,e,n)}function vg(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new jc(t,e):new Lc(t,e)}function gg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function yg(t){return[{provide:da,multi:!0,useValue:t},{provide:Lv,multi:!0,useValue:t}]}var _g,bg=((_g=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Cc,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(Gv),r=t.injector.get(lg);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?Dd(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(lg),n=this.injector.get(sg),i=this.injector.get(ug),r=this.injector.get(Gv),o=this.injector.get(ic);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||_g)(Xt(fa))},_g.\u0275prov=dt({token:_g,factory:_g.\u0275fac}),_g);function wg(t){return t.appInitializer.bind(t)}function kg(t){return t.bootstrapListener.bind(t)}var Cg=new Ht("Router Initializer");function xg(t,e){return new k(e?function(n){return e.schedule(Sg,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Sg(t){var e=t.error;t.subscriber.error(e)}var Eg=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value: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()}}},{key:"do",value: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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Dd(this.value);case"E":return xg(this.error);case"C":return Bd()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function Ig(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Ag(t,e))}}var Ag=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;
1_classCallCheck(this,t),this.scheduler=e,this.delay=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Tg(t,this.scheduler,this.delay))}}]),t}(),Tg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=e.call(this,t)).scheduler=i,r.delay=o,r}return _createClass(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Og(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Eg.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Eg.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Eg.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(m),Og=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},Dg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;
1return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value: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))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(f)),Pg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;
1return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):t.flush(this)}}]),n}(Dg),Rg=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=n}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Ng=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rg.now;return _classCallCheck(this,n),(i=e.call(this,t,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():r()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e,i)}},{key:"flush",value: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}}}}]),n}(Rg),Mg=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(Ng))(Pg),Fg=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;
1return _classCallCheck(this,n),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=i<1?1:i,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Lg(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new S;if(this.isStopped||this.hasError?e=f.EMPTY:(this.observers.push(t),e=new E(this,t)),r&&t.add(t=new Tg(t,r)),n)for(var a=0;a<o&&!t.closed;a++)t.next(i[a]);else for(var s=0;s<o&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e}},{key:"_getNow",value:function(){return(this.scheduler||Mg).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i}}]),n}(A),Lg=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n};function jg(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,u=t.scheduler,l=0,c=!1,h=!1;return function(t){l++,e&&!c||(c=!1,e=new Fg(r,a,u),n=t.subscribe({next:function(t){e.next(t)},error:function(t){c=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}));var i=e.subscribe(this);this.add((function(){l--,i.unsubscribe(),n&&!h&&s&&0===l&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}var Bg=new Ng(Dg),Vg=1,Ug=Promise.resolve(),Hg={};function zg(t){return t in Hg&&(delete Hg[t],!0)}var qg=function(t){var e=Vg++;return Hg[e]=!0,Ug.then((function(){return zg(e)&&t()})),e},Wg=function(t){zg(t)},Gg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;
1return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return _createClass(n,[{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=qg(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,i);0===t.actions.length&&(Wg(e),t.scheduled=void 0)}}]),n}(Dg),Kg=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}}}]),n}(Ng))(Gg);function Yg(t){return!u(t)&&t-parseFloat(t)+1>=0}var Qg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kg;return _classCallCheck(this,n),(i=e.call(this)).source=t,i.delayTime=r,i.scheduler
1=o,(!Yg(r)||r<0)&&(i.delayTime=0),o&&"function"==typeof o.schedule||(i.scheduler=Kg),i}return _createClass(n,[{key:"_subscribe",value:function(t){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:t})}}],[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kg;return new n(t,e,i)}},{key:"dispatch",value:function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))}}]),n}(k),$g=function(){function t(e,n){_classCallCheck(this,t),this.scheduler=e,this.delay=n}return _createClass(t,[{key:"call",value:function(t,e){return new Qg(e,this.delay,this.scheduler).subscribe(t)}}]),t}(),Xg=n("vEql");function Zg(){}var Jg=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;_classCallCheck(this,t),this.zone=e,this.delegate=n}return _createClass(t,[{key:"now",value:function(){return this.delegate.now()}},{key:"schedule",value:function(t,e,n){var i=this.zone;return this.delegate.schedule((function(e){var n=this;i.runGuarded((function(){t.apply(n,[e])}))}),e,n)}}]),t}(),ty=function(){function t(e){_classCallCheck(this,t),this.zone=e,this.task=null}return _createClass(t,[{key:"call",value:function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run((function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",Zg,{},Zg,Zg)})),e.pipe(kp(n,n,n)).subscribe(t).add(n)}},{key:"unscheduleTask",value:function(){var t=this;setTimeout((function(){null!=t.task&&"scheduled"===t.task.state&&(t.task.invoke(),t.task=null)}),10)}}]),t}(),ey=function t(e){_classCallCheck(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular((function(){return new Jg(Zone.current)})),this.insideAngular=e.run((function(){return new Jg(Zone.current,Bg)}))};function ny(t,e){return function(e){return(e=e.lift(new ty(t.ngZone))).pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new $g(t,e))}}(t.outsideAngular),Ig(t.insideAngular))}}var iy=["ngOnDestroy"],ry=function(t,e,n){return new Proxy(t,{get:function(i,r){return n.runOutsideAngular((function(){if(t[r])return t[r];if(iy.includes(r))return function(){};var i=e.toPromise().then((function(t){var e=t&&t[r];return"function"==typeof e?e.bind(t):e&&e.then?e.then((function(t){return n.run((function(){return t}))})):n.run((function(){return e}))}));return new Proxy((function(){}),{get:function(t,e){return i[e]},apply:function(t,e,n){return i.then((function(t){return t&&t.apply(void 0,_toConsumableArray(n))}))}})}))}})},oy=new Ht("angularfire2.app.options"),ay=new Ht("angularfire2.app.nameOrConfig"),sy=new eu("6.0.0");function uy(t,e,n){var i="object"==typeof n&&n||{};return i.name=i.name||"string"==typeof n&&n||"[DEFAULT]",Xg.apps.filter((function(t){return t&&t.name===i.name}))[0]||e.runOutsideAngular((function(){return Object(Xg.initializeApp)(t,i)}))}var ly,cy,hy={provide:function t(){_classCallCheck(this,t)},useFactory:uy,deps:[oy,Ll,[new st,ay]]},fy=((cy=function(){function t(e){_classCallCheck(this,t),Object(Xg.registerVersion)("angularfire",sy.full,e.toString()),Object(Xg.registerVersion)("angular",nu.full)}return _createClass(t,null,[{key:"initializeApp",value:function(e,n){return{ngModule:t,providers:[{provide:oy,useValue:e},{provide:ay,useValue:n}]}}}]),t}()).\u0275mod=we({type:cy}),cy.\u0275inj=pt({factory:function(t){return new(t||cy)(Xt(wl))},providers:[hy]}),cy),dy=((ly=function t(e,i,r,o){var a=this;_classCallCheck(this,t),this.router=o,this.canActivate=function(t,e){var n=t.data.authGuardPipe||function(){return my};return a.authState.pipe(ap(1),n(t,e),B((function(t){return"boolean"==typeof t?t:a.router.createUrlTree(t)})))};var s=Dd(void 0).pipe(Ig(new ey(r).outsideAngular),fp((function(){return r.runOutsideAngular((function(){return Promise.resolve().then(n.bind(null,"6AkR"))}))})),Ig(new ey(r).insideAngular),B((function(){return uy(e,r,i)})),B((function(t){return t.auth()})),jg({bufferSize:1,refCount:!1}));this.authState=s.pipe(fp((function(t){return new k(t.onAuthStateChanged.bind(t))})))}).\u0275fac=function(t){return new(t||ly)(Xt(oy),Xt(ay,8),Xt(Ll),Xt(Gv))},ly.\u0275prov=dt({factory:function(){return new ly(Xt(oy),Xt(ay,8),Xt(Ll),Xt(Gv))},token:ly,providedIn:"any"}),ly),py=function(t){return{canActivate:[dy],data:{authGuardPipe:t}}},my=B((function(t){return!!t}));
1function vy(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((i=i.apply(t,e||[])).next())}))}var gy=n("xzff");function yy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={};e&&e.profile&&(i=e.profile);for(var r=i,o=r.name,a=r.fname,s=r.lname,u=r.userfname,l=r.userlname,c=r.userName,h=r.title,f=r.company,d=(t||"").split("##"),p=function(t){var e="",i=_slicedToArray(d[t].split(":"),2),r=i[0],p=i[1];function m(t,n){r===t&&(e=n&&n.length?n:p||"")}"DAYS"===r?e=_y(p):"WEEKDAYS"===r?e=by(p):(m("NAME",o),m("FNAME",a),m("LNAME",s),m("USERFNAME",u),m("USERLNAME",l),m("USERNAME",c),m("TITLE",h),m("COMPANY",f)),d[t]=n?"<span>".concat(e,"</span>"):e},m=1;m<d.length;m+=2)p(m);var v,g,y,_=d.join("");try{_=gy.compile(_)((v={name:o,fname:a,lname:s,userfname:u,userlname:l,userName:c,title:h,company:f},g=(new Date).getDay(),y=0===g||6===g,Object.assign({},v,{is_monday:1===g,is_tuesday:2===g,is_wednesday:3===g,is_thursday:4===g,is_friday:5===g,is_saturday:6===g,is_sunday:0===g,is_weekend:y,is_weekday:!y})))}catch(b){}return _}function _y(t){var e=_slicedToArray(t.split("|"),2),n=e[0],i=e[1],r=n/1,o=new Date;return o.setDate(o.getDate()+r),Ay(o,i)}function by(t){var e=_slicedToArray(t.split("|"),2),n=e[0],i=e[1],r=n/1,o=r>=0;o||(r*=-1);for(var a=new Date,s=0;s<r;s++)a.setDate(a.getDate()+(o?1:-1)),0===a.getDay()?a.setDate(a.getDate()+(o?1:-2)):6===a.getDay()&&a.setDate(a.getDate()+(o?2:-1));return Ay(a,i)}var wy=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"],ky=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Cy=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],xy=["January","February","March","April","May","June","July","August","September","October","November","December"];function Sy(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(e?Cy:xy)[t.getMonth()]}function Ey(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(e?wy:ky)[t.getDay()]}function Iy(t){var e=t.getDate();return e+=e%10==1?"st":e%10==2?"nd":e%10==3?"rd":"th"}function Ay(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";if("0"===e)return Ey(t);if("1"===e)return"".concat(Ey(t),", ").concat(Sy(t)," ").concat(Iy(t));if("2"===e)return"".concat(Ey(t,!0),", ").concat(Sy(t,!0)," ").concat(Iy(t));var n=t.getMonth()+1,i=t.getDate();return"3"===e?"".concat(n,"/").concat(i):"4"===e?"".concat(i,"/").concat(n):void 0}var Ty={profile:{name:"Clark Kent",fname:"Clark",lname:"Kent",userfname:"John",userlname:"Doe",userName:"John Doe",title:"Superman",company:"Justice League"}},Oy=function(){function t(e){_classCallCheck(this,t),this.archived=!1,this.usage=0,Object.assign(this,e),this.preview=yy(this.content,Ty),this.created=Py(e.created),this.updated=Py(e.updated),this.lastUsed=Py(e.lastUsed),this.lastSelected=Py(e.lastSelected)}return _createClass(t,null,[{key:"from",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.filter((function(t){return!!t&&!!t.content&&t.content.length>0})).map((function(e){return new t(e)}))}},{key:"from_includeAll",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.filter((function(t){return!!t})).map((function(e){return new t(e)}))}},{key:"sortBy",value:function(t,e){return t.sort((function(t,n){switch(e){case"recent":return Ry(n.lastUsed,t.lastUsed);case"used":return Ry(n.usage,t.usage);case"latest":return Ry(n.created,t.created);case"lastSelected":return Ry(n.lastSelected,t.lastSelected)}return 0}))}}]),t}(),Dy=function(){function t(e){_classCallCheck(this,t),this.archived=!1,this.favorite=!1,Object.assign(this,e),this.created=Py(e.created),this.updated=Py(e.updated)}return _createClass(t,null,[{key:"from",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.map((function(e){return new t(e)}))}}]),t}();function Py(t){if(t&&t.seconds)return new Date(1e3*t.seconds)}function Ry(t,e){return e=e||0,(t=t||0)&&t.getTime&&(t=t.getTime()),e&&e.getTime&&(e=e.getTime()),t>e?1:t<e?-1:0}var Ny=n("t1LS"),My=n("plFh"),Fy=n.n(My),Ly=n("AmJI");function jy(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bg;return new k((function(n){var i;return null!=e?e.schedule((function(){i=t.onSnapshot(n)})):i=t.onSnapshot(n),function(){null!=i&&i()}}))}(t,e)}function By(t,e){return jy(t,e).pipe(B((function(t){return{payload:t,type:"query"}})))}function Vy(t,e){return By(t,e).pipe(B((function(t){return t.payload.docChanges().map((function(t){return{type:t.type,payload:t}}
1))})))}function Uy(t,e,n){return By(t,n).pipe(B((function(t){return t.payload.docChanges()})),gp((function(t,n){return function(t,e,n){return e.forEach((function(e){n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":t[e.newIndex]&&t[e.newIndex].doc.ref.isEqual(e.doc.ref)||t.splice(e.newIndex,0,e);break;case"modified":(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref))&&(e.oldIndex!==e.newIndex?(t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e)):t.splice(e.newIndex,1,e));break;case"removed":t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref)&&t.splice(e.oldIndex,1)}return t}(t,e))})),t}(t,n,e)}),[]),B((function(t){return t.map((function(t){return{type:t.type,payload:t}}))})))}function Hy(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}var zy=function(){function t(e,n,i){_classCallCheck(this,t),this.ref=e,this.query=n,this.afs=i}return _createClass(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?Vy(this.query,this.afs.schedulers.outsideAngular).pipe(B((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})),Hd((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):Vy(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(gp((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Hy(t);return Uy(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return By(this.query,this.afs.schedulers.outsideAngular).pipe(B((function(e){return e.payload.docs.map((function(e){return t.idField?Object.assign(Object.assign({},e.data()),_defineProperty({},t.idField,e.id)):e.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return z(this.query.get(t)).pipe(Ig(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new qy(this.ref.doc(t),this.afs)}}]),t}(),qy=function(){function t(e,n){_classCallCheck(this,t),this.ref=e,this.afs=n}return _createClass(t,[{key:"set",value:function(t,e){return this.ref.set(t,e)}},{key:"update",value:function(t){return this.ref.update(t)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(t,e){var n=Qy(this.ref.collection(t),e),i=n.ref,r=n.query;return new zy(i,r,this.afs)}},{key:"snapshotChanges",value:function(){return jy(this.ref,this.afs.schedulers.outsideAngular).pipe(B((function(t){return{payload:t,type:"value"}}))).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return this.snapshotChanges().pipe(B((function(t){return t.payload.data()})))}},{key:"get",value:function(t){return z(this.ref.get(t)).pipe(Ig(this.afs.schedulers.insideAngular))}}]),t}(),Wy=function(){function t(e,n){_classCallCheck(this,t),this.query=e,this.afs=n}return _createClass(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?Vy(this.query,this.afs.schedulers.outsideAngular).pipe(B((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})),Hd((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):Vy(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(gp((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Hy(t);return Uy(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return By(this.query,this.afs.schedulers.outsideAngular).pipe(B((function(t){return t.payload.docs.map((function(t){return t.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return z(this.query.get(t)).pipe(Ig(this.afs.schedulers.insideAngular))}}]),t}(),Gy=new Ht("angularfire2.enableFirestorePersistence"),Ky=new Ht("angularfire2.firestore.persistenceSettings"),Yy=new Ht("angularfire2.firestore.settings");function Qy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return{query:e(t),ref:t}}var $y,Xy,Zy=((Xy=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this.schedulers=new ey(a),this.keepUnstableUntilFirst=ny(this.schedulers),this.firestore=a.runOutsideAngular((function(){var t=uy(e,a,n);Ly.registerFirestore&&Object(Ly.registerFirestore)(Fy.a);var i=t.firestore();return r&&i.settings(r),i})),this.persistenceEnabled$=i&&!Bf(o)?a.runOutsideAngular((function(){try{return z(u.firestore.enablePersistence(s||void 0).then((function(){return!0}),(function(){return!1})))}catch(t){return Dd(!1)}})):Dd(!1)}
1return _createClass(t,[{key:"collection",value:function(t,e){var n=Qy("string"==typeof t?this.firestore.collection(t):t,e),i=n.ref,r=n.query;return new zy(i,r,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},i=this.firestore.collectionGroup(t);return new Wy(n(i),this)}},{key:"doc",value:function(t){var e;return e="string"==typeof t?this.firestore.doc(t):t,new qy(e,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),t}()).\u0275fac=function(t){return new(t||Xy)(Xt(oy),Xt(ay,8),Xt(Gy,8),Xt(Yy,8),Xt(wl),Xt(Ll),Xt(Ky,8))},Xy.\u0275prov=dt({factory:function(){return new Xy(Xt(oy),Xt(ay,8),Xt(Gy,8),Xt(Yy,8),Xt(wl),Xt(Ll),Xt(Ky,8))},token:Xy,providedIn:"any"}),Xy),Jy=(($y=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:Gy,useValue:!0},{provide:Ky,useValue:e}]}}}]),t}()).\u0275mod=we({type:$y}),$y.\u0275inj=pt({factory:function(t){return new(t||$y)},providers:[Zy]}),$y);function t_(t){return null!=t&&"false"!=="".concat(t)}function e_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n_(t)?Number(t):e}function n_(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function i_(t){return Array.isArray(t)?t:[t]}function r_(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function o_(t){return t instanceof Ys?t.nativeElement:t}function a_(t,e,n,r){return i(n)&&(r=n,n=void 0),r?a_(t,e,n).pipe(B((function(t){return u(t)?r.apply(void 0,_toConsumableArray(t)):r(t)}))):new k((function(i){!function t(e,n,i,r,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,i),a=function(){return u.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,i),a=function(){return l.removeListener(n,i)}}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,i,r,o)}r.add(a)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var s_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;
1return _classCallCheck(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return _createClass(n,[{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(Dg),u_=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}}}]),n}(Ng))(s_);function l_(t,e){return function(n){return n.lift(new c_(t,e))}}var c_=function(){function t(e,n){_classCallCheck(this,t),this.compare=e,this.keySelector=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new h_(t,this.compare,this.keySelector))}}]),t}(),h_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}]),n}(m),f_=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new d_(t,this.durationSelector))}}]),t}(),d_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).durationSelector=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var n=L(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,n,i){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(j);function p_(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Yg(e)?i=Number(e)<1?1:Number(e):O(e)&&(n=e),O(n)||(n=Bg),new k((function(e){var r=Yg(t)?t:+t-n.now();return n.schedule(m_,r,{index:0,period:i,subscriber:e})}))}function m_(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function v_(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bg;return e=function(){return p_(t,n)},function(t){return t.lift(new f_(e))}}function g_(t){return function(e){return e.lift(new __(t))}}var y_,__=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new b_(t),i=L(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),b_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(j),w_=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new k_(t))}}]),t}(),k_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).hasPrev=!1,i}return _createClass(n,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),n}(m);try{y_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Y0){y_=!1}var C_,x_,S_,E_,I_,A_,T_=((S_=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?jf(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
1sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!y_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(t){return new(t||S_)(Xt(wl,8))},S_.\u0275prov=dt({factory:function(){return new S_(Xt(wl,8))},token:S_,providedIn:"root"}),S_),O_=((x_=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:x_}),x_.\u0275inj=pt({factory:function(t){return new(t||x_)}}),x_),D_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P_(){if(C_)return C_;if("object"!=typeof document||!document)return C_=new Set(D_);var t=document.createElement("input");return C_=new Set(D_.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function R_(t){return function(){if(null==E_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return E_=!0}}))}finally{E_=E_||!1}return E_}()?t:!!t.capture}function N_(){if("object"!=typeof document||!document)return 0;if(null==I_){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),I_=0,0===t.scrollLeft&&(t.scrollLeft=1,I_=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return I_}function M_(t){if(function(){if(null==A_){var t="undefined"!=typeof document?document.head:null;A_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return A_}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var F_,L_,j_,B_=new Ht("cdk-dir-doc",{providedIn:"root",factory:function(){return Zt(_c)}}),V_=((j_=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new Ku,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||j_)(Xt(B_,8))},j_.\u0275prov=dt({factory:function(){return new j_(Xt(B_,8))},token:j_,providedIn:"root"}),j_),U_=((L_=function(){function t(){_classCallCheck(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new Ku}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}()).\u0275fac=function(t){return new(t||L_)},L_.\u0275dir=Ce({type:L_,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[qs([{provide:V_,useExisting:L_}])]}),L_),H_=((F_=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:F_}),F_.\u0275inj=pt({factory:function(t){return new(t||F_)}}),F_);function z_(t){return t&&"function"==typeof t.connect}var q_,W_,G_,K_,Y_,Q_,$_=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new A,i&&i.length&&(n?i.forEac
1h((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(e){return t._markSelected(e)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(e){return t._unmarkSelected(e)})),this._emitChangeEvent()}},{key:"toggle",value:function(t){this.isSelected(t)?this.deselect(t):this.select(t)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(t){return this._selection.has(t)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(t){this._multiple&&this.selected&&this._selected.sort(t)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}},{key:"_unmarkSelected",value:function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}},{key:"_unmarkAll",value:function(){var t=this;this.isEmpty()||this._selection.forEach((function(e){return t._unmarkSelected(e)}))}},{key:"_verifyValueAssignment",value:function(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),X_=((Q_=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var n,i=_createForOfIteratorHelper(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(r){i.e(r)}finally{i.f()}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}()).\u0275fac=function(t){return new(t||Q_)},Q_.\u0275prov=dt({factory:function(){return new Q_},token:Q_,providedIn:"root"}),Q_),Z_=((Y_=function(){function t(e,n,i){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new k((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(v_(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Dd()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Hd((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return a_(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||Y_)(Xt(Ll),Xt(T_),Xt(_c,8))},Y_.\u0275prov=dt({factory:function(){return new Y_(Xt(Ll),Xt(T_),Xt(_c,8))},token:Y_,providedIn:"root"}),Y_),J_=((K_=function(){function t(e,n,i,r){var o=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new A,this._elementScrolled=new k((function(t){return o.ngZone.runOutsideAngular((function(){return a_(o.elementRef.nativeElement,"scroll").pipe(g_(o._destroyed)).subscribe(t)}))}
1))}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=N_()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==N_()?t.left=t.right:1==N_()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==N_()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==N_()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||K_)(Oa(Ys),Oa(Z_),Oa(Ll),Oa(V_,8))},K_.\u0275dir=Ce({type:K_,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),K_),tb=((G_=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this._platform=e,this._document=i,n.runOutsideAngular((function(){var t=r._getWindow();r._change=e.isBrowser?Q(a_(t,"resize"),a_(t,"orientationchange")):Dd(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(v_(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||G_)(Xt(T_),Xt(Ll),Xt(_c,8))},G_.\u0275prov=dt({factory:function(){return new G_(Xt(T_),Xt(Ll),Xt(_c,8))},token:G_,providedIn:"root"}),G_),eb=((W_=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:W_}),W_.\u0275inj=pt({factory:function(t){return new(t||W_)}}),W_),nb=((q_=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:q_}),q_.\u0275inj=pt({factory:function(t){return new(t||q_)},imports:[[H_,O_,eb],H_,eb]}),q_);function ib(){throw Error("Host already has a portal attached")}var rb,ob,ab,sb,ub=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&ib(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),lb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this)).component=t,a.viewContainerRef
1=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(ub),cb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(ub),hb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).element=t instanceof Ys?t.nativeElement:t,i}return n}(ub),fb=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ib(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof lb?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof cb?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof hb?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),db=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=e.call(this)).outletElement=t,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(t){if(!u._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=u._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),u.outletElement.appendChild(e),_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(fb),pb=((ab=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,t,i)}return n}(cb)).\u0275fac=function(t){return new(t||ab)(Oa(yu),Oa(bu))},ab.\u0275dir=Ce({type:ab,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[As]}),ab),mb=((ob=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o,a;return _classCallCheck(this,n),(a=e.call(this))._componentFactoryResolver=t,a._viewContainerRef
1=i,a._isInitialized=!1,a.attached=new Ku,a.attachDomPortal=function(t){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=a._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(a)),e.parentNode.insertBefore(i,e),a._getRootNode().appendChild(e),_get((o=_assertThisInitialized(a),_getPrototypeOf(n.prototype)),"setDisposeFn",o).call(o,(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},a._document=r,a}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return r.destroy()})),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(fb)).\u0275fac=function(t){return new(t||ob)(Oa(Ks),Oa(bu),Oa(_c))},ob.\u0275dir=Ce({type:ob,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[As]}),ob),vb=((rb=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(mb)).\u0275fac=function(t){return gb(t||rb)},rb.\u0275dir=Ce({type:rb,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[qs([{provide:mb,useExisting:rb}]),As]}),rb),gb=fi(vb),yb=((sb=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:sb}),sb.\u0275inj=pt({factory:function(t){return new(t||sb)}}),sb),_b=function(){function t(e,n){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=n}return _createClass(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}();function bb(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.length?n.some((function(e){return t[e]})):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var wb=function(){function t(e,n){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=r_(-this._previousScrollPosition.left),t.style.top=r_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function kb(){return Error("Scroll strategy has already been attached.")}var Cb=function(){function t(e,n,i,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler
1=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw kb();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),xb=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Sb(t,e){return e.some((function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right}))}function Eb(t,e){return e.some((function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}))}var Ib,Ab=function(){function t(e,n,i,r){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw kb();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Sb(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Tb=((Ib=function t(e,n,i,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new xb},this.close=function(t){return new Cb(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new wb(o._viewportRuler,o._document)},this.reposition=function(t){return new Ab(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r}).\u0275fac=function(t){return new(t||Ib)(Xt(Z_),Xt(tb),Xt(Ll),Xt(_c))},Ib.\u0275prov=dt({factory:function(){return new Ib(Xt(Z_),Xt(tb),Xt(Ll),Xt(_c))},token:Ib,providedIn:"root"}),Ib),Ob=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new xb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];void 0!==e[r]&&(this[r]=e[r])}},Db=function t(e,n,i,r,o){_classCallCheck(this,t),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=e.originX,this.originY=e.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},Pb=function t(e,n){_classCallCheck(this,t),this.connectionPair=e,this.scrollableViewProperties=n};function Rb(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "top", "bottom" or "center".')}function Nb(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "start", "end" or "center".')}var Mb,Fb,Lb=((Mb=function(){function t(e){var n=this;_classCallCheck(this,t),this._attachedOverlays=[],this._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;
1i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||Mb)(Xt(_c))},Mb.\u0275prov=dt({factory:function(){return new Mb(Xt(_c))},token:Mb,providedIn:"root"}),Mb),jb=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Bb=((Fb=function(){function t(e,n){_classCallCheck(this,t),this._platform=n,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||jb)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);var i=this._document.createElement("div");i.classList.add("cdk-overlay-container"),jb?i.setAttribute("platform","test"):t||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),t}()).\u0275fac=function(t){return new(t||Fb)(Xt(_c),Xt(T_))},Fb.\u0275prov=dt({factory:function(){return new Fb(Xt(_c),Xt(T_))},token:Fb,providedIn:"root"}),Fb),Vb=function(){function t(e,n,i,r,o,a,s,u){var l=this;_classCallCheck(this,t),this._portalOutlet=e,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=u,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=f.EMPTY,this._backdropClickHandler=function(t){return l._backdropClick.next(t)},this._keydownEvents=new A,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return _createClass(t,[{key:"attach",value:function(t){var e=this,n=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe((function(){e.hasAttached()&&e.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return e.dispose()}))),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._key
1downEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEvents.asObservable()}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=r_(this._config.width),t.height=r_(this._config.height),t.minWidth=r_(this._config.minWidth),t.minHeight=r_(this._config.minHeight),t.maxWidth=r_(this._config.maxWidth),t.maxHeight=r_(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"auto":"none"}},{key:"_attachBackdrop",value:function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t,e=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",e._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),e._backdropElement==n&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(n,e._config.backdropClass,!1),clearTimeout(t)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){n.addEventListener("transitionend",i)})),n.style.pointerEvents="none",t=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}}},{key:"_toggleClasses",value:function(t,e,n){var i=t.classList;i_(e).forEach((function(t){t&&(n?i.add(t):i.remove(t))}))}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._ngZone.onStable.asObservable().pipe(g_(Q(t._attachments,t._detachments))).subscribe((function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),t}(),Ub=/([A-Za-z%]+)$/,Hb=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this._viewportRuler
1=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new A,this._resizeSubscription=f.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(e)}return _createClass(t,[{key:"attach",value:function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){e._isInitialRender=!0,e.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var t,e,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=_createForOfIteratorHelper(this._preferredPositions);try{for(a.s();!(e=a.n()).done;){var s=e.value,u=this._getOriginPoint(n,s),l=this._getOverlayPoint(u,i,s),c=this._getOverlayFit(l,i,r,s
1);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,u);this._canFitWithFlexibleDimensions(c,l,r)?o.push({position:s,origin:u,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(u,s)}):(!t||t.overlayFit.visibleArea<c.visibleArea)&&(t={overlayFit:c,overlayPoint:l,originPoint:u,position:s,overlayRect:i})}}catch(g){a.e(g)}finally{a.f()}if(o.length){var h,f=null,d=-1,p=_createForOfIteratorHelper(o);try{for(p.s();!(h=p.n()).done;){var m=h.value,v=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);v>d&&(d=v,f=m)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&zb(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,u,l),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:e.width*e.height===f,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=qb(this._overlayRef.getConfig().minHeight),a=qb(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),u=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);return i=e.width<=o.width?l||-a:t.x<this._viewportMargin?o.left-n.left-t.x:0,r=e.height<=o.height?u||-s:t.y<this._viewportMargin?o.top-n.top-t.y:0,this._previousPushAmount={x:i,y:r},{x:t.x+i,y:t.y+r}}},{key:"_applyPosition",value:function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new Pb(t,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(e," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(t,e){var n,i,r,o,a,s,u=this._viewportRect,l=this._isRtl();if("top"===e.overlayY)i=t.y,n=u.height-i+this._viewportMargin;else if("bottom"===e.overlayY)r=u.height-t.y+2*this._viewportMargin,n=u.height-r+this._viewportMargin;else{var c=Math.min(u.bottom-t.y+u.top,t.y),h=this._lastBoundingBoxSize.height;n=2*c,i=t.y-c,n>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}
1if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)a=t.x,o=u.right-t.x;else{var f=Math.min(u.right-t.x+u.left,t.x),d=this._lastBoundingBoxSize.width;o=2*f,a=t.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=r_(n.height),i.top=r_(n.top),i.bottom=r_(n.bottom),i.width=r_(n.width),i.left=r_(n.left),i.right=r_(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=r_(r)),o&&(i.maxWidth=r_(o))}this._lastBoundingBoxSize=n,zb(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){zb(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){zb(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();zb(n,this._getExactOverlayY(e,t,a)),zb(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=r_(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=r_(o.maxWidth):r&&(n.maxWidth="")),zb(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=r_(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=r_(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Eb(t,n),isOriginOutsideView:Sb(t,n),isOverlayClipped:Eb(e,n),isOverlayOutsideView:Sb(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.reduce((function(t,e){return t-Math.max(e,0)}),t)}},{key:"_getNarrowedViewportRect",value:function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(t){Nb("originX",t.originX),Rb("originY",t.originY),Nb("overlayX",t.overlayX),Rb("overlayY",t.overlayY)}))}},{key:"_addPanelClasses",value:function(t){var e=this;this._pane&&i_(t).forEach((function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))}))}},{key:"_clearPanelClasses",value:function(){var t=this;
1this._pane&&(this._appliedPanelClasses.forEach((function(e){t._pane.classList.remove(e)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof Ys)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}},{key:"positions",get:function(){return this._preferredPositions}}]),t}();function zb(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function qb(t){if("number"!=typeof t&&null!=t){var e=_slicedToArray(t.split(Ub),2),n=e[0],i=e[1];return i&&"px"!==i?null:parseFloat(n)}return t||null}var Wb,Gb,Kb,Yb,Qb,$b=function(){function t(e,n,i,r,o,a,s){_classCallCheck(this,t),this._preferredPositions=[],this._positionStrategy=new Hb(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,n)}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,e,n,i){var r=new Db(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}},{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}}]),t}(),Xb=function(){function t(){_classCallCheck(this,t),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(t,[{key:"attach",value:function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100v
1w"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),Zb=((Gb=function(){function t(e,n,i,r){_classCallCheck(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(t,[{key:"global",value:function(){return new Xb}},{key:"connectedTo",value:function(t,e,n){return new $b(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Hb(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Gb)(Xt(tb),Xt(_c),Xt(T_),Xt(Bb))},Gb.\u0275prov=dt({factory:function(){return new Gb(Xt(tb),Xt(_c),Xt(T_),Xt(Bb))},token:Gb,providedIn:"root"}),Gb),Jb=0,tw=((Wb=function(){function t(e,n,i,r,o,a,s,u,l,c){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Ob(t);return r.direction=r.direction||this._directionality.value,new Vb(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Jb++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(ic)),new db(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Wb)(Xt(Tb),Xt(Bb),Xt(Ks),Xt(Zb),Xt(Lb),Xt(fa),Xt(Ll),Xt(_c),Xt(V_),Xt(Bc,8))},Wb.\u0275prov=dt({token:Wb,factory:Wb.\u0275fac}),Wb),ew=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nw=new Ht("cdk-connected-overlay-scroll-strategy"),iw=((Yb=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Yb)(Oa(Ys))},Yb.\u0275dir=Ce({type:Yb,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Yb),rw=((Kb=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=f.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Ku,this.positionChange=new Ku,this.attach=new Ku,this.detach=new Ku,this.overlayKeydown=new Ku,this._templatePortal=new cb(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=ew),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||bb(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Ob({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=t_(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=t_(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions}
1,set:function(t){this._flexibleDimensions=t_(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=t_(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=t_(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Kb)(Oa(tw),Oa(yu),Oa(bu),Oa(nw),Oa(V_,8))},Kb.\u0275dir=Ce({type:Kb,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[Ns]}),Kb),ow={provide:nw,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},aw=((Qb=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Qb}),Qb.\u0275inj=pt({factory:function(t){return new(t||Qb)},providers:[tw,ow],imports:[[H_,yb,nb],nb]}),Qb);function sw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bg;return function(n){return n.lift(new uw(t,e))}}var uw=function(){function t(e,n){_classCallCheck(this,t),this.dueTime=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new lw(t,this.dueTime,this.scheduler))}}]),t}(),lw=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(cw,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(m);function cw(t){t.debouncedNext()}var hw,fw,dw,pw,mw=((pw=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}()).\u0275fac=function(t){return new(t||pw)},pw.\u0275prov=dt({factory:function(){return new pw},token:pw,providedIn:"root"}),pw),vw=((dw=function(){function t(e){_classCallCheck(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))}},{key:"observe",value:function(t){var e=this,n=o_(t);return new k((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new A,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}()).\u0275fac=function(t){return new(t||dw)(Xt(mw))},dw.\u0275prov=dt({factory:function(){return new dw(Xt(mw))},token:dw,providedIn:"root"}),dw),gw=((fw=function(){function t(e,n,i){_classCallCheck(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Ku,this._disabled=!1,this._currentSubscription=null}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(sw(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=e_(t),this._subscribe()}}]),t}()).\u0275fac=function(t){return new(t||fw)(Oa(vw),Oa(Ys),Oa(Ll))},fw.\u0275dir=Ce({type:fw,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}
1),fw),yw=((hw=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:hw}),hw.\u0275inj=pt({factory:function(t){return new(t||hw)},providers:[mw]}),hw);function _w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var bw,ww,kw=0,Cw=new Map,xw=null,Sw=((bw=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Cw.set(e,{messageElement:e,referenceCount:0})):Cw.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=Cw.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}xw&&0===xw.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");xw&&this._deleteMessagesContainer(),Cw.clear()}},{key:"_createMessageElement",value:function(t){var e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),xw.appendChild(e),Cw.set(t,{messageElement:e,referenceCount:0})}},{key:"_setMessageId",value:function(t){t.id||(t.id="cdk-describedby-message-".concat(kw++))}},{key:"_deleteMessageElement",value:function(t){var e=Cw.get(t),n=e&&e.messageElement;xw&&n&&xw.removeChild(n),Cw.delete(t)}},{key:"_createMessagesContainer",value:function(){if(!xw){var t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(xw=this._document.createElement("div")).id="cdk-describedby-message-container",xw.setAttribute("aria-hidden","true"),xw.style.display="none",this._document.body.appendChild(xw)}}},{key:"_deleteMessagesContainer",value:function(){xw&&xw.parentNode&&(xw.parentNode.removeChild(xw),xw=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(t){var e=_w(t,"aria-describedby").filter((function(t){return 0!=t.indexOf("cdk-describedby-message")}));t.setAttribute("aria-describedby",e.join(" "))}},{key:"_addMessageReference",value:function(t,e){var n,i,r,o,a=Cw.get(e);n=t,i="aria-describedby",r=a.messageElement.id,(o=_w(n,i)).some((function(t){return t.trim()==r.trim()}))||(o.push(r.trim()),n.setAttribute(i,o.join(" "))),t.setAttribute("cdk-describedby-host",""),a.referenceCount++}},{key:"_removeMessageReference",value:function(t,e){var n,i,r,o,a=Cw.get(e);a.referenceCount--,n=t,i="aria-describedby",r=a.messageElement.id,(o=_w(n,i).filter((function(t){return t!=r.trim()}))).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),t.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(t,e){var n=_w(t,"aria-describedby"),i=Cw.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;var n=null==e?"":"".concat(e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(t){return t.nodeType===this._document.ELEMENT_NODE}}]),t}()).\u0275fac=function(t){return new(t||bw)(Xt(_c))},bw.\u0275prov=dt({factory:function(){return new bw(Xt(_c))},token:bw,providedIn:"root"}),bw),Ew=function(){function t(e){var n=this;_classCallCheck(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=f.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new A,this.change=new A,e instanceof Qu&&e.changes.subscribe((function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");
1return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(kp((function(e){return t._pressedLetters.push(e)})),sw(e),Hd((function(){return t._pressedLetters.length>0})),B((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i<n.length+1;i++){var r=(t._activeItemIndex+i)%n.length,o=n[r];if(!t._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(r);break}}t._pressedLetters=[]})),this}},{key:"setActiveItem",value:function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||bb(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),Iw=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Ew),Aw=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._origin="program",t}return _createClass(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Ew),Tw=((ww=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(Y0){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Dw(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}
1var r=t.nodeName.toLowerCase(),o=Dw(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ow(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||ww)(Xt(T_))},ww.\u0275prov=dt({factory:function(){return new ww(Xt(T_))},token:ww,providedIn:"root"}),ww);function Ow(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Dw(t){if(!Ow(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Pw,Rw=function(){function t(e,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Ai()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focu
1s(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t}},{key:"focusLastTabbableElement",value:function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),Nw=((Pw=function(){function t(e,n,i){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._document=i}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Rw(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||Pw)(Xt(Tw),Xt(Ll),Xt(_c))},Pw.\u0275prov=dt({factory:function(){return new Pw(Xt(Tw),Xt(Ll),Xt(_c))},token:Pw,providedIn:"root"}),Pw);"undefined"!=typeof Element&∈var Mw,Fw=new Ht("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lw=new Ht("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jw=((Mw=function(){function t(e,n,i,r){_classCallCheck(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(e=_slicedToArray(s,2))[0],i=e[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),null==i&&o&&(i=o.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular((function(){return new Promise((function(e){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout((function(){r._liveElement.textContent=t,e(),"number"==typeof i&&(r._previousTimeout=setTimeout((function(){return r.clear()}),i))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}]),t}()).\u0275fac=function(t){return new(t||Mw)(Xt(Fw,8),Xt(Ll),Xt(_c),Xt(Lw,8))},Mw.\u0275prov=dt({factory:function(){return new Mw(Xt(Fw,8),Xt(Ll),Xt(_c),Xt(Lw,8))},token:Mw,providedIn:"root"}),Mw);function Bw(t){return 0===t.buttons}var Vw,Uw=new Ht("cdk-focus-monitor-default-options"),Hw=R_({passive:!0,capture:!0}),zw=((Vw=function(){function t(e,n,i,r){var o=this;_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!o._lastTouchTarget){var e=Bw(t)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=qw(t),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(t){for(var e=qw(t),n="focus"===t.type?o._onFocus:o._onBlur,i=e;i;i=i.parentElement)n.call(o,t,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return _createClass(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Dd(null);var n=o_(t),i=M_(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();
1var o={checkChildren:e,subject:new A,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=o_(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=o_(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=qw(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===qw(t))){var i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,Hw),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,Hw)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,Hw),t.addEventListener("mousedown",e._documentMousedownListener,Hw),t.addEventListener("touchstart",e._documentTouchstartListener,Hw),n.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hw),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hw),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Hw),i.removeEventListener("mousedown",this._documentMousedownListener,Hw),i.removeEventListener("touchstart",this._documentTouchstartListener,Hw),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}()).\u0275fac=function(t){return new(t||Vw)(Xt(Ll),Xt(T_),Xt(_c,8),Xt(Uw,8))},Vw.\u0275prov=dt({factory:function(){return new Vw(Xt(Ll),Xt(T_),Xt(_c,8),Xt(Uw,8))},token:Vw,providedIn:"root"}),Vw);function qw(t){return t.composedPath?t.composedPath()[0]:t.target}var Ww,Gw,Kw,Yw=((Kw=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Ku,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return i.cdkFocusChange.emit(t)}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||Kw)(Oa(Ys),Oa(zw))},Kw.\u0275dir=Ce({type:Kw,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Kw),Qw=((Gw=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._document=n}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}}
1,{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}()).\u0275fac=function(t){return new(t||Gw)(Xt(T_),Xt(_c))},Gw.\u0275prov=dt({factory:function(){return new Gw(Xt(T_),Xt(_c))},token:Gw,providedIn:"root"}),Gw),$w=((Ww=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=we({type:Ww}),Ww.\u0275inj=pt({factory:function(t){return new(t||Ww)(Xt(Qw))},imports:[[O_,yw]]}),Ww),Xw=new eu("9.2.4"),Zw=function t(){_classCallCheck(this,t)};function Jw(t,e){return{type:7,name:t,definitions:e,options:{}}}function tk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function ek(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function nk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function ik(t){return{type:6,styles:t,offset:null}}function rk(t,e,n){return{type:0,name:t,styles:e,options:n}}function ok(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function ak(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function sk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function uk(t){Promise.resolve(null).then(t)}var lk=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;uk((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),ck=function(){function t(e){var n=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,a=this.players.length;0==a?uk((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==a&&n._onFinish()})),t.onDestroy((function(){++r==a&&n._onDestroy()})),t.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}}
1,{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function hk(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function fk(t){switch(t.length){case 0:return new lk;case 1:return t[0];default:return new ck(t)}}function dk(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(i.forEach((function(t){var n=t.offset,i=n==u,c=i&&l||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}c[i]=s})),i||s.push(c),l=c,u=n})),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function pk(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&mk(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&mk(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&mk(n,"destroy",t))}))}}function mk(t,e,n){var i=n.totalTime,r=vk(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function vk(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function gk(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function yk(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var _k=function(t,e){return!1},bk=function(t,e){return!1},wk=function(t,e,n){return[]},kk=hk();(kk||"undefined"!=typeof Element)&&(_k=function(t,e){return t.contains(e)},bk=function(){if(kk||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:bk}(),wk=function(t,e,n){var i=[];if(n)i.push.apply(i,_toConsumableArray(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i});var Ck=null,xk=!1;function Sk(t){Ck||(Ck=("undefined"!=typeof document?document.body:null)||{},xk=!!Ck.style&&"WebkitAppearance"in Ck.style);var e=!0;return Ck.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in Ck.style)&&xk)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ck.style),e}var Ek=bk,Ik=_k,Ak=wk;function Tk(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var Ok,Dk=((Ok=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return Sk(t)}},{key:"matchesElement",value:function(t,e){return Ek(t,e)}},{key:"containsElement",value:function(t,e){return Ik(t,e)}},{key:"query",value:function(t,e,n){return Ak(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,r){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new lk(n,i)}}]),t}()).\u0275fac=function(t){return new(t||Ok)},Ok.\u0275prov=dt({token:Ok,factory:Ok.\u0275fac}),Ok),Pk=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new Dk,t}();function Rk(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Nk(parseFloat(e[1]),e[2])}function Nk(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Mk(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'.concat(t,'" is invali
1d.')),{duration:0,delay:0,easing:""};i=Nk(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=Nk(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=t;if(!n){var l=!1,c=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(t,e,n)}function Fk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function Lk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else Fk(t,n);return n}function jk(t,e,n){return n?e+":"+n+";":""}function Bk(t){for(var e="",n=0;n<t.style.length;n++){var i=t.style.item(n);e+=jk(0,i,t.style.getPropertyValue(i))}for(var r in t.style)t.style.hasOwnProperty(r)&&!r.startsWith("_")&&(e+=jk(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[r]));t.setAttribute("style",e)}function Vk(t,e,n){t.style&&(Object.keys(e).forEach((function(i){var r=Yk(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]})),hk()&&Bk(t))}function Uk(t,e){t.style&&(Object.keys(e).forEach((function(e){var n=Yk(e);t.style[n]=""})),hk()&&Bk(t))}function Hk(t){return Array.isArray(t)?1==t.length?t[0]:nk(t):t}var zk=new RegExp("{{\\s*(.+?)\\s*}}","g");function qk(t){var e=[];if("string"==typeof t){for(var n;n=zk.exec(t);)e.push(n[1]);zk.lastIndex=0}return e}function Wk(t,e,n){var i=t.toString(),r=i.replace(zk,(function(t,i){var r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()}));return r==i?t:r}function Gk(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Kk=/-+([a-z0-9])/g;function Yk(t){return t.replace(Kk,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e[1].toUpperCase()}))}function Qk(t,e){return 0===t||0===e}function $k(t,e,n){var i=Object.keys(n);if(i.length&&e.length){var r=e[0],o=[];if(i.forEach((function(t){r.hasOwnProperty(t)||o.push(t),r[t]=n[t]})),o.length)for(var a=function(){var n=e[s];o.forEach((function(e){n[e]=Zk(t,e)}))},s=1;s<e.length;s++)a()}return e}function Xk(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #".concat(e.type))}}function Zk(t,e){return window.getComputedStyle(t)[e]}var Jk=new Set(["true","1"]),tC=new Set(["false","0"]);function eC(t,e){var n=Jk.has(t)||tC.has(t),i=Jk.has(e)||tC.has(e);return function(r,o){var a="*"==t||t==r,s="*"==e||e==o;return!a&&n&&"boolean"==typeof r&&(a=r?Jk.has(t):tC.has(t)),!s&&i&&"boolean"==typeof o&&(s=o?Jk.has(e):tC.has(e)),a&&s}}var nC=new RegExp("s*:selfs*,?","g");function iC(t,e,n){return new rC(t).build(e,n)}var rC=function(){function t(e){_classCallCheck(this,t),this._driver=e}return _createClass(t,[{key:"build",value:function(t,e){var n=new oC(e);return this._resetContextStyleTimingState(n),Xk(this,Hk(t),n)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,u=s.name;u.toString().split(/\s*,\s*/).forEach((function(t){s.name=t,o.push(n.visitState(s,e))})),s.name=u}else if(1==t.type){var l=n.visitTransition(t,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};
1if(n.styles.forEach((function(t){if(aC(t)){var e=t;Object.keys(e).forEach((function(t){qk(e[t]).forEach((function(t){o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){var a=Gk(r.values());e.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n,i,r,o=Xk(this,Hk(t.animation),e);return{type:1,matchers:(n=t.expr,i=e.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(t){return function(t,e,n){if(":"==t[0]){var i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'.concat(t,'" is not supported')),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(eC(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(eC(s,o))}(t,r,i)})):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:sC(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return Xk(n,t,e)})),options:sC(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map((function(t){e.currentTime=i;var o=Xk(n,t,e);return r=Math.max(r,e.currentTime),o}));return e.currentTime=r,{type:3,steps:o,options:sC(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return uC(Mk(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=uC(0,0,"");return r.dynamic=!0,r.strValue=i,r}return uC((n=n||Mk(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:ik({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=ik(s)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(aC(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l,c,h=e.collectedStyles[e.currentQuerySelector],f=h[i],d=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=f.startTime),d&&(h[i]={startTime:o,endTime:r}),e.options&&(a=t[i],s=e.options,u=e.errors,l=s.params||{},(c=qk(a)).length&&c.forEach((function(t){l.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=t.steps.map((function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(aC(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(aC(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c<u,u=c,o.push(c),i}));s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,h=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(c-1));var f=c-1,d=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return l.forEach((function(t,r){var a=h>0?r==f?1:h*r:o[r],s=a*m;e.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Xk(this,Hk(t.animation),e),options:sC(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:sC(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:sC(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));
1return e&&(t=t.replace(nC,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,gk(e.collectedStyles,e.currentQuerySelector,{});var s=Xk(this,Hk(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:sC(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Mk(t.timings,e.errors,!0);return{type:12,animation:Xk(this,Hk(t.animation),e),timings:n,options:null}}}]),t}(),oC=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function aC(t){return!Array.isArray(t)&&"object"==typeof t}function sC(t){var e;return t?(t=Fk(t)).params&&(t.params=(e=t.params)?Fk(e):null):t={},t}function uC(t,e,n){return{duration:t,delay:e,easing:n}}function lC(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var cC=function(){function t(){_classCallCheck(this,t),this._map=new Map}
1return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),hC=new RegExp(":enter","g"),fC=new RegExp(":leave","g");function dC(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new pC).buildKeyframes(t,e,n,i,r,o,a,s,u,l)}var pC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new cC;var c=new vC(t,e,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Xk(this,n,c);var h=c.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[lC(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?Rk(n.duration):null,o=null!=n.delay?Rk(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Xk(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=mC);var a=Rk(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return Xk(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Rk(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Xk(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return Mk(e.params?Wk(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;
1o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Rk(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=mC);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(u=s.currentTimeline),Xk(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Xk(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),t}(),mC={},vC=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new gC(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=Rk(i.duration)),null!=i.delay&&(r.delay=Rk(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=W
1k(o[t],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=mC,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new yC(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(hC,"."+this._enterClassName)).replace(fC,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),t}(),gC=function(){function t(e,n,i,r){_classCallCheck(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}
1return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):Lk(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=Wk(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=Lk(o,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=a/t.duration),r.push(s)}));var o=e.size?Gk(e.values()):[],a=n.size?Gk(n.values()):[];if(i){var s=r[0],u=Fk(s);s.offset=0,u.offset=1,r=[s,u]}return lC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),yC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=e.call(this,t,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}
1return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=Lk(t[0],!1);u.offset=0,o.push(u);var l=Lk(t[0],!1);l.offset=_C(s),o.push(l);for(var c=t.length-1,h=1;h<=c;h++){var f=Lk(t[h],!1);f.offset=_C((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",t=o}return lC(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(gC);function _C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var bC=function t(){_classCallCheck(this,t)},wC=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(t,e){return Yk(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",o=n.toString().trim();if(kC[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+r}}]),n}(bC),kC=function(t){var e={};return t.forEach((function(t){return e[t]=!0})),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function CC(t,e,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var xC={},SC=function(){function t(e,n,i){_classCallCheck(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return _createClass(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||xC,f=this.buildStyles(n,a&&a.params||xC,c),d=s&&s.params||xC,p=this.buildStyles(i,d,c),m=new Set,v=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:dC(t,e,this.ast.animation,r,o,f,p,_,u,c),w=0;if(b.forEach((function(t){w=Math.max(t.duration+t.delay,w)})),c.length)return CC(e,this._triggerName,n,i,y,f,p,[],[],v,g,w,c);b.forEach((function(t){var n=t.element,i=gk(v,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=gk(g,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&m.add(n)}));var k=Gk(m.values());return CC(e,this._triggerName,n,i,y,f,p,b,k,v,g,w)}}]),t}(),EC=function(){function t(e,n){_classCallCheck(this,t),this.styles=e,this.defaultParams=n}return _createClass(t,[{key:"buildStyles",value:function(t,e){var n={},i=Fk(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var o=r[t];o.length>1&&(o=Wk(o,i,e)),n[t]=o}))}})),n}}]),t}(),IC=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new EC(t.style,t.options&&t.options.params||{})})),AC(this.states,"true","1"),AC(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new SC(e,t,i.states))})),this.fallbackTransition=new SC(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function AC(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var TC=new cC,OC=function(){function t(e,n,i){_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var n=[],i=iC(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=dk(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=dC(this._driver,e,a,"ng-enter","ng-leave",{},{}
1,r,TC,o)).forEach((function(t){var e=gk(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var u=fk(n.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return i.destroy(t)})),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=vk(e,"","","");return pk(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),DC=[],PC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},RC={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},NC=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=n;var i,r=e&&e.hasOwnProperty("value");if(this.value=null!=(i=r?e.value:e)?i:null,r){var o=Fk(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),MC=new NC("void"),FC=function(){function t(e,n,i){_classCallCheck(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,zC(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=gk(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var u=gk(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(zC(t,"ng-trigger"),zC(t,"ng-trigger-"+e),u[e]=MC),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new jC(this.id,e,t),s=this._engine.statesByElement.get(t);s||(zC(t,"ng-trigger"),zC(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new NC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=MC),"void"===l.value||u.value!==l.value){var c=gk(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=o.matchTransition(u.value,l.value,t,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(zC(t,"ng-animate-queued"),a.onStart((function(){qC(t,"ng-animate-queued")}))),a.onDone((function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}})),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(u.params,l.params)){var d=[],p=o.matchStyles(u.value,u.params,d),m=o.matchStyles(l.value,l.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush((function(){Uk(t,p),Vk(t,m)}))}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,i){e._elementListeners.set(i,n.filter((function(e){return e.name!=t})))}))}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach((function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(t){return n.clearElementCache(t)}))}))}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach((function(e){if(r._triggers[e]){var n=r.trigger(t,e,"void",i);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&fk(a).onDone((function(){return r._engine.processLeaveNode(t)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=e._triggers[r].fallbackTransition,a=e._engine.statesByElement.get(t)[r]||MC,s=new NC("void"),u=new jC(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:o,fromState:a,toState:s,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==PC||(i.afterFlush((function(){return n.clearElementCache(t)})),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){zC(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach((function(e){if(e.name==i.triggerName){var n=vk(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,pk(i.player,e.phase,n,e.callback)}})),r.markedForDestroy?e._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1}))}}
1,{key:"destroy",value:function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((function(e){return e.element===t}))||e}}]),t}(),LC=function(){function t(e,n,i){_classCallCheck(this,t),this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return _createClass(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var n=new FC(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e}},{key:"trigger",value:function(t,e,n,i){if(BC(e)){var r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}},{key:"insertNode",value:function(t,e,n,i){if(BC(e)){var r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),zC(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qC(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(BC(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return BC(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEac
1h((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return fk(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=PC,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)zC(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,e)}finally{for(var o=0;o<r.length;o++)r[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(t){return t()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?fk(n).onDone((function(){s.forEach((function(t){return t()}))})):s.forEach((function(t){return t()}))}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,e){var n=this,i=new cC,r=[],o=new Map,a=[],s=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach((function(t){c.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),i=0;i<e.length;i++)c.add(e[i])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=HC(f,this.collectedEnterElements),p=new Map,m=0;d.forEach((function(t,e){var n="ng-enter"+m++;p.set(e,n),t.forEach((function(t){return zC(t,n)}))}));for(var v=[],g=new Set,y=new Set,_=0;_<this.collectedLeaveElements.length;_++){var b=this.collectedLeaveElements[_],w=b.__ng_removed;w&&w.setForRemoval&&(v.push(b),g.add(b),w.hasAnimation?this.driver.query(b,".ng-star-inserted",!0).forEach((function(t){return g.add(t)})):y.add(b))}var k=new Map,C=HC(f,Array.from(g));C.forEach((function(t,e){var n="ng-leave"+m++;k.set(e,n),t.forEach((function(t){return zC(t,n)}))})),t.push((function(){d.forEach((function(t,e){var n=p.get(e);t.forEach((function(t){return qC(t,n)}))})),C.forEach((function(t,e){var n=k.get(e);t.forEach((function(t){return qC(t,n)}))})),v.forEach((function(t){n.processLeaveNode(t)}))}));for(var x=[],S=[],E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(x.push(e),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var f=!h||!n.driver.containsElement(h,o),d=k.get(o),m=p.get(o),v=n._buildInstruction(t,i,m,d,f);
1if(!v.errors||!v.errors.length)return f||t.isFallbackTransition?(e.onStart((function(){return Uk(o,v.fromStyles)})),e.onDestroy((function(){return Vk(o,v.toStyles)})),void r.push(e)):(v.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(o,v.timelines),a.push({instruction:v,player:e,element:o}),v.queriedElements.forEach((function(t){return gk(s,t,[]).push(e)})),v.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=u.get(e);i||u.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),void v.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=l.get(e);i||l.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))})));S.push(v)}));if(S.length){var I=[];S.forEach((function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return I.push("- ".concat(t,"\n"))}))})),x.forEach((function(t){return t.destroy()})),this.reportError(I)}var A=new Map,T=new Map;a.forEach((function(t){var e=t.element;i.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){gk(A,e,[]).push(t),t.destroy()}))}));var O=v.filter((function(t){return GC(t,u,l)})),D=new Map;UC(D,this.driver,y,l,"*").forEach((function(t){GC(t,u,l)&&O.push(t)}));var P=new Map;d.forEach((function(t,e){UC(P,n.driver,new Set(t),u,"!")})),O.forEach((function(t){var e=D.get(t),n=P.get(t);D.set(t,Object.assign(Object.assign({},e),n))}));var R=[],N=[],M={};a.forEach((function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return a.onDestroy((function(){return Vk(e,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var u=M;if(T.size>1){for(var l=e,h=[];l=l.parentNode;){var f=T.get(l);if(f){u=f;break}h.push(l)}h.forEach((function(t){return T.set(t,u)}))}var d=n._buildAnimation(a.namespaceId,s,A,o,P,D);if(a.setRealPlayer(d),u===M)R.push(a);else{var p=n.playersByElement.get(u);p&&p.length&&(a.parentPlayer=fk(p)),r.push(a)}}else Uk(e,s.fromStyles),a.onDestroy((function(){return Vk(e,s.toStyles)})),N.push(a),c.has(e)&&r.push(a)})),N.forEach((function(t){var e=o.get(t.element);if(e&&e.length){var n=fk(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var F=0;F<v.length;F++){var L=v[F],j=L.__ng_removed;if(qC(L,"ng-leave"),!j||!j.hasAnimation){var B=[];if(s.size){var V=s.get(L);V&&V.length&&B.push.apply(B,_toConsumableArray(V));for(var U=this.driver.query(L,".ng-animating",!0),H=0;H<U.length;H++){var z=s.get(U[H]);z&&z.length&&B.push.apply(B,_toConsumableArray(z))}}var q=B.filter((function(t){return!t.destroyed}));q.length?WC(this,L,q):this.processLeaveNode(L)}}return v.length=0,R.forEach((function(t){n.players.push(t),t.onDone((function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)})),t.play()})),R}},{key:"elementContainsData",value:function(t,e){var n=!1,i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,e,n,i,r){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var u=!r||"void"==r;s.forEach((function(t){t.queued||(u||t.triggerName==i)&&o.push(t)}))}}return(n||i)&&(o=o.filter((function(t){return!(n&&n!=t.namespaceId||i&&i!=t.triggerName)}))),o}},{key:"_beforeAnimationBuild",value:function(t,e,n){var i,r=this,o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,u=_createForOfIteratorHelper(e.timelines);try{var l=function(){var t=i.value.element,u=t!==o,l=gk(n,t,[]);r._getPreviousPlayers(t,u,a,s,e.toState).forEach((function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)}))};for(u.s();!(i=u.n()).done;)l()}catch(c){u.e(c)}finally{u.f()}Uk(o,e.fromStyles)}},{key:"_buildAnimation",value:function(t,e,n,i,r,o){var a=this,s=e.triggerName,u=e.element,l=[],c=new Set,h=new Set,f=e.timelines.map((function(e){var f=e.element;c.add(f);var d=f.__ng_removed;if(d&&d.removedBeforeQueried)return new lk(e.duration,e.delay);var p,m,v=f!==u,g=(p=(n.get(f)||DC).map((function(t){return t.getRealPlayer()})),m=[],function t(e,n){for(var i=0;i<e.length;i++){var r=e[i];r instanceof ck?t(r.players,n):n.push(r)}}(p,m),m).filter((function(t){return!!t.element&&t.element===f})),y=r.get(f),_=o.get(f),b=dk(0,a._normalizer,0,e.keyframes,y,_),w=a._buildPlayer(e,b,g);if(e.subTimeline&&i&&h.add(f),v){var k=new jC(t,s,f);k.setRealPlayer(w),l.push(k)}return w}));l.forEach((function(t){gk(a.playersByQueriedElement,t.element,[]).push(t),t.onDone((function(){return function(t,e,n){var i;if(t instanceof Map){if(i=t.get(e)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&t.delete(e)}}else if(i=t[e]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete t[e]}return i}(a.playersByQueriedElement,t.element,t)}))}
1)),c.forEach((function(t){return zC(t,"ng-animating")}));var d=fk(f);return d.onDestroy((function(){c.forEach((function(t){return qC(t,"ng-animating")})),Vk(u,e.toStyles)})),h.forEach((function(t){gk(i,t,[]).push(d)})),d}},{key:"_buildPlayer",value:function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new lk(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),jC=function(){function t(e,n,i){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new lk,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return pk(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){gk(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function BC(t){return t&&1===t.nodeType}function VC(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function UC(t,e,n,i,r){var o=[];n.forEach((function(t){return o.push(VC(t))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=RC,a.push(i))})),t.set(i,o)}));var s=0;return n.forEach((function(t){return VC(t,o[s++])})),a}function HC(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function zC(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function qC(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function WC(t,e,n){fk(n).onDone((function(){return t.processLeaveNode(e)}))}function GC(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var KC=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new LC(e,n,i),this._timelineEngine=new OC(e,n,i),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],u=iC(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(t,e){return new IC(t,e)}(i,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,i){this._transitionEngine.insertN
1ode(t,e,n,i)}},{key:"onRemove",value:function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,i){if("@"==n.charAt(0)){var r=_slicedToArray(yk(n),2),o=r[0],a=r[1];this._timelineEngine.command(o,e,a,i)}else this._transitionEngine.trigger(t,e,n,i)}},{key:"listen",value:function(t,e,n,i,r){if("@"==n.charAt(0)){var o=_slicedToArray(yk(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(t,e,n,i,r)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function YC(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=$C(e[0]),e.length>1&&(i=$C(e[e.length-1]))):e&&(n=$C(e)),n||i?new QC(t,n,i):null}var QC=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Vk(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Vk(this._element,this._initialStyles),this._endStyles&&(Vk(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Uk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uk(this._element,this._endStyles),this._endStyles=null),Vk(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function $C(t){for(var e=null,n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];XC(r)&&((e=e||{})[r]=t[r])}return e}function XC(t){return"display"===t||"position"===t}var ZC=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this._element=e,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return u._handleCallback(t)}}return _createClass(t,[{key:"apply",value:function(){var t,e,n;t=this._element,e="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=rx(t,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)t.charAt(n)}(n),e="".concat(n,", ").concat(e)),ix(t,"",e),nx(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){JC(this._element,this._name,"paused")}},{key:"resume",value:function(){JC(this._element,this._name,"running")}},{key:"setPosition",value:function(t){var e=tx(this._element,this._name);this._position=t*this._duration,ix(this._element,"Delay","-".concat(this._position,"ms"),e)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),nx(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){var n=rx(t,"").split(","),i=ex(n,e);i>=0&&(n.splice(i,1),ix(t,"",n.join(",")))}(this._element,this._name))}}]),t}();function JC(t,e,n){ix(t,"PlayState",n,tx(t,e))}function tx(t,e){var n=rx(t,"");return n.indexOf(",")>0?ex(n.split(","),e):ex([n],e)}function ex(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function nx(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ix(t,e,n,i){var r="animation"+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function rx(t,e){return t.style["animation"+e]}var ox=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={}
1,this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new ZC(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Zk(t.element,i))}))}this.currentSnapshot=e}}]),t}(),ax=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=Tk(i),r}return _createClass(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(lk),sx=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return Sk(t)}},{key:"matchesElement",value:function(t,e){return Ek(t,e)}},{key:"containsElement",value:function(t,e){return Ik(t,e)}},{key:"query",value:function(t,e,n){return Ak(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return Tk(t)}));var i="@keyframes ".concat(e," {\n"),r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}})),i+="".concat(r,"}\n")})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof ox})),u={};
1Qk(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=$k(t,e,u));if(0==n)return new ax(t,l);var c="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var f=YC(t,e),d=new ox(t,e,c,n,i,r,l,f);return d.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}(),ux=function(){function t(e,n,i,r){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Zk(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),lx=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(cx().toString()),this._cssKeyframesDriver=new sx}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return Sk(t)}},{key:"matchesElement",value:function(t,e){return Ek(t,e)}},{key:"containsElement",value:function(t,e){return Ik(t,e)}},{key:"query",value:function(t,e,n){return Ak(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter((function(t){return t instanceof ux}));Qk(n,i)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}
1));var c=YC(t,e=$k(t,e=e.map((function(t){return Lk(t,!1)})),u));return new ux(t,e,s,c)}}]),t}();function cx(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var hx,fx=((hx=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:fe.None,styles:[],data:{animation:[]}}),r}return _createClass(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?nk(t):t;return mx(this._renderer,null,e,"register",[n]),new dx(e,this._renderer)}}]),n}(Zw)).\u0275fac=function(t){return new(t||hx)(Xt($s),Xt(_c))},hx.\u0275prov=dt({token:hx,factory:hx.\u0275fac}),hx),dx=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(t,e){return new px(this._id,t,e||{},this._renderer)}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),px=function(){function t(e,n,i,r){_classCallCheck(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return mx(this._renderer,this.element,this.id,t,n)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){return 0}}]),t}();function mx(t,e,n,i,r){return t.setProperty(e,"@@".concat(n,":").concat(i),r)}var vx,gx,yx,_x=((vx=function(){function t(e,n,i){_classCallCheck(this,t),this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return _createClass(t,[{key:"createRenderer",value:function(t,e){var n=this,i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var r=this._rendererCache.get(i);return r||(r=new bx("",i,this.engine),this._rendererCache.set(i,r)),r}var o=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach((function e(i){Array.isArray(i)?i.forEach(e):n.engine.registerTrigger(o,a,t,i.name,i)})),new wx(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var t=this;this.promise.then((function(){t._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(t,e,n){var i=this;t>=0&&t<this._microtaskId?this._zone.run((function(){return e(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(t){var e=_slicedToArray(t,2);(0,e[0])(e[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))}},{key:"end",value:function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),t}()).\u0275fac=function(t){return new(t||vx)(Xt($s),Xt(KC),Xt(Ll))},vx.\u0275prov=dt({token:vx,factory:vx.\u0275fac}),vx),bx=function(){function t(e,n,i){_classCallCheck(this,t),this.namespaceId=e,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(t){return n.destroyNode(t)}:null}return _createClass(t,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(t,e){return this.delegate.createElement(t,e)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}
1},{key:"appendChild",value:function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}},{key:"insertBefore",value:function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),wx=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,i,r,o)).factory=t,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,o=this;if("@"==e.charAt(0)){var a,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),l="";return"@"!=u.charAt(0)&&(r=(i=u).indexOf("."),u=(a=_slicedToArray([i.substring(0,r),i.substr(r+1)],2))[0],l=a[1]),this.engine.listen(this.namespaceId,s,u,l,(function(t){o.factory.scheduleListenerCallback(t._data||-1,n,t)}))}return this.delegate.listen(t,e,n)}}]),n}(bx),kx=((gx=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){return _classCallCheck(this,n),e.call(this,t.body,i,r)}return n}(KC)).\u0275fac=function(t){return new(t||gx)(Xt(_c),Xt(Pk),Xt(bC))},gx.\u0275prov=dt({token:gx,factory:gx.\u0275fac}),gx),Cx=new Ht("AnimationModuleType"),xx=[{provide:Pk,useFactory:function(){return"function"==typeof cx()?new lx:new sx}},{provide:Cx,useValue:"BrowserAnimations"},{provide:Zw,useClass:fx},{provide:bC,useFactory:function(){return new wC}},{provide:KC,useClass:kx},{provide:$s,useFactory:function(t,e,n){return new _x(t,e,n)},deps:[dd,KC,Ll]}],Sx=((yx=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:yx}),yx.\u0275inj=pt({factory:function(t){return new(t||yx)},providers:xx,imports:[Id]}),yx),Ex=["*",[["mat-option"],["ng-container"]]],Ix=["*","mat-option, ng-container"];function Ax(t,e){if(1&t&&La(0,"mat-pseudo-checkbox",3),2&t){var n=Qa();Ra("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var Tx,Ox=["*"],Dx=new eu("9.2.4"),Px=new Ht("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Rx=((Tx=function(){function t(e,n,i){_classCallCheck(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(t,[{key:"_getDocument",value:function(){var t=this._document||document;return"object"==typeof t&&t?t:null}},{key:"_getWindow",value:function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Ai()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Dx.full!==Xw.full&&console.warn("The Angular Material version ("+Dx.full+") does not match the Angular CDK version ("+Xw.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}()).\u0275mod=we({type:Tx}),Tx.\u0275inj=pt({factory:function(t){return new(t||Tx)(Xt(Qw),Xt(Px,8),Xt(_c,8))},imports:[[H_],H_]}),Tx);function Nx(t){return function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r)))._disabled=!1,t}return _createClass(n,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t)}}]),n}(t)}function Mx(t,e){return function(t){_inherits(i,t);var n=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(t=n.call.apply(n,[this].concat(o))).color=e,t}
1return _createClass(i,[{key:"color",get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),n&&this._elementRef.nativeElement.classList.add("mat-".concat(n)),this._color=n)}}]),i}(t)}function Fx(t){return function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r)))._disableRipple=!1,t}return _createClass(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=t_(t)}}]),n}(t)}function Lx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(i,t);var n=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(t=n.call.apply(n,[this].concat(o)))._tabIndex=e,t}return _createClass(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e}}]),i}(t)}function jx(t){return function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))).errorState=!1,t.stateChanges=new A,t}return _createClass(n,[{key:"updateErrorState",value:function(){var t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}]),n}(t)}try{"undefined"!=typeof Intl}catch(Y0){!1}var Bx,Vx,Ux=((Vx=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||Vx)},Vx.\u0275prov=dt({factory:function(){return new Vx},token:Vx,providedIn:"root"}),Vx),Hx=((Bx=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bx)},Bx.\u0275dir=Ce({type:Bx,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Bx);function zx(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(vp(t)).subscribe((function(t){var i=t.length;qx(e,"".concat(n,"-2-line"),!1),qx(e,"".concat(n,"-3-line"),!1),qx(e,"".concat(n,"-multi-line"),!1),2===i||3===i?qx(e,"".concat(n,"-").concat(i,"-line"),!0):i>3&&qx(e,"".concat(n,"-multi-line"),!0)}))}function qx(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var Wx,Gx,Kx,Yx,Qx,$x,Xx,Zx=((Wx=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Wx}),Wx.\u0275inj=pt({factory:function(t){return new(t||Wx)},imports:[[Rx],Rx]}),Wx),Jx=function(){function t(e,n,i){_classCallCheck(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),tS={enterDuration:450,exitDuration:400},eS=R_({passive:!0}),nS=["mousedown","touchstart"],iS=["mouseup","mouseleave","touchend","touchcancel"],rS=function(){function t(e,n,i,r){_classCallCheck(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=o_(i))}return _createClass(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},tS),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=i.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),s=t-r.left,u=e-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(u-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new Jx(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),l),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},tS),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}}
1,{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=o_(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(nS))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(iS),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Bw(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,eS)}))}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(nS.forEach((function(e){t._triggerElement.removeEventListener(e,t,eS)})),this._pointerUpEventsRegistered&&iS.forEach((function(e){t._triggerElement.removeEventListener(e,t,eS)})))}}]),t}(),oS=new Ht("mat-ripple-global-options"),aS=((Qx=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new rS(this,n,e,i)}return _createClass(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||Qx)(Oa(Ys),Oa(Ll),Oa(T_),Oa(oS,8),Oa(Cx,8))},Qx.\u0275dir=Ce({type:Qx,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&us("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),Qx),sS=((Yx=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Yx}
1),Yx.\u0275inj=pt({factory:function(t){return new(t||Yx)},imports:[[Rx,O_],Rx]}),Yx),uS=((Kx=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||Kx)(Oa(Cx,8))},Kx.\u0275cmp=ve({type:Kx,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&us("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Kx),lS=((Gx=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Gx}),Gx.\u0275inj=pt({factory:function(t){return new(t||Gx)}}),Gx),cS=Nx((function t(){_classCallCheck(this,t)})),hS=0,fS=(($x=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(hS++),t}return n}(cS)).\u0275fac=function(t){return dS(t||$x)},$x.\u0275cmp=ve({type:$x,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(Ea("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),us("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[As],ngContentSelectors:Ix,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(Xa(Ex),Ma(0,"label",0),ws(1),Za(2),Fa(),Za(3,1)),2&t&&(Ra("id",e._labelId),kr(1),Cs("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),$x),dS=fi(fS),pS=0,mS=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},vS=new Ht("MAT_OPTION_PARENT_COMPONENT"),gS=((Xx=function(){function t(e,n,i,r){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(pS++),this.onSelectionChange=new Ku,this._stateChanges=new A}return _createClass(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){13!==t.keyCode&&32!==t.keyCode||bb(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new mS(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=t_(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||Xx)(Oa(Ys),Oa($o),Oa(vS,8),Oa(fS,8))},Xx.\u0275cmp=ve({type:Xx,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&qa("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(Ss("id",e.id),Ea("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),us("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Ox,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(Xa(),Aa(0,Ax,1,2,"mat-pseudo-checkbox",0),Ma(1,"span",1),Za(2),Fa(),La(3,"div",2)),2&t&&(Ra("ngIf",e.multiple),kr(3),Ra("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Fh,aS,uS],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Xx);function yS(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;
1a<t+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}function _S(t,e,n,i){var r=t*e;return r<n?r:r+e>n+i?Math.max(0,r-i+e):n}var bS,wS=((bS=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:bS}),bS.\u0275inj=pt({factory:function(t){return new(t||bS)},imports:[[sS,Lf,lS]]}),bS),kS=new Ht("mat-label-global-options");function CS(t,e){}var xS=function t(){_classCallCheck(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},SS={dialogContainer:Jw("dialogContainer",[rk("void, exit",ik({opacity:0,transform:"scale(0.7)"})),rk("enter",ik({transform:"none"})),ok("* => enter",tk("150ms cubic-bezier(0, 0, 0.2, 1)",ik({transform:"none",opacity:1}))),ok("* => void, * => exit",tk("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ik({opacity:0})))])};function ES(){throw Error("Attempting to attach dialog content after content is already attached")}var IS,AS,TS,OS,DS,PS,RS=((IS=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this))._elementRef=t,s._focusTrapFactory=i,s._changeDetectorRef=r,s._config=a,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Ku,s.attachDomPortal=function(t){return s._portalOutlet.hasAttached()&&ES(),s._setupFocusTrap(),s._portalOutlet.attachDomPortal(t)},s._ariaLabelledBy=a.ariaLabelledBy||null,s._document=o,s}return _createClass(n,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&ES(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&ES(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(fb)).\u0275fac=function(t){return new(t||IS)(Oa(Ys),Oa(Nw),Oa($o),Oa(_c,8),Oa(xS))},IS.\u0275cmp=ve({type:IS,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&ol(mb,!0),2&t&&rl(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Wa("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(Ea("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Es("@dialogContainer",e._state))},features:[As],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,CS,0,0,"ng-template",0)},directives:[mb],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[SS.dialogContainer]}}),IS),NS=0,MS=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(NS++);_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,n._id=r,n._animationStateChanged.pipe(Hd((function(t){return"done"===t.phaseName&&"enter"
1===t.toState})),ap(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Hd((function(t){return"done"===t.phaseName&&"exit"===t.toState})),ap(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),e.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),e.keydownEvents().pipe(Hd((function(t){return 27===t.keyCode&&!i.disableClose&&!bb(t)}))).subscribe((function(t){t.preventDefault(),i.close()})),e.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():i.close()}))}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Hd((function(t){return"start"===t.phaseName})),ap(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),FS=new Ht("MatDialogData"),LS=new Ht("mat-dialog-default-options"),jS=new Ht("mat-dialog-scroll-strategy"),BS={provide:jS,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},VS=((PS=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=Vd((function(){return u.openDialogs.length?u._afterAllClosed:u._afterAllClosed.pipe(vp(void 0))})),this._scrollStrategy=o}return _createClass(t,[{key:"open",value:function(t,e){var n=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new xS)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),o=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new Ob({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=fa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:e}]}),i=new lb(RS,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new MS(n,e,i.id);if(t instanceof yu)e.attachTemplatePortal(new cb(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new lb(t,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:RS,useValue:n},{provide:FS,useValue:t.data},{provide:MS,useValue:e}];return!t.direction||i&&i.get(V_,null)||r.push({provide:V_,useValue:{value:t.direction,change:Dd()}}
1),fa.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}()).\u0275fac=function(t){return new(t||PS)(Xt(tw),Xt(fa),Xt(Bc,8),Xt(LS,8),Xt(jS),Xt(PS,12),Xt(Bb))},PS.\u0275prov=dt({token:PS,factory:PS.\u0275fac}),PS),US=0,HS=((DS=function(){function t(e,n,i){_classCallCheck(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=GS(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}()).\u0275fac=function(t){return new(t||DS)(Oa(MS,8),Oa(Ys),Oa(VS))},DS.\u0275dir=Ce({type:DS,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&Ea("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ns]}),DS),zS=((OS=function(){function t(e,n,i){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(US++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=GS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}()).\u0275fac=function(t){return new(t||OS)(Oa(MS,8),Oa(Ys),Oa(VS))},OS.\u0275dir=Ce({type:OS,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Ss("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),OS),qS=((TS=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||TS)},TS.\u0275dir=Ce({type:TS,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),TS),WS=((AS=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||AS)},AS.\u0275dir=Ce({type:AS,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),AS);function GS(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var KS,YS=((KS=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:KS}),KS.\u0275inj=pt({factory:function(t){return new(t||KS)},providers:[VS,BS],imports:[[aw,yb,Rx],Rx]}),KS);function QS(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){var i=e[0];if(u(i))return $S(i,null);if(l(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return $S(r.map((function(t){return i[t]})),r)}}if("function"==typeof e[e.length-1]){var o=e.pop();return $S(e=1===e.length&&u(e[0])?e[0]:e,null).pipe(B((function(t){return o.apply(void 0,_toConsumableArray(t))})))}return $S(e,null)}function $S(t,e){return new k((function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var u=z(t[s]),l=!1;n.add(u.subscribe({next:function(t){l||(l=!0,a++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==i&&l||(a===i&&n.next(e?e.reduce((function(t,e,n){return t[e]=r[n],t}),{}):r),n.complete())}}))},u=0;u<i;u++)s(u);else n.complete()}
1))}var XS,ZS,JS,tE,eE=new Ht("NgValueAccessor"),nE={provide:eE,useExisting:Et((function(){return iE})),multi:!0},iE=((XS=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||XS)(Oa(Zs),Oa(Ys))},XS.\u0275dir=Ce({type:XS,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[qs([nE])]}),XS),rE={provide:eE,useExisting:Et((function(){return aE})),multi:!0},oE=new Ht("CompositionEventMode"),aE=((tE=function(){function t(e,n,i){var r;_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=i,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=gc()?gc().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}()).\u0275fac=function(t){return new(t||tE)(Oa(Zs),Oa(Ys),Oa(oE,8))},tE.\u0275dir=Ce({type:tE,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[qs([rE])]}),tE),sE=((JS=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),t}()).\u0275fac=function(t){return new(t||JS)},JS.\u0275dir=Ce({type:JS}),JS),uE=((ZS=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(sE)).\u0275fac=function(t){return lE(t||ZS)},ZS.\u0275dir=Ce({type:ZS,features:[As]}),ZS),lE=fi(uE);function cE(){throw new Error("unimplemented")}var hE,fE,dE=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return _createClass(n,[{key:"validator",get:function(){return cE()}},{key:"asyncValidator",get:function(){return cE()}}]),n}(sE),pE=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),mE=((fE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return n}(pE)).\u0275fac=function(t){return new(t||fE)(Oa(dE,2))},fE.\u0275dir=Ce({type:fE,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&us("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[As]}),fE),vE=((hE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return n}(pE)).\u0275fac=function(t){return new(t||hE)(Oa(uE,2))},hE.\u0275dir=Ce({type:hE,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&us("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[As]}),hE);function gE(t){return null==t||0===t.length}var yE=new Ht("NgValidators"),_E=new Ht("NgAsyncValidators"),bE=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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])?)*$/,wE=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(e){if(gE(e.value)||gE(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}},{key:"max",value:function(t){return function(e){if(gE(e.value)||gE(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return gE(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return gE(t.value)||bE.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(gE(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}},{key:"maxLength",value:function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(gE(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(kE);return 0==e.length?null:function(t){return xE(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(kE);return 0==e.length?null:function(t){return QS(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(CE)).pipe(B(xE))}}}]),t}();function kE(t){return null!=t}function CE(t){var e=Ha(t)?z(t):t;if(!za(e))throw new Error("Expected validator to return Promise or Observable.");return e}function xE(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function SE(t){return t.validate?function(e){return t.validate(e)}:t}function EE(t){return t.validate?function(e){return t.validate(e)}:t}var IE,AE,TE,OE,DE={provide:eE,useExisting:Et((function(){return PE})),multi:!0},PE=((IE=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||IE)(Oa(Zs),Oa(Ys))},IE.\u0275dir=Ce({type:IE,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[qs([DE])]}),IE),RE={provide:eE,useExisting:Et((function(){return ME})),multi:!0},NE=((TE=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value: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)}},{key:"select",value:function(t){var e=this;
1this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}()).\u0275fac=function(t){return new(t||TE)},TE.\u0275prov=dt({token:TE,factory:TE.\u0275fac}),TE),ME=((AE=function(){function t(e,n,i,r){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(dE),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value: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}()).\u0275fac=function(t){return new(t||AE)(Oa(Zs),Oa(Ys),Oa(NE),Oa(fa))},AE.\u0275dir=Ce({type:AE,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[qs([RE])]}),AE),FE={provide:eE,useExisting:Et((function(){return LE})),multi:!0},LE=((OE=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||OE)(Oa(Zs),Oa(Ys))},OE.\u0275dir=Ce({type:OE,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[qs([FE])]}),OE),jE='\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 });',BE='\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 });',VE='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',UE=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"controlParentException",value: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 ".concat(jE))}},{key:"ngModelGroupException",value: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 '.concat(BE,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(VE))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(jE))}},{key:"groupParentException",value: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 ".concat(BE))}},{key:"arrayParentException",value: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 });')}},{key:"disabledAttrWarning",value: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 ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(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/").concat("formControl"
1===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),HE={provide:eE,useExisting:Et((function(){return GE})),multi:!0};function zE(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var qE,WE,GE=((WE=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ba}return _createClass(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=zE(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var i=n[e];if(this._compareWith(this._optionMap.get(i),t))return i}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}},{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}}]),t}()).\u0275fac=function(t){return new(t||WE)(Oa(Zs),Oa(Ys))},WE.\u0275dir=Ce({type:WE,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[qs([HE])]}),WE),KE=((qE=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return _createClass(t,[{key:"_setElementValue",value:function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(zE(this.id,t)),this._select.writeValue(this._select.value))}},{key:"value",set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}}]),t}()).\u0275fac=function(t){return new(t||qE)(Oa(Ys),Oa(Zs),Oa(GE,9))},qE.\u0275dir=Ce({type:qE,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),qE),YE={provide:eE,useExisting:Et((function(){return ZE})),multi:!0};function QE(t,e){return null==t?"".concat(e):("string"==typeof e&&(e="'".concat(e,"'")),e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var $E,XE,ZE=((XE=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ba}return _createClass(t,[{key:"writeValue",value:function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=e._getOptionValue(a.value);i.push(s)}else for(var u=n.options,l=0;l<u.length;l++){var c=u.item(l);if(c.selected){var h=e._getOptionValue(c.value);i.push(h)}}e.value=i,t(i)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var i=n[e];if(this._compareWith(this._optionMap.get(i)._value,t))return i}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}},{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}}]),t}()).\u0275fac=function(t){return new(t||XE)(Oa(Zs),Oa(Ys))},XE.\u0275dir=Ce({type:XE,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[qs([YE])]}),XE),JE=(($E=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return _createClass(t,[{key:"_setElementValue",value:function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}},{key:"_setSelected",value:function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(t){null!=this._select&&(this._value=t,this._setElementValue(QE(this.id,t)),this._select.writeValue(this._select.value))}},{key:"value",set:function(t){this._select?(this._value=t,this._setElementValue(QE(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}}]),t}()).\u0275fac=function(t){return new(t||$E)(Oa(Ys),Oa(Zs),Oa(ZE,9))},$E.\u0275dir=Ce({type:$E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),$E);function tI(t,e){return[].concat(_toConsumableArray(e.path),[t])}function eI(t,e){t||oI(e,"Cannot find control with"),e.valueAccessor||oI(e,"No value accessor for form control with"),t.validator=wE.compose([t.validator,e.validator]),t.asyncValidator=wE.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&&nI(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&&nI(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 nI(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function iI(t,e){null==t&&oI(e,"Cannot find control with"),t.validator=wE.compose([t.validator,e.validator]),t.asyncValidator=wE.composeAsync([t.asyncValidator,e.asyncValidator])}function rI(t){return oI(t,"There is no FormControl instance attached to form control element with")}function oI(t,e){var n;throw n=t.path.length>1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function aI(t){return null!=t?wE.compose(t.map(SE)):null}function sI(t){return null!=t?wE.composeAsync(t.map(EE)):null}function uI(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!ba(e,n.currentValue)}var lI=[iE,LE,PE,GE,ZE,ME];function cI(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 hI(t,e){if(!e)return null;Array.isArray(e)||oI(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var o;e.constructor===aE?n=e:(o=e,lI.some((function(t){return o.constructor===t}))?(i&&oI(t,"More than one built-in value accessor matches form control with"),i=e):(r&&oI(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(oI(t,"No valid value accessor for form control with"),null)}function fI(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function dI(t,e,n,i){Ai()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(UE.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function pI(t){var e=vI(t)?t.validators:t;return Array.isArray(e)?aI(e):e||null}function mI(t,e){var n=vI(e)?e.asyncValidators:t;return Array.isArray(n)?sI(n):n||null}function vI(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var gI,yI,_I,bI,wI,kI,CI,xI,SI,EI=function(){function t(e,n){_classCallCheck(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=pI(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=mI(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}
vendor: 4,392 bytes, line 1
1),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=CE(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof AI?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof TI&&i.at(t)||null})),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}}
1,{key:"_initObservables",value:function(){this.valueChanges=new Ku,this.statusChanges=new Ku}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){vI(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),II=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this,pI(r),mI(o,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pe
1ndingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(EI),AI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,pI(i),mI(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof II?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){var e=this,n=!1;return this._forEachChild((function(i,r){n=n||e.contains(r)&&t(i)})),n}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value: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: '".concat(n,"'."))}))}}]),n}(EI),TI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,pI(i),mI(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof II?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value: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: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(EI),OI={provide:uE,useExisting:Et((function(){return PI}))},DI=Promise.resolve(null),PI=((yI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ku,r.form=new AI({},aI(t),sI(i)),r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;DI.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),eI(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;DI.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),fI(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;DI.then((function(){var n=e._findContainer(t.path),i=new AI({});iI(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;DI.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;DI.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,cI(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(uE)).\u0275fac=function(t){return new(t||yI)(Oa(yE,10),Oa(_E,10))},yI.\u0275dir=Ce({type:yI,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[qs([OI]),As]}),yI),RI=((gI=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return tI(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return aI(this._validators)}},{key:"asyncValidator",get:function(){return sI(this._asyncValidators)}}]),n}(uE)).\u0275fac=function(t){return NI(t||gI)},gI.\u0275dir=Ce({type:gI,features:[As]}),gI),NI=fi(RI),MI=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"modelParentException",value: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 '.concat(jE,'\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 '))}},{key:"formGroupNameException",value: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 ".concat(BE,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(VE))}},{key:"missingNameException",value: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}">')}},{key:"modelGroupParentException",value: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 ".concat(BE,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(VE))}}]),t}(),FI={provide:uE,useExisting:Et((function(){return LI}))},LI=((_I=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._val
1idators=i,o._asyncValidators=r,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof PI||MI.modelGroupParentException()}}]),n}(RI)).\u0275fac=function(t){return new(t||_I)(Oa(uE,5),Oa(yE,10),Oa(_E,10))},_I.\u0275dir=Ce({type:_I,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[qs([FI]),As]}),_I),jI={provide:dE,useExisting:Et((function(){return VI}))},BI=Promise.resolve(null),VI=((wI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this)).control=new II,a._registered=!1,a.update=new Ku,a._parent=t,a._rawValidators=i||[],a._rawAsyncValidators=r||[],a.valueAccessor=hI(_assertThisInitialized(a),o),a}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),uI(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){eI(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof LI)&&this._parent instanceof RI?MI.formGroupNameException():this._parent instanceof LI||this._parent instanceof PI||MI.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||MI.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;BI.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;BI.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?tI(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return aI(this._rawValidators)}},{key:"asyncValidator",get:function(){return sI(this._rawAsyncValidators)}}]),n}(dE)).\u0275fac=function(t){return new(t||wI)(Oa(uE,9),Oa(yE,10),Oa(_E,10),Oa(eE,10))},wI.\u0275dir=Ce({type:wI,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[qs([jI]),As,Ns]}),wI),UI=((bI=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||bI)},bI.\u0275dir=Ce({type:bI,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),bI),HI=new Ht("NgModelWithFormControlWarning"),zI={provide:dE,useExisting:Et((function(){return qI}))},qI=((kI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this))._ngModelWarningConfig=o,a.update=new Ku,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=i||[],a.valueAccessor=hI(_assertThisInitialized(a),r),a}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(eI(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),uI(t,this.viewModel)&&(dI("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){UE.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return aI(this._rawValidators)}},{key:"asyncValidator",get:function(){return sI(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(dE)).\u0275fac=function(t){return new(t||kI)(Oa(yE,10),Oa(_E,10),Oa(eE,10),Oa(HI,8))},kI.\u0275dir=Ce({type:kI,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[qs([zI]),As,Ns]}),kI._ngModelWarningSentOnce=!1,kI),WI={provide:uE,useExisting:Et((function(){return GI}))},GI=((CI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._validators=t,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ku,r}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return eI(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){fI(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);iI(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);iI(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,cI(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return rI(e)})),e.valueAccessor.registerOnTouched((function(){return rI(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&&eI(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=aI(this._validators);this.form.validator=wE.compose([this.form.validator,t]);var e=sI(this._asyncValidators);this.form.asyncValidator=wE.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||UE.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(uE)).\u0275fac=function(t){return new(t||CI)(Oa(yE,10),Oa(_E,10))},CI.\u0275dir=Ce({type:CI,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[qs([WI]),As,Ns]}),CI),KI={provide:uE,useExisting:Et((function(){return YI}))},YI=((xI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._validators=i,o._asyncValidators=r,o}return _createClass(n,[{key:"_checkParentType",value:function(){XI(this._parent)&&UE.groupParentException()}}]),n}(RI)).\u0275fac=function(t){return new(t||xI)(Oa(uE,13),Oa(yE,10),Oa(_E,10))},xI.\u0275dir=Ce({type:xI,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[qs([KI]),As]}),xI),QI={provide:uE,useExisting:Et((function(){return $I}))},$I=((SI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._validators=i,o._asyncValidators=r,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){XI(this._parent)&&UE.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return tI(null==this.name?this.name:this.name.toString(),this._parent)}}
1,{key:"validator",get:function(){return aI(this._validators)}},{key:"asyncValidator",get:function(){return sI(this._asyncValidators)}}]),n}(uE)).\u0275fac=function(t){return new(t||SI)(Oa(uE,13),Oa(yE,10),Oa(_E,10))},SI.\u0275dir=Ce({type:SI,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[qs([QI]),As]}),SI);function XI(t){return!(t instanceof YI||t instanceof GI||t instanceof $I)}var ZI,JI,tA,eA,nA,iA,rA,oA,aA,sA,uA,lA,cA,hA,fA={provide:dE,useExisting:Et((function(){return dA}))},dA=((ZI=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new Ku,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=i||[],s._rawAsyncValidators=r||[],s.valueAccessor=hI(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),uI(t,this.viewModel)&&(dI("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof YI)&&this._parent instanceof RI?UE.ngModelGroupException():this._parent instanceof YI||this._parent instanceof GI||this._parent instanceof $I||UE.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){UE.disabledAttrWarning()}},{key:"path",get:function(){return tI(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return aI(this._rawValidators)}},{key:"asyncValidator",get:function(){return sI(this._rawAsyncValidators)}}]),n}(dE)).\u0275fac=function(t){return new(t||ZI)(Oa(uE,13),Oa(yE,10),Oa(_E,10),Oa(eE,10),Oa(HI,8))},ZI.\u0275dir=Ce({type:ZI,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[qs([fA]),As,Ns]}),ZI._ngModelWarningSentOnce=!1,ZI),pA={provide:yE,useExisting:Et((function(){return vA})),multi:!0},mA={provide:yE,useExisting:Et((function(){return gA})),multi:!0},vA=((tA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?wE.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||tA)},tA.\u0275dir=Ce({type:tA,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("required",e.required?"":null)},inputs:{required:"required"},features:[qs([pA])]}),tA),gA=((JI=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(t){return this.required?wE.requiredTrue(t):null}}]),n}(vA)).\u0275fac=function(t){return yA(t||JI)},JI.\u0275dir=Ce({type:JI,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("required",e.required?"":null)},features:[qs([mA]),As]}),JI),yA=fi(gA),_A={provide:yE,useExisting:Et((function(){return bA})),multi:!0},bA=((eA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?wE.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||eA)},eA.\u0275dir=Ce({type:eA,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[qs([_A])]}),eA),wA={provide:yE,useExisting:Et((function(){return kA})),multi:!0},kA=((nA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._val
1idator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wE.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||nA)},nA.\u0275dir=Ce({type:nA,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[qs([wA]),Ns]}),nA),CA={provide:yE,useExisting:Et((function(){return xA})),multi:!0},xA=((iA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wE.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||iA)},iA.\u0275dir=Ce({type:iA,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[qs([CA]),Ns]}),iA),SA={provide:yE,useExisting:Et((function(){return EA})),multi:!0},EA=((uA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wE.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||uA)},uA.\u0275dir=Ce({type:uA,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ea("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[qs([SA]),Ns]}),uA),IA=((sA=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:sA}),sA.\u0275inj=pt({factory:function(t){return new(t||sA)}}),sA),AA=((aA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new AI(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(t,e,n){return new II(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new TI(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n}},{key:"_createControl",value:function(t){return t instanceof II||t instanceof AI||t instanceof TI?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||aA)},aA.\u0275prov=dt({token:aA,factory:aA.\u0275fac}),aA),TA=((oA=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:oA}),oA.\u0275inj=pt({factory:function(t){return new(t||oA)},providers:[NE],imports:[IA]}),oA),OA=((rA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:HI,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=we({type:rA}),rA.\u0275inj=pt({factory:function(t){return new(t||rA)},providers:[AA,NE],imports:[IA]}),rA),DA=["mat-button",""],PA=["*"],RA=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],NA=Mx(Nx(Fx((function t(e){_classCallCheck(this,t),this._elementRef=e})))),MA=((hA=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;_classCallCheck(this,n),(o=e.call(this,t))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(RA);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),o._focusMonitor.monitor(o._elementRef,!0),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.some((function(e){return t._getHostElement().hasAttribute(e)}))}}]),n}(NA)).\u0275fac=function(t){return new(t||hA)(Oa(Ys),Oa(zw),Oa(Cx,8))},hA.\u0275cmp=ve({type:hA,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&al(aS,!0),2&t&&rl(n=hl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(Ea("disabled",e.disabled||null),us("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"}
1,exportAs:["matButton"],features:[As],attrs:DA,ngContentSelectors:PA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Xa(),Ma(0,"span",0),Za(1),Fa(),La(2,"div",1),La(3,"div",2)),2&t&&(kr(2),us("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Ra("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[aS],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),hA),FA=((cA=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){return _classCallCheck(this,n),e.call(this,i,t,r)}return _createClass(n,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),n}(MA)).\u0275fac=function(t){return new(t||cA)(Oa(zw),Oa(Ys),Oa(Cx,8))},cA.\u0275cmp=ve({type:cA,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(Ea("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),us("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"}
1,exportAs:["matButton","matAnchor"],features:[As],attrs:DA,ngContentSelectors:PA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Xa(),Ma(0,"span",0),Za(1),Fa(),La(2,"div",1),La(3,"div",2)),2&t&&(kr(2),us("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Ra("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[aS],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),cA),LA=((lA=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:lA}),lA.\u0275inj=pt({factory:function(t){return new(t||lA)},imports:[[sS,Rx],Rx]}),lA),jA=["underline"],BA=["connectionContainer"],VA=["inputContainer"],UA=["label"];function HA(t,e){1&t&&(ja(0),Ma(1,"div",14),La(2,"div",15),La(3,"div",16),La(4,"div",17),Fa(),Ma(5,"div",18),La(6,"div",15),La(7,"div",16),La(8,"div",17),Fa(),Ba())}function zA(t,e){1&t&&(Ma(0,"div",19),Za(1,1),Fa())}function qA(t,e){if(1&t&&(ja(0),Za(1,2),Ma(2,"span"),ws(3),Fa(),Ba()),2&t){var n=Qa(2);kr(3),ks(n._control.placeholder)}}function WA(t,e){1&t&&Za(0,3,["*ngSwitchCase","true"])}function GA(t,e){1&t&&(Ma(0,"span",23),ws(1," *"),Fa())}function KA(t,e){if(1&t){var n=Ua();Ma(0,"label",20,21),qa("cdkObserveContent",(function(){return en(n),Qa().updateOutlineGap()})),Aa(2,qA,4,1,"ng-container",12),Aa(3,WA,1,0,void 0,12),Aa(4,GA,2,0,"span",22),Fa()}if(2&t){var i=Qa();us("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ra("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ea("for",i._control.id)("aria-owns",i._control.id),kr(2),Ra("ngSwitchCase",!1),kr(1),Ra("ngSwitchCase",!0),kr(1),Ra("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function YA(t,e){1&t&&(Ma(0,"div",24),Za(1,4),Fa())}function QA(t,e){if(1&t&&(Ma(0,"div",25,26),La(2,"span",27),Fa()),2&t){var n=Qa();kr(2),us("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function $A(t,e){1&t&&(Ma(0,"div"),Za(1,5),Fa()),2&t&&Ra("@transitionMessages",Qa()._subscriptAnimationState)}function XA(t,e){if(1&t&&(Ma(0,"div",31),ws(1),Fa()),2&t){var n=Qa(2);
1Ra("id",n._hintLabelId),kr(1),ks(n.hintLabel)}}function ZA(t,e){if(1&t&&(Ma(0,"div",28),Aa(1,XA,2,2,"div",29),Za(2,6),La(3,"div",30),Za(4,7),Fa()),2&t){var n=Qa();Ra("@transitionMessages",n._subscriptAnimationState),kr(1),Ra("ngIf",n.hintLabel)}}var JA,tT,eT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],nT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],iT=0,rT=((JA=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(iT++)}).\u0275fac=function(t){return new(t||JA)},JA.\u0275dir=Ce({type:JA,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Ea("id",e.id)},inputs:{id:"id"}}),JA),oT={transitionMessages:Jw("transitionMessages",[rk("enter",ik({opacity:1,transform:"translateY(0%)"})),ok("void => enter",[ik({opacity:0,transform:"translateY(-100%)"}),tk("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},aT=((tT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||tT)},tT.\u0275dir=Ce({type:tT}),tT);function sT(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var uT,lT,cT,hT,fT,dT,pT,mT,vT,gT,yT,_T,bT,wT,kT=0,CT=((fT=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(kT++)}).\u0275fac=function(t){return new(t||fT)},fT.\u0275dir=Ce({type:fT,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Ea("id",e.id)("align",null),us("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),fT),xT=((hT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||hT)},hT.\u0275dir=Ce({type:hT,selectors:[["mat-label"]]}),hT),ST=((cT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||cT)},cT.\u0275dir=Ce({type:cT,selectors:[["mat-placeholder"]]}),cT),ET=((lT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||lT)},lT.\u0275dir=Ce({type:lT,selectors:[["","matPrefix",""]]}),lT),IT=((uT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||uT)},uT.\u0275dir=Ce({type:uT,selectors:[["","matSuffix",""]]}),uT),AT=0,TT=Mx((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),OT=new Ht("MAT_FORM_FIELD_DEFAULT_OPTIONS"),DT=new Ht("MatFormField"),PT=((pT=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l){var c;return _classCallCheck(this,n),(c=e.call(this,t))._elementRef=t,c._changeDetectorRef=i,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new A,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(AT++),c._labelId="mat-form-field-label-".concat(AT++),c._labelOptions=r||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return _createClass(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(vp(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(g_(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(g_(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Q(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(vp(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(vp(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(g_(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))}}
1,{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,a_(this._label.nativeElement,"transitionend").pipe(ap(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw sT("start");t=i}else if("end"===i.align){if(e)throw sT("end");e=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,u=this._getStartEnd(a),l=this._getStartEnd(t.children[0].getBoundingClientRect()),c=0,h=_createForOfIteratorHelper(t.children);try{for(h.s();!(s=h.n()).done;)c+=s.value.offsetWidth}catch(p){h.e(p)}finally{h.f()}e=Math.abs(l-u)-5,n=c>0?.75*c+10:0}for(var f=0;f<r.length;f++)r[f].style.width="".concat(e,"px");for(var d=0;d<o.length;d++)o[d].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}},{key:"_isAttachedToDOM",value:function(){var t=this._elementRef.nativeElement;if(t.getRootNode){var e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}},{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=t_(t)}},{key:"_shouldAlwaysFloat",get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",get:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}
1,set:function(t){this._explicitFormFieldControl=t}},{key:"_labelChild",get:function(){return this._labelChildNonStatic||this._labelChildStatic}}]),n}(TT)).\u0275fac=function(t){return new(t||pT)(Oa(Ys),Oa($o),Oa(kS,8),Oa(V_,8),Oa(OT,8),Oa(T_),Oa(Ll),Oa(Cx,8))},pT.\u0275cmp=ve({type:pT,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,aT,!0),ll(n,aT,!0),ul(n,xT,!0),ll(n,xT,!0),ul(n,ST,!0),ul(n,rT,!0),ul(n,CT,!0),ul(n,ET,!0),ul(n,IT,!0)),2&t&&(rl(i=hl())&&(e._controlNonStatic=i.first),rl(i=hl())&&(e._controlStatic=i.first),rl(i=hl())&&(e._labelChildNonStatic=i.first),rl(i=hl())&&(e._labelChildStatic=i.first),rl(i=hl())&&(e._placeholderChild=i.first),rl(i=hl())&&(e._errorChildren=i),rl(i=hl())&&(e._hintChildren=i),rl(i=hl())&&(e._prefixChildren=i),rl(i=hl())&&(e._suffixChildren=i))},viewQuery:function(t,e){var n;1&t&&(al(jA,!0),ol(BA,!0),al(VA,!0),al(UA,!0)),2&t&&(rl(n=hl())&&(e.underlineRef=n.first),rl(n=hl())&&(e._connectionContainerRef=n.first),rl(n=hl())&&(e._inputContainerRef=n.first),rl(n=hl())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&us("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[qs([{provide:DT,useExisting:pT}]),As],ngContentSelectors:nT,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(Xa(eT),Ma(0,"div",0),Ma(1,"div",1,2),qa("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),Aa(3,HA,9,0,"ng-container",3),Aa(4,zA,2,0,"div",4),Ma(5,"div",5,6),Za(7),Ma(8,"span",7),Aa(9,KA,5,16,"label",8),Fa(),Fa(),Aa(10,YA,2,0,"div",9),Fa(),Aa(11,QA,3,4,"div",10),Ma(12,"div",11),Aa(13,$A,2,1,"div",12),Aa(14,ZA,5,2,"div",13),Fa(),Fa()),2&t&&(kr(3),Ra("ngIf","outline"==e.appearance),kr(1),Ra("ngIf",e._prefixChildren.length),kr(5),Ra("ngIf",e._hasFloatingLabel()),kr(1),Ra("ngIf",e._suffixChildren.length),kr(1),Ra("ngIf","outline"!=e.appearance),kr(1),Ra("ngSwitch",e._getDisplayedMessages()),kr(1),Ra("ngSwitchCase","error"),kr(1),Ra("ngSwitchCase","hint"))}
1,directives:[Fh,Kh,Yh,gw],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px
1)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[oT.transitionMessages]},changeDetection:0}),pT),RT=((dT=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:dT}),dT.\u0275inj=pt({factory:function(t){return new(t||dT)},imports:[[Lf,Rx,yw],Rx]}),dT),NT=R_({passive:!0}),MT=((_T=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return _createClass(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return jd;var n=o_(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new A,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,NT),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,NT)}}),r.asObservable()}},{key:"stopMonitoring",value:function(t){var e=o_(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;
1this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))}}]),t}()).\u0275fac=function(t){return new(t||_T)(Xt(T_),Xt(Ll))},_T.\u0275prov=dt({factory:function(){return new _T(Xt(T_),Xt(Ll))},token:_T,providedIn:"root"}),_T),FT=((yT=function(){function t(e,n){_classCallCheck(this,t),this._elementRef=e,this._autofillMonitor=n,this.cdkAutofill=new Ku}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),t}()).\u0275fac=function(t){return new(t||yT)(Oa(Ys),Oa(MT))},yT.\u0275dir=Ce({type:yT,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),yT),LT=((gT=function(){function t(e,n,i,r){_classCallCheck(this,t),this._elementRef=e,this._platform=n,this._ngZone=i,this._destroyed=new A,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(t,[{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){a_(t._getWindow(),"resize").pipe(v_(16),g_(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(e||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="",n.style.height="".concat(n.scrollHeight-4,"px"),n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(n)})):setTimeout((function(){return t._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=e_(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=e_(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=t_(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||gT)(Oa(Ys),Oa(T_),Oa(Ll),Oa(_c,8))},gT.\u0275dir=Ce({type:gT,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&qa("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),gT),jT=((vT=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:vT}),vT.\u0275inj=pt({factory:function(t){return new(t||vT)},imports:[[O_]]}),vT),BT=((mT=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows}
1,set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),n}(LT)).\u0275fac=function(t){return VT(t||mT)},mT.\u0275dir=Ce({type:mT,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[As]}),mT),VT=fi(BT),UT=new Ht("MAT_INPUT_VALUE_ACCESSOR"),HT=["button","checkbox","file","hidden","image","radio","range","reset","submit"],zT=0,qT=jx((function t(e,n,i,r){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),WT=((wT=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l,c){var h;_classCallCheck(this,n),(h=e.call(this,s,o,a,r))._elementRef=t,h._platform=i,h.ngControl=r,h._autofillMonitor=l,h._uid="mat-input-".concat(zT++),h.focused=!1,h.stateChanges=new A,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return P_().has(t)}));var f=h._elementRef.nativeElement,d=f.nodeName.toLowerCase();return h._inputValueAccessor=u||f,h._previousNativeValue=h.value,h.id=h.id,i.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===d,h._isTextarea="textarea"===d,h._isNativeSelect&&(h.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),h}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(HT.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=t_(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=t_(t)}},{key:"type",get:function(){return this._type}
1,set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&P_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=t_(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}}]),n}(qT)).\u0275fac=function(t){return new(t||wT)(Oa(Ys),Oa(T_),Oa(dE,10),Oa(PI,8),Oa(GI,8),Oa(Ux),Oa(UT,10),Oa(MT),Oa(Ll))},wT.\u0275dir=Ce({type:wT,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&qa("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Ss("disabled",e.disabled)("required",e.required),Ea("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),us("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[qs([{provide:aT,useExisting:wT}]),As,Ns]}),wT),GT=((bT=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:bT}),bT.\u0275inj=pt({factory:function(t){return new(t||bT)},providers:[Ux],imports:[[jT,RT],jT,RT]}),bT);function KT(t,e){if(1&t&&(Ma(0,"h1",8),ws(1),Fa()),2&t){var n=Qa();kr(1),ks(n.data.title)}}function YT(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field"),Ma(1,"mat-label"),ws(2),Fa(),Ma(3,"input",9),qa("ngModelChange",(function(t){return en(n),Qa().data.value=t})),Fa(),Fa()}if(2&t){var i=Qa();kr(2),ks(i.data.label),kr(1),Ra("ngModel",i.data.value)}}function QT(t,e){if(1&t&&(Ma(0,"button",10),ws(1),Fa()),2&t){var n=Qa(),i=Ta(1);Ra("disabled",!!n.data.label&&!i.valid),kr(1),ks(n.data.confirm||"Submit")}}var $T,XT,ZT,JT,tO,eO=((ZT=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.data=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){this.dialogRef.close(this.data.value)}},{key:"cancel",value:function(){this.dialogRef.close(null)}}]),t}()).\u0275fac=function(t){return new(t||ZT)(Oa(MS),Oa(FS))},ZT.\u0275cmp=ve({type:ZT,selectors:[["ng-component"]],decls:10,vars:5,consts:[[3,"ngSubmit"],["form","ngForm"],["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","type","submit",3,"disabled",4,"ngIf"],["mat-button","","type","reset",3,"click"],["mat-dialog-title",""],["matInput","","required","","name","title",3,"ngModel","ngModelChange"],["mat-button","","type","submit",3,"disabled"]],template:function(t,e){1&t&&(Ma(0,"form",0,1),qa("ngSubmit",(function(){return e.submit()})),Aa(2,KT,2,1,"h1",2),Ma(3,"div",3),ws(4),Aa(5,YT,4,2,"mat-form-field",4),Fa(),Ma(6,"div",5),Aa(7,QT,2,2,"button",6),Ma(8,"button",7),qa("click",(function(){return e.cancel()})),ws(9),Fa(),Fa(),Fa()),2&t&&(kr(2),Ra("ngIf",!!e.data.title),kr(2),Cs(" ",e.data.message," "),kr(1),Ra("ngIf",!!e.data.label),kr(2),Ra("ngIf",!!e.data.label||!!e.data.confirm),kr(2),ks(e.data.cancel||"Cancel"))},directives:[UI,vE,PI,Fh,qS,WS,MA,zS,PT,xT,WT,aE,vA,mE,VI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),ZT),nO=((XT=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.template=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||XT)(Oa(MS),Oa(FS))},XT.\u0275cmp=ve({type:XT,selectors:[["ng-component"]],decls:2,vars:1,consts:[[3,"template","close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-template-editor",0,1
1),qa("close",(function(t){return e.close(t)})),Fa()),2&t&&Ra("template",e.template)},encapsulation:2}),XT),iO=(($T=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.data=n}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||$T)(Oa(MS),Oa(FS))},$T.\u0275cmp=ve({type:$T,selectors:[["ng-component"]],decls:5,vars:0,consts:[["matDialogTitle",""],[2,"width","auto"],[2,"position","relative","padding-bottom","60.913705583756354%","height","0"],["src","https://www.loom.com/embed/73489cb984a9494c90721b68ec4e71f2","frameborder","0","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",2,"position","absolute","top","0","left","0","width","100%","height","100%"]],template:function(t,e){1&t&&(Ma(0,"h1",0),ws(1,"How to use templates?"),Fa(),Ma(2,"mat-dialog-content",1),Ma(3,"div",2),La(4,"iframe",3),Fa(),Fa())},directives:[zS,qS],styles:["video[_ngcontent-%COMP%]{width:100%}.cdk-overlay-pane[_ngcontent-%COMP%], mat-dialog-content[_ngcontent-%COMP%]{width:auto}"]}),$T),rO={provide:kl,useFactory:function(t,e){return function(){if(jf(e)){var n=Array.from(t.querySelectorAll("[class*=".concat(oO,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach((function(t){t.classList.contains("".concat(oO,"ssr"))&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")}))}}},deps:[_c,wl],multi:!0},oO="flex-layout-",aO=((JT=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:JT}),JT.\u0275inj=pt({factory:function(t){return new(t||JT)},providers:[rO]}),JT),sO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_classCallCheck(this,t),this.matches=e,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return _createClass(t,[{key:"clone",value:function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),t}(),uO=((tO=function(){function t(){_classCallCheck(this,t),this.stylesheet=new Map}return _createClass(t,[{key:"addStyleToElement",value:function(t,e,n){var i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(t,e){var n=this.stylesheet.get(t),i="";if(n){var r=n.get(e);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),t}()).\u0275fac=function(t){return new(t||tO)},tO.\u0275prov=dt({factory:function(){return new tO},token:tO,providedIn:"root"}),tO),lO={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},cO=new Ht("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return lO}}),hO=new Ht("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),fO=new Ht("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function dO(t,e){return t=t?t.clone():new sO,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var pO=["row","column","row-reverse","column-reverse"];function mO(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var vO,gO=((vO=function(){function t(e,n,i,r){_classCallCheck(this,t),this.elementRef=e,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A,this.styleCache=new Map}return _createClass(t,[{key:"ngOnChanges",value:function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,i)}}))}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}},{key:"addStyles",value:function(t,e){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(t);r&&i||(r=n.buildStyles(t,e),i&&this.styleCache.set(t,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(t,r,e)}},{key:"clearStyles",value:function(){var t=this;Object.keys(this.mru).forEach((function(e){t.mru[e]=""})),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=this.styler.getFlowDirection(t),i=_slicedToArray(n,2),r=i[0],o=i[1];if(!o&&e){var a=function(t){var e=function(t){var e=_slicedToArray((t=t?t.toLowerCase():"").split(" "),3),n=e[0],i=e[1],r=e[2];return pO.find((function(t){return t===n}))||(n=pO[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,mO(i),!!r]}(t),n=_slicedToArray(e,3);return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(n[0],n[1],n[2])}(r);this.styler.applyStyleToElements(a,[t])}return r.trim()}return"row"}},{key:"hasWrap",value:function(t){return this.styler.hasWrap(t)}},{key:"applyStyleToElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,t,e)}},{key:"setValue",value:function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}},{key:"updateWithValue",value:function(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}},{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}
1,set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}}]),t}()).\u0275fac=function(t){Pa()},vO.\u0275dir=Ce({type:vO,features:[Ns]}),vO),yO=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],_O="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",bO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",wO="(orientation: portrait) and (min-width: 840px)",kO="(orientation: landscape) and (min-width: 1280px)",CO={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:"".concat(_O," , ").concat(bO),WEB:"".concat(wO,", ").concat(kO," "),HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:"".concat(_O," "),WEB_PORTRAIT:"".concat(wO),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:"".concat(bO),WEB_LANDSCAPE:"".concat(kO)},xO=[{alias:"handset",priority:2e3,mediaQuery:CO.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:CO.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:CO.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:CO.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:CO.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:CO.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:CO.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:CO.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:CO.WEB_PORTRAIT,overlapping:!0}],SO=/(\.|-|_)/g;function EO(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var IO=new Ht("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=Zt(fO),e=Zt(cO),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return t.forEach((function(t){i[t.alias]=t})),n.forEach((function(t){i[t.alias]?function(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])}}(i[t.alias],t):i[t.alias]=t})),(e=Object.keys(i).map((function(t){return i[t]}))).forEach((function(t){t.suffix||(t.suffix=function(t){return t.replace(SO,"|").split("|").map(EO).join("")}(t.alias),t.overlapping=!!t.overlapping)})),e}((e.disableDefaultBps?[]:yO).concat(e.addOrientationBps?xO:[]),n)}});function AO(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function TO(t,e){return(t.priority||0)-(e.priority||0)}var OO,DO,PO,RO=((DO=function(){function t(e){_classCallCheck(this,t),this.findByMap=new Map,this.items=_toConsumableArray(e).sort(TO)}return _createClass(t,[{key:"findByAlias",value:function(t){return t?this.findWithPredicate(t,(function(e){return e.alias==t})):null}},{key:"findByQuery",value:function(t){return this.findWithPredicate(t,(function(e){return e.mediaQuery==t}))}},{key:"findWithPredicate",value:function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}},{key:"overlappings",get:function(){return this.items.filter((function(t){return 1==t.overlapping}))}},{key:"aliases",get:function(){return this.items.map((function(t){return t.alias}))}},{key:"suffixes",get:function(){return this.items.map((function(t){return t.suffix?t.suffix:""}))}}]),t}()).\u0275fac=function(t){return new(t||DO)(Xt(IO))},DO.\u0275prov=dt({factory:function(){return new DO(Xt(IO))},token:DO,providedIn:"root"}),DO),NO=((OO=function(){function t(e,n,i){_classCallCheck(this,t),this._zone=e,this._platformId=n,this._document=i,this.source=new Pd(new sO(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return _createClass(t,[{key:"isActive",value:function(t){var e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some((function(t){return t.matches}))}},{key:"observe",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&t.length){var i=this._observable$.pipe(Hd((function(e){return!n||t.indexOf(e.mediaQuery)>-1})));return Q(new k((function(n){var i=e.registerQuery(t);if(i.length){var r=i.pop();
1i.forEach((function(t){n.next(t)})),e.source.next(r)}n.complete()})),i)}return this._observable$}},{key:"registerQuery",value:function(t){var e=this,n=Array.isArray(t)?t:[t],i=[];return function(t,e){var n=t.filter((function(t){return!MO[t]}));if(n.length>0){var i=n.join(", ");try{var r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),e.head.appendChild(r),n.forEach((function(t){return MO[t]=r}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=function(n){e._zone.run((function(){return e.source.next(new sO(n.matches,t))}))},r=e.registry.get(t);r||((r=e.buildMQL(t)).addListener(n),e.pendingRemoveListenerFns.push((function(){return r.removeListener(n)})),e.registry.set(t,r)),r.matches&&i.push(new sO(!0,t))})),i}},{key:"ngOnDestroy",value:function(){for(var t;t=this.pendingRemoveListenerFns.pop();)t()}},{key:"buildMQL",value:function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(t,jf(this._platformId))}},{key:"activations",get:function(){var t=[];return this.registry.forEach((function(e,n){e.matches&&t.push(n)})),t}}]),t}()).\u0275fac=function(t){return new(t||OO)(Xt(Ll),Xt(wl),Xt(_c))},OO.\u0275prov=dt({factory:function(){return new OO(Xt(Ll),Xt(wl),Xt(_c))},token:OO,providedIn:"root"}),OO),MO={},FO={alias:"print",mediaQuery:"print",priority:1e3},LO=((PO=function(){function t(e,n,i){_classCallCheck(this,t),this.breakpoints=e,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new jO,this.deactivations=[]}return _createClass(t,[{key:"withPrintQuery",value:function(t){return[].concat(_toConsumableArray(t),["print"])}},{key:"isPrintEvent",value:function(t){return t.mediaQuery.startsWith("print")}},{key:"getEventBreakpoints",value:function(t){var e=t.mediaQuery,n=this.breakpoints.findByQuery(e);return(n?[].concat(_toConsumableArray(this.printBreakPoints),[n]):this.printBreakPoints).sort(AO)}},{key:"updateEvent",value:function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),dO(t,e)}},{key:"registerBeforeAfterPrintHooks",value:function(t){var e=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new sO(!0,"print"))),t.updateStyles())},i=function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}}},{key:"blockPropagation",value:function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}}},{key:"startPrinting",value:function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}},{key:"stopPrinting",value:function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(AO))}}},{key:"ngOnDestroy",value:function(){var t=this;
1this.beforePrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("beforeprint",e)})),this.afterPrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("afterprint",e)}))}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var t=this;return this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t}))}}]),t}()).\u0275fac=function(t){return new(t||PO)(Xt(RO),Xt(cO),Xt(_c))},PO.\u0275prov=dt({factory:function(){return new PO(Xt(RO),Xt(cO),Xt(_c))},token:PO,providedIn:"root"}),PO),jO=function(){function t(){_classCallCheck(this,t),this.printBreakpoints=[]}return _createClass(t,[{key:"addPrintBreakpoints",value:function(t){var e=this;return t.push(FO),t.sort(AO),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t].concat(_toConsumableArray(this.printBreakpoints)):[].concat(_toConsumableArray(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),t}();function BO(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var VO,UO=((VO=function(){function t(e,n,i,r){_classCallCheck(this,t),this._serverStylesheet=e,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return _createClass(t,[{key:"applyStyleToElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:BO(e),this._applyMultiValueStyleToElement(i,t)}},{key:"applyStyleToElements",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?t:BO(t);n.forEach((function(t){e._applyMultiValueStyleToElement(i,t)}))}},{key:"getFlowDirection",value:function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Bf(this._platformId)&&this._serverModuleLoaded?e:""]}},{key:"hasWrap",value:function(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}},{key:"lookupAttributeValue",value:function(t,e){return t.getAttribute(e)||""}},{key:"lookupInlineStyle",value:function(t,e){return jf(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}},{key:"lookupStyle",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return t&&((i=this.lookupInlineStyle(t,e))||(jf(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(t,e){var n=this;Object.keys(t).sort().forEach((function(i){var r=t[i],o=Array.isArray(r)?r:[r];o.sort();var a,s=_createForOfIteratorHelper(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;u=u?u+"":"",jf(n._platformId)||!n._serverModuleLoaded?jf(n._platformId)?e.style.setProperty(i,u):n._setServerStyle(e,i,u):n._serverStylesheet.addStyleToElement(e,i,u)}}catch(l){s.e(l)}finally{s.f()}}))}},{key:"_setServerStyle",value:function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}},{key:"_getServerStyle",value:function(t,e){return this._readStyleAttribute(t)[e]||""}},{key:"_readStyleAttribute",value:function(t){var e={},n=t.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e}},{key:"_writeStyleAttribute",value:function(t,e){var n="";for(var i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}]),t}()).\u0275fac=function(t){return new(t||VO)(Xt(uO),Xt(hO),Xt(wl),Xt(cO))},VO.\u0275prov=dt({factory:function(){return new VO(Xt(uO),Xt(hO),Xt(wl),Xt(cO))},token:VO,providedIn:"root"}),VO),HO=function(){function t(){_classCallCheck(this,t),this.shouldCache=!0}return _createClass(t,[{key:"sideEffect",value:function(t,e,n){}}]),t}();function zO(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[e,n,t],r=t.indexOf("calc");if(r>0){i[2]=qO(t.substring(r).trim());var o=t.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=qO(t.trim());else{var a=t.split(" ");i=3===a.length?a:[e,n,t]}return i}function qO(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var WO,GO=((WO=function(){function t(e,n,i){_classCallCheck(this,t),this.matchMedia=e,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKe
1yMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new A,this.observeActivations()}return _createClass(t,[{key:"onMediaChange",value:function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=dO(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(AO),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(AO),this.updateStyles()))}},{key:"init",value:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];KO(this.updateMap,t,e,n),KO(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)}},{key:"getValue",value:function(t,e,n){var i=this.elementMap.get(t);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(r)return r.get(e)}}},{key:"hasValue",value:function(t,e){var n=this.elementMap.get(t);if(n){var i=this.getActivatedValues(n,e);if(i)return void 0!==i.get(e)||!1}return!1}},{key:"setValue",value:function(t,e,n,i){var r=this.elementMap.get(t);if(r){var o=(r.get(i)||new Map).set(e,n);r.set(i,o),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)}},{key:"trackValue",value:function(t,e){return this.subject.asObservable().pipe(Hd((function(n){return n.element===t&&n.key===e})))}},{key:"updateStyles",value:function(){var t=this;this.elementMap.forEach((function(e,n){var i=new Set(t.elementKeyMap.get(n)),r=t.getActivatedValues(e);r&&r.forEach((function(e,r){t.updateElement(n,r,e),i.delete(r)})),i.forEach((function(i){if(r=t.getActivatedValues(e,i)){var o=r.get(i);t.updateElement(n,i,o)}else t.clearElement(n,i)}))}))}},{key:"clearElement",value:function(t,e){var n=this.clearMap.get(t);if(n){var i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}},{key:"updateElement",value:function(t,e,n){var i=this.updateMap.get(t);if(i){var r=i.get(e);r&&(r(n),this.subject.next({element:t,key:e,value:n}))}}},{key:"releaseElement",value:function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))}},{key:"triggerUpdate",value:function(t,e){var n=this,i=this.elementMap.get(t);if(i){var r=this.getActivatedValues(i,e);r&&(e?this.updateElement(t,e,r.get(e)):r.forEach((function(e,i){return n.updateElement(t,i,e)})))}}},{key:"buildElementKeyMap",value:function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}},{key:"watchExtraTriggers",value:function(t,e,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(t);if(r||(r=new Map,this.watcherMap.set(t,r)),!r.get(e)){var o=Q.apply(void 0,_toConsumableArray(n)).subscribe((function(){var n=i.getValue(t,e);i.updateElement(t,e,n)}));r.set(e,o)}}}},{key:"findByQuery",value:function(t){return this.breakpoints.findByQuery(t)}},{key:"getActivatedValues",value:function(t,e){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=t.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===e||i.has(e)&&null!=i.get(e)))return i}var r=t.get("");return void 0===e||r&&r.has(e)?r:void 0}},{key:"observeActivations",value:function(){var t=this.breakpoints.items.map((function(t){return t.mediaQuery}));this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(kp(this.hook.interceptEvents(this)),Hd(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}},{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}}]),t}()).\u0275fac=function(t){return new(t||WO)(Xt(NO),Xt(RO),Xt(LO))},WO.\u0275prov=dt({factory:function(){return new WO(Xt(NO),Xt(RO),Xt(LO))},token:WO,providedIn:"root"}),WO);function KO(t,e,n,i){if(void 0!==i){var r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(n,i)}}var YO=["row","column","row-reverse","column-reverse"];function QO(t){var e=_slicedToArray((t=t?t.toLowerCase():"").split(" "),3),n=e[0],i=e[1],r=e[2];return YO.find((function(t){return t===n}))||(n=YO[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,XO(i),!!r]}function $O(t){return _slicedToArray(QO(t),1)[0].indexOf("row")>-1}function XO(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var ZO,JO,tD,eD,nD,iD,rD=((ZO=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}((e=_slicedToArray(QO(t),3))[0],e[1],e[2]);var e}}]),n}(HO)).\u0275fac=function(t){return oD(t||ZO)},ZO.\u0275prov=dt({factory:function(){return new ZO},token:ZO,providedIn:"root"}),ZO),oD=fi(rD),aD=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],sD=((tD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="layout",a.styleCache=cD,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||tD)(Oa(Ys),Oa(UO),Oa(rD),Oa(GO))},tD.\u0275dir=Ce({type:tD,features:[As]}),tD),uD=((JO=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=aD,t}return n}(sD)).\u0275fac=function(t){return lD(t||JO)},JO.\u0275dir=Ce({type:JO,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl"
1:"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[As]}),JO),lD=fi(uD),cD=new Map,hD={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},fD=((eD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._styler=t,i}return _createClass(n,[{key:"buildStyles",value:function(t,e){return t.endsWith(wD)?(n=t=t.slice(0,t.indexOf(wD)),i=e.directionality,r=_slicedToArray(n.split(" "),2),o=r[0],s="0px",u=(a=function(t){return"-".concat(t)})(r[1]||o),l="0px","rtl"===i?l=a(o):s=a(o),{margin:"0px ".concat(s," ").concat(u," ").concat(l)}):{};var n,i,r,o,a,s,u,l}},{key:"sideEffect",value:function(t,e,n){var i,r,o,a,s,u,l,c=n.items;if(t.endsWith(wD)){var h=(i=t=t.slice(0,t.indexOf(wD)),r=n.directionality,o=_slicedToArray(i.split(" "),2),a=o[0],s=o[1],u="0px",l="0px","rtl"===r?l=a:u=a,{padding:"0px ".concat(u," ").concat(s||a," ").concat(l)});this._styler.applyStyleToElements(h,n.items)}else{var f=c.pop(),d=function(t,e){var n=kD(e.directionality,e.layout),i=Object.assign({},hD);return i[n]=t,i}(t,n);this._styler.applyStyleToElements(d,c),this._styler.applyStyleToElements(hD,[f])}}}]),n}(HO)).\u0275fac=function(t){return new(t||eD)(Xt(UO))},eD.\u0275prov=dt({factory:function(){return new eD(Xt(UO))},token:eD,providedIn:"root"}),eD),dD=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],pD=((iD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s){var u;_classCallCheck(this,n),(u=e.call(this,t,a,o,s)).zone=i,u.directionality=r,u.styleUtils=o,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new A;var l=[u.directionality.change,u.observerSubject.asObservable()];return u.init(l),u.marshal.trackValue(u.nativeElement,"layout").pipe(g_(u.destroySubject)).subscribe(u.onLayoutChange.bind(_assertThisInitialized(u))),u}return _createClass(n,[{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(t){var e=this,n=t.value.split(" ");this.layout=n[0],YO.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(t){var e=this,n=this.childrenNodes.filter((function(t){return 1===t.nodeType&&e.willDisplay(t)})).sort((function(t,n){var i=+e.styler.lookupStyle(t,"order"),r=+e.styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1}));if(n.length>0){var i=this.directionality.value,r=this.layout;"row"===r&&"rtl"===i?this.styleCache=gD:"row"===r&&"rtl"!==i?this.styleCache=_D:"column"===r&&"rtl"===i?this.styleCache=yD:"column"===r&&"rtl"!==i&&(this.styleCache=bD),this.addStyles(t,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var t=Object.keys(this.mru).length>0,e=t?"padding":kD(this.directionality.value,this.layout);t&&_get(_getPrototypeOf(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(_defineProperty({},e,""),this.childrenNodes)}},{key:"willDisplay",value:function(t){var e=this.marshal.getValue(t,"show-
1hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}},{key:"buildChildObservable",value:function(){var t=this;this.zone.runOutsideAngular((function(){"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver((function(e){e.some((function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0}))&&t.observerSubject.next()})),t.observer.observe(t.nativeElement,{childList:!0}))}))}},{key:"childrenNodes",get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e}}]),n}(gO)).\u0275fac=function(t){return new(t||iD)(Oa(Ys),Oa(Ll),Oa(V_),Oa(UO),Oa(fD),Oa(GO))},iD.\u0275dir=Ce({type:iD,features:[As]}),iD),mD=((nD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=dD,t}return n}(pD)).\u0275fac=function(t){return vD(t||nD)},nD.\u0275dir=Ce({type:nD,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[As]}),nD),vD=fi(mD),gD=new Map,yD=new Map,_D=new Map,bD=new Map,wD=" grid";function kD(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function CD(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])}return t}var xD,SD,ED,ID,AD,TD,OD,DD,PD,RD,ND,MD,FD,LD,jD,BD,VD,UD,HD=((xD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).layoutConfig=t,i}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n=_toArray(t.split(" ")),i=n[0],r=n[1],o=n.slice(2).join(" "),a=e.direction.indexOf("column")>-1?"column":"row",s=$O(a)?"max-width":"max-height",u=$O(a)?"min-width":"min-height",l=String(o).indexOf("calc")>-1,c=l||"auto"===o,h=String(o).indexOf("%")>-1&&!l,f=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,d=l||f;r="0"==r?0:r;var p=!(i="0"==i?0:i)&&!r,m={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":var g=!1!==this.layoutConfig.useColumnBasisZero;o="row"===a?"0%":g?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:d||h||isNaN(o)||(o+="%"),"0%"===o&&(d=!0),"0px"===o&&(o="0%"),m=CD(v,l?{"flex-grow":i,"flex-shrink":r,"flex-basis":d?o:"100%"}:{flex:"".concat(i," ").concat(r," ").concat(d?o:"100%")})}return m.flex||m["flex-grow"]||(m=CD(v,l?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[u]=p||d&&i?o:null,m[s]=p||!c&&r?o:null),m[u]||m[s]?e.hasWrap&&(m[l?"flex-basis":"flex"]=m[s]?l?m[s]:"".concat(i," ").concat(r," ").concat(m[s]):l?m[u]:"".concat(i," ").concat(r," ").concat(m[u])):m=CD(v,l?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)}),CD(m,{"box-sizing":"border-box"})}}]),n}(HO)).\u0275fac=function(t){return new(t||xD)(Xt(cO))},xD.\u0275prov=dt({factory:function(){return new xD(Xt(cO))},token:xD,providedIn:"root"}),xD),zD=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],qD=((ED=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t,o,i,a)).layoutConfig=r,s.marshal=a,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return _createClass(n,[{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(g_(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(g_(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=QD:n&&!i?this.styleCache=KD:!n&&i?this.styleCache=$D:n||i||(this.styleCache=YD);var r=zO(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:e,hasWrap:i})}},{key:"triggerReflow",value:function(){var t=this.activatedValue;if(void 0!==t){var e=zO(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}},{key:"shrink",get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()}}]),n}(gO)).\u0275fac=function(t){return new(t||ED)(Oa(Ys),Oa(UO),Oa(cO),Oa(HD),Oa(GO))},ED.\u0275dir=Ce({type:ED,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[As]}),ED),WD=((SD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=zD,t}return n}(qD)).\u0275fac=function(t){return GD(t||SD)},SD.\u0275dir=Ce({type:SD,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[As]}),SD),GD=fi(WD),KD=new Map,YD=new Map,QD=new Map,$D=new Map,XD=((ID=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return{order:t&&parseInt(t,10)||""}}}]),n}(HO)).\u0275fac=function(t){return ZD(t||ID)},ID.\u0275prov=dt({factory:function(){return new ID},token:ID,providedIn:"root"}),ID),ZD=fi(XD),JD=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"],tP=((AD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="flex-order",a.styleCache=eP,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||AD)(Oa(Ys),Oa(UO),Oa(XD),Oa(GO))},AD.\u0275dir=Ce({type:AD,features:[As]}),AD),eP=new Map,nP=((TD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=JD,t}return n}(tP)).\u0275fac=function(t){return iP(t||TD)},TD.\u0275dir=Ce({type:TD,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[As]}),TD),iP=fi(nP),rP=((OD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){""===t&&(t="0");var n=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||n||isNaN(+t)||(t+="%");var i=e.isRtl?"margin-right":"margin-left";return $O(e.layout)?_defineProperty({},i,"".concat(t)):{"margin-top":"".concat(t)}}}]),n}(HO)).\u0275fac=function(t){return oP(t||OD)},OD.\u0275prov=dt({factory:function(){return new OD},token:OD,providedIn:"root"}),OD),oP=fi(rP),aP=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"],sP=((PD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t,r,a,o)).directionality=i,s.DIRECTIVE_KEY="flex-offset",s.init([s.directionality.change]),s.parentElement&&s.marshal.trackValue(s.parentElement,"layout-gap").pipe(g_(s.destroySubject)).subscribe(s.triggerUpdate.bind(_assertThisInitialized(s))),s}return _createClass(n,[{key:"updateWithValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.getFlexFlowDirection(this.parentElement,!0),n="rtl"===this.directionality.value;"row"===e&&n?this.styleCache=cP:"row"!==e||n?"column"===e&&n?this.styleCache=hP:"column"!==e||n||(this.styleCache=dP):this.styleCache=fP,this.addStyles(t+"",{layout:e,isRtl:n})}}]),n}(gO)).\u0275fac=function(t){return new(t||PD)(Oa(Ys),Oa(V_),Oa(rP),Oa(GO),Oa(UO))},PD.\u0275dir=Ce({type:PD,features:[As]}),PD),uP=((DD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=aP,t}return n}(sP)).\u0275fac=function(t){return lP(t||DD)},DD.\u0275dir=Ce({type:DD,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl"
1:"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[As]}),DD),lP=fi(uP),cP=new Map,hP=new Map,fP=new Map,dP=new Map,pP=((RD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){var e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}]),n}(HO)).\u0275fac=function(t){return mP(t||RD)},RD.\u0275prov=dt({factory:function(){return new RD},token:RD,providedIn:"root"}),RD),mP=fi(pP),vP=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],gP=((ND=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="flex-align",a.styleCache=yP,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||ND)(Oa(Ys),Oa(UO),Oa(pP),Oa(GO))},ND.\u0275dir=Ce({type:ND,features:[As]}),ND),yP=new Map,_P=((MD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=vP,t}return n}(gP)).\u0275fac=function(t){return bP(t||MD)},MD.\u0275dir=Ce({type:MD,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[As]}),MD),bP=fi(_P),wP={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},kP=((FD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return wP}}]),n}(HO)).\u0275fac=function(t){return CP(t||FD)},FD.\u0275prov=dt({factory:function(){return new FD},token:FD,providedIn:"root"}),FD),CP=fi(kP),xP=((LD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).styleCache=SP,a.addStyles(""),a}return n}(gO)).\u0275fac=function(t){return new(t||LD)(Oa(Ys),Oa(UO),Oa(kP),Oa(GO))},LD.\u0275dir=Ce({type:LD,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[As]}),LD),SP=new Map,EP=((jD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n={},i=_slicedToArray(t.split(" "),2),r=i[0],o=i[1];switch(r){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return CD(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===o?$O(e.layout)?
1null:"100%":null,"max-height":"stretch"===o&&$O(e.layout)?"100%":null})}}]),n}(HO)).\u0275fac=function(t){return IP(t||jD)},jD.\u0275prov=dt({factory:function(){return new jD},token:jD,providedIn:"root"}),jD),IP=fi(EP),AP=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],TP=((VD=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="layout-align",a.layout="row",a.inline=!1,a.init(),a.marshal.trackValue(a.nativeElement,"layout").pipe(g_(a.destroySubject)).subscribe(a.onLayoutChange.bind(_assertThisInitialized(a))),a}return _createClass(n,[{key:"updateWithValue",value:function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=FP:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=jP:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=LP:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=BP:"column-reverse"!==e||n||(this.styleCache=MP):this.styleCache=RP:this.styleCache=NP:this.styleCache=PP,this.addStyles(t,{layout:e,inline:n})}},{key:"onLayoutChange",value:function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),YO.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()}}]),n}(gO)).\u0275fac=function(t){return new(t||VD)(Oa(Ys),Oa(UO),Oa(EP),Oa(GO))},VD.\u0275dir=Ce({type:VD,features:[As]}),VD),OP=((BD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=AP,t}return n}(TP)).\u0275fac=function(t){return DP(t||BD)},BD.\u0275dir=Ce({type:BD,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[As]}),BD),DP=fi(OP),PP=new Map,RP=new Map,NP=new Map,MP=new Map,FP=new Map,LP=new Map,jP=new Map,BP=new Map,VP=((UD=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:UD}),UD.\u0275inj=pt({factory:function(t){return new(t||UD)},imports:[[aO,H_]]}),UD);function UP(t,e){if(1&t&&(In(),La(0,"circle",3)),2&t){var n=Qa();ss("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Ea("r",n._circleRadius)}}function HP(t,e){if(1&t&&(In(),La(0,"circle",3)),2&t){var n=Qa();ss("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Ea("r",n._circleRadius)}}function zP(t,e){if(1&t&&(In(),La(0,"circle",3)),2&t){var n=Qa();ss("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Ea("r",n._circleRadius)}}function qP(t,e){if(1&t&&(In(),La(0,"circle",3)),2&t){var n=Qa();ss("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Ea("r",n._circleRadius)}}var WP,GP,KP,YP,QP=Mx((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),$P=new Ht("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),XP=((YP=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;_classCallCheck(this,n),(s=e.call(this,t))._elementRef=t,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=M_(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",e+""),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMET
1ER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=e_(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=e_(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,e_(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),n}(QP)).\u0275fac=function(t){return new(t||YP)(Oa(Ys),Oa(T_),Oa(_c,8),Oa(Cx,8),Oa($P))},YP.\u0275cmp=ve({type:YP,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Ea("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),ss("width",e.diameter,"px")("height",e.diameter,"px"),us("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[As],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(In(),Ma(0,"svg",0),Aa(1,UP,1,9,"circle",1),Aa(2,HP,1,7,"circle",2),Fa()),2&t&&(ss("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Ea("viewB
1ox",e._viewBox),kr(1),Ra("ngSwitchCase",!0),kr(1),Ra("ngSwitchCase",!1))},directives:[Kh,Yh],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),YP._diameters=new WeakMap,YP),ZP=((KP=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t,i,r,o,a)).mode="indeterminate",s}return n}(XP)).\u0275fac=function(t){return new(t||KP)(Oa(Ys),Oa(T_),Oa(_c,8),Oa(Cx,8),Oa($P))},KP.\u0275cmp=ve({type:KP,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ss("width",e.diameter,"px")("height",e.diameter,"px"),us("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[As],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(In(),Ma(0,"svg",0),Aa(1,zP,1,9,"circle",1),Aa(2,qP,1,7,"circle",2),Fa()),2&t&&(ss("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Ea("viewB
1ox",e._viewBox),kr(1),Ra("ngSwitchCase",!0),kr(1),Ra("ngSwitchCase",!1))},directives:[Kh,Yh],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),KP),JP=((GP=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:GP}),GP.\u0275inj=pt({factory:function(t){return new(t||GP)},imports:[[Rx,Lf],Rx]}),GP),tR=((WP=function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.data=n}).\u0275fac=function(t){return new(t||WP)(Oa(MS),Oa(FS))},WP.\u0275cmp=ve({type:WP,selectors:[["vf-waiting"]],decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","space-between center"],["mode","indeterminate","fxFlexOffset","20px"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div"),ws(2),Fa(),La(3,"mat-progress-spinner",1),Fa()),2&t&&(kr(2),ks(null==e.data?null:e.data.message))},directives:[uD,OP,XP,uP],styles:[""]}),WP),eR=function(t){return t[t.DATE=0]="DATE",t[t.NAME=1]="NAME",t[t.INFO=2]="INFO",t[t.DAYS=3]="DAYS",t}({}),nR=["trigger"],iR=["panel"];function rR(t,e){if(1&t&&(Ma(0,"span",8),ws(1),Fa()),2&t){var n=Qa();kr(1),ks(n.placeholder||"\xa0")}}function oR(t,e){if(1&t&&(Ma(0,"span"),ws(1),Fa()),2&t){var n=Qa(2);kr(1),ks(n.triggerValue||"\xa0")}}function aR(t,e){1&t&&Za(0,0,["*ngSwitchCase","true"])}function sR(t,e){1&t&&(Ma(0,"span",9),Aa(1,oR,2,1,"span",10),Aa(2,aR,1,0,void 0,11),Fa()),2&t&&(Ra("ngSwitch",!!Qa().customTrigger),kr(2),Ra("ngSwitchCase",!0))}function uR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"div",13,14),qa("@transformPanel.done",(function(t){return en(n),Qa()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return en(n),Qa()._handleKeydown(t)})),Za(3,1),Fa(),Fa()}if(2&t){var i=Qa();Ra("@transformPanelWrap",void 0),kr(1),xs("mat-select-panel ",i._getPanelTheme(
1),""),ss("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Ra("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),Ea("id",i.id+"-panel")}}var lR,cR,hR,fR=[[["mat-select-trigger"]],"*"],dR=["mat-select-trigger","*"],pR={transformPanelWrap:Jw("transformPanelWrap",[ok("* => void",sk("@transformPanel",[ak()],{optional:!0}))]),transformPanel:Jw("transformPanel",[rk("void",ik({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),rk("showing",ik({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),rk("showing-multiple",ik({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ok("void => *",tk("120ms cubic-bezier(0, 0, 0.2, 1)")),ok("* => void",tk("100ms 25ms linear",ik({opacity:0})))])},mR=0,vR=new Ht("mat-select-scroll-strategy"),gR=new Ht("MAT_SELECT_CONFIG"),yR={provide:vR,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},_R=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},bR=Fx(Lx(Nx(jx((function t(e,n,i,r,o){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}))))),wR=((hR=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||hR)},hR.\u0275dir=Ce({type:hR,selectors:[["mat-select-trigger"]]}),hR),kR=((cR=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l,c,h,f,d,p,m){var v;return _classCallCheck(this,n),(v=e.call(this,a,o,u,l,h))._viewportRuler=t,v._changeDetectorRef=i,v._ngZone=r,v._dir=s,v._parentFormField=c,v.ngControl=h,v._liveAnnouncer=p,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(t,e){return t===e},v._uid="mat-select-".concat(mR++),v._destroy=new A,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new A,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=Vd((function(){var t=v.options;return t?t.changes.pipe(vp(t),fp((function(){return Q.apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(ap(1),fp((function(){return v.optionSelectionChanges})))})),v.openedChange=new Ku,v._openedStream=v.openedChange.pipe(Hd((function(t){return t})),B((function(){}
1))),v._closedStream=v.openedChange.pipe(Hd((function(t){return!t})),B((function(){}))),v.selectionChange=new Ku,v.valueChange=new Ku,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=d,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(f)||0,v.id=v.id,m&&(null!=m.disableOptionCentering&&(v.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=m.typeaheadDebounceInterval)),v}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new $_(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(l_(),g_(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(g_(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(g_(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(vp(null),g_(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.options&&this._setSelectionByValue(t)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!bb(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||bb(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(o?t.select():t.deselect())}))}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(ap(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return Ai()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Iw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(g_(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(g_(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=Q(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g_(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Q.apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(g_(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new _R(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=yS(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=_S(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=yS(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=t_(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=t_(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=t_(t)}},{key:"compareWith",get:function(){return this._compareWith}
1,set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=e_(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(bR)).\u0275fac=function(t){return new(t||cR)(Oa(tb),Oa($o),Oa(Ll),Oa(Ux),Oa(Ys),Oa(V_,8),Oa(PI,8),Oa(GI,8),Oa(DT,8),Oa(dE,10),Da("tabindex"),Oa(vR),Oa(jw),Oa(gR,8))},cR.\u0275cmp=ve({type:cR,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,wR,!0),ul(n,gS,!0),ul(n,fS,!0)),2&t&&(rl(i=hl())&&(e.customTrigger=i.first),rl(i=hl())&&(e.options=i),rl(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(al(nR,!0),al(iR,!0),al(rw,!0)),2&t&&(rl(n=hl())&&(e.trigger=n.first),rl(n=hl())&&(e.panel=n.first),rl(n=hl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(Ea("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),us("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[qs([{provide:aT,useExisting:cR},{provide:vS,useExisting:cR}]),As,Ns],ngContentSelectors:dR,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Xa(fR),Ma(0,"div",0,1),qa("click",(function(){return e.toggle(
1)})),Ma(3,"div",2),Aa(4,rR,2,1,"span",3),Aa(5,sR,3,2,"span",4),Fa(),Ma(6,"div",5),La(7,"div",6),Fa(),Fa(),Aa(8,uR,4,11,"ng-template",7),qa("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=Ta(1);kr(3),Ra("ngSwitch",e.empty),kr(1),Ra("ngSwitchCase",!0),kr(1),Ra("ngSwitchCase",!1),kr(3),Ra("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[iw,Kh,Yh,rw,Qh,Dh],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[pR.transformPanelWrap,pR.transformPanel]},changeDetection:0}),cR),CR=((lR=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:lR}),lR.\u0275inj=pt({factory:function(t){return new(t||lR)},providers:[yR],imports:[[Lf,aw,wS,Rx],eb,RT,wS,Rx]}),lR);function xR(t,e){1&t&&(Ma(0,"span"),ws(1,"Names"),Fa())}function SR(t,e){1&t&&(Ma(0,"span"),ws(1,"Dates"),Fa())}function ER(t,e){1&t&&(Ma(0,"span"),ws(1,"Info"),Fa())}function IR(t,e){1&t&&(Ma(0,"span"),ws(1,"Days"),Fa())}function AR(t,e){if(1&t){var n=Ua();Ma(0,"div",8),Ma(1,"div",9),ws(2,"Type:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa().daysCondition=t})),Ma(5,"mat-option",11),ws(6,"Weekend"),Fa(),Ma(7,"mat-option",11),ws(8,"Weekday"),Fa(),Ma(9,"mat-option",11),ws(10,"Monday"),Fa(),Ma(11,"mat-option",11),ws(12,"Tuesday"),Fa(),Ma(13,"mat-option",11),ws(14,"Wednesday"),Fa(),Ma(15,"mat-option",11),ws(16,"Thursday"),Fa(),Ma(17,"mat-option",11),ws(18,"Friday"),Fa(),Ma(19,"mat-option",11),ws(20,"Saturday"),Fa(),Ma(21,"mat-option",11),ws(22,"Sunday"),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.daysCondition),kr(1),Ra("value","is_weekend"),kr(2),Ra("value","is_weekday"),kr(2),Ra("value","is_monday"),kr(2),Ra("value","is_tuesday"),kr(2),Ra("value","is_wednesday"),kr(2),Ra("value","is_thursday"),kr(2),Ra("value","is_friday"),kr(2),Ra("value","is_saturday"),kr(2),Ra("value","is_sunday")}}function TR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"div",9),ws(2,"If Text:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"input",13),qa("ngModelChange",(function(t){return en(n),Qa().daysIfText=t})),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.daysIfText)}}function OR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"div",9),ws(2,"Else Text:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"input",13),qa("ngModelChange",(function(t){return en(n),Qa().daysElseText=t})),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.daysElseText)}}function DR(t,e){1&t&&(Ma(0,"div"),ws(1,"Save time typing names on "),Ma(2,"b"),ws(3,"LinkedIn"),Fa(),ws(4,", "),Ma(5,"b"),ws(6,"Gmail"),Fa(),ws(7,", and "),Ma(8,"b"),ws(9,"FrontSpin"),Fa(),ws(10,"."),Fa())}function PR(t,e){if(1&t){var n=Ua();Ma(0,"div",8),Ma(1,"div",9),ws(2,"Type:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa().nameTag=t})),Ma(5,"mat-option",11),ws(6," Recipient First Name"),Fa(),Ma(7,"mat-option",11),ws(8,"Recipient Last Name"),Fa(),Ma(9,"mat-option",11),ws(10,"Recipient Full Name"),Fa(),Ma(11,"mat-option",11),ws(12,"User First Name"),Fa(),Ma(13,"mat-option",11),ws(14,"User Last Name"),Fa(),Ma(15,"mat-option",11),ws(16,"User Full Name"),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.nameTag),kr(1),Ra("value","FNAME"),kr(2),Ra("value","LNAME"),kr(2),Ra("value","NAME"),kr(2),Ra("value","USERFNAME"),kr(2),Ra("value","USERLNAME"),kr(2),Ra("value","USERNAME")}}function RR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"div",9),ws(2,"Backup:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"input",13),qa("ngModelChange",(function(t){return en(n),Qa().backup=t})),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.backup)}}function NR(t,e){1&t&&(Ma(0,"div"),ws(1,"Save time typing details on "),Ma(2,"b"),ws(3,"LinkedIn"),Fa(),ws(4," and "),Ma(5,"b"),ws(6,"FrontSpin"),Fa(),ws(7,"."),Fa())}function MR(t,e){if(1&t){var n=Ua();Ma(0,"div",8),Ma(1,"div",9),ws(2,"Type:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa().infoTag=t})),Ma(5,"mat-option",11),ws(6,"Title"),Fa(),Ma(7,"mat-option",11),ws(8,"Company"),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.infoTag),kr(1),Ra("value","TITLE"),kr(2),Ra("value","COMPANY")}}function FR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"div",9),ws(2,"Backup:"),Fa(),Ma(3,"mat-form-field"),Ma(4,"input",13),qa("ngModelChange",(function(t){return en(n),Qa().infoBackup=t})),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(4),Ra("ngModel",i.infoBackup)}}function LR(t,e){1&t&&(Ma(0,"div"),ws(1,"Schedule meetings often? Save time typing dates."),Fa())}function jR(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field",18),Ma(1,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa(2).dateTag=t})),Ma(2,"mat-option",19),ws(3,"Weekday"),Fa(),Ma(4,"mat-option",20),ws(5,"Day"),Fa(),Fa(),Fa()}if(2&t){var i=Qa(2);kr(1),Ra("ngModel",i.dateTag)}}function BR(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field",18),Ma(1,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa(2).dateTag=t})),Ma(2,"mat-option",19),ws(3,"Weekdays"),Fa(),Ma(4,"mat-option",20),ws(5,"Days"),Fa(),Fa(),Fa()}if(2&t){var i=Qa(2);kr(1),Ra("ngModel",i.dateTag)}}function VR(t,e){if(1&t){var n=Ua();Ma(0,"div",12),Ma(1,"mat-form-field",14),Ma(2,"input",15),qa("ngModelChange",(function(t){return en(n),Qa().days=t})),Fa(),Fa(),Aa(3,jR,6,1,"mat-form-field",16),Aa(4,BR,6,1,"mat-form-field",16),Ma(5,"b",17),ws(6,"from now"),Fa(),Fa()}if(2&t){var i=Qa();kr(2),Ra("ngModel",i.days)("min",1),kr(1),Ra("ngIf",1===i.days),kr(1),Ra("ngIf",i.days>1)}}function UR(t,e){if(1&t){var n=Ua();Ma(0,"div"),Ma(1,"mat-form-field"),Ma(2,"mat-select",10),qa("ngModelChange",(function(t){return en(n),Qa().format=t})),Ma(3,"mat-select-trigger"),ws(4),Fa(),Ma(5,"mat-option",21),ws(6),Fa(),Ma(7,"mat-option",22),ws(8),Fa(),Ma(9,"mat-option",23),ws(10),Fa(),Ma(11,"mat-option",24),ws(12),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(2),Ra("ngModel",i.format),kr(2),ks(i.formatPreview(i.format)),kr(2),ks(i.formatPreview("1")),kr(2),ks(i.formatPreview("2")),kr(2),ks(i.formatPreview("3")),kr(2),ks(i.formatPreview("4"))}}var HR,zR,qR,WR,GR=((HR=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.type=n,this.nameTag="FNAME",this.backup="there",this.infoTag="TITLE",this.infoBackup="People in your position",this.dateTag="WEEKDAYS",this.days=1,this.format="1",this.daysCondition="is_weekday",this.daysIfText="",this.daysElseText="",this.TYPES=eR}return _createClass(t,[{key:"formatPreview",value:function(t){var e="".concat(this.days,"|").concat(t);return"DAYS"===this.dateTag?_y(e):"WEEKDAYS"===this.dateTag?by(e):void 0}},{key:"submit",value:function(){}},{key:"cancel",value:function(){this.dialogRef.close(null)}},{key:"save",value:function(){var t;this.type===eR.DATE?t="".concat(this.dateTag,":").concat(this.days,"|").concat(this.format):this.type===eR.NAME?t="".concat(this.nameTag,":").concat(this.backup):this.type===eR.INFO?t="".concat(this.infoTag,":").concat(this.infoBackup):this.type===eR.DAYS&&(t="{{#if ".concat(this.daysCondition,"}}").concat(this.daysIfText),this.daysElseText.length>0&&(t+="{{else}}".concat(this.daysElseText)),t+="{{/if}}"),t&&this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||HR)(Oa(MS),Oa(FS))},HR.\u0275cmp=ve({type:HR,selectors:[["ng-component"]],decls:25,vars:17,consts:[["fxLayout","column",3,"ngSwitch"],["src","/assets/magic.svg",1,"magic"],[4,"ngSwitchCase"],["fxLayout","row","fxLayoutAlign","start center","fxFlexOffset","10px",4,"ngSwitchCase"],["fxLayout","row","fxLayoutAlign","start center",4,"ngSwitchCase"],["fxLayout","row","fxFlexOffset","10px"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"lighter",3,"click"],["fxLayout","row","fxLayoutAlign","start center","fxFlexOffset","10px"],[1,"label"],[3,"ngModel","ngModelChange"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center"],["matInput","",3,"ngModel","ngModelChange"],["fxFlex","40px"],["matInput","","type","number",3,"ngModel","min","ngModelChange"],["fxFlexOffset","10px","fxFlex","100px",4,"ngIf"],["fxFlexOffset","10px"],["fxFlexOffset","10px","fxFlex","100px"],["value","WEEKDAYS"],["value","DAYS"],["value","1"],["value","2"],["value","3"],["value","4"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"h3"),La(2,"img",1),ws(3," Magic "),Aa(4,xR,2,0,"span",2),Aa(5,SR,2,0,"span",2),Aa(6,ER,2,0,"span",2),Aa(7,IR,2,0,"span",2),Fa(),Aa(8,AR,23,10,"div",3),Aa(9,TR,5,1,"div",4),Aa(10,OR,5,1,"div",4),Aa(11,DR,11,0,"div",2),Aa(12,PR,17,7,"div",3),Aa(13,RR,5,1,"div",4),Aa(14,NR,8,0,"div",2),Aa(15,MR,9,3,"div",3),Aa(16,FR,5,1,"div",4),Aa(17,LR,2,0,"div",2),Aa(18,VR,7,4,"div",4),Aa(19,UR,13,6,"div",2),Ma(20,"div",5),Ma(21,"button",6),qa("click",(function(){return e.save()})),ws(22,"Insert Variable"),Fa(),Ma(23,"button",7),qa("click",(function(){return e.cancel()})),ws(24,"cancel"),Fa(),Fa(),Fa()),2&t&&(Ra("ngSwitch",e.type),kr(4),Ra("ngSwitchCase",e.TYPES.NAME),kr(1),Ra("ngSwitchCase",e.TYPES.DATE),kr(1),Ra("ngSwitchCase",e.TYPES.INFO),kr(1),Ra("ngSwitchCase",e.TYPES.DAYS),kr(1),Ra("ngSwitchCase",e.TYPES.DAYS),kr(1),Ra("ngSwitchCase",e.TYPES.DAYS),kr(1),Ra("ngSwitchCase",e.TYPES.DAYS),kr(1),Ra("ngSwitchCase",e.TYPES.NAME),kr(1),Ra("ngSwitchCase",e.TYPES.NAME),kr(1),Ra("ngSwitchCase",e.TYPES.NAME),kr(1),Ra("ngSwitchCase",e.TYPES.INFO),kr(1),Ra("ngSwitchCase",e.TYPES.INFO),kr(1),Ra("ngSwitchCase",e.TYPES.INFO),kr(1),Ra("ngSwitchCase",e.TYPES.DATE),kr(1),Ra("ngSwitchCase",e.TYPES.DATE),kr(1),Ra("ngSwitchCase",e.TYPES.DATE))},directives:[uD,Kh,Yh,uP,MA,OP,PT,kR,mE,VI,gS,WT,aE,WD,PE,Fh,wR],styles:[".label[_ngcontent-%COMP%]{width:100px}.label[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-weight:700}h3[_ngcontent-%COMP%]{font-size:25px}h3[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:25px}.help-icon[_ngcontent-%COMP%]{opacity:.8;cursor:help}.lighter[_ngcontent-%COMP%]{opacity:.5}"]}),HR),KR=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new YR(t,this.total))}}]),t}(),YR=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(m),QR=((zR=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:zR}),zR.\u0275inj=pt({factory:function(t){return new(t||zR)}}),zR),$R=new Set,XR=((WR=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ZR}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!$R.has(t))try{qR||((qR=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(qR)),qR.sheet&&(qR.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),$R.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||WR)(Xt(T_))},WR.\u0275prov=dt({factory:function(){return new WR(Xt(T_))},token:WR,providedIn:"root"}),WR);function ZR(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var JR,tN=((JR=function(){function t(e,n){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=ne
1w A}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return eN(i_(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=Md(eN(i_(t)).map((function(t){return e._registerQuery(t).observable})));return(n=mp(n.pipe(ap(1)),n.pipe((function(t){return t.lift(new KR(1))}),sw(0)))).pipe(B((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new k((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(vp(n),B((function(e){return{query:t,matches:e.matches}})),g_(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||JR)(Xt(XR),Xt(Ll))}
1,JR.\u0275prov=dt({factory:function(){return new JR(Xt(XR),Xt(Ll))},token:JR,providedIn:"root"}),JR);function eN(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}function nN(t,e){if(1&t){var n=Ua();Ma(0,"div",1),Ma(1,"button",2),qa("click",(function(){return en(n),Qa().action()})),ws(2),Fa(),Fa()}if(2&t){var i=Qa();kr(2),ks(i.data.action)}}function iN(t,e){}var rN,oN,aN,sN,uN,lN,cN,hN,fN=Math.pow(2,31)-1,dN=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._overlayRef=n,this._afterDismissed=new A,this._afterOpened=new A,this._onAction=new A,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return _createClass(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,fN))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),pN=new Ht("MatSnackBarData"),mN=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},vN=((rN=function(){function t(e,n){_classCallCheck(this,t),this.snackBarRef=e,this.data=n}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||rN)(Oa(dN),Oa(pN))},rN.\u0275cmp=ve({type:rN,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(Ma(0,"span"),ws(1),Fa(),Aa(2,nN,3,1,"div",0)),2&t&&(kr(1),ks(e.data.message),kr(1),Ra("ngIf",e.hasAction))},directives:[Fh,MA],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),rN),gN={snackBarState:Jw("state",[rk("void, hidden",ik({transform:"scale(0.8)",opacity:0}
1)),rk("visible",ik({transform:"scale(1)",opacity:1})),ok("* => visible",tk("150ms cubic-bezier(0, 0, 0.2, 1)")),ok("* => void, * => hidden",tk("75ms cubic-bezier(0.4, 0.0, 1, 1)",ik({opacity:0})))])},yN=((aN=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this))._ngZone=t,a._elementRef=i,a._changeDetectorRef=r,a.snackBarConfig=o,a._destroyed=!1,a._onExit=new A,a._onEnter=new A,a._animationState="void",a.attachDomPortal=function(t){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(t)},a._role="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?null:"status":"alert",a}return _createClass(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.fromState,n=t.toState;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(ap(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),n}(fb)).\u0275fac=function(t){return new(t||aN)(Oa(Ll),Oa(Ys),Oa($o),Oa(mN))},aN.\u0275cmp=ve({type:aN,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&ol(mb,!0),2&t&&rl(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&Wa("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(Ea("role",e._role),Es("@state",e._animationState))},features:[As],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,iN,0,0,"ng-template",0)},directives:[mb],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[gN.snackBarState]}}),aN),_N=((oN=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:oN}),oN.\u0275inj=pt({factory:function(t){return new(t||oN)},imports:[[aw,yb,Lf,LA,Rx],Rx]}),oN),bN=new Ht("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new mN}}),wN=((sN=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}return _createClass(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(vN,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=new _b(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[mN,e]])),i=new lb(yN,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=Object.assign(Object.assign(Object.assign({},new mN),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new dN(r,i);if(t instanceof yu){var a=new cb(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(a)}else{var s=this._createInjector(n,o),u=new lb(t,void 0,s),l=r.attachComponentPortal(u);o.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(g_(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()}
1)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new Ob;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new _b(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[dN,e],[pN,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}()).\u0275fac=function(t){return new(t||sN)(Xt(tw),Xt(jw),Xt(fa),Xt(tN),Xt(sN,12),Xt(bN))},sN.\u0275prov=dt({factory:function(){return new sN(Xt(tw),Xt(jw),Xt(zt),Xt(tN),Xt(sN,12),Xt(bN))},token:sN,providedIn:_N}),sN),kN=new Ht("angularfire2.functions.origin"),CN=new Ht("angularfire2.functions.region"),xN=((uN=function t(e,i,r,o,a){_classCallCheck(this,t);var s=new ey(r),u=Dd(void 0).pipe(Ig(s.outsideAngular),fp((function(){return n.e(6).then(n.bind(null,"Rm09"))})),B((function(){return uy(e,r,i)})),B((function(t){return t.functions(o||void 0)})),kp((function(t){a&&t.useFunctionsEmulator(a)})),jg({bufferSize:1,refCount:!1}));return this.httpsCallable=function(t){return function(e){return z(u).pipe(Ig(s.outsideAngular),fp((function(n){return n.httpsCallable(t)(e)})),B((function(t){return t.data})))}},ry(this,u,r)}).\u0275fac=function(t){return new(t||uN)(Xt(oy),Xt(ay,8),Xt(Ll),Xt(CN,8),Xt(kN,8))},uN.\u0275prov=dt({factory:function(){return new uN(Xt(oy),Xt(ay,8),Xt(Ll),Xt(CN,8),Xt(kN,8))},token:uN,providedIn:"any"}),uN),SN=function(){function t(e,n){_classCallCheck(this,t),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.opacity="0",r.position="absolute",r.left=r.top="-999em",i.setAttribute("aria-hidden","true"),i.value=e,this._document.body.appendChild(i)}
1return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(Y0){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),EN=((lN=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),n=e.copy();return e.destroy(),n}},{key:"beginCopy",value:function(t){return new SN(t,this._document)}}]),t}()).\u0275fac=function(t){return new(t||lN)(Xt(_c))},lN.\u0275prov=dt({factory:function(){return new lN(Xt(_c))},token:lN,providedIn:"root"}),lN),IN=new Ht("CKD_COPY_TO_CLIPBOARD_CONFIG"),AN=((hN=function(){function t(e,n,i){_classCallCheck(this,t),this._clipboard=e,this._ngZone=n,this.text="",this.attempts=1,this.copied=new Ku,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}
1return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var n=e,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var r=function e(){var r=i.copy();r||!--n||t._destroyed?(t._currentTimeout=null,t._pending.delete(i),i.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone?t._ngZone.runOutsideAngular((function(){return setTimeout(e,1)})):setTimeout(e,1)};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(t){return t.destroy()})),this._pending.clear(),this._destroyed=!0}}]),t}()).\u0275fac=function(t){return new(t||hN)(Oa(EN),Oa(Ll),Oa(IN,8))},hN.\u0275dir=Ce({type:hN,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&qa("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),hN),TN=((cN=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:cN}),cN.\u0275inj=pt({factory:function(t){return new(t||cN)}}),cN),ON=function t(){_classCallCheck(this,t)},DN=function t(){_classCallCheck(this,t)},PN=function(){function t(e){var n=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),r=i.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value: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))}},{key:"copyFrom",value: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))}))}},{key:"clone",value: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}},{key:"applyUpdate",value: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,_toConsumableArray(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),RN=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return NN(t)}},{key:"encodeValue",value:function(t){return NN(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function NN(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 MN=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RN,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),r=_slicedToArray(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.
1keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value: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("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value: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 i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function FN(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function LN(t){return"undefined"!=typeof Blob&&t instanceof Blob}function jN(t){return"undefined"!=typeof FormData&&t instanceof FormData}var BN=function(){function t(e,n,i,r){var o;if(_classCallCheck(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.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!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new PN),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new MN,this.urlWithParams=n}return _createClass(t,[{key:"serializeBody",value:function(){return null===this.body?null:FN(this.body)||LN(this.body)||jN(this.body)||"string"==typeof this.body?this.body:this.body instanceof MN?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||jN(this.body)?null:LN(this.body)?this.body.type||null:FN(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof MN?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=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,i,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),t}(),VN=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}(),UN=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new PN,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},HN=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=VN.ResponseHeader,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(UN),zN=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=VN.Response,t.body=void 0!==i.body?i.body:null,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(UN),qN=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(UN);function WN(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var GN,KN,YN,QN,$N,XN,ZN,JN,tM,eM=((GN=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof BN)n=t;else{var o=void 0;o=r.headers instanceof PN?r.headers:new PN(r.headers);var a=void 0;r.params&&(a=r.params instanceof MN?r.params:new MN({fromObject:r.params})),n=new BN(t,e,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Dd(n).pipe(bp((function(t){return i.handler.handle(t)})));if(t instanceof BN||"events"===r.observe)return s;var u=s.pipe(Hd((function(t){return t instanceof zN}
vendor: 6,863 bytes, line 1
1)));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(B((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(B((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(B((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 u.pipe(B((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new MN).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,WN(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,WN(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,WN(n,e))}}]),t}()).\u0275fac=function(t){return new(t||GN)(Xt(ON))},GN.\u0275prov=dt({token:GN,factory:GN.\u0275fac}),GN),nM=function(){function t(e,n){_classCallCheck(this,t),this.next=e,this.interceptor=n}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),iM=new Ht("HTTP_INTERCEPTORS"),rM=((KN=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||KN)},KN.\u0275prov=dt({token:KN,factory:KN.\u0275fac}),KN),oM=/^\)\]\}',?\n/,aM=function t(){_classCallCheck(this,t)},sM=((QN=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||QN)},QN.\u0275prov=dt({token:QN,factory:QN.\u0275fac}),QN),uM=((YN=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new PN(i.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}(i)||t.url;return s=new HN({headers:r,status:e,statusText:n,url:o})},l=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.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(oM,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new zN({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new qN({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,r=new qN({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},h=!1,f=function(e){h||(n.next(u()),h=!0);var r={type:VN.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(t){var e={type:VN.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",l),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:VN.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),t.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||YN)(Xt(aM))},YN.\u0275prov=dt({token:YN,factory:YN.\u0275fac}),YN),lM=new Ht("XSRF_COOKIE_NAME"),cM=new Ht("XSRF_HEADER_NAME"),hM=function t(){_classCallCheck(this,t)},fM=((tM=function(){function t(e,n,i){_classCallCheck(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Eh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||tM)(Xt(_c),Xt(wl),Xt(lM))},tM.\u0275prov=dt({token:tM,factory:tM.\u0275fac}),tM),dM=((JN=function(){function t(e,n){_classCallCheck(this,t),this.tokenService=e,this.headerName=n}return _createClass(t,[{key:"intercept",value: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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||JN)(Xt(hM),Xt(cM))},JN.\u0275prov=dt({token:JN,factory:JN.\u0275fac}),JN),pM=((ZN=function(){function t(e,n){_classCallCheck(this,t),this.backend=e,this.injector=n,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(iM,[]);this.chain=e.reduceRight((function(t,e){return new nM(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||ZN)(Xt(DN),Xt(fa))}
1,ZN.\u0275prov=dt({token:ZN,factory:ZN.\u0275fac}),ZN),mM=((XN=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:dM,useClass:rM}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:lM,useValue:e.cookieName}:[],e.headerName?{provide:cM,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=we({type:XN}),XN.\u0275inj=pt({factory:function(t){return new(t||XN)},providers:[dM,{provide:iM,useExisting:dM,multi:!0},{provide:hM,useClass:fM},{provide:lM,useValue:"XSRF-TOKEN"},{provide:cM,useValue:"X-XSRF-TOKEN"}]}),XN),vM=(($N=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:$N}),$N.\u0275inj=pt({factory:function(t){return new(t||$N)},providers:[eM,{provide:ON,useClass:pM},uM,{provide:DN,useExisting:uM},sM,{provide:aM,useExisting:sM}],imports:[[mM.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$N),gM=["*"];function yM(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function _M(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function bM(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var wM,kM=function t(e,n){_classCallCheck(this,t),this.options=n,e.nodeName?this.svgElement=e:this.url=e},CM=((wM=function(){function t(e,n,i,r){_classCallCheck(this,t),this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return _createClass(t,[{key:"addSvgIcon",value:function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}},{key:"addSvgIconLiteral",value:function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}},{key:"addSvgIconInNamespace",value:function(t,e,n,i){return this._addSvgIconConfig(t,e,new kM(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var r=this._sanitizer.sanitize(Xi.HTML,n);if(!r)throw bM(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new kM(o,i))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,n){return this._addSvgIconSetConfig(t,new kM(e,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(Xi.HTML,e);if(!i)throw bM(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new kM(r,n))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(Xi.RESOURCE_URL,t);if(!n)throw _M(t);var i=this._cachedIconsByUrl.get(n);return i?Dd(xM(i)):this._loadSvgIconFromConfig(new kM(t)).pipe(kp((function(t){return e._cachedIconsByUrl.set(n,t)})),B((function(t){return xM(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=SM(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):xg(yM(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Dd(xM(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(kp((function(e){return t.svgElement=e})),B((function(t){return xM(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);
1return i?Dd(i):QS(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(ip((function(e){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(Xi.RESOURCE_URL,t.url)," failed: ").concat(e.message);return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),Dd(null)})))}))).pipe(B((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw yM(t);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(r)return r}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(B((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Dd(t.svgElement):this._fetchUrl(t.url).pipe(B((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var i=t.querySelector('[id="'.concat(e,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=t.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;"id"!==o&&e.setAttribute(o,a)}for(var s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}},{key:"_setSvgAttributes",value:function(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}}
1,{key:"_fetchUrl",value:function(t){var e=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error('Cannot fetch icon from URL "'.concat(t,'".'));var n=this._sanitizer.sanitize(Xi.RESOURCE_URL,t);if(!n)throw _M(t);var i=this._inProgressUrlFetches.get(n);if(i)return i;var r=this._httpClient.get(n,{responseType:"text"}).pipe(Sp((function(){return e._inProgressUrlFetches.delete(n)})),it());return this._inProgressUrlFetches.set(n,r),r}},{key:"_addSvgIconConfig",value:function(t,e,n){return this._svgIconConfigs.set(SM(t,e),n),this}},{key:"_addSvgIconSetConfig",value:function(t,e){var n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}}]),t}()).\u0275fac=function(t){return new(t||wM)(Xt(eM,8),Xt(Cd),Xt(_c,8),Xt(vi,8))},wM.\u0275prov=dt({factory:function(){return new wM(Xt(eM,8),Xt(Cd),Xt(_c,8),Xt(vi,8))},token:wM,providedIn:"root"}),wM);function xM(t){return t.cloneNode(!0)}function SM(t,e){return t+":"+e}var EM,IM,AM,TM=Mx((function t(e){_classCallCheck(this,t),this._elementRef=e})),OM=new Ht("mat-icon-location",{providedIn:"root",factory:function(){var t=Zt(_c),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),DM=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],PM=DM.map((function(t){return"[".concat(t,"]")})).join(", "),RM=/^url\(['"]?#(.*?)['"]?\)$/,NM=((IM=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=f.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true"),s}return _createClass(n,[{key:"_splitIconName",value:function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'.concat(t,'"'))}}},{key:"ngOnChanges",value:function(t){var e=this,n=t.svgIcon;if(n)if(this._currentIconFetch.unsubscribe(),this.svgIcon){var i=_slicedToArray(this._splitIconName(this.svgIcon),2),r=i[0],o=i[1];this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(ap(1)).subscribe((function(t){return e._setSvgElement(t)}),(function(t){var n="Error retrieving icon ".concat(r,":").concat(o,"! ").concat(t.message);e._errorHandler?e._errorHandler.handleError(new Error(n)):console.error(n)}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){var e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),n=0;n<e.length;n++)e[n].textContent+=" ";if(this._location){var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i)}this._elementRef.nativeElement.appendChild(t)}},{key:"_clearSvgElement",value:function(){var t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){var n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(t){return"string"==typeof t?t.trim().split(" ")[0]:t}},{key:"_prependPathToReferences",value:function(t){var e=this._elementsWithExternalReferences;e&&e.forEach((function(e,n){e.forEach((function(e){n.setAttribute(e.name,"url('".concat(t,"#").concat(e.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(t){for(var e=t.querySelectorAll(PM),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(t){DM.forEac
1h((function(i){var r=e[t],o=r.getAttribute(i),a=o?o.match(RM):null;if(a){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:a[1]})}}))},r=0;r<e.length;r++)i(r)}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}},{key:"fontSet",get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)}}]),n}(TM)).\u0275fac=function(t){return new(t||IM)(Oa(Ys),Oa(CM),Da("aria-hidden"),Oa(OM,8),Oa(vi,8))},IM.\u0275cmp=ve({type:IM,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&us("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[As,Ns],ngContentSelectors:gM,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),IM),MM=((EM=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:EM}),EM.\u0275inj=pt({factory:function(t){return new(t||EM)},imports:[[Rx],Rx]}),EM),FM={tooltipState:Jw("state",[rk("initial, void, hidden",ik({opacity:0,transform:"scale(0)"})),rk("visible",ik({transform:"scale(1)"})),ok("* => visible",tk("200ms cubic-bezier(0, 0, 0.2, 1)",(AM=[ik({opacity:0,transform:"scale(0)",offset:0}),ik({opacity:.5,transform:"scale(0.99)",offset:.5}),ik({opacity:1,transform:"scale(1)",offset:1})],{type:5,steps:AM}))),ok("* => hidden",tk("100ms cubic-bezier(0, 0, 0.2, 1)",ik({opacity:0})))])},LM=R_({passive:!0});function jM(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var BM,VM,UM,HM=new Ht("mat-tooltip-scroll-strategy"),zM={provide:HM,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},qM=new Ht("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),WM=((UM=function(){function t(e,n,i,r,o,a,s,u,l,c,h,f){var d=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new A,this._handleKeydown=function(t){d._isTooltipVisible()&&27===t.keyCode&&!bb(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.monitor(n).pipe(g_(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&o.run((function(){return d.show()})):o.run((function(){return d.hide(0)}))})),o.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEac
1h((function(e,n){t.removeEventListener(n,e,LM)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new lb(GM,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(g_(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(g_(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(g_(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw jM(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw jM(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ap(1),g_(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));
1this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,LM)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(t){return new(t||UM)(Oa(tw),Oa(Ys),Oa(Z_),Oa(bu),Oa(Ll),Oa(T_),Oa(Sw),Oa(zw),Oa(HM),Oa(V_,8),Oa(qM,8),Oa(Ys))},UM.\u0275dir=Ce({type:UM,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),UM),GM=((VM=function(){function t(e,n){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}()).\u0275fac=function(t){return new(t||VM)(Oa($o),Oa(tN))},VM.\u0275cmp=ve({type:VM,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(){return e._handleBodyInteraction()}),!1,Yn),2&t&&ss("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Ma(0,"div",0),qa("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Hu(1,"async"),ws(2),Fa()),2&t&&(us("mat-tooltip-handset",null==(n=zu(1,5,e._isHandset))?null:n.matches),Ra("ngClass",e.tooltipClass)("@state",e._visibility),kr(2),ks(e.message))},directives:[Dh],pipes:[pf],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[FM.tooltipState]},changeDetection:0}),VM),KM=((BM=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:BM}),BM.\u0275inj=pt({factory:function(t){return new(t||BM)},providers:[zM],imports:[[$w,Lf,aw,Rx],Rx,eb]}),BM);function YM(t,e){if(1&t){var n=Ua();Ma(0,"div",2),Ma(1,"button",3),Ma(2,"mat-icon"),ws(3,"close"),Fa(),Fa(),Ma(4,"h2",4),Ma(5,"mat-icon",5),ws(6,"folder_shared"),Fa(),ws(7," Get Share Link "),Fa(),Ma(8,"div"),ws(9,"Send this link to a colleague or friend. When they click on it, the latest version of this folder will be copied into their templates "),Fa(),Ma(10,"div",6),qa("click",(function(){return en(n),Qa().copy()})),ws(11),Fa(),Ma(12,"div",7),Ma(13,"button",8),qa("click",(function(){return en(n),Qa().copy()})),ws(14,"Copy Link"),Fa(),Ma(15,"a",9),ws(16,"Send Feedback"),Fa(),Fa(),Fa()}if(2&t){var i=Qa();kr(11),ks(i.link)}}function QM(t,e){1&t&&(Ma(0,"div",10),Ma(1,"h3"),ws(2,"Getting Share Link"),Fa(),La(3,"mat-progress-spinner",11),Fa())}var $M,XM,ZM,JM,tF,eF,nF,iF,rF,oF,aF,sF,uF,lF=((JM=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.dialogRef=e,this.folder=n,this.snackBar=i,this.functions=r,this.clipboard=o}
1return _createClass(t,[{key:"copy",value:function(){this.clipboard.copy(this.link),this.snackBar.open("Copied share link to clipboard",null,{duration:1e3})}},{key:"ngOnInit",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getFolderShareId(this.folder);case 2:e=t.sent,this.link=mc.webappUrl+"/share/"+e;case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getFolderShareId",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.shared?t.shared:this.functions.httpsCallable("shareFolder")(t.id).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||JM)(Oa(MS),Oa(FS),Oa(wN),Oa(xN),Oa(EN))},JM.\u0275cmp=ve({type:JM,selectors:[["ng-component"]],decls:2,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start start","class","wrapper",4,"ngIf"],["class","wrapper","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"wrapper"],["mat-icon-button","","matDialogClose","",1,"close"],["fxLayout","row","fxLayoutAlign","center"],["color","primary"],["fxFlexOffset","10px","matTooltip","Click to copy",1,"copy-link",3,"click"],["fxFlexOffset","10px","fxLayout","row"],["mat-flat-button","","color","primary",3,"click"],["mat-button","","fxFlexOffset","10px","href","https://getveryfast.com/contact","target","_blank",1,"faded"],["fxLayout","column","fxLayoutAlign","center center",1,"wrapper"],["mode","indeterminate"]],template:function(t,e){1&t&&(Aa(0,YM,17,1,"div",0),Aa(1,QM,4,0,"div",1)),2&t&&(Ra("ngIf",!!e.link),kr(1),Ra("ngIf",!e.link))},directives:[Fh,uD,OP,MA,HS,NM,uP,WM,FA,XP],styles:[".copy-link[_ngcontent-%COMP%]{background-color:#90ee90;color:#006400;border-radius:5px;padding:5px;cursor:pointer;opacity:.7;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.faded[_ngcontent-%COMP%]{opacity:.5}h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;height:36px;width:36px;margin-top:-4px;margin-right:5px}.close[_ngcontent-%COMP%]{position:absolute;top:-20px;right:-20px;opacity:.5}.wrapper[_ngcontent-%COMP%]{position:relative;height:200px}"]}),JM),cF=((ZM=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.users=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||ZM)(Oa(MS),Oa(FS))},ZM.\u0275cmp=ve({type:ZM,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-user-editor",0,1),qa("close",(function(t){return e.close(t)})),Fa())},encapsulation:2}),ZM),hF=((XM=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.input=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||XM)(Oa(MS),Oa(FS))},XM.\u0275cmp=ve({type:XM,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-team-dialog",0,1),qa("close",(function(t){return e.close(t)})),Fa())},encapsulation:2}),XM),fF=(($M=function(){function t(e){_classCallCheck(this,t),this.dialog=e}return _createClass(t,[{key:"howTo",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.dialog.open(iO,{minWidth:"300px",width:"50vw"});case 1:case"end":return t.stop()}}),t,this)})))}},{key:"waiting",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dialog.open(tR,{data:{message:t}}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.openPrompt(t));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"confirm",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.openPrompt({title:t,message:e,value:"yes",confirm:"Yes",cancel:"No"});case 2:return n.t0=n.sent,n.abrupt("return","yes"===n.t0);case 4:case"end":return n.stop()}}),n,this)})))}},{key:"alert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Ok";return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",this.openPrompt({title:t,message:e,cancel:n}));case 1:case"end":return i.stop()}}),i,this)})))}},{key:"openPrompt",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dialog.open(eO,{data:t}).afterClosed().toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"openTemplateEditor",value:function(t){return this.dialog.open(nO,{data:t,panelClass:"vf-template-editor-dialog"})}},{key:"openUserAdder",value:function(t){return this.dialog.open(cF,{data:t,panelClass:"vf-user-editor-dialog"})}},{key:"openOrgEditor",value:function(t){return this.dialog.open(hF,{data:t,panelClass:"vf-team-dialog"})}},{key:"insertMagicNameTag",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.insertMergeTag(eR.NAME));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"insertMagicInfoTag",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.insertMergeTag(eR.INFO));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"insertMagicDateTag",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.insertMergeTag(eR.DATE));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"insertMagicDaysTag",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.insertMergeTag(eR.DAYS));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"insertMergeTag",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dialog.open(GR,{data:t}).afterClosed().toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"openShareFolder",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dialog.open(lF,{data:t,width:"400px"}).afterClosed().toPromise());case 1:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||$M)(Xt(VS))},$M.\u0275prov=dt({token:$M,factory:$M.\u0275fac,providedIn:"root"}),$M),dF=function(){function t(e,n){_classCallCheck(this,t),this.observables=e,this.project=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new pF(t,this.observables,this.project))}}]),t}(),pF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;_classCallCheck(this,n),(o=e.call(this,t)).observables=i,o.project=r,o.toRespond=[];var a=i.length;o.values=new Array(a);for(var s=0;s<a;s++)o.toRespond.push(s);for(var u=0;u<a;u++){var l=i[u];o.add(L(_assertThisInitialized(o),l,l,u))}return o}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(t){if(0===this.toRespond.length){var e=[t].concat(_toConsumableArray(this.values));this.project?this._tryProject(e):this.destination.next(e)}}},{key:"_tryProject",value:function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(j),mF=function(){function t(e,n,i,r){_classCallCheck(this,t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new vF(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),t}(),vF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t)).keySelector=i,s.elementSelector=r,s.durationSelector=o,s.subjectSelector=a,s.groups=null,s.attemptedToUnsubscribe=!1,s.c
1ount=0,s}return _createClass(n,[{key:"_next",value:function(t){var e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}},{key:"_group",value:function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(s){this.error(s)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new A,n.set(e,r);var o=new yF(e,r,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new yF(e,r))}catch(s){return void this.error(s)}this.add(a.subscribe(new gF(e,r,this)))}}r.closed||r.next(i)}},{key:"_error",value:function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)}},{key:"_complete",value:function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()}},{key:"removeGroup",value:function(t){this.groups.delete(t)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}}]),n}(m),gF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,i)).key=t,o.group=i,o.parent=r,o}return _createClass(n,[{key:"_next",value:function(t){this.complete()}},{key:"_unsubscribe",value:function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)}}]),n}(m),yF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this)).key=t,o.groupSubject=i,o.refCountSubscription=r,o}return _createClass(n,[{key:"_subscribe",value:function(t){var e=new f,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new _F(n)),e.add(i.subscribe(t)),e}}]),n}(k),_F=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).parent=t,t.count++,i}return _createClass(n,[{key:"unsubscribe",value:function(){var t=this.parent;t.closed||this.closed||(_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}]),n}(f),bF=new Ht("angularfire2.analytics.analyticsCollectionEnabled"),wF=new Ht("angularfire2.analytics.appVersion"),kF=new Ht("angularfire2.analytics.appName"),CF=new Ht("angularfire2.analytics.debugMode"),xF=new Ht("angularfire2.analytics.config"),SF={},EF=((rF=function(){function t(e,i,r,o,a,s,u,l,c){_classCallCheck(this,t),this.options=e,eF||(jf(l)?(tF=window.gtag||function(){window.dataLayer.push(arguments)},window.dataLayer=window.dataLayer||[],eF=c.runOutsideAngular((function(){return new Promise((function(t){window.gtag=function(){"js"==(arguments.length<=0?void 0:arguments[0])&&t(),tF.apply(void 0,arguments)}}))}))):(tF=function(){},eF=Promise.resolve()));var h=SF[e.measurementId];return h||(h=Dd(void 0).pipe(Ig(new ey(c).outsideAngular),fp((function(){return jf(l)?n.e(5).then(n.bind(null,"sBT4")):Bd()})),B((function(){return uy(e,c,i)})),B((function(t){return t.analytics()})),kp((function(t){!1===r&&t.setAnalyticsCollectionEnabled(!1)})),jg({bufferSize:1,refCount:!1})),SF[e.measurementId]=h),u&&this.updateConfig(u),a&&this.updateConfig({app_name:a}),o&&this.updateConfig({app_version:o}),s&&this.updateConfig({debug_mode:1}),ry(this,h,c)}return _createClass(t,[{key:"updateConfig",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eF;case 2:tF("config",this.options.measurementId,Object.assign(Object.assign({},t),{update:!0}));case 3:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||rF)(Xt(oy),Xt(ay,8),Xt(bF,8),Xt(wF,8),Xt(kF,8),Xt(CF,8),Xt(xF,8),Xt(wl),Xt(Ll))},rF.\u0275prov=dt({factory:function(){return new rF(Xt(oy),Xt(ay,8),Xt(bF,8),Xt(wF,8),Xt(kF,8),Xt(CF,8),Xt(xF,8),Xt(wl),Xt(Ll))},token:rF,providedIn:"any"}),rF),IF=((iF=function(){function t(e,n,i,r,o,a,s,u){var l=this;if(_classCallCheck(this,t),!n||!jf(o))return this;s.runOutsideAngular((function(){var t,o=n.events.pipe(Hd((function(t){return t instanceof qp}))),c=n.events.pipe(Hd((function(t){return t instanceof Dp})));l.disposable=c.pipe(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new dF(e,n))}}(o),fp((function(t){var e=_slicedToArray(t,2),n=e[0],o=e[1],a=n.url,s=o.snapshot.routeConfig&&o.snapshot.routeConfig.path||a,l={screen_name:s,page_path:a,firebase_event_origin:"auto",firebase_screen:s,outlet:o.snapshot.outlet};i&&(l.page_title=i.getTitle());var c=o.snapshot.component,h=o.snapshot.routeConfig,f=h&&h.loadChildren;if("string"==typeof f)return Dd(Object.assign(Object.assign({},l),{screen_class:f.split("#")[1]}));if("string"==typeof c)return Dd(Object.assign(Object.assign({},l),{screen_class:c}));
1if(c){var d=r.resolveComponentFactory(c);return Dd(Object.assign(Object.assign({},l),{screen_class:d.selector}))}if(f){var p=f();return(p instanceof k?p:z(Promise.resolve(p))).pipe(B((function(t){if(!(t instanceof ie)){var e=[].concat.apply([],(t.__annotations__||[]).map((function(t){return t.declarations}))),n=[].concat.apply([],e.map((function(t){return(t.__annotations__||[]).map((function(t){return t.selector}))})));return Object.assign(Object.assign({},l),{screen_class:n[0]||"???"})}var i=t.create(u),r=i.injector.get(Lv)[0][0].component;try{var o=i.componentFactoryResolver.resolveComponentFactory(r);return Object.assign(Object.assign({},l),{screen_class:o.selector})}catch(a){return Object.assign(Object.assign({},l),{screen_class:"???"})}})))}return Dd(Object.assign(Object.assign({},l),{screen_class:"???"}))})),B((function(t){return Object.assign({firebase_screen_class:t.screen_class,firebase_screen_id:DF(t)},t)})),kp((function(t){"primary"==t.outlet&&(e.setCurrentScreen(t.screen_name),e.updateConfig({page_path:t.page_path,screen_class:t.screen_class}),i&&e.updateConfig({page_title:t.page_title}))})),(t=function(t){return t.outlet},function(e){return e.lift(new mF(t,void 0,void 0,void 0))}),q((function(t){return t.pipe(vp(void 0),(function(t){return t.lift(new w_)}))})),B((function(t){var e=_slicedToArray(t,2),n=e[0],i=e[1];return n?Object.assign({firebase_previous_class:n.screen_class,firebase_previous_screen:n.screen_name,firebase_previous_id:n.firebase_screen_id},i):i})),kp((function(t){return a&&console.info("screen_view",t)})),kp((function(t){return s.runOutsideAngular((function(){return e.logEvent("screen_view",t)}))}))).subscribe()}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.disposable&&this.disposable.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||iF)(Xt(EF),Xt(Gv,8),Xt(Od,8),Xt(Ks),Xt(wl),Xt(CF,8),Xt(Ll),Xt(fa))},iF.\u0275prov=dt({factory:function(){return new iF(Xt(EF),Xt(Gv,8),Xt(Od,8),Xt(Ks),Xt(wl),Xt(CF,8),Xt(Ll),Xt(zt))},token:iF,providedIn:"any"}),iF),AF=((nF=function(){function t(e,i,r){var o=this;_classCallCheck(this,t);var a=new ey(i);Bf(r)||i.runOutsideAngular((function(){o.disposable=z(Promise.resolve().then(n.bind(null,"6AkR"))).pipe(Ig(a.outsideAngular),fp((function(){return e.app})),B((function(t){return t.auth()})),fp((function(t){return new k(t.onAuthStateChanged.bind(t))})),fp((function(t){return e.setUserId(t?t.uid:null)}))).subscribe()}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.disposable&&this.disposable.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||nF)(Xt(EF),Xt(Ll),Xt(wl))},nF.\u0275prov=dt({factory:function(){return new nF(Xt(EF),Xt(Ll),Xt(wl))},token:nF,providedIn:"any"}),nF),TF=Math.floor(Math.random()*(Math.pow(2,32)-1))-Math.pow(2,31),OF={},DF=function(t){var e=[t.screen_class,t.outlet].join("#");if(OF.hasOwnProperty(e))return OF[e];var n=TF++;return OF[e]=n,n},PF=((aF=function t(e,n,i){_classCallCheck(this,t)}).\u0275mod=we({type:aF}),aF.\u0275inj=pt({factory:function(t){return new(t||aF)(Xt(EF),Xt(IF,8),Xt(AF,8))},providers:[EF]}),aF),RF=((oF=function(){function t(e,n,i,r){_classCallCheck(this,t),this.firestore=e,this.dialogService=n,this.analytics=i,this.functions=r,this.$teams=new Pd([]),this.$teamTemplates=new Pd([]),this.$teamRoles=new Pd({}),this.teamsMap={}}return _createClass(t,[{key:"initTeamsForUser",value:function(t){var e=this;this.teamCollection=this.firestore.collection("teams",(function(e){return e.where("users.".concat(t,".access"),"in",["editor","viewer"])})),this.teamsSubscription=this.teamCollection.valueChanges({idField:"id"}).subscribe((function(n){return e.refreshTeams(n,t)}))}},{key:"teardownTeamsForUser",value:function(){for(var t in this.teamsMap)this.teamsMap[t]&&this.unregisterTeam(t)}},{key:"unregisterTeam",value:function(t){var e=this.teamsMap[t],n=e.team,i=e.foldersSubscription,r=e.templatesSubscription;i&&i.unsubscribe(),r&&r.unsubscribe(),console.log("Unsubscribing from team",n),delete this.teamsMap[t]}},{key:"getCurrentUsersRoleForTeam",value:function(t){return this.$teamRoles.asObservable().pipe(B((function(e){return e[t]})))}},{key:"isCurrentUserAtLeastThisRole",value:function(t,e){var n=["viewer","editor"],i=n.indexOf(e);return this.getCurrentUsersRoleForTeam(t).pipe(B((function(t){return n.indexOf(t)>=i})))}},{key:"refreshTeams",value:function(t,e){var n=this;
1this.$teams.next(t);var i={};t.forEach((function(t){return i[t.id]=t.users[e].access})),this.$teamRoles.next(i);var r=t.map((function(t){return t.id}));for(var o in this.teamsMap)-1===r.indexOf(o)&&this.unregisterTeam(o);var a,s=_createForOfIteratorHelper(t);try{var u=function(){var t=a.value;if(!n.teamsMap[t.id]){console.log("Subscribing to team",t);var e=new Pd([]),i=new Pd([]),r=n.firestore.collection("teams").doc(t.id).collection("templates").valueChanges({idField:"id"}).subscribe((function(n){return e.next(MF.forTeamTemplates(t.id,n))})),o=n.firestore.collection("teams").doc(t.id).collection("folders").valueChanges({idField:"id"}).subscribe((function(e){return i.next(NF.forTeamFolders(t.id,e))}));n.teamsMap[t.id]={team:t,$templates:e,$folders:i,templatesSubscription:r,foldersSubscription:o}}};for(s.s();!(a=s.n()).done;)u()}catch(l){s.e(l)}finally{s.f()}}},{key:"getTeamById",value:function(t){return this.$teams.asObservable().pipe(B((function(e){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.id===t)return r}}catch(o){i.e(o)}finally{i.f()}})))}},{key:"getFoldersForTeam",value:function(t){return this.teamsMap[t]&&this.teamsMap[t].$folders?this.teamsMap[t].$folders.asObservable():Dd([])}},{key:"getFolderForTeam",value:function(t,e){return e?this.getFoldersForTeam(t).pipe(B((function(t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.id===e)return r}}catch(o){i.e(o)}finally{i.f()}}))):Dd(void 0)}},{key:"newUser",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object.assign(Object.assign({teamId:t},e),{password:n}),i.abrupt("return",this.functions.httpsCallable("createOrganizationUser")(r).toPromise());case 2:case"end":return i.stop()}}),i,this)})))}},{key:"editUser",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object.assign({teamId:e,userId:t},n),i.abrupt("return",this.functions.httpsCallable("editOrganizationUser")(r).toPromise());case 2:case"end":return i.stop()}}),i,this)})))}},{key:"deleteUser",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={teamId:e,userId:t},n.abrupt("return",this.functions.httpsCallable("deleteOrganizationUser")(i).toPromise());case 2:case"end":return n.stop()}}),n,this)})))}},{key:"resetPassword",value:function(t){return Ny.auth().sendPasswordResetEmail(t)}},{key:"addFolder",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"New Folder",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r,o;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=new Date,o=Object.assign({name:e,archived:!1,favorite:!0,created:r,updated:r},n),i.abrupt("return",this.firestore.collection("teams").doc(t).collection("folders").add(o).then((function(t){return t.id})));case 2:case"end":return i.stop()}}),i,this)})))}},{key:"updateFolder",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(n.updated=new Date,console.log("update Folder"),this.firestore.collection("teams").doc(t).collection("folders").doc(e).set(n,{merge:!0})));case 1:case"end":return i.stop()}}),i,this)})))}},{key:"getTemplates",value:function(t,e){if(!this.teamsMap[t]||!this.teamsMap[t].$templates)return Dd([]);var n=this.teamsMap[t].$templates.asObservable();return e?n.pipe(B((function(t){return t.filter((function(t){return t.folder===e}))}))):n}},{key:"duplicateFolder",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r,o,a,s=this;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.addFolder(t,"Copy of ".concat(e.name));case 2:return r=i.sent,o=n.map((function(e){return s.newTemplate(t,{name:e.name,content:e.content,folder:r})})),i.next=6,Promise.all(o);case 6:return a=i.sent,i.abrupt("return",(console.log("Template Ids",a),r));case 8:case"end":return i.stop()}}),i,this)})))}},{key:"deleteFolder",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r,o=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.analytics.logEvent("delete_folder",{team_id:t,folder_id:e}),console.log("Folder to delete",e),i=this.$teamTemplates.getValue().filter((function(t){return t.folder===e})),console.log("Templates to delete",i),n.t0=i.length>0,!n.t0){n.next=8;break}return n.next=7,this.dialogService.confirm("Are you sure?","This will permanently delete this folder and ".concat(i.length," template(s)"));case 7:n.t0=!n.sent;case 8:if(!n.t0){n.next=10;break}return n.abrupt("return",!1);case 10:return(r=this.firestore.firestore.batch()).delete(this.firestore.collection("teams").doc(t).collection("folders").doc(e).ref),i.forEac
1h((function(e){return r.delete(o.firestore.collection("teams").doc(t).collection("templates").doc(e.id).ref)})),n.next=15,r.commit();case 15:return n.abrupt("return",!0);case 16:case"end":return n.stop()}}),n,this)})))}},{key:"newTemplate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r,o;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=new Date,e.archived=!1,e.created=r,e.updated=r,e.folder||delete e.folder,i.next=4,this.firestore.collection("teams").doc(t).collection("templates").add(e).then((function(t){return t.get()})).then((function(e){var n=e.data();return n.id=e.id,console.log("CREATED IT",n,e),new MF(t,n)}));case 4:return o=i.sent,i.abrupt("return",(n&&this.dialogService.openTemplateEditor(o),o));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"updateTemplate",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return null===n.content&&(n.content=""),i.next=3,this.analytics.logEvent("save_template",{team_id:t,template_id:e,folder_id:n.folder,template_name:n.name,template_length:n.content.length});case 3:return n.updated=new Date,i.abrupt("return",this.firestore.collection("teams").doc(t).collection("templates").doc(e).set(n,{merge:!0}));case 5:case"end":return i.stop()}}),i,this)})))}},{key:"hideTemplate",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.analytics.logEvent(n?"hide_template":"show_template",{team_id:t,template_id:e});case 2:return i.abrupt("return",this.firestore.collection("teams").doc(t).collection("templates").doc(e).set({archived:n,updated:new Date},{merge:!0}));case 3:case"end":return i.stop()}}),i,this)})))}},{key:"deleteTemplate",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.analytics.logEvent("delete_template",{team_id:t,template_id:e});case 2:return n.abrupt("return",this.firestore.collection("teams").doc(t).collection("templates").doc(e).delete());case 3:case"end":return n.stop()}}),n,this)})))}},{key:"updateManyTemplates",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r,o,a,s,u,l,c;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e&&e.length){i.next=2;break}return i.abrupt("return");case 2:r=this.firestore.firestore.batch(),o=n.delete,a=Object.assign({updated:new Date},n),s=_createForOfIteratorHelper(e);try{for(s.s();!(u=s.n()).done;)l=u.value,c=this.firestore.collection("teams").doc(t).collection("templates").doc(l).ref,o?r.delete(c):r.update(c,a)}catch(h){s.e(h)}finally{s.f()}return i.abrupt("return",r.commit().then((function(){return console.log("Batch completed")})));case 6:case"end":return i.stop()}}),i,this)})))}}]),t}()).\u0275fac=function(t){return new(t||oF)(Xt(Zy),Xt(fF),Xt(EF),Xt(xN))},oF.\u0275prov=dt({token:oF,factory:oF.\u0275fac,providedIn:"root"}),oF),NF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,i)).team=t,r}return _createClass(n,null,[{key:"forTeamFolders",value:function(t,e){return e.map((function(e){return new n(t,e)}))}}]),n}(Dy),MF=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this,i)).team=t,r}return _createClass(n,null,[{key:"forTeamTemplates",value:function(t,e){return e.map((function(e){return new n(t,e)}))}}]),n}(Oy),FF=((uF=function t(e,i,r,o){_classCallCheck(this,t);var a=new ey(o),s=ny(a),u=Dd(void 0).pipe(Ig(a.outsideAngular),fp((function(){return o.runOutsideAngular((function(){return Promise.resolve().then(n.bind(null,"6AkR"))}))})),B((function(){return uy(e,o,i)})),B((function(t){return t.auth()})),jg({bufferSize:1,refCount:!1}));return this.authState=u.pipe(Ig(a.outsideAngular),fp((function(t){return new k(t.onAuthStateChanged.bind(t))})),s),this.user=u.pipe(Ig(a.outsideAngular),fp((function(t){return new k(t.onIdTokenChanged.bind(t))})),s),this.idToken=this.user.pipe(fp((function(t){return t?z(t.getIdToken()):Dd(null)}))),this.idTokenResult=this.user.pipe(fp((function(t){return t?z(t.getIdTokenResult()):Dd(null)}))),ry(this,u,o)}).\u0275fac=function(t){return new(t||uF)(Xt(oy),Xt(ay,8),Xt(wl),Xt(Ll))},uF.\u0275prov=dt({factory:function(){return new uF(Xt(oy),Xt(ay,8),Xt(wl),Xt(Ll))},token:uF,providedIn:"any"}),uF),LF=((sF=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:sF}),sF.\u0275inj=pt({factory:function(t){return new(t||sF)},providers:[FF]}),sF),jF=function(){function t(e,n){if(_classCallCheck(this,t),console.debug("User Data",n),this.id=e,this.name=n.name,this.email=n.email,this.phone=n.phone,this.photo=n.photo,this.onboarded=!!n.onboarded,this.source=n.source,this.skill=n.skill,this.pmf=n.pmf,this.pmfStars=n.pmfStars,this.method=n.method,this.airtableId=n.airtableId,this.currentUsage=n.currentUsage||0,this.totalUsage=n.totalUsage||0,this.premium=!!n.premium,this.teamMember=!!n.teamMember,this.scriptStatus=!!n.scriptStatus,this.plan=n.plan||"free",!this.premium){this.limit=n.limit||40;var i=this.limit-this.currentUsage;this.creditsLeft=i>0?i:0}
1this.blacklist=n.blacklist||[],this.created=BF(n.created),this.updated=BF(n.updated),this.lastUsed=BF(n.lastUsed),this.lastLogin=BF(n.lastLogin)}return _createClass(t,[{key:"getUserProperties",value:function(){return{type:this.type,method:this.method,source:this.source,skill:this.skill,pmf:this.pmf,pmf_stars:this.pmf}}},{key:"active",get:function(){return this.premium||this.creditsLeft>0}},{key:"type",get:function(){return this.premium?"pro":"free"}}]),t}();function BF(t){if(t&&t.seconds)return new Date(1e3*t.seconds)}var VF,UF,HF,zF=((HF=function(){function t(e,n,i,r){_classCallCheck(this,t),this.firestore=e,this.dialogService=n,this.analytics=i,this.teamsService=r,this.$user=new Pd(null),this.$templates=new Pd([]),this.$folders=new Pd([]),this.$hiddenFolderIds=new Pd([])}return _createClass(t,[{key:"initData",value:function(t){var e=this;console.log("Init Data"),this.userDocument=this.firestore.collection("users").doc(t),this.templateCollection=this.userDocument.collection("templates"),this.folderCollection=this.userDocument.collection("folders"),this.userSubscription=this.userDocument.valueChanges().pipe(Hd((function(t){return!!t}))).subscribe((function(n){var i=new jF(t,n);e.$user.next(i),e.analytics.setUserProperties(i.getUserProperties())})),this.templatesSubscription=this.templateCollection.valueChanges({idField:"id"}).subscribe((function(t){console.log("TEMPLATES",t),e.$templates.next(Oy.from_includeAll.apply(Oy,_toConsumableArray(t)))})),this.foldersSubscription=this.folderCollection.valueChanges({idField:"id"}).subscribe((function(t){console.log("FOLDERS",t);var n=t.filter((function(t){return t.archived})).map((function(t){return t.id}));e.$hiddenFolderIds.next(n),console.log("Hidden IDS",n),e.$folders.next(Dy.from.apply(Dy,_toConsumableArray(t)))})),this.teamsService.initTeamsForUser(t)}},{key:"unregister",value:function(){this.userSubscription.unsubscribe(),this.templatesSubscription.unsubscribe(),this.foldersSubscription.unsubscribe(),this.teamsService.teardownTeamsForUser()}},{key:"getFolder",value:function(t){return this.extractForId(this.$folders,t)}},{key:"getTemplate",value:function(t){return this.extractForId(this.$templates,t)}},{key:"editTemplate",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.analytics.logEvent("edit_template",{template_id:t.id,folder_id:t.folder,template_name:t.name});case 2:return e.abrupt("return",this.dialogService.openTemplateEditor(t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"extractForId",value:function(t,e){return e&&t?t.asObservable().pipe(B((function(t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.id===e)return r}}catch(o){i.e(o)}finally{i.f()}}))):Dd(null)}},{key:"newTemplate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=new Date,t.archived=!1,t.created=i,t.updated=i,t.folder||delete t.folder,n.next=4,this.templateCollection.add(t).then((function(t){return t.get()})).then((function(t){var e=t.data();return e.id=t.id,new Oy(e)}));case 4:return r=n.sent,n.abrupt("return",(e&&this.dialogService.openTemplateEditor(r),r));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"updateTemplate",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null===e.content&&(e.content=""),n.next=3,this.analytics.logEvent("save_template",{template_id:t,folder_id:e.folder,template_name:e.name,template_length:e.content.length});case 3:return e.updated=new Date,n.abrupt("return",this.templateCollection.doc(t).set(e,{merge:!0}));case 5:case"end":return n.stop()}}),n,this)})))}},{key:"hideTemplate",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.analytics.logEvent(e?"hide_template":"show_template",{template_id:t});case 2:return n.abrupt("return",this.templateCollection.doc(t).set({archived:e,updated:new Date},{merge:!0}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"deleteTemplate",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.analytics.logEvent("delete_template",{template_id:t});case 2:return e.abrupt("return",this.templateCollection.doc(t).delete());case 3:case"end":return e.stop()}}),e,this)})))}},{key:"updateManyTemplates",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r,o,a,s,u,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t&&t.length){n.next=2;break}return n.abrupt("return");case 2:i=this.firestore.firestore.batch(),r=e.delete,o=Object.assign({updated:new Date},e),a=_createForOfIteratorHelper(t);try{for(a.s();!(s=a.n()).done;)u=s.value,l=this.templateCollection.doc(u).ref,r?i.delete(l):i.update(l,o)}catch(c){a.e(c)}finally{a.f()}return n.abrupt("return",i.commit().then((function(){return console.log("Batch completed")})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"updateUser",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.updated=new Date,e.next=3,this.userDocument.set(t,{merge:!0});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"addBlacklist",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateUser({blacklist:Xg.firestore.FieldValue.arrayUnion(t)}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"onScriptStatusChanged",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.updateUser({scriptStatus:t});case 2:window.location.reload();case 3:case"end":return e.stop()}}),e,this)})))}},{key:"removeBlacklist",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateUser({blacklist:Xg.firestore.FieldValue.arrayRemove(t)}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"addFolder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"New Folder",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=new Date,r=Object.assign({name:t,archived:!1,favorite:!0,created:i,updated:i},e),n.abrupt("return",this.folderCollection.add(r).then((function(t){return t.id})));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"updateFolder",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(e.updated=new Date,this.folderCollection.doc(t).set(e,{merge:!0})));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"getTemplatesForFolder",value:function(t){return this.$templates.getValue().filter((function(e){return e.folder===t}))}},{key:"duplicateFolder",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i,r,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getTemplatesForFolder(t.id),e.next=3,this.addFolder("Copy of ".concat(t.name));case 3:return i=e.sent,r=n.map((function(t){return a.newTemplate({name:t.name,content:t.content,folder:i})})),e.next=7,Promise.all(r);case 7:return o=e.sent,e.abrupt("return",(console.log("Template Ids",o),i));case 9:case"end":return e.stop()}}),e,this)})))}},{key:"deleteFolder",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.analytics.logEvent("delete_folder",{folder_id:t}),console.log("Folder to delete",t),n=this.$templates.getValue().filter((function(e){return e.folder===t})),console.log("Templates to delete",n),e.t0=n.length>0,!e.t0){e.next=8;break}return e.next=7,this.dialogService.confirm("Are you sure?","This will permanently delete this folder and ".concat(n.length," template(s)"));case 7:e.t0=!e.sent;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",!1);case 10:return(i=this.firestore.firestore.batch()).delete(this.folderCollection.doc(t).ref),n.forEac
1h((function(t){return i.delete(r.templateCollection.doc(t.id).ref)})),e.next=15,i.commit();case 15:return e.abrupt("return",!0);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"savePmf",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.error("Not implemented yet",t);case 1:case"end":return e.stop()}}),e)})))}}]),t}()).\u0275fac=function(t){return new(t||HF)(Xt(Zy),Xt(fF),Xt(EF),Xt(RF))},HF.\u0275prov=dt({token:HF,factory:HF.\u0275fac,providedIn:"root"}),HF),qF=((UF=function(){function t(e){_classCallCheck(this,t),this.functions=e}return _createClass(t,[{key:"handleAuth",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDetails();case 2:if(!(n=e.sent)){e.next=14;break}if(n.id===t){e.next=10;break}return e.next=7,this.login();case 7:e.t1=e.sent,e.next=11;break;case 10:e.t1=void console.log("Extension already authenticated");case 11:e.t0=e.t1,e.next=15;break;case 14:e.t0=console.warn("Extension not installed");case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"login",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("Logging in chrome extension"),t.next=3,this.getCustomAuthToken({chrome:chrome});case 3:return e=t.sent,t.abrupt("return",this.getDetails({token:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"logout",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getDetails({logout:!0}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getCustomAuthToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("getCustomAuthToken")(t).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"isLoggedIn",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getDetails().then((function(t){return t.loggedIn})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getDetails",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return chrome.runtime.sendMessage(mc.extensionId,t,e)})));case 1:case"end":return e.stop()}}),e)})))}}]),t}()).\u0275fac=function(t){return new(t||UF)(Xt(xN))},UF.\u0275prov=dt({token:UF,factory:UF.\u0275fac,providedIn:"root"}),UF),WF=((VF=function(){function t(e,n,i,r,o,a){var s=this;_classCallCheck(this,t),this.router=e,this.firebaseAuth=n,this.data=i,this.analytics=r,this.functions=o,this.chromeExtensionService=a,n.authState.subscribe((function(t){console.debug("Auth State Change",t),t&&t.uid&&(s.uid=t.uid,s.chromeExtensionService.handleAuth(s.uid),s.data.initData(s.uid))}))}return _createClass(t,[{key:"logout",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.data.$user.getValue(),this.data.unregister(),t.next=4,this.firebaseAuth.signOut();case 4:return t.next=6,this.chromeExtensionService.logout();case 6:return t.next=8,this.analytics.logEvent("logout",{method:e.method});case 8:window.location.reload();case 9:case"end":return t.stop()}}),t,this)})))}},{key:"changeEmail",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("changeEmail")(t).toProm
1ise());case 1:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||VF)(Xt(Gv),Xt(FF),Xt(zF),Xt(EF),Xt(xN),Xt(qF))},VF.\u0275prov=dt({token:VF,factory:VF.\u0275fac,providedIn:"root"}),VF),GF=["*"];function KF(t,e){if(1&t){var n=Ua();Ma(0,"div",2),qa("click",(function(){return en(n),Qa()._onBackdropClicked()})),Fa()}2&t&&us("mat-drawer-shown",Qa()._isShowingBackdrop())}function YF(t,e){1&t&&(Ma(0,"mat-drawer-content"),Za(1,2),Fa())}var QF=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],$F=["mat-drawer","mat-drawer-content","*"];function XF(t,e){if(1&t){var n=Ua();Ma(0,"div",2),qa("click",(function(){return en(n),Qa()._onBackdropClicked()})),Fa()}2&t&&us("mat-drawer-shown",Qa()._isShowingBackdrop())}function ZF(t,e){1&t&&(Ma(0,"mat-sidenav-content",3),Za(1,2),Fa())}var JF=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tL=["mat-sidenav","mat-sidenav-content","*"],eL={transformDrawer:Jw("transform",[rk("open, open-instant",ik({transform:"none",visibility:"visible"})),rk("void",ik({"box-shadow":"none",visibility:"hidden"})),ok("void => open-instant",tk("0ms")),ok("void <=> open, open-instant => void",tk("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function nL(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var iL,rL,oL,aL,sL,uL,lL,cL,hL,fL=new Ht("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),dL=new Ht("MAT_DRAWER_CONTAINER"),pL=((sL=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,r,o,a))._changeDetectorRef=t,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),n}(J_)).\u0275fac=function(t){return new(t||sL)(Oa($o),Oa(Et((function(){return vL}))),Oa(Ys),Oa(Z_),Oa(Ll))},sL.\u0275cmp=ve({type:sL,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ss("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[As],ngContentSelectors:GF,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},encapsulation:2,changeDetection:0}),sL),mL=((aL=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new A,this._animationEnd=new A,this._animationState="void",this.openedChange=new Ku(!0),this._destroyed=new A,this.onPositionChanged=new Ku,this._modeChanged=new A,this.openedChange.subscribe((function(t){t?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._restoreFocus()})),this._ngZone.runOutsideAngular((function(){a_(u._elementRef.nativeElement,"keydown").pipe(Hd((function(t){return 27===t.keyCode&&!u.disableClose&&!bb(t)})),g_(u._destroyed)).subscribe((function(t){return u._ngZone.run((function(){u.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(l_((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&u.openedChange.emit(u._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(ap(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=t_(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=t_(t)}},{key:"opened",get:function(){return this._opened}
1,set:function(t){this.toggle(t_(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(Hd((function(t){return t})),B((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(Hd((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),B((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(Hd((function(t){return!t})),B((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(Hd((function(t){return t.fromState!==t.toState&&"void"===t.toState})),B((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||aL)(Oa(Ys),Oa(Nw),Oa(zw),Oa(T_),Oa(Ll),Oa(_c,8),Oa(dL,8))},aL.\u0275cmp=ve({type:aL,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Wa("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(Ea("align",null),Es("@transform",e._animationState),us("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:GF,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Xa(),Ma(0,"div",0),Za(1),Fa())},encapsulation:2,data:{animation:[eL.transformDrawer]},changeDetection:0}),aL),vL=((oL=function(){function t(e,n,i,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new Qu,this.backdropClick=new Ku,this._destroyed=new A,this._doCheckSubject=new A,this._contentMargins={left:null,right:null},this._contentMarginChanges=new A,e&&e.change.pipe(g_(this._destroyed)).subscribe((function(){a._val
1idateDrawers(),a.updateContentMargins()})),o.change().pipe(g_(this._destroyed)).subscribe((function(){return a.updateContentMargins()})),this._autosize=s}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(vp(this._allDrawers),g_(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(vp(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(sw(10),g_(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var i=this._left._width;e+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var r=this._right._width;n+=r,e-=r}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(Hd((function(t){return t.fromState!==t.toState})),g_(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(g_(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(g_(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(ap(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(g_(Q(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&nL("end"),t._end=e):(null!=t._start&&nL("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=t_(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:t_(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||oL)(Oa(V_,8),Oa(Ys),Oa(Ll),Oa($o),Oa(tb),Oa(fL),Oa(Cx,8))},oL.\u0275cmp=ve({type:oL,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,pL,!0),ul(n,mL,!0)),2&t&&(rl(i=hl())&&(e._content=i.first),rl(i=hl())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&al(pL,!0),2&t&&rl(n=hl())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&us("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[qs([{provide:dL,useExisting:oL}])],ngContentSelectors:$F,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(Xa(QF),Aa(0,KF,1,2,"div",0),Za(1),Za(2,1),Aa(3,YF,2,0,"mat-drawer-content",1)),2&t&&(Ra("ngIf",e.hasBackdrop),kr(3),Ra("ngIf",!e._content))},directives:[Fh,pL],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),oL),gL=((rL=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a){return _classCallCheck(this,n),e.call(this,t,i,r,o,a)}return n}(pL)).\u0275fac=function(t){return new(t||rL)(Oa($o),Oa(Et((function(){return bL}))),Oa(Ys),Oa(Z_),Oa(Ll))},rL.\u0275cmp=ve({type:rL,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ss("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[As],ngContentSelectors:GF,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},encapsulation:2,changeDetection:0}),rL),yL=((iL=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=t_(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=e_(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=e_(t)}}]),n}(mL)).\u0275fac=function(t){return _L(t||iL)},iL.\u0275cmp=ve({type:iL,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(Ea("align",null),ss("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),us("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[As],ngContentSelectors:GF,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Xa(),Ma(0,"div",0),Za(1),Fa())},encapsulation:2,data:{animation:[eL.transformDrawer]},changeDetection:0}),iL),_L=fi(yL),bL=((uL=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(vL)).\u0275fac=function(t){return wL(t||uL)},uL.\u0275cmp=ve({type:uL,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,gL,!0),ul(n,yL,!0)),2&t&&(rl(i=hl())&&(e._content=i.first),rl(i=hl())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&us("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[qs([{provide:dL,useExisting:uL}]),As],ngContentSelectors:tL,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(Xa(JF),Aa(0,XF,1,2,"div",0),Za(1),Za(2,1),Aa(3,ZF,2,0,"mat-sidenav-content",1)),2&t&&(Ra("ngIf",e.hasBackdrop),kr(3),Ra("ngIf",!e._content))},directives:[Fh,gL,J_],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),uL),wL=fi(bL),kL=((hL=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:hL}),hL.\u0275inj=pt({factory:function(t){return new(t||hL)},imports:[[Lf,Rx,O_,eb],eb,Rx]}),hL),CL=((cL=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=t_(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||cL)},cL.\u0275cmp=ve({type:cL,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(Ea("aria-orientation",e.vertical?"vertical":"horizontal"),us("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),cL),xL=((lL=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:lL}),lL.\u0275inj=pt({factory:function(t){return new(t||lL)},imports:[[Rx],Rx]}),lL),SL=["*"],EL=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],IL=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],AL=["text"];function TL(t,e){if(1&t&&La(0,"mat-pseudo-checkbox",5),2&t){var n=Qa();Ra("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var OL,DL,PL,RL,NL,ML,FL,LL,jL,BL=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],VL=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],UL=Nx(Fx((function t(){_classCallCheck(this,t)}))),HL=Fx((function t(){_classCallCheck(this,t)})),zL=((OL=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._stateChanges=new A,t}return _createClass(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(UL)).\u0275fac=function(t){return qL(t||OL)},OL.\u0275cmp=ve({type:OL,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[As,Ns],ngContentSelectors:SL,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highligh
1t-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{dis
1play:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),OL),qL=fi(zL),WL=((ML=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._elementRef=t,i._stateChanges=new A,"action-list"===i._getListType()&&t.nativeElement.classList.add("mat-action-list"),i}return _createClass(n,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(UL)).\u0275fac=function(t){return new(t||ML)(Oa(Ys))},ML.\u0275cmp=ve({type:ML,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[As,Ns],ngContentSelectors:SL,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{dis
1play:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{dis
1play:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),ML),GL=((NL=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||NL)},NL.\u0275dir=Ce({type:NL,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),NL),KL=((RL=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||RL)},RL.\u0275dir=Ce({type:RL,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),RL),YL=((PL=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||PL)},PL.\u0275dir=Ce({type:PL,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),PL),QL=((DL=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;_classCallCheck(this,n),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new A,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(g_(
1a._destroyed)).subscribe((function(){i.markForCheck()})),a}return _createClass(n,[{key:"ngAfterContentInit",value:function(){zx(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=t_(t)}}]),n}(HL)).\u0275fac=function(t){return new(t||DL)(Oa(Ys),Oa($o),Oa(zL,8),Oa(WL,8))},DL.\u0275cmp=ve({type:DL,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,GL,!0),ul(n,KL,!0),ul(n,Hx,!0)),2&t&&(rl(i=hl())&&(e._avatar=i.first),rl(i=hl())&&(e._icon=i.first),rl(i=hl())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&us("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[As],ngContentSelectors:IL,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(Xa(EL),Ma(0,"div",0),La(1,"div",1),Za(2),Ma(3,"div",2),Za(4,1),Fa(),Za(5,2),Fa()),2&t&&(kr(1),Ra("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[aS],encapsulation:2,changeDetection:0}),DL),$L=Fx((function t(){_classCallCheck(this,t)})),XL=Fx((function t(){_classCallCheck(this,t)})),ZL={provide:eE,useExisting:Et((function(){return ej})),multi:!0},JL=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},tj=((jL=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._element=t,o._changeDetector=i,o.selectionList=r,o._selected=!1,o._disabled=!1,o._hasFocus=!1,o.checkboxPosition="after",o._inputsInitialized=!1,o}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(n){return e.compareWith(n,t._value)}))&&this._setSelected(!0);var n=this._selected;Promise.resolve().then((function(){(t._selected||n)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){zx(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,n=this.selectionList._removeOptionFromList(this);e&&n&&n.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=t_(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=t_(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),n}(XL)).\u0275fac=function(t){return new(t||jL)(Oa(Ys),Oa($o),Oa(Et((function(){return ej}))))},jL.\u0275cmp=ve({type:jL,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,GL,!0),ul(n,KL,!0),ul(n,Hx,!0)),2&t&&(rl(i=hl())&&(e._avatar=i.first),rl(i=hl())&&(e._icon=i.first),rl(i=hl())&&(e._lines=i))},viewQuery:function(t,e){var n;1&t&&al(AL,!0),2&t&&rl(n=hl())&&(e._text=n.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&qa("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(Ea("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),us("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[As],ngContentSelectors:VL,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(Xa(BL),Ma(0,"div",0),La(1,"div",1),Aa(2,TL,1,2,"mat-pseudo-checkbox",2),Ma(3,"div",3,4),Za(5),Fa(),Za(6,
11),Fa()),2&t&&(us("mat-list-item-content-reverse","after"==e.checkboxPosition),kr(1),Ra("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),kr(1),Ra("ngIf",e.selectionList.multiple))},directives:[aS,Fh,uS],encapsulation:2,changeDetection:0}),jL),ej=((LL=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._element=t,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new Ku,o.tabIndex=0,o.color="accent",o.compareWith=function(t,e){return t===e},o._disabled=!1,o.selectedOptions=new $_(o._multiple),o._tabIndex=-1,o._onChange=function(t){},o._destroyed=new A,o._onTouched=function(){},o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new Aw(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(g_(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(vp(null),g_(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(g_(this._destroyed)).subscribe((function(t){if(t.added){var e,n=_createForOfIteratorHelper(t.added);try{for(n.s();!(e=n.n()).done;)e.value.selected=!0}catch(o){n.e(o)}finally{n.f()}}if(t.removed){var i,r=_createForOfIteratorHelper(t.removed);try{for(r.s();!(i=r.n()).done;)i.value.selected=!1}catch(o){r.e(o)}finally{r.f()}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,n=t.color;(e&&!e.firstChange||n&&!n.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,n=this._keyManager,i=n.activeItemIndex,r=bb(t);switch(e){case 32:case 13:r||n.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:r||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:if(65===e&&this.multiple&&bb(t,"ctrlKey")&&!n.isTyping()){var o=this.options.some((function(t){return!t.disabled&&!t.selected}));this._setAllOptionsSelected(o,!0),t.preventDefault()}else n.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&n.activeItemIndex!==i&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new JL(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var n=e.options.find((function(n){return!n.selected&&e.compareWith(n.value,t)}));n&&n._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];
1!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t,e){var n=!1;this.options.forEach((function(i){e&&i.disabled||!i._setSelected(t)||(n=!0)})),n&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t<this.options.length}},{key:"_getOptionIndex",value:function(t){return this.options.toArray().indexOf(t)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach((function(t){return t._markForCheck()}))}},{key:"_allowFocusEscape",value:function(){var t=this;this._tabIndex=-1,setTimeout((function(){t._tabIndex=0,t._changeDetector.markForCheck()}))}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(t){var e=t_(t);if(e!==this._multiple){if(Ai()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new $_(this._multiple,this.selectedOptions.selected)}}}]),n}($L)).\u0275fac=function(t){return new(t||LL)(Oa(Ys),Da("tabindex"),Oa($o))},LL.\u0275cmp=ve({type:LL,selectors:[["mat-selection-list"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,tj,!0),2&t&&rl(i=hl())&&(e.options=i)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&qa("focus",(function(){return e._onFocus()}))("keydown",(function(t){return e._keydown(t)})),2&t&&Ea("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[qs([ZL]),As,Ns],ngContentSelectors:SL,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Za(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{dis
1play:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),LL),nj=((FL=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:FL}),FL.\u0275inj=pt({factory:function(t){return new(t||FL)},imports:[[Zx,sS,Rx,lS,Lf],Zx,Rx,lS,xL]}),FL);function ij(t,e){if(1&t&&(Ma(0,"div",3),Ma(1,"div",4),ws(2),Fa(),Fa()),2&t){var n=e.$implicit,i=Qa();us("archived",n.archived)("hidden",!n.favorite),Ra("routerLink",i.getRouterLink(n)),kr(2),ks(n.name)}}function rj(t,e){if(1&t){var n=Ua();Ma(0,"div",5),qa("click",(function(){return en(n),Qa().addFolder()})),Ma(1,"div",6),ws(2," + New Folder "),Fa(),Fa()}}var oj,aj,sj=((aj=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.service=e,this.teamService=n,this.router=i,this.dialogService=r,this.analytics=o}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.team?(this.teamService.getFoldersForTeam(this.team.id).subscribe((function(e){return t.folders=e})),this.$canEdit=this.teamService.isCurrentUserAtLeastThisRole(this.team.id,"editor")):(this.service.$folders.asObservable().subscribe((function(e){return t.folders=e})),this.$canEdit=Dd(!0))}},{key:"addFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.analytics.logEvent("new_folder"),t.next=3,this.dialogService.getText({label:"Folder Name",confirm:"Create"});case 3:if(!(e=t.sent)||!e.length){t.next=18;break}if(!this.team){t.next=13;break}return t.next=8,this.teamService.addFolder(this.team.id,e);case 8:return n=t.sent,t.next=11,this.router.navigate(["teams",this.team.id,"folders",n]);case 11:t.next=18;break;case 13:return t.next=15,this.service.addFolder(e);case 15:return i=t.sent,t.next=18,this.router.navigate(["templates",i]);case 18:case"end":return t.stop()}}),t,this)})))}},{key:"getRouterLink",value:function(t){return this.team?"/teams/".concat(this.team.id,"/folders/").concat(t.id):"/templates/".concat(t.id)}}]),t}()).\u0275fac=function(t){return new(t||aj)(Oa(zF),Oa(RF),Oa(Gv),Oa(fF),Oa(EF))},aj.\u0275cmp=ve({type:aj,selectors:[["vf-folder-organizer"]],inputs:{team:"team"},decls:4,vars:4,consts:[["id","folder-list"],["class","folder-row","fxLayout","row","routerLinkActive","active-route",3,"archived","hidden","routerLink",4,"ngFor","ngForOf"],["class","folder-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngIf"],["fxLayout","row","routerLinkActive","active-route",1,"folder-row",3,"routerLink"],["fxFlex","",1,"folder-name"],["fxLayout","row","fxLayoutAlign","start center",1,"folder-row",3,"click"],["id","add-folder",1,"folder-name"]],template:function(t,e){1&t&&(Ma(0,"div",0),Aa(1,ij,3,6,"div",1),Aa(2,rj,3,0,"div",2),Hu(3,"async"),Fa()),2&t&&(kr(1),Ra("ngForOf",e.folders),kr(1),Ra("ngIf",zu(3,2,e.$canEdit)))},directives:[Nh,Fh,uD,tg,Kv,WD,OP],pipes:[pf],styles:["#folder-list[_ngcontent-%COMP%]{padding:0 20px}.show-hover[_ngcontent-%COMP%]{visibility:hidden;opacity:.5}.show-hover[_ngcontent-%COMP%]:hover{opacity:1}.folder-row[_ngcontent-%COMP%]{cursor:pointer;opacity:.8;font-size:15px}.folder-row.hidden[_ngcontent-%COMP%]{opacity:.4}.folder-row[_ngcontent-%COMP%]:focus{outline:none}.folder-row[_ngcontent-%COMP%]:hover{opacity:.9;font-weight:700;color:#2962ff;background:rgba(0,0,0,.04)}.folder-row[_ngcontent-%COMP%]:hover .show-hover[_ngcontent-%COMP%]{visibility:visible}.folder-label[_ngcontent-%COMP%]{height:20px}#folder-icon[_ngcontent-%COMP%]{font-size:18px;height:25px;line-height:inherit;width:inherit;padding-right:8px}button.add-folder[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:27px;width:20px!important;line-height:20px!important;font-size:20px!important}.active-route[_ngcontent-%COMP%]{opacity:.9;color:#2962ff;font-weight:700}#folder-menu-title[_ngcontent-%COMP%]{font-size:16px;margin-left:6px}
1.folder-name[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:25px;margin-left:30px;padding-top:3px;margin-bottom:2px}#add-folder[_ngcontent-%COMP%]{opacity:.5}.folder-personal[_ngcontent-%COMP%]{height:25px}.archived[_ngcontent-%COMP%]{opacity:.4}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:none}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.5}.cdk-drag-animating[_ngcontent-%COMP%], .cdk-drop-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]}),aj),uj=((oj=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"goToFeedback",value:function(){var t=new URL("https://getveryfast.com/contact");t.searchParams.set("webapp",window.location.pathname),window.open(t.href)}}]),t}()).\u0275fac=function(t){return new(t||oj)},oj.\u0275cmp=ve({type:oj,selectors:[["vf-feedback-button"]],decls:4,vars:0,consts:[["mat-raised-button","",3,"click"],[1,"mat-18"]],template:function(t,e){1&t&&(Ma(0,"button",0),qa("click",(function(){return e.goToFeedback()})),Ma(1,"mat-icon",1),ws(2,"campaign"),Fa(),ws(3," Feedback?\n"),Fa())},directives:[MA,NM],styles:["button[_ngcontent-%COMP%]{position:fixed;top:10px;right:10px;z-index:100;opacity:.7}button[_ngcontent-%COMP%]:hover{opacity:1}"]}),oj),lj=function(){return{exact:!0}};function cj(t,e){1&t&&(Ma(0,"div",3),Ma(1,"div",4),ws(2,"My Settings"),Fa(),Fa()),2&t&&Ra("routerLinkActiveOptions",Lu(1,lj))}function hj(t,e){1&t&&(Ma(0,"div",4),ws(1,"Organization Settings"),Fa())}function fj(t,e){if(1&t&&(Ma(0,"div",5),Aa(1,hj,2,0,"div",6),Fa()),2&t){var n=e.$implicit,i=Qa();Ja("routerLink","/settings/",n.id,""),Ra("routerLinkActiveOptions",Lu(3,lj)),kr(1),Ra("ngIf","admin"==n.users[i.user.id].role)}}var dj,pj=((dj=function(){function t(e,n){_classCallCheck(this,t),this.teamsService=e,this.dataService=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.teamsService.$teams.asObservable().subscribe((function(e){return t.teams=e})),this.dataService.$user.asObservable().subscribe((function(e){return t.user=e}))}}]),t}()).\u0275fac=function(t){return new(t||dj)(Oa(RF),Oa(zF))},dj.\u0275cmp=ve({type:dj,selectors:[["vf-settings-organizer"]],decls:3,vars:2,consts:[["id","folder-list"],["class","folder-row","fxLayout","row","routerLink","/settings","routerLinkActive","active-route",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["class","folder-row","fxLayout","row","routerLinkActive","active-route",3,"routerLink","routerLinkActiveOptions",4,"ngFor","ngForOf"],["fxLayout","row","routerLink","/settings","routerLinkActive","active-route",1,"folder-row",3,"routerLinkActiveOptions"],["fxFlex","",1,"folder-name"],["fxLayout","row","routerLinkActive","active-route",1,"folder-row",3,"routerLink","routerLinkActiveOptions"],["class","folder-name","fxFlex","",4,"ngIf"]],template:function(t,e){1&t&&(Ma(0,"div",0),Aa(1,cj,3,2,"div",1),Aa(2,fj,2,4,"div",2),Fa()),2&t&&(kr(1),Ra("ngForOf",e.teams),kr(1),Ra("ngForOf",e.teams))},directives:[Nh,uD,Kv,tg,WD,Fh],styles:["#folder-list[_ngcontent-%COMP%]{padding:0 20px}.show-hover[_ngcontent-%COMP%]{visibility:hidden;opacity:.5}.show-hover[_ngcontent-%COMP%]:hover{opacity:1}.folder-row[_ngcontent-%COMP%]{cursor:pointer;opacity:.8;font-size:15px}.folder-row.hidden[_ngcontent-%COMP%]{opacity:.4}.folder-row[_ngcontent-%COMP%]:focus{outline:none}.folder-row[_ngcontent-%COMP%]:hover{opacity:.9;font-weight:700;color:#2962ff;background:rgba(0,0,0,.04)}.folder-row[_ngcontent-%COMP%]:hover .show-hover[_ngcontent-%COMP%]{visibility:visible}.folder-label[_ngcontent-%COMP%]{height:20px}#folder-icon[_ngcontent-%COMP%]{font-size:18px;height:25px;line-height:inherit;width:inherit;padding-right:8px}button.add-folder[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:27px;width:20px!important;line-height:20px!important;font-size:20px!important}.active-route[_ngcontent-%COMP%]{opacity:.9;color:#2962ff;font-weight:700}#folder-menu-title[_ngcontent-%COMP%]{font-size:16px;margin-left:6px}
1.folder-name[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:25px;margin-left:30px;padding-top:3px;margin-bottom:2px}#add-folder[_ngcontent-%COMP%]{opacity:.5}.folder-personal[_ngcontent-%COMP%]{height:25px}.archived[_ngcontent-%COMP%]{opacity:.4}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:none}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.5}.cdk-drag-animating[_ngcontent-%COMP%], .cdk-drop-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]}),dj),mj=function(){return{exact:!0}};function vj(t,e){if(1&t&&(Ma(0,"div"),Ma(1,"a",13),Ma(2,"mat-icon",7),ws(3,"people"),Fa(),ws(4," Organization Templates "),Fa(),La(5,"vf-folder-organizer",14),Fa()),2&t){var n=Qa().$implicit;kr(1),Ja("routerLink","/teams/",n.id,""),Ra("routerLinkActiveOptions",Lu(3,mj)),kr(4),Ra("team",n)}}function gj(t,e){if(1&t&&(Ma(0,"mat-nav-list"),Aa(1,vj,6,4,"div",9),Fa()),2&t){var n=e.$implicit,i=Qa();kr(1),Ra("ngIf",!(i.number>n.number))}}function yj(t,e){1&t&&(Ma(0,"mat-nav-list"),Ma(1,"a",15),Ma(2,"mat-icon",7),ws(3,"account_circle"),Fa(),ws(4," Settings "),Fa(),La(5,"vf-settings-organizer"),Fa())}function _j(t,e){1&t&&(Ma(0,"a",16),Ma(1,"mat-icon",7),ws(2,"account_circle"),Fa(),ws(3," Settings "),Fa()),2&t&&Ra("routerLinkActiveOptions",Lu(1,mj))}function bj(t,e){1&t&&(Ma(0,"div"),ws(1," Free: You're out of credits this month "),Fa())}function wj(t,e){if(1&t&&(Ma(0,"div"),ws(1),Fa()),2&t){var n=Qa(2);kr(1),Cs(" ",n.user.creditsLeft," Credits left this month ")}}function kj(t,e){if(1&t&&(Ma(0,"div"),La(1,"mat-divider"),Ma(2,"div",17),Aa(3,bj,2,0,"div",9),Aa(4,wj,2,1,"div",9),Fa(),Fa()),2&t){var n=Qa();kr(3),Ra("ngIf",!n.user.creditsLeft),kr(1),Ra("ngIf",!!n.user.creditsLeft)}}var Cj,xj,Sj=((Cj=function(){function t(e,n,i,r){_classCallCheck(this,t),this.teamsService=e,this.authService=n,this.dataService=i,this.dialog=r}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.dataService.$user.asObservable().subscribe((function(e){return t.user=e})),this.teamsService.$teams.asObservable().subscribe((function(e){return t.teams=e})),this.number=Object.keys(this.teams[0].users).length,console.log(this.user)}},{key:"logout",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.authService.logout();case 2:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||Cj)(Oa(RF),Oa(WF),Oa(zF),Oa(VS))},Cj.\u0275cmp=ve({type:Cj,selectors:[["vf-layout"]],decls:23,vars:6,consts:[["fxFill",""],["mode","side","opened",""],["fxLayout","column","fxFill",""],["href","https://getveryfast.com","target","_blank"],["src","/assets/logo.png"],["id","top-nav"],["routerLink","/templates/","id","my-templates","routerLinkActive","active-route","mat-list-item","",3,"routerLinkActiveOptions"],[1,"mat-36"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","bottom-nav"],["mat-list-item","","routerLink","/settings","routerLinkActive","active-route",3,"routerLinkActiveOptions",4,"ngIf"],["mat-list-item","","href","https://getveryfast.com/contact?webapp=help-button","target","_blank"],["routerLinkActive","active-route","mat-list-item","",3,"routerLink","routerLinkActiveOptions"],[3,"team"],["mat-list-item",""],["mat-list-item","","routerLink","/settings","routerLinkActive","active-route",3,"routerLinkActiveOptions"],["id","account-level"]],template:function(t,e){1&t&&(Ma(0,"mat-sidenav-container",0),Ma(1,"mat-sidenav",1),Ma(2,"div",2),Ma(3,"a",3),La(4,"img",4),Fa(),Ma(5,"mat-nav-list",5),Ma(6,"a",6),Ma(7,"mat-icon",7),ws(8,"flash_on"),Fa(),ws(9," My Templates "),Fa(),La(10,"vf-folder-organizer"),Fa(),Aa(11,gj,2,1,"mat-nav-list",8),Aa(12,yj,6,0,"mat-nav-list",9),Ma(13,"mat-nav-list",10),Aa(14,_j,4,2,"a",11),Ma(15,"a",12),Ma(16,"mat-icon",7),ws(17,"help"),Fa(),ws(18," Help "),Fa(),Aa(19,kj,5,2,"div",9),Fa(),Fa(),Fa(),Ma(20,"mat-sidenav-content"),La(21,"router-outlet"),Fa(),Fa(),La(22,"vf-feedback-button")),2&t&&(kr(6),Ra("routerLinkActiveOptions",Lu(5,mj)),kr(5),Ra("ngForOf",e.teams),kr(1),Ra("ngIf",e.user.teamMember),kr(2),Ra("ngIf",!e.user.teamMember),kr(5),Ra("ngIf",!e.user.premium))},directives:[bL,xP,yL,uD,zL,Yv,QL,tg,NM,sj,Nh,Fh,gL,ig,uj,pj,CL],styles:["mat-sidenav[_ngcontent-%COMP%]{min-width:230px;background:#ebeef2!important;width:20vw;max-width:280px}mat-sidenav[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:10px;margin-left:15px;width:210px}.menu-icon[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{margin-left:0;height:25px;margin-right:10px}mat-nav-list[_ngcontent-%COMP%]{margin-top:10px}mat-nav-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:0}mat-nav-list[_ngcontent-%COMP%] a.active-route[_ngcontent-%COMP%]{opacity:1;font-weight:700}mat-nav-list[_ngcontent-%COMP%] #info[_ngcontent-%COMP%]{border:0;padding:0;display:flex;align-content:center;cursor:pointer;background-color:inherit}mat-nav-list[_ngcontent-%COMP%] #info[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:last-child{margin:0 15px}mat-nav-list[_ngcontent-%COMP%] #affiliate[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}#bottom-nav[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{margin-top:0;padding:0 5px}
1#bottom-nav[_ngcontent-%COMP%] .top-nav[_ngcontent-%COMP%]{padding:0 5px}#account-level[_ngcontent-%COMP%]{text-align:center;padding:5px;opacity:.66;font-size:12px}#account-level.hover[_ngcontent-%COMP%]{opacity:1}.active-route[_ngcontent-%COMP%]{color:#4284fb}#my-templates[_ngcontent-%COMP%]{opacity:1}img#user-picture[_ngcontent-%COMP%]{height:22px;width:22px;border-radius:22px;margin-top:0;margin-left:1px;opacity:1}#user-name[_ngcontent-%COMP%]{margin-left:10px}"]}),Cj),Ej=["*"],Ij=((xj=function t(){_classCallCheck(this,t),this.header="Welcome!",this.showHeader=!0}).\u0275fac=function(t){return new(t||xj)},xj.\u0275cmp=ve({type:xj,selectors:[["vf-splash-page-layout"]],inputs:{header:"header",showHeader:"showHeader"},ngContentSelectors:Ej,decls:5,vars:0,consts:[["id","logo","src","/assets/logo.png"],["id","splash","src","/assets/rocket-ship-man.png","alt",""],["fxLayout","column","fxLayoutAlign","start center","fxFill",""],["fxFlex","15"]],template:function(t,e){1&t&&(Xa(),La(0,"img",0),La(1,"img",1),Ma(2,"div",2),La(3,"div",3),Za(4),Fa())},directives:[uD,OP,xP,WD],styles:["h1[_ngcontent-%COMP%]{font-size:50px;font-weight:700}img#logo[_ngcontent-%COMP%]{position:fixed;top:10px;left:15px;width:210px}img#splash[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:10px;width:auto;height:30vh;opacity:.66;transform:rotate(-7deg);z-index:-1}"]}),xj);n("6AkR");var Aj=n("9jDo"),Tj=n.n(Aj);n("8Uns"),n("2PUr"),n("NCTj"),n("kfAI"),n("PbUJ"),(function(){(function(){var t,e,n="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};if("function"==typeof Object.setPrototypeOf)e=Object.setPrototypeOf;else{var i;t:{var r={};try{r.__proto__={zb:!0},i=r.zb;break t}catch(Jt){}i=!1}e=i?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var o=e;function a(t,e){if(t.prototype=n(e.prototype),t.prototype.constructor=t,o)o(t,e);else for(var i in e)if("prototype"!=i)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(e,i);r&&Object.defineProperty(t,i,r)}else t[i]=e[i];t.M=e.prototype}var s="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},u="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function l(t,e){if(e){var n=u;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&s(n,t,{configurable:!0,writable:!0,value:e})}}function c(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function h(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:c(t)}}l("Object.is",(function(t){return t||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}})),l("Array.prototype.includes",(function(t){return t||function(t,e){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(0>(e=e||0)&&(e=Math.max(e+i,0));e<i;e++){var r=n[e];if(r===t||Object.is(r,t))return!0}return!1}})),l("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 n(){this.a=null}function i(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;n.prototype.f=function(t){if(null==this.a){this.a=[];var e=this;this.h((function(){e.s()}))}this.a.push(t)};var r=u.setTimeout;n.prototype.h=function(t){r(t,0)},n.prototype.s=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(i){this.j(i)}}}this.a=null},n.prototype.j=function(t){this.h((function(){throw t}))},e.prototype.j=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.L),reject:t(this.s)}},e.prototype.L=function(t){if(t===this)this.s(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.N(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.I(t):this.i(t)}},e.prototype.I=function(t){var e=void 0;try{e=t.then}catch(n){return void this.s(n)}"function"==typeof e?this.O(e,t):this.i(t)},e.prototype.s=function(t){this.w(2,t)},e.prototype.i=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)o.f(this.a[t]);this.a=null}};var o=new n;return e.prototype.N=function(t){var e=this.j();t.Ia(e.resolve,e.reject)},e.prototype.O=function(t,e){var n=this.j();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(n){o(n)}}:e}var r,o,a=new e((function(t,e){r=t,o=e}));return this.Ia(i(t,r),i(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Ia=function(t,e){function n(){switch(i.f){case 1:t(i.h);break;case 2:e(i.h);break;default:throw Error("Unexpected state: "+i.f)}}var i=this;null==this.a?o.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=h(t),o=r.next();!o.done;o=r.next())i(o.value).Ia(e,n)}))},e.all=function(t){var n=h(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).Ia(o(a.length-1),e),r=n.next()}while(!r.done)}))},e}));var f=this;function d(t){return void 0!==t}function p(t){return"string"==typeof t}var m=/^[\w+/_-]+[=]{0,2}$/,v=null;function g(){}function y(t){t.V=void 0,t.Ya=function(){return t.V?t.V:t.V=new t}}function _(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 b(t){return"array"==_(t)}function w(t){var e=_(t);return"array"==e||"object"==e&&"number"==typeof t.length}function k(t){return"function"==_(t)}function C(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var x="closure_uid_"+(1e9*Math.random()>>>0),S=0;function E(t,e,n){return t.call.apply(t.bind,arguments)}function I(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function A(t,e,n){return(A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?E:I).apply(null,arguments)}function T(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function O(t,e){for(var n in e)t[n]=e[n]}var D,P=Date.now||function(){return+new Date};function R(t,e){t=t.split(".");var n,i=f;t[0]in i||void 0===i.execScript||i.execScript("var "+t[0]);for(;t.length&&(n=t.shift());)!t.length&&d(e)?i[n]=e:i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}}function N(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.uc=function(t,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.prototype[n].apply(t,r)}}function M(t){if(Error.captureStackTrace)Error.captureStackTrace(this,M);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function F(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");M.call(this,n+t[i])}function L(t,e){throw new F("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}N(M,Error),M.prototype.name="CustomError",N(F,M),F.prototype.name="AssertionError";var j=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(p(t))return p(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},B=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r=p(t)?t.split(""):t,o=0;o<i;o++)o in r&&e.call(n,r[o],o,t)},V=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],r=0,o=p(t)?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(i[r++]=s)}return i},U=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),r=p(t)?t.split(""):t,o=0;o<n;o++)o in r&&(i[o]=e.call(void 0,r[o],o,t));return i},H=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=p(t)?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t))return!0;return!1};function z(t,e,n){for(var i=t.length,r=p(t)?t.split(""):t,o=0;o<i;o++)if(o in r&&e.call(n,r[o],o,t))return o;return-1}function q(t,e){return 0<=j(t,e)}function W(t,e){var n;return(n=0<=(e=j(t,e)))&&G(t,e),n}function G(t,e){return 1==Array.prototype.splice.call(t,e,1).length}function K(t){return Array.prototype.concat.apply([],arguments)}function Y(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}function Q(t,e,n,i){return Array.prototype.splice.apply(t,$(arguments,1
1))}function $(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}var X=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Z=/&/g,J=/</g,tt=/>/g,et=/"/g,nt=/'/g,it=/\x00/g,rt=/[\x00&<>"']/;function ot(t,e){return t<e?-1:t>e?1:0}function at(t){return rt.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(Z,"&")),-1!=t.indexOf("<")&&(t=t.replace(J,"<")),-1!=t.indexOf(">")&&(t=t.replace(tt,">")),-1!=t.indexOf('"')&&(t=t.replace(et,""")),-1!=t.indexOf("'")&&(t=t.replace(nt,"'")),-1!=t.indexOf("\0")&&(t=t.replace(it,"�"))),t}function st(t,e,n){for(var i in t)e.call(n,t[i],i,t)}function ut(t){var e,n={};for(e in t)n[e]=t[e];return n}var lt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ct(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<lt.length;o++)n=lt[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}var ht="StopIteration"in f?f.StopIteration:{message:"StopIteration",stack:""};function ft(){}function dt(t){if(t instanceof ft)return t;if("function"==typeof t.ha)return t.ha(!1);if(w(t)){var e=0,n=new ft;return n.next=function(){for(;;){if(e>=t.length)throw ht;if(e in t)return t[e++];e++}},n}throw Error("Not implemented")}function pt(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 i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof pt)for(n=t.ja(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function mt(t){if(t.h!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];vt(t.f,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.h!=t.a.length){var r={};for(n=e=0;e<t.a.length;)vt(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function vt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}ft.prototype.next=function(){throw ht},ft.prototype.ha=function(){return this},(t=pt.prototype).la=function(){mt(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.f[this.a[e]]);return t},t.ja=function(){return mt(this),this.a.concat()},t.clear=function(){this.f={},this.j=this.h=this.a.length=0},t.get=function(t,e){return vt(this.f,t)?this.f[t]:e},t.set=function(t,e){vt(this.f,t)||(this.h++,this.a.push(t),this.j++),this.f[t]=e},t.forEach=function(t,e){for(var n=this.ja(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}},t.ha=function(t){mt(this);var e=0,n=this.j,i=this,r=new ft;return r.next=function(){if(n!=i.j)throw Error("The map has changed since the iterator was created");if(e>=i.a.length)throw ht;var r=i.a[e++];return t?r:i.f[r]},r};var gt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function yt(t,e,n,i){for(var r=n.length;0<=(e=t.indexOf(n,e))&&e<i;){var o=t.charCodeAt(e-1);if(!(38!=o&&63!=o||(o=t.charCodeAt(e+r))&&61!=o&&38!=o&&35!=o))return e;e+=r+1}return-1}var _t=/#|$/;function bt(t,e){var n=t.search(_t),i=yt(t,0,e,n);if(0>i)return null;var r=t.indexOf("&",i);return(0>r||r>n)&&(r=n),i+=e.length+1,decodeURIComponent(t.substr(i,r-i).replace(/\+/g," "))}var wt=/[?&]($|#)/;function kt(t,e){var n;this.h=this.w=this.j="",this.C=null,this.s=this.f="",this.i=!1,t instanceof kt?(this.i=d(e)?e:t.i,Ct(this,t.j),this.w=t.w,this.h=t.h,xt(this,t.C),this.f=t.f,St(this,Vt(t.a)),this.s=t.s):t&&(n=String(t).match(gt))?(this.i=!!e,Ct(this,n[1]||"",!0),this.w=At(n[2]||""),this.h=At(n[3]||"",!0),xt(this,n[4]),this.f=At(n[5]||"",!0),St(this,n[6]||"",!0),this.s=At(n[7]||"")):(this.i=!!e,this.a=new Ft(null,this.i))}function Ct(t,e,n){t.j=n?At(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function xt(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 St(t,e,n){e instanceof Ft?(t.a=e,function(t,e){e&&!t.j&&(Lt(t),t.h=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(jt(this,e),jt(this,n),0<t.length&&(this.h=null,this.a.set(Ut(this,n),Y(t)),this.f+=t.length))}),t)),t.j=e}(t.a,t.i)):(n||(e=Tt(e,Nt)),t.a=new Ft(e,t.i))}function Et(t){return t instanceof kt?new kt(t):new kt(t,void 0)}function It(t,e){return t instanceof kt||(t=Et(t)),e instanceof kt||(e=Et(e)),t.resolve(e)}function At(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Tt(t,e,n){return p(t)?(t=encodeURI(t).replace(e,Ot),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Ot(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}kt.prototype.toString=function(){var t=[],e=this.j;e&&t.push(Tt(e,Dt,!0),":");var n=this.h;
1return(n||"file"==e)&&(t.push("//"),(e=this.w)&&t.push(Tt(e,Dt,!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(Tt(n,"/"==n.charAt(0)?Rt:Pt,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.s)&&t.push("#",Tt(n,Mt)),t.join("")},kt.prototype.resolve=function(t){var e=new kt(this),n=!!t.j;n?Ct(e,t.j):n=!!t.w,n?e.w=t.w:n=!!t.h,n?e.h=t.h:n=null!=t.C;var i=t.f;if(n)xt(e,t.C);else if(n=!!t.f){if("/"!=i.charAt(0))if(this.h&&!this.f)i="/"+i;else{var r=e.f.lastIndexOf("/");-1!=r&&(i=e.f.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return n?e.f=i:n=""!==t.a.toString(),n?St(e,Vt(t.a)):n=!!t.s,n&&(e.s=t.s),e};var Dt=/[#\/\?@]/g,Pt=/[#\?:]/g,Rt=/[#\?]/g,Nt=/[#\?@]/g,Mt=/#/g;function Ft(t,e){this.f=this.a=null,this.h=t||null,this.j=!!e}function Lt(t){t.a||(t.a=new pt,t.f=0,t.h&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.h,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function jt(t,e){Lt(t),e=Ut(t,e),vt(t.a.f,e)&&(t.h=null,t.f-=t.a.get(e).length,vt((t=t.a).f,e)&&(delete t.f[e],t.h--,t.j++,t.a.length>2*t.h&&mt(t)))}function Bt(t,e){return Lt(t),e=Ut(t,e),vt(t.a.f,e)}function Vt(t){var e=new Ft;return e.h=t.h,t.a&&(e.a=new pt(t.a),e.f=t.f),e}function Ut(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function Ht(t){this.a=Et(t)}function zt(t){return t.a.a.get(Gt.Qa)||null}function qt(t,e){e?t.a.a.set(Gt.PROVIDER_ID,e):jt(t.a.a,Gt.PROVIDER_ID)}(t=Ft.prototype).add=function(t,e){Lt(this),this.h=null,t=Ut(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){Lt(this),this.a.forEach((function(n,i){B(n,(function(n){t.call(e,n,i,this)}),this)}),this)},t.ja=function(){Lt(this);for(var t=this.a.la(),e=this.a.ja(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},t.la=function(t){Lt(this);var e=[];if(p(t))Bt(this,t)&&(e=K(e,this.a.get(Ut(this,t))));else{t=this.a.la();for(var n=0;n<t.length;n++)e=K(e,t[n])}return e},t.set=function(t,e){return Lt(this),this.h=null,Bt(this,t=Ut(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.la(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.ja(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(String(i));i=this.la(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),t.push(a)}}return this.h=t.join("&")},Ht.prototype.toString=function(){return this.a.toString()};var Wt,Gt={Qa:"ui_auid",kc:"apiKey",Ra:"ui_sd",wb:"mode",ab:"oobCode",PROVIDER_ID:"ui_pid",Ta:"ui_sid",xb:"tenantId"};t:{var Kt=f.navigator;if(Kt){var Yt=Kt.userAgent;if(Yt){Wt=Yt;break t}}Wt=""}function Qt(t){return-1!=Wt.indexOf(t)}function $t(){return(Qt("Chrome")||Qt("CriOS"))&&!Qt("Edge")}function Xt(t){return Xt[" "](t),t}Xt[" "]=g;var Zt,Jt,te=Qt("Opera"),ee=Qt("Trident")||Qt("MSIE"),ne=Qt("Edge"),ie=ne||ee,re=Qt("Gecko")&&!(-1!=Wt.toLowerCase().indexOf("webkit")&&!Qt("Edge"))&&!(Qt("Trident")||Qt("MSIE"))&&!Qt("Edge"),oe=-1!=Wt.toLowerCase().indexOf("webkit")&&!Qt("Edge"),ae=oe&&Qt("Mobile"),se=Qt("Macintosh");function ue(){var t=f.document;return t?t.documentMode:void 0}t:{var le="",ce=(Jt=Wt,re?/rv:([^\);]+)(\)|;)/.exec(Jt):ne?/Edge\/([\d\.]+)/.exec(Jt):ee?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Jt):oe?/WebKit\/(\S+)/.exec(Jt):te?/(?:Version)[ \/]?(\S+)/.exec(Jt):void 0);if(ce&&(le=ce?ce[1]:""),ee){var he=ue();if(null!=he&&he>parseFloat(le)){Zt=String(he);break t}}Zt=le}var fe,de={};function pe(t){return function(t,e){var n=de;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=X(String(Zt)).split("."),i=X(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=ot(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ot(0==a[2].length,0==s[2].length)||ot(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}var me=f.document;function ve(t,e){this.a=t===_e&&e||"",this.f=ye}function ge(t){return t instanceof ve&&t.constructor===ve&&t.f===ye?t.a:(L("expected object of type Const, got '"+t+"'"),"type_error:Const")}
1fe=me&&ee?ue()||("CSS1Compat"==me.compatMode?parseInt(Zt,10):5):void 0,ve.prototype.ma=!0,ve.prototype.ka=function(){return this.a},ve.prototype.toString=function(){return"Const{"+this.a+"}"};var ye={},_e={};function be(){this.a="",this.h=ke}function we(t){return t instanceof be&&t.constructor===be&&t.h===ke?t.a:(L("expected object of type TrustedResourceUrl, got '"+t+"' of type "+_(t)),"type_error:TrustedResourceUrl")}be.prototype.ma=!0,be.prototype.ka=function(){return this.a.toString()},be.prototype.f=function(){return 1},be.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var ke={};function Ce(t){var e=new be;return e.a=t,e}function xe(){this.a="",this.h=Te}function Se(t){return Ee(t).toString()}function Ee(t){return t instanceof xe&&t.constructor===xe&&t.h===Te?t.a:(L("expected object of type SafeUrl, got '"+t+"' of type "+_(t)),"type_error:SafeUrl")}xe.prototype.ma=!0,xe.prototype.ka=function(){return this.a.toString()},xe.prototype.f=function(){return 1},xe.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ie=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ae(t){return t instanceof xe?t:(t="object"==typeof t&&t.ma?t.ka():String(t),Ie.test(t)||(t="about:invalid#zClosurez"),Oe(t))}var Te={};function Oe(t){var e=new xe;return e.a=t,e}function De(){this.a="",this.f=Pe}Oe("about:blank"),De.prototype.ma=!0;var Pe={};function Re(){this.a="",this.j=Me,this.h=null}function Ne(t){return t instanceof Re&&t.constructor===Re&&t.j===Me?t.a:(L("expected object of type SafeHtml, got '"+t+"' of type "+_(t)),"type_error:SafeHtml")}De.prototype.ka=function(){return this.a},De.prototype.toString=function(){return"SafeStyle{"+this.a+"}"},Re.prototype.f=function(){return this.h},Re.prototype.ma=!0,Re.prototype.ka=function(){return this.a.toString()},Re.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Me={};function Fe(t,e){var n=new Re;return n.a=t,n.h=e,n}Fe("<!DOCTYPE html>",0);var Le=Fe("",0);Fe("<br>",0);var je,Be,Ve=(Be=!1,function(){return Be||(je=function(){if("undefined"==typeof document)return!1;var t=document.createElement("div"),e=document.createElement("div");return e.appendChild(document.createElement("div")),t.appendChild(e),!!t.firstChild&&(e=t.firstChild.firstChild,t.innerHTML=Ne(Le),!e.parentElement)}(),Be=!0),je});function Ue(t,e){this.a=d(t)?t:0,this.f=d(e)?e:0}function He(t,e){this.width=t,this.height=e}function ze(t){return t?new Je($e(t)):D||(D=new Je)}function qe(t,e){var n=e||document;return n.querySelectorAll&&n.querySelector?n.querySelectorAll("."+t):Ge(document,t,e)}function We(t,e){var n=e||document;if(n.getElementsByClassName)t=n.getElementsByClassName(t)[0];else{n=document;var i=e||n;t=i.querySelectorAll&&i.querySelector&&t?i.querySelector(t?"."+t:""):Ge(n,t,e)[0]||null}return t||null}function Ge(t,e,n){var i;if((t=n||t).querySelectorAll&&t.querySelector&&e)return t.querySelectorAll(e?"."+e:"");if(e&&t.getElementsByClassName){var r=t.getElementsByClassName(e);return r}if(r=t.getElementsByTagName("*"),e){var o={};for(n=i=0;t=r[n];n++){var a=t.className;"function"==typeof a.split&&q(a.split(/\s+/),e)&&(o[i++]=t)}return o.length=i,o}return r}Ue.prototype.toString=function(){return"("+this.a+", "+this.f+")"},Ue.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.f=Math.ceil(this.f),this},Ue.prototype.floor=function(){return this.a=Math.floor(this.a),this.f=Math.floor(this.f),this},Ue.prototype.round=function(){return this.a=Math.round(this.a),this.f=Math.round(this.f),this},(t=He.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 Ke={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 Ye(t){return t.scrollingElement?t.scrollingElement:(oe||"CSS1Compat"!=t.compatMode)&&t.body||t.documentElement}function Qe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function $e(t){return 9==t.nodeType?t:t.ownerDocument||t.document}function Xe(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($e(t).createTextNode(String(e)))}}function Ze(t,e){return e?function(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}(t,(function(t){return!e||p(t.className)&&q(t.className.split(/\s+/),e)})):null}function Je(t){this.a=t||f.document||document}Je.prototype.R=function(){return p(void 0)?this.a.getElementById(void 0):void 0};var tn={Ec:!0},en={Gc:!0},nn={Dc:!0},rn={Fc:!0};function on(){throw Error("Do not instantiate directly")}function an(t,e,n,i){if(t=t(e||un,void 0,n),i=(i||ze()).a.createElement("DIV"),(t=function(t){if(!C(t))return at(String(t));if(t instanceof on){if(t.fa===tn)return t.content;if(t.fa===rn)return at(t.content)}return L("Soy template output is unsafe for use as HTML: "+t),"zSoyz"}(t)).match(sn),t=Fe(t,null),Ve())for(;i.lastChild;)i.removeChild(i.lastChild);return i.innerHTML=Ne(t),1==i.childNodes.length&&1==(t=i.firstChild).nodeType&&(i=t),i}on.prototype.va=null,on.prototype.toString=function(){return this.content};var sn=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,un={};function ln(){on.call(this)}function cn(t){return null!=t&&t.fa===tn?t:t instanceof Re?pn(Ne(t).toString(),t.f()):pn(at(String(String(t))),function(t){if(null!=t)switch(t.va){case 1:return 1;case-1:return-1;case 0:return 0}return null}(t))}function hn(){on.call(this)}function fn(t,e){this.content=String(t),this.va=null!=e?e:null}function dn(t){return new fn(t,void 0)}N(ln,on),ln.prototype.fa=tn,N(hn,on),hn.prototype.fa=en,hn.prototype.va=1,N(fn,on),fn.prototype.fa=rn;var pn=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t,n){return t=new e(String(t)),void 0!==n&&(t.va=n),t}}(ln),mn=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t){return new e(String(t))}}(hn);function vn(t){return(t=String(t))?new fn(t,void 0):""}var gn=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t,n){return(t=String(t))?(t=new e(t),void 0!==n&&(t.va=n),t):""}}(ln);function yn(t){return null!=t&&t.fa===tn?String(String(t.content).replace(Tn,"").replace(On,"<")).replace(Sn,kn):at(String(t))}function _n(t){return null!=t&&t.fa===en?t=String(t).replace(En,xn):t instanceof xe?t=String(Se(t)).replace(En,xn):(t=String(t),An.test(t)?t=t.replace(En,xn):(L("Bad value `%s` for |filterNormalizeUri",[t]),t="#zSoyz")),t}function bn(t){return null!=t&&t.fa===nn?t=t.content:null==t?t="":t instanceof De?t instanceof De&&t.constructor===De&&t.f===Pe?t=t.a:(L("expected object of type SafeStyle, got '"+t+"' of type "+_(t)),t="type_error:SafeStyle"):(t=String(t),In.test(t)||(L("Bad value `%s` for |filterCssValue",[t]),t="zSoyz")),t}var wn={"\0":"�","\t":"	","\n":" ","\v":"","\f":"","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\x85":"…","\xa0":" ","\u2028":"
","\u2029":"
"};function kn(t){return wn[t]}var Cn={"\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 xn(t){return Cn[t]}var Sn=/[\x00\x22\x27\x3c\x3e]/g,En=/[\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,In=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,An=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Tn=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,On=/</g;function Dn(){return dn("Enter a valid phone number")}function Pn(){return dn("Unable to send password reset code to specified email")}function Rn(){return dn("Something went wrong. Please try again.")}function Nn(){return dn("This email already exists without any means of sign-in. Please reset the password to recover.")}function Mn(t){var e="";switch((t=t||{}
1).code){case"invalid-argument":e+="Client specified an invalid argument.";break;case"invalid-configuration":e+="Client specified an invalid project configuration.";break;case"failed-precondition":e+="Request can not be executed in the current system state.";break;case"out-of-range":e+="Client specified an invalid range.";break;case"unauthenticated":e+="Request not authenticated due to missing, invalid, or expired OAuth token.";break;case"permission-denied":e+="Client does not have sufficient permission.";break;case"not-found":e+="Specified resource is not found.";break;case"aborted":e+="Concurrency conflict, such as read-modify-write conflict.";break;case"already-exists":e+="The resource that a client tried to create already exists.";break;case"resource-exhausted":e+="Either out of resource quota or reaching rate limiting.";break;case"cancelled":e+="Request cancelled by the client.";break;case"data-loss":e+="Unrecoverable data loss or data corruption.";break;case"unknown":e+="Unknown server error.";break;case"internal":e+="Internal server error.";break;case"not-implemented":e+="API method not implemented by the server.";break;case"unavailable":e+="Service unavailable.";break;case"deadline-exceeded":e+="Request deadline exceeded.";break;case"auth/user-disabled":e+="The user account has been disabled by an administrator.";break;case"auth/timeout":e+="The operation has timed out.";break;case"auth/too-many-requests":e+="We have blocked all requests from this device due to unusual activity. Try again later.";break;case"auth/quota-exceeded":e+="The quota for this operation has been exceeded. Try again later.";break;case"auth/network-request-failed":e+="A network error has occurred. Try again later.";break;case"restart-process":e+="An issue was encountered when authenticating your request. Please visit the URL that redirected you to this page again to restart the authentication process.";break;case"no-matching-tenant-for-email":e+="No sign-in provider is available for the given email, please try with a different email."}return dn(e)}function Fn(){return dn("Please login again to perform this operation")}function Ln(t,e,n){var i=Error.call(this);if(this.message=i.message,"stack"in i&&(this.stack=i.stack),this.code=jn+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+=Rn()}t=dn(t).toString()}this.message=t||"",this.credential=n||null}a(Ln,Error),Ln.prototype.aa=function(){return{code:this.code,message:this.message}},Ln.prototype.toJSON=function(){return this.aa()};var jn="firebaseui/";function Bn(){0!=Vn&&(Un[this[x]||(this[x]=++S)]=this),this.O=this.O,this.C=this.C}var Vn=0,Un={};function Hn(t,e){t.O?d(void 0)?e.call(void 0):e():(t.C||(t.C=[]),t.C.push(d(void 0)?A(e,void 0):e))}function zn(t){t&&"function"==typeof t.o&&t.o()}Bn.prototype.O=!1,Bn.prototype.o=function(){if(!this.O&&(this.O=!0,this.m(),0!=Vn)){var t=this[x]||(this[x]=++S);if(0!=Vn&&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 Un[t]}},Bn.prototype.m=function(){if(this.C)for(;this.C.length;)this.C.shift()()};var qn=Object.freeze||function(t){return t},Wn=!ee||9<=Number(fe),Gn=ee&&!pe("9"),Kn=function(){if(!f.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{f.addEventListener("test",g,e),f.removeEventListener("test",g,e)}catch(je){}return t}();function Yn(t,e){this.type=t,this.f=this.target=e,this.h=!1,this.sb=!0}function Qn(t,e){if(Yn.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,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.f=e,e=t.relatedTarget){if(re){t:{try{Xt(e.nodeName);var r=!0;break t}catch(o){}r=!1}r||(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.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=p(t.pointerType)?t.pointerType:$n[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Yn.prototype.stopPropagation=function(){this.h=!0},Yn.prototype.preventDefault=function(){this.sb=!1},N(Qn,Yn);var $n=qn({2:"touch",3:"pen",4:"mouse"});Qn.prototype.stopPropagation=function(){Qn.M.stopPropagation.call(this),this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0},Qn.prototype.preventDefault=function(){Qn.M.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Gn)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(Be){}};var Xn="closure_listenable_"+(1e6*Math.random()|0),Zn=0;function Jn(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.La=r,this.key=++Zn,this.sa=this.Ha=!1}function ti(t){t.sa=!0,t.listener=null,t.proxy=null,t.src=null,t.La=null}function ei(t){this.src=t,this.a={},this.f=0}function ni(t,e){var n=e.type;n in t.a&&W(t.a[n],e)&&(ti(e),0==t.a[n].length&&(delete t.a[n],t.f--))}function ii(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.sa&&o.listener==e&&o.capture==!!n&&o.La==i)return r}return-1}ei.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.f++);var a=ii(t,e,i,r);return-1<a?(e=t[a],n||(e.Ha=!1)):((e=new Jn(e,this.src,o,!!i,r)).Ha=n,t.push(e)),e};var ri="closure_lm_"+(1e6*Math.random()|0),oi={};function ai(t,e,n,i,r){if(i&&i.once)return ui(t,e,n,i,r);if(b(e)){for(var o=0;o<e.length;o++)ai(t,e[o],n,i,r);return null}return n=gi(n),t&&t[Xn]?t.I.add(String(e),n,!1,C(i)?!!i.capture:!!i,r):si(t,e,n,!1,i,r)}function si(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=C(r)?!!r.capture:!!r,s=mi(t);if(s||(t[ri]=s=new ei(t)),(n=s.add(e,n,i,a,o)).proxy)return n;if(i=function(){var t=pi,e=Wn?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=i,i.src=t,i.listener=n,t.addEventListener)Kn||(r=a),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(hi(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}return n}function ui(t,e,n,i,r){if(b(e)){for(var o=0;o<e.length;o++)ui(t,e[o],n,i,r);return null}return n=gi(n),t&&t[Xn]?t.I.add(String(e),n,!0,C(i)?!!i.capture:!!i,r):si(t,e,n,!0,i,r)}function li(t,e,n,i,r){if(b(e))for(var o=0;o<e.length;o++)li(t,e[o],n,i,r);else i=C(i)?!!i.capture:!!i,n=gi(n),t&&t[Xn]?(t=t.I,(e=String(e).toString())in t.a&&-1<(n=ii(o=t.a[e],n,i,r))&&(ti(o[n]),G(o,n),0==o.length&&(delete t.a[e],t.f--))):t&&(t=mi(t))&&(e=t.a[e.toString()],t=-1,e&&(t=ii(e,n,i,r)),(n=-1<t?e[t]:null)&&ci(n))}function ci(t){if("number"!=typeof t&&t&&!t.sa){var e=t.src;if(e&&e[Xn])ni(e.I,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(hi(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=mi(e))?(ni(n,t),0==n.f&&(n.src=null,e[ri]=null)):ti(t)}}}function hi(t){return t in oi?oi[t]:oi[t]="on"+t}function fi(t,e,n,i){var r=!0;if((t=mi(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.sa&&(o=di(o,i),r=r&&!1!==o)}return r}function di(t,e){var n=t.listener,i=t.La||t.src;return t.Ha&&ci(t),n.call(i,e)}function pi(t,e){if(t.sa)return!0;if(!Wn){if(!e)t:{e=["window","event"];for(var n=f,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new Qn(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.f;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;!e.h&&0<=r;r--){e.f=i[r];var o=fi(i[r],t,!0,e);n=n&&o}for(r=0;!e.h&&r<i.length;r++)e.f=i[r],o=fi(i[r],t,!1,e),n=n&&o}return n}return di(t,new Qn(e,this))}function mi(t){return(t=t[ri])instanceof ei?t:null}var vi="__closure_events_fn_"+(1e9*Math.random()>>>0);function gi(t){return k(t)?t:(t[vi]||(t[vi]=function(e){return t.handleEvent(e)}),t[vi])}function yi(){Bn.call(this),this.I=new ei(this),this.yb=this,this.Fa=null}function _i(t,e){var n,i=t.Fa;if(i)for(n=[];i;i=i.Fa)n.push(i);if(t=t.yb,i=e.type||e,p(e))e=new Yn(e,t);else if(e instanceof Yn)e.target=e.target||t;else{var r=e;ct(e=new Yn(i,t),r)}if(r=!0,n)for(var o=n.length-1;!e.h&&0<=o;o--){var a=e.f=n[o];r=bi(a,i,!0,e)&&r}if(e.h||(r=bi(a=e.f=t,i,!0,e)&&r,e.h||(r=bi(a,i,!1,e)&&r)),n)for(o=0;!e.h&&o<n.length;o++)r=bi(a=e.f=n[o],i,!1,e)&&r;return r}function bi(t,e,n,i){if(!(e=t.I.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.sa&&a.capture==n){var s=a.listener,u=a.La||a.src;a.Ha&&ni(t.I,a),r=!1!==s.call(u,i)&&r}}return r&&0!=i.sb}N(yi,Bn),yi.prototype[Xn]=!0,yi.prototype.$a=function(t){this.Fa=t},yi.prototype.removeEventListener=function(t,e,n,i){li(this,t,e,n,i)},yi.prototype.m=function(){if(yi.M.m.call(this),this.I){var t,e=this.I;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)ti(n[i]);delete e.a[t],e.f--}}this.Fa=null};var wi={},ki=0;function Ci(t,e){if(!t)throw Error("Event target element must be provided!");if(t=xi(t),wi[t]&&wi[t].length)for(var n=0;n<wi[t].length;n++)_i(wi[t][n],e)}function xi(t){return void 0===t.a&&(t.a=ki,ki++),t.a}function Si(t){if(!t)throw Error("Event target element must be provided!");yi.call(this),this.a=t}function Ei(t){if(!t)return!1;
1try{return!!t.$goog_Thenable}catch(Be){return!1}}function Ii(t,e){this.h=t,this.j=e,this.f=0,this.a=null}function Ai(t,e){t.j(e),100>t.f&&(t.f++,e.next=t.a,t.a=e)}function Ti(){this.f=this.a=null}a(Si,yi),Si.prototype.R=function(){return this.a},Si.prototype.register=function(){var t=xi(this.R());wi[t]?q(wi[t],this)||wi[t].push(this):wi[t]=[this]},Ii.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 Oi,Di,Pi=new Ii((function(){return new Ni}),(function(t){t.reset()}));function Ri(){var t=ji,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.f=null),e.next=null),e}function Ni(){this.next=this.f=this.a=null}function Mi(t){f.setTimeout((function(){throw t}),0)}function Fi(t,e){Di||function(){if(f.Promise&&f.Promise.resolve){var t=f.Promise.resolve(void 0);Di=function(){t.then(Bi)}}else Di=function(){var t=Bi;!k(f.setImmediate)||f.Window&&f.Window.prototype&&!Qt("Edge")&&f.Window.prototype.setImmediate==f.setImmediate?(Oi||(Oi=function(){var t=f.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!Qt("Presto")&&(t=function(){var t=document.createElement("IFRAME");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(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=A((function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!Qt("Trident")&&!Qt("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(d(n.next)){var t=(n=n.next).hb;n.hb=null,t()}},function(t){i.next={hb: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){f.setTimeout(t,0)}}()),Oi(t)):f.setImmediate(t)}}(),Li||(Di(),Li=!0),ji.add(t,e)}Ti.prototype.add=function(t,e){var n=Pi.get();n.set(t,e),this.f?this.f.next=n:this.a=n,this.f=n},Ni.prototype.set=function(t,e){this.a=t,this.f=e,this.next=null},Ni.prototype.reset=function(){this.next=this.f=this.a=null};var Li=!1,ji=new Ti;function Bi(){for(var t;t=Ri();){try{t.a.call(t.f)}catch(Be){Mi(Be)}Ai(Pi,t)}Li=!1}function Vi(t){if(this.a=Ui,this.w=void 0,this.j=this.f=this.h=null,this.s=this.i=!1,t!=g)try{var e=this;t.call(void 0,(function(t){Xi(e,Hi,t)}),(function(t){if(!(t instanceof ir))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(n){}Xi(e,zi,t)}))}catch(je){Xi(this,zi,je)}}var Ui=0,Hi=2,zi=3;function qi(){this.next=this.context=this.f=this.j=this.a=null,this.h=!1}qi.prototype.reset=function(){this.context=this.f=this.j=this.a=null,this.h=!1};var Wi=new Ii((function(){return new qi}),(function(t){t.reset()}));function Gi(t,e,n){var i=Wi.get();return i.j=t,i.f=e,i.context=n,i}function Ki(t){if(t instanceof Vi)return t;var e=new Vi(g);return Xi(e,Hi,t),e}
1function Yi(t){return new Vi((function(e,n){n(t)}))}function Qi(t,e){t.f||t.a!=Hi&&t.a!=zi||Zi(t),t.j?t.j.next=e:t.f=e,t.j=e}function $i(t,e,n,i){var r=Gi(null,null,null);return r.a=new Vi((function(t,o){r.j=e?function(n){try{var r=e.call(i,n);t(r)}catch(a){o(a)}}:t,r.f=n?function(e){try{var r=n.call(i,e);!d(r)&&e instanceof ir?o(e):t(r)}catch(a){o(a)}}:o})),r.a.h=t,Qi(t,r),r.a}function Xi(t,e,n){if(t.a==Ui){t===n&&(e=zi,n=new TypeError("Promise cannot resolve to itself")),t.a=1;t:{var i=n,r=t.gc,o=t.hc;if(i instanceof Vi){Qi(i,Gi(r||g,o||null,t));var a=!0}else if(Ei(i))i.then(r,o,t),a=!0;else{if(C(i))try{var s=i.then;if(k(s)){!function(t,e,n,i,r){function o(t){a||(a=!0,i.call(r,t))}var a=!1;try{e.call(t,(function(t){a||(a=!0,n.call(r,t))}),o)}catch(s){o(s)}}(i,s,r,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,Zi(t),e!=zi||n instanceof ir||function(t,e){t.s=!0,Fi((function(){t.s&&nr.call(null,e)}))}(t,n))}}function Zi(t){t.i||(t.i=!0,Fi(t.Gb,t))}function Ji(t){var e=null;return t.f&&(t.f=(e=t.f).next,e.next=null),t.f||(t.j=null),e}function tr(t,e,n,i){if(n==zi&&e.f&&!e.h)for(;t&&t.s;t=t.h)t.s=!1;if(e.a)e.a.h=null,er(e,n,i);else try{e.h?e.j.call(e.context):er(e,n,i)}catch(r){nr.call(null,r)}Ai(Wi,e)}function er(t,e,n){e==Hi?t.j.call(t.context,n):t.f&&t.f.call(t.context,n)}Vi.prototype.then=function(t,e,n){return $i(this,k(t)?t:null,k(e)?e:null,n)},Vi.prototype.$goog_Thenable=!0,(t=Vi.prototype).ec=function(t,e){return(t=Gi(t,t,e)).h=!0,Qi(this,t),this},t.ta=function(t,e){return $i(this,null,t,e)},t.cancel=function(t){this.a==Ui&&Fi((function(){!function t(e,n){if(e.a==Ui)if(e.h){var i=e.h;if(i.f){for(var r=0,o=null,a=null,s=i.f;s&&(s.h||(r++,s.a==e&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==Ui&&1==r?t(i,n):(a?((r=a).next==i.j&&(i.j=r),r.next=r.next.next):Ji(i),tr(i,o,zi,n)))}e.h=null}else Xi(e,zi,n)}(this,new ir(t))}),this)},t.gc=function(t){this.a=Ui,Xi(this,Hi,t)},t.hc=function(t){this.a=Ui,Xi(this,zi,t)},t.Gb=function(){for(var t;t=Ji(this);)tr(this,t,this.a,this.w);this.i=!1};var nr=Mi;function ir(t){M.call(this,t)}function rr(t,e,n){e||(e={}),n=n||window;var i=t instanceof xe?t:Ae(void 0!==t.href?t.href:String(t));t=e.target||t.target;var r=[];for(o in e)switch(o){case"width":case"height":case"top":case"left":r.push(o+"="+e[o]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(o+"="+(e[o]?1:0))}var o=r.join(",");return(Qt("iPhone")&&!Qt("iPod")&&!Qt("iPad")||Qt("iPad")||Qt("iPod"))&&n.navigator&&n.navigator.standalone&&t&&"_self"!=t?(o=n.document.createElement("A"),i instanceof xe||i instanceof xe||(i="object"==typeof i&&i.ma?i.ka():String(i),Ie.test(i)||(i="about:invalid#zClosurez"),i=Oe(i)),o.href=Ee(i),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=Se(i),n&&(ie&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),n.opener=null,e=Fe('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+at(e)+'">',null),n.document.write(Ne(e)),n.document.close())):(n=n.open(Se(i),t,o))&&e.noopener&&(n.opener=null),n}function or(t){window.location.assign(Se(Ae(t)))}function ar(){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(t){}return!1}function sr(t){rr(t,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function ur(t,e){if(null==(t=C(t)&&1==t.nodeType?t:document.querySelector(String(t))))throw Error(e||"Cannot find element.");return t}function lr(){return window.location.href}function cr(t){var e=wr;this.s=[],this.O=e,this.N=t||null,this.j=this.a=!1,this.h=void 0,this.I=this.l=this.w=!1,this.i=0,this.f=null,this.C=0}function hr(t,e,n){t.a=!0,t.h=n,t.j=!e,mr(t)}function fr(t){if(t.a){if(!t.I)throw new vr(t);t.I=!1}}function dr(t,e,n){t.s.push([e,n,void 0]),t.a&&mr(t)}function pr(t){return H(t.s,(function(t){return k(t[1])}))}function mr(t){if(t.i&&t.a&&pr(t)){var e=t.i,n=_r[e];n&&(f.clearTimeout(n.a),delete _r[e]),t.i=0}t.f&&(t.f.C--,delete t.f),e=t.h;for(var i=n=!1;t.s.length&&!t.w;){var r=t.s.shift(),o=r[0],a=r[1];if(r=r[2],o=t.j?a:o)try{var s=o.call(r||t.N,e);
1d(s)&&(t.j=t.j&&(s==e||s instanceof Error),t.h=e=s),(Ei(e)||"function"==typeof f.Promise&&e instanceof f.Promise)&&(i=!0,t.w=!0)}catch(u){e=u,t.j=!0,pr(t)||(n=!0)}}t.h=e,i&&(s=A(t.L,t,!0),i=A(t.L,t,!1),e instanceof cr?(dr(e,s,i),e.l=!0):e.then(s,i)),n&&(e=new yr(e),_r[e.a]=e,t.i=e.a)}function vr(){M.call(this)}function gr(){M.call(this)}function yr(t){this.a=f.setTimeout(A(this.h,this),0),this.f=t}N(ir,M),ir.prototype.name="cancel",cr.prototype.cancel=function(t){if(this.a)this.h instanceof cr&&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.N,this):this.I=!0,this.a||(t=new gr(this),fr(this),hr(this,!1,t))}},cr.prototype.L=function(t,e){this.w=!1,hr(this,t,e)},cr.prototype.then=function(t,e,n){var i,r,o=new Vi((function(t,e){i=t,r=e}));return dr(this,i,(function(t){t instanceof gr?o.cancel():r(t)})),o.then(t,e,n)},cr.prototype.$goog_Thenable=!0,N(vr,M),vr.prototype.message="Deferred has already fired",vr.prototype.name="AlreadyCalledError",N(gr,M),gr.prototype.message="Deferred was canceled",gr.prototype.name="CanceledError",yr.prototype.h=function(){throw delete _r[this.a],this.f};var _r={};function br(t){var e={},n=e.document||document,i=we(t).toString(),r=document.createElement("SCRIPT"),o={tb:r,ub:void 0},a=new cr(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout((function(){kr(r,!0);var t=new Sr(xr,"Timeout reached for loading script "+i);fr(a),hr(a,!1,t)}),u),o.ub=s),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(kr(r,e.wc||!1,s),fr(a),hr(a,!0,null))},r.onerror=function(){kr(r,!0,s);var t=new Sr(Cr,"Error while loading script "+i);fr(a),hr(a,!1,t)},ct(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),function(t,e){st(e,(function(e,n){e&&"object"==typeof e&&e.ma&&(e=e.ka()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:Ke.hasOwnProperty(n)?t.setAttribute(Ke[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}(r,o),function(t,e){t.src=we(e),null===v&&(v=(e=(e=f.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&m.test(e)?e:""),(e=v)&&t.setAttribute("nonce",e)}(r,t),function(t){var e=(t||document).getElementsByTagName("HEAD");return e&&0!=e.length?e[0]:t.documentElement}(n).appendChild(r),a}function wr(){if(this&&this.tb){var t=this.tb;t&&"SCRIPT"==t.tagName&&kr(t,!0,this.ub)}}function kr(t,e,n){null!=n&&f.clearTimeout(n),t.onload=g,t.onerror=g,t.onreadystatechange=g,e&&window.setTimeout((function(){Qe(t)}),0)}var Cr=0,xr=1;function Sr(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),M.call(this,n),this.code=t}function Er(t){this.a=t||f.googleyolo,this.f=null,this.h=!1}N(Sr,M),Er.prototype.cancel=function(){this.a&&this.h&&(this.f=this.a.cancelLastOperation().catch((function(){})))},y(Er);var Ir=new ve(_e,"https://smartlock.google.com/client"),Ar="illegalConcurrentRequest",Tr="userCanceled";function Or(){this.a=null}function Dr(t,e){this.a=t,this.f=e||function(t){throw t}}function Pr(t,e,n){this.reset(t,e,n,void 0,void 0)}function Rr(t){this.s=t,this.a=this.h=this.j=this.f=null}function Nr(t,e){this.name=t,this.value=e}Or.prototype.load=function(){var t=this;if(this.a)return this.a;var e=Ce(ge(Ir));return f.googleyolo?Ki():this.a=function(){var t=null;return new Vi((function(e){"complete"==f.document.readyState?e():(t=function(){e()},ui(window,"load",t))})).ta((function(e){throw li(window,"load",t),e}))}().then((function(){if(!f.googleyolo)return new Vi((function(n,i){var r=setTimeout((function(){t.a=null,i(Error("Network error!"))}),1e4);f.onGoogleYoloLoad=function(){clearTimeout(r),n()},Ki(br(e)).ta((function(e){clearTimeout(r),t.a=null,i(e)}))}))}))},y(Or),Dr.prototype.confirm=function(t){return Ki(this.a.confirm(t)).ta(this.f)},Pr.prototype.a=null,Pr.prototype.reset=function(t,e,n,i,r){this.h=i||P(),this.j=t,this.s=e,this.f=n,delete this.a},Nr.prototype.toString=function(){return this.name};var Mr=new Nr("SEVERE",1e3),Fr=new Nr("WARNING",900),Lr=new Nr("CONFIG",700);Rr.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.j?e.j:e.f?t(e.f):(L("Root logger has no level set."),null)}(this).value)for(k(e)&&(e=e()),t=new Pr(t,String(e),this.s),n&&(t.a=n),n=this;n;){var i=n,r=t;if(i.a)for(var o=0;e=i.a[o];o++)e(r);n=n.f}};var jr={},Br=null;function Vr(){Br||(Br=new Rr(""),jr[""]=Br,Br.j=Lr)}function Ur(){this.a=P()}var Hr=null;function zr(t){this.j=t||"",Hr||(Hr=new Ur),this.s=Hr}function qr(t){return 10>t?"0"+t:String(t)}function Wr(t){zr.call(this,t)}function Gr(){this.s=A(this.h,this),this.a=new Wr,this.a.f=!1,this.a.h=!1,this.f=this.a.a=!1,this.j={}}Ur.prototype.set=function(t){this.a=t},Ur.prototype.reset=function(){this.set(P())},Ur.prototype.get=function(){return this.a},zr.prototype.a=!0,zr.prototype.f=!0,zr.prototype.h=!1,N(Wr,zr),Gr.prototype.h=function(t){if(!this.j[t.f]){var e=function(t,e){var n=[];if(n.push(t.j," "),t.f){var i=new Date(e.h);n.push("[",qr(i.getFullYear()-2e3)+qr(i.getMonth()+1)+qr(i.getDate())+" "+qr(i.getHours())+":"+qr(i.getMinutes())+":"+qr(i.getSeconds())+"."+qr(Math.floor(i.getMilliseconds()/10)),"] ")}return 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}(e,t.s.get()),"s] "),n.push("[",e.f,"] "),n.push(e.s),t.h&&(e=e.a)&&n.push("\n",e instanceof Error?e.message:e.toString()),t.a&&n.push("\n"),n.join("")}(this.a,t);Yr&&function(t,e,n,i){t[e]?t[e](n,i||""):t.log(n,i||"")}(Yr,function(t){if(t){if(t.value>=Mr.value)return"error";if(t.value>=Fr.value)return"warn";if(t.value>=Lr.value)return"log"}return"debug"}(t.j),e,t.a)}};var Kr,Yr=f.console;function Qr(t,e){Kr&&Kr.log(Mr,t,e)}Kr=function t(e){var n;if(Vr(),!(n=jr[e])){n=new Rr(e);var i=e.lastIndexOf("."),r=e.substr(i+1);(i=t(e.substr(0,i))).h||(i.h={}),i.h[r]=n,n.f=i,jr[e]=n}return n}("firebaseui");var $r=new Gr;if(1!=$r.f){var Xr;Vr();var Zr=$r.s;(Xr=Br).a||(Xr.a=[]),Xr.a.push(Zr),$r.f=!0}function Jr(t){Kr&&Kr.log(Fr,t,void 0)}function to(t,e,n,i){this.a=t,this.h=e||null,this.j=n||null,this.f=i||null}function eo(t){return t.email?new to(t.email,t.displayName,t.photoUrl,t.providerId):null}
1function no(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function io(t){t=(t.a.cookie||"").split(";");for(var e,n,i=[],r=[],o=0;o<t.length;o++)-1==(e=(n=X(t[o])).indexOf("="))?(i.push(""),r.push(n)):(i.push(n.substring(0,e)),r.push(n.substring(e+1)));return{keys:i,values:r}}to.prototype.aa=function(){return{email:this.a,displayName:this.h,photoUrl:this.j,providerId:this.f}},(t=no.prototype).set=function(t,e,n,i,r,o){if(/[;=\s]/.test(t))throw Error('Invalid cookie name "'+t+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');d(n)||(n=-1),r=r?";domain="+r:"",i=i?";path="+i:"",o=o?";secure":"",n=0>n?"":0==n?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(P()+1e3*n).toUTCString(),this.a.cookie=t+"="+e+r+i+n+o},t.get=function(t,e){for(var n,i=t+"=",r=(this.a.cookie||"").split(";"),o=0;o<r.length;o++){if(0==(n=X(r[o])).lastIndexOf(i,0))return n.substr(i.length);if(n==t)return""}return e},t.ja=function(){return io(this).keys},t.la=function(){return io(this).values},t.clear=function(){for(var t=io(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 ro=new no;function oo(){}function ao(t,e,n,i){this.h=null!=t?t:-1,this.f=e||null,this.a=n||null,this.j=!!i}function so(t,e){this.f=t,this.a=e||null}function uo(t){if(t&&t.email){var e=t.credential&&Xg.auth.AuthCredential.fromJSON(t.credential);return new so(t.email,e)}return null}function lo(t){this.a=t||null}function co(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);255<r&&(e[n++]=255&r,r>>=8),e[n++]=r}return e}function ho(t){return U(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}function fo(t){for(this.i=t,this.f=this.i.length/4,this.j=this.f+6,this.h=[[],[],[],[]],this.s=[[],[],[],[]],this.a=Array(po*(this.j+1)),t=0;t<this.f;t++)this.a[t]=[this.i[4*t],this.i[4*t+1],this.i[4*t+2],this.i[4*t+3]];var e=Array(4);for(t=this.f;t<po*(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,i=n[0];n[0]=n[1],n[1]=n[2],n[2]=n[3],n[3]=i,wo(e),e[0]^=xo[t/this.f][0],e[1]^=xo[t/this.f][1],e[2]^=xo[t/this.f][2],e[3]^=xo[t/this.f][3]}else 6<this.f&&4==t%this.f&&wo(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]}}a(ao,oo),ao.prototype.set=function(t,e){ro.set(t,e,this.h,this.f,this.a,this.j)},ao.prototype.get=function(t){return ro.get(t)||null},ao.prototype.ra=function(t){var e=this.f,n=this.a;ro.get(t),ro.set(t,"",0,e,n)},so.prototype.aa=function(){return{email:this.f,credential:this.a&&this.a.toJSON()}},lo.prototype.aa=function(){return{tenantId:this.a}};var po=(fo.prototype.w=16)/4;function mo(t,e){for(var n=0;n<po;n++)for(var i=0;4>i;i++)t.h[n][i]=e[4*i+n]}function vo(t){for(var e=[],n=0;n<po;n++)for(var i=0;4>i;i++)e[4*i+n]=t.h[n][i];return e}function go(t,e){for(var n=0;4>n;n++)for(var i=0;4>i;i++)t.h[n][i]^=t.a[4*e+i][n]}function yo(t,e){for(var n=0;4>n;n++)for(var i=0;4>i;i++)t.h[n][i]=e[t.h[n][i]]}function _o(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.s[e][n]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.s[e][(n+e)%po]}function bo(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.s[e][(n+e)%po]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.s[e][n]}function wo(t){t[0]=ko[t[0]],t[1]=ko[t[1]],t[2]=ko[t[2]],t[3]=ko[t[3]]}var ko=[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],Co=[82,9,106,213,48,54,165,56,
1191,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,111,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],xo=[[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]],So=[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],Eo=[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],Io=[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],Ao=[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],To=[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],Oo=[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 Do(t,e){t=new fo(Ro(t));for(var n,i=Q(e=co(e),0,16),r="";i.length;){n=16-i.length;for(var o=0;o<n;o++)i.push(0);for(mo(n=t,i),go(n,0),i=1;i<n.j;++i){yo(n,ko),_o(n),o=n.h;for(var a=n.s[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]=So[a[0]]^Eo[a[1]]^a[2]^a[3],o[1][s]=a[0]^So[a[1]]^Eo[a[2]]^a[3],o[2][s]=a[0]^a[1]^So[a[2]]^Eo[a[3]],o[3][s]=Eo[a[0]]^a[1]^a[2]^So[a[3]];go(n,i)}yo(n,ko),_o(n),go(n,n.j),r+=ho(vo(n)),i=Q(e,0,16)}return r}function Po(t,e){t=new fo(Ro(t));for(var n=[],i=0;i<e.length;i+=2)n.push(parseInt(e.substring(i,i+2),16));var r=Q(n,0,16);for(e="";r.length;){for(mo(i=t,r),go(i,i.j),r=1;r<i.j;++r){bo(i),yo(i,Co),go(i,i.j-r);for(var o=i.h,a=i.s[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]=Oo[a[0]]^Ao[a[1]]^To[a[2]]^Io[a[3]],o[1][s]=Io[a[0]]^Oo[a[1]]^Ao[a[2]]^To[a[3]],o[2][s]=To[a[0]]^Io[a[1]]^Oo[a[2]]^Ao[a[3]],o[3][s]=Ao[a[0]]^To[a[1]]^Io[a[2]]^Oo[a[3]]}if(bo(i),yo(i,Co),go(i,0),8192>=(i=vo(i)).length)i=String.fromCharCode.apply(null,i);else{for(r="",o=0;o<i.length;o+=8192)r+=String.fromCharCode.apply(null,$(i,o,o+8192));i=r}e+=i,r=Q(n,0,16)}return e.replace(/(\x00)+$/,"")}function Ro(t){for(var e=32-(t=co(t.substring(0,32))).length,n=0;n<e;n++)t.push(0);return t}function No(t){var e=[];return function t(e,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(b(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),t(e,r[a],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(a=n[r])&&(i.push(o),jo(r,i),i.push(":"),t(e,a,i),o=",");return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":jo(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new Mo,t,e),e.join("")}function Mo(){}var Fo={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Lo=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function jo(t,e){e.push('"',t.replace(Lo,(function(t){var e=Fo[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Fo[t]=e),e})),'"')}function Bo(t){this.a=t}function Vo(){}function Uo(t){this.a=t}function Ho(t){if(!t.a)return!1;try{return t.a.setItem("__sak","1"),t.a.removeItem("__sak"),!0}catch(Be){return!1}}function zo(){var t=null;try{t=window.localStorage||null}catch(Be){}this.a=t}function qo(){var t=null;try{t=window.sessionStorage||null}catch(Be){}this.a=t}function Wo(t,e){this.f=t,this.a=e+"::"}Bo.prototype.set=function(t,e){d(e)?this.a.set(t,No(e)):this.a.ra(t)},Bo.prototype.get=function(t){try{var e=this.a.get(t)}catch(je){return}if(null!==e)try{return JSON.parse(e)}catch(n){throw"Storage: Invalid value was encountered"}},N(Vo,oo),Vo.prototype.clear=function(){var t=function(t){if(w(t))return Y(t);t=dt(t);var e=[];return function(t,e){if(w(t))try{B(t,e,void 0)}catch(je){if(je!==ht)throw je}else{t=dt(t);try{for(;;)e.call(void 0,t.next(),void 0,t)}catch(n){if(n!==ht)throw n}}}(t,(function(t){e.push(t)})),e}(this.ha(!0)),e=this;B(t,(function(t){e.ra(t)}))},N(Uo,Vo),(t=Uo.prototype).set=function(t,e){try{this.a.setItem(t,e)}catch(je){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}},t.get=function(t){if(!p(t=this.a.getItem(t))&&null!==t)throw"Storage mechanism: Invalid value was encountered";return t},t.ra=function(t){this.a.removeItem(t)},t.ha=function(t){var e=0,n=this.a,i=new ft;return i.next=function(){if(e>=n.length)throw ht;var i=n.key(e++);if(t)return i;if(!p(i=n.getItem(i)))throw"Storage mechanism: Invalid value was encountered";return i},i},t.clear=function(){this.a.clear()},t.key=function(t){return this.a.key(t)},N(zo,Uo),N(qo,Uo),N(Wo,Vo),Wo.prototype.set=function(t,e){this.f.set(this.a+t,e)},Wo.prototype.get=function(t){return this.f.get(this.a+t)},Wo.prototype.ra=function(t){this.f.ra(this.a+t)},Wo.prototype.ha=function(t){var e=this.f.ha(!0),n=this,i=new ft;return i.next=function(){for(var i=e.next();i.substr(0,n.a.length)!=n.a;)i=e.next();return t?i.substr(n.a.length):n.f.get(i)},i};var Go=new zo,Ko=new Bo(Ho(Go)?new Wo(Go,"firebaseui"):null),Yo=new qo,Qo=new Bo(Ho(Yo)?new Wo(Yo,"firebaseui"):null),$o={name:"pendingEmailCredential",storage:Qo},Xo={name:"redirectStatus",storage:Qo},Zo={name:"redirectUrl",storage:Qo},Jo={name:"rememberAccount",storage:Qo},ta={name:"rememberedAccounts",storage:Ko},ea={name:"emailForSignIn",storage:new Bo(new ao(3600,"/"))},na={name:"pendingEncryptedCredential",storage:new Bo(new ao(3600,"/"))};function ia(t,e){return t.storage.get(e?t.name+":"+e:t.name)}function ra(t,e){t.storage.a.ra(e?t.name+":"+e:t.name)}function oa(t,e,n){t.storage.set(n?t.name+":"+n:t.name,e)}function aa(t){return ia(Zo,t)||null}function sa(t,e){oa(Zo,t,e)}function ua(t,e){oa(Jo,t,e)}function la(t){return t=ia(ta,t)||[],t=U(t,(function(t){return eo(t)})),V(t,(function(t){return null!=t}))}function ca(t){return uo(t=ia($o,t)||null)}function ha(t){ra($o,t)}function fa(t,e){oa($o,t.aa(),e)}function da(t){return(t=ia(Xo,t)||null)&&void 0!==t.tenantId?new lo(t.tenantId):null}function pa(t,e){oa(Xo,t.aa(),e)}function ma(){this.V={}}function va(t,e,n){if(e.toLowerCase()in t.V)throw Error("Configuration "+e+" has already been defined.");t.V[e.toLowerCase()]=n}function ga(t,e,n){if(!(e.toLowerCase()in t.V))throw Error("Configuration "+e+" is not defined.");t.V[e.toLowerCase()]=n}function ya(t,e){if(!(t=t.get(e)))throw Error("Configuration "+e+" is required.");return t}function _a(){this.f=void 0,this.a={}}function ba(t,e,n,i){for(var r=0;r<e.length;r++){var o=e.charAt(r);t.a[o]||(t.a[o]=new _a),t=t.a[o]}if(i&&void 0!==t.f)throw Error('The collection already contains the key "'+e+'"');t.f=n}function wa(t){for(this.a=t,this.f=new _a,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 ka(t,e){var n={},i=0;for(void 0!==(t=t.f).f&&(n[i]=t.f);i<e.length;i++){var r=e.charAt(i);if(!(r in t.a))break;void 0!==(t=t.a[r]).f&&(n[i]=t.f)}for(var o in n)if(n.hasOwnProperty(o))return n[o];return[]}function Ca(t){for(var e=0;e<Ia.length;e++)if(Ia[e].c===t)return Ia[e];return null}function xa(t){t=t.toUpperCase();for(var e=[],n=0;n<Ia.length;n++)Ia[n].g===t&&e.push(Ia[n]);return e}function Sa(t){if(0<t.length&&"+"==t.charAt(0)){t=t.substring(1);for(var e=[],n=0;n<Ia.length;n++)Ia[n].b==t&&e.push(Ia[n]);t=e}else t=xa(t);return t}function Ea(t){t.sort((function(t,e){return t.name.localeCompare(e.name,"en")}))}ma.prototype.get=function(t){if(!(t.toLowerCase()in this.V))throw Error("Configuration "+t+" is not defined.");return this.V[t.toLowerCase()]},(t=_a.prototype).set=function(t,e){ba(this,t,e,!1)},t.add=function(t,e){ba(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.la=function(){var t=[];return function t(e,n){for(var i in void 0!==e.f&&n.push(e.f),e.a)t(e.a[i],n)}(this,t),t},t.ja=function(){var t=[];return function t(e,n,i){for(var r in void 0!==e.f&&i.push(n),e.a)t(e.a[r],n+r,i)}(this,"",t),t},t.clear=function(){this.a={},this.f=void 0};var Ia=[{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"}];Ea(Ia);var Aa=new wa(Ia);function Ta(t,e){this.a=t,this.za=e}function Oa(t){t=X(t);var e=ka(Aa,t);return 0<e.length?new Ta("1"==e[0].b?"1-US-0":e[0].c,X(t.substr(e[0].b.length+1))):null}function Da(t){var e=Ca(t.a);if(!e)throw Error("Country ID "+t.a+" not found.");return"+"+e.b+t.za}function Pa(t,e){for(var n=0;n<t.length;n++)if(!q(Ra,t[n])&&(null!==Na&&t[n]in Na||q(e,t[n])))return t[n];return null}var Ra=["emailLink","password","phone"],Na={"facebook.com":"FacebookAuthProvider","github.com":"GithubAuthProvider","google.com":"GoogleAuthProvider",password:"EmailAuthProvider","twitter.com":"TwitterAuthProvider",phone:"PhoneAuthProvider"};function Ma(){this.a=new ma,va(this.a,"acUiConfig"),va(this.a,"autoUpgradeAnonymousUsers"),va(this.a,"callbacks"),va(this.a,"credentialHelper",cs),va(this.a,"immediateFederatedRedirect",!1),va(this.a,"popupMode",!1),va(this.a,"privacyPolicyUrl"),va(this.a,"queryParameterForSignInSuccessUrl","signInSuccessUrl"),va(this.a,"queryParameterForWidgetMode","mode"),va(this.a,"signInFlow"),va(this.a,"signInOptions"),va(this.a,"signInSuccessUrl"),va(this.a,"siteName"),va(this.a,"tosUrl"),va(this.a,"widgetUrl")}function Fa(t){var e=t.a.get("widgetUrl")||lr();return La(t,e)}function La(t,e){t=Ka(t);for(var n,i=e.search(_t),r=0,o=[];0<=(n=yt(e,r,t,i));)o.push(e.substring(r,n)),r=Math.min(e.indexOf("&",n)+1||i,i);return o.push(e.substr(r)),e=o.join("").replace(wt,"$1"),(t+=i="="+encodeURIComponent("select"))?(0>(i=e.indexOf("#"))&&(i=e.length),0>(r=e.indexOf("?"))||r>i?(r=i,n=""):n=e.substring(r+1,i),i=(e=[e.substr(0,r),n,e.substr(i)])[1],e[1]=t?i?i+"&"+t:t:i,t=e[0]+(e[1]?"?"+e[1]:"")+e[2]):t=e,t}function ja(t){var e=!!t.a.get("autoUpgradeAnonymousUsers");return e&&!is(t)&&Qr('Missing "signInFailure" callback: "signInFailure" callback needs to be provided when "autoUpgradeAnonymousUsers" is set to true.',void 0),e}function Ba(t){t=t.a.get("signInOptions")||[];for(var e=[],n=0;n<t.length;n++){var i=t[n];(i=C(i)?i:{provider:i}).provider&&e.push(i)}return e}function Va(t,e){t=Ba(t);for(var n=0;n<t.length;n++)if(t[n].provider===e)return t[n];return null}function Ua(t){return U(Ba(t),(function(t){return t.provider}))}function Ha(t,e){t=za(t);for(var n=0;n<t.length;n++)if(t[n].providerId===e)return t[n];return null}function za(t){return U(Ba(t),(function(t){return Na[t.provider]||q(gs,t.provider)?{providerId:t.provider}:{providerId:t.provider,rb:t.providerName||null,Ga:t.buttonColor||null,Na:t.iconUrl?Se(Ae(t.iconUrl)):null,Nb:t.loginHintKey||null}}))}function qa(t,e){return b(t=(t=Va(t,e))&&t.scopes)?t:[]}function Wa(t,e){return C(t=(t=Va(t,e))&&t.customParameters)?(t=ut(t),e===Xg.auth.GoogleAuthProvider.PROVIDER_ID&&delete t.login_hint,e===Xg.auth.GithubAuthProvider.PROVIDER_ID&&delete t.login,t):null}function Ga(t){if(!(t=Va(t,Xg.auth.PhoneAuthProvider.PROVIDER_ID)))return null;var e=t.whitelistedCountries,n=t.blacklistedCountries;if(void 0!==e&&(!b(e)||0==e.length))throw Error("WhitelistedCountries must be a non-empty array.");if(void 0!==n&&!b(n))throw Error("BlacklistedCountries must be an array.");if(e&&n)throw Error("Both whitelistedCountries and blacklistedCountries are provided.");if(!e&&!n)return Ia;if(t=[],e){n={};for(var i=0;i<e.length;i++)for(var r=Sa(e[i]),o=0;o<r.length;o++)n[r[o].c]=r[o];for(var a in n)n.hasOwnProperty(a)&&t.push(n[a])}else{for(a={},e=0;e<n.length;e++)for(r=Sa(n[e]),i=0;i<r.length;i++)a[r[i].c]=r[i];for(r=0;r<Ia.length;r++)null!==a&&Ia[r].c in a||t.push(Ia[r])}return t}function Ka(t){return ya(t.a,"queryParameterForWidgetMode")}function Ya(t){var e=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,e&&!t&&Jr("Privacy Policy URL is missing, the link will not be displayed."),e&&t){if(k(e))return e;if("string"==typeof e)return function(){sr(e)}}return null}function Qa(t){var e=t.a.get("tosUrl")||null,n=t.a.get("privacyPolicyUrl")||null;if(n&&!e&&Jr("Term of Service URL is missing, the link will not be displayed."),e&&n){if(k(n))return n;if("string"==typeof n)return function(){sr(n)}}return null}function $a(t){return!(t=Va(t,Xg.auth.EmailAuthProvider.PROVIDER_ID))||void 0===t.requireDisplayName||!!t.requireDisplayName}function Xa(t){return!(!(t=Va(t,Xg.auth.EmailAuthProvider.PROVIDER_ID))||t.signInMethod!==Xg.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)}function Za(t){var e=!!t.a.get("immediateFederatedRedirect"),n=Ua(t);return t=Ja(t),e&&1==n.length&&!q(Ra,n[0])&&t==ps}function Ja(t){for(var e in t=t.a.get("signInFlow"),ms)if(ms[e]==t)return ms[e];return ps}function ts(t){return rs(t).uiShown||null}function es(t){return rs(t).signInSuccess||null}function ns(t){return rs(t).signInSuccessWithAuthResult||null}function is(t){return rs(t).signInFailure||null}function rs(t){return t.a.get("callbacks")||{}}function os(t){if("http:"!==(window.location&&window.location.protocol)&&"https:"!==(window.location&&window.location.protocol))return fs;for(var e in t=t.a.get("credentialHelper"),ds)if(ds[e]==t)return ds[e];return cs}var as,ss,us,ls,cs="accountchooser.com",hs="googleyolo",fs="none",ds={jc:cs,mc:hs,NONE:fs},ps="redirect",ms={pc:"popup",qc:ps},vs={lc:"callback",RECOVER_EMAIL:"recoverEmail",rc:"resetPassword",REVERT_SECOND_FACTOR_ADDITION:"revertSecondFactorAddition",sc:"select",tc:"signIn",VERIFY_AND_CHANGE_EMAIL:"verifyAndChangeEmail",VERIFY_EMAIL:"verifyEmail"},gs=["anonymous"],ys=["sitekey","tabindex","callback","expired-callback"],_s={};function bs(t,e,n,i){_s[t].apply(null,Array.prototype.slice.call(arguments,1
1))}var ws=null;function ks(t){return!(!t||-32e3!=t.code||"Service unavailable"!=t.message)}function Cs(t,e,n){function i(){var t=It(window.location.href,n).toString();ws.select(U(e||[],(function(t){return t.aa()})),{clientCallbackUrl:t})}e&&e.length?i():ws.checkEmpty((function(e,n){e||n?t(!ks(n)):i()}))}function xs(t){this.a=t,this.a.callbacks=this.a.callbacks||{}}(t=xs.prototype).store=function(){k(this.a.callbacks.store)&&this.a.callbacks.store(void 0,Ss)},t.select=function(){k(this.a.callbacks.select)&&this.a.callbacks.select(void 0,Ss)},t.update=function(){k(this.a.callbacks.update)&&this.a.callbacks.update(void 0,Ss)},t.checkDisabled=function(t){t(!0)},t.checkEmpty=function(t){t(void 0,Ss)},t.checkAccountExist=function(t,e){e(void 0,Ss)},t.checkShouldUpdate=function(t,e){e(void 0,Ss)};var Ss={code:-32e3,message:"Service unavailable",data:"Service is unavailable."},Es=/MSIE ([\d.]+).*Windows NT ([\d.]+)/,Is=/Firefox\/([\d.]+)/,As=/Opera[ \/]([\d.]+)(.*Version\/([\d.]+))?/,Ts=/Chrome\/([\d.]+)/,Os=/((Windows NT ([\d.]+))|(Mac OS X ([\d_]+))).*Version\/([\d.]+).*Safari/,Ds=/Mac OS X;.*(?!(Version)).*Safari/,Ps=/Android ([\d.]+).*Safari/,Rs=/OS ([\d_]+) like Mac OS X.*Mobile.*Safari/,Ns=/Konqueror\/([\d.]+)/,Ms=/MSIE ([\d.]+).*Windows Phone OS ([\d.]+)/;function Fs(t,e){for(t=t.split(e||"."),this.a=[],e=0;e<t.length;e++)this.a.push(parseInt(t[e],10))}function Ls(t,e){return 0<=function(t,e){e instanceof Fs||(e=new Fs(String(e)));for(var n=Math.max(t.a.length,e.a.length),i=0;i<n;i++){var r=t.a[i],o=e.a[i];if(void 0!==r&&void 0!==o&&r!==o)return r-o;if(void 0===r)return-1;if(void 0===o)return 1}return 0}(t,e)}function js(t){return t.classList?t.classList:p(t=t.className)&&t.match(/\S+/g)||[]}function Bs(t,e){return t.classList?t.classList.contains(e):q(js(t),e)}function Vs(t,e){t.classList?t.classList.add(e):Bs(t,e)||(t.className+=0<t.className.length?" "+e:e)}function Us(t,e){t.classList?t.classList.remove(e):Bs(t,e)&&(t.className=V(js(t),(function(t){return t!=e})).join(" "))}function Hs(t){var e=t.type;switch(p(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,i=0;n=t.options[i];i++)n.selected&&e.push(n.value);return e.length?e:null;default:return null!=t.value?t.value:null}}function zs(t,e){var n=t.type;switch(p(n)&&n.toLowerCase()){case"checkbox":case"radio":t.checked=e;break;case"select-one":if(t.selectedIndex=-1,p(e))for(var i=0;n=t.options[i];i++)if(n.value==e){n.selected=!0;break}break;case"select-multiple":for(p(e)&&(e=[e]),i=0;n=t.options[i];i++)if(n.selected=!1,e)for(var r,o=0;r=e[o];o++)n.value==r&&(n.selected=!0);break;default:t.value=null!=e?e:""}}function qs(t,e,n,i,r,o){if(oe&&!pe("525"))return!0;if(se&&r)return Ws(t);if(r&&!i)return!1;if(!re&&("number"==typeof e&&(e=Gs(e)),(!n||se)&&(17==e||18==e||se&&91==e)||se&&16==e&&(i||o)))return!1;if((oe||ne)&&i&&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(ee&&i&&e==t)return!1;switch(t){case 13:return!(re&&(o||r||n&&i));case 27:return!(oe||ne||re)}return(!re||!(i||r||o))&&Ws(t)}function Ws(t){if(48<=t&&57>=t||96<=t&&106>=t||65<=t&&90>=t||(oe||ne)&&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:case 163:return!0;case 173:return re;default:return!1}}function Gs(t){if(re)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(se&&oe)switch(t){case 93:t=91}return t}function Ks(t){yi.call(this),this.a=t,ai(t,"keydown",this.f,!1,this),ai(t,"click",this.h,!1,this)}function Ys(t,e){var n=new $s(e);if(_i(t,n)){n=new Qs(e);try{_i(t,n)}finally{e.stopPropagation()}}}function Qs(t){Qn.call(this,t.a),this.type="action"}function $s(t){Qn.call(this,t.a),this.type="beforeaction"}function Xs(t){yi.call(this),this.a=t,t=ee?"focusout":"blur",this.f=ai(this.a,ee?"focusin":"focus",this,!ee),this.h=ai(this.a,t,this,!ee)}function Zs(t,e){yi.call(this),this.f=t||1,this.a=e||f,this.h=A(this.fc,this),this.j=P()}function Js(t){t.Ka=!1,t.$&&(t.a.clearTimeout(t.$),t.$=null)}function tu(t){Bn.call(this),this.f=t,this.a={}}N(Ks,yi),Ks.prototype.f=function(t){(13==t.keyCode||oe&&3==t.keyCode)&&Ys(this,t)},Ks.prototype.h=function(t){Ys(this,t)},Ks.prototype.m=function(){Ks.M.m.call(this),li(this.a,"keydown",this.f,!1,this),li(this.a,"click",this.h,!1,this),delete this.a},N(Qs,Qn),N($s,Qn),N(Xs,yi),Xs.prototype.handleEvent=function(t){var e=new Qn(t.a);
1e.type="focusin"==t.type||"focus"==t.type?"focusin":"focusout",_i(this,e)},Xs.prototype.m=function(){Xs.M.m.call(this),ci(this.f),ci(this.h),delete this.a},N(Zs,yi),(t=Zs.prototype).Ka=!1,t.$=null,t.fc=function(){if(this.Ka){var t=P()-this.j;0<t&&t<.8*this.f?this.$=this.a.setTimeout(this.h,this.f-t):(this.$&&(this.a.clearTimeout(this.$),this.$=null),_i(this,"tick"),this.Ka&&(Js(this),this.start()))}},t.start=function(){this.Ka=!0,this.$||(this.$=this.a.setTimeout(this.h,this.f),this.j=P())},t.m=function(){Zs.M.m.call(this),Js(this),delete this.a},N(tu,Bn);var eu=[];function nu(t,e,n,i){b(n)||(n&&(eu[0]=n.toString()),n=eu);for(var r=0;r<n.length;r++){var o=ai(e,n[r],i||t.handleEvent,!1,t.f||t);if(!o)break;t.a[o.key]=o}}function iu(t){st(t.a,(function(t,e){this.a.hasOwnProperty(e)&&ci(t)}),t),t.a={}}function ru(t){yi.call(this),this.a=null,this.f=t,t=ee||ne||oe&&!pe("531")&&"TEXTAREA"==t.tagName,this.h=new tu(this),nu(this.h,this.f,t?["keydown","paste","cut","drop","input"]:"input",this)}function ou(t){null!=t.a&&(f.clearTimeout(t.a),t.a=null)}function au(t){return(t=new Qn(t.a)).type="input",t}function su(t,e){yi.call(this),t&&(this.Pa&&fu(this),this.qa=t,this.Oa=ai(this.qa,"keypress",this,e),this.Za=ai(this.qa,"keydown",this.Ib,e,this),this.Pa=ai(this.qa,"keyup",this.Jb,e,this))}tu.prototype.m=function(){tu.M.m.call(this),iu(this)},tu.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},N(ru,yi),ru.prototype.handleEvent=function(t){if("input"==t.type)ee&&pe(10)&&0==t.keyCode&&0==t.j||(ou(this),_i(this,au(t)));else if("keydown"!=t.type||function(t){if(t.altKey&&!t.ctrlKey||t.metaKey||112<=t.keyCode&&123>=t.keyCode)return!1;if(Ws(t.keyCode))return!0;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!re;default:return 166>t.keyCode||183<t.keyCode}}(t)){var e="keydown"==t.type?this.f.value:null;ee&&229==t.keyCode&&(e=null);var n=au(t);ou(this),this.a=function(t,e){if(k(t))e&&(t=A(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=A(t.handleEvent,t)}return 2147483647<Number(0)?-1:f.setTimeout(t,0)}((function(){this.a=null,this.f.value!=e&&_i(this,n)}),this)}},ru.prototype.m=function(){ru.M.m.call(this),this.h.o(),ou(this),delete this.f},N(su,yi),(t=su.prototype).qa=null,t.Oa=null,t.Za=null,t.Pa=null,t.T=-1,t.W=-1,t.Va=!1;var uu={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},lu={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},cu=!oe||pe("525"),hu=se&&re;function fu(t){t.Oa&&(ci(t.Oa),ci(t.Za),ci(t.Pa),t.Oa=null,t.Za=null,t.Pa=null),t.qa=null,t.T=-1,t.W=-1}function du(t,e,n,i){Qn.call(this,i),this.type="key",this.keyCode=t,this.j=e,this.repeat=n}function pu(t,e,n,i){this.top=t,this.right=e,this.bottom=n,this.left=i}function mu(t,e){var n=$e(t);return n.defaultView&&n.defaultView.getComputedStyle&&(t=n.defaultView.getComputedStyle(t,null))&&(t[e]||t.getPropertyValue(e))||""}function vu(t){try{var e=t.getBoundingClientRect()}catch(je){return{left:0,top:0,right:0,bottom:0}}return ee&&t.ownerDocument.body&&(e.left-=(t=t.ownerDocument).documentElement.clientLeft+t.body.clientLeft,e.top-=t.documentElement.clientTop+t.body.clientTop),e}function gu(t){var e=$e(t),n=new Ue(0,0),i=e?$e(e):document;return t==(i=!ee||9<=Number(fe)||"CSS1Compat"==ze(i).a.compatMode?i.documentElement:i.body)||(t=vu(t),e=Ye(i=ze(e).a),i=i.parentWindow||i.defaultView,e=ee&&pe("10")&&i.pageYOffset!=e.scrollTop?new Ue(e.scrollLeft,e.scrollTop):new Ue(i.pageXOffset||e.scrollLeft,i.pageYOffset||e.scrollTop),n.a=t.left+e.a,n.f=t.top+e.f),n}(t=su.prototype).Ib=function(t){(oe||ne)&&(17==this.T&&!t.ctrlKey||18==this.T&&!t.altKey||se&&91==this.T&&!t.metaKey)&&(this.W=this.T=-1),-1==this.T&&(t.ctrlKey&&17!=t.keyCode?this.T=17:t.altKey&&18!=t.keyCode?this.T=18:t.metaKey&&9
11!=t.keyCode&&(this.T=91)),cu&&!qs(t.keyCode,this.T,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey)?this.handleEvent(t):(this.W=Gs(t.keyCode),hu&&(this.Va=t.altKey))},t.Jb=function(t){this.W=this.T=-1,this.Va=t.altKey},t.handleEvent=function(t){var e=t.a,n=e.altKey;if(ee&&"keypress"==t.type)var i=this.W,r=13!=i&&27!=i?e.keyCode:0;else(oe||ne)&&"keypress"==t.type?(i=this.W,r=0<=e.charCode&&63232>e.charCode&&Ws(i)?e.charCode:0):te&&!oe?r=Ws(i=this.W)?e.keyCode:0:("keypress"==t.type?(hu&&(n=this.Va),e.keyCode==e.charCode?32>e.keyCode?(i=e.keyCode,r=0):(i=this.W,r=e.charCode):(i=e.keyCode||this.W,r=e.charCode||0)):(i=e.keyCode||this.W,r=e.charCode||0),se&&63==r&&224==i&&(i=191));var o=i=Gs(i);i?63232<=i&&i in uu?o=uu[i]:25==i&&t.shiftKey&&(o=9):e.keyIdentifier&&e.keyIdentifier in lu&&(o=lu[e.keyIdentifier]),re&&cu&&"keypress"==t.type&&!qs(o,this.T,t.shiftKey,t.ctrlKey,n,t.metaKey)||(t=o==this.T,this.T=o,(e=new du(o,r,t,e)).altKey=n,_i(this,e))},t.R=function(){return this.qa},t.m=function(){su.M.m.call(this),fu(this)},N(du,Qn),pu.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},pu.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},pu.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},pu.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 yu={thin:2,medium:4,thick:6};function _u(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 yu)t=yu[n];else if(/^\d+px?$/.test(n))t=parseInt(n,10);else{e=t.style.left;var i=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left,t.style.left=n,n=t.style.pixelLeft,t.style.left=e,t.runtimeStyle.left=i,t=+n}return t}function bu(){}function wu(t){yi.call(this),this.s=t||ze(),this.eb=null,this.na=!1,this.f=null,this.L=void 0,this.oa=this.Ca=this.X=null}function ku(t,e){return t.f?We(e,t.f||t.s.a):null}function Cu(t){return t.L||(t.L=new tu(t)),t.L}function xu(t,e){t.Ca&&B(t.Ca,e,void 0)}function Su(t,e){var n=Ze(t,"firebaseui-textfield");e?(Us(t,"firebaseui-input-invalid"),Vs(t,"firebaseui-input"),n&&Us(n,"firebaseui-textfield-invalid")):(Us(t,"firebaseui-input"),Vs(t,"firebaseui-input-invalid"),n&&Vs(n,"firebaseui-textfield-invalid"))}function Eu(t,e,n){Hn(t,T(zn,e=new ru(e))),nu(Cu(t),e,"input",n)}function Iu(t,e,n){Hn(t,T(zn,e=new su(e))),nu(Cu(t),e,"key",(function(t){13==t.keyCode&&(t.stopPropagation(),t.preventDefault(),n(t))}))}function Au(t,e,n){Hn(t,T(zn,e=new Ks(e))),nu(Cu(t),e,"action",(function(t){t.stopPropagation(),t.preventDefault(),n(t)}))}function Tu(t){Vs(t,"firebaseui-hidden")}function Ou(t,e){e&&Xe(t,e),Us(t,"firebaseui-hidden")}function Du(t){return!Bs(t,"firebaseui-hidden")&&"none"!=t.style.display}function Pu(t){var e=(t=t||{}).email,n=t.disabled,i='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-email-input">';return i=t.vc?i+"Enter new email address":i+"Email",i+='</label><input type="email" name="email" id="ui-sign-in-email-input" autocomplete="username" class="mdl-textfield__input firebaseui-input firebaseui-id-email" value="'+yn(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>',pn(i)}function Ru(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+cn(t):e+"Next",pn(e+"</button>")}function Nu(){var t=""+Ru({label:vn("Sign In")});return pn(t)}function Mu(){var t=""+Ru({label:vn("Save")});return pn(t)}function Fu(){var t=""+Ru({label:vn("Continue")});return pn(t)}function Lu(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="ui-sign-in-new-password-input">';return e=(t=(t=t||{}).label)?e+cn(t):e+"Choose password",pn(e+'</label><input type="password" name="newPassword" id="ui-sign-in-new-password-input" 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 ju(){var t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-password-input">';return pn((t={}.current?t+"Current password":t+"Password")+'</label><input type="password" name="password" id="ui-sign-in-password-input" 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 Bu(){return pn('<a class="firebaseui-link firebaseui-id-secondary-link" href="javascript:void(0)">Trouble signing in?</a>')}function Vu(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+cn(t):e+"Cancel",pn(e+"</button>")}function Uu(t){var e="";return t.G&&t.F&&(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>'),pn(e)}function Hu(t){var e="";return t.G&&t.F&&(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>'),pn(e)}function zu(t){return t='<div class="firebaseui-info-bar firebaseui-id-info-bar"><p class="firebaseui-info-bar-message">'+cn(t.message)+' <a href="javascript:void(0)" class="firebaseui-link firebaseui-id-dismiss-info-bar">Dismiss</a></p></div>',pn(t)}function qu(t){var e=t.content;return pn('<dialog class="mdl-dialog firebaseui-dialog firebaseui-id-dialog'+((t=t.Bb)?" "+yn(t):"")+'">'+cn(e)+"</dialog>")}function Wu(t){var e=t.message;return pn(qu({content:gn('<div class="firebaseui-dialog-icon-wrapper"><div class="'+yn(t.Ma)+' firebaseui-dialog-icon"></div></div><div class="firebaseui-progress-dialog-message">'+cn(e)+"</div>")}))}function Gu(t){for(var e='<div class="firebaseui-list-box-actions">',n=(t=t.items).length,i=0;i<n;i++){var r=t[i];e+='<button type="button" data-listboxid="'+yn(r.id)+'" class="mdl-button firebaseui-id-list-box-dialog-button firebaseui-list-box-dialog-button">'+(r.Ma?'<div class="firebaseui-list-box-icon-wrapper"><div class="firebaseui-list-box-icon '+yn(r.Ma)+'"></div></div>':"")+'<div class="firebaseui-list-box-label-wrapper">'+cn(r.label)+"</div></button>"}return e=""+qu({Bb:vn("firebaseui-list-box-dialog"),content:gn(e+"<
1/div>")}),pn(e)}function Ku(t){return pn((t=t||{}).vb?'<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 Yu(t,e){return dn((t=(t=t||{}).ga).rb?t.rb:e.ib[t.providerId]?""+e.ib[t.providerId]:0==(""+t.providerId).indexOf("saml.")||0==(""+t.providerId).indexOf("oidc.")?(""+t.providerId).substring(5):""+t.providerId)}function Qu(t){Zu(t,"upgradeElement")}function $u(t){Zu(t,"downgradeElements")}y(bu),bu.prototype.a=0,N(wu,yi),(t=wu.prototype).Kb=bu.Ya(),t.R=function(){return this.f},t.$a=function(t){if(this.X&&this.X!=t)throw Error("Method not supported");wu.M.$a.call(this,t)},t.lb=function(){this.f=this.s.a.createElement("DIV")},t.render=function(t){if(this.na)throw Error("Component already rendered");this.f||this.lb(),t?t.insertBefore(this.f,null):this.s.a.body.appendChild(this.f),this.X&&!this.X.na||this.v()},t.v=function(){this.na=!0,xu(this,(function(t){!t.na&&t.R()&&t.v()}))},t.ya=function(){xu(this,(function(t){t.na&&t.ya()})),this.L&&iu(this.L),this.na=!1},t.m=function(){this.na&&this.ya(),this.L&&(this.L.o(),delete this.L),xu(this,(function(t){t.o()})),this.f&&Qe(this.f),this.X=this.f=this.oa=this.Ca=null,wu.M.m.call(this)},t.removeChild=function(t,e){if(t){var n=p(t)?t:t.eb||(t.eb=":"+(t.Kb.a++).toString(36));if(t=this.oa&&n&&(null!==(t=this.oa)&&n in t?t[n]:void 0)||null,n&&t){var i=this.oa;
1if(n in i&&delete i[n],W(this.Ca,t),e&&(t.ya(),t.f&&Qe(t.f)),null==(e=t))throw Error("Unable to set parent component");e.X=null,wu.M.$a.call(e,null)}}if(!t)throw Error("Child is not in parent component");return t},zu.A="firebaseui.auth.soy2.element.infoBar",Wu.A="firebaseui.auth.soy2.element.progressDialog",Gu.A="firebaseui.auth.soy2.element.listBoxDialog",Ku.A="firebaseui.auth.soy2.element.busyIndicator";var Xu=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function Zu(t,e){t&&window.componentHandler&&window.componentHandler[e]&&B(Xu,(function(n){Bs(t,n)&&window.componentHandler[e](t),B(qe(n,t),(function(t){window.componentHandler[e](t)}))}))}function Ju(t,e,n){if(tl.call(this),document.body.appendChild(t),t.showModal||window.dialogPolyfill.registerDialog(t),t.showModal(),Qu(t),e&&Au(this,t,(function(e){var n=t.getBoundingClientRect();(e.clientX<n.left||n.left+n.width<e.clientX||e.clientY<n.top||n.top+n.height<e.clientY)&&tl.call(this)})),!n){var i=this.R().parentElement||this.R().parentNode;if(i){var r=this;this.da=function(){if(t.open){var e=t.getBoundingClientRect().height,n=i.getBoundingClientRect().height,o=i.getBoundingClientRect().top-document.body.getBoundingClientRect().top,a=i.getBoundingClientRect().left-document.body.getBoundingClientRect().left,s=t.getBoundingClientRect().width,u=i.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",r.da)},this.da(),window.addEventListener("resize",this.da,!1)}}}function tl(){var t=el.call(this);t&&($u(t),t.open&&t.close(),Qe(t),this.da&&window.removeEventListener("resize",this.da))}function el(){return We("firebaseui-id-dialog")}function nl(){Qe(il.call(this))}function il(){return ku(this,"firebaseui-id-info-bar")}function rl(){return ku(this,"firebaseui-id-dismiss-info-bar")}var ol={xa:{"google.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg","github.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/github.svg","facebook.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg","twitter.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/twitter.svg",password:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/mail.svg",phone:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/phone.svg",anonymous:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/anonymous.png","microsoft.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/microsoft.svg","yahoo.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/yahoo.svg","apple.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/apple.png",saml:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/saml.svg",oidc:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/oidc.svg"},wa:{"google.com":"#ffffff","github.com":"#333333","facebook.com":"#3b5998","twitter.com":"#55acee",password:"#db4437",phone:"#02bd7e",anonymous:"#f4b400","microsoft.com":"#2F2F2F","yahoo.com":"#720E9E","apple.com":"#000000",saml:"#007bff",oidc:"#007bff"},ib:{"google.com":"Google","github.com":"GitHub","facebook.com":"Facebook","twitter.com":"Twitter",password:"Password",phone:"Phone",anonymous:"Guest","microsoft.com":"Microsoft","yahoo.com":"Yahoo","apple.com":"Apple"}};function al(t,e,n){for(var i in Yn.call(this,t,e),n)this[i]=n[i]}function sl(t,e,n,i,r){wu.call(this,n),this.gb=t,this.fb=e,this.Da=!1,this.Ea=i||null,this.w=this.ca=null,this.Y=ut(ol),ct(this.Y,r||{})}function ul(t){return t.R().parentElement||t.R().parentNode}function ll(t,e,n){Iu(t,e,(function(){n.focus()}))}function cl(t,e,n){Iu(t,e,(function(){n()}))}function hl(t,e,n){e=(t=t||{}).Wa;var i=t.ia;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">'+Pu(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Vu(null):"")+Ru(null)+'</div></div><div class="firebaseui-card-footer">'+(i?Hu(n):Uu(n))+"</div></form></div>",pn(t)}function fl(t,e,n){return e=(t=t||{}).ia,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">'+Pu(t)+ju()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Bu()+'</div><div class="firebaseui-form-actions">'+Nu()+'</div></div><div class="firebaseui-card-footer">'+(e?Hu(n):Uu(n))+"</div></form></div>",pn(t)}function dl(t,e,n){var i=(t=t||{}).Sb;e=t.Ua;var r=t.ia,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">'+Pu(t);return i?(t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-name-input">First & last name</label><input type="text" name="name" id="ui-sign-in-name-input" autocomplete="name" class="mdl-textfield__input firebaseui-input firebaseui-id-name" value="'+yn(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=pn(t)):t="",n=o+t+Lu(null)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Vu(null):"")+Mu()+'</div></div><div class="firebaseui-card-footer">'+(r?Hu(n):Uu(n))+"</div></form></div>",pn(n)}function pl(t,e,n){return e=(t=t||{}).Ua,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>'+Pu(t)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Vu(null):"")+Ru({label:vn("Send")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(t)}function ml(t,e,n){e=t.H;var i="";return i+='<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>"+cn(t.email)+"</strong> to recover your password")+'</p></div><div class="firebaseui-card-actions">',e&&(i+='<div class="firebaseui-form-actions">'+Ru({label:vn("Done")})+"</div>"),i+='</div><div class="firebaseui-card-footer">'+Uu(n)+"</div></div>",pn(i)}function vl(t,e,n){return pn('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-callback"><div class="firebaseui-callback-indicator-container">'+Ku(null)+"</div></div>")}function gl(t,e,n){return pn('<div class="firebaseui-container firebaseui-id-page-spinner">'+Ku({vb:!0})+"</div>")}function yl(){return pn('<div class="firebaseui-container firebaseui-id-page-blank firebaseui-use-spinner"></div>')}function _l(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>"+cn(t.email)+"</strong>. Check your email to complete sign-in.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+pn('<a class="firebaseui-link firebaseui-id-trouble-getting-email-link" href="javascript:void(0)">Trouble getting email?</a>')+'</div><div class="firebaseui-form-actions">'+Vu({label:vn("Back")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function bl(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">'+pn('<a class="firebaseui-link firebaseui-id-resend-email-link" href="javascript:void(0)">Resend</a>')+'</div><div class="firebaseui-form-actions">'+Vu({label:vn("Back")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(t)}function wl(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">'+Pu(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Vu(null)+Ru(null)+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(t)}function kl(){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">'+Vu({label:vn("Dismiss")})+"</div></div></div>";return pn(t)}function Cl(){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">'+Vu({label:vn("Dismiss")})+"</div></div></div>";return pn(t)}function xl(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>"+cn(t.email)+"</strong> to sign in. Enter your password for that account.")+"</p>"+ju()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Bu()+'</div><div class="firebaseui-form-actions">'+Nu()+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function Sl(t,e,n){var i=t.email;return e="",t=vn(t=""+Yu(t,n)),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">'+(i="You\u2019ve already used <strong>"+cn(i)+"</strong>. You can connect your <strong>"+cn(t)+"</strong> account with <strong>"+cn(i)+"</strong> by signing in with email link below.")+'<p class="firebaseui-text firebaseui-text-justify">'+(t="For this flow to successfully connect your "+cn(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">'+Nu()+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function El(t,e,n){e="";var i=""+Yu(t,n);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>"+cn(i=vn(i))+"</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">'+(i="If you still want to connect your <strong>"+cn(i)+"</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">'+Fu()+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function Il(t,e,n){var i=t.email;return e="",t=vn(t=""+Yu(t,n)),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">'+(i="You\u2019ve already used <strong>"+cn(i)+"</strong>. Sign in with "+cn(t)+" to continue.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ru({label:vn("Sign in with "+t)})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function Al(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>"+cn(t.email)+"</strong> on this device, you have to recover the password.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Vu(null)+Ru({label:vn("Recover password")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function Tl(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>'+cn(t.email)+"</strong></p>"+Lu(function(t){function e(){}var n={label:vn("New password")};for(var i in e.prototype=t,t=new e,n)t[i]=n[i];return t}(t))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Mu()+"</div></div></form></div>",pn(e)}function Ol(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||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Dl(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||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Pl(t){var e=t.H,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>"+cn(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">'+Fu()+"</div>":"")+"</div></form></div>",pn(n)}function Rl(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||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Nl(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||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Ml(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||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Fl(t){var e=t.H,n="";return n+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-verify-and-change-email-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified and changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="You can now sign in with your new email <strong>"+cn(t.email)+"</strong>.")+'</p></div><div class="firebaseui-card-actions">'+(e?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(n)}function Ll(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-verify-and-change-email-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try updating your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify and update your email has expired or the link has already been used.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function jl(t){var e=t.factorId,n=t.phoneNumber;t=t.H;var i='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-revert-second-factor-addition-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Removed second factor</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">';switch(e){case"phone":i+=e="The <strong>"+cn(e)+" "+cn(n)+"</strong> was removed as a second authentication step.";break;default:i+="The device or app was removed as a second authentication step."}return i+='</p><p class="firebaseui-text">If you don\'t recognize this device, someone might be trying to access your account. Consider <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">changing your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(t?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></form></div>",pn(i)}function Bl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-revert-second-factor-addition-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Couldn\'t remove your second factor</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Something went wrong removing your second factor.</p><p class="firebaseui-text">Try removing it again. If that doesn\'t work, contact support for assistance.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).H?'<div class="firebaseui-form-actions">'+Fu()+"</div>":"")+"</div></div>",pn(t)}function Vl(t){var e=t.Ab;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-recoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+cn(t.errorMessage)+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">',e&&(t+=Ru({label:vn("Retry")})),pn(t+"</div></div></div>")}function Ul(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">'+cn(t.errorMessage)+"</p></div></div>",pn(t)}function Hl(t,e,n){var i=t.Pb;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 "+cn(t.ic)+"?")+'</h2><p class="firebaseui-text">'+(i="You originally wanted to sign in with "+cn(i))+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Vu(null)+Ru({label:vn("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form></div>",pn(e)}function zl(t,e,n){var i='<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.Rb).length;for(var r=0;r<e;r++){var o={ga:t[r]},a=n,s=(o=o||{}).ga,u=o,l="";switch((u=u||{}).ga.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=(u='<button class="firebaseui-idp-button mdl-button mdl-js-button mdl-button--raised '+yn(dn(l))+' firebaseui-id-idp-button" data-provider-id="'+yn(s.providerId)+'" style="background-color:')+yn(bn(dn((l=(l=(l=o)||{}).ga).Ga?l.Ga:a.wa[l.providerId]?""+a.wa[l.providerId]:0==l.providerId.indexOf("saml.")?""+a.wa.saml:0==l.providerId.indexOf("oidc.")?""+a.wa.oidc:""+a.wa.password)))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="';var c=o;l=a,l=mn((c=(c=c||{}).ga).Na?_n(c.Na):l.xa[c.providerId]?_n(l.xa[c.providerId]):0==c.providerId.indexOf("saml.")?_n(l.xa.saml):0==c.providerId.indexOf("oidc.")?_n(l.xa.oidc):_n(l.xa.password)),u=u+yn(_n(l))+'"></span>',u+="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 "+cn(Yu(o,a)))+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+cn(Yu(o,a))+"</span>",i+='<li class="firebaseui-list-item">'+(o=pn(u+"</button>"))+"</li>"}return i+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+Hu(n)+"</div></div>",pn(i)}function ql(t,e,n){var i,r=(t=t||{}).Fb,o=t.Wa;return e=t.ia,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="ui-sign-in-phone-number-input">Phone number</label><input type="tel" name="phoneNumber" id="ui-sign-in-phone-number-input" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-number" value="'+yn(null!=(t=(t=t||{}).za)?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>',i=(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">'+pn(t))+(i=r?pn('<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?Vu(null):"")+Ru({label:vn("Verify")})+'</div></div><div class="firebaseui-card-footer">',e?(e='<p class="firebaseui-tos firebaseui-phone-tos">',n=pn((e=n.G&&n.F?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=pn('<p class="firebaseui-tos firebaseui-phone-sms-notice">By tapping Verify, an SMS may be sent. Message & data rates may apply.</p>')+Uu(n),pn(i+n+"</div></form></div>")}function Wl(t,e,n){var i="";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)">‎'+cn(e=(t=t||{}).phoneNumber)+"</a>",cn(e),e=i,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>"+(i=pn('<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-phone-confirmation-code-input">6-digit code</label><input type="number" name="phoneConfirmationCode" id="ui-sign-in-phone-confirmation-code-input" 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">'+Vu(null)+Ru({label:vn("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Uu(n)+"</div></form>",t=pn('<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>'),pn(e+(n+t+"</div>"))}function Gl(){return pn('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-out"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign Out</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You are now successfully signed out.</p></div></div>')}function Kl(t,e,n){var i='<div class="firebaseui-container firebaseui-page-select-tenant firebaseui-id-page-select-tenant"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-tenant-list">';e=(t=t.dc).length;for(var r=0;r<e;r++){var o=t[r],a="",s="Sign in to "+cn(o.displayName),u=cn(o.displayName),l=o.tenantId?o.tenantId:"top-level-project";a+='<button class="firebaseui-tenant-button mdl-button mdl-js-button mdl-button--raised firebaseui-tenant-selection-'+yn(l=vn(l))+' firebaseui-id-tenant-selection-button"'+(o.tenantId?'data-tenant-id="'+yn(o.tenantId)+'"':"")+'style="background-color:'+yn(bn(o.Ga))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="'+yn(_n(o.Na))+'"></span><span class="firebaseui-idp-text firebaseui-idp-text-long">'+s+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+u+"</span></button>",i+='<li class="firebaseui-list-item">'+(o=pn(a))+"</li>"}return i+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+Hu(n)+"</div></div>",pn(i)}function Yl(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-provider-match-by-email"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+Pu(null)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ru(null)+'</div></div><div class="firebaseui-card-footer">'+Hu(n)+"</div></form></div>",pn(t)}function Ql(){return ku(this,"firebaseui-id-submit")}function $l(){return ku(this,"firebaseui-id-secondary-link")}function Xl(t,e){Au(this,Ql.call(this),(function(e){t(e)}));var n=$l.call(this);n&&e&&Au(this,n,(function(t){e(t)}))}function Zl(){return ku(this,"firebaseui-id-password")}function Jl(){return ku(this,"firebaseui-id-password-error")}function tc(){var t=Zl.call(this),e=Jl.call(this);Eu(this,t,(function(){Du(e)&&(Su(t,!0),Tu(e))}))}function ec(){var t=Zl.call(this),e=Jl.call(this);return Hs(t)?(Su(t,!0),Tu(e),e=!0):(Su(t,!1),Ou(e,dn("Enter your password").toString()),e=!1),e?Hs(t):null}function nc(t,e,n,i,r,o){sl.call(this,xl,{email:t},o,"passwordLinking",{G:i,F:r}),this.B=e,this.J=n}N(al,Yn),N(sl,wu),(t=sl.prototype).lb=function(){var t=an(this.gb,this.fb,this.Y,this.s);Qu(t),this.f=t},t.v=function(){if(sl.M.v.call(this),Ci(ul(this),new al("pageEnter",ul(this),{pageId:this.Ea})),this.cb()&&this.Y.G){var t=this.Y.G;Au(this,this.cb(),(function(){t()}))}if(this.bb()&&this.Y.F){var e=this.Y.F;Au(this,this.bb(),(function(){e()}))}}
1,t.ya=function(){Ci(ul(this),new al("pageExit",ul(this),{pageId:this.Ea})),sl.M.ya.call(this)},t.m=function(){window.clearTimeout(this.ca),this.fb=this.gb=this.ca=null,this.Da=!1,this.w=null,$u(this.R()),sl.M.m.call(this)},t.K=function(t,e,n,i){function r(){if(o.O)return null;o.Da=!1,window.clearTimeout(o.ca),o.ca=null,o.w&&($u(o.w),Qe(o.w),o.w=null)}var o=this;return o.Da?null:(function(t){t.Da=!0;var e=Bs(t.R(),"firebaseui-use-spinner");t.ca=window.setTimeout((function(){t.R()&&null===t.w&&(t.w=an(Ku,{vb:e},null,t.s),t.R().appendChild(t.w),Qu(t.w))}),500)}(o),t.apply(null,e).then(n,i).then(r,r))},O(sl.prototype,{a:function(t){nl.call(this);var e=an(zu,{message:t},null,this.s);this.R().appendChild(e),Au(this,rl.call(this),(function(){Qe(e)}))},xc:nl,zc:il,yc:rl,Z:function(t,e){t=an(Wu,{Ma:t,message:e},null,this.s),Ju.call(this,t)},h:tl,Db:el,Bc:function(){return ku(this,"firebaseui-tos")},cb:function(){return ku(this,"firebaseui-tos-link")},bb:function(){return ku(this,"firebaseui-pp-link")},Cc:function(){return ku(this,"firebaseui-tos-list")}}),hl.A="firebaseui.auth.soy2.page.signIn",fl.A="firebaseui.auth.soy2.page.passwordSignIn",dl.A="firebaseui.auth.soy2.page.passwordSignUp",pl.A="firebaseui.auth.soy2.page.passwordRecovery",ml.A="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",vl.A="firebaseui.auth.soy2.page.callback",gl.A="firebaseui.auth.soy2.page.spinner",yl.A="firebaseui.auth.soy2.page.blank",_l.A="firebaseui.auth.soy2.page.emailLinkSignInSent",bl.A="firebaseui.auth.soy2.page.emailNotReceived",wl.A="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",kl.A="firebaseui.auth.soy2.page.differentDeviceError",Cl.A="firebaseui.auth.soy2.page.anonymousUserMismatch",xl.A="firebaseui.auth.soy2.page.passwordLinking",Sl.A="firebaseui.auth.soy2.page.emailLinkSignInLinking",El.A="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",Il.A="firebaseui.auth.soy2.page.federatedLinking",Al.A="firebaseui.auth.soy2.page.unsupportedProvider",Tl.A="firebaseui.auth.soy2.page.passwordReset",Ol.A="firebaseui.auth.soy2.page.passwordResetSuccess",Dl.A="firebaseui.auth.soy2.page.passwordResetFailure",Pl.A="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",Rl.A="firebaseui.auth.soy2.page.emailChangeRevokeFailure",Nl.A="firebaseui.auth.soy2.page.emailVerificationSuccess",Ml.A="firebaseui.auth.soy2.page.emailVerificationFailure",Fl.A="firebaseui.auth.soy2.page.verifyAndChangeEmailSuccess",Ll.A="firebaseui.auth.soy2.page.verifyAndChangeEmailFailure",jl.A="firebaseui.auth.soy2.page.revertSecondFactorAdditionSuccess",Bl.A="firebaseui.auth.soy2.page.revertSecondFactorAdditionFailure",Vl.A="firebaseui.auth.soy2.page.recoverableError",Ul.A="firebaseui.auth.soy2.page.unrecoverableError",Hl.A="firebaseui.auth.soy2.page.emailMismatch",zl.A="firebaseui.auth.soy2.page.providerSignIn",ql.A="firebaseui.auth.soy2.page.phoneSignInStart",Wl.A="firebaseui.auth.soy2.page.phoneSignInFinish",Gl.A="firebaseui.auth.soy2.page.signOut",Kl.A="firebaseui.auth.soy2.page.selectTenant",Yl.A="firebaseui.auth.soy2.page.providerMatchByEmail",a(nc,sl),nc.prototype.v=function(){this.S(),this.P(this.B,this.J),cl(this,this.i(),this.B),this.i().focus(),sl.prototype.v.call(this)},nc.prototype.m=function(){this.B=null,sl.prototype.m.call(this)},nc.prototype.j=function(){return Hs(ku(this,"firebaseui-id-email"))},O(nc.prototype,{i:Zl,D:Jl,S:tc,u:ec,ea:Ql,ba:$l,P:Xl});var ic=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function rc(){return ku(this,"firebaseui-id-email")}function oc(){return ku(this,"firebaseui-id-email-error")}function ac(t){var e=rc.call(this),n=oc.call(this);Eu(this,e,(function(){Du(n)&&(Su(e,!0),Tu(n))})),t&&Iu(this,e,(function(){t()}))}function sc(){return X(Hs(rc.call(this))||"")}function uc(){var t=rc.call(this),e=oc.call(this),n=Hs(t)||"";return n?ic.test(n)?(Su(t,!0),Tu(e),e=!0):(Su(t,!1),Ou(e,dn("That email address isn't correct").toString()),e=!1):(Su(t,!1),Ou(e,dn("Enter your email address to continue").toString()),e=!1),e?X(Hs(t)):null}function lc(t,e,n,i,r,o,a){sl.call(this,fl,{email:n,ia:!!o},a,"passwordSignIn",{G:i,F:r}),this.B=t,this.J=e}function cc(t,e,n,i,r,o){sl.call(this,t,e,i,r||"notice",o),this.i=n||null}function hc(t,e,n,i,r){cc.call(this,ml,{email:t,H:!!e},e,r,"passwordRecoveryEmailSent",{G:n,F:i})}function fc(t,e){cc.call(this,Nl,{H:!!t},t,e,"emailVerificationSuccess")}function dc(t,e){cc.call(this,Ml,{H:!!t},t,e,"emailVerificationFailure")}
1function pc(t,e,n){cc.call(this,Fl,{email:t,H:!!e},e,n,"verifyAndChangeEmailSuccess")}function mc(t,e){cc.call(this,Ll,{H:!!t},t,e,"verifyAndChangeEmailFailure")}function vc(t,e){cc.call(this,Bl,{H:!!t},t,e,"revertSecondFactorAdditionFailure")}function gc(t){cc.call(this,Gl,void 0,void 0,t,"signOut")}function yc(t,e){cc.call(this,Ol,{H:!!t},t,e,"passwordResetSuccess")}function _c(t,e){cc.call(this,Dl,{H:!!t},t,e,"passwordResetFailure")}function bc(t,e){cc.call(this,Rl,{H:!!t},t,e,"emailChangeRevokeFailure")}function wc(t,e,n){cc.call(this,Vl,{errorMessage:t,Ab:!!e},e,n,"recoverableError")}function kc(t,e){cc.call(this,Ul,{errorMessage:t},void 0,e,"unrecoverableError")}a(lc,sl),lc.prototype.v=function(){this.S(),this.ea(),this.ba(this.B,this.J),ll(this,this.l(),this.i()),cl(this,this.i(),this.B),Hs(this.l())?this.i().focus():this.l().focus(),sl.prototype.v.call(this)},lc.prototype.m=function(){this.J=this.B=null,sl.prototype.m.call(this)},O(lc.prototype,{l:rc,U:oc,S:ac,P:sc,j:uc,i:Zl,D:Jl,ea:tc,u:ec,ua:Ql,pa:$l,ba:Xl}),N(cc,sl),cc.prototype.v=function(){this.i&&(this.u(this.i),this.l().focus()),cc.M.v.call(this)},cc.prototype.m=function(){this.i=null,cc.M.m.call(this)},O(cc.prototype,{l:Ql,B:$l,u:Xl}),N(hc,cc),N(fc,cc),N(dc,cc),N(pc,cc),N(mc,cc),N(vc,cc),N(gc,cc),N(yc,cc),N(_c,cc),N(bc,cc),N(wc,cc),N(kc,cc);var Cc=!1,xc=null;function Sc(t,e){Cc=!!e,xc||("undefined"==typeof accountchooser&&function(){var t=window.navigator&&window.navigator.userAgent;if(t){var e;if(e=t.match(As)){var n=new Fs(e[3]||e[1]);return!(0<=t.indexOf("Opera Mini"))&&(0<=t.indexOf("Opera Mobi")?0<=t.indexOf("Android")&&Ls(n,"10.1"):Ls(n,"8.0"))}if(e=t.match(Is))return Ls(new Fs(e[1]),"2.0");if(e=t.match(Ts))return Ls(new Fs(e[1]),"6.0");if(e=t.match(Os))return n=new Fs(e[6]),t=e[3]&&new Fs(e[3]),e=e[5]&&new Fs(e[5],"_"),(!(!t||!Ls(t,"6.0"))||!(!e||!Ls(e,"10.5.6")))&&Ls(n,"3.0");if(e=t.match(Ps))return Ls(new Fs(e[1]),"3.0");if(e=t.match(Rs))return Ls(new Fs(e[1],"_"),"4.0");if(e=t.match(Ns))return Ls(new Fs(e[1]),"4.7");if(e=t.match(Ms))return n=new Fs(e[1]),t=new Fs(e[2]),Ls(n,"7.0")&&Ls(t,"7.0");if(e=t.match(Es))return n=new Fs(e[1]),t=new Fs(e[2]),Ls(n,"7.0")&&Ls(t,"6.0");if(t.match(Ds))return!1}return!0}()?(e=Ce(ge(new ve(_e,"//www.gstatic.com/accountchooser/client.js"))),xc=Ki(br(e)).ta((function(){}))):xc=Ki()),xc.then(t,t)}function Ec(t,e){(t=rs(t=lf(t)).accountChooserInvoked||null)?t(e):e()}function Ic(t,e,n){(t=rs(t=lf(t)).accountChooserResult||null)?t(e,n):n()}function Ac(t,e,n,i){function r(){var e=t();e&&(e=ts(lf(e)))&&e()}!function(t,e,n,i){ws||(t={callbacks:{empty:t,select:function(t,i){t&&t.account&&e?e(eo(t.account)):n&&n(!ks(i))},store:t,update:t},language:"en",providers:void 0,ui:i},"undefined"!=typeof accountchooser&&accountchooser.Api&&accountchooser.Api.init?ws=accountchooser.Api.init(t):(ws=new xs(t),function(){var t=ws;k(t.a.callbacks.empty)&&t.a.callbacks.empty()}()))}((function(){var o=t();o&&function(t,e,n,i,r){i?(bs("callback",t,e),Cc&&n()):Ec(t,(function(){pa(new lo(t.a.tenantId||null),Zh(t)),Cs((function(i){ra(Xo,Zh(t)),Ic(t,i?"empty":"unavailable",(function(){bs("signIn",t,e),(i||Cc)&&n()}))}),la(Zh(t)),r)}))}(o,e,r,n,i)}),(function(n){var i=t();i&&function(t,e,n,i){function r(t){t=Pc(t),Fc(e,n,void 0,t),i()}Ic(e,"accountSelected",(function(){ua(!1,Zh(e));var o=Nc(e);af(e,$h(e).fetchSignInMethodsForEmail(t.a).then((function(r){jc(e,n,r,t.a,t.h||void 0,void 0,o),i()}),r))}))}(n,i,e,r)}),(function(n){var i=t();i&&function(t,e,n,i){Ic(e,t?"addAccount":"unavailable",(function(){bs("signIn",e,n),(t||Cc)&&i()}))}(n,i,e,r)}),t()&&function(t){return t.a.get("acUiConfig")||null}(lf(t())))}function Tc(t,e,n,i){function r(n){if(!n.name||"cancel"!=n.name){t:{var i=n.message;try{var r=((JSON.parse(i).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(r&&r.length){var o=!0;break t}}catch(a){}o=!1}if(o)n=ul(e),e.o(),Fc(t,n,void 0,dn("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=Pc(n)}e.a(o)}}}if(sf(t),i)return Oc(t,n),Ki();if(!n.credential)throw Error("No credential found!");if(!(i=$h(t).currentUser||n.user))throw Error("User not logged in.");i=new to(i.email,i.displayName,i.photoURL,"password"==n.credential.providerId?null:n.credential.providerId),null!=ia(Jo,Zh(t))&&!ia(Jo,Zh(t))||function(t,e){var n=la(e),i=z(n,(function(e){return e.a==t.a&&(e.f||null)==(t.f||null)}));-1<i&&G(n,i),n.unshift(t),oa(ta,U(n,(function(t){return t.aa()})),e)}(i,Zh(t)),ra(Jo,Zh(t));try{var o=function(t,e){return cf(t),rf(t,(function(n){if(t.j&&!t.j.isAnonymous&&ja(lf(t))&&!$h(t).currentUser)return ff(t).then((function(){return"password"==e.credential.providerId&&(e.credential=null),e}));if(n)return ff(t).then((function(){return n.linkWithCredential(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 df(t,n,e.credential)}));if(!e.user)throw Error('Internal error: An incompatible or outdated version of "firebase.js" may be used.');return ff(t).then((function(){return Xh(t).updateCurrentUser(e.user)})).then((function(){return e.user=Xh(t).currentUser,e.operationType="signIn",e.credential&&e.credential.providerId&&"password"==e.credential.providerId&&(e.credential=null),e}))}))}(t,n)}catch(a){return Qr(a.code||a.message,a),e.a(a.code||a.message),Ki()}return n=o.then((function(e){Oc(t,e)}),r).then(void 0,r),af(t,o),Ki(n)}function Oc(t,e){if(!e.user)throw Error("No user found");var n=ns(lf(t));if(es(lf(t))&&n&&Jr("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),n){n=ns(lf(t));var i=aa(Zh(t))||void 0;ra(Zo,Zh(t));var r=!1;ar()?(n&&!n(e,i)||(r=!0,window.opener.location.assign(Se(Ae(Dc(t,i))))),n||window.close()):n&&!n(e,i)||(r=!0,or(Dc(t,i))),r||t.reset()}else{n=e.user,e=e.credential,i=es(lf(t)),r=aa(Zh(t))||void 0,ra(Zo,Zh(t));var o=!1;ar()?(i&&!i(n,e,r)||(o=!0,window.opener.location.assign(Se(Ae(Dc(t,r)))
1)),i||window.close()):i&&!i(n,e,r)||(o=!0,or(Dc(t,r))),o||t.reset()}}function Dc(t,e){if(!(t=e||lf(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 Pc(t){var e={code:t.code},n="";switch((e=e||{}).code){case"auth/email-already-in-use":n+="The email address is already used by another account";break;case"auth/requires-recent-login":n+=Fn();break;case"auth/too-many-requests":n+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":n+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":n+="That email address doesn't match an existing account";break;case"auth/user-token-expired":n+=Fn();break;case"auth/weak-password":n+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":n+="The email and password you entered don't match";break;case"auth/network-request-failed":n+="A network error has occurred";break;case"auth/invalid-phone-number":n+=Dn();break;case"auth/invalid-verification-code":n+=dn("Wrong code. Try again.");break;case"auth/code-expired":n+="This code is no longer valid";break;case"auth/expired-action-code":n+="This code has expired.";break;case"auth/invalid-action-code":n+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(e=dn(n).toString())return e;try{return JSON.parse(t.message),Qr("Internal error: "+t.message,void 0),Rn().toString()}catch(i){return t.message}}function Rc(t,e,n,i){function r(){pa(new lo(t.a.tenantId||null),Zh(t)),af(t,e.K(A(t.cc,t),[u],(function(){if("file:"===(window.location&&window.location.protocol))return af(t,Gh(t).then((function(n){e.o(),ra(Xo,Zh(t)),bs("callback",t,s,Ki(n))}),o))}),a))}function o(n){if(ra(Xo,Zh(t)),!n.name||"cancel"!=n.name)switch(n.code){case"auth/popup-blocked":r();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.a(Pc(n));break;default:e.o(),bs("callback",t,s,Yi(n))}}function a(n){ra(Xo,Zh(t)),n.name&&"cancel"==n.name||(Qr("signInWithRedirect: "+n.code,void 0),n=Pc(n),"blank"==e.Ea&&Za(lf(t))?(e.o(),bs("providerSignIn",t,s,n)):e.a(n))}var s=ul(e),u=function(t,e,n){var i=Na[e]&&Xg.auth[Na[e]]?new Xg.auth[Na[e]]:0==e.indexOf("saml.")?new Xg.auth.SAMLAuthProvider(e):new Xg.auth.OAuthProvider(e);if(!i)throw Error("Invalid Firebase Auth provider!");var r=qa(lf(t),e);if(i.addScope)for(var o=0;o<r.length;o++)i.addScope(r[o]);return r=Wa(lf(t),e)||{},n&&(t=e==Xg.auth.GoogleAuthProvider.PROVIDER_ID?"login_hint":e==Xg.auth.GithubAuthProvider.PROVIDER_ID?"login":(t=Ha(lf(t),e))&&t.Nb)&&(r[t]=n),i.setCustomParameters&&i.setCustomParameters(r),i}(t,n,i);Ja(lf(t))==ps?r():af(t,function(t,e){return cf(t),rf(t,(function(n){return n&&!ca(Zh(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 df(t,e)})):$h(t).signInWithPopup(e)}))}(t,u).then((function(n){e.o(),bs("callback",t,s,Ki(n))}),o))}function Nc(t){return 1==(t=Ua(lf(t))).length&&t[0]==Xg.auth.EmailAuthProvider.PROVIDER_ID}function Mc(t){return 1==(t=Ua(lf(t))).length&&t[0]==Xg.auth.PhoneAuthProvider.PROVIDER_ID}function Fc(t,e,n,i){Nc(t)?i?bs("signIn",t,e,n,i):Vc(t,e,n):t&&Mc(t)&&!i?bs("phoneSignInStart",t,e):t&&Za(lf(t))&&!i?bs("federatedRedirect",t,e,n):bs("providerSignIn",t,e,i,n)}function Lc(t,e,n,i){var r=ul(e);af(t,e.K(A($h(t).fetchSignInMethodsForEmail,$h(t)),[n],(function(o){ua(os(lf(t))==cs,Zh(t)),e.o(),jc(t,r,o,n,void 0,i)}),(function(t){t=Pc(t),e.a(t)})))}function jc(t,e,n,i,r,o,a){n.length||Xa(lf(t))?!n.length&&Xa(lf(t))?bs("sendEmailLinkForSignIn",t,e,i,(function(){bs("signIn",t,e)})):q(n,Xg.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?bs("passwordSignIn",t,e,i,a):1==n.length&&n[0]===Xg.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?bs("sendEmailLinkForSignIn",t,e,i,(function(){bs("signIn",t,e)})):(n=Pa(n,Ua(lf(t))))?(fa(new so(i),Zh(t)),bs("federatedSignIn",t,e,i,n,o)):bs("unsupportedProvider",t,e,i):bs("passwordSignUp",t,e,i,r,void 0,a)}function Bc(t,e,n,i,r,o){var a=ul(e);af(t,e.K(A(t.Hb,t),[n,o],(function(){e.o(),bs("emailLinkSignInSent",t,a,n,i,o)}),r))}function Vc(t,e,n){os(lf(t))==cs?Sc((function(){ws?Ec(t,(function(){pa(new lo(t.a.tenantId||null),Zh(t)),Cs((function(i){ra(Xo,Zh(t)),Ic(t,i?"empty":"unavailable",(function(){n?bs("prefilledEmailSignIn",t,e,n):bs("sign
1In",t,e)}))}),la(Zh(t)),Fa(lf(t)))})):(cf(t),Ac(Qh,e,!1,Fa(lf(t))))}),!1):(Cc=!1,Ec(t,(function(){Ic(t,"unavailable",(function(){n?bs("prefilledEmailSignIn",t,e,n):bs("signIn",t,e)}))})))}function Uc(){return bt(lr(),"oobCode")}function Hc(){var t=bt(lr(),"continueUrl");return t?function(){or(t)}:null}function zc(t,e){sl.call(this,Cl,void 0,e,"anonymousUserMismatch"),this.i=t}function qc(t){sl.call(this,vl,void 0,t,"callback")}function Wc(t,e,n){if(n.user){var i={user:n.user,credential:n.credential,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},r=ca(Zh(t)),o=r&&r.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 i=ul(e);af(t,ff(t).then((function(){e.o(),bs("emailMismatch",t,i,n)}),(function(t){t.name&&"cancel"==t.name||(t=Pc(t.code),e.a(t))})))}(t,e,i);else{var a=r&&r.a;a?af(t,n.user.linkWithCredential(a).then((function(n){Gc(t,e,i={user:n.user,credential:a,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})}),(function(n){Kc(t,e,n)}))):Gc(t,e,i)}}else n=ul(e),e.o(),ha(Zh(t)),Fc(t,n)}function Gc(t,e,n){ha(Zh(t)),Tc(t,e,n)}function Kc(t,e,n){var i=ul(e);ha(Zh(t)),n=Pc(n),e.o(),Fc(t,i,void 0,n)}function Yc(t,e,n,i){var r=ul(e);af(t,$h(t).fetchSignInMethodsForEmail(n).then((function(o){e.o(),o.length?q(o,Xg.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?bs("passwordLinking",t,r,n):1==o.length&&o[0]===Xg.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?bs("emailLinkSignInLinking",t,r,n):(o=Pa(o,Ua(lf(t))))?bs("federatedLinking",t,r,n,o,i):(ha(Zh(t)),bs("unsupportedProvider",t,r,n)):(ha(Zh(t)),bs("passwordRecovery",t,r,n,!1,Nn().toString()))}),(function(n){Kc(t,e,n)})))}function Qc(t,e){sl.call(this,kl,void 0,e,"differentDeviceError"),this.i=t}function $c(t,e,n,i){sl.call(this,Pl,{email:t,H:!!n},i,"emailChangeRevoke"),this.l=e,this.i=n||null}function Xc(){return ku(this,"firebaseui-id-new-password")}function Zc(){return ku(this,"firebaseui-id-password-toggle")}function Jc(){this.Sa=!this.Sa;var t=Zc.call(this),e=Xc.call(this);this.Sa?(e.type="text",Vs(t,"firebaseui-input-toggle-off"),Us(t,"firebaseui-input-toggle-on")):(e.type="password",Vs(t,"firebaseui-input-toggle-on"),Us(t,"firebaseui-input-toggle-off")),e.focus()}function th(){return ku(this,"firebaseui-id-new-password-error")}function eh(){this.Sa=!1;var t=Xc.call(this);t.type="password";var e=th.call(this);Eu(this,t,(function(){Du(e)&&(Su(t,!0),Tu(e))}));var n=Zc.call(this);Vs(n,"firebaseui-input-toggle-on"),Us(n,"firebaseui-input-toggle-off"),function(t,e,n){Hn(t,T(zn,e=new Xs(e))),nu(Cu(t),e,"focusin",n)}(this,t,(function(){Vs(n,"firebaseui-input-toggle-focus"),Us(n,"firebaseui-input-toggle-blur")})),function(t,e,n){Hn(t,T(zn,e=new Xs(e))),nu(Cu(t),e,"focusout",n)}(this,t,(function(){Vs(n,"firebaseui-input-toggle-blur"),Us(n,"firebaseui-input-toggle-focus")})),Au(this,n,A(Jc,this))}function nh(){var t=Xc.call(this),e=th.call(this);return Hs(t)?(Su(t,!0),Tu(e),e=!0):(Su(t,!1),Ou(e,dn("Enter your password").toString()),e=!1),e?Hs(t):null}function ih(t,e,n){sl.call(this,Tl,{email:t},n,"passwordReset"),this.l=e}function rh(t,e,n,i,r){sl.call(this,jl,{factorId:t,phoneNumber:n||null,H:!!i},r,"revertSecondFactorAdditionSuccess"),this.l=e,this.i=i||null}function oh(t,e,n,i){"auth/weak-password"==(i&&i.code)?(t=Pc(i),Su(n.i(),!1),Ou(n.B(),t),n.i().focus()):(n&&n.o(),(n=new _c).render(e),Kh(t,n))}function ah(t,e){try{var n="number"==typeof t.selectionStart}catch(i){n=!1}n?(t.selectionStart=e,t.selectionEnd=e):ee&&!pe("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 sh(t,e,n,i,r,o){sl.call(this,wl,{email:n},o,"emailLinkSignInConfirmation",{G:i,F:r}),this.l=t,this.u=e}function uh(t,e,n,i,r){sl.call(this,El,{ga:t},r,"emailLinkSignInLinkingDifferentDevice",{G:n,F:i}),this.i=e}function lh(t){sl.call(this,yl,void 0,t,"blank")}function ch(t,e,n,i,r){var o=new lh,a=new Ht(n),s=a.a.a.get(Gt.ab)||"",u=a.a.a.get(Gt.Ta)||"",l="1"===a.a.a.get(Gt.Ra),c=zt(a),h=a.a.a.get(Gt.PROVIDER_ID)||null;a=a.a.a.get(Gt.xb)||null,uf(t,a);var f=!ia(ea,Zh(t)),d=i||function(t,e){var n=null;if(e=ia(ea,e))try{var i=Po(t,e),r=JSON.parse(i);n=r&&r.email||null}catch(o){}return n}(u,Zh(t)),p=(i=function(t,e){var n=null;if(e=ia(na,e))try{var i=Po(t,e);n=JSON.parse(i)}catch(r){}return uo(n||null)}(u,Zh(t)))&&i.a;h&&p&&p.providerId!==h&&(p=null),o.render(e),Kh(t,o),af(t,o.K((function(){var e=Ki(null);e=c&&f||f&&l?Yi(Error("anonymous-user-not-found")):function(t,e){var n=zt(ne
1w Ht(e));return n?(e=new Vi((function(e,i){var r=Xh(t).onAuthStateChanged((function(t){r(),t&&t.isAnonymous&&t.uid===n?e(t):i(t&&t.isAnonymous&&t.uid!==n?Error("anonymous-user-mismatch"):Error("anonymous-user-not-found"))}));af(t,r)})),af(t,e),e):Ki(null)}(t,n).then((function(t){if(h&&!p)throw Error("pending-credential-not-found");return t}));var i=null;return e.then((function(e){return i=e,r?null:$h(t).checkActionCode(s)})).then((function(){return i}))}),[],(function(i){d?function(t,e,n,i,r,o){var a=ul(e);e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",dn("Signing in...").toString());var s=null;r=(o?function(t,e,n,i,r){cf(t);var o=r||null,a=Xg.auth.EmailAuthProvider.credentialWithLink(n,i);return n=o?$h(t).signInWithEmailLink(n,i).then((function(t){return t.user.linkWithCredential(o)})).then((function(){return ff(t)})).then((function(){return df(t,{code:"auth/email-already-in-use"},o)})):$h(t).fetchSignInMethodsForEmail(n).then((function(n){return n.length?df(t,{code:"auth/email-already-in-use"},a):e.linkWithCredential(a)})),af(t,n),n}(t,o,n,i,r):function(t,e,n,i){cf(t);var r,o=i||null;return e=$h(t).signInWithEmailLink(e,n).then((function(t){if(r={user:t.user,credential:null,operationType:t.operationType,additionalUserInfo:t.additionalUserInfo},o)return t.user.linkWithCredential(o).then((function(t){r={user:t.user,credential:o,operationType:r.operationType,additionalUserInfo:t.additionalUserInfo}}))})).then((function(){ff(t)})).then((function(){return Xh(t).updateCurrentUser(r.user)})).then((function(){return r.user=Xh(t).currentUser,r})),af(t,e),e}(t,n,i,r)).then((function(n){ra(na,Zh(t)),ra(ea,Zh(t)),e.h(),e.Z("firebaseui-icon-done",dn("Signed in!").toString()),s=setTimeout((function(){e.h(),Tc(t,e,n,!0)}),1e3),af(t,(function(){e&&(e.h(),e.o()),clearTimeout(s)}))}),(function(r){if(e.h(),e.o(),!r.name||"cancel"!=r.name){var o=Pc(r);"auth/email-already-in-use"==r.code||"auth/credential-already-in-use"==r.code?(ra(na,Zh(t)),ra(ea,Zh(t))):"auth/invalid-email"==r.code?(o=dn("The email provided does not match the current sign-in session.").toString(),bs("emailLinkConfirmation",t,a,i,hh,null,o)):Fc(t,a,n,o)}})),af(t,r)}(t,o,d,n,p,i):l?(o.o(),bs("differentDeviceError",t,e)):(o.o(),bs("emailLinkConfirmation",t,e,n,hh))}),(function(i){var r=void 0;if(!i||!i.name||"cancel"!=i.name)switch(o.o(),i&&i.message){case"anonymous-user-not-found":bs("differentDeviceError",t,e);break;case"anonymous-user-mismatch":bs("anonymousUserMismatch",t,e);break;case"pending-credential-not-found":bs("emailLinkNewDeviceLinking",t,e,n,fh);break;default:i&&(r=Pc(i)),Fc(t,e,void 0,r)}})))}function hh(t,e,n,i){ch(t,e,i,n,!0)}function fh(t,e,n){ch(t,e,n)}function dh(t,e,n,i,r,o){sl.call(this,Sl,{email:t,ga:e},o,"emailLinkSignInLinking",{G:i,F:r}),this.i=n}function ph(t,e,n,i,r,o){sl.call(this,_l,{email:t},o,"emailLinkSignInSent",{G:i,F:r}),this.u=e,this.i=n}function mh(t,e,n,i,r,o,a){sl.call(this,Hl,{ic:t,Pb:e},a,"emailMismatch",{G:r,F:o}),this.l=n,this.i=i}function vh(t,e,n,i,r){sl.call(this,bl,void 0,r,"emailNotReceived",{G:n,F:i}),this.l=t,this.i=e}function gh(t,e,n,i,r,o){sl.call(this,Il,{email:t,ga:e},o,"federatedLinking",{G:i,F:r}),this.i=n}function yh(t,e,n,i,r,o){sl.call(this,pl,{email:n,Ua:!!e},o,"passwordRecovery",{G:i,F:r}),this.l=t,this.u=e}function _h(){return ku(this,"firebaseui-id-name")}function bh(){return ku(this,"firebaseui-id-name-error")}function wh(t,e,n,i,r,o,a,s,u){sl.call(this,dl,{email:i,Sb:t,name:r,Ua:!!n,ia:!!s},u,"passwordSignUp",{G:o,F:a}),this.B=e,this.J=n,this.D=t}function kh(){return ku(this,"firebaseui-id-phone-confirmation-code")}function Ch(){return ku(this,"firebaseui-id-phone-confirmation-code-error")}function xh(){return ku(this,"firebaseui-id-resend-countdown")}function Sh(t,e,n,i,r,o,a,s,u){sl.call(this,Wl,{phoneNumber:r},u,"phoneSignInFinish",{G:a,F:s}),this.kb=o,this.i=new Zs(1e3),this.D=o,this.S=t,this.l=e,this.J=n,this.P=i}a(zc,sl),zc.prototype.v=function(){var t=this;Au(this,this.l(),(function(){t.i()})),this.l().focus(),sl.prototype.v.call(this)},zc.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(zc.prototype,{l:$l}),_s.anonymousUserMismatch=function(t,e){var n=new zc((function(){n.o(),Fc(t,e)}));n.render(e),Kh(t,n)},a(qc,sl),qc.prototype.K=function(t,e,n,i){return t.apply(null,e).then(n,i)},_s.callback=function(t,e,n){var i=new qc;i.render(e),Kh(t,i),e=n||Gh(t),af(t,e.then((function(e){Wc(t,i,e)}),(function(e){if(e&&("auth/account-exists-with-different-credential"==e.code||"auth/email-already-in-use"==e.code)&&e.email&&e.credential)fa(new so(e.email,e.credential),Zh(t)),Yc(t,i,e.email);else if(e&&"auth/user-cancelled"==e.code){var n=ca(Zh(t)),r=Pc(e);n&&n.a?Yc(t,i,n.f,r):n?Lc(t,i,n.f,r):Kc(t,i,e)}else e&&"auth/credential-already-in-use"==e.code||(e&&"auth/operation-not-supported-in-this-environment"==e.code&&Nc(t)?Wc(t,i,{user:null,credential:null}):Kc(t,i,e))})))},a(Qc,sl),Qc.prototype.v=function(){var t=this;Au(this,this.l(),(function(){t.i()})),this.l().focus(),sl.prototype.v.call(this)},Qc.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(Qc.prototype,{l:$l}),_s.differentDeviceError=function(t,e){var n=new Qc((function(){n.o(),Fc(t,e)}));n.render(e),Kh(t,n)},a($c,sl),$c.prototype.v=function(){var t=this;Au(this,ku(this,"firebaseui-id-reset-password-link"),(function(){t.l()}
1)),this.i&&(this.B(this.i),this.u().focus()),sl.prototype.v.call(this)},$c.prototype.m=function(){this.l=this.i=null,sl.prototype.m.call(this)},O($c.prototype,{u:Ql,D:$l,B:Xl}),a(ih,sl),ih.prototype.v=function(){this.J(),this.D(this.l),cl(this,this.i(),this.l),this.i().focus(),sl.prototype.v.call(this)},ih.prototype.m=function(){this.l=null,sl.prototype.m.call(this)},O(ih.prototype,{i:Xc,B:th,P:Zc,J:eh,u:nh,U:Ql,S:$l,D:Xl}),a(rh,sl),rh.prototype.v=function(){var t=this;Au(this,ku(this,"firebaseui-id-reset-password-link"),(function(){t.l()})),this.i&&(this.B(this.i),this.u().focus()),sl.prototype.v.call(this)},rh.prototype.m=function(){this.l=this.i=null,sl.prototype.m.call(this)},O(rh.prototype,{u:Ql,D:$l,B:Xl}),_s.passwordReset=function(t,e,n,i){af(t,$h(t).verifyPasswordResetCode(n).then((function(r){var o=new ih(r,(function(){!function(t,e,n,i,r){var o=n.u();o&&af(t,n.K(A($h(t).confirmPasswordReset,$h(t)),[i,o],(function(){n.o();var i=new yc(r);i.render(e),Kh(t,i)}),(function(i){oh(t,e,n,i)})))}(t,e,o,n,i)}));o.render(e),Kh(t,o)}),(function(){oh(t,e)})))},_s.emailChangeRevocation=function(t,e,n){var i=null;af(t,$h(t).checkActionCode(n).then((function(e){return i=e.data.email,$h(t).applyActionCode(n)})).then((function(){!function(t,e,n){var i=new $c(n,(function(){af(t,i.K(A($h(t).sendPasswordResetEmail,$h(t)),[n],(function(){i.o(),(i=new hc(n,void 0,Ya(lf(t)),Qa(lf(t)))).render(e),Kh(t,i)}),(function(){i.a(Pn().toString())})))}));i.render(e),Kh(t,i)}(t,e,i)}),(function(){var n=new bc;n.render(e),Kh(t,n)})))},_s.emailVerification=function(t,e,n,i){af(t,$h(t).applyActionCode(n).then((function(){var n=new fc(i);n.render(e),Kh(t,n)}),(function(){var n=new dc;n.render(e),Kh(t,n)})))},_s.revertSecondFactorAddition=function(t,e,n){var i=null,r=null;af(t,$h(t).checkActionCode(n).then((function(e){return i=e.data.email,r=e.data.multiFactorInfo,$h(t).applyActionCode(n)})).then((function(){!function(t,e,n,i){var r=new rh(i.factorId,(function(){r.K(A($h(t).sendPasswordResetEmail,$h(t)),[n],(function(){r.o(),(r=new hc(n,void 0,Ya(lf(t)),Qa(lf(t)))).render(e),Kh(t,r)}),(function(){r.a(Pn().toString())}))}),i.phoneNumber);r.render(e),Kh(t,r)}(t,e,i,r)}),(function(){var n=new vc;n.render(e),Kh(t,n)})))},_s.verifyAndChangeEmail=function(t,e,n,i){var r=null;af(t,$h(t).checkActionCode(n).then((function(e){return r=e.data.email,$h(t).applyActionCode(n)})).then((function(){var n=new pc(r,i);n.render(e),Kh(t,n)}),(function(){var n=new mc;n.render(e),Kh(t,n)})))},a(sh,sl),sh.prototype.v=function(){this.B(this.l),this.D(this.l,this.u),this.i().focus(),ah(this.i(),(this.i().value||"").length),sl.prototype.v.call(this)},sh.prototype.m=function(){this.u=this.l=null,sl.prototype.m.call(this)},O(sh.prototype,{i:rc,P:oc,B:ac,J:sc,j:uc,U:Ql,S:$l,D:Xl}),_s.emailLinkConfirmation=function(t,e,n,i,r,o){var a=new sh((function(){var r=a.j();r?(a.o(),i(t,e,r,n)):a.i().focus()}),(function(){a.o(),Fc(t,e,r||void 0)}),r||void 0,Ya(lf(t)),Qa(lf(t)));a.render(e),Kh(t,a),o&&a.a(o)},a(uh,sl),uh.prototype.v=function(){this.u(this.i),this.l().focus(),sl.prototype.v.call(this)},uh.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(uh.prototype,{l:Ql,u:Xl}),_s.emailLinkNewDeviceLinking=function(t,e,n,i){var r=new Ht(n);if(n=r.a.a.get(Gt.PROVIDER_ID)||null,qt(r,null),n){var o=new uh(Ha(lf(t),n),(function(){o.o(),i(t,e,r.toString())}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o)}else Fc(t,e)},a(lh,sl),_s.emailLinkSignInCallback=ch,a(dh,sl),dh.prototype.v=function(){this.u(this.i),this.l().focus(),sl.prototype.v.call(this)},dh.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(dh.prototype,{l:Ql,u:Xl}),_s.emailLinkSignInLinking=function(t,e,n){var i=ca(Zh(t));if(ha(Zh(t)),i){var r=i.a.providerId,o=new dh(n,Ha(lf(t),r),(function(){!function(t,e,n,i){var r=ul(e);Bc(t,e,n,(function(){Fc(t,r,n)}),(function(i){if(!i.name||"cancel"!=i.name){var o=Pc(i);i&&"auth/network-request-failed"==i.code?e.a(o):(e.o(),Fc(t,r,n,o))}}),i)}(t,o,n,i)}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o)}else Fc(t,e)},a(ph,sl),ph.prototype.v=function(){var t=this;Au(this,this.l(),(function(){t.i()})),Au(this,ku(this,"firebaseui-id-trouble-getting-email-link"),(function(){t.u()})),this.l().focus(),sl.prototype.v.call(this)},ph.prototype.m=function(){this.i=this.u=null,sl.prototype.m.call(this)},O(ph.prototype,{l:$l}),_s.emailLinkSignInSent=function(t,e,n,i,r){var o=new ph(n,(function(){o.o(),bs("emailN
1otReceived",t,e,n,i,r)}),(function(){o.o(),i()}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o)},a(mh,sl),mh.prototype.v=function(){this.B(this.l,this.i),this.u().focus(),sl.prototype.v.call(this)},mh.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(mh.prototype,{u:Ql,D:$l,B:Xl}),_s.emailMismatch=function(t,e,n){var i=ca(Zh(t));if(i){var r=new mh(n.user.email,i.f,(function(){var e=r;ha(Zh(t)),Tc(t,e,n)}),(function(){var e=n.credential.providerId,o=ul(r);r.o(),bs(i.a?"federatedLinking":"federatedSignIn",t,o,i.f,e)}),Ya(lf(t)),Qa(lf(t)));r.render(e),Kh(t,r)}else Fc(t,e)},a(vh,sl),vh.prototype.v=function(){var t=this;Au(this,this.u(),(function(){t.i()})),Au(this,this.Ba(),(function(){t.l()})),this.u().focus(),sl.prototype.v.call(this)},vh.prototype.Ba=function(){return ku(this,"firebaseui-id-resend-email-link")},vh.prototype.m=function(){this.i=this.l=null,sl.prototype.m.call(this)},O(vh.prototype,{u:$l}),_s.emailNotReceived=function(t,e,n,i,r){var o=new vh((function(){Bc(t,o,n,i,(function(t){t=Pc(t),o.a(t)}),r)}),(function(){o.o(),Fc(t,e,n)}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o)},a(gh,sl),gh.prototype.v=function(){this.u(this.i),this.l().focus(),sl.prototype.v.call(this)},gh.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(gh.prototype,{l:Ql,u:Xl}),_s.federatedLinking=function(t,e,n,i,r){var o=ca(Zh(t));if(o&&o.a){var a=new gh(n,Ha(lf(t),i),(function(){Rc(t,a,i,n)}),Ya(lf(t)),Qa(lf(t)));a.render(e),Kh(t,a),r&&a.a(r)}else Fc(t,e)},_s.federatedRedirect=function(t,e,n){var i=new lh;i.render(e),Kh(t,i),Rc(t,i,e=Ua(lf(t))[0],n)},_s.federatedSignIn=function(t,e,n,i,r){var o=new gh(n,Ha(lf(t),i),(function(){Rc(t,o,i,n)}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o),r&&o.a(r)},_s.passwordLinking=function(t,e,n){var i=ca(Zh(t));ha(Zh(t));var r=i&&i.a;if(r){var o=new nc(n,(function(){!function(t,e,n,i){var r=e.u();r?af(t,e.K(A(t.Wb,t),[n,r],(function(n){return n=n.user.linkWithCredential(i).then((function(n){return Tc(t,e,{user:n.user,credential:i,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})})),af(t,n),n}),(function(t){if(!t.name||"cancel"!=t.name)switch(t.code){case"auth/wrong-password":Su(e.i(),!1),Ou(e.D(),Pc(t));break;case"auth/too-many-requests":e.a(Pc(t));break;default:Qr("signInWithEmailAndPassword: "+t.message,void 0),e.a(Pc(t))}}))):e.i().focus()}(t,o,n,r)}),(function(){o.o(),bs("passwordRecovery",t,e,n)}),Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o)}else Fc(t,e)},a(yh,sl),yh.prototype.v=function(){this.D(),this.J(this.l,this.u),Hs(this.i())||this.i().focus(),cl(this,this.i(),this.l),sl.prototype.v.call(this)},yh.prototype.m=function(){this.u=this.l=null,sl.prototype.m.call(this)},O(yh.prototype,{i:rc,B:oc,D:ac,P:sc,j:uc,U:Ql,S:$l,J:Xl}),_s.passwordRecovery=function(t,e,n,i,r){var o=new yh((function(){!function(t,e){var n=e.j();if(n){var i=ul(e);af(t,e.K(A($h(t).sendPasswordResetEmail,$h(t)),[n],(function(){e.o();var r=new hc(n,(function(){r.o(),Fc(t,i)}),Ya(lf(t)),Qa(lf(t)));r.render(i),Kh(t,r)}),(function(t){Su(e.i(),!1),Ou(e.B(),Pc(t))})))}else e.i().focus()}(t,o)}),i?void 0:function(){o.o(),Fc(t,e)},n,Ya(lf(t)),Qa(lf(t)));o.render(e),Kh(t,o),r&&o.a(r)},_s.passwordSignIn=function(t,e,n,i){var r=new lc((function(){!function(t,e){var n=e.j(),i=e.u();if(n)if(i){var r=Xg.auth.EmailAuthProvider.credential(n,i);af(t,e.K(A(t.ac,t),[n,i],(function(n){return Tc(t,e,{user:n.user,credential:r,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":Su(e.l(),!1),Ou(e.U(),Pc(t));break;case"auth/too-many-requests":case"auth/wrong-password":Su(e.i(),!1),Ou(e.D(),Pc(t));break;default:Qr("verifyPassword: "+t.message,void 0),e.a(Pc(t))}})))}else e.i().focus();else e.l().focus()}(t,r)}),(function(){var n=r.P();r.o(),bs("passwordRecovery",t,e,n)}),n,Ya(lf(t)),Qa(lf(t)),i);r.render(e),Kh(t,r)},a(wh,sl),wh.prototype.v=function(){this.ea(),this.D&&this.Ja(),this.ua(),this.pa(this.B,this.J),this.D?(ll(this,this.i(),this.u()),ll(this,this.u(),this.l())):ll(this,this.i(),this.l()),this.B&&cl(this,this.l(),this.B),Hs(this.i())?this.D&&!Hs(this.u())?this.u().focus():this.l().focus():this.i().focus(),sl.prototype.v.call(this)},wh.prototype.m=function(){this.J=this.B=null,sl.prototype.m.call(this)},O(wh.prototype,{i:rc,U:oc,ea:ac,kb:sc,j:uc,u:_h,Ac:bh,Ja:function(){var t=_h.call(this),e=bh.call(this);Eu(this,t,(function(){Du(e)&&(Su(t,!0),Tu(e))}))},P:function(){var t=_h.call(this),e=bh.call(this),n=Hs(t);return Su(t,n=!/^[\s\xa0]*$/.test(null==n?"":String(n))),n?(Tu(e),e=!0):(Ou(e,dn("Enter your account name").toString()),e=!1),e?X(Hs(t)):null},l:Xc,ba:th,mb:Zc,ua:eh,S:nh,Mb:Ql,Lb:$l,pa:Xl}),_s.passwordSignUp=function(t,e,n,i,r,o){var a=new wh($a(lf(t)),(function(){!function(t,e){var n=$a(lf(t)),i=e.j(),r=null;n&&(r=e.P());var o=e.S();if(i){if(n){if(!r)return void e.u().focus();r=at(r)}if(o){var a=Xg.auth.EmailAuthProvider.credential(i,o);af(t,e.K(A(t.Xb,t),[i,o],(function(i){var o={user:i.user,credential:a,operationType:i.operationType,additionalUserInfo:i.additionalUserInfo};return n?(i=i.user.updateProfile({displayName:r}).then((function(){return Tc(t,e,o)})),af(t,i),i):Tc(t,e,o)}),(function(n){if(!n.name||"cancel"!=n.name){var r=Pc(n);switch(n.code){case"auth/email-already-in-use":return function(t,e,n,i){function r(){var t=Pc(i);Su(e.i(),!1),Ou(e.U(),t),e.i().focus()}var o=$h(t).fetchSignInMethodsForEmail(n).then((function(i){i.length?r():(i=ul(e),e.o(),bs("passwordRecovery",t,i,n,!1,Nn().toString()))}),(function(){r()}));return af(t,o),o}(t,e,i,n);case"auth/too-many-requests":r=dn("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":Su(e.l(),!1),Ou(e.ba(),r);break;default:Qr(n="setAccountInfo: "+No(n),void 0),e.a(r)}}})))}else e.l().focus()}else e.i().focus()}(t,a)}),r?void 0:function(){a.o(),Fc(t,e)},n,i,Ya(lf(t)),Qa(lf(t)),o);a.render(e),Kh(t,a)},a(Sh,sl),Sh.prototype.v=function(){var t=this;this.U(this.kb),ai(this.i,"tick",this.B,!1,this),this.i.start(),Au(this,ku(this,"firebaseui-id-change-phone-number-link"),(function(){t.S()})),Au(this,this.Ba(),(function(){t.P()})),this.Ja(this.l),this.ea(this.l,this.J),this.u().focus(),sl.prototype.v.call(this)},Sh.prototype.m=function(){this.P=this.J=this.l=this.S=null,Js(this.i),li(this.i,"tick",this.B),this.i=null,sl.prototype.m.call(this)},Sh.prototype.B=function(){--this.D,0<this.D?this.U(this.D):(Js(this.i),li(this.i,"tick",this.B),this.ua(),this.mb())},O(Sh.prototype,{u:kh,pa:Ch,Ja:function(t){var e=kh.call(this),n=Ch.call(this);Eu(this,e,(function(){Du(n)&&(Su(e,!0),Tu(n))})),t&&Iu(this,e,(function(){t()}))},ba:function(){var t=X(Hs(kh.call(this))||"");return/^\d{6}$/.test(t)?t:null},Eb:xh,U:function(t){Xe(xh.call(this),dn("Resend code in "+(9<t?"0:":"0:0")+t).toString())},ua:function(){Tu(this.Eb())},Ba:function(){return ku(this,"firebaseui-id-resend-link")},mb:function(){Ou(this.Ba())},Mb:Ql,Lb:$l,ea:Xl}),_s.phoneSignInFinish=function(t,e,n,i,r,o){var a=new Sh((function(){a.o(),bs("phoneSignInStart",t,e,n)}),(function(){!function(t,e,n,i){function r(t){e.u().focus(),Su(e.u(),!1),Ou(e.pa(),t)}var o=e.ba();o?(e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",dn("Verifying...").toString()),af(t,e.K(A(i.confirm,i),[o],(function(n){e.h(),e.Z("firebaseui-icon-done",dn("Verified!").toString());var i=setTimeout((function(){e.h(),e.o();var i={user:Xh(t).currentUser,credential:null,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo};Tc(t,e,i,!0)}),1e3);af(t,(function(){e&&e.h(),clearTimeout(i)}))}),(function(i){if(i.name&&"cancel"==i.name)e.h();else{var o=Pc(i);switch(i.code){case"auth/credential-already-in-use":e.h();break;case"auth/code-expired":i=ul(e),e.h(),e.o(),bs("phoneSignInStart",t,i,n,o);break;case"auth/missing-verification-code":case"auth/invalid-verification-code":e.h(),r(o);break;default:e.h(),e.a(o)}}})))):r(dn("Wrong code. Try again.").toString())}(t,a,n,r)}),(function(){a.o(),Fc(t,e)}),(function(){a.o(),bs("phoneSignInStart",t,e,n)}),Da(n),i,Ya(lf(t)),Qa(lf(t)));a.render(e),Kh(t,a),o&&a.a(o)};var Eh=!(ee||Qt("Safari")&&!($t()||Qt("Coast")||Qt("Opera")||Qt("Edge")||Qt("Firefox")||Qt("FxiOS")||Qt("Silk")||Qt("Android")));function Ih(t,e){return/-[a-z]/.test(e)?null:Eh&&t.dataset?!Qt("Android")||$t()||Qt("Firefox")||Qt("FxiOS")||Qt("Opera")||Qt("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 Ah(t,e,n){var i=this;t=an(Gu,{items:t},null,this.s),Ju.call(this,t,!0,!0),n&&(n=function(t,e){t=(t||document).getElementsByTagName("BUTTON");for(var n=0;n<t.length;n++)if(Ih(t[n],"listboxid")===e)return t[n];return null}(t,n))&&(n.focus(),function(t,e){var n=(e=e||Ye(document))||Ye(document),i=gu(t),r=gu(n);if(!ee||9<=Number(fe)){a=mu(n,"borderLeftWidth");var o=mu(n,"borderRightWidth");s=mu(n,"borderTopWidth"),u=mu(n,"borderBottomWidth"),o=new pu(parseFloat(s),parseFloat(o),parseFloat(u),parseFloat(a))}else{var a=_u(n,"borderLeft");o=_u(n,"borderRight");var s=_u(n,"borderTop"),u=_u(n,"borderBottom");o=new pu(s,o,u,a)}n==Ye(document)?(a=i.a-n.scrollLeft,i=i.f-n.scrollTop,!ee||10<=Number(fe)||(a+=o.left,i+=o.top)):(a=i.a-r.a-o.left,i=i.f-r.f-o.top),r=t.offsetWidth,o=t.offsetHeight,s=oe&&!r&&!o,t=d(r)&&!s||!t.getBoundingClientRect?new He(r,o):new He((t=vu(t)).right-t.left,t.bottom-t.top),r=n.clientHeight-t.height,o=n.scrollLeft,s=n.scrollTop,n=new Ue(o+=Math.min(a,Math.max(a-(n.clientWidth-t.width),0)),s+=Math.min(i,Math.max(i-r,0))),e.scrollLeft=n.a,e.scrollTop=n.f}(n,t)),Au(this,t,(function(t){(t=(t=Ze(t.target,"firebaseui-id-list-box-dialog-button"))&&Ih(t,"listboxid"))&&(tl.call(i),e(t))}))}function Th(){return ku(this,"firebaseui-id-phone-number")}function Oh(){return ku(this,"firebaseui-id-country-selector")}function Dh(){return ku(this,"firebaseui-id-phone-number-error")}function Ph(t,e){var n,i=t.a,r=Rh("1-US-0",i);if(!(n=e&&Rh(e,i)?e:r?"1-US-0":0<i.length?i[0].c:null))throw Error("No available default country");Fh.call(this,n,t)}function Rh(t,e){return!(!(t=Ca(t))||!q(e,t))}function Nh(t){return"firebaseui-flag-"+t.g}function Mh(t){var e=this;Ah.call(this,function(t){return U(t,(function(t){return{id:t.c,Ma:"firebaseui-flag "+Nh(t),label:t.name+" \u200e+"+t.b}}))}(t.a),(function(n){Fh.call(e,n,t,!0),e.N().focus()}),this.Aa)}function Fh(t,e,n){var i=Ca(t);i&&(n&&(e=ka(e,n=X(Hs(Th.call(this))||""))).length&&e[0].b!=i.b&&(n="+"+i.b+n.substr(e[0].b.length+1),zs(Th.call(this),n)
1),e=Ca(this.Aa),this.Aa=t,t=ku(this,"firebaseui-id-country-selector-flag"),e&&Us(t,Nh(e)),Vs(t,Nh(i)),Xe(ku(this,"firebaseui-id-country-selector-code"),"\u200e+"+i.b))}function Lh(t,e,n,i,r,o,a,s,u,l){sl.call(this,ql,{Fb:e,za:u||null,Wa:!!n,ia:!!o},l,"phoneSignInStart",{G:i,F:r}),this.J=s||null,this.P=e,this.l=t,this.B=n||null,this.pa=a||null}function jh(t,e,n,i){try{var r=e.U(us)}catch(o){return}r?as?(e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",dn("Verifying...").toString()),af(t,e.K(A(t.bc,t),[Da(r),n],(function(n){var i=ul(e);e.Z("firebaseui-icon-done",dn("Code sent!").toString());var o=setTimeout((function(){e.h(),e.o(),bs("phoneSignInFinish",t,i,r,15,n)}),1e3);af(t,(function(){e&&e.h(),clearTimeout(o)}))}),(function(t){if(e.h(),!t.name||"cancel"!=t.name){grecaptcha.reset(ls),as=null;var n=t&&t.message||"";if(t.code)switch(t.code){case"auth/too-many-requests":n=dn("This phone number has been used too many times").toString();break;case"auth/invalid-phone-number":case"auth/missing-phone-number":return e.N().focus(),void Ou(e.D(),Dn().toString());default:n=Pc(t)}e.a(n)}})))):ss?Ou(e.u(),dn("Solve the reCAPTCHA").toString()):!ss&&i&&e.i().click():(e.N().focus(),Ou(e.D(),Dn().toString()))}function Bh(t,e,n,i,r){sl.call(this,zl,{Rb:e},r,"providerSignIn",{G:n,F:i}),this.i=t}function Vh(t,e,n,i,r,o,a){sl.call(this,hl,{email:n,Wa:!!e,ia:!!o},a,"signIn",{G:i,F:r}),this.i=t,this.u=e}function Uh(t,e,n,i,r,o){sl.call(this,Al,{email:t},o,"unsupportedProvider",{G:i,F:r}),this.l=e,this.i=n}function Hh(t,e){this.Z=!1;var n=Wh(e);if(qh[n])throw Error('An AuthUI instance already exists for the key "'+n+'"');qh[n]=this,this.f=t,this.u=null,this.X=!1,zh(this.f),this.a=Xg.initializeApp({apiKey:t.app.options.apiKey,authDomain:t.app.options.authDomain},t.app.name+"-firebaseui-temp").auth(),zh(this.a),this.a.setPersistence&&this.a.setPersistence(Xg.auth.Auth.Persistence.SESSION),this.oa=e,this.ca=new Ma,this.h=this.O=this.i=this.I=this.N=null,this.s=[],this.Y=!1,this.l=Er.Ya(),this.j=this.C=null,this.da=this.w=!1}function zh(t){t&&t.INTERNAL&&t.INTERNAL.logFramework&&t.INTERNAL.logFramework("FirebaseUI-web")}a(Lh,sl),Lh.prototype.v=function(){this.ea(this.pa,this.J),this.S(this.l,this.B||void 0),this.P||ll(this,this.N(),this.i()),cl(this,this.i(),this.l),this.N().focus(),ah(this.N(),(this.N().value||"").length),sl.prototype.v.call(this)},Lh.prototype.m=function(){this.B=this.l=null,sl.prototype.m.call(this)},O(Lh.prototype,{Db:el,N:Th,D:Dh,ea:function(t,e,n){var i=this,r=Th.call(this),o=Oh.call(this),a=Dh.call(this),s=t||Aa,u=s.a;if(0==u.length)throw Error("No available countries provided.");Ph.call(i,s,e),Au(this,o,(function(){Mh.call(i,s)})),Eu(this,r,(function(){Du(a)&&(Su(r,!0),Tu(a));var t=X(Hs(r)||""),e=Ca(this.Aa),n=ka(s,t);t=Rh("1-US-0",u),n.length&&n[0].b!=e.b&&Fh.call(i,"1"==(e=n[0]).b&&t?"1-US-0":e.c,s)})),n&&Iu(this,r,(function(){n()}))},U:function(t){var e=X(Hs(Th.call(this))||""),n=(t=t||Aa).a,i=ka(Aa,e);if(i.length&&!q(n,i[0]))throw zs(Th.call(this)),Th.call(this).focus(),Ou(Dh.call(this),dn("The country code provided is not supported.").toString()),Error("The country code provided is not supported.");return n=Ca(this.Aa),i.length&&i[0].b!=n.b&&Fh.call(this,i[0].c,t),i.length&&(e=e.substr(i[0].b.length+1)),e?new Ta(this.Aa,e):null},Ja:Oh,ba:function(){return ku(this,"firebaseui-recaptcha-container")},u:function(){return ku(this,"firebaseui-id-recaptcha-error")},i:Ql,ua:$l,S:Xl}),_s.phoneSignInStart=function(t,e,n,i){var r=function(t){var e=null;if(B(Ba(t),(function(t){t.provider==Xg.auth.PhoneAuthProvider.PROVIDER_ID&&C(t.recaptchaParameters)&&!b(t.recaptchaParameters)&&(e=ut(t.recaptchaParameters))})),e){var n=[];B(ys,(function(t){void 0!==e[t]&&(n.push(t),delete e[t])})),n.length&&Jr('The following provided "recaptchaParameters" keys are not allowed: '+n.join(", "))}return e}(lf(t))||{};as=null,ss=!(r&&"invisible"===r.size);var o=Mc(t),a=function(t){var e=(t=Va(t,Xg.auth.PhoneAuthProvider.PROVIDER_ID))&&t.defaultCountry||null;e=e&&xa(e);var n=null;return t&&"string"==typeof t.loginHint&&(n=Oa(t.loginHint)),e&&e[0]||n&&Ca(n.a)||null}(lf(t)),s=o?function(t){var e=null;return(t=Va(t,Xg.auth.PhoneAuthProvider.PROVIDER_ID))&&"string"==typeof t.loginHint&&(e=Oa(t.loginHint)),t&&t.defaultNationalNumber||e&&e.za||null}(lf(t)):null;a=n&&n.a||a&&a.c||null,n=n&&n.za||s,(s=Ga(lf(t)))&&Ea(s),us=s?new wa(Ga(lf(t))):Aa;var u=new Lh((function(e){jh(t,u,l,!(!e||!e.keyCode))}),ss,o?null:function(){l.clear(),u.o(),Fc(t,e)},Ya(lf(t)),Qa(lf(t)),o,us,a,n);u.render(e),Kh(t,u),i&&u.a(i),r.callback=function(e){u.u()&&Tu(u.u()),as=e,ss||jh(t,u,l)},r["expired-callback"]=function(){as=null};var l=new Xg.auth.RecaptchaVerifier(ss?u.ba():u.i(),r,Xh(t).app);af(t,u.K(A(l.render,l),[],(function(t){ls=t}),(function(n){n.name&&"cancel"==n.name||(n=Pc(n),u.o(),Fc(t,e,void 0,n))})))},_s.prefilledEmailSignIn=function(t,e,n){var i=new lh;i.render(e),Kh(t,i),af(t,i.K(A($h(t).fetchSignInMethodsForEmail,$h(t)),[n],(function(r){i.o();var o=!(!Nc(t)||!Jh(t));jc(t,e,r,n,void 0,void 0,o)}),(function(r){r=Pc(r),i.o(),bs("signIn",t,e,n,r)})))},a(Bh,sl),Bh.prototype.v=function(){this.l(this.i),sl.prototype.v.call(this)},Bh.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(Bh.prototype,{l:function(t){function e(e){t(e)}for(var n=this.f?qe("firebaseui-id-idp-button",this.f||this.s.a):[],i=0;i<n.length;i++){var r=n[i];Au(this,r,T(e,Ih(r,"providerId")))}}}),_s.providerSignIn=function(t,e,n,i){var r=new Bh((function(n){n==Xg.auth.EmailAuthProvider.PROVIDER_ID?(r.o(),Vc(t,e,i)):n==Xg.auth.PhoneAuthProvider.PROVIDER_ID?(r.o(),bs("phoneSignInStart",t,e)):"anonymous"==n?function(t,e){af(t,e.K(A(t.Zb,t),[],(function(n){return e.o(),Tc(t,e,n,!0)}
1),(function(t){t.name&&"cancel"==t.name||(Qr("ContinueAsGuest: "+t.code,void 0),t=Pc(t),e.a(t))})))}(t,r):Rc(t,r,n,i),cf(t),t.l.cancel()}),za(lf(t)),Ya(lf(t)),Qa(lf(t)));r.render(e),Kh(t,r),n&&r.a(n),function(t){cf(t);try{(function t(e,n,i){if(e.a&&n){var r=function(){e.h=!0;var r=Promise.resolve(null);return i||(r=e.a.retrieve(n).catch((function(t){if(t.type===Tr||t.type===Ar)throw t;return null}))),r.then((function(t){return t||e.a.hint(n)})).catch((function(r){if(r.type===Tr)e.f=Promise.resolve();else if(r.type===Ar)return e.cancel(),t(e,n,i);return null}))};return e.f?e.f.then(r):r()}if(n)return r=Or.Ya().load().then((function(){return e.a=f.googleyolo,t(e,n,i)})).ta((function(){return null})),Promise.resolve(r);if("undefined"!=typeof Promise)return Promise.resolve(null);throw Error("One-Tap sign in not supported in the current browser!")})(t.l,function(t){var e=[],n=[];B(Ba(t),(function(t){t.authMethod&&(e.push(t.authMethod),t.clientId&&n.push({uri:t.authMethod,clientId:t.clientId}))}));var i=null;return os(t)===hs&&e.length&&(i={supportedIdTokenProviders:n,supportedAuthMethods:e}),i}(lf(t)),function(t){var e;return cf(t),(e=t.Y)||(e=!(!(t=Wa(t=lf(t),Xg.auth.GoogleAuthProvider.PROVIDER_ID))||"select_account"!==t.prompt)),e}(t)).then((function(e){return!!t.h&&function(t,e,n){var i,r,o=function(t,e){var n=null;return B(Ba(t),(function(t){t.authMethod===e&&(n=t.provider)})),n}(lf(t),n&&n.authMethod||null);return n&&n.idToken&&o===Xg.auth.GoogleAuthProvider.PROVIDER_ID?(qa(lf(t),Xg.auth.GoogleAuthProvider.PROVIDER_ID).length?(Rc(t,e,o,n.id),n=Ki(!0)):(i=Xg.auth.GoogleAuthProvider.credential(n.idToken),r=!1,i=e.K(A(t.$b,t),[i],(function(n){var i=ul(e);e.o(),bs("callback",t,i,Ki(n)),r=!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 i=ul(e);e.o(),bs("callback",t,i,Yi(n))}else n=Pc(n),e.a(n)})),af(t,i),n=i.then((function(){return r}),(function(){return!1}))),n):(n&&e.a(dn("The selected credential for the authentication provider is not supported!").toString()),Ki(!1))}(t,t.h,e)}))}catch(e){}}(t)},_s.sendEmailLinkForSignIn=function(t,e,n,i){var r=new qc;r.render(e),Kh(t,r),Bc(t,r,n,i,(function(i){r.o(),i=Pc(i),bs("signIn",t,e,n,i)}))},a(Vh,sl),Vh.prototype.v=function(){this.B(this.i),this.D(this.i,this.u||void 0),this.l().focus(),ah(this.l(),(this.l().value||"").length),sl.prototype.v.call(this)},Vh.prototype.m=function(){this.u=this.i=null,sl.prototype.m.call(this)},O(Vh.prototype,{l:rc,P:oc,B:ac,J:sc,j:uc,U:Ql,S:$l,D:Xl}),_s.signIn=function(t,e,n,i){var r=Nc(t),o=new Vh((function(){var e=o,n=e.j()||"";n&&Lc(t,e,n)}),r&&os(lf(t))!=cs?null:function(){o.o(),Fc(t,e,n)},n,Ya(lf(t)),Qa(lf(t)),r);o.render(e),Kh(t,o),i&&o.a(i)},a(Uh,sl),Uh.prototype.v=function(){this.B(this.l,this.i),this.u().focus(),sl.prototype.v.call(this)},Uh.prototype.m=function(){this.i=this.l=null,sl.prototype.m.call(this)},O(Uh.prototype,{u:Ql,D:$l,B:Xl}),_s.unsupportedProvider=function(t,e,n){var i=new Uh(n,(function(){i.o(),bs("passwordRecovery",t,e,n)}),(function(){i.o(),Fc(t,e,n)}),Ya(lf(t)),Qa(lf(t)));i.render(e),Kh(t,i)};var qh={};function Wh(t){return t||"[DEFAULT]"}function Gh(t){return cf(t),t.i||(t.i=rf(t,(function(e){return e&&!ca(Zh(t))?Ki(Xh(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 df(t,e)}))):Ki($h(t).getRedirectResult().then((function(e){return ja(lf(t))&&!e.user&&t.j&&!t.j.isAnonymous?Xh(t).getRedirectResult():e})))}))),t.i}function Kh(t,e){cf(t),t.h=e}var Yh=null;function Qh(){return Yh}function $h(t){return cf(t),t.a}function Xh(t){return cf(t),t.f}function Zh(t){return cf(t),t.oa}function Jh(t){return cf(t),t.N?t.N.emailHint:void 0}function tf(t){return"signIn"===((t=new Ht(t)).a.a.get(Gt.wb)||null)&&!!t.a.a.get(Gt.ab)}function ef(t,e,n,i){cf(t),void 0!==t.f.languageCode&&(t.u=t.f.languageCode);var r="en".replace(/_/g,"-");t.f.languageCode=r,t.a.languageCode=r,t.X=!0,void 0!==t.f.tenantId&&(t.a.tenantId=t.f.tenantId),t.jb(n),t.N=i||null;var o=f.document;t.C?t.C.then((function(){"complete"==o.readyState?nf(t,e):ui(window,"load",(function(){nf(t,e)}))}
1)):"complete"==o.readyState?nf(t,e):ui(window,"load",(function(){nf(t,e)}))}function nf(t,e){var n=ur(e,"Could not find the FirebaseUI widget element on the page.");if(n.setAttribute("lang","en".replace(/_/g,"-")),Yh){var i=Yh;cf(i),ca(Zh(i))&&Jr("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."),Yh.reset()}Yh=t,t.O=n,function(t,e){t.L=null,t.I=new Si(e),t.I.register(),ai(t.I,"pageEnter",(function(e){if(t.L!=(e=e&&e.pageId)){var n=lf(t);(n=rs(n).uiChanged||null)&&n(t.L,e),t.L=e}}))}(t,n),Ho(new zo)&&Ho(new qo)?function(t,e){var n=ur(e,"Could not find the FirebaseUI widget element on the page.");switch(e=function(t){var e=lr();return(e=bt(e,t=ya(lf(t).a,"queryParameterForSignInSuccessUrl")))?Se(Ae(e)):null}(t),function(t){var e=lr();for(var n in e=bt(e,t=Ka(lf(t)))||"",vs)if(vs[n].toLowerCase()==e.toLowerCase())return vs[n];return"callback"}(t)){case"callback":e&&sa(e,Zh(t)),t.ob()?bs("callback",t,n):Fc(t,n,Jh(t));break;case"resetPassword":bs("passwordReset",t,n,Uc(),Hc());break;case"recoverEmail":bs("emailChangeRevocation",t,n,Uc());break;case"revertSecondFactorAddition":bs("revertSecondFactorAddition",t,n,Uc());break;case"verifyEmail":bs("emailVerification",t,n,Uc(),Hc());break;case"verifyAndChangeEmail":bs("verifyAndChangeEmail",t,n,Uc(),Hc());break;case"signIn":bs("emailLinkSignInCallback",t,n,lr()),hf();break;case"select":if(e&&sa(e,Zh(t)),ws){Fc(t,n);break}return void Sc((function(){cf(t),Ac(Qh,n,!0)}),!0);default:throw Error("Unhandled widget operation.")}(e=ts(lf(t)))&&e()}(t,e):(e=ur(e,"Could not find the FirebaseUI widget element on the page."),(n=new kc(dn("The browser you are using does not support Web Storage. Please try again in a different browser.").toString())).render(e),Kh(t,n)),e=t.h&&"blank"==t.h.Ea&&Za(lf(t)),da(Zh(t))&&!e&&(uf(t,(e=da(Zh(t))).a),ra(Xo,Zh(t)))}function rf(t,e){if(t.w)return e(of(t));if(af(t,(function(){t.w=!1})),ja(lf(t))){var n=new Vi((function(n){af(t,t.f.onAuthStateChanged((function(i){t.j=i,t.w||(t.w=!0,n(e(of(t))))})))}));return af(t,n),n}return t.w=!0,e(null)}function of(t){return cf(t),ja(lf(t))&&t.j&&t.j.isAnonymous?t.j:null}function af(t,e){if(cf(t),e){t.s.push(e);var n=function(){!function(t,e){!function(t,e){for(var n=p(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,i){e.call(void 0,n,i,t)&&G(t,i)}))}(t.s,(function(t){return t==e}))};"function"!=typeof e&&e.then(n,n)}}function sf(t){void 0!==t.f.languageCode&&t.X&&(t.X=!1,t.f.languageCode=t.u)}function uf(t,e){t.f.tenantId=e,t.a.tenantId=e}function lf(t){return cf(t),t.ca}function cf(t){if(t.Z)throw Error("AuthUI instance is deleted!")}function hf(){var t=lr();if(tf(t)){for(var e in t=new Ht(t),Gt)Gt.hasOwnProperty(e)&&jt(t.a.a,Gt[e]);e={state:"signIn",mode:"emailLink",operation:"clear"},f.history&&f.history.replaceState&&f.history.replaceState(e,f.document.title,t.toString())}}function ff(t){return cf(t),$h(t).signOut()}function df(t,e,n){if(cf(t),e&&e.code&&("auth/email-already-in-use"==e.code||"auth/credential-already-in-use"==e.code)){var i=is(lf(t));return Ki().then((function(){return i(new Ln("anonymous-upgrade-merge-conflict",null,n||e.credential))})).then((function(){throw t.h&&(t.h.o(),t.h=null),e}))}return Yi(e)}function pf(t,e,n,i){sl.call(this,Yl,void 0,i,"providerMatchByEmail",{G:e,F:n}),this.i=t}function mf(t,e,n,i,r){sl.call(this,Kl,{dc:e},r,"selectTenant",{G:n,F:i}),this.i=t}function vf(t){sl.call(this,gl,void 0,t,"spinner")}function gf(t){for(var e in this.a=new ma,va(this.a,"authDomain"),va(this.a,"displayMode",xf),va(this.a,"tenants"),va(this.a,"callbacks"),va(this.a,"tosUrl"),va(this.a,"privacyPolicyUrl"),t)if(t.hasOwnProperty(e))try{ga(this.a,e,t[e])}catch(je){Qr('Invalid config: "'+e+'"',void 0)}}function yf(t){return t.a.get("callbacks")||{}}function _f(t){var e=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,e&&!t&&Jr("Privacy Policy URL is missing, the link will not be displayed."),e&&t){if("function"==typeof e)return e;if("string"==typeof e)return function(){sr(e)}}return null}
1function bf(t){var e=t.a.get("tosUrl")||null,n=t.a.get("privacyPolicyUrl")||null;if(n&&!e&&Jr("Terms of Service URL is missing, the link will not be displayed."),e&&n){if("function"==typeof n)return n;if("string"==typeof n)return function(){sr(n)}}return null}function wf(t,e){if(!(t=t.a.get("tenants"))||!t.hasOwnProperty(e)&&!t.hasOwnProperty(Ef))throw Error("Invalid tenant configuration!")}function kf(t,e,n){if(!(t=t.a.get("tenants")))throw Error("Invalid tenant configuration!");var i=[];if(!(t=t[e]||t[Ef]))return Qr("Invalid tenant configuration: "+e+" is not configured!",void 0),i;if(!(e=t.signInOptions))throw Error("Invalid tenant configuration: signInOptions are invalid!");return e.forEach((function(t){if("string"==typeof t)i.push(t);else if("string"==typeof t.provider){var e=t.hd;e&&n?(e instanceof RegExp?e:new RegExp("@"+e.replace(".","\\.")+"$")).test(n)&&i.push(t.provider):i.push(t.provider)}else Qr(t="Invalid tenant configuration: signInOption "+JSON.stringify(t)+" is invalid!",void 0)})),i}(t=Hh.prototype).ob=function(){return cf(this),!!da(Zh(this))||tf(lr())},t.start=function(t,e){ef(this,t,e)},t.disableAutoSignIn=function(){cf(this),this.Y=!0},t.reset=function(){cf(this);var t=this;this.O&&this.O.removeAttribute("lang"),this.I&&function(t){var e=xi(t.R());wi[e]&&wi[e].length&&(function(t,e){0<=(e=z(t,e,void 0))&&G(t,e)}(wi[e],(function(e){return e==t})),wi[e].length||delete wi[e])}(this.I),sf(this),this.N=null,hf(),ra(Xo,Zh(this)),cf(this),this.l.cancel(),this.i=Ki({user:null,credential:null}),Yh==this&&(Yh=null),this.O=null;for(var e=0;e<this.s.length;e++)"function"==typeof this.s[e]?this.s[e]():this.s[e].cancel&&this.s[e].cancel();this.s=[],ha(Zh(this)),this.h&&(this.h.o(),this.h=null),this.L=null,this.a&&(this.C=ff(this).then((function(){t.C=null}),(function(){t.C=null})))},t.jb=function(t){cf(this);var e,n=this.ca;for(e in t)try{ga(n.a,e,t[e])}catch(i){Qr('Invalid config: "'+e+'"',void 0)}ae&&ga(n.a,"popupMode",!1),Ga(n),!this.da&&es(lf(this))&&(Jr("signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead."),this.da=!0)},t.Vb=function(){cf(this);var t=lf(this),e=ya(t.a,"widgetUrl"),n=La(t,e);lf(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=rr(n,t))&&t.focus()):or(n)},t.Xa=function(){var t=this;return cf(this),this.a.app.delete().then((function(){var e=Wh(Zh(t));delete qh[e],t.reset(),t.Z=!0}))},t.Hb=function(t,e){cf(this);var n=this,i=function(){for(var t=32,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();if(!Xa(lf(this)))return Yi(Error("Email link sign-in should be enabled to trigger email sending."));var r=function(t){if(Xa(t)){var e={url:lr(),handleCodeInApp:!0};return(t=Va(t,Xg.auth.EmailAuthProvider.PROVIDER_ID))&&"function"==typeof t.emailLinkSignIn&&ct(e,t.emailLinkSignIn()),e.url=It(lr(),e.url).toString(),e}return null}(lf(this)),o=new Ht(r.url);return function(t,e){e?t.a.a.set(Gt.Ta,e):jt(t.a.a,Gt.Ta)}(o,i),e&&e.a&&(function(t,e,n){oa(na,Do(t,JSON.stringify(e.aa())),n)}(i,e,Zh(this)),qt(o,e.a.providerId)),function(t,e){null!==e?t.a.a.set(Gt.Ra,e?"1":"0"):jt(t.a.a,Gt.Ra)}(o,function(t){return!(!(t=Va(t,Xg.auth.EmailAuthProvider.PROVIDER_ID))||!t.forceSameDevice)}(lf(this))),rf(this,(function(e){return e&&((e=e.uid)?o.a.a.set(Gt.Qa,e):jt(o.a.a,Gt.Qa)),r.url=o.toString(),$h(n).sendSignInLinkToEmail(t,r)})).then((function(){var e=Zh(n),r={};r.email=t,oa(ea,Do(i,JSON.stringify(r)),e)}),(function(t){throw ra(na,Zh(n)),ra(ea,Zh(n)),t}))},t.ac=function(t,e){cf(this);var n=this;return $h(this).signInWithEmailAndPassword(t,e).then((function(i){return rf(n,(function(r){return r?ff(n).then((function(){return df(n,{code:"auth/email-already-in-use"},Xg.auth.EmailAuthProvider.credential(t,e))})):i}))}))},t.Xb=function(t,e){cf(this);var n=this;return rf(this,(function(i){if(i){var r=Xg.auth.EmailAuthProvider.credential(t,e);return i.linkWithCredential(r)}return $h(n).createUserWithEmailAndPassword(t,e)}))},t.$b=function(t){cf(this);var e=this;return rf(this,(function(n){return n?n.linkWithCredential(t).then((function(t){return t}),(function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return df(e,n,t)})):$h(e).signInWithCredential(t)}))},t.cc=function(t){cf(this);var e=this,n=this.i;return this.i=null,rf(this,(function(n){return n&&!ca(Zh(e))?n.linkWithRedirect(t):$h(e).signInWithRedirect(t)})).then((function(){}),(function(t){throw e.i=n,t}))},t.bc=function(t,e){cf(this);var n=this;return rf(this,(function(i){return i?i.linkWithPhoneNumber(t,e).then((function(t){return new Dr(t,(function(t){if("auth/credential-already-in-use"==t.code)return df(n,t);throw t}))})):Xh(n).signInWithPhoneNumber(t,e).then((function(t){return new Dr(t)}))}
1))},t.Zb=function(){return cf(this),Xh(this).signInAnonymously()},t.Wb=function(t,e){return cf(this),$h(this).signInWithEmailAndPassword(t,e)},a(pf,sl),pf.prototype.v=function(){this.u(this.i),this.B(this.i),this.l().focus(),ah(this.l(),(this.l().value||"").length),sl.prototype.v.call(this)},pf.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},O(pf.prototype,{l:rc,J:oc,u:ac,D:sc,j:uc,P:Ql,B:Xl}),a(mf,sl),mf.prototype.v=function(){!function(t,e){function n(t){e(t)}for(var i=t.f?qe("firebaseui-id-tenant-selection-button",t.f||t.s.a):[],r=0;r<i.length;r++){var o=i[r];Au(t,o,T(n,Ih(o,"tenantId")))}}(this,this.i),sl.prototype.v.call(this)},mf.prototype.m=function(){this.i=null,sl.prototype.m.call(this)},a(vf,sl);var Cf=["immediateFederatedRedirect","privacyPolicyUrl","signInFlow","signInOptions","tosUrl"],xf="optionFirst",Sf={oc:xf,nc:"identifierFirst"},Ef="*";function If(t,e){var n=this;this.s=ur(t),this.a={},Object.keys(e).forEach((function(t){n.a[t]=new gf(e[t])})),this.pb=this.f=this.w=this.h=this.i=this.j=null,Object.defineProperty(this,"languageCode",{get:function(){return this.pb},set:function(t){this.pb=t||null},enumerable:!1})}function Af(t){t.j&&t.j.reset(),t.nb(),t.f&&t.f.o()}(t=If.prototype).Tb=function(t,e){var n=this;Af(this);var i=t.apiKey;return new Vi((function(t,r){if(n.a.hasOwnProperty(i)){var o=yf(n.a[i]).selectTenantUiHidden||null;if(function(t){for(var e in t=t.a.get("displayMode"),Sf)if(Sf[e]===t)return Sf[e];return xf}(n.a[i])===xf){var a=[];e.forEach((function(t){t=t||"_";var e=n.a[i].a.get("tenants");if(!e)throw Error("Invalid tenant configuration!");(e=e[t]||e[Ef])?t={tenantId:"_"!==t?t:null,displayName:e.displayName,Na:e.iconUrl,Ga:e.buttonColor}:(Qr("Invalid tenant configuration: "+t+" is not configured!",void 0),t=null),t&&a.push(t)}));var s=function(e){e={tenantId:e,providerIds:kf(n.a[i],e||"_")},t(e)};if(1===a.length)return void s(a[0].tenantId);n.f=new mf((function(t){Af(n),o&&o(),s(t)}),a,_f(n.a[i]),bf(n.a[i]))}else n.f=new pf((function(){var r=n.f.j();if(r){for(var a=0;a<e.length;a++){var s=kf(n.a[i],e[a]||"_",r);if(0!==s.length)return r={tenantId:e[a],providerIds:s,email:r},Af(n),o&&o(),void t(r)}n.f.a(Mn({code:"no-matching-tenant-for-email"}).toString())}}),_f(n.a[i]),bf(n.a[i]));n.f.render(n.s),(r=yf(n.a[i]).selectTenantUiShown||null)&&r()}else{var u=Error("Invalid project configuration: API key is invalid!");u.code="invalid-configuration",n.qb(u),r(u)}}))},t.Ob=function(t,e){if(!this.a.hasOwnProperty(t))throw Error("Invalid project configuration: API key is invalid!");var n=e||void 0;wf(this.a[t],e||"_");try{this.i=Xg.app(n).auth()}catch(r){var i=this.a[t].a.get("authDomain");if(!i)throw Error("Invalid project configuration: authDomain is required!");(t=Xg.initializeApp({apiKey:t,authDomain:i},n)).auth().tenantId=e,this.i=t.auth()}return this.i},t.Yb=function(t,e){var n=this;return new Vi((function(i,r){function o(e,i){n.j=new Hh(t),ef(n.j,n.s,e,i)}var a=t.app.options.apiKey;n.a.hasOwnProperty(a)||r(Error("Invalid project configuration: API key is invalid!"));var s=function(t,e,n){return t=function(t,e){var n=Cf,i=void 0===i?{}:i;return wf(t,e),function(t,e,n){return n=void 0===n?{}:n,Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),n)}((t=t.a.get("tenants"))[e]||t[Ef],n,i)}(t,e),(e=t.signInOptions)&&n&&(e=e.filter((function(t){return n.includes("string"==typeof t?t:t.provider)})),t.signInOptions=e),t}(n.a[a],t.tenantId||"_",e&&e.providerIds);Af(n),r={signInSuccessWithAuthResult:function(t){return i(t),!1}};var u,l=yf(n.a[a]).signInUiShown||null,c=!1;r.uiChanged=function(e,i){null===e&&"callback"===i?((e=We("firebaseui-id-page-callback",n.s))&&Tu(e),n.h=new vf,n.h.render(n.s)):c||null===e&&"spinner"===i||"blank"===i||(n.h&&(n.h.o(),n.h=null),c=!0,l&&l(t.tenantId))},s.callbacks=r,s.credentialHelper="none",e&&e.email&&(u={emailHint:e.email}),n.j?n.j.Xa().then((function(){o(s,u)})):o(s,u)}))},t.reset=function(){var t=this;return Ki().then((function(){t.j&&t.j.Xa()})).then((function(){t.j=null,Af(t)}))},t.Ub=function(){var t=this;this.h||this.w||(this.w=window.setTimeout((function(){Af(t),t.h=new vf,t.f=t.h,t.h.render(t.s),t.w=null}),500))},t.nb=function(){window.clearTimeout(this.w),this.w=null,this.h&&(this.h.o(),this.h=null)},t.Cb=function(){return Af(this),this.f=new gc,this.f.render(this.s),Ki()},t.qb=function(t){var e,n=this,i=Mn({code:t.code}).toString()||t.message;Af(this),t.retry&&k(t.retry)&&(e=function(){n.reset(),t.retry()}),this.f=new wc(i,e),this.f.render(this.s)},t.Qb=function(t){var e=this;return Ki().then((function(){var n=e.i&&e.i.app.options.apiKey;if(!e.a.hasOwnProperty(n))throw Error("Invalid project configuration: API key is invali
1d!");if(wf(e.a[n],t.tenantId||"_"),!e.i.currentUser||e.i.currentUser.uid!==t.uid)throw Error("The user being processed does not match the signed in user!");return(n=yf(e.a[n]).beforeSignInSuccess||null)?n(t):t})).then((function(e){if(e.uid!==t.uid)throw Error("User with mismatching UID returned.");return e}))},R("firebaseui.auth.FirebaseUiHandler",If),R("firebaseui.auth.FirebaseUiHandler.prototype.selectTenant",If.prototype.Tb),R("firebaseui.auth.FirebaseUiHandler.prototype.getAuth",If.prototype.Ob),R("firebaseui.auth.FirebaseUiHandler.prototype.startSignIn",If.prototype.Yb),R("firebaseui.auth.FirebaseUiHandler.prototype.reset",If.prototype.reset),R("firebaseui.auth.FirebaseUiHandler.prototype.showProgressBar",If.prototype.Ub),R("firebaseui.auth.FirebaseUiHandler.prototype.hideProgressBar",If.prototype.nb),R("firebaseui.auth.FirebaseUiHandler.prototype.completeSignOut",If.prototype.Cb),R("firebaseui.auth.FirebaseUiHandler.prototype.handleError",If.prototype.qb),R("firebaseui.auth.FirebaseUiHandler.prototype.processUser",If.prototype.Qb),R("firebaseui.auth.AuthUI",Hh),R("firebaseui.auth.AuthUI.getInstance",(function(t){return t=Wh(t),qh[t]?qh[t]:null})),R("firebaseui.auth.AuthUI.prototype.disableAutoSignIn",Hh.prototype.disableAutoSignIn),R("firebaseui.auth.AuthUI.prototype.start",Hh.prototype.start),R("firebaseui.auth.AuthUI.prototype.setConfig",Hh.prototype.jb),R("firebaseui.auth.AuthUI.prototype.signIn",Hh.prototype.Vb),R("firebaseui.auth.AuthUI.prototype.reset",Hh.prototype.reset),R("firebaseui.auth.AuthUI.prototype.delete",Hh.prototype.Xa),R("firebaseui.auth.AuthUI.prototype.isPendingRedirect",Hh.prototype.ob),R("firebaseui.auth.AuthUIError",Ln),R("firebaseui.auth.AuthUIError.prototype.toJSON",Ln.prototype.toJSON),R("firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM",cs),R("firebaseui.auth.CredentialHelper.GOOGLE_YOLO",hs),R("firebaseui.auth.CredentialHelper.NONE",fs),R("firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID","anonymous"),Vi.prototype.catch=Vi.prototype.ta,Vi.prototype.finally=Vi.prototype.ec}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:window)}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:window),"undefined"!=typeof window&&(window.dialogPolyfill=Tj.a);var Oj,Dj=firebaseui.auth,Pj=[{name:"Call",content:"##FNAME##, perfect. Let's do a call after lunch in the next few days. What works best for you?\n- ##WEEKDAYS:+1##\n- ##WEEKDAYS:+2##\n- ##WEEKDAYS:+3##"},{name:"Friendly Nudge",content:"Hi ##FNAME:there##, just a friendly nudge on the message above. Hope you're having a wonderful week."},{name:"Connection Request",content:"##FNAME:Hi## \u2014 saw we know a few people in common. I help (this type of person) to (value). Are you open to connecting?"},{name:"Followup",content:"Hi ##FNAME:there##, I hope you're having a nice day. I wanted to follow up with you about..."}],Rj=((Oj=function(){function t(e){_classCallCheck(this,t),this.dataService=e}return _createClass(t,[{key:"addDefaultTemplates",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dataService.addFolder("Examples");case 2:return e=t.sent,t.next=5,Promise.all(Pj.map((function(t){var i=Object.assign({},t,{folder:e});return n.dataService.newTemplate(i)})));case 5:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||Oj)(Xt(zF))},Oj.\u0275prov=dt({token:Oj,factory:Oj.\u0275fac,providedIn:"root"}),Oj);Promise.resolve().then(n.bind(null,"6AkR"));var Nj,Mj,Fj=((Mj=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.router=e,this.firestore=n,this.ngZone=i,this.defaultTemplatesService=r,this.analytics=o}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.ui=new Dj.AuthUI(Xg.auth()),this.ui.start("#firebase-login",{callbacks:{signInFailure:function(e){return t.onFailure(e)},signInSuccessWithAuthResult:function(e){return t.ngZone.run((function(){return t.onSuccess(e)})),!1}},signInFlow:"redirect",signInOptions:[Xg.auth.GoogleAuthProvider.PROVIDER_ID,{requireDisplayName:!0,provider:Xg.auth.EmailAuthProvider.PROVIDER_ID}],tosUrl:"https://getveryfast.com/terms",privacyPolicyUrl:"https://getveryfast.com/privacy",credentialHelper:Dj.CredentialHelper.GOOGLE_YOLO})}},{key:"ngOnDestroy",value:function(){this.ui.delete()}},{key:"onFailure",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.error("login error",t);case 1:case"end":return e.stop()}}),e)})))}},{key:"onSuccess",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i,r,o,a,s,u,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("success",t),n=t.additionalUserInfo.isNewUser,i=t.user,r=i.uid,o=i.displayName,a=i.email,s=i.photoURL,u=function(t){return"google.com"===t.additionalUserInfo.providerId?"google":"email"}(t),l={name:o,email:a,lastLogin:new Date,method:u,useStatus:!1},n&&(l.created=new Date),s&&(l.photo=s),console.log("On Success",{uid:r,name:o,email:a,photo:s,isNewUser:n,method:u}),e.t0=n,!e.t0){e.next=11;break}return e.next=9,this.firestore.doc("/users/".concat(r)).set(l,{merge:!0});case 9:return e.next=11,this.defaultTemplatesService.addDefaultTemplates();case 11:return c=sessionStorage.getItem("afterLogin"),e.next=14,this.analytics.logEvent(n?"sign_up":"login",{method:u});case 14:if(!c||!c.length){e.next=20;break}return sessionStorage.removeItem("afterLogin"),e.next=18,this.router.navigateByUrl(c);case 18:e.next=22;break;case 20:return e.next=22,this.router.navigate([n?"onboarding":""]);case 22:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||Mj)(Oa(Gv),Oa(Zy),Oa(Ll),Oa(Rj),Oa(EF))},Mj.\u0275cmp=ve({type:Mj,selectors:[["vf-login"]],decls:1,vars:0,consts:[["id","firebase-login"]],template:function(t,e){1&t&&La(0,"div",0)},styles:["#firebase-login[_ngcontent-%COMP%] {\n padding: 30px;\n background-color: white;\n transition: height linear 1s;\n border-radius: 5px;\n }"]}),Mj),Lj=((Nj=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||Nj)},Nj.\u0275cmp=ve({type:Nj,selectors:[["vf-login-page"]],decls:4,vars:0,consts:[["fxFlex","2",2,"font-weight","700","font-size","50px","z-index","1000"]],template:function(t,e){1&t&&(Ma(0,"vf-splash-page-layout"),Ma(1,"div",0),ws(2,"Welcome"),Fa(),La(3,"vf-login"),Fa())},directives:[Ij,WD,Fj],styles:["h1[_ngcontent-%COMP%]{font-size:50px;font-weight:700px}img[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px;
1width:200px}"]}),Nj);function jj(t,e){1&t&&Za(0)}var Bj=["*"];function Vj(t,e){}var Uj=function(t){return{animationDuration:t}},Hj=function(t,e){return{value:t,params:e}},zj=["tabBodyWrapper"],qj=["tabHeader"];function Wj(t,e){}function Gj(t,e){1&t&&Aa(0,Wj,0,0,"ng-template",9),2&t&&Ra("cdkPortalOutlet",Qa().$implicit.templateLabel)}function Kj(t,e){1&t&&ws(0),2&t&&ks(Qa().$implicit.textLabel)}function Yj(t,e){if(1&t){var n=Ua();Ma(0,"div",6),qa("click",(function(){en(n);var t=e.$implicit,i=e.index,r=Qa(),o=Ta(1);return r._handleClick(t,o,i)})),Ma(1,"div",7),Aa(2,Gj,1,1,"ng-template",8),Aa(3,Kj,1,1,"ng-template",8),Fa(),Fa()}if(2&t){var i=e.$implicit,r=e.index,o=Qa();us("mat-tab-label-active",o.selectedIndex==r),Ra("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Ea("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),kr(2),Ra("ngIf",i.templateLabel),kr(1),Ra("ngIf",!i.templateLabel)}}function Qj(t,e){if(1&t){var n=Ua();Ma(0,"mat-tab-body",10),qa("_onCentered",(function(){return en(n),Qa()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return en(n),Qa()._setTabBodyWrapperHeight(t)})),Fa()}if(2&t){var i=e.$implicit,r=e.index,o=Qa();us("mat-tab-body-active",o.selectedIndex==r),Ra("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Ea("aria-labelledby",o._getTabLabelId(r))}}var $j,Xj,Zj,Jj,tB,eB,nB,iB,rB,oB,aB,sB,uB,lB,cB,hB,fB,dB,pB=["tabListContainer"],mB=["tabList"],vB=["nextPaginator"],gB=["previousPaginator"],yB=["mat-tab-nav-bar",""],_B=new Ht("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),bB=((Zj=function(){function t(e,n,i,r){_classCallCheck(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return _createClass(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}()).\u0275fac=function(t){return new(t||Zj)(Oa(Ys),Oa(Ll),Oa(_B),Oa(Cx,8))},Zj.\u0275dir=Ce({type:Zj,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&us("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),Zj),wB=((Xj=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||Xj)(Oa(yu))},Xj.\u0275dir=Ce({type:Xj,selectors:[["","matTabContent",""]]}),Xj),kB=(($j=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(pb)).\u0275fac=function(t){return CB(t||$j)},$j.\u0275dir=Ce({type:$j,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[As]}),$j),CB=fi(kB),xB=Nx((function t(){_classCallCheck(this,t)})),SB=new Ht("MAT_TAB_GROUP"),EB=((Jj=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new A,r.position=null,r.origin=null,r.isActive=!1,r}return _createClass(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new cb(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(xB)).\u0275fac=function(t){return new(t||Jj)(Oa(bu),Oa(SB,8))}
1,Jj.\u0275cmp=ve({type:Jj,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,kB,!0),ll(n,wB,!0,yu)),2&t&&(rl(i=hl())&&(e.templateLabel=i.first),rl(i=hl())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&ol(yu,!0),2&t&&rl(n=hl())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[As,Ns],ngContentSelectors:Bj,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Aa(0,jj,1,0,"ng-template"))},encapsulation:2}),Jj),IB={translateTab:Jw("translateTab",[rk("center, void, left-origin-center, right-origin-center",ik({transform:"none"})),rk("left",ik({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),rk("right",ik({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ok("* => left, * => right, left => center, right => center",tk("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ok("void => left-origin-center",[ik({transform:"translate3d(-100%, 0, 0)"}),tk("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ok("void => right-origin-center",[ik({transform:"translate3d(100%, 0, 0)"}),tk("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},AB=((nB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,o))._host=r,a._centeringSub=f.EMPTY,a._leavingSub=f.EMPTY,a}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(vp(this._host._isCenterPosition(this._host._position))).subscribe((function(e){e&&!t.hasAttached()&&t.attach(t._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){t.detach()}))}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(mb)).\u0275fac=function(t){return new(t||nB)(Oa(Ks),Oa(bu),Oa(Et((function(){return OB}))),Oa(_c))},nB.\u0275dir=Ce({type:nB,selectors:[["","matTabBodyHost",""]],features:[As]}),nB),TB=((eB=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=f.EMPTY,this._translateTabComplete=new A,this._onCentering=new Ku,this._beforeCentering=new Ku,this._afterLeavingCenter=new Ku,this._onCentered=new Ku(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(t){r._computePositionAnimationState(t),i.markForCheck()}))),this._translateTabComplete.pipe(l_((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return _createClass(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}()).\u0275fac=function(t){return new(t||eB)(Oa(Ys),Oa(V_,8),Oa($o))},eB.\u0275dir=Ce({type:eB,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),eB),OB=((tB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){return _classCallCheck(this,n),e.call(this,t,i,r)}return n}(TB)).\u0275fac=function(t){return new(t||tB)(Oa(Ys),Oa(V_,8),Oa($o))},tB.\u0275cmp=ve({type:tB,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&al(vb,!0),2&t&&rl(n=hl())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[As],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i;1&t&&(Ma(0,"div",0,1),qa("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),Aa(2,Vj,0,0,"ng-template",2),Fa()),2&t&&Ra("@translateTab",ju(3,Hj,e._position,(n=Uj,i=e.animationDuration,Vu(Je(),ln(),1,n,i,void 0))))},directives:[AB],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[IB.translateTab]}}),tB),DB=new Ht("MAT_TABS_CONFIG"),PB=0,RB=function t(){_classCallCheck(this,t)},NB=Mx(Fx((function t(e){_classCallCheck(this,t),this._elementRef=e})),"primary"),MB=((rB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t))._changeDetectorRef=i,a._animationMode=o,a._tabs=new Qu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=f.EMPTY,a._tabLabelSubscription=f.EMPTY,a._dynamicHeight=!1,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Ku,a.focusChange=new Ku,a.animationDone=new Ku,a.selectedTabChange=new Ku(!0),a._groupId=PB++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a}return _createClass(n,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;
1n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n<e.length;n++)if(e[n].isActive){t._indexToSelect=t._selectedIndex=n;break}t._changeDetectorRef.markForCheck()}))}},{key:"_subscribeToAllTabChanges",value:function(){var t=this;this._allTabs.changes.pipe(vp(this._allTabs)).subscribe((function(e){t._tabs.reset(e.filter((function(e){return!e._closestTabGroup||e._closestTabGroup===t}))),t._tabs.notifyOnChanges()}))}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(t){this.focusChange.emit(this._createChangeEvent(t))}},{key:"_createChangeEvent",value:function(t){var e=new RB;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}},{key:"_subscribeToTabLabels",value:function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Q.apply(void 0,_toConsumableArray(this._tabs.map((function(t){return t._stateChanges})))).subscribe((function(){return t._changeDetectorRef.markForCheck()}))}},{key:"_clampTabIndex",value:function(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}},{key:"_getTabLabelId",value:function(t){return"mat-tab-label-".concat(this._groupId,"-").concat(t)}},{key:"_getTabContentId",value:function(t){return"mat-tab-content-".concat(this._groupId,"-").concat(t)}},{key:"_setTabBodyWrapperHeight",value:function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}},{key:"_getTabIndex",value:function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=t_(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=e_(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}}]),n}(NB)).\u0275fac=function(t){return new(t||rB)(Oa(Ys),Oa($o),Oa(DB,8),Oa(Cx,8))},rB.\u0275dir=Ce({type:rB,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[As]}),rB),FB=((iB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){return _classCallCheck(this,n),e.call(this,t,i,r,o)}return n}(MB)).\u0275fac=function(t){return new(t||iB)(Oa(Ys),Oa($o),Oa(DB,8),Oa(Cx,8))},iB.\u0275cmp=ve({type:iB,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,EB,!0),2&t&&rl(i=hl())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(al(zj,!0),al(qj,!0)),2&t&&(rl(n=hl())&&(e._tabBodyWrapper=n.first),rl(n=hl())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&us("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[qs([{provide:SB,useExisting:iB}]),As],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Ma(0,"mat-tab-header",0,1),qa("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),Aa(2,Yj,4,14,"div",2),Fa(),Ma(3,"div",3,4),Aa(5,Qj,1,8,"mat-tab-body",5),Fa()),2&t&&(Ra("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),kr(2),Ra("ngForOf",e._tabs),kr(1),us("_mat-animation-noopable","NoopAnimations"===e._animationMode),kr(2),Ra("ngForOf",e._tabs))},directives:function(){return[HB,Nh,jB,aS,Yw,Fh,mb,OB]}
1,styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),iB),LB=Nx((function t(){_classCallCheck(this,t)})),jB=((oB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).elementRef=t,i}return _createClass(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(LB)).\u0275fac=function(t){return new(t||oB)(Oa(Ys))},oB.\u0275dir=Ce({type:oB,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(Ea("aria-disabled",!!e.disabled),us("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[As]}),oB),BB=R_({passive:!0}),VB=((cB=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new A,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new A,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ku,this.indexFocused=new Ku,o.runOutsideAngular((function(){a_(e.nativeElement,"mouseleave").pipe(g_(u._destroyed)).subscribe((function(){u._stopInterval()}))}))}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;a_(this._previousPaginator.nativeElement,"touchstart",BB).pipe(g_(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),a_(this._nextPaginator.nativeElement,"touchstart",BB).pipe(g_(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Dd(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new Aw(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Q(e,n,this._items.changes).pipe(g_(this._destroyed)).subscribe((function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(g_(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!bb(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit
1(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(n),"px)"),e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,l=this.scrollDistance+r;n<u?this.scrollDistance-=u-n+60:i>l&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),p_(650,100).pipe(g_(Q(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),i=e.maxScrollDistance,r=e.distance;(0===r||r>=i)&&n._stopInterval()})))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=e_(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}()).\u0275fac=function(t){return new(t||cB)(Oa(Ys),Oa($o),Oa(tb),Oa(V_,8),Oa(Ll),Oa(T_),Oa(Cx,8))},cB.\u0275dir=Ce({type:cB,inputs:{disablePagination:"disablePagination"}}),cB),UB=((lB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,i,r,o,a,s,u))._disableRipple=!1,l}return _createClass(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=t_(t)}}]),n}(VB)).\u0275fac=function(t){return new(t||lB)(Oa(Ys),Oa($o),Oa(tb),Oa(V_,8),Oa(Ll),Oa(T_),Oa(Cx,8))},lB.\u0275dir=Ce({type:lB,inputs:{disableRipple:"disableRipple"},features:[As]}),lB),HB=((uB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){return _classCallCheck(this,n),e.call(this,t,i,r,o,a,s,u)}return n}(UB)).\u0275fac=function(t){return new(t||uB)(Oa(Ys),Oa($o),Oa(tb),Oa(V_,8),Oa(Ll),Oa(T_),Oa(Cx,8))},uB.\u0275cmp=ve({type:uB,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,jB,!1),2&t&&rl(i=hl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(ol(bB,!0),ol(pB,!0),ol(mB,!0),al(vB,!0),al(gB,!0)),2&t&&(rl(n=hl())&&(e._inkBar=n.first),rl(n=hl())&&(e._tabListContainer=n.first),rl(n=hl())&&(e._tabList=n.first),rl(n=hl())&&(e._nextPaginator=n.first),rl(n=hl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&us("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[As],ngContentSelectors:Bj,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Xa(),Ma(0,"div",0,1),qa("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),La(2,"div",2),Fa(),Ma(3,"div",3,4),qa("keydown",(function(t){return e._handleKeydown(t)})),Ma(5,"div",5,6),qa("cdkObserveContent",(function(){return e._onContentChanges()})),Ma(7,"div",7),Za(8),Fa(),La(9,"mat-ink-bar"),Fa(),Fa(),Ma(10,"div",8,9),qa("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),La(12,"div",2),Fa()),2&t&&(us("mat-tab-header-pagination-disabled",e._disableScrollBefore),Ra("matRippleDisabled",e._disableScrollBefore||e.disableRipple),kr(5),us("_mat-animation-noopable","NoopAnimations"===e._animationMode),kr(5),us("mat-tab-header-pagination-disabled",e._disableScrollAfter),Ra("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[aS,gw,bB],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;
1cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),uB),zB=((sB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,o,a,i,r,s,u))._disableRipple=!1,l.color="primary",l}return _createClass(n,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe(vp(null),g_(this._destroyed)).subscribe((function(){t.updateActiveLink()})),_get(_getPrototypeOf(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),n=0;n<e.length;n++)if(e[n].active)return this.selectedIndex=n,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-".concat(this.backgroundColor)),t&&e.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=t_(t)}}]),n}(VB)).\u0275fac=function(t){return new(t||sB)(Oa(Ys),Oa(V_,8),Oa(Ll),Oa($o),Oa(tb),Oa(T_,8),Oa(Cx,8))},sB.\u0275dir=Ce({type:sB,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[As]}),sB),qB=((aB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){return _classCallCheck(this,n),e.call(this,t,i,r,o,a,s,u)}return n}(zB)).\u0275fac=function(t){return new(t||aB)(Oa(Ys),Oa(V_,8),Oa(Ll),Oa($o),Oa(tb),Oa(T_,8),Oa(Cx,8))},aB.\u0275cmp=ve({type:aB,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){var i;1&t&&ul(n,KB,!0),2&t&&rl(i=hl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(ol(bB,!0),ol(pB,!0),ol(mB,!0),al(vB,!0),al(gB,!0)),2&t&&(rl(n=hl())&&(e._inkBar=n.first),rl(n=hl())&&(e._tabListContainer=n.first),rl(n=hl())&&(e._tabList=n.first),rl(n=hl())&&(e._nextPaginator=n.first),rl(n=hl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&us("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[As],attrs:yB,ngContentSelectors:Bj,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Xa(),Ma(0,"div",0,1),qa("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),La(2,"div",2),Fa(),Ma(3,"div",3,4),qa("keydown",(function(t){return e._handleKeydown(t)})),Ma(5,"div",5,6),qa("cdkObserveContent",(function(){return e._onContentChanges()})),Ma(7,"div",7),Za(8),Fa(),La(9,"mat-ink-bar"),Fa(),Fa(),Ma(10,"div",8,9),qa("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),La(12,"div",2),Fa()),2&t&&(us("mat-tab-header-pagination-disabled",e._disableScrollBefore),Ra("matRippleDisabled",e._disableScrollBefore||e.disableRipple),kr(5),us("_mat-animation-noopable","NoopAnimations"===e._animationMode),kr(5),us("mat-tab-header-pagination-disabled",e._disableScrollAfter),Ra("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[aS,gw,bB],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;
1cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),aB),WB=Lx(Fx(Nx((function t(){_classCallCheck(this,t)})))),GB=((dB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s){var u;return _classCallCheck(this,n),(u=e.call(this))._tabNavBar=t,u.elementRef=i,u._focusMonitor=a,u._isActive=!1,u.rippleConfig=r||{},u.tabIndex=parseInt(o)||0,"NoopAnimations"===s&&(u.rippleConfig.animation={enterDuration:0,exitDuration:0}),a.monitor(i),u}return _createClass(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),n}(WB)).\u0275fac=function(t){return new(t||dB)(Oa(zB),Oa(Ys),Oa(oS,8),Da("tabindex"),Oa(zw),Oa(Cx,8))},dB.\u0275dir=Ce({type:dB,inputs:{active:"active"},features:[As]}),dB),KB=((fB=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l){var c;return _classCallCheck(this,n),(c=e.call(this,t,i,a,s,u,l))._tabLinkRipple=new rS(_assertThisInitialized(c),r,i,o),c._tabLinkRipple.setupTriggerEvents(i.nativeElement),c}return _createClass(n,[{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(GB)).\u0275fac=function(t){return new(t||fB)(Oa(qB),Oa(Ys),Oa(Ll),Oa(T_),Oa(oS,8),Da("tabindex"),Oa(zw),Oa(Cx,8))},fB.\u0275dir=Ce({type:fB,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(Ea("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),us("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[As]}),fB),YB=((hB=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:hB}),hB.\u0275inj=pt({factory:function(t){return new(t||hB)},imports:[[Lf,Rx,yb,sS,yw,$w],Rx]}),hB);function QB(t,e){if(1&t&&(Ma(0,"mat-option",19),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n),kr(1),Cs(" ",n," ")}}function $B(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field",16),Ma(1,"mat-select",17),qa("selectionChange",(function(t){return en(n),Qa(2)._changePageSize(t.value)})),Aa(2,QB,2,2,"mat-option",18),Fa(),Fa()}if(2&t){var i=Qa(2);Ra("color",i.color),kr(1),Ra("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),kr(1),Ra("ngForOf",i._displayedPageSizeOptions)}}function XB(t,e){if(1&t&&(Ma(0,"div",20),ws(1),Fa()),2&t){var n=Qa(2);kr(1),ks(n.pageSize)}}function ZB(t,e){if(1&t&&(Ma(0,"div",12),Ma(1,"div",13),ws(2),Fa(),Aa(3,$B,3,5,"mat-form-field",14),Aa(4,XB,2,1,"div",15),Fa()),2&t){var n=Qa();kr(2),Cs(" ",n._intl.itemsPerPageLabel," "),kr(1),Ra("ngIf",n._displayedPageSizeOptions.length>1),kr(1),Ra("ngIf",n._displayedPageSizeOptions.length<=1)}}function JB(t,e){if(1&t){var n=Ua();Ma(0,"button",21),qa("click",(function(){return en(n),Qa().firstPage()})),In(),Ma(1,"svg",7),La(2,"path",22),Fa(),Fa()}if(2&t){var i=Qa();Ra("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ea("aria-label",i._intl.firstPageLabel)}}function tV(t,e){if(1&t){var n=Ua();In(),An(),Ma(0,"button",23),qa("click",(function(){return en(n),Qa().lastPage()})),In(),Ma(1,"svg",7),La(2,"path",24),Fa(),Fa()}if(2&t){var i=Qa();Ra("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ea("aria-label",i._intl.lastPageLabel)}}var eV,nV,iV,rV=((eV=function t(){_classCallCheck(this,t),this.changes=new A,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+e,n):i+e," of ").concat(n)}}).\u0275fac=function(t){return new(t||eV)},eV.\u0275prov=dt({factory:function(){return new eV},token:eV,providedIn:"root"}),eV),oV={provide:rV,deps:[[new st,new lt,rV]],useFactory:function(t){return t||new rV}},aV=new Ht("MAT_PAGINATOR_DEFAULT_OPTIONS"),sV=Nx(function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r)))._isInitialized=!1,t._pendingSubscribers=[],t.initialized=new k((function(e){t._isInitialized?t._notifySubscriber(e):t._pendingSubscribers.push(e)})),t}return _createClass(n,[{key:"_markInitialized",value:function(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");
1this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(t){t.next(),t.complete()}}]),n}((function t(){_classCallCheck(this,t)}))),uV=((iV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;if(_classCallCheck(this,n),(o=e.call(this))._intl=t,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Ku,o._intlChanges=t.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return _possibleConstructorReturn(o)}return _createClass(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(t){var e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((function(t,e){return t-e})),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(e_(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=e_(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(e_(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map((function(t){return e_(t)})),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=t_(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=t_(t)}}]),n}(sV)).\u0275fac=function(t){return new(t||iV)(Oa(rV),Oa($o),Oa(aV,8))},iV.\u0275cmp=ve({type:iV,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[As],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Aa(2,ZB,5,3,"div",2),Ma(3,"div",3),Ma(4,"div",4),ws(5),Fa(),Aa(6,JB,3,5,"button",5),Ma(7,"button",6),qa("click",(function(){return e.previousPage()})),In(),Ma(8,"svg",7),La(9,"path",8),Fa(),Fa(),An(),Ma(10,"button",9),qa("click",(function(){return e.nextPage()})),In(),Ma(11,"svg",7),La(12,"path",10),Fa(),Fa(),Aa(13,tV,3,5,"button",11),Fa(),Fa(),Fa()),2&t&&(kr(2),Ra("ngIf",!e.hidePageSize),kr(3),Cs(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),kr(1),Ra("ngIf",e.showFirstLastButtons),kr(1),Ra("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Ea("aria-label",e._intl.previousPageLabel),kr(3),Ra("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Ea("aria-label",e._intl.nextPageLabel),kr(3),Ra("ngIf",e.showFirstLastButtons))},directives:[Fh,MA,WM,PT,kR,Nh,gS],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),iV),lV=((nV=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:nV}
1),nV.\u0275inj=pt({factory:function(t){return new(t||nV)},providers:[oV],imports:[[Lf,LA,CR,KM]]}),nV),cV=[[["caption"]]],hV=["caption"];function fV(t,e){if(1&t&&(Ma(0,"th",3),ws(1),Fa()),2&t){var n=Qa();ss("text-align",n.justify),kr(1),Cs(" ",n.headerText," ")}}function dV(t,e){if(1&t&&(Ma(0,"td",4),ws(1),Fa()),2&t){var n=e.$implicit,i=Qa();ss("text-align",i.justify),kr(1),Cs(" ",i.dataAccessor(n,i.name)," ")}}function pV(t){return function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r)))._sticky=!1,t._hasStickyChanged=!1,t}return _createClass(n,[{key:"hasStickyChanged",value:function(){var t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(t){var e=this._sticky;this._sticky=t_(t),this._hasStickyChanged=e!==this._sticky}}]),n}(t)}var mV,vV,gV,yV,_V,bV,wV,kV,CV,xV,SV,EV,IV,AV,TV,OV=new Ht("CDK_TABLE"),DV=new Ht("text-column-options"),PV=((gV=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||gV)(Oa(yu))},gV.\u0275dir=Ce({type:gV,selectors:[["","cdkCellDef",""]]}),gV),RV=((vV=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||vV)(Oa(yu))},vV.\u0275dir=Ce({type:vV,selectors:[["","cdkHeaderCellDef",""]]}),vV),NV=((mV=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||mV)(Oa(yu))},mV.\u0275dir=Ce({type:mV,selectors:[["","cdkFooterCellDef",""]]}),mV),MV=pV((function t(){_classCallCheck(this,t)})),FV=((yV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._table=t,i._stickyEnd=!1,i}return _createClass(n,[{key:"name",get:function(){return this._name},set:function(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(t){var e=this._stickyEnd;this._stickyEnd=t_(t),this._hasStickyChanged=e!==this._stickyEnd}}]),n}(MV)).\u0275fac=function(t){return new(t||yV)(Oa(OV,8))},yV.\u0275dir=Ce({type:yV,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,PV,!0),ul(n,RV,!0),ul(n,NV,!0)),2&t&&(rl(i=hl())&&(e.cell=i.first),rl(i=hl())&&(e.headerCell=i.first),rl(i=hl())&&(e.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[qs([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:yV}]),As]}),yV),LV=function t(e,n){_classCallCheck(this,t),n.nativeElement.classList.add("cdk-column-".concat(e.cssClassFriendlyName))},jV=((kV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,t,i)}return n}(LV)).\u0275fac=function(t){return new(t||kV)(Oa(FV),Oa(Ys))},kV.\u0275dir=Ce({type:kV,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[As]}),kV),BV=((wV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,t,i)}return n}(LV)).\u0275fac=function(t){return new(t||wV)(Oa(FV),Oa(Ys))},wV.\u0275dir=Ce({type:wV,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[As]}),wV),VV=((bV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,t,i)}return n}(LV)).\u0275fac=function(t){return new(t||bV)(Oa(FV),Oa(Ys))},bV.\u0275dir=Ce({type:bV,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[As]}),bV),UV=((_V=function(){function t(e,n){_classCallCheck(this,t),this.template=e,this._differs=n}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(!this._columnsDiffer){var e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(t){return this instanceof zV?t.headerCell.template:this instanceof WV?t.footerCell.template:t.cell.template}}]),t}()).\u0275fac=function(t){return new(t||_V)(Oa(yu),Oa(du))},_V.\u0275dir=Ce({type:_V,features:[Ns]}),_V),HV=pV(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(UV)),zV=((CV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i))._table=r,o}return _createClass(n,[{key:"ngOnChanges",value:function(t){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,t)}}]),n}(HV)).\u0275fac=function(t){return new(t||CV)(Oa(yu),Oa(du),Oa(OV,8))},CV.\u0275dir=Ce({type:CV,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[As,Ns]}),CV),qV=pV(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(UV)),WV=((TV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i))._table=r,o}return _createClass(n,[{key:"ngOnChanges",value:function(t){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,t)}}]),n}
1(qV)).\u0275fac=function(t){return new(t||TV)(Oa(yu),Oa(du),Oa(OV,8))},TV.\u0275dir=Ce({type:TV,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[As,Ns]}),TV),GV=((AV=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i))._table=r,o}return n}(UV)).\u0275fac=function(t){return new(t||AV)(Oa(yu),Oa(du),Oa(OV,8))},AV.\u0275dir=Ce({type:AV,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[As]}),AV),KV=((IV=function(){function t(e){_classCallCheck(this,t),this._viewContainer=e,t.mostRecentCellOutlet=this}return _createClass(t,[{key:"ngOnDestroy",value:function(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}]),t}()).\u0275fac=function(t){return new(t||IV)(Oa(bu))},IV.\u0275dir=Ce({type:IV,selectors:[["","cdkCellOutlet",""]]}),IV.mostRecentCellOutlet=null,IV),YV=((EV=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||EV)},EV.\u0275cmp=ve({type:EV,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),EV),QV=((SV=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||SV)},SV.\u0275cmp=ve({type:SV,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),SV),$V=((xV=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xV)},xV.\u0275cmp=ve({type:xV,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),xV),XV=["top","bottom","left","right"],ZV=function(){function t(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._isBrowser=r}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.nodeType===r.ELEMENT_NODE){this._removeStickyStyle(r,e);for(var o=0;o<r.children.length;o++)this._removeStickyStyle(r.children[o],e)}}}catch(a){i.e(a)}finally{i.f()}}},{key:"updateStickyColumns",value:function(t,e,n){var i=e.some((function(t){return t}))||n.some((function(t){return t}));if(t.length&&i&&this._isBrowser){var r,o=t[0],a=o.children.length,s=this._getCellWidths(o),u=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),c="rtl"===this.direction,h=_createForOfIteratorHelper(t);try{for(h.s();!(r=h.n()).done;)for(var f=r.value,d=0;d<a;d++){var p=f.children[d];e[d]&&this._addStickyStyle(p,c?"right":"left",u[d]),n[d]&&this._addStickyStyle(p,c?"left":"right",l[d])}}catch(m){h.e(m)}finally{h.f()}}}},{key:"stickRows",value:function(t,e,n){if(this._isBrowser)for(var i="bottom"===n?t.reverse():t,r=0,o=0;o<i.length;o++)if(e[o]){var a=i[o];if(this._isNativeHtmlTable)for(var s=0;s<a.children.length;s++)this._addStickyStyle(a.children[s],n,r);else this._addStickyStyle(a,n,r);if(o===i.length-1)return;r+=a.getBoundingClientRect().height}}},{key:"updateStickyFooterContainer",value:function(t,e){if(this._isNativeHtmlTable){var n=t.querySelector("tfoot");e.some((function(t){return!t}))?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)}}},{key:"_removeStickyStyle",value:function(t,e){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t.style[r]=""}}catch(o){i.e(o)}finally{i.f()}t.style.zIndex=this._getCalculatedZIndex(t),XV.some((function(e){return!!t.style[e]}))||(t.style.position="",t.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(t,e,n){t.classList.add(this._stickCellCss),t.style[e]="".concat(n,"px"),t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}},{key:"_getCalculatedZIndex",value:function(t){var e,n={top:100,bottom:10,left:1,right:1},i=0,r=_createForOfIteratorHelper(XV);try{for(r.s();!(e=r.n()).done;){var o=e.value;t.style[o]&&(i+=n[o])}}catch(a){r.e(a)}finally{r.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(t){for(var e=[],n=t.children,i=0;i<n.length;i++)e.push(n[i].getBoundingClientRect().width);return e}},{key:"_getStickyStartColumnPositions",value:function(t,e){for(var n=[],i=0,r=0;r<t.length;r++)e[r]&&(n[r]=i,i+=t[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(t,e){for(var n=[],i=0,r=t.length;r>0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}();function JV(t){return Error('Could not find column with id "'.concat(t,'".'))}var tU,eU,nU,iU,rU=((iU=function t(e,n){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=n}).\u0275fac=function(t){return new(t||iU)(Oa(bu),Oa(Ys))},iU.\u0275dir=Ce({type:iU,selectors:[["","rowOutlet",""]]}),iU),oU=((nU=function t(e,n){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=n}).\u0275fac=function(t){return new(t||nU)(Oa(bu),Oa(Ys))},nU.\u0275dir=Ce({type:nU,selectors:[["","headerRowOutlet",""]]}),nU),aU=((eU=function t(e,n){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=n}).\u0275fac=function(t){return new(t||eU)(Oa(bu),Oa(Ys))},eU.\u0275dir=Ce({type:eU,selectors:[["","footerRowOutlet",""]]}),eU),sU=((tU=function(){function t(e,n,i,r,o,a,s){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._onDestroy=new A,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Pd({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}
1))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),z_(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(n),_toConsumableArray(i)),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r<n.length;r++)t._renderRows[r].rowDef===e&&i.push(n[r]);t._addStickyColumnStyles(i,e)})),i.forEach((function(e,n){t._addStickyColumnStyles([e],t._footerRowDefs[n])})),Array.from(this._columnDefsByName.values()).forEach((function(t){return t.resetStickyChanged()}))}},{key:"_getAllRenderRows",value:function(){var t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var o=0;o<r.length;o++){var a=r[o],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),t.push(a)}}return t}},{key:"_getRenderRowsForData",value:function(t,e,n){return this._getRowDefs(t,e).map((function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var o=r.shift();return o.dataIndex=e,o}return{data:t,rowDef:i,dataIndex:e}}))}},{key:"_cacheColumnDefs",value:function(){var t=this;this._columnDefsByName.clear(),uU(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEac
1h((function(e){if(t._columnDefsByName.has(e.name))throw function(t){return Error('Duplicate column definition name provided: "'.concat(t,'".'))}(e.name);t._columnDefsByName.set(e.name,e)}))}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=uU(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=uU(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=uU(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var t=this._rowDefs.filter((function(t){return!t.when}));if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(t){this._data=[],z_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t=this;if(this.dataSource){var e,n;if(z_(this.dataSource)?e=this.dataSource.connect(this):(n=this.dataSource)&&(n instanceof k||"function"==typeof n.lift&&"function"==typeof n.subscribe)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Dd(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(g_(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw JV(t);return e})),r=i.map((function(t){return t.sticky})),o=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,o)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n<t.viewContainer.length;n++){var i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}},{key:"_getRowDefs",value:function(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter((function(n){return!n.when||n.when(e,t)}));else{var i=this._rowDefs.find((function(n){return n.when&&n.when(e,t)}))||this._defaultRowDef;i&&n.push(i)}if(!n.length)throw function(t){return Error("Could not find a matching row definition for the"+"provided row data: ".concat(JSON.stringify(t)))}(t);return n}},{key:"_insertRow",value:function(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}},{key:"_renderRow",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,i,n);var r,o=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;KV.mostRecentCellOutlet&&KV.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,i)}}catch(s){o.e(s)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e<n;e++){var i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}},{key:"_getCellTemplates",value:function(t){var e=this;return t&&t.columns?Array.from(t.columns,(function(n){var i=e._columnDefsByName.get(n);if(!i)throw JV(n);return t.extractCellTemplate(i)})):[]}},{key:"_applyNativeTableSections",value:function(){for(var t=this._document.createDocumentFragment(),e=0,n=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];e<n.length;e++){var i=n[e],r=this._document.createElement(i.tag);r.setAttribute("role","rowgroup"),r.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(r)}this._elementRef.nativeElement.appendChild(t)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}},{key:"_checkStickyStates",value:function(){var t=function(t,e){return t||e.hasStickyChanged()};this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}},{key:"_setupStickyStyler",value:function(){var t=this;this._stickyStyler=new ZV(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Dd()).pipe(g_(this._onDestroy)).subscribe((function(e){t._stickyStyler.direction=e,t.updateStickyColumnStyles()}))}},{key:"_getOwnDefs",value:function(t){var e=this;return t.filter((function(t){return!t._table||t._table===e}))}},{key:"trackBy",get:function(){return this._trackByFn},set:function(t){Ai()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),".")),this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows}
1,set:function(t){this._multiTemplateDataRows=t_(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}}]),t}()).\u0275fac=function(t){return new(t||tU)(Oa(du),Oa($o),Oa(Ys),Da("role"),Oa(V_,8),Oa(_c),Oa(T_))},tU.\u0275cmp=ve({type:tU,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,FV,!0),ul(n,GV,!0),ul(n,zV,!0),ul(n,WV,!0)),2&t&&(rl(i=hl())&&(e._contentColumnDefs=i),rl(i=hl())&&(e._contentRowDefs=i),rl(i=hl())&&(e._contentHeaderRowDefs=i),rl(i=hl())&&(e._contentFooterRowDefs=i))},viewQuery:function(t,e){var n;1&t&&(ol(rU,!0),ol(oU,!0),ol(aU,!0)),2&t&&(rl(n=hl())&&(e._rowOutlet=n.first),rl(n=hl())&&(e._headerRowOutlet=n.first),rl(n=hl())&&(e._footerRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[qs([{provide:OV,useExisting:tU}])],ngContentSelectors:hV,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Xa(cV),Za(0),Va(1,0),Va(2,1),Va(3,2))},directives:[oU,rU,aU],encapsulation:2}),tU);function uU(t,e){return t.concat(Array.from(e))}var lU,cU,hU=((cU=function(){function t(e,n){_classCallCheck(this,t),this._table=e,this._options=n,this.justify="start",this._options=n||{}}return _createClass(t,[{key:"ngOnInit",value:function(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(t,e){return t[e]}),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var t=this.name;if(Ai()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._syncColumnDefName()}}]),t}()).\u0275fac=function(t){return new(t||cU)(Oa(sU,8),Oa(DV,8))}
1,cU.\u0275cmp=ve({type:cU,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var n;1&t&&(ol(FV,!0),ol(PV,!0),ol(RV,!0)),2&t&&(rl(n=hl())&&(e.columnDef=n.first),rl(n=hl())&&(e.cell=n.first),rl(n=hl())&&(e.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(ja(0,0),Aa(1,fV,2,3,"th",1),Aa(2,dV,2,3,"td",2),Ba())},directives:[FV,RV,PV,jV,VV],encapsulation:2}),cU),fU=((lU=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:lU}),lU.\u0275inj=pt({factory:function(t){return new(t||lU)}}),lU),dU=[[["caption"]]],pU=["caption"];function mU(t,e){if(1&t&&(Ma(0,"th",3),ws(1),Fa()),2&t){var n=Qa();ss("text-align",n.justify),kr(1),Cs(" ",n.headerText," ")}}function vU(t,e){if(1&t&&(Ma(0,"td",4),ws(1),Fa()),2&t){var n=e.$implicit,i=Qa();ss("text-align",i.justify),kr(1),Cs(" ",i.dataAccessor(n,i.name)," ")}}var gU,yU,_U,bU,wU,kU,CU,xU,SU,EU,IU,AU,TU,OU,DU,PU,RU=((gU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).stickyCssClass="mat-table-sticky",t}return n}(sU)).\u0275fac=function(t){return NU(t||gU)},gU.\u0275cmp=ve({type:gU,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[qs([{provide:sU,useExisting:gU},{provide:OV,useExisting:gU}]),As],ngContentSelectors:pU,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Xa(dU),Za(0),Va(1,0),Va(2,1),Va(3,2))},directives:[oU,rU,aU],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),gU),NU=fi(RU),MU=((yU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(PV)).\u0275fac=function(t){return FU(t||yU)},yU.\u0275dir=Ce({type:yU,selectors:[["","matCellDef",""]],features:[qs([{provide:PV,useExisting:yU}]),As]}),yU),FU=fi(MU),LU=((_U=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(RV)).\u0275fac=function(t){return jU(t||_U)},_U.\u0275dir=Ce({type:_U,selectors:[["","matHeaderCellDef",""]],features:[qs([{provide:RV,useExisting:_U}]),As]}),_U),jU=fi(LU),BU=((bU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(NV)).\u0275fac=function(t){return VU(t||bU)},bU.\u0275dir=Ce({type:bU,selectors:[["","matFooterCellDef",""]],features:[qs([{provide:NV,useExisting:bU}]),As]}),bU),VU=fi(BU),UU=((wU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(FV)).\u0275fac=function(t){return HU(t||wU)},wU.\u0275dir=Ce({type:wU,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[qs([{provide:FV,useExisting:wU},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:wU}]),As]}),wU),HU=fi(UU),zU=((SU=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),r=e.call(this,t,i),i.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),r}return n}(jV)).\u0275fac=function(t){return new(t||SU)(Oa(FV),Oa(Ys))},SU.\u0275dir=Ce({type:SU,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[As]}),SU),qU=((xU=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),r=e.call(this,t,i),i.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),r}return n}(BV)).\u0275fac=function(t){return new(t||xU)(Oa(FV),Oa(Ys))},xU.\u0275dir=Ce({type:xU,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[As]}),xU),WU=((CU=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),r=e.call(this,t,i),i.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),r}return n}(VV)).\u0275fac=function(t){return new(t||CU)(Oa(FV),Oa(Ys))},CU.\u0275dir=Ce({type:CU,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[As]}),CU),GU=((kU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(zV)).\u0275fac=function(t){return KU(t||kU)},kU.\u0275dir=Ce({type:kU,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[qs([{provide:zV,useExisting:kU}]),As]}),kU),KU=fi(GU),YU=((EU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(WV)).\u0275fac=function(t){return QU(t||EU)},EU.\u0275dir=Ce({type:EU,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[qs([{provide:WV,useExisting:EU}]),As]}),EU),QU=fi(YU),$U=((IU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(GV)).\u0275fac=function(t){return XU(t||IU)},IU.\u0275dir=Ce({type:IU,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[qs([{provide:GV,useExisting:IU}]),As]}),IU),XU=fi($U),ZU=((AU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(YV)).\u0275fac=function(t){return JU(t||AU)},AU.\u0275cmp=ve({type:AU,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[qs([{provide:YV,useExisting:AU}]),As],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),AU),JU=fi(ZU),tH=((TU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(QV)).\u0275fac=function(t){return eH(t||TU)},TU.\u0275cmp=ve({type:TU,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[qs([{provide:QV,useExisting:TU}]),As],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),TU),eH=fi(tH),nH=((OU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}($V)).\u0275fac=function(t){return iH(t||OU)},OU.\u0275cmp=ve({type:OU,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[qs([{provide:$V,useExisting:OU}]),As],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Va(0,0)},directives:[KV],encapsulation:2}),OU),iH=fi(nH),rH=((DU=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(hU)).\u0275fac=function(t){return oH(t||DU)},DU.\u0275cmp=ve({type:DU,selectors:[["mat-text-column"]],features:[As],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(ja(0,0),Aa(1,mU,2,3,"th",1),Aa(2,vU,2,3,"td",2),Ba())},directives:[UU,LU,MU,zU,WU],encapsulation:2}),DU),oH=fi(rH),aH=((PU=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:PU}
1),PU.\u0275inj=pt({factory:function(t){return new(t||PU)},imports:[[fU,Rx],Rx]}),PU),sH=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,n),(t=e.call(this))._renderData=new Pd([]),t._filter=new Pd(""),t._internalPageChanges=new A,t._renderChangesSubscription=f.EMPTY,t.sortingDataAccessor=function(t,e){var n=t[e];if(n_(n)){var i=Number(n);return i<9007199254740991?i:n}return n},t.sortData=function(e,n){var i=n.active,r=n.direction;return i&&""!=r?e.sort((function(e,n){var o=t.sortingDataAccessor(e,i),a=t.sortingDataAccessor(n,i),s=0;return null!=o&&null!=a?o>a?s=1:o<a&&(s=-1):null!=o?s=1:null!=a&&(s=-1),s*("asc"==r?1:-1)})):e},t.filterPredicate=function(t,e){var n=Object.keys(t).reduce((function(e,n){return e+t[n]+"\u25ec"}),"").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},t._data=new Pd(i),t._updateChangeSubscription(),t}return _createClass(n,[{key:"_updateChangeSubscription",value:function(){var t=this,e=this._sort?Q(this._sort.sortChange,this._sort.initialized):Dd(null),n=this._paginator?Q(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Dd(null),i=Md([this._data,this._filter]).pipe(B((function(e){var n=_slicedToArray(e,1)[0];return t._filterData(n)}))),r=Md([i,e]).pipe(B((function(e){var n=_slicedToArray(e,1)[0];return t._orderData(n)}))),o=Md([r,n]).pipe(B((function(e){var n=_slicedToArray(e,1)[0];return t._pageData(n)})));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=o.subscribe((function(e){return t._renderData.next(e)}))}},{key:"_filterData",value:function(t){var e=this;return this.filteredData=this.filter?t.filter((function(t){return e.filterPredicate(t,e.filter)})):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(t){return this.sort?this.sortData(t.slice(),this.sort):t}},{key:"_pageData",value:function(t){if(!this.paginator)return t;var e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(t){var e=this;Promise.resolve().then((function(){var n=e.paginator;if(n&&(n.length=t,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),uH=["toast-component",""];function lH(t,e){if(1&t){var n=Ua();Ma(0,"button",5),qa("click",(function(){return en(n),Qa().remove()})),Ma(1,"span",6),ws(2,"\xd7"),Fa(),Fa()}}function cH(t,e){if(1&t&&(ja(0),ws(1),Ba()),2&t){var n=Qa(2);kr(1),Cs("[",n.duplicatesCount+1,"]")}}function hH(t,e){if(1&t&&(Ma(0,"div"),ws(1),Aa(2,cH,2,1,"ng-container",4),Fa()),2&t){var n=Qa();ls(n.options.titleClass),Ea("aria-label",n.title),kr(1),Cs(" ",n.title," "),kr(1),Ra("ngIf",n.duplicatesCount)}}function fH(t,e){if(1&t&&La(0,"div",7),2&t){var n=Qa();ls(n.options.messageClass),Ra("innerHTML",n.message,tr)}}function dH(t,e){if(1&t&&(Ma(0,"div",8),ws(1),Fa()),2&t){var n=Qa();ls(n.options.messageClass),Ea("aria-label",n.message),kr(1),Cs(" ",n.message," ")}}function pH(t,e){if(1&t&&(Ma(0,"div"),La(1,"div",9),Fa()),2&t){var n=Qa();kr(1),ss("width",n.width+"%")}}var mH,vH,gH,yH,_H=function(){function t(e,n,i,r,o,a){var s=this;_classCallCheck(this,t),this.toastId=e,this.config=n,this.message=i,this.title=r,this.toastType=o,this.toastRef=a,this._onTap=new A,this._onAction=new A,this.toastRef.afterClosed().subscribe((function(){s._onAction.complete(),s._onTap.complete()}
1))}return _createClass(t,[{key:"triggerTap",value:function(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}},{key:"onTap",value:function(){return this._onTap.asObservable()}},{key:"triggerAction",value:function(t){this._onAction.next(t)}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),bH=new Ht("ToastConfig"),wH=function(){function t(e,n){_classCallCheck(this,t),this.component=e,this.injector=n}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedHost=t,t.attach(this,e)}},{key:"detach",value:function(){var t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),kH=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._hostDomElement=t,o._componentFactoryResolver=i,o._appRef=r,o}return _createClass(n,[{key:"attachComponentPortal",value:function(t,e){var n,i=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return n=r.create(t.injector),this._appRef.attachView(n.hostView),this.setDisposeFn((function(){i._appRef.detachView(n.hostView),n.destroy()})),e?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}},{key:"detach",value:function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}}]),t}()),CH=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(_c))},t.\u0275prov=dt({factory:function(){return new t(Xt(_c))},token:t,providedIn:"root"}),t}(),xH=function(){function t(e){_classCallCheck(this,t),this._portalHost=e}return _createClass(t,[{key:"attach",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._portalHost.attach(t,e)}},{key:"detach",value:function(){return this._portalHost.detach()}}]),t}(),SH=function(){var t=function(){function t(e,n,i,r){_classCallCheck(this,t),this._overlayContainer=e,this._componentFactoryResolver=n,this._appRef=i,this._document=r,this._paneElements=new Map}return _createClass(t,[{key:"create",value:function(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}},{key:"getPaneElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}},{key:"_createPaneElement",value:function(t,e){var n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalHost",value:function(t){return new kH(t,this._componentFactoryResolver,this._appRef)}},{key:"_createOverlayRef",value:function(t){return new xH(this._createPortalHost(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Xt(CH),Xt(Ks),Xt(ic),Xt(_c))},t.\u0275prov=dt({factory:function(){return new t(Xt(CH),Xt(Ks),Xt(ic),Xt(_c))},token:t,providedIn:"root"}),t}(),EH=function(){function t(e){_classCallCheck(this,t),this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new A,this._activate=new A,this._manualClose=new A,this._resetTimeout=new A,this._countDuplicate=new A}return _createClass(t,[{key:"manualClose",value:function(){this._manualClose.next(),this._manualClose.complete()}},{key:"manualClosed",value:function(){return this._manualClose.asObservable()}},{key:"timeoutReset",value:function(){return this._resetTimeout.asObservable()}},{key:"countDuplicate",value:function(){return this._countDuplicate.asObservable()}},{key:"close",value:function(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"isInactive",value:function(){return this._activate.isStopped}},{key:"activate",value:function(){this._activate.next(),this._activate.complete()}},{key:"afterActivate",value:function(){return this._activate.asObservable()}},{key:"onDuplicate",value:function(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}]),t}(),IH=function(){function t(e,n){_classCallCheck(this,t),this._toastPackage=e,this._parentInjector=n}return _createClass(t,[{key:"get",value:function(t,e,n){return t===_H?this._toastPackage:this._parentInjector.get(t,e,n)}}]),t}(),AH=((vH=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.overlay=n,this._injector=i,this.sanitizer=r,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}return _createClass(t,[{key:"show",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return this._preBuildNotification(i,t,e,this.applyConfig(n))}},{key:"success",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}},{key:"error",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}},{key:"info",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}},{key:"warning",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}},{key:"clear",value:function(t){var e,n=_createForOfIteratorHelper(this.toasts);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(void 0!==t){if(i.toastId===t)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}}catch(r){n.e(r)}finally{n.f()}}},{key:"remove",value:function(t){var e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){var n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}},{key:"findDuplicate",value:function(t,e,n){var i,r=_createForOfIteratorHelper(this.toasts);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.message===t)return o.toastRef.onDuplicate(e,n),o}}catch(a){r.e(a)}finally{r.f()}return null}},{key:"applyConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},this.toastrConfig),t)}},{key:"_findToast",value:function(t){for(var e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}},{key:"_preBuildNotification",value:function(t,e,n,i){var r=this;return i.onActivateTick?this.ngZone.run((function(){return r._buildNotification(t,e,n,i)})):this._buildNotification(t,e,n,i)}},{key:"_buildNotification",value:function(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");var r=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;var o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;var s=e;e&&i.enableHtml&&(s=this.sanitizer.sanitize(Xi.HTML,e));var u=new EH(a),l=new _H(this.index,i,s,n,t,u),c=new IH(l,this._injector),h=new wH(i.toastComponent,c),f=a.attach(h,this.toastrConfig.newestOnTop);u.componentInstance=f.instance;var d={toastId:this.index,message:e||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:l.onTap(),onAction:l.onAction(),portal:f};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout((function(){d.toastRef.activate()}))),this.toasts.push(d),d}}]),t}()).\u0275fac=function(t){return new(t||vH)(Xt(bH),Xt(SH),Xt(fa),Xt(Cd),Xt(Ll))},vH.\u0275prov=dt({factory:function(){return new vH(Xt(bH),Xt(SH),Xt(zt),Xt(Cd),Xt(Ll))},token:vH,providedIn:"root"}),vH),TH=((mH=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.toastrService=e,this.toastPackage=n,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses="".concat(n.toastType," ").concat(n.config.toastClass),this.sub=n.toastRef.afterActivate().subscribe((function(){r.activateToast()})),this.sub1=n.toastRef.manualClosed().subscribe((function(){r.remove()})),this.sub2=n.toastRef.timeoutReset().subscribe((function(){r.resetTimeout()})),this.sub3=n.toastRef.countDuplicate().subscribe((function(t){r.duplicatesCount=t}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}},{key:"activateToast",value:function(){var t=this;this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout((function(){return t.remove()}),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10))}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}}},{key:"resetTimeout",value:function(){var t=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout((function(){return t.remove()}),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0
1),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10)}},{key:"remove",value:function(){var t=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout((function(){return t.toastrService.remove(t.toastPackage.toastId)}),+this.toastPackage.config.easeTime))}},{key:"tapToast",value:function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var t=this;!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout((function(){return t.remove()}),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return t.updateProgress()}),10))}},{key:"outsideTimeout",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.timeout=setTimeout((function(){return n.runInsideAngular(t)}),e)})):this.timeout=setTimeout((function(){return t()}),e)}},{key:"outsideInterval",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.intervalId=setInterval((function(){return n.runInsideAngular(t)}),e)})):this.intervalId=setInterval((function(){return t()}),e)}},{key:"runInsideAngular",value:function(t){this.ngZone?this.ngZone.run((function(){return t()})):t()}},{key:"displayStyle",get:function(){if("inactive"===this.state.value)return"none"}}]),t}()).\u0275fac=function(t){return new(t||mH)(Oa(AH),Oa(_H),Oa(Ll))},mH.\u0275cmp=ve({type:mH,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&qa("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(Es("@flyInOut",e.state),ls(e.toastClasses),ss("display",e.displayStyle))},attrs:uH,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(Aa(0,lH,3,0,"button",0),Aa(1,hH,3,5,"div",1),Aa(2,fH,1,3,"div",2),Aa(3,dH,2,4,"div",3),Aa(4,pH,2,2,"div",4)),2&t&&(Ra("ngIf",e.options.closeButton),kr(1),Ra("ngIf",e.title),kr(1),Ra("ngIf",e.message&&e.options.enableHtml),kr(1),Ra("ngIf",e.message&&!e.options.enableHtml),kr(1),Ra("ngIf",e.options.progressBar))},directives:[Fh],encapsulation:2,data:{animation:[Jw("flyInOut",[rk("inactive",ik({opacity:0})),rk("active",ik({opacity:1})),rk("removed",ik({opacity:0})),ok("inactive => active",tk("{{ easeTime }}ms {{ easing }}")),ok("active => removed",tk("{{ easeTime }}ms {{ easing }}"))])]}}),mH),OH=Object.assign(Object.assign({},{maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"}),{toastComponent:TH}),DH=((yH=gH=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:gH,providers:[{provide:bH,useValue:{default:OH,config:t}}]}}}]),t}()).\u0275mod=we({type:yH}),yH.\u0275inj=pt({factory:function(t){return new(t||yH)},imports:[[Lf]]}),yH);function PH(t,e){1&t&&(Ma(0,"th",13),ws(1,"Users"),Fa())}function RH(t,e){if(1&t&&(Ma(0,"td",14),ws(1),La(2,"br"),ws(3),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.name," "),kr(2),Cs(" ",n.email," ")}}function NH(t,e){1&t&&(Ma(0,"th",13),ws(1," Role "),Fa())}function MH(t,e){if(1&t&&(Ma(0,"td",14),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.role,"")}}function FH(t,e){1&t&&(Ma(0,"th",13),ws(1," Org. templates access "),Fa())}function LH(t,e){if(1&t&&(Ma(0,"td",14),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.access,"")}}function jH(t,e){1&t&&La(0,"th",13)}function BH(t,e){if(1&t){var n=Ua();Ma(0,"td",14),Ma(1,"button",15),qa("click",(function(){en(n);var t=e.$implicit;return Qa().edit(t)})),ws(2," Edit "),Fa(),Fa()}if(2&t){var i=Qa();kr(1),us("spinner",i.loading),Ra("disabled",i.loading)}}function VH(t,e){1&t&&La(0,"th",13)}function UH(t,e){1&t&&La(0,"mat-spinner",18),2&t&&Ra("diameter",25)}function HH(t,e){if(1&t){var n=Ua();Ma(0,"button",19),qa("click",(function(){en(n);var t=Qa().$implicit;return Qa().deleteUser(t)})),ws(1," Delete "),Fa()}}function zH(t,e){if(1&t&&(Ma(0,"td",14),Aa(1,UH,1,1,"mat-spinner",16),Aa(2,HH,2,0,"button",17),Fa()),2&t){var n=e.$implicit;kr(1),Ra("ngIf",n.isDeleting),kr(1),Ra("ngIf",!n.isDeleting)}}function qH(t,e){1&t&&La(0,"th",13)}function WH(t,e){1&t&&La(0,"mat-spinner",18),2&t&&Ra("diameter",25)}function GH(t,e){if(1&t){var n=Ua();Ma(0,"button",19),qa("click",(function(){en(n);var t=Qa().$implicit;return Qa().resetPassword(t)})),ws(1," Reset Password "),Fa()}}function KH(t,e){if(1&t&&(Ma(0,"td",14),Aa(1,WH,1,1,"mat-spinner",16),Aa(2,GH,2,0,"button",17),Fa()),2&t){var n=e.$implicit;kr(1),Ra("ngIf",n.isResetting),kr(1),Ra("ngIf",!n.isResetting)}}function YH(t,e){1&t&&La(0,"tr",20)}function QH(t,e){1&t&&La(0,"tr",21)}var $H,XH=function(){return[5,10,20]},ZH=(($H=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.dialog=e,this.data=n,this.teamService=i,this.firestore=r,this.cdr=o,this.toastr=a,this.displayedColumns=["Users","Role","Access","Delete","Edit","Reset"],this.roles=[{value:"admin",viewValue:"Admin"},{value:"member",viewValue:"Member"}],this.accesses=[{value:"editor",viewValue:"Editor"},{value:"viewer",viewValue:"Viewer"}]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!1,this.data.$user.asObservable().subscribe((function(e){return t.user=e})),this.firestore.collection("teams",(function(e){return e.where("users.".concat(t.user.id,".access"),"in",["editor","viewer"])})).valueChanges({idField:"id"}).subscribe((function(e){return t.saveTeam(e)}))}},{key:"saveTeam",value:function(t){this.team=t[0],console.log("this.team",this.team),Object.keys(this.team.users).length>this.team.number&&this.toastr.error("The registered users number is greater than the maximum allowed Users , please delete "+(Object.keys(this.team.users).length-this.team.number)+" user(s) in order to have access to the Organization Templates"),this.MaptoObject(this.team.users),this.dataSource=new sH(this.dataTable),this.dataSource.paginator=this.paginator}},{key:"MaptoObject",value:function(t){var e=this;this.dataTable=Object.keys(t).map((function(n){return Object.assign({id:n,teamId:e.team.id,isDeleting:!1,isResetting:!1,isEditing:!1},t[n])}))}},{key:"deleteUser",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,console.log("remove member, ",n),t.isDeleting=!0,e.next=5,this.teamService.deleteUser(n,this.team.id).then((function(e){t.isDeleting=!1,i.toastr.success(e.result)})).catch((function(e){t.isDeleting=!1,i.toastr.error(e.message),console.log(e)}));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"resetPassword",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isResetting=!0,e.next=3,this.teamService.resetPassword(t.email).then((function(){t.isResetting=!1,n.toastr.success("Success! An email has been sent to "+t.email)})).catch((function(e){t.isResetting=!1,n.toastr.error("Oops, looks like something went wrong"),console.log(e)}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"newUser",value:function(){var t={teamId:this.team.id,name:"",email:"",role:"",access:""};this.dataSource.data.length==this.team.number?this.toastr.error("You have reached the maximum number of allowed users. Please purchase additional users in the Billing Section"):this.dialog.open(cF,{data:{user:t}})}},{key:"edit",value:function(t){this.dialog.open(cF,{data:{user:t}})}}]),t}()).\u0275fac=function(t){return new(t||$H)(Oa(VS),Oa(zF),Oa(RF),Oa(Zy),Oa($o),Oa(AH))},$H.\u0275cmp=ve({type:$H,selectors:[["vf-settings-users"]],viewQuery:function(t,e){var n;1&t&&al(uV,!0),2&t&&rl(n=hl())&&(e.paginator=n.first)},decls:26,vars:5,consts:[["id","new-member","mat-flat-button","","color","primary",3,"click"],["mat-table","","matSort","true",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","Users"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Role"],["matColumnDef","Access"],["matColumnDef","Edit"],["matColumnDef","Delete"],["matColumnDef","Reset"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-flat-button","","color","primary",3,"disabled","click"],[3,"diameter",4,"ngIf"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],[3,"diameter"],["mat-flat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Ma(0,"button",0),qa("click",(function(){return e.newUser()})),Ma(1,"mat-icon"),ws(2,"add_circle"),Fa(),ws(3," New User\n"),Fa(),Ma(4,"table",1),ja(5,2),Aa(6,PH,2,0,"th",3),Aa(7,RH,4,2,"td",4),Ba(),ja(8,5),Aa(9,NH,2,0,"th",3),Aa(10,MH,2,1,"td",4),Ba(),ja(11,6),Aa(12,FH,2,0,"th",3),Aa(13,LH,2,1,"td",4),Ba(),ja(14,7),Aa(15,jH,1,0,"th",3),Aa(16,BH,3,3,"td",4),Ba(),ja(17,8),Aa(18,VH,1,0,"th",3),Aa(19,zH,3,2,"td",4),Ba(),ja(20,9),Aa(21,qH,1,0,"th",3),Aa(22,KH,3,2,"td",4),Ba(),Aa(23,YH,1,0,"tr",10),Aa(24,QH,1,0,"tr",11),Fa(),La(25,"mat-paginator",12)),2&t&&(kr(4),Ra("dataSource",e.dataSource),kr(19),Ra("matHeaderRowDef",e.displayedColumns),kr(1),Ra("matRowDefColumns",e.displayedColumns),kr(1),Ra("pageSizeOptions",Lu(4,XH)))},directives:[MA,NM,RU,UU,LU,MU,GU,$U,uV,zU,WU,Fh,ZP,ZU,nH],styles:["table[_ngcontent-%COMP%]{width:100%}#new-member[_ngcontent-%COMP%]{margin:3em 0 1em;float:right}#new-member[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding-right:5px}.mat-tab-group[_ngcontent-%COMP%]{width:90%;max-width:1020px}.mat-spinner[_ngcontent-%COMP%]{margin-left:3em}"]}),$H),JH="https://js.stripe.com/v3",tz=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,ez=null,nz=function(t,e){if(null===t)return null;var n,i=t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(n=e)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}());return function(t){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.8.0"})}(i),i},iz=Promise.resolve().then((function(){return null!==ez?ez:ez=new Promise((function(t,e){if("undefined"!=typeof window)if(window,window.Stripe)t(window.Stripe);else try{var n=function(){for(var t=document.querySelectorAll('script[src^="'.concat(JH,'"]')),e=0;e<t.length;e++){var n=t[e];if(tz.test(n.src))return n}return null}();
1n||(n=function(t){var e=document.createElement("script");e.src="".concat(JH).concat("");var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(e),e}()),n.addEventListener("load",(function(){window.Stripe?t(window.Stripe):e(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){e(new Error("Failed to load Stripe.js"))}))}catch(i){return void e(i)}else t(null)}))})),rz=!1;iz.catch((function(t){rz||console.warn(t)}));var oz,az,sz,uz=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return rz=!0,iz.then((function(t){return nz(t,e)}))},lz=((sz=function(){function t(e,n,i,r){var o=this;_classCallCheck(this,t),this.functions=e,this.firestore=n,this.dialog=i,this.data=r,uz(mc.stripeConfig.key).then((function(t){return o.stripe=t}))}return _createClass(t,[{key:"OnTeamCreate",value:function(t){var e={name:t.name,email:t.email,access:"editor",role:"admin",isCreator:!0},n="".concat(t.name,"'s Organization");return this.functions.httpsCallable("OnTeamCreate")({email:t.email,name:n,userId:t.id,users:_defineProperty({},t.id,e)}).toPromise()}},{key:"teamNameChange",value:function(t,e,n){return console.log("in Team functin",t,e,n),this.functions.httpsCallable("teamNameChange")({teamId:t,stripeId:e,name:n}).toPromise()}},{key:"teamEmailChange",value:function(t,e,n){return console.log("in Team functin",t,e,n),this.functions.httpsCallable("teamEmailChange")({teamId:t,stripeId:e,email:n}).toPromise()}},{key:"stripeTeamCheckout",value:function(t,e){var n=this;return this.functions.httpsCallable("stripeTeamCheckout")({priceId:"price_1Hnz3rEjLLwmUDxAag049IpA",stripeId:t,quantity:e,location:window.location.origin}).toPromise().then((function(t){return n.stripe.redirectToCheckout({sessionId:t})})).then((function(t){console.log("this is the result of the checkout",t),t.error&&console.log(t.error.message)}))}},{key:"billingTeamPortal",value:function(t,e){this.dialog.waiting("Redirecting you to your billing page..."),this.functions.httpsCallable("billingTeamPortal")({stripeId:t,location:window.location.href}).toPromise().then((function(t){window.location.href=t}))}},{key:"goToStripe",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.dialog.waiting("Redirecting you to your billing page..."),e.next=3,this.getStripeDashboardUrl(t);case 3:n=e.sent,window.location.href=n;case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getStripeDashboardUrl",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stripe.billingPortal.sessions.create({customer:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getPlans",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r,o,a,s,u,l,c,h,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.firestore.firestore.collection("tiers").where("active","==",!0).get();case 2:e=t.sent,n=[],i=_createForOfIteratorHelper(e.docs),t.prev=5,i.s();case 7:if((r=i.n()).done){t.next=22;break}return o=r.value,t.next=11,o.ref.collection("prices").where("active","==",!0).get();case 11:a=t.sent,s=o.data(),u=s.name,l=s.description,c=s.role,h={name:u,description:l,role:c,prices:[]},f=_createForOfIteratorHelper(a.docs);try{for(f.s();!(d=f.n()).done;)p=d.value,h.prices.push({id:p.id,description:p.get("description")})}catch(m){f.e(m)}finally{f.f()}n.push(h);case 20:t.next=7;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(5),i.e(t.t0);case 27:return t.prev=27,i.f(),t.finish(27);case 30:return t.abrupt("return",n);case 31:case"end":return t.stop()}}),t,this,[[5,24,27,30]])})))}},{key:"startTeamSubscription",value:function(t,e,n){return vy(this,void 0,void 0,regeneratorRuntime.mark((function i(){var r,o,a=this;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return console.log("teamId PriceId quantity plan",t,e,n),this.dialog.waiting("Redirecting you to checkout..."),r=this.data.$user.getValue(),i.next=4,this.firestore.collection("users").doc(r.id).collection("checkout_sessions").add({price:e,success_url:"".concat(window.location.origin,"/settings?stripe=success&plan=").concat(n),cancel_url:window.location.origin+"/upgrade?stripe=canceled",billing_address_collection:"auto"});case 4:o=i.sent.onSnapshot((function(t){var e=t.data(),i=e.sessionId,r=e.quantity,s=e.price;console.log("session, quantity",i,r,s),i&&(a.stripe.redirectToCheckout({lineItems:[{price:s,quantity:5}],mode:"subscription",successUrl:"".concat(window.location.origin,"/settings?stripe=success&plan=").concat(n),cancelUrl:window.location.origin+"/upgrade?stripe=canceled"}),o())}));case 5:case"end":return i.stop()}}),i,this)})))}}]),t}()).\u0275fac=function(t){return new(t||sz)(Xt(xN),Xt(Zy),Xt(fF),Xt(zF))},sz.\u0275prov=dt({token:sz,factory:sz.\u0275fac,providedIn:"root"}),sz),cz=((az=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.authService=e,this.data=n,this.router=i,this.zone=r,this.teamBilling=o,this.teamService=a,this.route=s,this.dialog=u,this.options=[{header:"Free",price:"Free",plan:"free",rate:"40 Credits / Month",cta:"Basic"},{header:"3-month License",price:"$20",plan:"quarterly",rate:"Unlimited",cta:"Go Pro",priceId:mc.stripeConfig.quarterly},{header:"12-month License",price:"$60",plan:"yearly",rate:"Unlimited",cta:"Go Pro",popular:!0,priceId:mc.stripeConfig.yearly}]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.route.params.subscribe((function(e){var n=e.teamId;t.$team=t.teamService.getTeamById(n),t.$team.subscribe((function(e){return t.team=e})),t.teamId=n}
1)),this.$user=this.data.$user.asObservable(),this.nextBillingCycle=new Date(1e3*this.team.nextBillingCycle.seconds).toLocaleDateString()}},{key:"teamNameChange",value:function(){this.dialog.open(hF,{data:{team:this.team,status:"name"}})}},{key:"teamEmailChange",value:function(){this.dialog.open(hF,{data:{team:this.team,status:"email"}})}},{key:"teamNumberChange",value:function(){this.dialog.open(hF,{data:{team:this.team,status:"number"}})}},{key:"billingTeamPortal",value:function(){console.log("Going"),this.teamBilling.billingTeamPortal(this.team.stripeId,window.location.href)}},{key:"choosePlan",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1],vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.priceId&&(console.log("Plan chosen",t),this.teamBilling.startTeamSubscription(this.teamId,t.priceId,t));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"cancel",value:function(){var t=this;this.zone.run((function(){return t.router.navigateByUrl("/")}))}},{key:"help",value:function(){console.log("clicked help")}}]),t}()).\u0275fac=function(t){return new(t||az)(Oa(WF),Oa(zF),Oa(Gv),Oa(Ll),Oa(lz),Oa(RF),Oa(Fm),Oa(VS))},az.\u0275cmp=ve({type:az,selectors:[["vf-settings-billing"]],decls:37,vars:3,consts:[[1,"proper-width"],[1,"settings-section"],["fxLayout","row"],[1,"label"],["mat-button","",1,"logout",3,"click"],["fxFlex",""]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h2"),ws(3,"Organization Info"),Fa(),Ma(4,"div",2),Ma(5,"div",3),ws(6,"Name"),Fa(),Ma(7,"div"),ws(8),Fa(),Ma(9,"button",4),qa("click",(function(){return e.teamNameChange()})),ws(10,"(Change Name)"),Fa(),La(11,"div",5),Fa(),Ma(12,"div",2),Ma(13,"div",3),ws(14,"Billing Email"),Fa(),Ma(15,"div"),ws(16),Fa(),Ma(17,"button",4),qa("click",(function(){return e.teamEmailChange()})),ws(18,"(Change Email)"),Fa(),Fa(),Ma(19,"div",2),Ma(20,"div",3),ws(21,"Allowed Users"),Fa(),Ma(22,"div"),ws(23),Fa(),Ma(24,"button",4),qa("click",(function(){return e.billingTeamPortal()})),ws(25,"(Update Number)"),Fa(),La(26,"div",5),Fa(),Fa(),Ma(27,"div",1),Ma(28,"h2"),ws(29,"Payment Info"),Fa(),Ma(30,"div",2),Ma(31,"div",3),ws(32,"See Billing Dashboard"),Fa(),Ma(33,"button",4),qa("click",(function(){return e.billingTeamPortal()})),ws(34,"(Billing Dashboard))"),Fa(),La(35,"div",5),Fa(),La(36,"br"),Fa(),Fa()),2&t&&(kr(8),ks(e.team.name),kr(8),ks(e.team.email),kr(7),ks(e.team.number))},directives:[uD,MA,WD],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.mat-tab-group[_ngcontent-%COMP%], .proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}.settings-section[_ngcontent-%COMP%]{margin-bottom:50px;margin-top:0;position:relative}.settings-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:3em;background:#ebeef2;padding-left:10px;border-radius:4px}.settings-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:10px}.settings-section[_ngcontent-%COMP%] button#edit[_ngcontent-%COMP%]{position:absolute;top:40px;right:10px}.label[_ngcontent-%COMP%]{width:150px}#settings-title[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{font-weight:700}.mat-button.logout[_ngcontent-%COMP%], .mat-button.upgrade[_ngcontent-%COMP%]{line-height:0;color:#4284fb;font-weight:300;left:25px}#callout[_ngcontent-%COMP%]{margin-top:50px;padding:16px 16px 16px 12px;display:flex;width:100%;max-width:400px;border-radius:3px;border:1px solid transparent;background:rgba(251,243,219,.66)}a#callout[_ngcontent-%COMP%]{color:#4284fb}#lightning-icon[_ngcontent-%COMP%]{height:22px;margin-bottom:-3px}mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{visibility:hidden}mat-list-item[_ngcontent-%COMP%]:hover > mat-icon[_ngcontent-%COMP%]{visibility:visible}"]}),az),hz=((oz=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))}}]),t}()).\u0275fac=function(t){return new(t||oz)},oz.\u0275cmp=ve({type:oz,selectors:[["vf-settings-page"]],decls:9,vars:0,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],[1,"header","proper-width"],["id","settings-title"],["label","Users"],["label","Billing"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1",2),ws(3," Organization Settings "),Fa(),Fa(),Ma(4,"mat-tab-group"),Ma(5,"mat-tab",3),La(6,"vf-settings-users"),Fa(),Ma(7,"mat-tab",4),La(8,"vf-settings-billing"),Fa(),Fa(),Fa())},directives:[xP,uD,OP,FB,EB,ZH,cz],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.mat-tab-group[_ngcontent-%COMP%], .proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}.settings-section[_ngcontent-%COMP%]{margin-bottom:50px;margin-top:0;position:relative}.settings-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:3em;background:#ebeef2;padding-left:10px;border-radius:4px}.settings-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:10px}.settings-section[_ngcontent-%COMP%] button#edit[_ngcontent-%COMP%]{position:absolute;top:40px;right:10px}.label[_ngcontent-%COMP%]{width:150px}#settings-title[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{font-weight:700}.mat-button.logout[_ngcontent-%COMP%], .mat-button.upgrade[_ngcontent-%COMP%]{line-height:0;color:#4284fb;font-weight:300;
1left:25px}#callout[_ngcontent-%COMP%]{margin-top:50px;padding:16px 16px 16px 12px;display:flex;width:100%;max-width:400px;border-radius:3px;border:1px solid transparent;background:rgba(251,243,219,.66)}a#callout[_ngcontent-%COMP%]{color:#4284fb}#lightning-icon[_ngcontent-%COMP%]{height:22px;margin-bottom:-3px}mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{visibility:hidden}mat-list-item[_ngcontent-%COMP%]:hover > mat-icon[_ngcontent-%COMP%]{visibility:visible}"]}),oz);function fz(t,e){1&t&&La(0,"img",5)}function dz(t,e){1&t&&La(0,"img",6)}function pz(t,e){1&t&&(Ma(0,"h2"),ws(1,"Type less. Sell more."),Fa())}function mz(t,e){1&t&&(Ma(0,"h2"),ws(1,"Type less. Sell more."),Fa())}function vz(t,e){if(1&t&&(Ma(0,"div",1),Aa(1,fz,1,0,"img",2),Aa(2,dz,1,0,"img",3),Aa(3,pz,2,0,"h2",4),Aa(4,mz,2,0,"h2",4),Ma(5,"h3"),ws(6,"Give your poor fingers a break. Make templates for messages that you send over and over. Group your templates with folders."),Fa(),Fa()),2&t){var n=Qa();kr(1),Ra("ngIf",!!n.folder),kr(1),Ra("ngIf",!n.folder),kr(1),Ra("ngIf",!!n.folder),kr(1),Ra("ngIf",!n.folder)}}var gz,yz=((gz=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||gz)},gz.\u0275cmp=ve({type:gz,selectors:[["vf-template-placehoder"]],inputs:{templates:"templates",folder:"folder"},decls:1,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center","id","wrapper",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","id","wrapper"],["src","assets/folder-lady.png","alt","",4,"ngIf"],["src","assets/rocket-man-stuff.svg","alt","",4,"ngIf"],[4,"ngIf"],["src","assets/folder-lady.png","alt",""],["src","assets/rocket-man-stuff.svg","alt",""]],template:function(t,e){1&t&&Aa(0,vz,7,4,"div",0),2&t&&Ra("ngIf",!(null!=e.templates&&e.templates.length))},directives:[Fh,uD,OP],styles:["#wrapper[_ngcontent-%COMP%]{margin-top:50px}img[_ngcontent-%COMP%]{max-width:400px}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{text-align:center}
1h2[_ngcontent-%COMP%]{padding-top:20px}h3[_ngcontent-%COMP%]{max-width:500px}"]}),gz);function _z(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bg,i=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new bz(i,n))}}var bz=function(){function t(e,n){_classCallCheck(this,t),this.delay=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new wz(t,this.delay,this.scheduler))}}]),t}(),wz=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new kz(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Eg.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Eg.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(m),kz=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},Cz=["mat-menu-item",""],xz=["*"];function Sz(t,e){if(1&t){var n=Ua();Ma(0,"div",0),qa("keydown",(function(t){return en(n),Qa()._handleKeydown(t)}))("click",(function(){return en(n),Qa().closed.emit("click")}))("@transformMenu.start",(function(t){return en(n),Qa()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return en(n),Qa()._onAnimationDone(t)})),Ma(1,"div",1),Za(2),Fa(),Fa()}if(2&t){var i=Qa();Ra("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ea("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var Ez,Iz,Az,Tz,Oz,Dz,Pz,Rz,Nz={transformMenu:Jw("transformMenu",[rk("void",ik({opacity:0,transform:"scale(0.8)"})),ok("void => enter",ek([sk(".mat-menu-content, .mat-mdc-menu-content",tk("100ms linear",ik({opacity:1}))),tk("120ms cubic-bezier(0, 0, 0.2, 1)",ik({transform:"scale(1)"}))])),ok("* => void",tk("100ms 25ms linear",ik({opacity:0})))]),fadeInItems:Jw("fadeInItems",[rk("showing",ik({opacity:1})),ok("void => *",[ik({opacity:0}),tk("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Mz=((Ez=function(){function t(e,n,i,r,o,a,s){_classCallCheck(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=s,this._attached=new A}return _createClass(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new cb(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new db(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}()).\u0275fac=function(t){return new(t||Ez)(Oa(yu),Oa(Ks),Oa(ic),Oa(fa),Oa(bu),Oa(_c),Oa($o))},Ez.\u0275dir=Ce({type:Ez,selectors:[["ng-template","matMenuContent",""]]}),Ez),Fz=new Ht("MAT_MENU_PANEL"),Lz=Fx(Nx((function t(){_classCallCheck(this,t)}))),jz=((Iz=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new A,a._focused=new A,a._highlighted=!1,a._triggersSubmenu=!1,r&&r.monitor(a._elementRef,!1),o&&o.addItem&&o.addItem(_assertThisInitialized(a)),a._document=i,a}return _createClass(n,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r<i;r++)t.childNodes[r].nodeType===e&&(n+=t.childNodes[r].textContent);return n.trim()}}]),n}(Lz)).\u0275fac=function(t){return new(t||Iz)(Oa(Ys),Oa(_c),Oa(zw),Oa(Fz,8))},Iz.\u0275cmp=ve({type:Iz,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(Ea("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),us("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[As],attrs:Cz,ngContentSelectors:xz,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(Xa(),Za(0),La(1,"div",0)),2&t&&(kr(1),Ra("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[aS],encapsulation:2,changeDetection:0}),Iz),Bz=new Ht("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Vz=0,Uz=((Tz=function(){function t(e,n,i){_classCallCheck(this,t),this._elementRef=e,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Qu,this._tabSubscription=f.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new A,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ku,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Vz++)}return _createClass(t,[{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var t=this;this._updateDirectDescendants(),this._keyManager=new Aw(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit
1("tab")})),this._directDescendantItems.changes.pipe(vp(this._directDescendantItems),fp((function(t){return Q.apply(void 0,_toConsumableArray(t.map((function(t){return t._focused}))))}))).subscribe((function(e){return t._keyManager.updateActiveItem(e)}))}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(vp(this._directDescendantItems),fp((function(t){return Q.apply(void 0,_toConsumableArray(t.map((function(t){return t._hovered}))))})))}},{key:"addItem",value:function(t){}},{key:"removeItem",value:function(t){}},{key:"_handleKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;switch(e){case 27:bb(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:bb(t)||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}},{key:"focusFirstItem",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(vp(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=t_(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=t_(t)}},{key:"panelClass",set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0}
1)),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}()).\u0275fac=function(t){return new(t||Tz)(Oa(Ys),Oa(Ll),Oa(Bz))},Tz.\u0275dir=Ce({type:Tz,contentQueries:function(t,e,n){var i;1&t&&(ul(n,Mz,!0),ul(n,jz,!0),ul(n,jz,!1)),2&t&&(rl(i=hl())&&(e.lazyContent=i.first),rl(i=hl())&&(e._allItems=i),rl(i=hl())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&al(yu,!0),2&t&&rl(n=hl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),Tz),Hz=((Az=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(Uz)).\u0275fac=function(t){return zz(t||Az)},Az.\u0275dir=Ce({type:Az,features:[As]}),Az),zz=fi(Hz),qz=((Oz=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){return _classCallCheck(this,n),e.call(this,t,i,r)}return n}(Hz)).\u0275fac=function(t){return new(t||Oz)(Oa(Ys),Oa(Ll),Oa(Bz))},Oz.\u0275cmp=ve({type:Oz,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[qs([{provide:Fz,useExisting:Hz},{provide:Hz,useExisting:Oz}]),As],ngContentSelectors:xz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Xa(),Aa(0,Sz,3,6,"ng-template"))},directives:[Dh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Nz.transformMenu,Nz.fadeInItems]},changeDetection:0}),Oz),Wz=new Ht("mat-menu-scroll-strategy"),Gz={provide:Wz,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Kz=R_({passive:!0}),Yz=((Rz=function(){function t(e,n,i,r,o,a,s,u){var l=this;_classCallCheck(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.EMPTY,this._hoverSubscription=f.EMPTY,this._menuCloseSubscription=f.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ku,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ku,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Kz),a&&(a._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Kz),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()
1),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof Hz&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof Hz?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Hd((function(t){return"void"===t.toState})),ap(1),g_(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Ob({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Q(e,this._parentMenu?this._parentMenu.closed:Dd(),this._parentMenu?this._parentMenu._hovered().pipe(Hd((function(e){return e!==t._menuItemInstance})),Hd((function(){return t._menuOpen}))):Dd(),n)}},{key:"_handleMousedown",value:function(t){Bw(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Hd((function(e){return e===t._menuItemInstance&&!e.disabled})),_z(0,Kg)).subscribe((function(){t._openedBy="mouse",t.menu instanceof Hz&&t.menu._isAnimating?t.menu._animationDone.pipe(ap(1),_z(0,Kg),g_(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new cb(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit
1(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Rz)(Oa(tw),Oa(Ys),Oa(bu),Oa(Wz),Oa(Hz,8),Oa(jz,10),Oa(V_,8),Oa(zw))},Rz.\u0275dir=Ce({type:Rz,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&qa("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&Ea("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),Rz),Qz=((Pz=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Pz}),Pz.\u0275inj=pt({factory:function(t){return new(t||Pz)},providers:[Gz],imports:[Rx]}),Pz),$z=((Dz=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Dz}),Dz.\u0275inj=pt({factory:function(t){return new(t||Dz)},providers:[Gz],imports:[[Lf,Rx,sS,aw,Qz],eb,Rx,Qz]}),Dz);function Xz(t,e){if(1&t){var n=Ua();Ma(0,"div",3),Ma(1,"div"),Ma(2,"strong"),ws(3,"Bulk Edit:"),Fa(),ws(4),Ma(5,"button",4),qa("click",(function(){return en(n),Qa().selection.clear()})),Ma(6,"mat-icon"),ws(7,"clear"),Fa(),Fa(),Fa(),Ma(8,"button",5),Ma(9,"mat-icon"),ws(10,"folder"),Fa(),ws(11," Change Folder "),Fa(),Ma(12,"button",6),qa("click",(function(){return en(n),Qa().archive()})),Ma(13,"mat-icon"),ws(14),Fa(),ws(15),Fa(),Ma(16,"button",6),qa("click",(function(){return en(n),Qa().delete()})),Ma(17,"mat-icon"),ws(18,"delete"),Fa(),ws(19," Delete "),Fa(),Fa()}if(2&t){var i=Qa(),r=Ta(2);kr(4),Cs(" ",i.selection.selected.length," selected "),kr(4),Ra("matMenuTriggerFor",r),kr(6),ks(i.hide?"visibility_off":"visibility"),kr(1),Cs(" ",i.hide?"Hide":"Show"," ")}}function Zz(t,e){if(1&t){var n=Ua();Ma(0,"button",7),qa("click",(function(){en(n);var t=e.$implicit;return Qa().changeFolder(t)})),ws(1),Fa()}if(2&t){var i=e.$implicit;kr(1),ks(i.name)}}var Jz,tq,eq,nq,iq,rq,oq=((Jz=function(){function t(e,n){_classCallCheck(this,t),this.dataService=e,this.teamService=n,this.selection=new $_(!0,[])}return _createClass(t,[{key:"ngOnInit",value:function(){this.$folders=this.teamId?this.teamService.getFoldersForTeam(this.teamId):this.dataService.$folders.asObservable()}},{key:"changeFolder",value:function(t){return this.updateBatch({folder:t.id})}},{key:"delete",value:function(){confirm("This will permanetly delete these templates. This cannot be undone")&&this.updateBatch({delete:!0})}},{key:"archive",value:function(){return this.updateBatch({archived:this.hide})}},{key:"updateBatch",value:function(t){var e=this;this.teamId?this.teamService.updateManyTemplates(this.teamId,this.selectedIds,t).then((function(){return e.selection.clear()})).catch((function(t){return console.error("Selection folder change error",t)})):this.dataService.updateManyTemplates(this.selectedIds,t).then((function(){return e.selection.clear()})).catch((function(t){return console.error("Selection folder change error",t)}))}},{key:"hide",get:function(){return!this.selection.selected.filter((function(t){return t.archived})).length}},{key:"selectedIds",get:function(){return this.selection.selected.map((function(t){return t.id}))}}]),t}()).\u0275fac=function(t){return new(t||Jz)(Oa(zF),Oa(RF))},Jz.\u0275cmp=ve({type:Jz,selectors:[["vf-template-select-menu"]],inputs:{teamId:"teamId"},decls:5,vars:4,consts:[["id","selectionMenu","class","mat-elevation-z8 proper-width","fxLayout","row","fxLayoutAlign","space-evenly center",4,"ngIf"],["changeFolderSelectMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["id","selectionMenu","fxLayout","row","fxLayoutAlign","space-evenly center",1,"mat-elevation-z8","proper-width"],["mat-icon-button","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(Aa(0,Xz,20,4,"div",0),Ma(1,"mat-menu",null,1),Aa(3,Zz,2,1,"button",2),Hu(4,"async"),Fa()),2&t&&(Ra("ngIf",null==e.selection||null==e.selection.selected?null:e.selection.selected.length),kr(3),Ra("ngForOf",zu(4,2,e.$folders)))},directives:[Fh,qz,Nh,uD,OP,MA,NM,Yz,jz],pipes:[pf],styles:["#selectionMenu[_ngcontent-%COMP%]{background:#3b81fa;color:#fff;height:50px;border-top-left-radius:30px;border-top-right-radius:30px}"]}),Jz),aq=["input"],sq=function(){return{enterDuration:150}},uq=["*"],lq=new Ht("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),cq=new Ht("mat-checkbox-click-action"),hq=0,fq={provide:eE,useExisting:Et((function(){return mq})),multi:!0},dq=function t(){_classCallCheck(this,t)},pq=Lx(Mx(Fx(Nx((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),mq=((tq=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l){var c;return _classCallCheck(this,n),(c=e.call(this,t))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._clickAction=s,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-".concat(++hq),c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new Ku,c.indeterminateChange=new Ku,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||{},c._options.color&&(c.color=c._options.color),c.tabIndex=parseInt(a)||0,c._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){c._onTouched(),i.markForCheck()}))})),c._clickAction=c._clickAction||c._options.clickAction,c}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new dq;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=t_(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=t_(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t_(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(pq)).\u0275fac=function(t){return new(t||tq)(Oa(Ys),Oa($o),Oa(zw),Oa(Ll),Da("tabindex"),Oa(cq,8),Oa(Cx,8),Oa(lq,8))},tq.\u0275cmp=ve({type:tq,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(al(aq,!0),al(aS,!0)),2&t&&(rl(n=hl())&&(e._inputElement=n.first),rl(n=hl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Ss("id",e.id),Ea("tabindex",null),us("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[qs([fq]),As],ngContentSelectors:uq,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Xa(),Ma(0,"label",0,1),Ma(2,"div",2),Ma(3,"input",3,4),qa("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),Fa(),Ma(5,"div",5),La(6,"div",6),Fa(),La(7,"div",7),Ma(8,"div",8),In(),Ma(9,"svg",9),La(10,"path",10),Fa(),An(),La(11,"div",11),Fa(),Fa(),Ma(12,"span",12,13),qa("cdkObserveContent",(function(){return e._onLabelTextChange()})),Ma(14,"span",14),ws(15,"\xa0"),Fa(),Za(16),Fa(),Fa()),2&t){var n=Ta(1),i=Ta(13);Ea("for",e.inputId),kr(2),us("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),kr(1),Ra("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),Ea("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),kr(2),Ra("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Lu(18,sq))}},directives:[aS,gw],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}
150%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;
1transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),tq),vq={provide:yE,useExisting:Et((function(){return gq})),multi:!0},gq=((eq=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(gA)).\u0275fac=function(t){return yq(t||eq)},eq.\u0275dir=Ce({type:eq,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[qs([vq]),As]}),eq),yq=fi(gq),_q=((rq=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:rq}),rq.\u0275inj=pt({factory:function(t){return new(t||rq)}}),rq),bq=((iq=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:iq}),iq.\u0275inj=pt({factory:function(t){return new(t||iq)},imports:[[sS,Rx,yw,_q],Rx,_q]}),iq),wq=((nq=function(){function t(e,n){_classCallCheck(this,t),this.service=e,this.teamService=n}return _createClass(t,[{key:"transform",value:function(t,e){return t?(e?this.teamService.getFolderForTeam(e,t):this.service.getFolder(t)).pipe(B((function(t){return t?t.name:""}))):Dd("")}}]),t}()).\u0275fac=function(t){return new(t||nq)(Oa(zF),Oa(RF))},nq.\u0275pipe=xe({name:"folderName",type:nq,pure:!0}),nq);function kq(t,e){1&t&&(Ma(0,"mat-icon",10),ws(1,"folder"),Fa())}function Cq(t,e){if(1&t&&(Ma(0,"span",11),ws(1),Hu(2,"async"),Hu(3,"folderName"),Fa()),2&t){var n=Qa();kr(1),ks(zu(2,1,qu(3,3,n.template.folder,n.teamId)))}}function xq(t,e){if(1&t){var n=Ua();Ma(0,"mat-checkbox",12),qa("click",(function(t){return en(n),t.stopPropagation()}))("change",(function(t){en(n);var e=Qa();return t?e.selection.toggle(e.template):null})),Fa()}if(2&t){var i=Qa();Ra("checked",i.selection.isSelected(i.template))}}function Sq(t,e){1&t&&(Ma(0,"mat-icon",13),ws(1,"visibility_off"),Fa())}var Eq,Iq=((Eq=function(){function t(e,n){_classCallCheck(this,t),this.dataService=e,this.teamService=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.template&&(this.teamId=this.template.team,this.$canEdit=this.teamService.isCurrentUserAtLeastThisRole(this.teamId,"editor"),this.$canEdit.subscribe((function(e){return t.canEdit=e})))}},{key:"edit",value:function(){this.teamId?this.canEdit?this.dataService.editTemplate(this.template):console.log("unauthorized"):this.dataService.editTemplate(this.template)}}]),t}()).\u0275fac=function(t){return new(t||Eq)(Oa(zF),Oa(RF))},Eq.\u0275cmp=ve({type:Eq,selectors:[["vf-template-card"]],inputs:{template:"template",selection:"selection"},decls:13,vars:10,consts:[["id","wrapper",3,"click"],["fxLayout","column","fxLayoutAlign","stretch",1,"template","mat-elevation-z5"],["id","title",1,"ellipsis-overflow"],["id","content","fxFlex","120px"],["fxLayout","row"],["
1id","folder-icon",4,"ngIf"],["id","folder-name","class","ellipsis-overflow",4,"ngIf"],["fxFlex",""],["class","select-box","color","primary",3,"checked","click","change",4,"ngIf"],["id","hidden-icon","class","",4,"ngIf"],["id","folder-icon"],["id","folder-name",1,"ellipsis-overflow"],["color","primary",1,"select-box",3,"checked","click","change"],["id","hidden-icon",1,""]],template:function(t,e){1&t&&(Ma(0,"div",0),qa("click",(function(){return e.edit()})),Ma(1,"div",1),Ma(2,"div",2),ws(3),Fa(),Ma(4,"p",3),ws(5),Fa(),Ma(6,"div",4),Aa(7,kq,2,0,"mat-icon",5),Aa(8,Cq,4,6,"span",6),La(9,"span",7),Aa(10,xq,1,1,"mat-checkbox",8),Hu(11,"async"),Fa(),Fa(),Aa(12,Sq,2,0,"mat-icon",9),Fa()),2&t&&(kr(1),us("archived",e.template.archived),kr(2),ks(e.template.name||"Unnamed template"),kr(2),ks(e.template.preview),kr(2),Ra("ngIf",!!e.template.folder),kr(1),Ra("ngIf",!!e.template.folder),kr(2),Ra("ngIf",!e.teamId||zu(11,8,e.teamId&&e.$canEdit)),kr(2),Ra("ngIf",e.template.archived))},directives:[uD,OP,WD,Fh,NM,mq],pipes:[pf,wq],styles:["#wrapper[_ngcontent-%COMP%]{position:relative;cursor:pointer}.template[_ngcontent-%COMP%]{width:300px;background:hsla(0,0%,100%,.7);margin:20px;cursor:pointer;height:200px;border-radius:6px}.template[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.2),0 1px 14px 0 rgba(0,0,0,.2)}.template.archived[_ngcontent-%COMP%]{opacity:.5}mat-icon#hidden-icon[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 18px);left:calc(50% - 18px);opacity:.8;font-size:36px}#title[_ngcontent-%COMP%]{background:#ebeef2;font-weight:bolder;padding:10px;border-top-left-radius:6px;border-top-right-radius:6px;max-width:100%}#content[_ngcontent-%COMP%]{padding:16px;overflow-y:hidden;overflow-wrap:break-word;white-space:pre-line}.select-box[_ngcontent-%COMP%]{margin-right:10px}#folder-icon[_ngcontent-%COMP%]{margin-left:10px}#folder-name[_ngcontent-%COMP%]{padding:2px 5px;max-width:250px}#folder-icon[_ngcontent-%COMP%], #folder-name[_ngcontent-%COMP%]{opacity:.5}.ellipsis-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}"]}),Eq);function Aq(t,e){if(1&t){var n=Ua();Ma(0,"div",22),qa("click",(function(){return en(n),Qa(2).editFolderName=!0})),Hu(1,"async"),ws(2),Fa()}if(2&t){var i,r=Qa(2);us("hidden-folder",null==(i=zu(1,3,r.$folder))?null:i.archived),kr(2),Cs(" ",r.folder.name," ")}}function Tq(t,e){1&t&&(Ma(0,"div",20),ws(1," My Templates "),Fa())}function Oq(t,e){if(1&t&&(Ma(0,"h1",20),Aa(1,Aq,3,5,"div",21),Aa(2,Tq,2,0,"div",2),Fa()),2&t){var n=Qa();kr(1),Ra("ngIf",!!n.folder),kr(1),Ra("ngIf",!n.folder)}}function Dq(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field",23),qa("focusout",(function(){en(n);var t=Qa();return t.updateFolderName(t.newFolderName)})),Ma(1,"input",24),qa("ngModelChange",(function(t){return en(n),Qa().newFolderName=t})),Fa(),Fa()}if(2&t){var i=Qa();kr(1),Ra("ngModel",i.newFolderName)}}function Pq(t,e){if(1&t){var n=Ua();Ma(0,"button",25),qa("click",(function(){return en(n),Qa().archiveFolder(!1)})),Ma(1,"mat-icon",26),ws(2,"visibility_off"),Fa(),Fa()}}function Rq(t,e){1&t&&(Ma(0,"button",27),Ma(1,"mat-icon",28),ws(2,"more_horiz"),Fa(),Fa()),2&t&&(Qa(),Ra("matMenuTriggerFor",Ta(30)))}function Nq(t,e){if(1&t){var n=Ua();Ma(0,"button",29),qa("click",(function(){return en(n),Qa().shareFolder()})),Ma(1,"mat-icon"),ws(2,"folder_shared"),Fa(),ws(3," Share Folder "),Fa()}}function Mq(t,e){if(1&t){var n=Ua();Ma(0,"div",16),Ma(1,"button",30),ws(2," Sort By "),Ma(3,"mat-icon"),ws(4,"keyboard_arrow_down"),Fa(),Fa(),Ma(5,"form",31),Ma(6,"mat-menu",null,32),Ma(8,"button",33),qa("click",(function(){return en(n),Qa().setSort(1)})),Ma(9,"span"),ws(10,"A-Z"),Fa(),Fa(),Ma(11,"button",33),qa("click",(function(){return en(n),Qa().setSort(2)})),Ma(12,"span"),ws(13,"Z-A"),Fa(),Fa(),Ma(14,"button",33),qa("click",(function(){return en(n),Qa().setSort(3)})),Ma(15,"span"),ws(16,"Newest First"),Fa(),Fa(),Ma(17,"button",33),qa("click",(function(){return en(n),Qa().setSort(4)})),Ma(18,"span"),ws(19,"Oldest First"),Fa(),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Ta(7),r=Qa();kr(1),Ra("matMenuTriggerFor",i),kr(4),Ra("formGroup",r.Sort)}}function Fq(t,e){if(1&t&&La(0,"vf-template-card",34),2&t){var n=e.$implicit;Qa();var i=Ta(28);Ra("template",n)("selection",i.selection)}}var Lq,jq,Bq=((Lq=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.dataService=e,this.route=n,this.dialog=i,this.router=r,this.analytics=o,this.fb=a,this.templateSearchCtrl=new II,this.sortCtrl=new II(this.sortBy),this.Sort=this.fb.group({criteria:[""]}),this.editFolderName=!1}return _createClass(t,[{key:"setSort",value:function(t){this.criteria.setValue(t)}},{key:"ngOnInit",value:function(){var t=this,e=this.route.params.pipe(fp((function(e){return t.dataService.getFolder(e.folderId)})),kp((function(e){t.folder=e,t.newFolderName=(e||{}).name})));this.$folder=e,this.checkForFlags();var n=this.templateSearchCtrl.valueChanges.pipe(vp(""),sw(500),B((function(t){return String(t).toLocaleLowerCase()})),ip((function(t){return console.log("Search error:",t),[]}))),i=this.Sort.valueChanges.pipe(vp(""),kp((function(e){return t.sortBy=e}))),r=this.dataService.$templates.asObservable();this.$templates=Md([n,r,e,i,this.dataService.$hiddenFolderIds]).pipe(B((function(t){var e=_slicedToArray(t,5),n=e[0],i=e[1],r=e[2],o=e[3],a=e[4];return 1==o.criteria?i.sort((function(t,e){return t.name.localeCompare(e.name)}
1)):2==o.criteria?i.sort((function(t,e){return e.name.localeCompare(t.name)})):3==o.criteria?i.sort((function(t,e){return Date.parse(e.created)-Date.parse(t.created)})):4==o.criteria&&i.sort((function(t,e){return Date.parse(t.created)-Date.parse(e.created)})),i=i.filter(r?function(t){return t.folder===r.id}:function(t){return-1===a.indexOf(t.folder)}),n&&n.length&&(i=i.filter((function(t){return"string"==typeof t.name&&"string"==typeof t.content&&(t.name.toLocaleLowerCase().includes(n)||t.content.toLocaleLowerCase().includes(n))}))),[].concat(_toConsumableArray(i.filter((function(t){return!t.archived}))),_toConsumableArray(i.filter((function(t){return t.archived}))))})))}},{key:"checkForFlags",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r,o,a,s=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.route.snapshot,n=Object.assign({},e.queryParams),i=n.new,r=n.edit,!i){t.next=8;break}return o=e.params.folderId,delete n.new,t.next=6,this.editNewTemplate(i,o);case 6:t.next=12;break;case 8:if(r){t.next=10;break}return t.abrupt("return");case 10:delete n.edit,a=this.dataService.getTemplate(r).pipe(Hd((function(t){return!!t}))).subscribe((function(t){s.dialog.openTemplateEditor(t),a.unsubscribe()}));case 12:return t.next=14,this.router.navigate([],{relativeTo:this.route,queryParams:n});case 14:case"end":return t.stop()}}),t,this)})))}},{key:"newTemplate",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(this.analytics.logEvent("new_template"),this.editNewTemplate(t,(this.folder||{}).id)));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"editNewTemplate",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={name:t,folder:e},n.next=3,this.dataService.newTemplate(i,!0);case 3:r=n.sent,console.log("Created new template with ID",r.id);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"helpUsingTemplates",value:function(){this.dialog.howTo()}},{key:"updateFolderName",value:function(t){this.dataService.updateFolder(this.folder.id,{name:t}),this.editFolderName=!1}},{key:"duplicateFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.folder){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.dataService.duplicateFolder(this.folder);case 4:return e=t.sent,t.next=7,this.router.navigate(["templates",e]);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"archiveFolder",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.folder,!e.t0){e.next=4;break}return e.next=4,this.dataService.updateFolder(this.folder.id,{archived:t});case 4:case"end":return e.stop()}}),e,this)})))}},{key:"deleteFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dataService.deleteFolder(this.folder.id);case 2:if(t.t0=t.sent,!t.t0){t.next=6;break}return t.next=6,this.router.navigate(["templates"]);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"favoriteFolder",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.dataService.updateFolder(this.folder.id,{favorite:t})}},{key:"shareFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dialog.openShareFolder(this.folder);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"sortBy",get:function(){return localStorage.getItem("sortBy")||"used"},set:function(t){localStorage.setItem("sortBy",t)}},{key:"criteria",get:function(){return this.Sort.get("criteria")}}]),t}()).\u0275fac=function(t){return new(t||Lq)(Oa(zF),Oa(Fm),Oa(fF),Oa(Gv),Oa(EF),Oa(AA))},Lq.\u0275cmp=ve({type:Lq,selectors:[["vf-templates-page"]],features:[qs([{provide:eE,useExisting:Et((function(){return Lq})),multi:!0}])],decls:53,vars:28,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","space-between center",1,"header","proper-width"],["class","settings-title",4,"ngIf"],["appearance","fill",3,"focusout",4,"ngIf"],["mat-icon-button","","class","hidden-icon",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["fxFlex",""],["id","share-template","mat-flat-button","",3,"click",4,"ngIf"],["id","search","placeholder","Search Templates","type","text",3,"formControl"],["fxFlexOffset","5px","id","new-template","mat-flat-button","","color","primary",3,"click"],["class","proper-width",4,"ngIf"],["id","template-grid","fxLayout","row wrap","fxLayoutAlign","center",1,"proper-width"],[3,"template","selection",4,"ngFor","ngForOf"],[3,"templates","folder"],["id","template-helper","mat-button","",3,"click"],["inline",""],[1,"proper-width"],["selectMenu",""],["folderMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"settings-title"],[3,"hidden-folder","click",4,"ngIf"],[3,"click"],["appearance","fill",3,"focusout"],["matInput","",1,"settings-title",3,"ngModel","ngModelChange"],["mat-icon-button","",1,"hidden-icon",3,"click"],[1,"hidden-folder"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"mat-18"],["id","share-template","mat-flat-button","",3,"click"],["mat-icon-button","","id","sort",3,"matMenuTriggerFor"],[3,"formGroup"],["menu","matMenu"],["mat-menu-item","","ngDefaultControl","","formControlName","criteria",3,"click"],[3,"template","selection"]],template:function(t,e){if(1&t&&(Ma(0,"div",0),Ma(1,"div",1),Aa(2,Oq,3,2,"h1",2),Aa(3,Dq,2,1,"mat-form-field",3),Aa(4,Pq,3,0,"button",4),Hu(5,"async"),Aa(6,Rq,3,1,"button",5),La(7,"span",6),Aa(8,Nq,4,0,"button",7),La(9,"input",8),Ma(10,"button",9),qa("click",(function(){return e.newTemplate("")})),Ma(11,"mat-icon"),ws(12,"add_circle"),Fa(),ws(13," New Template "),Fa(),Fa(),La(14,"mat-divider"),Aa(15,Mq,20,2,"div",10),Hu(16,"async"),Ma(17,"div",11),Hu(18,"async"),Aa(19,Fq,1,2,"vf-template-card",12),Hu(20,"async"),La(21,"vf-template-placehoder",13),Hu(22,"async"),Fa(),Ma(23,"button",14),qa("click",(function(){return e.helpUsingTemplates()})),Ma(24,"mat-icon",15),ws(25,"help"),Fa(),ws(26," How to best use templates "),Fa(),La(27,"vf-template-select-menu",16,17),Fa(),Ma(29,"mat-menu",null,18),Ma(31,"button",19),qa("click",(function(){return e.shareFolder()})),Ma(32,"mat-icon"),ws(33,"folder_shared"),Fa(),ws(34," Share "),Fa(),Ma(35,"button",19),qa("click",(function(){return e.editFolderName=!0})),Ma(36,"mat-icon"),ws(37,"edit"),Fa(),ws(38," Rename "),Fa(),Ma(39,"button",19),qa("click",(function(){return e.duplicateFolder()})),Ma(40,"mat-icon"),ws(41,"library_add"),Fa(),ws(42," Duplicate "),Fa(),Ma(43,"button",19),qa("click",(function(){return e.archiveFolder(!(null!=e.folder&&e.folder.archived))})),Ma(44,"mat-icon"),ws(45),Hu(46,"async"),Fa(),ws(47),Hu(48,"async"),Fa(),Ma(49,"button",19),qa("click",(function(){return e.deleteFolder()})),Ma(50,"mat-icon"),ws(51,"delete"),Fa(),ws(52," Delete "),Fa(),Fa()),2&t){var n,i,r,o,a,s=null==(n=zu(5,14,e.$folder))?null:n.archived,u=(null==(i=zu(16,16,e.$templates))?null:i.length)>0,l=null==(r=zu(18,18,e.$folder))?null:r.archived;kr(2),Ra("ngIf",!e.editFolderName),kr(1),Ra("ngIf",e.editFolderName),kr(1),Ra("ngIf",s),kr(2),Ra("ngIf",!!e.folder&&!e.folder.archived),kr(2),Ra("ngIf",!!e.folder),kr(1),Ra("formControl",e.templateSearchCtrl),kr(6),Ra("ngIf",u),kr(2),us("hidden-folder",l),kr(2),Ra("ngForOf",zu(20,20,e.$templates)),kr(2),Ra("templates",zu(22,22,e.$templates))("folder",e.folder),kr(24),ks(null!=(o=zu(46,24,e.$folder))&&o.archived?"visibility":"visibility_off"),kr(2),Cs(" ",null!=(a=zu(48,26,e.$folder))&&a.archived?"Show":"Hide"," ")}},directives:[xP,uD,OP,Fh,WD,aE,mE,qI,MA,uP,NM,CL,Nh,yz,oq,qz,jz,PT,WT,VI,Yz,UI,vE,GI,dA,Iq],pipes:[pf],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.settings-title[_ngcontent-%COMP%]{font-weight:700}button.hidden-icon[_ngcontent-%COMP%]{margin-left:16px;margin-bottom:16px}#new-template[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding-right:5px}.proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}#template-helper[_ngcontent-%COMP%]{margin-bottom:80px;margin-top:60px;opacity:.5;font-size:17px}#template-helper[_ngcontent-%COMP%]:hover{opacity:.8}#search[_ngcontent-%COMP%]{width:30%;font-size:16px;padding:8px;border-radius:5px;margin-right:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}#sort[_ngcontent-%COMP%]{font-size:20px;font-weight:700}vf-template-select-menu[_ngcontent-%COMP%]{position:absolute;bottom:0}.hidden-folder[_ngcontent-%COMP%]{opacity:.5}"]}),Lq),Vq=["primaryValueBar"],Uq=Mx((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Hq=new Ht("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Zt(_c),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),zq=0,qq=((jq=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;_classCallCheck(this,n),(a=e.call(this,t))._elementRef=t,a._ngZone=i,a._animationMode=r,a._isNoopAnimation=!1,a._value=0,a._bufferValue=0,a.animationEnd=new Ku,a._animationEndSubscription=f.EMPTY,a.mode="determinate",a.progressbarId="mat-progress-bar-".concat(zq++);var s=o?o.getPathname().split("#")[0]:"";return a._rectangleFillValue="url('".concat(s,"#").concat(a.progressbarId,"')"),a._isNoopAnimation="NoopAnimations"===r,a}return _createClass(n,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=a_(e,"transitionend").pipe(Hd((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(t){this._value=Wq(e_(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=Wq(t||0)}}]),n}(Uq)).\u0275fac=function(t){return new(t||jq)(Oa(Ys),Oa(Ll),Oa(Cx,8),Oa(Hq,8))},jq.\u0275cmp=ve({type:jq,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&al(Vq,!0),2&t&&rl(n=hl())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(Ea("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),us("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[As],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(In(),Ma(0,"svg",0),Ma(1,"def
1s"),Ma(2,"pattern",1),La(3,"circle",2),Fa(),Fa(),La(4,"rect",3),Fa(),An(),La(5,"div",4),La(6,"div",5,6),La(8,"div",7)),2&t&&(kr(2),Ra("id",e.progressbarId),kr(2),Ea("fill",e._rectangleFillValue),kr(1),Ra("ngStyle",e._bufferTransform()),kr(1),Ra("ngStyle",e._primaryTransform()))},directives:[Zh],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scale
1X(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),jq);function Wq(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(n,t))}var Gq,Kq=((Gq=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:Gq}),Gq.\u0275inj=pt({factory:function(t){return new(t||Gq)},imports:[[Lf,Rx],Rx]}),Gq);function Yq(t,e){if(1&t){var n=Ua();Ma(0,"button",12),qa("click",(function(){en(n);var t=e.$implicit;return Qa(3).setSkill(t)})),ws(1),Fa()}if(2&t){var i=e.$implicit;kr(1),Cs(" ",i," ")}}function Qq(t,e){if(1&t&&(Ma(0,"div",9),Ma(1,"h1"),ws(2,"What's your role?"),Fa(),Ma(3,"div",10),Aa(4,Yq,2,1,"button",11),Fa(),Fa()),2&t){var n=Qa(2);kr(4),Ra("ngForOf",n.skills)}}function $q(t,e){if(1&t){var n=Ua();Ma(0,"button",12),qa("click",(function(){en(n);var t=e.$implicit;return Qa(3).setSource(t)})),ws(1),Fa()}if(2&t){var i=e.$implicit;kr(1),Cs(" ",i," ")}}function Xq(t,e){if(1&t&&(Ma(0,"div",9),Ma(1,"h1"),ws(2,"How did you "),Ma(3,"strong"),ws(4,"first"),Fa(),ws(5," hear about us?"),Fa(),Ma(6,"div",10),Aa(7,$q,2,1,"button",11),Fa(),Fa()),2&t){var n=Qa(2);kr(7),Ra("ngForOf",n.sources)}}function Zq(t,e){if(1&t){var n=Ua();Ma(0,"div",13),Ma(1,"h1"),ws(2,"Nice! Who referred you?"),Fa(),Ma(3,"mat-form-field",14),Ma(4,"input",15),qa("ngModelChange",(function(t){return en(n),Qa(2).referredBy=t})),Fa(),Fa(),Ma(5,"button",16),qa("click",(function(){return en(n),Qa(2).finishUp()})),ws(6,"Next"),Fa(),Fa()}if(2&t){var i=Qa(2);kr(4),Ra("ngModel",i.referredBy),kr(1),Ra("disabled",!(null!=i.referredBy&&i.referredBy.length))}}function Jq(t,e){if(1&t){var n=Ua();Ma(0,"div",2),Ma(1,"div",3),Ma(2,"h1",4),ws(3,"Hello there \ud83d\udc4b"),Fa(),La(4,"mat-progress-bar",5),Aa(5,Qq,5,1,"div",6),Aa(6,Xq,8,1,"div",6),Aa(7,Zq,7,2,"div",7),Fa(),Ma(8,"button",8),qa("click",(function(){return en(n),Qa().goBack()})),ws(9," \u2190 back "),Fa(),Fa()}if(2&t){var i=Qa();kr(1),Ra("ngSwitch",i.currentQuestion),kr(3),Ra("value",100*i.currentQuestion/i.totalQuestions),kr(1),Ra("ngSwitchCase",1),kr(1),Ra("ngSwitchCase",2),kr(1),Ra("ngSwitchCase",3),kr(1),Ra("disabled",1===i.currentQuestion)}}function tW(t,e){1&t&&(Ma(0,"div",17),Ma(1,"h1",18),Ma(2,"strong"),ws(3,"Quick Intro:"),Fa(),ws(4," type less & sell more with Very Fast"),Fa(),La(5,"iframe",19),Ma(6,"a",20),ws(7,"Next"),Fa(),Fa())}var eW,nW,iW,rW=((iW=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.service=e,this.auth=n,this.router=i,this.skills=["Recruiting","Lead Gen","Training","Sales","Startups","Other"],this.sources=["Friend/Colleague","Ad","Chrome Store","Very Fast Team","Social Media","Article/Blog","Other"],this.currentQuestion=1,this.totalQuestions=4,this.completed=!1,this.update={},this.service.$user.asObservable().subscribe((function(t){return r.user=t})),this.scriptElement=document.createElement("script"),this.scriptElement.src="../../assets/script.js",document.body.appendChild(this.scriptElement)}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"setSkill",value:function(t){this.update.skill=t,this.currentQuestion=2}},{key:"setSource",value:function(t){this.update.source=t,"Friend/Colleague"===t?this.currentQuestion=3:this.finishUp()}},{key:"goBack",value:function(){1!==this.currentQuestion&&this.currentQuestion--}},{key:"finishUp",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentQuestion=this.totalQuestions,this.completed=!0,this.update.onboarded=!0,this.referredBy&&this.referredBy.length&&(this.update.referredBy=this.referredBy),t.next=6,function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){return setTimeout(t,500)})));case 1:case"end":return t.stop()}}),t)})))}();case 6:return t.next=8,this.service.updateUser(this.update);case 8:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||iW)(Oa(zF),Oa(WF),Oa(Gv))},iW.\u0275cmp=ve({type:iW,selectors:[["vf-onboarding-page"]],decls:3,vars:2,consts:[["id","onboarding-container","fxLayout","column",4,"ngIf"],["class","video-wrapper","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["id","onboarding-container","fxLayout","column"],["id","onboarding-box","fxFlexOffset","10",3,"ngSwitch"],["id","title"],["mode","determinate","color","primary",3,"value"],["class","question",4,"ngSwitchCase"],["class","question","fxLayout","column",4,"ngSwitchCase"],["flex","","id","back","mat-button","","fxFlexOffset","50px",3,"disabled","click"],[1,"question"],["fxLayout","row wrap","fxLayoutAlign","left"],["mat-raised-button","","color","primary",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],["fxLayout","column",1,"question"],["appearance","standard",2,"width","90%"],["matInput","","placeholder","Tony Stark",2,"font-size","14px","margin-left","8px",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",2,"max-width","100px","margin-left","8px","align-items","start",3,"disabled","click"],["fxLayout","column","fxLayoutAlign","center center",1,"video-wrapper"],[2,"margin-bottom","30px"],["width","657","height","400","src","https://www.loom.com/embed/73489cb984a9494c90721b68ec4e71f2","frameborder","0","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen",""],["mat-raised-button","","color","primary","routerLink","/",2,"margin-top","30px"]],template:function(t,e){1&t&&(Ma(0,"vf-splash-page-layout"),Aa(1,Jq,10,6,"div",0),Aa(2,tW,8,0,"div",1),Fa()),2&t&&(kr(1),Ra("ngIf",!e.completed),kr(1),Ra("ngIf",e.completed))},directives:[Ij,Fh,uD,uP,Kh,qq,Yh,MA,OP,Nh,PT,WT,aE,mE,VI,FA,Yv],styles:["#onboarding-container[_ngcontent-%COMP%]{max-width:375px;width:90%}#onboarding-box[_ngcontent-%COMP%]{background:transparent;height:300px;padding:10px}h1#title[_ngcontent-%COMP%]{text-align:left;font-size:35px;font-weight:700;margin-bottom:20px}
1mat-progress-bar[_ngcontent-%COMP%]{margin-bottom:20px;height:10px;border-radius:5px}.question[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:left}.question[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:8px}button[_ngcontent-%COMP%]{transition:opacity .2s linear}button[_ngcontent-%COMP%]:disabled{opacity:0}.video-wrapper[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{max-width:1000px;max-height:50vh}.video-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:30px}.video-wrapper[_ngcontent-%COMP%] a.big-button[_ngcontent-%COMP%]{margin-top:0;margin-bottom:20px;height:60px;font-size:50px}#back[_ngcontent-%COMP%]{text-align:left;max-width:90px}"]}),iW),oW=((nW=function(){function t(e,n){_classCallCheck(this,t),this.service=e,this.router=n}return _createClass(t,[{key:"canActivate",value:function(t,e){var n=this,i="onboarding"===(t.url[0]||{}).path;return this.service.$user.pipe(Hd((function(t){return!!t})),B((function(t){return t.onboarded&&i?n.router.createUrlTree([""]):!(!t.onboarded&&!i)||n.router.createUrlTree(["onboarding"])})))}}]),t}()).\u0275fac=function(t){return new(t||nW)(Xt(zF),Xt(Gv))},nW.\u0275prov=dt({token:nW,factory:nW.\u0275fac,providedIn:"root"}),nW),aW=((eW=function(){function t(e,n,i,r){var o=this;_classCallCheck(this,t),this.functions=e,this.firestore=n,this.dialog=i,this.data=r,uz(mc.stripeConfig.key).then((function(t){return o.stripe=t}))}return _createClass(t,[{key:"getStripeDashboardUrl",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.functions.httpsCallable("ext-firestore-stripe-subscriptions-createPortalLink"),console.log(e),t.next=4,e({returnUrl:window.location.href}).toPromise();case 4:return t.abrupt("return",t.sent.url);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"goToStripe",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.dialog.waiting("Redirecting you to your billing page..."),t.next=3,this.getStripeDashboardUrl();case 3:e=t.sent,window.location.href=e;case 5:case"end":return t.stop()}}),t,this)})))}},{key:"isPremium",value:function(){var t=this.data.$user.getValue().id;return this.firestore.collection("users").doc(t).collection("subscriptions",(function(t){return t.where("status","in",["trialing","active"])})).valueChanges().pipe(B((function(t){return t.map((function(t){return t.role}))})),kp((function(t){return console.log(t)})),B((function(t){return-1!==t.indexOf("premium")})),kp((function(t){return console.log("Is?",t)})))}},{key:"getPlans",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r,o,a,s,u,l,c,h,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.firestore.firestore.collection("tiers").where("active","==",!0).get();case 2:e=t.sent,n=[],i=_createForOfIteratorHelper(e.docs),t.prev=5,i.s();case 7:if((r=i.n()).done){t.next=22;break}return o=r.value,t.next=11,o.ref.collection("prices").where("active","==",!0).get();case 11:a=t.sent,s=o.data(),u=s.name,l=s.description,c=s.role,h={name:u,description:l,role:c,prices:[]},f=_createForOfIteratorHelper(a.docs);try{for(f.s();!(d=f.n()).done;)p=d.value,h.prices.push({id:p.id,description:p.get("description")})}catch(m){f.e(m)}finally{f.f()}n.push(h);case 20:t.next=7;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(5),i.e(t.t0);case 27:return t.prev=27,i.f(),t.finish(27);case 30:return t.abrupt("return",n);case 31:case"end":return t.stop()}}),t,this,[[5,24,27,30]])})))}},{key:"startSubscription",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r,o=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.dialog.waiting("Redirecting you to checkout..."),i=this.data.$user.getValue(),n.next=4,this.firestore.collection("users").doc(i.id).collection("checkout_sessions").add({price:t,success_url:"".concat(window.location.origin,"/settings?stripe=success&plan=").concat(e),cancel_url:window.location.origin+"/upgrade?stripe=canceled",billing_address_collection:"auto",allow_promotion_codes:!0});case 4:r=n.sent.onSnapshot((function(t){var e=t.data().sessionId;
1console.log("session",e),e&&(o.stripe.redirectToCheckout({sessionId:e}),r())}));case 5:case"end":return n.stop()}}),n,this)})))}}]),t}()).\u0275fac=function(t){return new(t||eW)(Xt(xN),Xt(Zy),Xt(fF),Xt(zF))},eW.\u0275prov=dt({token:eW,factory:eW.\u0275fac,providedIn:"root"}),eW);function sW(t,e){1&t&&(Ma(0,"div",17),ws(1,"Current"),Fa())}function uW(t,e){1&t&&(Ma(0,"div",18),ws(1,"\u26a1\ufe0f Most Popular\u26a1\ufe0f"),Fa())}function lW(t,e){if(1&t){var n=Ua();Ma(0,"div",10),qa("click",(function(){en(n);var t=e.$implicit;return Qa().choosePlan(t)})),Aa(1,sW,2,0,"div",11),Hu(2,"async"),Aa(3,uW,2,0,"div",12),Ma(4,"div",13),ws(5),Fa(),Ma(6,"div",14),ws(7),Fa(),Ma(8,"div",15),ws(9),Fa(),Ma(10,"div",16),ws(11),Fa(),Fa()}if(2&t){var i,r=e.$implicit,o=Qa(),a=r.plan===(null==(i=zu(2,9,o.$user))?null:i.plan);xs("upgrade-option mat-elevation-z5 upgrade-",r.plan,""),kr(1),Ra("ngIf",a),kr(2),Ra("ngIf",r.popular),kr(2),ks(r.header),kr(2),ks(r.price),kr(2),ks(r.rate),kr(2),ks(r.cta)}}var cW,hW,fW,dW,pW,mW,vW,gW=((hW=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.authService=e,this.data=n,this.router=i,this.zone=r,this.billing=o,this.options=[{header:"Free",price:"Free",plan:"free",rate:"40 Credits / Month",cta:"Basic"},{header:"3-month License",price:"$20",plan:"quarterly",rate:"Unlimited",cta:"Go Pro",priceId:mc.stripeConfig.quarterly},{header:"12-month License",price:"$60",plan:"yearly",rate:"Unlimited",cta:"Go Pro",popular:!0,priceId:mc.stripeConfig.yearly}]}return _createClass(t,[{key:"ngOnInit",value:function(){this.$user=this.data.$user.asObservable()}},{key:"choosePlan",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.$user.getValue().premium){e.next=5;break}return e.next=3,this.billing.goToStripe();case 3:e.next=10;break;case 5:if(e.t0=t.priceId,!e.t0){e.next=10;break}return console.log("Plan chosen",t),e.next=10,this.billing.startSubscription(t.priceId,t.plan);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"cancel",value:function(){var t=this;this.zone.run((function(){return t.router.navigateByUrl("/")}))}},{key:"help",value:function(){console.log("clicked help")}}]),t}()).\u0275fac=function(t){return new(t||hW)(Oa(WF),Oa(zF),Oa(Gv),Oa(Ll),Oa(aW))},hW.\u0275cmp=ve({type:hW,selectors:[["vf-upgrade"]],decls:22,vars:1,consts:[["header","Hot Stuff \ud83d\ude18"],["id","upgrade-panel","fxLayout","column"],["id","upgrade-banner","fxLayout","column","fxLayoutAlign","center center"],["id","upgrade-header"],["id","upgrade-header-subtitle"],["id","upgrade-options","fxLayout","row","fxLayoutAlign","space-evenly"],["fxLayout","column","fxLayoutAlign","center center",3,"class","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center",2,"margin-top","30px"],["id","blue","href","https://getveryfast.com/contact","target","_blank"],["id","cancel","src","assets/close-24px.svg","alt","close",3,"click"],["fxLayout","column","fxLayoutAlign","center center",3,"click"],["class","current-plan",4,"ngIf"],["class","popular",4,"ngIf"],["id","option-footer","fxFlexAlign","stretch"],[1,"option-price"],[1,"option-rate"],["fxFlexAlign","stretch",1,"option-header"],[1,"current-plan"],[1,"popular"]],template:function(t,e){1&t&&(Ma(0,"vf-splash-page-layout",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"div",3),ws(4,"Your Time is Money"),Fa(),Ma(5,"div",4),ws(6," Pro users save an average of "),Ma(7,"u"),ws(8,"1 hour a week"),Fa(),ws(9," and "),Ma(10,"u"),ws(11,"over 52 hours a year"),Fa(),ws(12,". What's an extra week worth to you? "),Fa(),Fa(),Ma(13,"div",5),Aa(14,lW,12,11,"div",6),Fa(),Ma(15,"div",7),Ma(16,"span"),ws(17,"Have a question?\xa0"),Fa(),Ma(18,"a",8),ws(19,"Reach out"),Fa(),ws(20,"."),Fa(),Fa(),Ma(21,"img",9),qa("click",(function(){return e.cancel()})),Fa(),Fa()),2&t&&(kr(14),Ra("ngForOf",e.options))},directives:[Ij,uD,OP,Nh,Fh,_P],pipes:[pf],styles:["#upgrade-splash[_ngcontent-%COMP%]{background:#4284fb}#upgrade-panel[_ngcontent-%COMP%]{border-radius:4px;margin-bottom:20px}#upgrade-banner[_ngcontent-%COMP%]{padding:30px}#upgrade-banner[_ngcontent-%COMP%] #upgrade-header[_ngcontent-%COMP%]{padding-bottom:.75em;font:700 14px/20px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:2.5em}#upgrade-header-subtitle[_ngcontent-%COMP%]{text-align:center;font-size:1.5em;opacity:.8;max-width:600px;line-height:1.5em;margin-top:15px;margin-bottom:15px}#upgrade-options[_ngcontent-%COMP%]{padding:20px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px;
1min-width:200px;cursor:pointer;border-radius:4px;position:relative;background:#fff}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.2),0 1px 14px 0 rgba(0,0,0,.3)}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .current-plan[_ngcontent-%COMP%]{position:absolute;top:-27px;left:65px;background:#4284fb;color:#fff;padding:3px 10px;border-top-left-radius:4px;border-top-right-radius:4px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .popular[_ngcontent-%COMP%]{position:absolute;top:-27px;left:40px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .option-header[_ngcontent-%COMP%]{padding:10px;text-align:center;background:#4284fb;color:#fff;border-bottom-left-radius:4px;border-bottom-right-radius:4px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .option-price[_ngcontent-%COMP%]{font-size:36px;margin-top:45px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .option-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:15px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] .option-rate[_ngcontent-%COMP%]{font-size:13px;opacity:.6;margin-bottom:30px;margin-top:10px}#upgrade-options[_ngcontent-%COMP%] .upgrade-option[_ngcontent-%COMP%] #option-footer[_ngcontent-%COMP%]{background:#ebeef2;text-align:center;padding-top:15px;padding-bottom:15px;font-weight:700;font-size:1.5em;border-top-left-radius:4px;border-top-right-radius:4px}#cancel[_ngcontent-%COMP%]{position:fixed;top:5px;right:5px;height:30px;opacity:.9}.mat-focus-indicator[_ngcontent-%COMP%]{width:1.5em;height:1.5em}#footer-back-button[_ngcontent-%COMP%]{background:none;color:#4284fb;outline:none;border:none;cursor:pointer;opacity:.8}#footer-back-button[_ngcontent-%COMP%]:hover{opacity:.95}.mat-flat-button[_ngcontent-%COMP%]{background:#4284fb;width:available}#help[_ngcontent-%COMP%]{height:20px;cursor:pointer;position:fixed;bottom:5px;right:5px;opacity:.66}#help[_ngcontent-%COMP%]:hover{opacity:.95}.faq-section[_ngcontent-%COMP%]{background:#4284fb;width:100%;height:10px}#blue[_ngcontent-%COMP%]{color:#4284fb}"]}),hW),yW=((cW=function(){function t(e){_classCallCheck(this,t),this.functions=e}return _createClass(t,[{key:"returnListOfAdmins",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.functions.httpsCallable("returnListOfAdmins")({}).toPromise());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getUserByEmail",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("getUserByEmail")({email:t}).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"editCustomClaims",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("editCustomClaims")(t).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"returnBackofficeUsers",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.functions.httpsCallable("returnBackofficeUsers")({}).toPromise());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"verifyUsers",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.functions.httpsCallable("verifyUsers")({}).toPromise());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"editUserOrg",value:function(t,e,n,i,r,o){return vy(this,void 0,void 0,regeneratorRuntime.mark((function a(){var s,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!t){a.next=3;break}return s={isOldAccount:!0,isAdmin:e,uid:n,newUser:i,teamId:r},a.abrupt("return",this.functions.httpsCallable("editUserTeam")(s).toPromise());case 3:return u={isOldAccount:!1,isAdmin:e,uid:n,newUser:i,newTeamId:r,currentTeamId:o},a.abrupt("return",this.functions.httpsCallable("editUserTeam")(u).toProm
1ise());case 5:case"end":return a.stop()}}),a,this)})))}},{key:"createTeam",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={name:t.name,email:t.email,access:"editor",role:"admin",isCreator:!0},i="".concat(t.name,"'s Organization"),e.abrupt("return",this.functions.httpsCallable("createTeam")({email:t.email,name:i,uid:t.uid,users:_defineProperty({},t.uid,n)}).toPromise());case 2:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||cW)(Xt(xN))},cW.\u0275prov=dt({token:cW,factory:cW.\u0275fac,providedIn:"root"}),cW),_W=["*"],bW=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],wW=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],kW=new Ht("MAT_GRID_LIST"),CW=((vW=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._gridList=n,this._rowspan=1,this._colspan=1}return _createClass(t,[{key:"_setStyle",value:function(t,e){this._element.nativeElement.style[t]=e}},{key:"rowspan",get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(e_(t))}},{key:"colspan",get:function(){return this._colspan},set:function(t){this._colspan=Math.round(e_(t))}}]),t}()).\u0275fac=function(t){return new(t||vW)(Oa(Ys),Oa(kW,8))},vW.\u0275cmp=ve({type:vW,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&Ea("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:_W,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(Xa(),Ma(0,"figure",0),Za(1),Fa())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),vW),xW=((mW=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){zx(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||mW)(Oa(Ys))},mW.\u0275cmp=ve({type:mW,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,Hx,!0),2&t&&rl(i=hl())&&(e._lines=i)},ngContentSelectors:wW,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(Xa(bW),Za(0),Ma(1,"div",0),Za(2,1),Fa(),Za(3,2))},encapsulation:2,changeDetection:0}),mW),SW=((pW=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||pW)},pW.\u0275dir=Ce({type:pW,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),pW),EW=((dW=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||dW)},dW.\u0275dir=Ce({type:dW,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),dW),IW=((fW=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||fW)},fW.\u0275dir=Ce({type:fW,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),fW),AW=function(){function t(){_classCallCheck(this,t),this.columnIndex=0,this.rowIndex=0}return _createClass(t,[{key:"update",value:function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return n._trackTile(t)}))}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new TW(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(t," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e<t||0==n);return Math.max(e,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)}},{key:"_findGapEndIndex",value:function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length}},{key:"_markTilePosition",value:function(t,e){for(var n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan}},{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var t=Math.max.apply(Math,_toConsumableArray(this.tracker));return t>1?this.rowCount+t-1:this.rowCount}}]),t}(),TW=function t(e,n){_classCallCheck(this,t),this.row=e,this.col=n}
1,OW=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,DW=function(){function t(){_classCallCheck(this,t),this._rows=0,this._rowspan=0}return _createClass(t,[{key:"init",value:function(t,e,n,i){this._gutterSize=FW(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=i}},{key:"getBaseTileSize",value:function(t,e){return"(".concat(t,"% - (").concat(this._gutterSize," * ").concat(e,"))")}},{key:"getTilePosition",value:function(t,e){return 0===e?"0":MW("(".concat(t," + ").concat(this._gutterSize,") * ").concat(e))}},{key:"getTileSize",value:function(t,e){return"(".concat(t," * ").concat(e,") + (").concat(e-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(t,e,n){var i=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(t,n,i,r),this.setRowStyles(t,e,i,r)}},{key:"setColStyles",value:function(t,e,n,i){var r=this.getBaseTileSize(n,i);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,e)),t._setStyle("width",MW(this.getTileSize(r,t.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(t){return"".concat(this._rowspan," * ").concat(this.getTileSize(t,1))}},{key:"getComputedHeight",value:function(){return null}}]),t}(),PW=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).fixedRowHeight=t,i}return _createClass(n,[{key:"init",value:function(t,e,i,r){if(_get(_getPrototypeOf(n.prototype),"init",this).call(this,t,e,i,r),this.fixedRowHeight=FW(this.fixedRowHeight),!OW.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",MW(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",MW("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),n}(DW),RW=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._parseRatio(t),i}return _createClass(n,[{key:"setRowStyles",value:function(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",MW(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",MW("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach((function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(t,'"'));this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}]),n}(DW),NW=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setRowStyles",value:function(t,e){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",MW(this.getTileSize(n,t.rowspan)))}},{key:"reset",value:function(t){t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),n}(DW);function MW(t){return"calc(".concat(t,")")}function FW(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var LW,jW,BW=((jW=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._dir=n,this._gutter="1px"}return _createClass(t,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new NW:t&&t.indexOf(":")>-1?new RW(t):new PW(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new AW);var e=this._tileCoordinator,n=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,i),n.forEac
1h((function(n,i){var r=e.positions[i];t._tileStyler.setStyle(n,r.row,r.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}},{key:"cols",get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(e_(t)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(t){this._gutter="".concat(null==t?"":t)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(t){var e="".concat(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}}]),t}()).\u0275fac=function(t){return new(t||jW)(Oa(Ys),Oa(V_,8))},jW.\u0275cmp=ve({type:jW,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,CW,!0),2&t&&rl(i=hl())&&(e._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&Ea("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[qs([{provide:kW,useExisting:jW}])],ngContentSelectors:_W,decls:2,vars:0,template:function(t,e){1&t&&(Xa(),Ma(0,"div"),Za(1),Fa())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),jW),VW=((LW=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:LW}),LW.\u0275inj=pt({factory:function(t){return new(t||LW)},imports:[[Zx,Rx],Zx,Rx]}),LW);function UW(t,e){1&t&&La(0,"mat-spinner",10),2&t&&Ra("diameter",25)}function HW(t,e){if(1&t){var n=Ua();Ma(0,"button",11),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().emailForm.dirty)}var zW,qW,WW=((qW=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.fb=e,this.teamService=n,this.cdr=i,this.adminService=r,this.authService=o,this.toastr=a,this.dialogRef=s,this.user=u,this.emailForm=new AI({UserEmail:new II,UID:new II}),this.close=new Ku}return _createClass(t,[{key:"ngOnInit",value:function(){this.emailForm=this.fb.group({UserEmail:[],UID:[]})}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isSaving=!0,e={uid:this.emailForm.value.UID,email:this.emailForm.value.UserEmail},t.next=4,this.authService.changeEmail(e).then((function(t){console.log("result from service",t),n.isSaving=!1,n.toastr.success("Email Changed Successfully"),n.dialogRef.close()})).catch((function(t){n.isSaving=!1,n.dialogRef.close(),n.toastr.error(t.message)}));case 4:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||qW)(Oa(AA),Oa(RF),Oa($o),Oa(yW),Oa(WF),Oa(AH),Oa(MS),Oa(FS))},qW.\u0275cmp=ve({type:qW,selectors:[["vf-email-edit"]],outputs:{close:"close"},decls:26,vars:3,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],["id","form",3,"formGroup"],["appearance","legacy",1,"full-width"],["matInput","","formControlName","UID","placeholder","User Uid"],["matInput","","formControlName","UserEmail","placeholder","New User Email"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Ma(4,"h1"),ws(5,"Edit Email"),Fa(),Fa(),Ma(6,"mat-grid-tile",2),Ma(7,"p"),ws(8," Steps:"),La(9,"br"),ws(10," - Send reset password and wait for the user to change his password"),La(11,"br"),ws(12," - Update the email address"),La(13,"br"),ws(14," - Let the user sign in with the new email"),La(15,"br"),Fa(),Fa(),Ma(16,"form",4),Ma(17,"mat-grid-tile",2),Ma(18,"mat-form-field",5),La(19,"input",6),Fa(),Fa(),Ma(20,"mat-grid-tile",2),Ma(21,"mat-form-field",5),La(22,"input",7),Fa(),Fa(),Ma(23,"mat-grid-tile",2),Aa(24,UW,1,1,"mat-spinner",8),Aa(25,HW,2,1,"button",9),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(16),Ra("formGroup",e.emailForm),kr(8),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,UI,vE,GI,PT,WT,aE,mE,dA,Fh,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}#steps[_ngcontent-%COMP%]{border:none}"]}),qW),GW=((zW=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.users=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||zW)(Oa(MS),Oa(FS))},zW.\u0275cmp=ve({type:zW,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-email-edit",0,1),qa("close",(function(t){return e.close(t)})),Fa())},directives:[WW],encapsulation:2}),zW);function KW(t,e){1&t&&La(0,"mat-spinner",12),2&t&&Ra("diameter",25)}function YW(t,e){if(1&t){var n=Ua();Ma(0,"button",13),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().claimsForm.dirty)}var QW,$W,XW=(($W=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.fb=e,this.teamService=n,this.cdr=i,this.adminService=r,this.authService=o,this.toastr=a,this.dialogRef=s,this.user=u,this.claimsForm=new AI({UserEmail:new II,Admin:new II,OrganizationID:new II}),this.close=new Ku}return _createClass(t,[{key:"ngOnInit",value:function(){this.claimsForm=this.fb.group({UserEmail:[],Admin:[],OrganizationID:[]})}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isSaving=!0,e={email:this.claimsForm.value.UserEmail,admin:this.claimsForm.value.Admin,Organization:this.claimsForm.value.OrganizationID},t.next=4,this.adminService.editCustomClaims(e).then((function(t){console.log("result from service",t),n.isSaving=!1,n.toastr.success("Claims Changed Successfully"),n.dialogRef.close()})).catch((function(t){n.isSaving=!1,n.dialogRef.close(),n.toastr.error(t.message)}));case 4:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||$W)(Oa(AA),Oa(RF),Oa($o),Oa(yW),Oa(WF),Oa(AH),Oa(MS),Oa(FS))},$W.\u0275cmp=ve({type:$W,selectors:[["vf-claims-edit"]],outputs:{close:"close"},decls:25,vars:5,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],["id","form",3,"formGroup"],["appearance","legacy",1,"full-width"],["matInput","","formControlName","UserEmail","placeholder","User Email"],["formControlName","Admin"],[3,"value"],["matInput","","formControlName","OrganizationID","placeholder","Organization Id"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Ma(4,"h1"),ws(5,"Edit Claims"),Fa(),Fa(),Ma(6,"form",4),Ma(7,"mat-grid-tile",2),Ma(8,"mat-form-field",5),La(9,"input",6),Fa(),Fa(),Ma(10,"mat-grid-tile",2),Ma(11,"mat-form-field",5),Ma(12,"mat-label"),ws(13,"Admin"),Fa(),Ma(14,"mat-select",7),Ma(15,"mat-option",8),ws(16,"True"),Fa(),Ma(17,"mat-option",8),ws(18,"False"),Fa(),Fa(),Fa(),Fa(),Ma(19,"mat-grid-tile",2),Ma(20,"mat-form-field",5),La(21,"input",9),Fa(),Fa(),Ma(22,"mat-grid-tile",2),Aa(23,KW,1,1,"mat-spinner",10),Aa(24,YW,2,1,"button",11),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(6),Ra("formGroup",e.claimsForm),kr(9),Ra("value",!0),kr(2),Ra("value",!1),kr(6),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,UI,vE,GI,PT,WT,aE,mE,dA,xT,kR,gS,Fh,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}#steps[_ngcontent-%COMP%]{border:none}"]}),$W),ZW=((QW=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.users=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||QW)(Oa(MS),Oa(FS))},QW.\u0275cmp=ve({type:QW,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-claims-edit",0,1),qa("close",(function(t){return e.close(t)})),Fa())},directives:[XW],encapsulation:2}),QW);function JW(t,e){if(1&t&&(Ma(0,"mat-option",18),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function tG(t,e){if(1&t&&(Ma(0,"mat-option",18),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function eG(t,e){1&t&&La(0,"mat-spinner",19),2&t&&Ra("diameter",25)}function nG(t,e){if(1&t){var n=Ua();Ma(0,"button",20),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().beComponentForm.dirty)}var iG,rG,oG,aG=((oG=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.firestore=e,this.fb=n,this.teamService=i,this.cdr=r,this.adminService=o,this.toastr=a,this.dialogRef=s,this.user=u,this.isReadonly=!0,this.teamID=[],this.filteredDataToSearch=[],this.beComponentForm=new AI({slct_cntrl:new II,uid:new II,role:new II}),this.roles=[{value:"admin",viewValue:"Admin"},{value:"member",viewValue:"Member"}],this.close=new Ku}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.beComponentForm=this.fb.group({uid:[this.user.user.uid],slct_cntrl:[],name:[this.user.user.name],email:[this.user.user.email],role:[]}),this.firestore.collection("teams").valueChanges({idField:"id"}
1).subscribe((function(e){t.teams=e;for(var n=0;n<e.length;n++)t.teamID.push({value:t.teams[n].id,viewValue:t.teams[n].id});t.filteredDataToSearch=t.teamID.map((function(t){return{viewValue:t.viewValue,value:t.value}}))}))}},{key:"lookup",value:function(t){this.filteredDataToSearch=this.teamID.filter((function(e){return e.viewValue.toString().toLowerCase().indexOf(t)>-1})).map((function(t){return{viewValue:t.viewValue,value:t.value}}))}},{key:"clean",value:function(t){t.value="",this.lookup(t.value)}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.beComponentForm.value.uid,n=this.beComponentForm.value.slct_cntrl,i=!0,"member"==(r={access:"viewer",email:this.beComponentForm.value.email,name:this.beComponentForm.value.name,role:this.beComponentForm.value.role}).role&&(i=!1),this.isSaving=!0,t.next=5,this.adminService.editUserOrg(!0,i,e,r,n,null).then((function(t){o.isSaving=!1,o.toastr.success(t.result),o.dialogRef.close(),console.log("user is edited")})).catch((function(t){o.isSaving=!1,o.dialogRef.close(),o.toastr.error(t.message)}));case 5:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||oG)(Oa(Zy),Oa(AA),Oa(RF),Oa($o),Oa(yW),Oa(AH),Oa(MS),Oa(FS))},oG.\u0275cmp=ve({type:oG,selectors:[["vf-user-edit"]],outputs:{close:"close"},decls:34,vars:8,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],["id","form",3,"formGroup"],["appearance","legacy",1,"full-width"],["matInput","","formControlName","uid","placeholder","User ID",3,"readonly"],["matInput","","formControlName","name","placeholder","Name",3,"readonly"],["matInput","","formControlName","email","placeholder","Email",3,"readonly"],["formControlName","slct_cntrl"],[1,"searchInput"],["matInput","","placeholder","select organization",3,"input"],["inputFilter",""],[3,"value",4,"ngFor","ngForOf"],["appearance","legacy"],["formControlName","role"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"value"],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Ma(4,"h1"),ws(5,"Edit Users"),Fa(),Fa(),Ma(6,"form",4),Ma(7,"mat-grid-tile",2),Ma(8,"mat-form-field",5),La(9,"input",6),Fa(),Fa(),Ma(10,"mat-grid-tile",2),Ma(11,"mat-form-field",5),La(12,"input",7),Fa(),Fa(),Ma(13,"mat-grid-tile",2),Ma(14,"mat-form-field",5),La(15,"input",8),Fa(),Fa(),Ma(16,"mat-grid-tile",2),Ma(17,"mat-form-field",5),Ma(18,"mat-label"),ws(19,"List of Organizations"),Fa(),Ma(20,"mat-select",9),Ma(21,"div",10),Ma(22,"input",11,12),qa("input",(function(t){return e.lookup(t.target.value)})),Fa(),Fa(),Aa(24,JW,2,2,"mat-option",13),Fa(),Fa(),Fa(),Ma(25,"mat-grid-tile",2),Ma(26,"mat-form-field",14),Ma(27,"mat-label"),ws(28,"Role"),Fa(),Ma(29,"mat-select",15),Aa(30,tG,2,2,"mat-option",13),Fa(),Fa(),Fa(),Ma(31,"mat-grid-tile",2),Aa(32,eG,1,1,"mat-spinner",16),Aa(33,nG,2,1,"button",17),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(6),Ra("formGroup",e.beComponentForm),kr(3),Ra("readonly",e.isReadonly),kr(3),Ra("readonly",e.isReadonly),kr(3),Ra("readonly",e.isReadonly),kr(9),Ra("ngForOf",e.filteredDataToSearch),kr(6),Ra("ngForOf",e.roles),kr(2),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,UI,vE,GI,PT,WT,aE,mE,dA,xT,kR,Nh,Fh,gS,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}#name[_ngcontent-%COMP%]{display:none}.searchInput[_ngcontent-%COMP%]{height:30px;padding-left:5px}"]}),oG),sG=((rG=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.users=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||rG)(Oa(MS),Oa(FS))},rG.\u0275cmp=ve({type:rG,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-user-edit",0,1),qa("close",(function(t){return e.close(t)})),Fa())},directives:[aG],encapsulation:2}),rG),uG=((iG=function(){function t(e){_classCallCheck(this,t),this.firestore=e}return _createClass(t,[{key:"deleteAllUsesCollections",value:function(){var t=this;return z(this.firestore.collection("users").get()).pipe(fp((function(e){var n=[];return e.docs.forEach((function(e){var i=e.ref.collection("templates");n.push(t.deleteUsesCollectionsInTemplates(i))})),Promise.all(n)})))}},{key:"deleteUsesCollectionsInTemplates",value:function(t){var e=this;return t.get().then((function(t){var n=[];return t.docs.forEach((function(t){var i=t.ref.collection("uses");n.push(e.checkAndDeleteCollection(i))})),Promise.all(n).then((function(){}))}))}},{key:"checkAndDeleteCollection",value:function(t){return t.get().then((function(t){if(t.empty)return Promise.resolve();var e=[];return t.docs.forEach((function(t){e.push(t.ref.delete())})),Promise.all(e).then((function(){}))})).catch((function(t){throw console.log("Error checking and deleting collection:",t),t}))}}]),t}()).\u0275fac=function(t){return new(t||iG)(Xt(Zy))},iG.\u0275prov=dt({token:iG,factory:iG.\u0275fac,providedIn:"root"}),iG);function lG(t,e){1&t&&(Ma(0,"th",13),ws(1,"User ID"),Fa())}function cG(t,e){if(1&t&&(Ma(0,"td",14),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.uid," ")}}function hG(t,e){1&t&&(Ma(0,"th",13),ws(1,"Name"),Fa())}function fG(t,e){if(1&t&&(Ma(0,"td",14),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.name," ")}}function dG(t,e){1&t&&(Ma(0,"th",13),ws(1,"Email"),Fa())}function pG(t,e){if(1&t&&(Ma(0,"td",14),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.email," ")}}function mG(t,e){1&t&&La(0,"th",13)}function vG(t,e){if(1&t){var n=Ua();Ma(0,"td",14),Ma(1,"button",15),qa("click",(function(){en(n);var t=e.$implicit;return Qa().edit(t)})),ws(2,"Edit"),Fa(),Fa()}}function gG(t,e){1&t&&La(0,"th",13)}function yG(t,e){if(1&t){var n=Ua();Ma(0,"td",14),Ma(1,"button",15),qa("click",(function(){en(n);var t=e.$implicit;return Qa().createTeam(t)})),ws(2,"Create Team"),Fa(),Fa()}}function _G(t,e){1&t&&La(0,"tr",16)}function bG(t,e){1&t&&La(0,"tr",17)}var wG,kG=function(){return[5,10,20]},CG=((wG=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.adminService=e,this.cdr=n,this.dialog=i,this.firestore=r,this.data=o,this.deleteService=a,this.users=[],this.displayedColumns=["UserID","Name","Email","Edit","Create Team"]}return _createClass(t,[{key:"applyFilter",value:function(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}},{key:"ngOnInit",value:function(){console.log("This is my initial value",this.stateChanged),this.getBackofficeUsers()}},{key:"edit",value:function(t){this.dialog.open(sG,{data:{user:t}})}},{key:"createTeam",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("user",t),n={uid:t.uid,email:t.email,name:t.name},console.log("es",n),e.next=5,this.adminService.createTeam(n).then((function(t){console.log(t)}
1)).catch((function(t){console.log(t)}));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getBackofficeUsers",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.adminService.returnBackofficeUsers();case 3:e=t.sent,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;)(r=i.value).customClaims||(this.firestore.collection("users").doc(r.uid),this.users.push({uid:r.uid,name:r.displayName,email:r.email}))}catch(o){n.e(o)}finally{n.f()}this.dataSource=new sH(this.users),this.dataSource.paginator=this.paginator,console.log("rawresult",e),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,this,[[0,9]])})))}},{key:"editCustomClaims",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t),e.next=3,this.adminService.editCustomClaims(t).then((function(t){console.log(t)})).catch((function(t){console.log(t)}));case 3:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||wG)(Oa(yW),Oa($o),Oa(VS),Oa(Zy),Oa(zF),Oa(uG))},wG.\u0275cmp=ve({type:wG,selectors:[["vf-admin-list"]],viewQuery:function(t,e){var n;1&t&&al(uV,!0),2&t&&rl(n=hl())&&(e.paginator=n.first)},inputs:{stateChanged:"stateChanged"},decls:24,vars:5,consts:[["matInput","",3,"keyup"],["input",""],["mat-table","","matSort","false",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","UserID"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Name"],["matColumnDef","Email"],["matColumnDef","Edit"],["matColumnDef","Create Team"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-flat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Ma(0,"mat-form-field"),Ma(1,"mat-label"),ws(2,"Search..."),Fa(),Ma(3,"input",0,1),qa("keyup",(function(t){return e.applyFilter(t)})),Fa(),Fa(),Ma(5,"table",2),ja(6,3),Aa(7,lG,2,0,"th",4),Aa(8,cG,2,1,"td",5),Ba(),ja(9,6),Aa(10,hG,2,0,"th",4),Aa(11,fG,2,1,"td",5),Ba(),ja(12,7),Aa(13,dG,2,0,"th",4),Aa(14,pG,2,1,"td",5),Ba(),ja(15,8),Aa(16,mG,1,0,"th",4),Aa(17,vG,3,0,"td",5),Ba(),ja(18,9),Aa(19,gG,1,0,"th",4),Aa(20,yG,3,0,"td",5),Ba(),Aa(21,_G,1,0,"tr",10),Aa(22,bG,1,0,"tr",11),Fa(),La(23,"mat-paginator",12)),2&t&&(kr(5),Ra("dataSource",e.dataSource),kr(16),Ra("matHeaderRowDef",e.displayedColumns),kr(1),Ra("matRowDefColumns",e.displayedColumns),kr(1),Ra("pageSizeOptions",Lu(4,kG)))},directives:[PT,xT,WT,RU,UU,LU,MU,GU,$U,uV,zU,WU,MA,ZU,nH],styles:["table[_ngcontent-%COMP%]{width:100%}.false-button[_ngcontent-%COMP%]{margin:0 20px}"]}),wG);function xG(t,e){if(1&t&&(Ma(0,"mat-option",19),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function SG(t,e){if(1&t&&(Ma(0,"mat-option",19),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function EG(t,e){1&t&&La(0,"mat-spinner",20),2&t&&Ra("diameter",25)}function IG(t,e){if(1&t){var n=Ua();Ma(0,"button",21),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().beComponentForm.dirty)}var AG,TG,OG=((TG=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.firestore=e,this.fb=n,this.teamService=i,this.cdr=r,this.adminService=o,this.toastr=a,this.dialogRef=s,this.user=u,this.isReadonly=!0,this.teamID=[],this.filteredDataToSearch=[],this.beComponentForm=new AI({slct_cntrl:new II,uid:new II,name:new II,email:new II,role:new II}),this.roles=[{value:"admin",viewValue:"Admin"},{value:"member",viewValue:"Member"}],this.close=new Ku}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.beComponentForm=this.fb.group({uid:[this.user.user.uid],slct_cntrl:[this.user.user.teamId],name:[this.user.user.name],email:[this.user.user.email],teamId:[this.user.user.teamId],role:[]}),this.firestore.collection("teams").valueChanges({idField:"id"}
1).subscribe((function(e){t.teams=e;for(var n=0;n<e.length;n++)t.teamID.push({value:t.teams[n].id,viewValue:t.teams[n].id});t.filteredDataToSearch=t.teamID.map((function(t){return{viewValue:t.viewValue,value:t.value}}))}))}},{key:"lookup",value:function(t){this.filteredDataToSearch=this.teamID.filter((function(e){return e.viewValue.toString().toLowerCase().indexOf(t)>-1})).map((function(t){return{viewValue:t.viewValue,value:t.value}}))}},{key:"clean",value:function(t){t.value="",this.lookup(t.value)}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i,r,o,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.beComponentForm.value.uid,n=this.beComponentForm.value.slct_cntrl,i=this.beComponentForm.value.teamId,r=!0,"member"==(o={access:"viewer",email:this.beComponentForm.value.email,name:this.beComponentForm.value.name,role:this.beComponentForm.value.role}).role&&(r=!1),this.isSaving=!0,t.next=5,this.adminService.editUserOrg(!1,r,e,o,n,i).then((function(t){console.log("user is edited"),a.isSaving=!1,a.toastr.success(t.result),a.dialogRef.close()})).catch((function(t){a.isSaving=!1,a.dialogRef.close(),a.toastr.error(t.message)}));case 5:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||TG)(Oa(Zy),Oa(AA),Oa(RF),Oa($o),Oa(yW),Oa(AH),Oa(MS),Oa(FS))},TG.\u0275cmp=ve({type:TG,selectors:[["vf-teams-edit"]],outputs:{close:"close"},decls:37,vars:9,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],["id","form",3,"formGroup"],["appearance","legacy",1,"full-width"],["matInput","","formControlName","uid","placeholder","User ID",3,"readonly"],["matInput","","formControlName","name","placeholder","User Name",3,"readonly"],["matInput","","formControlName","email","placeholder","User Email",3,"readonly"],["matInput","","formControlName","teamId","placeholder","Current Team",3,"readonly"],["formControlName","slct_cntrl"],[1,"searchInput"],["matInput","","placeholder","select organization",3,"input"],["inputFilter",""],[3,"value",4,"ngFor","ngForOf"],["appearance","legacy"],["formControlName","role"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"value"],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Ma(4,"h1"),ws(5,"Edit Users"),Fa(),Fa(),Ma(6,"form",4),Ma(7,"mat-grid-tile",2),Ma(8,"mat-form-field",5),La(9,"input",6),Fa(),Fa(),Ma(10,"mat-grid-tile",2),Ma(11,"mat-form-field",5),La(12,"input",7),Fa(),Fa(),Ma(13,"mat-grid-tile",2),Ma(14,"mat-form-field",5),La(15,"input",8),Fa(),Fa(),Ma(16,"mat-grid-tile",2),Ma(17,"mat-form-field",5),La(18,"input",9),Fa(),Fa(),Ma(19,"mat-grid-tile",2),Ma(20,"mat-form-field",5),Ma(21,"mat-label"),ws(22,"List of Organizations"),Fa(),Ma(23,"mat-select",10),Ma(24,"div",11),Ma(25,"input",12,13),qa("input",(function(t){return e.lookup(t.target.value)})),Fa(),Fa(),Aa(27,xG,2,2,"mat-option",14),Fa(),Fa(),Fa(),Ma(28,"mat-grid-tile",2),Ma(29,"mat-form-field",15),Ma(30,"mat-label"),ws(31,"Role"),Fa(),Ma(32,"mat-select",16),Aa(33,SG,2,2,"mat-option",14),Fa(),Fa(),Fa(),Ma(34,"mat-grid-tile",2),Aa(35,EG,1,1,"mat-spinner",17),Aa(36,IG,2,1,"button",18),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(6),Ra("formGroup",e.beComponentForm),kr(3),Ra("readonly",e.isReadonly),kr(3),Ra("readonly",e.isReadonly),kr(3),Ra("readonly",e.isReadonly),kr(3),Ra("readonly",e.isReadonly),kr(9),Ra("ngForOf",e.filteredDataToSearch),kr(6),Ra("ngForOf",e.roles),kr(2),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,UI,vE,GI,PT,WT,aE,mE,dA,xT,kR,Nh,Fh,gS,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}#name[_ngcontent-%COMP%]{display:none}.searchInput[_ngcontent-%COMP%]{height:30px;padding-left:5px}"]}),TG),DG=((AG=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.users=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(t){this.dialogRef.close(t)}}]),t}()).\u0275fac=function(t){return new(t||AG)(Oa(MS),Oa(FS))},AG.\u0275cmp=ve({type:AG,selectors:[["ng-component"]],decls:2,vars:0,consts:[[3,"close"],["editor",""]],template:function(t,e){1&t&&(Ma(0,"vf-teams-edit",0,1),qa("close",(function(t){return e.close(t)})),Fa())},directives:[OG],encapsulation:2}),AG);function PG(t,e){1&t&&(Ma(0,"th",14),ws(1,"User ID"),Fa())}function RG(t,e){if(1&t&&(Ma(0,"td",15),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.uid," ")}}function NG(t,e){1&t&&(Ma(0,"th",14),ws(1,"Name"),Fa())}function MG(t,e){if(1&t&&(Ma(0,"td",15),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.name," ")}}function FG(t,e){1&t&&(Ma(0,"th",14),ws(1,"Email"),Fa())}function LG(t,e){if(1&t&&(Ma(0,"td",15),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.email," ")}}function jG(t,e){1&t&&(Ma(0,"th",14),ws(1," Role "),Fa())}function BG(t,e){if(1&t&&(Ma(0,"td",15),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.role," ")}}function VG(t,e){1&t&&(Ma(0,"th",14),ws(1," Organization ID "),Fa())}function UG(t,e){if(1&t&&(Ma(0,"td",15),ws(1),Fa()),2&t){var n=e.$implicit;kr(1),Cs(" ",n.teamId," ")}}function HG(t,e){1&t&&La(0,"th",14)}function zG(t,e){if(1&t){var n=Ua();Ma(0,"td",15),Ma(1,"button",16),qa("click",(function(){en(n);var t=e.$implicit;return Qa().edit(t)})),ws(2,"Edit"),Fa(),Fa()}}function qG(t,e){1&t&&La(0,"tr",17)}function WG(t,e){1&t&&La(0,"tr",18)}var GG,KG,YG,QG,$G,XG=function(){return[5,10,20]},ZG=(($G=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.adminService=e,this.cdr=n,this.dialog=i,this.firestore=r,this.data=o,this.myArray=[],this.teamID=[],this.displayedColumns=["UserID","Name","Email","Role","OrganizationID","E
1dit"]}return _createClass(t,[{key:"applyFilter",value:function(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}},{key:"ngOnInit",value:function(){var t=this;console.log("This is my initial value",this.stateChanged),this.firestore.collection("teams").valueChanges({idField:"id"}).subscribe((function(e){t.teams=e;for(var n=0;n<e.length;n++)if(t.teams[n].users){var i=t.teams[n].users;for(var r in i)t.teamID.push({uid:r,name:i[r].name,email:i[r].email,role:i[r].role,teamId:t.teams[n].id});t.dataSource=new sH(t.teamID),t.dataSource.paginator=t.paginator}}))}},{key:"edit",value:function(t){this.dialog.open(DG,{data:{user:t}})}}]),t}()).\u0275fac=function(t){return new(t||$G)(Oa(yW),Oa($o),Oa(VS),Oa(Zy),Oa(zF))},$G.\u0275cmp=ve({type:$G,selectors:[["vf-admin-teams"]],viewQuery:function(t,e){var n;1&t&&al(uV,!0),2&t&&rl(n=hl())&&(e.paginator=n.first)},inputs:{stateChanged:"stateChanged"},decls:27,vars:5,consts:[["matInput","",3,"keyup"],["input",""],["mat-table","","matSort","false",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","UserID"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Name"],["matColumnDef","Email"],["matColumnDef","Role"],["matColumnDef","OrganizationID"],["matColumnDef","Edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-flat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Ma(0,"mat-form-field"),Ma(1,"mat-label"),ws(2,"Search..."),Fa(),Ma(3,"input",0,1),qa("keyup",(function(t){return e.applyFilter(t)})),Fa(),Fa(),Ma(5,"table",2),ja(6,3),Aa(7,PG,2,0,"th",4),Aa(8,RG,2,1,"td",5),Ba(),ja(9,6),Aa(10,NG,2,0,"th",4),Aa(11,MG,2,1,"td",5),Ba(),ja(12,7),Aa(13,FG,2,0,"th",4),Aa(14,LG,2,1,"td",5),Ba(),ja(15,8),Aa(16,jG,2,0,"th",4),Aa(17,BG,2,1,"td",5),Ba(),ja(18,9),Aa(19,VG,2,0,"th",4),Aa(20,UG,2,1,"td",5),Ba(),ja(21,10),Aa(22,HG,1,0,"th",4),Aa(23,zG,3,0,"td",5),Ba(),Aa(24,qG,1,0,"tr",11),Aa(25,WG,1,0,"tr",12),Fa(),La(26,"mat-paginator",13)),2&t&&(kr(5),Ra("dataSource",e.dataSource),kr(19),Ra("matHeaderRowDef",e.displayedColumns),kr(1),Ra("matRowDefColumns",e.displayedColumns),kr(1),Ra("pageSizeOptions",Lu(4,XG)))},directives:[PT,xT,WT,RU,UU,LU,MU,GU,$U,uV,zU,WU,MA,ZU,nH],styles:["table[_ngcontent-%COMP%]{width:100%}"]}),$G),JG=((QG=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.stateChanged=!1}return _createClass(t,[{key:"onStateChange",value:function(t){this.stateChanged=t,console.log("I am fired")}},{key:"changeEmail",value:function(){this.dialog.open(GW)}},{key:"changeClaims",value:function(){this.dialog.open(ZW)}}]),t}()).\u0275fac=function(t){return new(t||QG)(Oa(VS))},QG.\u0275cmp=ve({type:QG,selectors:[["vf-admin-page"]],decls:13,vars:1,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],[1,"header","proper-width"],["id","admin-title"],["mat-flat-button","","color","primary",3,"click"],["label","List of users"],[3,"stateChanged"],["label","List of users in teams"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1",2),ws(3," Admin Panel "),Fa(),Ma(4,"button",3),qa("click",(function(){return e.changeClaims()})),ws(5,"Update Claims"),Fa(),Ma(6,"button",3),qa("click",(function(){return e.changeEmail()})),ws(7,"Change Email"),Fa(),Fa(),Ma(8,"mat-tab-group"),Ma(9,"mat-tab",4),La(10,"vf-admin-list",5),Fa(),Ma(11,"mat-tab",6),Ma(12,"vf-admin-teams",5),qa("stateChanged",(function(t){return e.onStateChange(t)})),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(10),Ra("stateChanged",e.stateChanged))},directives:[xP,uD,OP,MA,FB,EB,CG,ZG],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.mat-tab-group[_ngcontent-%COMP%], .proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}.settings-section[_ngcontent-%COMP%]{margin-bottom:50px;margin-top:0;position:relative}.settings-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:3em;background:#ebeef2;padding-left:10px;border-radius:4px}.settings-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:10px}.settings-section[_ngcontent-%COMP%] button#edit[_ngcontent-%COMP%]{position:absolute;top:40px;right:10px}.label[_ngcontent-%COMP%]{width:150px}#settings-title[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{font-weight:700}.mat-button.logout[_ngcontent-%COMP%], .mat-button.upgrade[_ngcontent-%COMP%]{line-height:0;color:#4284fb;font-weight:300;
1left:25px}#callout[_ngcontent-%COMP%]{margin-top:50px;padding:16px 16px 16px 12px;display:flex;width:100%;max-width:400px;border-radius:3px;border:1px solid transparent;background:rgba(251,243,219,.66)}a#callout[_ngcontent-%COMP%]{color:#4284fb}#lightning-icon[_ngcontent-%COMP%]{height:22px;margin-bottom:-3px}mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{visibility:hidden}mat-list-item[_ngcontent-%COMP%]:hover > mat-icon[_ngcontent-%COMP%]{visibility:visible}"]}),QG),tK=((YG=function(){function t(e,n,i,r){_classCallCheck(this,t),this.authService=e,this.data=n,this.router=i,this.zone=r}return _createClass(t,[{key:"ngOnInit",value:function(){this.$user=this.data.$user.asObservable()}},{key:"continue",value:function(){var t=this;this.zone.run((function(){return t.router.navigateByUrl("/")}))}}]),t}()).\u0275fac=function(t){return new(t||YG)(Oa(WF),Oa(zF),Oa(Gv),Oa(Ll))},YG.\u0275cmp=ve({type:YG,selectors:[["vf-migration-page"]],decls:8,vars:4,consts:[["header","New Toys \ud83c\udf89"],["fxLayout","column","fxLayoutAlign","center center"],["id","header"],["src","https://www.loom.com/embed/ce90270cee9f42e186215cff72169e95","allowfullscreen","",3,"frameBorder"],["id","button","mat-raised-button","",3,"disabled","click"]],template:function(t,e){if(1&t&&(Ma(0,"vf-splash-page-layout",0),Ma(1,"div",1),Ma(2,"h1",2),ws(3,"Big updates \u2728"),Fa(),La(4,"iframe",3),Ma(5,"button",4),qa("click",(function(){return e.continue()})),Hu(6,"async"),ws(7,"Next"),Fa(),Fa(),Fa()),2&t){var n,i=!(null!=(n=zu(6,2,e.$user))&&n.airtableId);kr(4),Ra("frameBorder",0),kr(1),Ra("disabled",i)}},directives:[Ij,uD,OP,MA],pipes:[pf],styles:["#button[_ngcontent-%COMP%]{margin-top:20px;background-color:#4284fb;color:#fff}#header[_ngcontent-%COMP%]{margin-top:20px;font-weight:700;font-size:2em;padding-bottom:10px}iframe[_ngcontent-%COMP%]{height:300px;width:495px}"]}),YG),eK=((KG=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.data.$user.asObservable().subscribe((function(t){return e.user=t}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"goToBilling",value:function(){console.log("Going")}}]),t}()).\u0275fac=function(t){return new(t||KG)(Oa(zF))},KG.\u0275cmp=ve({type:KG,selectors:[["vf-help-page"]],decls:6,vars:0,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],[1,"header","proper-width"],["id","settings-title"],[1,"proper-width"],["src","https://airtable.com/embed/shr7f6qhFDqQS9gxm?backgroundColor=gray","frameborder","0","onmousewheel","","width","100%","height","715.005682",1,"airtable-embed","airtable-dynamic-height",2,"background","transparent","border","1px solid #ccc"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1",2),ws(3," Help "),Fa(),Fa(),Ma(4,"div",3),La(5,"iframe",4),Fa(),Fa())},directives:[xP,uD,OP],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}.settings-section[_ngcontent-%COMP%]{margin-bottom:10px;position:relative}.settings-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{background:#ebeef2;padding-left:10px;border-radius:4px}.settings-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:10px}.settings-section[_ngcontent-%COMP%] button#edit[_ngcontent-%COMP%]{position:absolute;top:40px;right:10px}.label[_ngcontent-%COMP%]{width:150px}#settings-title[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{font-weight:700}"]}),KG),nK=((GG=function(){function t(){_classCallCheck(this,t),this.rating=3,this.hover=0,this.isHovering=!1}return _createClass(t,[{key:"setRating",value:function(t){this.rating=t,this.hover=0,this.propagateChange(this.rating)}},{key:"onLeave",value:function(t){this.hover=0,this.isHovering=!1}},{key:"onEnter",value:function(t){this.hover=t,this.isHovering=!0}},{key:"writeValue",value:function(t){this.rating=t||0}}
1,{key:"registerOnChange",value:function(t){this.propagateChange=t}},{key:"registerOnTouched",value:function(t){this.propagateTouched=t}}]),t}()).\u0275fac=function(t){return new(t||GG)},GG.\u0275cmp=ve({type:GG,selectors:[["vf-star-rating"]],features:[qs([{provide:eE,useExisting:Et((function(){return GG})),multi:!0}])],decls:11,vars:20,consts:[["fxLayout","row"],[3,"click","mouseenter","mouseleave"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-icon",1),qa("click",(function(){return e.setRating(1)}))("mouseenter",(function(){return e.onEnter(1)}))("mouseleave",(function(){return e.onLeave(1)})),ws(2,"star"),Fa(),Ma(3,"mat-icon",1),qa("click",(function(){return e.setRating(2)}))("mouseenter",(function(){return e.onEnter(2)}))("mouseleave",(function(){return e.onLeave(2)})),ws(4,"star"),Fa(),Ma(5,"mat-icon",1),qa("click",(function(){return e.setRating(3)}))("mouseenter",(function(){return e.onEnter(3)}))("mouseleave",(function(){return e.onLeave(3)})),ws(6,"star"),Fa(),Ma(7,"mat-icon",1),qa("click",(function(){return e.setRating(4)}))("mouseenter",(function(){return e.onEnter(4)}))("mouseleave",(function(){return e.onLeave(4)})),ws(8,"star"),Fa(),Ma(9,"mat-icon",1),qa("click",(function(){return e.setRating(5)}))("mouseenter",(function(){return e.onEnter(5)}))("mouseleave",(function(){return e.onLeave(5)})),ws(10,"star"),Fa(),Fa()),2&t&&(kr(1),us("active",e.rating>=1)("hovering",e.hover>=1),kr(2),us("active",e.rating>=2)("hovering",e.hover>=2),kr(2),us("active",e.rating>=3)("hovering",e.hover>=3),kr(2),us("active",e.rating>=4)("hovering",e.hover>=4),kr(2),us("active",e.rating>=5)("hovering",e.hover>=5))},directives:[uD,NM],styles:["mat-icon[_ngcontent-%COMP%]{color:#d3d3d3;cursor:pointer;font-size:40px;width:40px}mat-icon.active[_ngcontent-%COMP%]{color:#00f}mat-icon.hovering[_ngcontent-%COMP%]{color:#add8e6}"]}),GG);function iK(t,e){if(1&t){var n=Ua();Ma(0,"div",11),Ma(1,"h1"),ws(2,"Please enter your email address"),Fa(),Ma(3,"mat-form-field",12),Ma(4,"textarea",13),qa("ngModelChange",(function(t){return en(n),Qa(3).update.email=t})),Fa(),Fa(),Ma(5,"button",14),qa("click",(function(){return en(n),Qa(3).next()})),ws(6,"Next "),Fa(),Fa()}if(2&t){var i=Qa(3);kr(4),Ra("ngModel",i.update.email),kr(1),Ra("disabled",!(null!=i.update&&null!=i.update.email&&i.update.email.length))}}function rK(t,e){if(1&t){var n=Ua();Ma(0,"div",15),Ma(1,"h1"),ws(2,"How would you feel if you could no longer use Very Fast?"),Fa(),Ma(3,"div",16),Ma(4,"button",17),qa("click",(function(){return en(n),Qa(3).setPmf(1)})),ws(5,"Not Disappointed"),Fa(),Ma(6,"button",17),qa("click",(function(){return en(n),Qa(3).setPmf(2)})),ws(7,"Somewhat Disappointed"),Fa(),Ma(8,"button",17),qa("click",(function(){return en(n),Qa(3).setPmf(3)})),ws(9,"Very Disappointed"),Fa(),Fa(),Fa()}}function oK(t,e){if(1&t){var n=Ua();Ma(0,"div",11),Ma(1,"h1"),ws(2,"What is the main benefit you receive from Very Fast?"),Fa(),Ma(3,"mat-form-field",12),Ma(4,"textarea",18),qa("ngModelChange",(function(t){return en(n),Qa(3).update.benefit=t})),Fa(),Fa(),Ma(5,"button",14),qa("click",(function(){return en(n),Qa(3).next()})),ws(6,"Next "),Fa(),Fa()}if(2&t){var i=Qa(3);kr(4),Ra("ngModel",i.update.benefit),kr(1),Ra("disabled",!(null!=i.update&&null!=i.update.benefit&&i.update.benefit.length))}}function aK(t,e){if(1&t){var n=Ua();Ma(0,"div",19),Ma(1,"h1"),ws(2,"How many stars would you give us today?"),Fa(),Ma(3,"vf-star-rating",20),qa("ngModelChange",(function(t){return en(n),Qa(3).update.pmfStars=t})),Fa(),Ma(4,"button",21),qa("click",(function(){return en(n),Qa(3).next()})),ws(5,"Next "),Fa(),Fa()}if(2&t){var i=Qa(3);kr(3),Ra("ngModel",i.update.pmfStars),kr(1),Ra("disabled",!i.update.pmfStars)}}function sK(t,e){if(1&t){var n=Ua();Ma(0,"div",11),Ma(1,"h1"),ws(2,"What's one thing that we can do to increase that rating by one star?"),Fa(),Ma(3,"mat-form-field",12),Ma(4,"textarea",13),qa("ngModelChange",(function(t){return en(n),Qa(3).update.improve=t})),Fa(),Fa(),Ma(5,"button",14),qa("click",(function(){return en(n),Qa(3).next()})),ws(6,"Next "),Fa(),Fa()}if(2&t){var i=Qa(3);kr(4),Ra("ngModel",i.update.improve),kr(1),Ra("disabled",!(null!=i.update&&null!=i.update.improve&&i.update.improve.length))}}function uK(t,e){if(1&t){var n=Ua();Ma(0,"div",11),Ma(1,"h1"),ws(2,"And lastly, do you have any questions for us?"),Fa(),Ma(3,"mat-form-field",12),Ma(4,"textarea",13),qa("ngModelChange",(function(t){return en(n),Qa(3).update.question=t})),Fa(),Fa(),Ma(5,"button",22),qa("click",(function(){return en(n),Qa(3).submitSurvey()})),ws(6,"Next "),Fa(),Fa()}if(2&t){var i=Qa(3);kr(4),Ra("ngModel",i.update.question),kr(1),Ra("disabled",!(null!=i.update&&null!=i.update.question&&i.update.question.length))}}function lK(t,e){1&t&&(Ma(0,"div",11),Ma(1,"h1"),ws(2,"Uh Oh!"),Fa(),ws(3," It looks like you're super special and have run into an issue. Please contact [email protected] for help. "),Ma(4,"button",23),ws(5,"Finis
1h up"),Fa(),Fa())}function cK(t,e){if(1&t){var n=Ua();Ma(0,"div",4),La(1,"mat-progress-bar",5),Ma(2,"div",6),Aa(3,iK,7,2,"div",7),Aa(4,rK,10,0,"div",8),Aa(5,oK,7,2,"div",7),Aa(6,aK,6,2,"div",9),Aa(7,sK,7,2,"div",7),Aa(8,uK,7,2,"div",7),Aa(9,lK,6,0,"div",7),Fa(),Ma(10,"button",10),qa("click",(function(){return en(n),Qa(2).goBack()})),ws(11," \u2190 back "),Fa(),Fa()}if(2&t){var i=Qa(2);kr(1),Ra("value",100*i.currentQuestion/i.totalQuestions),kr(1),Ra("ngSwitch",i.currentQuestion),kr(1),Ra("ngSwitchCase",1),kr(1),Ra("ngSwitchCase",2),kr(1),Ra("ngSwitchCase",3),kr(1),Ra("ngSwitchCase",4),kr(1),Ra("ngSwitchCase",5),kr(1),Ra("ngSwitchCase",6),kr(1),Ra("ngSwitchCase",-1),kr(1),Ra("disabled",1===i.currentQuestion||7===i.currentQuestion)}}function hK(t,e){1&t&&(Ma(0,"div"),ws(1,"Just reset your credits for the month. You're good to go!"),Fa())}function fK(t,e){1&t&&(Ma(0,"div"),ws(1,"It looks like we have already received a survey from you. If that doesn't sound right, send us a note to [email protected]. Thanks!"),Fa())}function dK(t,e){if(1&t&&(Ma(0,"div",24),Ma(1,"div",11),Ma(2,"h1"),ws(3,"Thank you so much! \ud83c\udf89"),Fa(),Aa(4,hK,2,0,"div",1),Aa(5,fK,2,0,"div",1),Ma(6,"button",25),ws(7,"Finish up"),Fa(),Fa(),Fa()),2&t){var n=Qa(2);kr(4),Ra("ngIf",n.completed),kr(1),Ra("ngIf",!n.completed)}}function pK(t,e){if(1&t&&(Ma(0,"div"),Aa(1,cK,12,10,"div",2),Aa(2,dK,8,2,"div",3),Fa()),2&t){var n=e.ngIf;kr(1),Ra("ngIf",!n.pmf),kr(1),Ra("ngIf",!!n.pmf)}}var mK,vK,gK,yK=((gK=function(){function t(e,n,i){_classCallCheck(this,t),this.service=e,this.functions=n,this.http=i,this.currentQuestion=1,this.totalQuestions=7,this.completed=!1,this.update={}}return _createClass(t,[{key:"ngOnInit",value:function(){this.$user=this.service.$user.asObservable()}},{key:"setPmf",value:function(t){1==t&&(this.update.pmf="Not Disappointed",this.currentQuestion++),2==t&&(this.update.pmf="Somewhat Disappointed",this.currentQuestion++),3==t&&(this.update.pmf="Very Disappointed",this.currentQuestion++)}},{key:"goBack",value:function(){1!==this.currentQuestion&&this.currentQuestion--}},{key:"next",value:function(){this.currentQuestion++}},{key:"SumbitToAirtable",value:function(t){var e=this,n=new PN({Authorization:"Bearer paty4hqtvbyxo4vtC.bd5b7577956a7f5be693717d9b481ee3b07ba41ef3bd4c92ffdd89ce5dc9c683","Content-Type":"application/json"});this.http.post("https://api.airtable.com/v0/appJTq6aPFSlY2kUQ/PMF",{records:[{fields:{Email:t.email,Q1:t.pmf,Q2:t.benefit,Q3:t.pmfStars,Q4:t.improve,Q5:t.question}}]},{headers:n}).subscribe({error:function(t){e.errorMessage=t.message,console.error("There was an error!",t)}})}},{key:"submitSurvey",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentQuestion=this.totalQuestions,this.completed=!0,t.next=3,this.pmfSurveyCompleted(this.update);case 3:e=t.sent,console.log("PMF Survey completed",e),this.SumbitToAirtable(this.update),e||(this.currentQuestion=-1);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"pmfSurveyCompleted",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("pmfSurveyCompleted")(t).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}}]),t}()).\u0275fac=function(t){return new(t||gK)(Oa(zF),Oa(xN),Oa(eM))},gK.\u0275cmp=ve({type:gK,selectors:[["vf-pmf-page"]],decls:3,vars:3,consts:[["header","PMF Feedback"],[4,"ngIf"],["class","onboarding-container","fxLayout","column",4,"ngIf"],["class","onboarding-container",4,"ngIf"],["fxLayout","column",1,"onboarding-container"],["mode","determinate","color","primary",3,"value"],[3,"ngSwitch"],["class","question","fxLayout","column",4,"ngSwitchCase"],["class","question",4,"ngSwitchCase"],["class","question","fxLayout","column","fxLayoutAlign","start left",4,"ngSwitchCase"],["id","back","mat-button","","fxFlexOffset","20px",3,"disabled","click"],["fxLayout","column",1,"question"],["appearance","outline"],["autofocus","","matInput","",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"question"],["fxLayout","row wrap","fxLayoutAlign","left"],["mat-raised-button","","color","primary",3,"click"],["matInput","","autofocus","",3,"ngModel","ngModelChange"],["fxLayout","column","fxLayoutAlign","start left",1,"question"],[3,"ngModel","ngModelChange"],["fxFlexOffset","60px","mat-raised-button","","color","primary",3,"disabled","click"],["id","cta-button","mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary","routerLink","/"],[1,"onboarding-container"],["mat-raised-button","","color","primary","routerLink","/",2,"margin-top","30px","max-width","100px"]],template:function(t,e){1&t&&(Ma(0,"vf-splash-page-layout",0),Aa(1,pK,3,2,"div",1),Hu(2,"async"),Fa()),2&t&&(kr(1),Ra("ngIf",zu(2,1,e.$user)))},directives:[Ij,Fh,uD,qq,Kh,Yh,MA,uP,PT,WT,aE,mE,VI,OP,nK,Kv],pipes:[pf],styles:[".onboarding-container[_ngcontent-%COMP%]{max-width:375px;width:90%}.onboarding-box[_ngcontent-%COMP%]{background:transparent;height:300px;padding:10px}h1#title[_ngcontent-%COMP%]{text-align:left;font-size:35px;font-weight:700;margin-bottom:20px}
1mat-progress-bar[_ngcontent-%COMP%]{margin-bottom:20px;height:10px;border-radius:5px}.question[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:left}.question[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:8px}.question[_ngcontent-%COMP%] button[_ngcontent-%COMP%] #cta-button[_ngcontent-%COMP%]{margin:0;max-width:150px}button[_ngcontent-%COMP%]{transition:opacity .2s linear}button[_ngcontent-%COMP%]:disabled{opacity:0}#back[_ngcontent-%COMP%]{text-align:left;max-width:90px}"]}),gK),_K=((vK=function(){function t(e,n,i){_classCallCheck(this,t),this.functions=e,this.dataService=n,this.firestore=i}return _createClass(t,[{key:"getFolderShareInfo",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.functions.httpsCallable("getSharedFolder")(t).toPromise());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"copyFolderToMyTemplates",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,i,r,o,a,s,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.folder,i=t.sharedBy,r=t.id,o=t.templates,a=t.origin,e.next=7,this.dataService.addFolder(n.name,{sharedBy:i,sharedFrom:this.getReferenceFromPath("/shared/"+r),origin:this.getReferenceFromPath(a)});case 7:return s=e.sent,e.next=10,Promise.all(o.map((function(t){return t.folder=s,t.sharedBy=i,t.sharedFrom=u.getReferenceFromPath(t.sharedFrom),u.dataService.newTemplate(t)})));case 10:return e.abrupt("return",s);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"getReferenceFromPath",value:function(t){return this.firestore.doc(t).ref}}]),t}()).\u0275fac=function(t){return new(t||vK)(Xt(xN),Xt(zF),Xt(Zy))},vK.\u0275prov=dt({token:vK,factory:vK.\u0275fac,providedIn:"root"}),vK),bK=((mK=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var n=e.name||"Clark Kent",i=e.fname||n.split(" ")[0];return yy(t.content,{profile:{name:n,fname:i,title:"Very Fast Hero",company:"Very Fast Company"}},!0)}}]),t}()).\u0275fac=function(t){return new(t||mK)},mK.\u0275pipe=xe({name:"templatePreview",type:mK,pure:!0}),mK);function wK(t,e){if(1&t&&(Ma(0,"div",4),La(1,"img",5),Ma(2,"div",6),ws(3),Fa(),Ma(4,"div",7),ws(5),Hu(6,"date"),Fa(),Fa()),2&t){var n=e.ngIf,i=Qa();kr(1),Ra("src",(null==n?null:n.photo)||"/assets/profile.png",er),kr(2),ks(n.name),kr(2),Cs("\u2022 ",qu(6,3,i.now,"shortTime"),"")}}var kK,CK=((kK=function(){function t(e,n,i){_classCallCheck(this,t),this.fb=e,this.dataService=n,this.dialogService=i,this.now=new Date,this.$user=this.dataService.$user.asObservable()}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||kK)(Oa(AA),Oa(zF),Oa(fF))},kK.\u0275cmp=ve({type:kK,selectors:[["vf-template-preview"]],inputs:{template:"template"},decls:8,vars:10,consts:[["id","template-name"],["id","content-wrapper",1,"mat-elevation-z2"],["fxLayout","row","id","preview-header",4,"ngIf"],[1,"content-preview",3,"innerHTML"],["fxLayout","row","id","preview-header"],[3,"src"],["fxFlexOffset","10px","id","preview-name"],["fxFlexOffset","5px","id","editor-time"]],template:function(t,e){1&t&&(Ma(0,"div",0),ws(1),Fa(),Ma(2,"div",1),Aa(3,wK,7,6,"div",2),Hu(4,"async"),La(5,"div",3),Hu(6,"templatePreview"),Hu(7,"async"),Fa()),2&t&&(kr(1),ks(e.template.name),kr(2),Ra("ngIf",zu(4,3,e.$user)),kr(2),Ra("innerHTML",qu(6,5,e.template,zu(7,8,e.$user)),tr))},directives:[Fh,uD,uP],pipes:[pf,bK,_f],styles:['#template-name[_ng
1content-%COMP%]{font-size:large;font-weight:700;padding-bottom:10px;margin-top:20px}#content-wrapper[_ngcontent-%COMP%]{background:#ebeef2;position:relative;width:490px;padding:40px 40px 40px 50px;border-radius:4px}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;font-family:\'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"\';resize:none;padding:15px 0;line-height:24px;font-size:16px}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%]::-webkit-scrollbar{width:0}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%]{white-space:pre-line;cursor:pointer}#content-wrapper[_ngcontent-%COMP%] .fadeout[_ngcontent-%COMP%]{position:absolute;bottom:0;height:15px;width:300px;background-image:linear-gradient(hsla(0,0%,100%,0),#ebeef2)}#content-wrapper[_ngcontent-%COMP%] .fadein[_ngcontent-%COMP%]{position:absolute;top:40px;height:15px;width:300px;background-image:linear-gradient(#ebeef2,hsla(0,0%,100%,0))}#preview-header[_ngcontent-%COMP%]{position:absolute;top:20px;left:10px}#preview-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px;width:30px;border-radius:30px;border:1px solid #d3d3d3}#preview-header[_ngcontent-%COMP%] #preview-name[_ngcontent-%COMP%]{font-size:16px;font-weight:800}#editor-time[_ngcontent-%COMP%]{color:rgba(0,0,0,.6)}']}),kK);function xK(t,e){1&t&&La(0,"vf-template-preview",9),2&t&&Ra("template",e.$implicit)}function SK(t,e){if(1&t){var n=Ua();Ma(0,"div",1),Ma(1,"div",2),Ma(2,"mat-icon",3),ws(3,"folder_shared"),Fa(),Ma(4,"span"),Ma(5,"b"),ws(6),Fa(),ws(7," shared "),Ma(8,"b"),ws(9),Fa(),ws(10," with you"),Fa(),Fa(),Ma(11,"div",4),Ma(12,"button",5),qa("click",(function(){return en(n),Qa().copyFolder()})),ws(13,"Copy Folder"),Fa(),Ma(14,"a",6),ws(15,"Cancel"),Fa(),Fa(),Ma(16,"div",7),Aa(17,xK,1,1,"vf-template-preview",8),Fa(),Fa()}if(2&t){var i=Qa();kr(6),ks(i.info.sharedBy),kr(3),Cs('"',i.info.folder.name,'"'),kr(8),Ra("ngForOf",i.info.templates)}}var EK,IK,AK=((IK=function(){function t(e,n,i){_classCallCheck(this,t),this.sharingService=e,this.route=n,this.router=i,this.isWorking=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.route.data.subscribe((function(e){return t.info=e.info}))}},{key:"copyFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isWorking=!0,t.next=3,this.sharingService.copyFolderToMyTemplates(this.info);case 3:return e=t.sent,t.next=6,this.router.navigate(["templates",e]);case 6:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||IK)(Oa(_K),Oa(Fm),Oa(Gv))},IK.\u0275cmp=ve({type:IK,selectors:[["vf-sharing-page"]],decls:1,vars:1,consts:[["id","info-wrapper",4,"ngIf"],["id","info-wrapper"],["id","info-header","fxLayout","row","fxLayoutAlign","start center"],["color","primary"],[1,"bigger-indent"],["mat-raised-button","","color","primary",3,"click"],["mat-button","","routerLink","/templates"],["id","template-list",1,"bigger-indent"],[3,"template",4,"ngFor","ngForOf"],[3,"template"]],template:function(t,e){1&t&&Aa(0,SK,18,3,"div",0),2&t&&Ra("ngIf",!!e.info)},directives:[Fh,uD,OP,NM,MA,FA,Yv,Nh,CK],styles:["vf-template-preview[_ngcontent-%COMP%]{margin-top:10px}#info-wrapper[_ngcontent-%COMP%]{padding:30px}#template-list[_ngcontent-%COMP%]{margin-top:50px}#template-list[_ngcontent-%COMP%], .bigger-indent[_ngcontent-%COMP%]{padding-left:30px}#info-header[_ngcontent-%COMP%]{font-size:25px;margin-top:30px;height:50px}#info-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:25px;width:25px;font-size:25px;margin-right:10px}"]}),IK),TK=((EK=function(){function t(e){_classCallCheck(this,t),this.service=e}return _createClass(t,[{key:"resolve",value:function(t,e){var n=t.params.folderShareId;return this.service.getFolderShareInfo(n)}}]),t}()).\u0275fac=function(t){return new(t||EK)(Xt(_K))},EK.\u0275prov=dt({token:EK,factory:EK.\u0275fac,providedIn:"root"}),EK);function OK(t,e){if(1&t){var n=Ua();Ma(0,"div",20),qa("click",(function(){return en(n),Qa(2).editFolderName=!0})),Hu(1,"async"),ws(2),Fa()}if(2&t){var i,r=Qa(2);us("hidden-folder",null==(i=zu(1,3,r.$folder))?null:i.archived),kr(2),Cs(" ",r.folder.name," ")}}function DK(t,e){if(1&t&&(Ma(0,"div",18),ws(1),Hu(2,"async"),Fa()),2&t){var n,i=Qa(2);kr(1),Cs(" ",null==(n=zu(2,1,i.$team))?null:n.name," Templates ")}}function PK(t,e){if(1&t&&(Ma(0,"h1",18),Aa(1,OK,3,5,"div",19),Aa(2,DK,3,3,"div",2),Fa()),2&t){var n=Qa();kr(1),Ra("ngIf",!!n.folder),kr(1),Ra("ngIf",!n.folder)}}function RK(t,e){if(1&t){var n=Ua();Ma(0,"mat-form-field",21),qa("focusout",(function(){en(n);var t=Qa();return t.updateFolderName(t.newFolderName)})),Ma(1,"input",22),qa("ngModelChange",(function(t){return en(n),Qa().newFolderName=t})),Fa(),Fa()}if(2&t){var i=Qa();kr(1),Ra("ngModel",i.newFolderName)}}function NK(t,e){if(1&t){var n=Ua();Ma(0,"button",23),qa("click",(function(){return en(n),Qa().archiveFolder(!1)})),Ma(1,"mat-icon",24),ws(2,"visibility_off"),Fa(),Fa()}}function MK(t,e){1&t&&(Ma(0,"button",25),Ma(1,"mat-icon",26),ws(2,"more_horiz"),Fa(),Fa()),2&t&&(Qa(),Ra("matMenuTriggerFor",Ta(25)))}function FK(t,e){if(1&t){var n=Ua();Ma(0,"button",27),qa("click",(function(){return en(n),Qa().newTemplate("")})),Ma(1,"mat-icon"),ws(2,"add_circle"),Fa(),ws(3," New Template "),Fa()}}function LK(t,e){if(1&t){var n=Ua();Ma(0,"div",28),Ma(1,"button",29),ws(2," Sort By "),Ma(3,"mat-icon"),ws(4,"keyboard_arrow_down"),Fa(),Fa(),Ma(5,"form",30),Ma(6,"mat-menu",null,31),Ma(8,"button",32),qa("click",(function(){return en(n),Qa().setSort(1)})),Ma(9,"span"),ws(10,"A-Z"),Fa(),Fa(),Ma(11,"button",32),qa("click",(function(){return en(n),Qa().setSort(2)})),Ma(12,"span"),ws(13,"Z-A"),Fa(),Fa(),Ma(14,"button",32),qa("click",(function(){return en(n),Qa().setSort(3)})),Ma(15,"span"),ws(16,"Newest First"),Fa(),Fa(),Ma(17,"button",32),qa("click",(function(){return en(n),Qa().setSort(4)})),Ma(18,"span"),ws(19,"Oldest First"),Fa(),Fa(),Fa(),Fa(),Fa()}if(2&t){var i=Ta(7),r=Qa();kr(1),Ra("matMenuTriggerFor",i),kr(4),Ra("formGroup",r.Sort)}}function jK(t,e){if(1&t&&La(0,"vf-template-card",33),2&t){var n=e.$implicit;Qa();var i=Ta(23);Ra("template",n)("selection",i.selection)}}var BK,VK,UK,HK=((UK=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.route=e,this.teamService=n,this.dialog=i,this.router=r,this.analytics=o,this.fb=a,this.templateSearchCtrl=new II,this.editFolderName=!1,this.Sort=this.fb.group({criteria:[""]})}return _createClass(t,[{key:"setSort",value:function(t){this.criteria.setValue(t)}},{key:"ngOnInit",value:function(){var t=this;this.route.params.subscribe((function(e){var n=e.folderId,i=e.teamId;t.$team=t.teamService.getTeamById(i),t.$canEdit=t.teamService.isCurrentUserAtLeastThisRole(i,"editor"),t.initTeamFolder(i,n)}))}},{key:"initTeamFolder",value:function(t,e){var n=this;console.log("INIT TEAM",{teamId:t,folderId:e}),this.teamId=t;var i=this.templateSearchCtrl.valueChanges.pipe(vp(""),B((function(t){return t.toLowerCase()}))),r=this.Sort.valueChanges.pipe(vp(""),kp((function(t){return n.sortBy=t}))),o=this.teamService.getTemplates(t,e).pipe(kp((function(t){return n.templates=t}))),a=this.teamService.getFolderForTeam(t,e).pipe(kp((function(t){return n.folder=t})));this.$templates=Md([i,o,a,r]).pipe(B((function(t){var e=_slicedToArray(t,4),n=e[0],i=e[1],r=e[2],o=e[3];return 1==o.criteria?i.sort((function(t,e){return t.name.localeCompare(e.name)}
1)):2==o.criteria?i.sort((function(t,e){return e.name.localeCompare(t.name)})):3==o.criteria?i.sort((function(t,e){return Date.parse(e.created)-Date.parse(t.created)})):4==o.criteria&&i.sort((function(t,e){return Date.parse(t.created)-Date.parse(e.created)})),r&&(i=i.filter((function(t){return t.folder===r.id}))),n&&n.length&&(i=i.filter((function(t){return t.name.toLowerCase().includes(n)||t.content.toLowerCase().includes(n)}))),[].concat(_toConsumableArray(i.filter((function(t){return!t.archived}))),_toConsumableArray(i.filter((function(t){return t.archived}))))})))}},{key:"newTemplate",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(this.analytics.logEvent("new_template"),this.editNewTemplate(t,(this.folder||{}).id)));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"editNewTemplate",value:function(t,e){return vy(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={name:t,folder:e},n.next=3,this.teamService.newTemplate(this.teamId,i,!0);case 3:r=n.sent,console.log("Created new template with ID",r.id);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"helpUsingTemplates",value:function(){this.dialog.howTo()}},{key:"updateFolderName",value:function(t){this.teamService.updateFolder(this.teamId,this.folder.id,{name:t}),this.editFolderName=!1}},{key:"duplicateFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.folder){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.teamService.duplicateFolder(this.teamId,this.folder,this.templates);case 4:return e=t.sent,t.next=7,this.router.navigate(["teams",this.teamId,"folders",e]);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"archiveFolder",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.folder,!e.t0){e.next=4;break}return e.next=4,this.teamService.updateFolder(this.teamId,this.folder.id,{archived:t});case 4:case"end":return e.stop()}}),e,this)})))}},{key:"deleteFolder",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.teamService.deleteFolder(this.teamId,this.folder.id);case 2:if(t.t0=t.sent,!t.t0){t.next=6;break}return t.next=6,this.router.navigate(["teams",this.teamId]);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"sortBy",get:function(){return localStorage.getItem("sortBy")||"used"},set:function(t){localStorage.setItem("sortBy",t)}},{key:"criteria",get:function(){return this.Sort.get("criteria")}}]),t}()).\u0275fac=function(t){return new(t||UK)(Oa(Fm),Oa(RF),Oa(fF),Oa(Gv),Oa(EF),Oa(AA))},UK.\u0275cmp=ve({type:UK,selectors:[["vf-team-folder-page"]],decls:44,vars:25,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","space-between center",1,"header","proper-width"],["class","settings-title",4,"ngIf"],["appearance","fill",3,"focusout",4,"ngIf"],["mat-icon-button","","class","hidden-icon",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["fxFlex",""],["id","search","placeholder","Search Templates","type","text",3,"formControl"],["fxFlexOffset","5px","id","new-template","mat-flat-button","","color","primary",3,"click",4,"ngIf"],["class","proper-width",4,"ngIf"],["id","template-grid","fxLayout","row wrap","fxLayoutAlign","center",1,"proper-width"],[3,"template","selection",4,"ngFor","ngForOf"],["id","template-helper","mat-button","",3,"click"],["inline",""],[1,"proper-width",3,"teamId"],["selectMenu",""],["folderMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"settings-title"],[3,"hidden-folder","click",4,"ngIf"],[3,"click"],["appearance","fill",3,"focusout"],["matInput","",1,"settings-title",3,"ngModel","ngModelChange"],["mat-icon-button","",1,"hidden-icon",3,"click"],[1,"hidden-folder"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"mat-18"],["fxFlexOffset","5px","id","new-template","mat-flat-button","","color","primary",3,"click"],[1,"proper-width"],["mat-icon-button","","id","sort",3,"matMenuTriggerFor"],[3,"formGroup"],["menu","matMenu"],["mat-menu-item","","ngDefaultControl","","formControlName","criteria",3,"click"],[3,"template","selection"]],template:function(t,e){if(1&t&&(Ma(0,"div",0),Ma(1,"div",1),Aa(2,PK,3,2,"h1",2),Aa(3,RK,2,1,"mat-form-field",3),Aa(4,NK,3,0,"button",4),Hu(5,"async"),Aa(6,MK,3,1,"button",5),Hu(7,"async"),La(8,"span",6),La(9,"input",7),Aa(10,FK,4,0,"button",8),Hu(11,"async"),Fa(),La(12,"mat-divider"),Aa(13,LK,20,2,"div",9),Hu(14,"async"),Ma(15,"div",10),Aa(16,jK,1,2,"vf-template-card",11),Hu(17,"async"),Fa(),Ma(18,"button",12),qa("click",(function(){return e.helpUsingTemplates()})),Ma(19,"mat-icon",13),ws(20,"help"),Fa(),ws(21," How to best use templates "),Fa(),La(22,"vf-template-select-menu",14,15),Fa(),Ma(24,"mat-menu",null,16),Ma(26,"button",17),qa("click",(function(){return e.editFolderName=!0})),Ma(27,"mat-icon"),ws(28,"edit"),Fa(),ws(29," Rename "),Fa(),Ma(30,"button",17),qa("click",(function(){return e.duplicateFolder()})),Ma(31,"mat-icon"),ws(32,"library_add"),Fa(),ws(33," Duplicate "),Fa(),Ma(34,"button",17),qa("click",(function(){return e.archiveFolder(!(null!=e.folder&&e.folder.archived))})),Ma(35,"mat-icon"),ws(36),Hu(37,"async"),Fa(),ws(38),Hu(39,"async"),Fa(),Ma(40,"button",17),qa("click",(function(){return e.deleteFolder()})),Ma(41,"mat-icon"),ws(42,"delete"),Fa(),ws(43," Delete "),Fa(),Fa()),2&t){var n,i,r,o,a=null==(n=zu(5,11,e.$folder))?null:n.archived,s=(null==(i=zu(14,17,e.$templates))?null:i.length)>0;kr(2),Ra("ngIf",!e.editFolderName),kr(1),Ra("ngIf",e.editFolderName),kr(1),Ra("ngIf",a),kr(2),Ra("ngIf",zu(7,13,!!e.folder&&!e.folder.archived&&e.$canEdit)),kr(3),Ra("formControl",e.templateSearchCtrl),kr(1),Ra("ngIf",zu(11,15,e.$canEdit)),kr(3),Ra("ngIf",s),kr(3),Ra("ngForOf",zu(17,19,e.$templates)),kr(6),Ra("teamId",e.teamId),kr(14),ks(null!=(r=zu(37,21,e.$folder))&&r.archived?"visibility":"visibility_off"),kr(2),Cs(" ",null!=(o=zu(39,23,e.$folder))&&o.archived?"Show":"Hide"," ")}},directives:[xP,uD,OP,Fh,WD,aE,mE,qI,CL,Nh,MA,NM,oq,qz,jz,PT,WT,VI,Yz,uP,UI,vE,GI,dA,Iq],pipes:[pf],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.settings-title[_ngcontent-%COMP%]{font-weight:700}button.hidden-icon[_ngcontent-%COMP%]{margin-left:16px;margin-bottom:16px}#new-template[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding-right:5px}.proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}#template-helper[_ngcontent-%COMP%]{margin-bottom:80px;margin-top:60px;opacity:.5;font-size:17px}#template-helper[_ngcontent-%COMP%]:hover{opacity:.8}#search[_ngcontent-%COMP%]{width:30%;font-size:16px;padding:8px;border-radius:5px;margin-right:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}#sort[_ngcontent-%COMP%]{font-size:20px;font-weight:700}vf-template-select-menu[_ngcontent-%COMP%]{position:absolute;bottom:0}.hidden-folder[_ngcontent-%COMP%]{opacity:.5}"]}),UK),zK=((VK=function(){function t(e){_classCallCheck(this,t),this.teamsService=e}return _createClass(t,[{key:"canActivate",value:function(t,e){var n=t.params.teamId;return this.teamsService.getTeamById(n).pipe(Hd((function(t){return!!t})),B((function(){return!0})))}}]),t}()).\u0275fac=function(t){return new(t||VK)(Xt(RF))}
1,VK.\u0275prov=dt({token:VK,factory:VK.\u0275fac,providedIn:"root"}),VK),qK=((BK=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"canActivate",value:function(t,e){return this.data.$user.pipe(Hd((function(t){return!!t})),B((function(t){if("[email protected]"==t.email)return!0})))}}]),t}()).\u0275fac=function(t){return new(t||BK)(Xt(zF))},BK.\u0275prov=dt({token:BK,factory:BK.\u0275fac,providedIn:"root"}),BK);n("flH9");var WK,GK=((WK=function(){function t(){_classCallCheck(this,t),this.remoteConfig=Xg.remoteConfig(),mc.debugRemoteConfig&&(this.remoteConfig.settings.minimumFetchIntervalMillis=2e4),this.remoteConfig.defaultConfig={defaultBlacklist:JSON.stringify(mc.blacklist)}}return _createClass(t,[{key:"getDefaultBlacklist",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.remoteConfig.fetchAndActivate();case 2:return t.abrupt("return",this.defaultBlacklist);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"defaultBlacklist",get:function(){var t=this.remoteConfig.getValue("defaultBlacklist");console.log("BLACK LIST",t);try{return JSON.parse(t.asString())}catch(e){return[]}}}]),t}()).\u0275fac=function(t){return new(t||WK)},WK.\u0275prov=dt({token:WK,factory:WK.\u0275fac,providedIn:"root"}),WK);function KK(t,e){1&t&&(Ma(0,"mat-error"),ws(1,"Invalid domain"),Fa())}function YK(t,e){if(1&t){var n=Ua();Ma(0,"div",8),Ma(1,"div"),ws(2),Fa(),Ma(3,"button",9),qa("click",(function(){en(n);var t=e.$implicit;return Qa().removeBlacklist(t)})),Ma(4,"mat-icon"),ws(5,"close"),Fa(),Fa(),Fa()}if(2&t){var i=e.$implicit;kr(2),ks(i)}}function QK(t,e){if(1&t&&(Ma(0,"div",10),Ma(1,"div"),ws(2),Fa(),Fa()),2&t){var n=e.$implicit;kr(2),ks(n)}}var $K,XK=(($K=function(){function t(e,n){_classCallCheck(this,t),this.data=e,this.remoteConfig=n,this.hideDefaults=!0,this.blackl
1istInputFormControl=new II("",[wE.pattern(/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,7}$/)])}return _createClass(t,[{key:"ngOnInit",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.data.$user.asObservable().subscribe((function(t){e.user=t})),t.next=3,this.remoteConfig.getDefaultBlacklist();case 3:this.defaultBlacklist=t.sent;case 4:case"end":return t.stop()}}),t,this)})))}},{key:"removeBlacklist",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.data.removeBlacklist(t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"addBlacklistUrl",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.blacklistInputFormControl.value,t.next=3,this.data.addBlacklist(e);case 3:this.blacklistInputFormControl.reset("");case 4:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||$K)(Oa(zF),Oa(GK))},$K.\u0275cmp=ve({type:$K,selectors:[["vf-blacklist-setting"]],decls:15,vars:8,consts:[["fxLayout","row"],["id","newBlacklistUrl","matInput","","placeholder","www.example.com",3,"formControl"],[4,"ngIf"],["mat-icon-button","","type","submit",3,"disabled","click"],[1,"list"],["class","domain","fxLayout","row",4,"ngFor","ngForOf"],["class","domain defaults",4,"ngFor","ngForOf"],["id","default-toggle",3,"click"],["fxLayout","row",1,"domain"],["mat-icon-button","",1,"remove-domain",3,"click"],[1,"domain","defaults"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"form"),Ma(2,"mat-form-field"),Ma(3,"mat-label"),ws(4,"Site to hide"),Fa(),La(5,"input",1),Aa(6,KK,2,0,"mat-error",2),Fa(),Ma(7,"button",3),qa("click",(function(){return e.addBlacklistUrl()})),Ma(8,"mat-icon"),ws(9,"add"),Fa(),Fa(),Fa(),Fa(),Ma(10,"div",4),Aa(11,YK,6,1,"div",5),Aa(12,QK,3,1,"div",6),Fa(),Ma(13,"div",7),qa("click",(function(){return e.hideDefaults=!e.hideDefaults})),ws(14),Fa()),2&t&&(kr(5),Ra("formControl",e.blacklistInputFormControl),kr(1),Ra("ngIf",!!e.blacklistInputFormControl.errors),kr(1),Ra("disabled",!e.blacklistInputFormControl.valid),kr(3),us("hide-defaults",e.hideDefaults),kr(1),Ra("ngForOf",e.user.blacklist),kr(1),Ra("ngForOf",e.defaultBlacklist),kr(2),Cs("",e.hideDefaults?"See":"Hide"," Defaults"))},directives:[uD,UI,vE,PI,PT,xT,WT,aE,mE,qI,Fh,MA,NM,Nh,rT],styles:[".list[_ngcontent-%COMP%] .domain[_ngcontent-%COMP%]{height:40px;vertical-align:center;width:400px}.list[_ngcontent-%COMP%] .domain[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}.list[_ngcontent-%COMP%] .domain[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-top:10px;width:360px}.list.hide-defaults[_ngcontent-%COMP%] > .defaults[_ngcontent-%COMP%]{display:none}#default-toggle[_ngcontent-%COMP%]{margin-top:10px;opacity:.7;cursor:pointer}mat-form-field[_ngcontent-%COMP%]{width:360px}"]}),$K);function ZK(t,e){if(1&t){var n=Ua();Ma(0,"button",15),qa("click",(function(){return en(n),Qa(2).goToBilling()})),ws(1,"(See Billing)"),Fa()}}function JK(t,e){1&t&&(Ma(0,"button",16),ws(1,"(Upgrade)"),Fa())}function tY(t,e){if(1&t&&(Ma(0,"div",5),Ma(1,"div",6),ws(2,"Account Type"),Fa(),Ma(3,"div"),ws(4),Fa(),Aa(5,ZK,2,0,"button",10),Aa(6,JK,2,0,"button",14),Fa()),2&t){var n=Qa();kr(4),ks(n.user.premium?"Premium":"Free"),kr(1),Ra("ngIf",n.user.premium),kr(1),Ra("ngIf",!n.user.premium)}}function eY(t,e){1&t&&(Ma(0,"div",5),Ma(1,"div",6),ws(2,"Account Type"),Fa(),Ma(3,"div"),ws(4,"Premium"),Fa(),Fa())}function nY(t,e){if(1&t){var n=Ua();Ma(0,"button",15),qa("click",(function(){return en(n),Qa().changeScriptStatus()})),ws(1,"(Disable)"),Fa()}}function iY(t,e){if(1&t){var n=Ua();Ma(0,"button",15),qa("click",(function(){return en(n),Qa().changeScriptStatus()})),ws(1,"(Enable)"),Fa()}}var rY,oY,aY,sY,uY,lY,cY,hY,fY,dY,pY,mY=((rY=function(){function t(e,n,i,r,o,a,s,u){_classCallCheck(this,t),this.data=e,this.authService=n,this.billing=i,this.router=r,this.dialogService=o,this.activeRoute=a,this.dialog=s,this.teamBilling=u}return _createClass(t,[{key:"ngOnInit",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"success"===(e=this.activeRoute.snapshot.queryParams).stripe&&(n=e.plan,console.log("Purchased the ".concat(n," plan")),this.router.navigate([],{relativeTo:this.activeRoute,queryParams:{stripe:null,plan:null},queryParamsHandling:"merge"}).then((function(){return i.sendRewardfulConvert()})).then((function(){return i.teamBilling.OnTeamCreate(i.user).then((function(t){console.log(t)}
1)).catch((function(t){console.log(t)}))})).then((function(){return i.dialogService.alert("Welcome to Premium","Now you have unlimited templates you can use. Enjoy!","Lets get started!")}))),this.data.$user.asObservable().subscribe((function(t){return i.user=t}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"goToBilling",value:function(){console.log("Going"),this.billing.goToStripe()}},{key:"logout",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.authService.logout();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"changeScriptStatus",value:function(){this.data.onScriptStatusChanged(!this.user.scriptStatus)}},{key:"sendRewardfulConvert",value:function(){try{var t=this.data.$user.getValue().email;rewardful("convert",{email:t}),console.log("Rewardful converted for ",t)}catch(e){console.error("Error submitting Rewardful convert event",e)}}}]),t}()).\u0275fac=function(t){return new(t||rY)(Oa(zF),Oa(WF),Oa(aW),Oa(Gv),Oa(fF),Oa(Fm),Oa(VS),Oa(lz))},rY.\u0275cmp=ve({type:rY,selectors:[["vf-settings-personal"]],decls:54,vars:7,consts:[["id","wrapper","fxFill","","fxLayout","column","fxLayoutAlign","start center"],[1,"header","proper-width"],["id","settings-title"],[1,"proper-width"],[1,"settings-section"],["fxLayout","row"],[1,"label"],["fxFlex",""],["mat-button","",1,"logout",3,"click"],["fxLayout","row",4,"ngIf"],["class","upgrade","mat-button","",3,"click",4,"ngIf"],["src","/assets/icon48.png","alt","Lightning","id","lightning-icon"],["fxLayout","row","id","callout"],["href","https://getveryfast.com/contact?webapp=settings-link","target","_blank",2,"color","rgba(66, 132, 251, 1)"],["class","upgrade","routerLink","/upgrade","mat-button","",4,"ngIf"],["mat-button","",1,"upgrade",3,"click"],["routerLink","/upgrade","mat-button","",1,"upgrade"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1",2),ws(3," My Settings "),Fa(),Fa(),Ma(4,"div",3),Ma(5,"div",4),Ma(6,"h2"),ws(7,"My Account"),Fa(),Ma(8,"div",5),Ma(9,"div",6),ws(10,"Name"),Fa(),Ma(11,"div"),ws(12),Fa(),La(13,"div",7),Fa(),Ma(14,"div",5),Ma(15,"div",6),ws(16,"Email"),Fa(),Ma(17,"div"),ws(18),Fa(),Ma(19,"button",8),qa("click",(function(){return e.logout()})),ws(20,"(Logout)"),Fa(),Fa(),Aa(21,tY,7,3,"div",9),Aa(22,eY,5,0,"div",9),Ma(23,"div",5),Ma(24,"div",6),ws(25,"Scripting"),Fa(),Ma(26,"div"),ws(27),Fa(),Aa(28,nY,2,0,"button",10),Aa(29,iY,2,0,"button",10),Fa(),Fa(),Ma(30,"div",4),Ma(31,"h2"),ws(32,"Super Menu"),Fa(),Ma(33,"div",5),Ma(34,"div",6),ws(35,"Hotkey"),Fa(),Ma(36,"div"),ws(37,"Control + space"),Fa(),Fa(),Fa(),Ma(38,"div",4),Ma(39,"h2"),ws(40,"Hide the "),La(41,"img",11),Fa(),Ma(42,"div"),ws(43,"Want to hide the icon on a site? Add it to the list below"),Fa(),Ma(44,"div"),La(45,"vf-blacklist-setting"),Fa(),Fa(),Ma(46,"div",12),Ma(47,"div"),Ma(48,"strong"),ws(49," \ud83d\udc49 Have an idea or request?"),Fa(),ws(50," Send us a note "),Ma(51,"a",13),ws(52,"here"),Fa(),ws(53,". "),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(12),ks(e.user.name),kr(6),ks(e.user.email),kr(3),Ra("ngIf",!e.user.teamMember),kr(1),Ra("ngIf",e.user.teamMember),kr(5),ks(e.user.scriptStatus?"Enabled":"Disabled"),kr(1),Ra("ngIf",e.user.scriptStatus),kr(1),Ra("ngIf",!e.user.scriptStatus))},directives:[xP,uD,OP,WD,MA,Fh,XK,Kv],styles:["#wrapper[_ngcontent-%COMP%]{padding-top:30px;background:#fff;overflow-y:scroll}.header[_ngcontent-%COMP%]{margin:50px;border-bottom:1px solid #000;padding-bottom:10px}.mat-tab-group[_ngcontent-%COMP%], .proper-width[_ngcontent-%COMP%]{width:90%;max-width:1020px}.settings-section[_ngcontent-%COMP%]{margin-bottom:50px;margin-top:0;position:relative}.settings-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{background:#ebeef2;padding-left:10px;border-radius:4px}.settings-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:10px}.settings-section[_ngcontent-%COMP%] button#edit[_ngcontent-%COMP%]{position:absolute;top:40px;right:10px}.label[_ngcontent-%COMP%]{width:150px}#settings-title[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{font-weight:700}.mat-button.logout[_ngcontent-%COMP%], .mat-button.upgrade[_ngcontent-%COMP%]{line-height:0;color:#4284fb;font-weight:300;
1left:25px}#callout[_ngcontent-%COMP%]{margin-top:50px;padding:16px 16px 16px 12px;display:flex;width:100%;max-width:400px;border-radius:3px;border:1px solid transparent;background:rgba(251,243,219,.66)}a#callout[_ngcontent-%COMP%]{color:#4284fb}#lightning-icon[_ngcontent-%COMP%]{height:22px;margin-bottom:-3px}mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{visibility:hidden}mat-list-item[_ngcontent-%COMP%]:hover > mat-icon[_ngcontent-%COMP%]{visibility:visible}"]}),rY),vY=function(t){var e=t._routerState.url;return _(my,kp((function(t){t||sessionStorage.setItem("afterLogin",e)})),B((function(t){return t||["login"]})))},gY={canActivate:[dy,oW],data:{authGuardPipe:vY}},yY=[Object.assign(Object.assign({path:"",component:Sj},gY),{children:[{path:"",redirectTo:"templates",pathMatch:"full"},{path:"share/:folderShareId",component:AK,resolve:{info:TK}},{path:"templates",component:Bq},{path:"templates/:folderId",component:Bq},{path:"teams/:teamId",component:HK,canActivate:[zK]},{path:"teams/:teamId/folders/:folderId",component:HK,canActivate:[zK]},{path:"settings",component:mY},{path:"settings/:teamId",component:hz,canActivate:[zK]},{path:"help",component:eK},{path:"admin",component:JG,canActivate:[qK]},{path:"*",redirectTo:"templates",pathMatch:"full"}]}),Object.assign({path:"login",component:Lj},py((function(){return t=[""],_(my,B((function(e){return e&&t||!0})));var t}))),Object.assign({path:"upgrade",component:gW},py(vY)),Object.assign({path:"migration",component:tK},py(vY)),Object.assign({path:"pmf",component:yK},py(vY)),Object.assign({path:"onboarding",component:rW},gY),{path:"*",redirectTo:"login",pathMatch:"full"}],_Y=((sY=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:sY}),sY.\u0275inj=pt({factory:function(t){return new(t||sY)},imports:[[pg.forRoot(yY)],pg]}),sY),bY=((aY=function t(e,n,i){_classCallCheck(this,t),this.authService=e,this.router=n,this.remoteConfig=i}).\u0275fac=function(t){return new(t||aY)(Oa(WF),Oa(Gv),Oa(GK))},aY.\u0275cmp=ve({type:aY,selectors:[["vf-root"]],decls:1,vars:0,template:function(t,e){1&t&&La(0,"router-outlet")},directives:[ig],encapsulation:2}),aY),wY=((oY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return{content:t?"url(".concat(t,")"):""}}}]),n}(HO)).\u0275fac=function(t){return kY(t||oY)},oY.\u0275prov=dt({factory:function(){return new oY},token:oY,providedIn:"root"}),oY),kY=fi(wY),CY=((uY=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s){var u;return _classCallCheck(this,n),(u=e.call(this,t,i,r,o)).platformId=a,u.serverModuleLoaded=s,u.DIRECTIVE_KEY="img-src",u.defaultSrc="",u.styleCache=xY,u.init(),u.setValue(u.nativeElement.getAttribute("src")||"",""),Bf(u.platformId)&&u.serverModuleLoaded&&u.nativeElement.setAttribute("src",""),u}return _createClass(n,[{key:"updateWithValue",value:function(t){var e=t||this.defaultSrc;Bf(this.platformId)&&this.serverModuleLoaded?this.addStyles(e):this.nativeElement.setAttribute("src",e)}},{key:"src",set:function(t){this.defaultSrc=t,this.setValue(this.defaultSrc,"")}}]),n}(gO)).\u0275fac=function(t){return new(t||uY)(Oa(Ys),Oa(wY),Oa(UO),Oa(GO),Oa(wl),Oa(hO))},uY.\u0275dir=Ce({type:uY,inputs:{src:"src"},features:[As]}),uY),xY=new Map,SY=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"],EY=((lY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=SY,t}return n}(CY)).\u0275fac=function(t){return IY(t||lY)},lY.\u0275dir=Ce({type:lY,selectors:[["img","src.xs",""],["img","src.sm",""],["img","src.md",""],["img","src.lg",""],["img","src.xl",""],["img","src.lt-sm",""],["img","src.lt-md",""],["img","src.lt-lg",""],["img","src.lt-xl",""],["img","src.gt-xs",""],["img","src.gt-sm",""],["img","src.gt-md",""],["img","src.gt-lg",""]],inputs:{"src.xs":"src.xs","src.sm":"src.sm","src.md":"src.md","src.lg":"src.lg","src.xl":"src.xl","src.lt-sm"
1:"src.lt-sm","src.lt-md":"src.lt-md","src.lt-lg":"src.lt-lg","src.lt-xl":"src.lt-xl","src.gt-xs":"src.gt-xs","src.gt-sm":"src.gt-sm","src.gt-md":"src.gt-md","src.gt-lg":"src.gt-lg"},features:[As]}),lY),IY=fi(EY),AY=((cY=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,null,i,r)).ngClassInstance=u,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new Dh(o,a,t,s)),l.init(),l.setValue("",""),l}return _createClass(n,[{key:"updateWithValue",value:function(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}},{key:"klass",set:function(t){this.ngClassInstance.klass=t,this.setValue(t,"")}}]),n}(gO)).\u0275fac=function(t){return new(t||cY)(Oa(Ys),Oa(UO),Oa(GO),Oa(du),Oa(pu),Oa(Zs),Oa(Dh,10))},cY.\u0275dir=Ce({type:cY,inputs:{klass:["class","klass"]},features:[As]}),cY),TY=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],OY=((hY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=TY,t}return n}(AY)).\u0275fac=function(t){return DY(t||hY)},hY.\u0275dir=Ce({type:hY,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[As]}),hY),DY=fi(OY),PY=((fY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}]),n}(HO)).\u0275fac=function(t){return RY(t||fY)},fY.\u0275prov=dt({factory:function(){return new fY},token:fY,providedIn:"root"}),fY),RY=fi(PY),NY=((dY=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,i,r,o)).layoutConfig=a,l.platformId=s,l.serverModuleLoaded=u,l.DIRECTIVE_KEY="show-hide",l.display="",l.hasLayout=!1,l.hasFlexChild=!1,l}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var t=Array.from(this.nativeElement.children),e=0;e<t.length;e++)if(this.marshal.hasValue(t[e],"flex")){this.hasFlexChild=!0;break}MY.has(this.nativeElement)?this.display=MY.get(this.nativeElement):(this.display=this.getDisplayStyle(),MY.set(this.nativeElement,this.display)),this.init();var n=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===n||""===n?this.setValue(!0,""):this.triggerUpdate()}},{key:"ngOnChanges",value:function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var i=n.split("."),r=i.slice(1).join("."),o=t[n].currentValue,a=""===o||0!==o&&t_(o);"fxHide"===i[0]&&(a=!a),e.setValue(a,r)}}))}},{key:"trackExtraTriggers",value:function(){var t=this;this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach((function(e){t.marshal.trackValue(t.nativeElement,e).pipe(g_(t.destroySubject)).subscribe(t.triggerUpdate.bind(t))}))}},{key:"getDisplayStyle",value:function(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}},{key:"updateWithValue",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(""!==t){var e=Bf(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(gO)).\u0275fac=function(t){return new(t||dY)(Oa(Ys),Oa(PY),Oa(UO),Oa(GO),Oa(cO),Oa(wl),Oa(hO))},dY.\u0275dir=Ce({type:dY,features:[As,Ns]}),dY),MY=new WeakMap,FY=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fx
1Hide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],LY=((pY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=FY,t}return n}(NY)).\u0275fac=function(t){return jY(t||pY)},pY.\u0275dir=Ce({type:pY,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[As]}),pY),jY=fi(LY),BY=function t(e,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this.key=e,this.value=n,this.key=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function VY(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function UY(t){var e=_toArray(t.split(":")),n=e[0],i=e.slice(1);return new BY(n,i.join(":"))}function HY(t,e){return e.key&&(t[e.key]=e.value),t}var zY,qY,WY=((zY=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l,c){var h;_classCallCheck(this,n),(h=e.call(this,t,null,i,r)).sanitizer=o,h.ngStyleInstance=u,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new Zh(t,a,s)),h.init();var f=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(f),h.isServer=l&&Bf(c),h}return _createClass(n,[{key:"updateWithValue",value:function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(t){var e,n,i,r=this,o=function(t){return r.sanitizer.sanitize(Xi.STYLE,t)||""};if(t)switch(VY(t)){case"string":return QY(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(t).trim().split(e).map((function(t){return t.trim()})).filter((function(t){return""!==t}))}(t),o);case"array":return QY(t,o);case"set":default:return n=o,i=[],"set"===VY(e=t)?e.forEach((function(t){return i.push(t)})):Object.keys(e).forEach((function(t){i.push("".concat(t,":").concat(e[t]))})),function(t,e){return t.map(UY).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(HY,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(gO)).\u0275fac=function(t){return new(t||zY)(Oa(Ys),Oa(UO),Oa(GO),Oa(Cd),Oa(pu),Oa(Zs),Oa(Zh,10),Oa(hO),Oa(wl))},zY.\u0275dir=Ce({type:zY,features:[As]}),zY),GY=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],KY=((qY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=GY,t}return n}(WY)).\u0275fac=function(t){return YY(t||qY)},qY.\u0275dir=Ce({type:qY,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[As]}),qY),YY=fi(KY);function QY(t,e){return t.map(UY).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(HY,{})}var $Y,XY,ZY,JY,tQ,eQ,nQ,iQ,rQ,oQ,aQ,sQ,uQ,lQ,cQ,hQ,fQ,dQ,pQ,mQ,vQ,gQ,yQ,_Q,bQ,wQ,kQ,CQ,xQ,SQ,EQ,IQ,AQ,TQ,OQ,DQ,PQ,RQ,NQ,MQ,FQ,LQ,jQ,BQ,VQ,UQ,HQ,zQ,qQ,WQ,GQ,KQ,YQ,QQ,$Q=((XY=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:XY}),XY.\u0275inj=pt({factory:function(t){return new(t||XY)},imports:[[aO]]}),XY),XQ=(($Y=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e={},n=t.split(" "),i=_slicedToArray(n,2),r=i[0],o=i[1];switch(r){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]="stretch"}switch(o){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]="stretch"}return e}(t||"stretch")}}]),n}(HO)).\u0275fac=function(t){return ZQ(t||$Y)},$Y.\u0275prov=dt({factory:function(){return new $Y},token:$Y,providedIn:"root"}),$Y),ZQ=fi(XQ),JQ=((ZY=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-align",a.styleCache=t$,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||ZY)(Oa(Ys),Oa(XQ),Oa(UO),Oa(GO))},ZY.\u0275dir=Ce({type:ZY,features:[As]}),ZY),t$=new Map,e$=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"],n$=((JY=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=e$,t}return n}(JQ)).\u0275fac=function(t){return i$(t||JY)},JY.\u0275dir=Ce({type:JY,selectors:[["","gdGridAlign",""],["","gdGridAlign.xs",""],["","gdGridAlign.sm",""],["","gdGridAlign.md",""],["","gdGridAlign.lg",""],["","gdGridAlign.xl",""],["","gdGridAlign.lt-sm",""],["","gdGridAlign.lt-md",""],["","gdGridAlign.lt-lg",""],["","gdGridAlign.lt-xl",""],["","gdGridAlign.gt-xs",""],["","gdGridAlign.gt-sm",""],["","gdGridAlign.gt-md",""],["","gdGridAlign.gt-lg",""]],inputs:{gdGridAlign:"gdGridAlign","gdGridAlign.xs":"gdGridAlign.xs","gdGridAlign.sm":"gdGridAlign.sm","gdGridAlign.md":"gdGridAlign.md","gdGridAlign.lg":"gdGridAlign.lg","gdGridAlign.xl":"gdGridAlign.xl","gdGridAlign.lt-sm"
1:"gdGridAlign.lt-sm","gdGridAlign.lt-md":"gdGridAlign.lt-md","gdGridAlign.lt-lg":"gdGridAlign.lt-lg","gdGridAlign.lt-xl":"gdGridAlign.lt-xl","gdGridAlign.gt-xs":"gdGridAlign.gt-xs","gdGridAlign.gt-sm":"gdGridAlign.gt-sm","gdGridAlign.gt-md":"gdGridAlign.gt-md","gdGridAlign.gt-lg":"gdGridAlign.gt-lg"},features:[As]}),JY),i$=fi(n$),r$=((tQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){return function(t,e){var n={},i=_slicedToArray(t.split(" "),2),r=i[0],o=i[1];switch(r){case"center":n["align-content"]="center";break;case"space-around":n["align-content"]="space-around";break;case"space-between":n["align-content"]="space-between";break;case"space-evenly":n["align-content"]="space-evenly";break;case"end":n["align-content"]="end";break;case"start":n["align-content"]="start";break;case"stretch":n["align-content"]="stretch";break;default:n["align-content"]="start"}switch(o){case"start":n["align-items"]="start";break;case"center":n["align-items"]="center";break;case"end":n["align-items"]="end";break;case"stretch":default:n["align-items"]="stretch"}return n.display=e?"inline-grid":"grid",n}(t||"start stretch",e.inline)}}]),n}(HO)).\u0275fac=function(t){return o$(t||tQ)},tQ.\u0275prov=dt({factory:function(){return new tQ},token:tQ,providedIn:"root"}),tQ),o$=fi(r$),a$=((eQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-align-columns",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inline?u$:s$,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||eQ)(Oa(Ys),Oa(r$),Oa(UO),Oa(GO))},eQ.\u0275dir=Ce({type:eQ,inputs:{inline:["gdInline","inline"]},features:[As]}),eQ),s$=new Map,u$=new Map,l$=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"],c$=((nQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=l$,t}return n}(a$)).\u0275fac=function(t){return h$(t||nQ)},nQ.\u0275dir=Ce({type:nQ,selectors:[["","gdAlignColumns",""],["","gdAlignColumns.xs",""],["","gdAlignColumns.sm",""],["","gdAlignColumns.md",""],["","gdAlignColumns.lg",""],["","gdAlignColumns.xl",""],["","gdAlignColumns.lt-sm",""],["","gdAlignColumns.lt-md",""],["","gdAlignColumns.lt-lg",""],["","gdAlignColumns.lt-xl",""],["","gdAlignColumns.gt-xs",""],["","gdAlignColumns.gt-sm",""],["","gdAlignColumns.gt-md",""],["","gdAlignColumns.gt-lg",""]],inputs:{gdAlignColumns:"gdAlignColumns","gdAlignColumns.xs":"gdAlignColumns.xs","gdAlignColumns.sm":"gdAlignColumns.sm","gdAlignColumns.md":"gdAlignColumns.md","gdAlignColumns.lg":"gdAlignColumns.lg","gdAlignColumns.xl":"gdAlignColumns.xl","gdAlignColumns.lt-sm":"gdAlignColumns.lt-sm","gdAlignColumns.lt-md":"gdAlignColumns.lt-md","gdAlignColumns.lt-lg":"gdAlignColumns.lt-lg","gdAlignColumns.lt-xl":"gdAlignColumns.lt-xl","gdAlignColumns.gt-xs":"gdAlignColumns.gt-xs","gdAlignColumns.gt-sm":"gdAlignColumns.gt-sm","gdAlignColumns.gt-md":"gdAlignColumns.gt-md","gdAlignColumns.gt-lg":"gdAlignColumns.gt-lg"},features:[As]}),nQ),h$=fi(c$),f$=((iQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){return function(t,e){var n={},i=_slicedToArray(t.split(" "),2),r=i[0],o=i[1];switch(r){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":n["justify-content"]=r;break;default:n["justify-content"]="start"}switch(o){case"start":case"center":case"end":case"stretch":n["justify-items"]=o;break;default:n["justify-items"]="stretch"}return n.display=e?"inline-grid":"grid",n}(t||"start stretch",e.inline)}}]),n}(HO)).\u0275fac=function(t){return d$(t||iQ)},iQ.\u0275prov=dt({factory:function(){return new iQ},token:iQ,providedIn:"root"}),iQ),d$=fi(f$),p$=((rQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-align-rows",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inl
1ine?v$:m$,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||rQ)(Oa(Ys),Oa(f$),Oa(UO),Oa(GO))},rQ.\u0275dir=Ce({type:rQ,inputs:{inline:["gdInline","inline"]},features:[As]}),rQ),m$=new Map,v$=new Map,g$=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"],y$=((oQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=g$,t}return n}(p$)).\u0275fac=function(t){return _$(t||oQ)},oQ.\u0275dir=Ce({type:oQ,selectors:[["","gdAlignRows",""],["","gdAlignRows.xs",""],["","gdAlignRows.sm",""],["","gdAlignRows.md",""],["","gdAlignRows.lg",""],["","gdAlignRows.xl",""],["","gdAlignRows.lt-sm",""],["","gdAlignRows.lt-md",""],["","gdAlignRows.lt-lg",""],["","gdAlignRows.lt-xl",""],["","gdAlignRows.gt-xs",""],["","gdAlignRows.gt-sm",""],["","gdAlignRows.gt-md",""],["","gdAlignRows.gt-lg",""]],inputs:{gdAlignRows:"gdAlignRows","gdAlignRows.xs":"gdAlignRows.xs","gdAlignRows.sm":"gdAlignRows.sm","gdAlignRows.md":"gdAlignRows.md","gdAlignRows.lg":"gdAlignRows.lg","gdAlignRows.xl":"gdAlignRows.xl","gdAlignRows.lt-sm":"gdAlignRows.lt-sm","gdAlignRows.lt-md":"gdAlignRows.lt-md","gdAlignRows.lt-lg":"gdAlignRows.lt-lg","gdAlignRows.lt-xl":"gdAlignRows.lt-xl","gdAlignRows.gt-xs":"gdAlignRows.gt-xs","gdAlignRows.gt-sm":"gdAlignRows.gt-sm","gdAlignRows.gt-md":"gdAlignRows.gt-md","gdAlignRows.gt-lg":"gdAlignRows.gt-lg"},features:[As]}),oQ),_$=fi(y$),b$=((aQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return{"grid-area":t||"auto"}}}]),n}(HO)).\u0275fac=function(t){return w$(t||aQ)},aQ.\u0275prov=dt({factory:function(){return new aQ},token:aQ,providedIn:"root"}),aQ),w$=fi(b$),k$=((sQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="grid-area",a.styleCache=C$,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||sQ)(Oa(Ys),Oa(UO),Oa(b$),Oa(GO))},sQ.\u0275dir=Ce({type:sQ,features:[As]}),sQ),C$=new Map,x$=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"],S$=((uQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=x$,t}return n}(k$)).\u0275fac=function(t){return E$(t||uQ)},uQ.\u0275dir=Ce({type:uQ,selectors:[["","gdArea",""],["","gdArea.xs",""],["","gdArea.sm",""],["","gdArea.md",""],["","gdArea.lg",""],["","gdArea.xl",""],["","gdArea.lt-sm",""],["","gdArea.lt-md",""],["","gdArea.lt-lg",""],["","gdArea.lt-xl",""],["","gdArea.gt-xs",""],["","gdArea.gt-sm",""],["","gdArea.gt-md",""],["","gdArea.gt-lg",""]],inputs:{gdArea:"gdArea","gdArea.xs":"gdArea.xs","gdArea.sm":"gdArea.sm","gdArea.md":"gdArea.md","gdArea.lg":"gdArea.lg","gdArea.xl":"gdArea.xl","gdArea.lt-sm":"gdArea.lt-sm","gdArea.lt-md":"gdArea.lt-md","gdArea.lt-lg":"gdArea.lt-lg","gdArea.lt-xl":"gdArea.lt-xl","gdArea.gt-xs":"gdArea.gt-xs","gdArea.gt-sm":"gdArea.gt-sm","gdArea.gt-md":"gdArea.gt-md","gdArea.gt-lg":"gdArea.gt-lg"},features:[As]}),uQ),E$=fi(S$),I$=((lQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n=(t||"none").split("|").map((function(t){return'"'.concat(t.trim(),'"')}));return{display:e.inline?"inline-grid":"grid","grid-template-areas":n.join(" ")}}}]),n}(HO)).\u0275fac=function(t){return A$(t||lQ)},lQ.\u0275prov=dt({factory:function(){return new lQ},token:lQ,providedIn:"root"}),lQ),A$=fi(I$),T$=((cQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="grid-areas",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inl
1ine?D$:O$,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||cQ)(Oa(Ys),Oa(UO),Oa(I$),Oa(GO))},cQ.\u0275dir=Ce({type:cQ,inputs:{inline:["gdInline","inline"]},features:[As]}),cQ),O$=new Map,D$=new Map,P$=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"],R$=((hQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=P$,t}return n}(T$)).\u0275fac=function(t){return N$(t||hQ)},hQ.\u0275dir=Ce({type:hQ,selectors:[["","gdAreas",""],["","gdAreas.xs",""],["","gdAreas.sm",""],["","gdAreas.md",""],["","gdAreas.lg",""],["","gdAreas.xl",""],["","gdAreas.lt-sm",""],["","gdAreas.lt-md",""],["","gdAreas.lt-lg",""],["","gdAreas.lt-xl",""],["","gdAreas.gt-xs",""],["","gdAreas.gt-sm",""],["","gdAreas.gt-md",""],["","gdAreas.gt-lg",""]],inputs:{gdAreas:"gdAreas","gdAreas.xs":"gdAreas.xs","gdAreas.sm":"gdAreas.sm","gdAreas.md":"gdAreas.md","gdAreas.lg":"gdAreas.lg","gdAreas.xl":"gdAreas.xl","gdAreas.lt-sm":"gdAreas.lt-sm","gdAreas.lt-md":"gdAreas.lt-md","gdAreas.lt-lg":"gdAreas.lt-lg","gdAreas.lt-xl":"gdAreas.lt-xl","gdAreas.gt-xs":"gdAreas.gt-xs","gdAreas.gt-sm":"gdAreas.gt-sm","gdAreas.gt-md":"gdAreas.gt-md","gdAreas.gt-lg":"gdAreas.gt-lg"},features:[As]}),hQ),N$=fi(R$),M$=((fQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n=_slicedToArray((t||"initial").split(" "),2),i=n[0],r=n[1];return"column"!==i&&"row"!==i&&"dense"!==i&&(i="row"),r="dense"===r&&"dense"!==i?" dense":"",{display:e.inline?"inline-grid":"grid","grid-auto-flow":i+r}}}]),n}(HO)).\u0275fac=function(t){return F$(t||fQ)},fQ.\u0275prov=dt({factory:function(){return new fQ},token:fQ,providedIn:"root"}),fQ),F$=fi(M$),L$=((dQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o))._inline=!1,a.DIRECTIVE_KEY="grid-auto",a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inline?B$:j$,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||dQ)(Oa(Ys),Oa(M$),Oa(UO),Oa(GO))},dQ.\u0275dir=Ce({type:dQ,inputs:{inline:["gdInline","inline"]},features:[As]}),dQ),j$=new Map,B$=new Map,V$=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"],U$=((pQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=V$,t}return n}(L$)).\u0275fac=function(t){return H$(t||pQ)},pQ.\u0275dir=Ce({type:pQ,selectors:[["","gdAuto",""],["","gdAuto.xs",""],["","gdAuto.sm",""],["","gdAuto.md",""],["","gdAuto.lg",""],["","gdAuto.xl",""],["","gdAuto.lt-sm",""],["","gdAuto.lt-md",""],["","gdAuto.lt-lg",""],["","gdAuto.lt-xl",""],["","gdAuto.gt-xs",""],["","gdAuto.gt-sm",""],["","gdAuto.gt-md",""],["","gdAuto.gt-lg",""]],inputs:{gdAuto:"gdAuto","gdAuto.xs":"gdAuto.xs","gdAuto.sm":"gdAuto.sm","gdAuto.md":"gdAuto.md","gdAuto.lg":"gdAuto.lg","gdAuto.xl":"gdAuto.xl","gdAuto.lt-sm":"gdAuto.lt-sm","gdAuto.lt-md":"gdAuto.lt-md","gdAuto.lt-lg":"gdAuto.lt-lg","gdAuto.lt-xl":"gdAuto.lt-xl","gdAuto.gt-xs":"gdAuto.gt-xs","gdAuto.gt-sm":"gdAuto.gt-sm","gdAuto.gt-md":"gdAuto.gt-md","gdAuto.gt-lg":"gdAuto.gt-lg"},features:[As]}),pQ),H$=fi(U$),z$=((mQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return{"grid-column":t||"auto"}}}]),n}(HO)).\u0275fac=function(t){return q$(t||mQ)},mQ.\u0275prov=dt({factory:function(){return new mQ},token:mQ,providedIn:"root"}),mQ),q$=fi(z$),W$=((vQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-column",a.styleCache=G$,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||vQ)(Oa(Ys),Oa(z$),Oa(UO),Oa(GO))},vQ.\u0275dir=Ce({type:vQ,features:[As]}),vQ),G$=new Map,K$=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"],Y$=((gQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=K$,t}return n}(W$)).\u0275fac=function(t){return Q$(t||gQ)},gQ.\u0275dir=Ce({type:gQ,selectors:[["","gdColumn",""],["","gdColumn.xs",""],["","gdColumn.sm",""],["","gdColumn.md",""],["","gdColumn.lg",""],["","gdColumn.xl",""],["","gdColumn.lt-sm",""],["","gdColumn.lt-md",""],["","gdColumn.lt-lg",""],["","gdColumn.lt-xl",""],["","gdColumn.gt-xs",""],["","gdColumn.gt-sm",""],["","gdColumn.gt-md",""],["","gdColumn.gt-lg",""]],inputs:{gdColumn:"gdColumn","gdColumn.xs":"gdColumn.xs","gdColumn.sm":"gdColumn.sm","gdColumn.md":"gdColumn.md","gdColumn.lg":"gdColumn.lg","gdColumn.xl":"gdColumn.xl","gdColumn.lt-sm"
1:"gdColumn.lt-sm","gdColumn.lt-md":"gdColumn.lt-md","gdColumn.lt-lg":"gdColumn.lt-lg","gdColumn.lt-xl":"gdColumn.lt-xl","gdColumn.gt-xs":"gdColumn.gt-xs","gdColumn.gt-sm":"gdColumn.gt-sm","gdColumn.gt-md":"gdColumn.gt-md","gdColumn.gt-lg":"gdColumn.gt-lg"},features:[As]}),gQ),Q$=fi(Y$),$$=((yQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);var i={display:e.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return i[n?"grid-auto-columns":"grid-template-columns"]=t,i}}]),n}(HO)).\u0275fac=function(t){return X$(t||yQ)},yQ.\u0275prov=dt({factory:function(){return new yQ},token:yQ,providedIn:"root"}),yQ),X$=fi($$),Z$=((_Q=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-columns",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inline?tX:J$,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||_Q)(Oa(Ys),Oa($$),Oa(UO),Oa(GO))},_Q.\u0275dir=Ce({type:_Q,inputs:{inline:["gdInline","inline"]},features:[As]}),_Q),J$=new Map,tX=new Map,eX=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"],nX=((bQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=eX,t}return n}(Z$)).\u0275fac=function(t){return iX(t||bQ)},bQ.\u0275dir=Ce({type:bQ,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[As]}),bQ),iX=fi(nX),rX=((wQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){return{display:e.inline?"inline-grid":"grid","grid-gap":t||"0"}}}]),n}(HO)).\u0275fac=function(t){return oX(t||wQ)},wQ.\u0275prov=dt({factory:function(){return new wQ},token:wQ,providedIn:"root"}),wQ),oX=fi(rX),aX=((kQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i,o)).DIRECTIVE_KEY="grid-gap",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inline?uX:sX,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||kQ)(Oa(Ys),Oa(UO),Oa(rX),Oa(GO))},kQ.\u0275dir=Ce({type:kQ,inputs:{inline:["gdInline","inline"]},features:[As]}),kQ),sX=new Map,uX=new Map,lX=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"],cX=((CQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=lX,t}return n}(aX)).\u0275fac=function(t){return hX(t||CQ)},CQ.\u0275dir=Ce({type:CQ,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm"
1:"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[As]}),CQ),hX=fi(cX),fX=((xQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t){return{"grid-row":t||"auto"}}}]),n}(HO)).\u0275fac=function(t){return dX(t||xQ)},xQ.\u0275prov=dt({factory:function(){return new xQ},token:xQ,providedIn:"root"}),xQ),dX=fi(fX),pX=((SQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-row",a.styleCache=mX,a.init(),a}return n}(gO)).\u0275fac=function(t){return new(t||SQ)(Oa(Ys),Oa(fX),Oa(UO),Oa(GO))},SQ.\u0275dir=Ce({type:SQ,features:[As]}),SQ),mX=new Map,vX=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"],gX=((EQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=vX,t}return n}(pX)).\u0275fac=function(t){return yX(t||EQ)},EQ.\u0275dir=Ce({type:EQ,selectors:[["","gdRow",""],["","gdRow.xs",""],["","gdRow.sm",""],["","gdRow.md",""],["","gdRow.lg",""],["","gdRow.xl",""],["","gdRow.lt-sm",""],["","gdRow.lt-md",""],["","gdRow.lt-lg",""],["","gdRow.lt-xl",""],["","gdRow.gt-xs",""],["","gdRow.gt-sm",""],["","gdRow.gt-md",""],["","gdRow.gt-lg",""]],inputs:{gdRow:"gdRow","gdRow.xs":"gdRow.xs","gdRow.sm":"gdRow.sm","gdRow.md":"gdRow.md","gdRow.lg":"gdRow.lg","gdRow.xl":"gdRow.xl","gdRow.lt-sm":"gdRow.lt-sm","gdRow.lt-md":"gdRow.lt-md","gdRow.lt-lg":"gdRow.lt-lg","gdRow.lt-xl":"gdRow.lt-xl","gdRow.gt-xs":"gdRow.gt-xs","gdRow.gt-sm":"gdRow.gt-sm","gdRow.gt-md":"gdRow.gt-md","gdRow.gt-lg":"gdRow.gt-lg"},features:[As]}),EQ),yX=fi(gX),_X=((IQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(t,e){var n=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);var i={display:e.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return i[n?"grid-auto-rows":"grid-template-rows"]=t,i}}]),n}(HO)).\u0275fac=function(t){return bX(t||IQ)},IQ.\u0275prov=dt({factory:function(){return new IQ},token:IQ,providedIn:"root"}),IQ),bX=fi(_X),wX=((AQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,i,r,o)).DIRECTIVE_KEY="grid-rows",a._inline=!1,a.init(),a}return _createClass(n,[{key:"updateWithValue",value:function(t){this.styleCache=this.inline?CX:kX,this.addStyles(t,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=t_(t)}}]),n}(gO)).\u0275fac=function(t){return new(t||AQ)(Oa(Ys),Oa(_X),Oa(UO),Oa(GO))},AQ.\u0275dir=Ce({type:AQ,inputs:{inline:["gdInline","inline"]},features:[As]}),AQ),kX=new Map,CX=new Map,xX=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"],SX=((TQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).inputs=xX,t}return n}(wX)).\u0275fac=function(t){return EX(t||TQ)},TQ.\u0275dir=Ce({type:TQ,selectors:[["","gdRows",""],["","gdRows.xs",""],["","gdRows.sm",""],["","gdRows.md",""],["","gdRows.lg",""],["","gdRows.xl",""],["","gdRows.lt-sm",""],["","gdRows.lt-md",""],["","gdRows.lt-lg",""],["","gdRows.lt-xl",""],["","gdRows.gt-xs",""],["","gdRows.gt-sm",""],["","gdRows.gt-md",""],["","gdRows.gt-lg",""]],inputs:{gdRows:"gdRows","gdRows.xs":"gdRows.xs","gdRows.sm":"gdRows.sm","gdRows.md":"gdRows.md","gdRows.lg":"gdRows.lg","gdRows.xl":"gdRows.xl","gdRows.lt-sm":"gdRows.lt-sm","gdRows.lt-md":"gdRows.lt-md","gdRows.lt-lg":"gdRows.lt-lg","gdRows.lt-xl":"gdRows.lt-xl","gdRows.gt-xs":"gdRows.gt-xs","gdRows.gt-sm":"gdRows.gt-sm","gdRows.gt-md":"gdRows.gt-md","gdRows.gt-lg":"gdRows.gt-lg"},features:[As]}),TQ),EX=fi(SX),IX=((DQ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:DQ}),DQ.\u0275inj=pt({factory:function(t){return new(t||DQ)},imports:[[aO]]}),DQ),AX=((OQ=function(){function t(e,n){_classCallCheck(this,t),Bf(n)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return _createClass(t,null,[{key:"withConfig",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:t,providers:e.serverLoaded?[{provide:cO,useValue:Object.assign(Object.assign({},lO),e)},{provide:fO,useValue:n,multi:!0},{provide:hO,useValue:!0}]:[{provide:cO,useValue:Object.assign(Object.assign({},lO),e)},{provide:fO,useValue:n,multi:!0}]}}}]),t}()).\u0275mod=we({type:OQ}),OQ.\u0275inj=pt({factory:function(t){return new(t||OQ)(Xt(hO),Xt(wl))},imports:[[VP,$Q,IX],VP,$Q,IX]}),OQ),TX=["*",[["mat-toolbar-row"]]],OX=["*","mat-toolbar-row"],DX=Mx((function t(e){_classCallCheck(this,t),this._elementRef=e})),PX=((NQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||NQ)},NQ.\u0275dir=Ce({type:NQ,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),NQ),RX=((RQ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this,t))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var t=this;Ai()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}
1)).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}]),n}(DX)).\u0275fac=function(t){return new(t||RQ)(Oa(Ys),Oa(T_),Oa(_c))},RQ.\u0275cmp=ve({type:RQ,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,PX,!0),2&t&&rl(i=hl())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&us("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[As],ngContentSelectors:OX,decls:2,vars:0,template:function(t,e){1&t&&(Xa(TX),Za(0),Za(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),RQ),NX=((PQ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:PQ}),PQ.\u0275inj=pt({factory:function(t){return new(t||PQ)},imports:[[Rx],Rx]}),PQ),MX=["*",[["mat-card-footer"]]],FX=["*","mat-card-footer"],LX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],jX=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],BX=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],VX=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],UX=((QQ=function t(){_classCallCheck(this,t)}
1).\u0275fac=function(t){return new(t||QQ)},QQ.\u0275dir=Ce({type:QQ,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),QQ),HX=((YQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||YQ)},YQ.\u0275dir=Ce({type:YQ,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),YQ),zX=((KQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||KQ)},KQ.\u0275dir=Ce({type:KQ,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),KQ),qX=((GQ=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||GQ)},GQ.\u0275dir=Ce({type:GQ,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&us("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),GQ),WX=((WQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||WQ)},WQ.\u0275dir=Ce({type:WQ,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),WQ),GX=((qQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||qQ)},qQ.\u0275dir=Ce({type:qQ,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),qQ),KX=((zQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zQ)},zQ.\u0275dir=Ce({type:zQ,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),zQ),YX=((HQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||HQ)},HQ.\u0275dir=Ce({type:HQ,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),HQ),QX=((UQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||UQ)},UQ.\u0275dir=Ce({type:UQ,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),UQ),$X=((VQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||VQ)},VQ.\u0275dir=Ce({type:VQ,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),VQ),XX=((BQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||BQ)},BQ.\u0275dir=Ce({type:BQ,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),BQ),ZX=((jQ=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||jQ)(Oa(Cx,8))},jQ.\u0275cmp=ve({type:jQ,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&us("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:FX,decls:2,vars:0,template:function(t,e){1&t&&(Xa(MX),Za(0),Za(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}
1.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),jQ),JX=((LQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||LQ)},LQ.\u0275cmp=ve({type:LQ,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:jX,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(Xa(LX),Za(0),Ma(1,"div",0),Za(2,1),Fa(),Za(3,2))},encapsulation:2,changeDetection:0}),LQ),tZ=((FQ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||FQ)},FQ.\u0275cmp=ve({type:FQ,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:VX,decls:4,vars:0,template:function(t,e){1&t&&(Xa(BX),Ma(0,"div"),Za(1),Fa(),Za(2,1),Za(3,2))},encapsulation:2,changeDetection:0}),FQ),eZ=((MQ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:MQ}),MQ.\u0275inj=pt({factory:function(t){return new(t||MQ)},imports:[[Rx],Rx]}),MQ);function nZ(t,e){if(1&t&&(Ma(0,"mat-option",11),Ma(1,"mat-icon"),ws(2,"folder"),Fa(),ws(3),Fa()),2&t){var n=e.$implicit;Ra("value",n.id),kr(3),Cs(" ",n.name," ")}}function iZ(t,e){if(1&t&&(Ma(0,"div",32),La(1,"img",33),Ma(2,"div",34),ws(3),Fa(),Ma(4,"div",35),ws(5),Hu(6,"date"),Fa(),Fa()),2&t){var n=e.ngIf,i=Qa();kr(1),Ra("src",(null==n?null:n.photo)||"/assets/profile.png",er),kr(2),ks(n.name),kr(2),Cs("\u2022 ",qu(6,3,i.now,"shortTime"),"")}}function rZ(t,e){if(1&t){var n=Ua();Ma(0,"button",36),qa("click",(function(){return en(n),Qa().hide()})),Ma(1,"mat-icon"),ws(2,"visibility_off"),Fa(),Fa()}}function oZ(t,e){if(1&t){var n=Ua();Ma(0,"button",37),qa("click",(function(){return en(n),Qa().show()})),Ma(1,"mat-icon"),ws(2,"visibility"),Fa(),Fa()}}var aZ,sZ,uZ,lZ,cZ,hZ,fZ,dZ,pZ=((aZ=function(){function t(e,n,i,r){_classCallCheck(this,t),this.fb=e,this.dataService=n,this.dialogService=i,this.teamService=r,this.editContent=!1,this.close=new Ku,this.$user=this.dataService.$user.asObservable()}return _createClass(t,[{key:"save",value:function(){if(this.templateForm.dirty){var t=this.currentTeam;t?this.teamService.updateTemplate(t,this.id,this.templateForm.value):this.dataService.updateTemplate(this.id,this.templateForm.value)}this.close.emit(!0)}},{key:"delete",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this.currentTeam)){t.next=6;break}return t.next=4,this.teamService.deleteTemplate(e,this.id);case 4:t.next=8;break;
1case 6:return t.next=8,this.dataService.deleteTemplate(this.id);case 8:this.close.emit(!1);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"insertMagicInfo",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.selectionStart=t,e.t0=this,e.next=4,this.dialogService.insertMagicInfoTag();case 4:e.t1=e.sent,e.t0.insertSmartTag.call(e.t0,e.t1);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"insertMagicName",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.selectionStart=t,e.t0=this,e.next=4,this.dialogService.insertMagicNameTag();case 4:e.t1=e.sent,e.t0.insertSmartTag.call(e.t0,e.t1);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"insertMagicDate",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.selectionStart=t,e.t0=this,e.next=4,this.dialogService.insertMagicDateTag();case 4:e.t1=e.sent,e.t0.insertSmartTag.call(e.t0,e.t1);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"insertMagicDays",value:function(t){return vy(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.selectionStart=t,e.t0=this,e.next=4,this.dialogService.insertMagicDaysTag();case 4:e.t1=e.sent,e.t2=!1,e.t0.insertSmartTag.call(e.t0,e.t1,e.t2);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"insertSmartTag",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&t.length){var n=this.selectionStart,i=this.templateForm.get("content"),r=i.value||"",o=r.slice(0,n),a=r.slice(n);i.setValue("".concat(o).concat(e?"##".concat(t,"##"):t).concat(a)),i.markAsDirty()}}},{key:"hide",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.close.emit(!0),!(e=this.currentTeam)){t.next=7;break}return t.next=5,this.teamService.hideTemplate(e,this.id);case 5:t.next=9;break;case 7:return t.next=9,this.dataService.hideTemplate(this.currTemplate.id);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"show",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.close.emit(!0),!(e=this.currentTeam)){t.next=7;break}return t.next=5,this.teamService.hideTemplate(e,this.id,!1);case 5:t.next=9;break;case 7:return t.next=9,this.dataService.hideTemplate(this.currTemplate.id,!1);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"characterCount",get:function(){if(!this.templateForm)return 0;var t=this.templateForm.get("content");return t&&t.value?t.value.length:0}},{key:"currentTeam",get:function(){return this.currTemplate.team}},{key:"template",set:function(t){var e=this;this.id=t.id,this.currTemplate=t,this.templateForm=this.fb.group({name:[t.name],subject:[t.subject],content:[t.content],folder:[t.folder]}),this.currFolderId=t.folder,this.templateForm.get("folder").valueChanges.subscribe((function(t){return e.currFolderId=t})),this.now=new Date;var n=this.currentTeam;this.$folders=n?this.teamService.getFoldersForTeam(n):this.dataService.$folders.asObservable()}},{key:"contentPreview",get:function(){return yy(this.templateForm.get("content").value,Ty,!0)}}]),t}()).\u0275fac=function(t){return new(t||aZ)(Oa(AA),Oa(zF),Oa(fF),Oa(RF))},aZ.\u0275cmp=ve({type:aZ,selectors:[["vf-template-editor"]],inputs:{template:"template"},outputs:{close:"close"},decls:56,vars:22,consts:[["id","editor-wrapper"],[3,"formGroup"],["fxLayout","column"],["appearance","legacy"],["id","name","matInput","","formControlName","name","placeholder","Template Name"],["appearance","legacy","id","subject-field"],["id","subject","matInput","","formControlName","subject","placeholder","Subject (Optional)"],["fxLayout","row","fxLayoutAlign","start center","id","folder-row"],["fxFlex","","fxFlexOffset","10px",1,"no-outline"],["matPrefix",""],["formControlName","folder"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["id","character-counter"],["id","content-wrapper","fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","id","preview-header",4,"ngIf"],[1,"fadein"],["fxFlex","","formControlName","content",3,"selectionStart","hidden","blur"],["textArea",""],["fxFlex","",1,"content-preview",3,"hidden","innerHTML","click"],[1,"fadeout"],["fxLayout","row","fxLayoutAlign","start center","id","footer"],["src","/assets/magic.svg",1,"magic"],["mat-icon-button","","matTooltip","Insert Name","matTooltipPosition","above",3,"click"],["mat-icon-button","","matTooltip","Insert Date","matTooltipPosition","above",3,"click"],["mat-icon-button","","matTooltip","Insert Info","matTooltipPosition","above",3,"click"],["mat-icon-button","","matTooltip","Insert Days","matTooltipPosition","above",3,"click"],["fxFlex",""],["mat-icon-button","","matTooltip","Hide\ufe0f","matTooltipPosition","above",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Show","matTooltipPosition","above",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","\u2620\ufe0f Will delete permanently \u2620\ufe0f","matTooltipPosition","above",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click"],["fxLayout","row","id","preview-header"],[3,"src"],["fxFlexOffset","10px","id","preview-name"],["fxFlexOffset","5px","id","editor-time"],["mat-icon-button","","matTooltip","Hide\ufe0f","matTooltipPosition","above",3,"click"],["mat-icon-button","","matTooltip","Show","matTooltipPosition","above",3,"click"]],template:function(t,e){if(1&t){var n=Ua();Ma(0,"div",0),Ma(1,"form",1),Ma(2,"div",2),Ma(3,"mat-form-field",3),La(4,"mat-label"),La(5,"input",4),Fa(),Ma(6,"mat-form-field",5),La(7,"input",6),Fa(),Ma(8,"div",7),Ma(9,"mat-form-field",8),Ma(10,"mat-icon",9),ws(11,"folder"),Fa(),Ma(12,"mat-select",10),Ma(13,"mat-select-trigger"),ws(14),Hu(15,"async"),Hu(16,"folderName"),Fa(),Ma(17,"mat-option",11),ws(18,"No Folder"),Fa(),Aa(19,nZ,4,2,"mat-option",12),Hu(20,"async"),Fa(),Fa(),Ma(21,"div",13),ws(22),Fa(),Fa(),Ma(23,"div",14),Aa(24,iZ,7,6,"div",15),Hu(25,"async"),La(26,"div",16),Ma(27,"textarea",17,18),qa("blur",(function(){return e.editContent=!1})),Fa(),Ma(29,"div",19),qa("click",(function(){return e.editContent=!0})),Fa(),La(30,"div",20),Fa(),Fa(),Ma(31,"div",21),Ma(32,"div"),La(33,"img",22),Ma(34,"span"),ws(35,"Magic Variables:"),Fa(),Fa(),Ma(36,"button",23),qa("click",(function(){en(n);var t=Ta(28);return e.insertMagicName(t.selectionStart)})),Ma(37,"mat-icon"),ws(38,"person"),Fa(),Fa(),Ma(39,"button",24),qa("click",(function(){en(n);var t=Ta(28);return e.insertMagicDate(t.selectionStart)})),Ma(40,"mat-icon"),ws(41,"today"),Fa(),Fa(),Ma(42,"button",25),qa("click",(function(){en(n);var t=Ta(28);return e.insertMagicInfo(t.selectionStart)})),Ma(43,"mat-icon"),ws(44,"business"),Fa(),Fa(),Ma(45,"button",26),qa("click",(function(){en(n);var t=Ta(28);return e.insertMagicDays(t.selectionStart)})),Ma(46,"mat-icon"),ws(47,"code"),Fa(),Fa(),La(48,"div",27),Aa(49,rZ,3,0,"button",28),Aa(50,oZ,3,0,"button",29),Ma(51,"button",30),qa("click",(function(){return e.delete()})),Ma(52,"mat-icon"),ws(53,"delete"),Fa(),Fa(),Ma(54,"button",31),qa("click",(function(){return e.save()})),ws(55,"Save"),Fa(),Fa(),Fa(),Fa()}2&t&&(kr(1),Ra("formGroup",e.templateForm),kr(13),ks(zu(15,13,qu(16,15,e.currFolderId,e.currentTeam))),kr(3),Ra("value",null),kr(2),Ra("ngForOf",zu(20,18,e.$folders)),kr(3),Cs("",e.characterCount," characters"),kr(2),Ra("ngIf",zu(25,20,e.$user)),kr(3),Ra("selectionStart",e.selectionStart)("hidden",!e.editContent),kr(2),Ra("hidden",e.editContent)("innerHTML",e.contentPreview,tr),kr(20),Ra("ngIf",!e.currTemplate.archived),kr(1),Ra("ngIf",e.currTemplate.archived),kr(4),Ra("disabled",!e.templateForm.dirty))},directives:[UI,vE,GI,uD,PT,xT,WT,aE,mE,dA,OP,WD,uP,NM,ET,kR,wR,gS,Nh,Fh,MA,WM],pipes:[pf,wq,_f],styles:['#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#name[_ngcontent-%COMP%]{font-weight:700}#text-area-icons[_ngcontent-%COMP%]{top:0}button#help[_ngcontent-%COMP%]{position:absolute;top:0;right:0;opacity:.6}img.magic[_ngcontent-%COMP%]{height:20px;width:20px}#footer[_ngcontent-%COMP%]{padding-top:10px}#footer[_ngcontent-%COMP%] button.mat-icon-button[_ngcontent-%COMP%]{opacity:.7}#folder-row[_ngcontent-%COMP%]{margin-top:-10px;opacity:.7}#character-counter[_ngcontent-%COMP%]{padding-bottom:5px;color:rgba(0,0,0,.6);font-size:.8em}#content-wrapper[_ngcontent-%COMP%]{background:#ebeef2;height:350px;position:relative;padding:40px 40px 0 50px;border-radius:4px}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%], #content-wrapper[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;font-family:\'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"\';resize:none;padding:15px 0;line-height:24px;font-size:16px}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%]::-webkit-scrollbar, #content-wrapper[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:0}#content-wrapper[_ngcontent-%COMP%] .content-preview[_ngcontent-%COMP%]{min-height:300px;white-space:pre-line;cursor:pointer;overflow-y:scroll}#content-wrapper[_ngcontent-%COMP%] .fadeout[_ngcontent-%COMP%]{position:absolute;bottom:0;height:15px;width:400px;background-image:linear-gradient(hsla(0,0%,100%,0),#ebeef2)}#content-wrapper[_ngcontent-%COMP%] .fadein[_ngcontent-%COMP%]{position:absolute;top:40px;height:15px;width:400px;background-image:linear-gradient(#ebeef2,hsla(0,0%,100%,0))}#preview-header[_ngcontent-%COMP%]{position:absolute;top:20px;left:10px}#preview-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px;width:30px;border-radius:30px;border:1px solid #d3d3d3}
1#preview-header[_ngcontent-%COMP%] #preview-name[_ngcontent-%COMP%]{font-size:16px;font-weight:800}#editor-time[_ngcontent-%COMP%]{color:rgba(0,0,0,.6)}.mat-form-field-infix[_ngcontent-%COMP%]{border-top:0}#head[_ngcontent-%COMP%]{background:#ebeef2}']}),aZ),mZ=["*"],vZ=Lx(Mx(Fx((function t(e){_classCallCheck(this,t),this._elementRef=e})),"primary"),-1),gZ=((cZ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||cZ)},cZ.\u0275dir=Ce({type:cZ,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),cZ),yZ=((lZ=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||lZ)},lZ.\u0275dir=Ce({type:lZ,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),lZ),_Z=((uZ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u,l){var c;return _classCallCheck(this,n),(c=e.call(this,t))._elementRef=t,c._ngZone=i,c._changeDetectorRef=s,c._hasFocus=!1,c.chipListSelectable=!0,c._chipListMultiple=!1,c._chipListDisabled=!1,c._selected=!1,c._selectable=!0,c._disabled=!1,c._removable=!0,c._onFocus=new A,c._onBlur=new A,c.selectionChange=new Ku,c.destroyed=new Ku,c.removed=new Ku,c._addHostClassName(),c._chipRippleTarget=(l||document).createElement("div"),c._chipRippleTarget.classList.add("mat-chip-ripple"),c._elementRef.nativeElement.appendChild(c._chipRippleTarget),c._chipRipple=new rS(_assertThisInitialized(c),i,c._chipRippleTarget,r),c._chipRipple.setupTriggerEvents(t),c.rippleConfig=o||{},c._animationsDisabled="NoopAnimations"===a,c.tabIndex=null!=u&&parseInt(u)||-1,c}return _createClass(n,[{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=t_(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=t_(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=t_(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=t_(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(vZ)).\u0275fac=function(t){return new(t||uZ)(Oa(Ys),Oa(Ll),Oa(T_),Oa(oS,8),Oa(Cx,8),Oa($o),Da("tabindex"),Oa(_c,8))},uZ.\u0275dir=Ce({type:uZ,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,gZ,!0),ul(n,yZ,!0),ul(n,bZ,!0)),2&t&&(rl(i=hl())&&(e.avatar=i.first),rl(i=hl())&&(e.trailingIcon=i.first),rl(i=hl())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(Ea("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),us("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[As]}),uZ),bZ=((sZ=function(){function t(e,n){_classCallCheck(this,t),this._parentChip=e,n&&"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return _createClass(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}()).\u0275fac=function(t){return new(t||sZ)(Oa(_Z),Oa(Ys))},sZ.\u0275dir=Ce({type:sZ,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))}}),sZ),wZ=new Ht("mat-chips-default-options"),kZ=jx((function t(e,n,i,r){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),CZ=0,xZ=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},SZ=((fZ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,s,o,a,u))._elementRef=t,l._changeDetectorRef=i,l._dir=r,l.ngControl=u,l.controlType="mat-chip-list",l._lastDestroyedChipIndex=null,l._destroyed=new A,l._uid="mat-chip-list-".concat(CZ++),l._tabIndex=0,l._userTabIndex=null,l._onTouched=function(){},l._onChange=function(){},l._multiple=!1,l._compareWith=function(t,e){return t===e},l._required=!1,l._disabled=!1,l.ariaOrientation="horizontal",l._selectable=!0,l.change=new Ku,l.valueChange=new Ku,l.ngControl&&(l.ngControl.valueAccessor=_assertThisInitialized(l)),l}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Aw(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(g_(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(g_(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(vp(null),g_(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new $_(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t<this.chips.length}},{key:"_isInputEmpty",value:function(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}},{key:"_setSelectionByValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(t){return t.deselect()}
1)),Array.isArray(t))t.forEach((function(t){return e._selectValue(t,n)})),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find((function(n){return null!=n.value&&e._compareWith(n.value,t)}));return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new xZ(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)}))}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(t){return t._hasFocus}))}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach((function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=t_(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith}
1,set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=t_(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=t_(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=t_(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return Q.apply(void 0,_toConsumableArray(this.chips.map((function(t){return t.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Q.apply(void 0,_toConsumableArray(this.chips.map((function(t){return t._onFocus}
1))))}},{key:"chipBlurChanges",get:function(){return Q.apply(void 0,_toConsumableArray(this.chips.map((function(t){return t._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Q.apply(void 0,_toConsumableArray(this.chips.map((function(t){return t.destroyed}))))}}]),n}(kZ)).\u0275fac=function(t){return new(t||fZ)(Oa(Ys),Oa($o),Oa(V_,8),Oa(PI,8),Oa(GI,8),Oa(Ux),Oa(dE,10))},fZ.\u0275cmp=ve({type:fZ,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,_Z,!0),2&t&&rl(i=hl())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&qa("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(Ss("id",e._uid),Ea("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),us("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[qs([{provide:aT,useExisting:fZ}]),As],ngContentSelectors:mZ,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Xa(),Ma(0,"div",0),Za(1),Fa())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),fZ),EZ=0,IZ=((hZ=function(){function t(e,n){_classCallCheck(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Ku,this.placeholder="",this.id="mat-chip-list-input-".concat(EZ++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return _createClass(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!bb(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}}
1,{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){if(bb(t))return!1;var e=this.separatorKeyCodes,n=t.keyCode;return Array.isArray(e)?e.indexOf(n)>-1:e.has(n)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=t_(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=t_(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}()).\u0275fac=function(t){return new(t||hZ)(Oa(Ys),Oa(wZ))},hZ.\u0275dir=Ce({type:hZ,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(Ss("id",e.id),Ea("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ns]}),hZ),AZ={separatorKeyCodes:[13]},TZ=((dZ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:dZ}),dZ.\u0275inj=pt({factory:function(t){return new(t||dZ)},providers:[Ux,{provide:wZ,useValue:AZ}]}),dZ),OZ=["panel"];function DZ(t,e){if(1&t&&(Ma(0,"div",0,1),Za(2),Fa()),2&t){var n=Qa();Ra("id",n.id)("ngClass",n._classList)}}var PZ,RZ,NZ,MZ,FZ=["*"],LZ=0,jZ=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},BZ=Fx((function t(){_classCallCheck(this,t)})),VZ=new Ht("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),UZ=((RZ=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._changeDetectorRef=t,o._elementRef=i,o._activeOptionChanges=f.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new Ku,o.opened=new Ku,o.closed=new Ku,o.optionActivated=new Ku,o._classList={},o.id="mat-autocomplete-".concat(LZ++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Iw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new jZ(this,t);this.optionSelected.emit(e)}},{key:"_setVisibilityClasses",value:function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=t_(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),n}(BZ)).\u0275fac=function(t){return new(t||RZ)(Oa($o),Oa(Ys),Oa(VZ))},RZ.\u0275cmp=ve({type:RZ,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,gS,!0),ul(n,fS,!0)),2&t&&(rl(i=hl())&&(e.options=i),rl(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(ol(yu,!0),al(OZ,!0)),2&t&&(rl(n=hl())&&(e.template=n.first),rl(n=hl())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[qs([{provide:vS,useExisting:RZ}]),As],ngContentSelectors:FZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Xa(),Aa(0,DZ,3,2,"ng-template"))},directives:[Dh],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),RZ),HZ=((PZ=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||PZ)(Oa(Ys))},PZ.\u0275dir=Ce({type:PZ,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),PZ),zZ=new Ht("mat-autocomplete-scroll-strategy"),qZ={provide:zZ,deps:[tw],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},WZ={provide:eE,useExisting:Et((function(){return GZ})),multi:!0},GZ=((MZ=function(){function t(e,n,i,r,o,a,s,u,l,c){var h=this;_classCallCheck(this,t),this._element=e,this._overlay=n,this._viewContainerRef
1=i,this._zone=r,this._changeDetectorRef=o,this._dir=s,this._formField=u,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=f.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A,this._windowBlurHandler=function(){h._canOpenOnNextFocus=h._document.activeElement!==h._element.nativeElement||h.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Vd((function(){return h.autocomplete&&h.autocomplete.options?Q.apply(void 0,_toConsumableArray(h.autocomplete.options.map((function(t){return t.onSelectionChange})))):h._zone.onStable.asObservable().pipe(ap(1),fp((function(){return h.optionSelections})))})),this._scrollStrategy=a}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular((function(){return e.addEventListener("blur",t._windowBlurHandler)}))}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return Q(a_(this._document,"click"),a_(this._document,"touchend")).pipe(Hd((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=yS(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=_S(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}},{key:"_subscribeToClosingActions",value:function(){var t=this;return Q(this._zone.onStable.asObservable().pipe(ap(1)),this.autocomplete.options.changes.pipe(kp((function(){return t._positionStrategy.reapplyLastPosition()})),_z(0))).pipe(fp((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),ap(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,
1n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!M_(this._element.nativeElement));var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new cb(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new Ob({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];e="above"===this.position?i:"below"===this.position?n:[].concat(n,i),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=t_(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Q(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Hd((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Hd((function(){return t._overlayAttached}))):Dd()).pipe(B((function(t){return t instanceof mS?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}
1()).\u0275fac=function(t){return new(t||MZ)(Oa(Ys),Oa(tw),Oa(bu),Oa(Ll),Oa($o),Oa(zZ),Oa(V_,8),Oa(DT,9),Oa(_c,8),Oa(tb))},MZ.\u0275dir=Ce({type:MZ,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&qa("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&Ea("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[qs([WZ]),Ns]}),MZ),KZ=((NZ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:NZ}),NZ.\u0275inj=pt({factory:function(t){return new(t||NZ)},providers:[qZ],imports:[[wS,aw,Rx,Lf],eb,wS,Rx]}),NZ);function YZ(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function QZ(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function $Z(t,e){var n=e?"":"none";QZ(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function XZ(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function ZZ(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}function JZ(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function tJ(t,e,n){var i=t.top,r=t.bottom,o=t.left,a=t.right;return n>=i&&n<=r&&e>=o&&e<=a}function eJ(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function nJ(t,e,n,i){var r=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width*e,l=t.height*e;return i>r-l&&i<a+l&&n>s-u&&n<o+u}var iJ=function(){function t(e,n){_classCallCheck(this,t),this._document=e,this._viewportRuler=n,this.positions=new Map}return _createClass(t,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(t){var e=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach((function(t){e.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:JZ(t)})}))}},{key:"handleScroll",value:function(t){var e=t.target,n=this.positions.get(e);if(!n)return null;var i,r,o=e===this._document?e.documentElement:e,a=n.scrollPosition;if(e===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=e.scrollTop,r=e.scrollLeft;var u=a.top-i,l=a.left-r;return this.positions.forEach((function(t,n){t.clientRect&&e!==n&&o.contains(n)&&eJ(t.clientRect,u,l)})),a.top=i,a.left=r,{top:u,left:l}}}]),t}(),rJ=R_({passive:!0}),oJ=R_({passive:!1}),aJ=function(){function t(e,n,i,r,o,a){var s=this;_classCallCheck(this,t),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new A,this._pointerMoveSubscription=f.EMPTY,this._pointerUpSubscription=f.EMPTY,this._scrollSubscription=f.EMPTY,this._resizeSubscription=f.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new A,this.started=new A,this.released=new A,this.ended=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(s.beforeStarted.next(),s._handles.length){var e=s._handles.find((function(e){var n=t.target;return!!n&&(n===e||e.contains(n))}));!e||s._disabledHandles.has(e)||s.disabled||s._initializeDragSequence(e,t)}else s.disabled||s._initializeDragSequence(s._rootElement,t)},this._pointerMove=function(t){t.preventDefault();var e=s._getPointerPositionOnPage(t);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var n=s._getConstrainedPointerPosition(e);if(s._hasMoved=!0,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:n,event:t,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})}))}else if(Math.abs(e.x-s._pickupPositionOnPage.x)+Math.abs(e.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),this._parentPositions=new iJ(i,o),a.registerDragItem(this)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return o_(t)}
vendor: 4,200 bytes, line 1
1)),this._handles.forEach((function(t){return $Z(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,n=o_(t);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){n.addEventListener("mousedown",e._pointerDown,oJ),n.addEventListener("touchstart",e._pointerDown,rJ)})),this._initialTransform=void 0,this._rootElement=n),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?o_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&cJ(this._rootElement),cJ(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&cJ(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&cJ(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){this.started.next({source:this}
1),hJ(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e,n=this._dropContainer;if(n){var i=this._rootElement,r=i.parentNode,o=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");r.insertBefore(s,i),i.style.display="none",this._document.body.appendChild(r.replaceChild(a,i)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(o),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var n=this;e.stopPropagation();var i=this.isDragging(),r=hJ(e),o=!r&&0!==e.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){n._updateOnScroll(t)})),this._boundaryElement&&(this._boundaryRect=JZ(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=e._dropContainer,i=n.getItemIndex(e),r=e._getPointerPositionOnPage(t),o=e._getDragDistance(e._getPointerPositionOnPage(t)),a=n._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:o}),e.dropped.next({item:e,currentIndex:i,previousIndex:e._initialIndex,container:n,previousContainer:e._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(e,i,e._initialContainer,a,o,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,n=t.x,i=t.y,r=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=r,e._dropContainer.enter(e,n,i,r===e._initialContainer&&r.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:r,currentIndex:r.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this._preview.style.transform=sJ(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,n=this.previewClass,i=e?e.template:null;if(i&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),t=fJ(o,this._document),this._previewRef=o,e.matchSize?dJ(t,r):t.style.transform=sJ(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;dJ(t=uJ(a),a.getBoundingClientRect())}return QZ(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),$Z(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEac
1h((function(e){return t.classList.add(e)})):t.classList.add(n)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=sJ(e.left,e.top);var n=function(t){var e=getComputedStyle(t),n=ZZ(e,"transition-property"),i=n.find((function(t){return"transform"===t||"all"===t}));if(!i)return 0;var r=n.indexOf(i),o=ZZ(e,"transition-duration"),a=ZZ(e,"transition-delay");return XZ(o[r])+XZ(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var i=function n(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",n),e(),clearTimeout(r))},r=setTimeout(i,1.5*n);t._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,n=e?e.template:null;return n?(this._placeholderRef=e.viewContainer.createEmbeddedView(n,e.context),this._placeholderRef.detectChanges(),t=fJ(this._placeholderRef,this._document)):t=uJ(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,r=i?i.getBoundingClientRect():n,o=hJ(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=hJ(t)?t.touches[0]||t.changedTouches[0]:t,n=this._getViewportScrollPosition();return{x:e.pageX-n.left,y:e.pageY-n.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this.constrainPosition?this.constrainPosition(t,this):t,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?e.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(e.x=this._pickupPositionOnPage.x),this._boundaryRect){var i=this._pickupPositionInElement,r=i.x,o=i.y,a=this._boundaryRect,s=this._previewRect,u=a.top+o,l=a.bottom-(s.height-o);e.x=lJ(e.x,a.left+r,a.right-(s.width-r)),e.y=lJ(e.y,u,l)}return e}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,n=t.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,$Z(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,oJ),t.removeEventListener("touchstart",this._pointerDown,rJ)}},{key:"_applyRootElementTransform",value:function(t,e){var n=sJ(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,n=t.y;if(!(0===e&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,i.height>r.height?(s>0&&(n+=s),u>0&&(n-=u)):n=0,e===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:hJ(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);this._boundaryRect&&e&&eJ(this._boundaryRect,e.top,e.left)}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=t_(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function sJ(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function uJ(t){var e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.querySelectorAll("canvas");e.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");if(i.length)for(var o=e.querySelectorAll("canvas"),a=0;a<i.length;a++){var s=o[a].getContext("2d");s&&s.drawImage(i[a],0,0)}return e}function lJ(t,e,n){return Math.max(e,Math.min(n,t))}function cJ(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function hJ(t){return"t"===t.type[0]}function fJ(t,e){var n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];var i=e.createElement("div");
1return n.forEach((function(t){return i.appendChild(t)})),i}function dJ(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=sJ(e.left,e.top)}function pJ(t,e){return Math.max(0,Math.min(e,t))}var mJ=function(){function t(e,n,i,r,o){var a=this;_classCallCheck(this,t),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.sorted=new A,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=f.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bg;return(!Yg(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Bg),new k((function(n){return n.add(e.schedule(YZ,t,{subscriber:n,counter:0,period:t})),n}))}(0,u_).pipe(g_(a._stopScrollTimers)).subscribe((function(){var t=a._scrollNode;1===a._verticalScrollDirection?gJ(t,-2):2===a._verticalScrollDirection&&gJ(t,2),1===a._horizontalScrollDirection?yJ(t,-2):2===a._horizontalScrollDirection&&yJ(t,2)}))},this.element=o_(e),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new iJ(i,o)}return _createClass(t,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var t=this,e=o_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(t,e,n,i){var r;this.start(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(r=this._getItemIndexFromPointerPosition(t,e,n)):r=i;var o=this._activeDraggables,a=o.indexOf(t),s=t.getPlaceholderElement(),u=o[r];if(u===t&&(u=o[r+1]),a>-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(s,l),o.splice(r,0,t)}else{var c=o_(this.element);this._shouldEnterAsFirstChild(e,n)?(c.insertBefore(s,o[0].getRootElement()),o.unshift(t)):(c.appendChild(s),o.push(t))}s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,n,i,r,o){this._reset(),null==o&&(o=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:o,container:this,previousContainer:n,isPointerOverContainer:i,distance:r})}},{key:"withItems",value:function(t){var e=this,n=this._draggables;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&(n.filter((function(t){return t.isDragging()})).every((function(e){return-1===t.indexOf(e)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=o_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?vJ("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,n,i){if(!this.sortingDisabled&&nJ(this._clientRect,.05,e,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=vJ(r,(function(e){return e.drag===t})),u=r[o],l=r[s].clientRect,c=u.clientRect,h=s>o?1:-1;this._previousSwap.drag=u.drag,this._previousSwap.delta=a?i.x:i.y;var f=this._getItemOffsetPx(l,c,h),d=this._getSiblingOffsetPx(s,r,h),p=r.
vendor: 4,111 bytes, line 1
1slice();!function(t,e,n){var i=pJ(e,t.length-1),r=pJ(n,t.length-1);if(i!==r){for(var o=t[i],a=r<i?-1:1,s=i;s!==r;s+=a)t[s]=t[s+a];t[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:t}),r.forEach((function(e,n){if(p[n]!==e){var i=e.drag===t,r=i?f:d,o=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),eJ(e.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),eJ(e.clientRect,r,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach((function(a,s){var u;s!==n._document&&a.clientRect&&!i&&nJ(a.clientRect,.05,t,e)&&(u=_slicedToArray(function(t,e,n,i){var r=_J(e,i),o=bJ(e,n),a=0,s=0;if(r){var u=t.scrollTop;1===r?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(o){var l=t.scrollLeft;1===o?l>0&&(s=1):t.scrollWidth-l>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,t,e),2),r=u[0],o=u[1],(r||o)&&(i=s))})),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,u=a.height,l={width:s,height:u,top:0,right:s,bottom:u,left:0};r=_J(l,e),o=bJ(l,t),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=o_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:JZ(e)}})).sort((function(e,n){return t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=o_(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){var e=t.getRootElement();e&&(e.style.transform="")})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,r=e[t].clientRect,o=e[t+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",u=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,r=i?e.left-t.left:e.top-t.top;return-1===n&&(r+=i?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?t>=r.right:e>=r.bottom}var o=n[0].clientRect;return i?t<=o.left:e<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,n,i){var r=this,o="horizontal"===this._orientation;return vJ(this._itemPositions,(function(a,s,u){var l=a.drag,c=a.clientRect;if(l===t)return u.length<2;if(i){var h=o?i.x:i.y;if(l===r._previousSwap.drag&&h===r._previousSwap.delta)return!1}return o?e>=Math.floor(c.left)&&e<Math.floor(c.right):n>=Math.floor(c.top)&&n<Math.floor(c.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(t,e){return tJ(this._clientRect,t,e)}},{key:"_getSiblingContainerFromPosition",value:function(t,e,n){return this._siblings.find((function(i){return i._canReceive(t,e,n)}
1))}},{key:"_canReceive",value:function(t,e,n){if(!tJ(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;var i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;var r=o_(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var n=t._parentPositions.handleScroll(e);n&&(t._itemPositions.forEach((function(t){eJ(t.clientRect,n.top,n.left)})),t._itemPositions.forEach((function(e){var n=e.drag;t._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})))}else t.isReceiving()&&t._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=M_(o_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}]),t}();function vJ(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function gJ(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function yJ(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function _J(t,e){var n=t.top,i=t.bottom,r=.05*t.height;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function bJ(t,e){var n=t.left,i=t.right,r=.05*t.width;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}var wJ,kJ,CJ,xJ,SJ,EJ,IJ=R_({passive:!1,capture:!0}),AJ=((wJ=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new A,this.pointerUp=new A,this.scroll=new A,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=n}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,IJ)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,IJ)}},{key:"startDragging",value:function(t,e){var n=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var i=e.type.startsWith("touch"),r=i?"touchend":"mouseup";this._globalListeners.set(i?"touchmove":"mousemove",{handler:function(t){return n.pointerMove.next(t)},options:IJ}).set(r,{handler:function(t){return n.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return n.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:IJ}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(t,e){n._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,n){t._document.removeEventListener(n,e.handler,e.options)})),this._globalListeners.clear()}}]),t}()).\u0275fac=function(t){return new(t||wJ)(Xt(Ll),Xt(_c))},wJ.\u0275prov=dt({factory:function(){return new wJ(Xt(Ll),Xt(_c))},token:wJ,providedIn:"root"}),wJ),TJ={dragStartThreshold:5,pointerDirectionChangeThreshold:5},OJ=((kJ=function(){function t(e,n,i,r){_classCallCheck(this,t),this._document=e,this._ngZone=n,this._viewportRuler
1=i,this._dragDropRegistry=r}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TJ;return new aJ(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new mJ(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||kJ)(Xt(_c),Xt(Ll),Xt(tb),Xt(AJ))},kJ.\u0275prov=dt({factory:function(){return new kJ(Xt(_c),Xt(Ll),Xt(tb),Xt(AJ))},token:kJ,providedIn:"root"}),kJ),DJ=new Ht("CDK_DRAG_PARENT"),PJ=((SJ=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this._stateChanges=new A,this._disabled=!1,this._parentDrag=n,$Z(e.nativeElement,!1)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||SJ)(Oa(Ys),Oa(DJ,8))},SJ.\u0275dir=Ce({type:SJ,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),SJ),RJ=((xJ=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||xJ)(Oa(yu))},xJ.\u0275dir=Ce({type:xJ,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),xJ),NJ=((CJ=function(){function t(e){_classCallCheck(this,t),this.templateRef=e,this._matchSize=!1}return _createClass(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||CJ)(Oa(yu))},CJ.\u0275dir=Ce({type:CJ,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),CJ),MJ=new Ht("CDK_DRAG_CONFIG"),FJ=new Ht("CDK_DROP_LIST"),LJ=((EJ=function(){function t(e,n,i,r,o,a,s,u,l){var c=this;_classCallCheck(this,t),this.element=e,this.dropContainer=n,this._document=i,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=l,this._destroyed=new A,this.started=new Ku,this.released=new Ku,this.ended=new Ku,this.entered=new Ku,this.exited=new Ku,this.dropped=new Ku,this.moved=new k((function(t){var e=c._dragRef.moved.pipe(B((function(t){return{source:c,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=u.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(ap(1),g_(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(vp(t._handles),kp((function(e){var n=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(n)})),fp((function(t){return Q.apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(vp(t))}))))})),g_(t._destroyed)).subscribe((function(e){var n=t._dragRef,i=e.element.nativeElement;e.disabled?n.disableHandle(i):n.enableHandle(i)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?jJ(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return jJ(this.element.nativeElement,t);var e=o_(t);if(Ai()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var n=e._dir,
1i=e.dragStartDelay,r=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,o=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:e_(i),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),n&&t.withDirection(n.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.dragStartDelay,i=t.constrainPosition,r=t.previewClass,o=t.boundaryElement,a=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=t_(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||EJ)(Oa(Ys),Oa(FJ,12),Oa(_c),Oa(Ll),Oa(bu),Oa(MJ,8),Oa(V_,8),Oa(OJ),Oa($o))},EJ.\u0275dir=Ce({type:EJ,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(ul(n,NJ,!0),ul(n,RJ,!0),ul(n,PJ,!0)),2&t&&(rl(i=hl())&&(e._previewTemplate=i.first),rl(i=hl())&&(e._placeholderTemplate=i.first),rl(i=hl())&&(e._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&us("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[qs([{provide:DJ,useExisting:EJ}]),Ns]}),EJ);function jJ(t,e){for(var n=t.parentElement;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}var BJ,VJ,UJ,HJ=((UJ=function(){function t(){_classCallCheck(this,t),this._items=new Set,this._disabled=!1}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||UJ)},UJ.\u0275dir=Ce({type:UJ,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),UJ),zJ=0,qJ=((VJ=function(){function t(e,n,i,r,o,a,s){var u=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=i,this._dir=r,this._group=o,this._scrollDispatcher=a,this._destroyed=new A,this.connectedTo=[],this.id="cdk-drop-list-".concat(zJ++),this.enterPredicate=function(){return!0},this.dropped=new Ku,this.entered=new Ku,this.exited=new Ku,this.sorted=new Ku,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(t,e){return u.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return _createClass(t,[{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,n,i){this._dropListRef.drop(t._dragRef,e,n._dropListRef,i,{x:0,y:0})}},{key:"enter",value:function(t,e,n){this._dropListRef.enter(t._dragRef,e,n)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var n=this;this._dir&&this._dir.change.pipe(vp(this._dir.value),g_(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var i=i_(n.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));
1if(n._group&&n._group._items.forEach((function(t){-1===i.indexOf(t)&&i.push(t)})),!n._scrollableParentsResolved&&n._scrollDispatcher){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map((function(t){return t.getElementRef().nativeElement}));n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}e.disabled=n.disabled,e.lockAxis=n.lockAxis,e.sortingDisabled=t_(n.sortingDisabled),e.autoScrollDisabled=t_(n.autoScrollDisabled),e.connectedTo(i.filter((function(t){return t&&t!==n})).map((function(t){return t._dropListRef}))).withOrientation(n.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.draggingDisabled,i=t.sortingDisabled,r=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||VJ)(Oa(Ys),Oa(OJ),Oa($o),Oa(V_,8),Oa(HJ,12),Oa(Z_),Oa(MJ,8))},VJ.\u0275dir=Ce({type:VJ,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(Ss("id",e.id),us("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[qs([{provide:HJ,useValue:void 0},{provide:FJ,useExisting:VJ}])]}),VJ._dropLists=[],VJ),WJ=((BJ=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:BJ}),BJ.\u0275inj=pt({factory:function(t){return new(t||BJ)},providers:[OJ],imports:[eb]}),BJ);function GJ(t,e){1&t&&(Ma(0,"h1"),ws(1,"Add Users to your Organization"),Fa())}function KJ(t,e){1&t&&(Ma(0,"h1"),ws(1,"Edit Users"),Fa())}function YJ(t,e){if(1&t&&(Ma(0,"mat-option",15),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function QJ(t,e){if(1&t&&(Ma(0,"mat-option",15),ws(1),Fa()),2&t){var n=e.$implicit;Ra("value",n.value),kr(1),Cs(" ",n.viewValue," ")}}function $J(t,e){1&t&&La(0,"mat-spinner",16),2&t&&Ra("diameter",25)}function XJ(t,e){if(1&t){var n=Ua();Ma(0,"button",17),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().userForm.dirty)}var ZJ,JJ=((ZJ=function(){function t(e,n,i,r,o,a){_classCallCheck(this,t),this.fb=e,this.teamService=n,this.cdr=i,this.toastr=r,this.dialogRef=o,this.user=a,this.close=new Ku,this.roles=[{value:"admin",viewValue:"Admin"},{value:"member",viewValue:"Member"}],this.accesses=[{value:"editor",viewValue:"Editor"},{value:"viewer",viewValue:"Viewer"}]}return _createClass(t,[{key:"ngOnInit",value:function(){this.isAddMo
1de=""===this.user.user.name,console.log("this is the isAddMode ",this.isAddMode),this.userForm=this.fb.group({name:[this.user.user.name],email:[this.user.user.email],access:[this.user.user.access],role:[this.user.user.role]})}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.userForm.dirty||!this.isAddMode){t.next=6;break}return e=this.genPassword(),console.log("Let us add a user!"),this.isSaving=!0,t.next=6,this.teamService.newUser(this.user.user.teamId,this.userForm.value,e).then((function(t){return vy(n,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isSaving=!1,this.toastr.success(t.result),this.dialogRef.close(),e.next=5,this.teamService.resetPassword(this.userForm.value.email);case 5:case"end":return e.stop()}}),e,this)})))})).catch((function(t){n.isSaving=!1,n.dialogRef.close(),n.toastr.error(t.message)}));case 6:if(t.t0=this.userForm.dirty&&!this.isAddMode,!t.t0){t.next=12;break}return console.log("Let us edit a user!",this.user.user,this.user.user.teamId,this.userForm.value),this.isSaving=!0,t.next=12,this.teamService.editUser(this.user.user.id,this.user.user.teamId,this.userForm.value).then((function(t){n.isSaving=!1,n.dialogRef.close(),n.toastr.success(t.result)})).catch((function(t){n.isSaving=!1,n.dialogRef.close(),n.toastr.error(t.message)}));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"genPassword",value:function(){for(var t="0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ",e="",n=0;n<=12;n++){var i=Math.floor(Math.random()*t.length);e+=t.substring(i,i+1)}return e}}]),t}()).\u0275fac=function(t){return new(t||ZJ)(Oa(AA),Oa(RF),Oa($o),Oa(AH),Oa(MS),Oa(FS))},ZJ.\u0275cmp=ve({type:ZJ,selectors:[["vf-user-editor"]],outputs:{close:"close"},decls:28,vars:8,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],[4,"ngIf"],["id","form",3,"formGroup"],["appearance","legacy",1,"full-width"],["id","name","matInput","","formControlName","name","placeholder","Full Name"],["matInput","","formControlName","email","placeholder","Email Address",3,"readonly"],["appearance","legacy"],["formControlName","role"],[3,"value",4,"ngFor","ngForOf"],["formControlName","access"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"value"],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Aa(4,GJ,2,0,"h1",4),Aa(5,KJ,2,0,"h1",4),Fa(),Ma(6,"form",5),Ma(7,"mat-grid-tile",2),Ma(8,"mat-form-field",6),La(9,"input",7),Fa(),Fa(),Ma(10,"mat-grid-tile",2),Ma(11,"mat-form-field",6),La(12,"input",8),Fa(),Fa(),Ma(13,"mat-grid-tile"),Ma(14,"mat-form-field",9),Ma(15,"mat-label"),ws(16,"Role"),Fa(),Ma(17,"mat-select",10),Aa(18,YJ,2,2,"mat-option",11),Fa(),Fa(),Fa(),Ma(19,"mat-grid-tile"),Ma(20,"mat-form-field",9),Ma(21,"mat-label"),ws(22,"Access"),Fa(),Ma(23,"mat-select",12),Aa(24,QJ,2,2,"mat-option",11),Fa(),Fa(),Fa(),Ma(25,"mat-grid-tile",2),Aa(26,$J,1,1,"mat-spinner",13),Aa(27,XJ,2,1,"button",14),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(4),Ra("ngIf",e.isAddMode),kr(1),Ra("ngIf",!e.isAddMode),kr(1),Ra("formGroup",e.userForm),kr(6),Ra("readonly",!e.isAddMode),kr(6),Ra("ngForOf",e.roles),kr(6),Ra("ngForOf",e.accesses),kr(2),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,Fh,UI,vE,GI,PT,WT,aE,mE,dA,xT,kR,Nh,gS,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}"]}),ZJ);function t0(t,e){1&t&&(Ma(0,"mat-grid-tile",2),Ma(1,"mat-form-field",8),La(2,"input",9),Fa(),Fa())}function e0(t,e){1&t&&(Ma(0,"mat-grid-tile",2),Ma(1,"mat-form-field",8),La(2,"input",10),Fa(),Fa())}function n0(t,e){1&t&&(Ma(0,"mat-grid-tile",2),Ma(1,"mat-form-field",8),La(2,"input",11),Fa(),Fa())}function i0(t,e){1&t&&La(0,"mat-spinner",12),2&t&&Ra("diameter",25)}function r0(t,e){if(1&t){var n=Ua();Ma(0,"button",13),qa("click",(function(){return en(n),Qa().save()})),ws(1,"Save"),Fa()}2&t&&Ra("disabled",!Qa().teamForm.dirty)}var o0,a0,s0,u0,l0=((o0=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this.fb=e,this.teamBillingService=n,this.dialog=i,this.toastr=r,this.input=o,this.close=new Ku,this.matcher=new c0}return _createClass(t,[{key:"ngOnInit",value:function(){console.log("This how I am received",this.input),this.team=this.input.team,this.status=this.input.status,console.log("this is my team",this.team),this.teamForm=this.fb.group({name:[this.team.name],email:[this.team.email],number:[this.team.number]})}},{key:"save",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.teamForm.dirty,!t.t0){t.next=17;break}if(console.log("Let us edit a user!",this.teamForm.value),this.isSaving=!0,t.t1="email"===this.status,!t.t1){t.next=9;break}return console.log(this.team.id,this.team.stripeId,this.teamForm.value.email),t.next=9,this.teamBillingService.teamEmailChange(this.team.id,this.team.stripeId,this.teamForm.value.email).then((function(t){e.isSaving=!1,e.toastr.success(t.result),e.close.emit(!0)})).catch((function(t){e.isSaving=!1,e.toastr.error(t.message),e.close.emit(!0)}));case 9:if(t.t2="name"===this.status,!t.t2){t.next=13;break}return t.next=13,this.teamBillingService.teamNameChange(this.team.id,this.team.stripeId,this.teamForm.value.name).then((function(t){e.isSaving=!1,e.toastr.success(t.result),e.close.emit(!0)})).catch((function(t){e.isSaving=!1,e.toastr.error(t.message),e.close.emit(!0)}));case 13:if(t.t3="number"===this.status,!t.t3){t.next=17;break}return t.next=17,this.teamBillingService.stripeTeamCheckout(this.team.stripeId,this.teamForm.value.number).then((function(t){e.isSaving=!1,e.toastr.success(t.result),e.close.emit(!0)})).catch((function(t){e.isSaving=!1,e.toastr.error(t.message),e.close.emit(!0)}));case 17:case"end":return t.stop()}}),t,this)})))}},{key:"teamNameChange",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.teamBillingService.teamNameChange(this.team.id,this.team.stripeId,"Change name").then((function(t){e.isSaving=!1,e.toastr.success(t.result),e.close.emit(!0)})).catch((function(t){e.isSaving=!1,e.toastr.error(t.message),e.close.emit(!0)}));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"teamEmailChange",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.teamBillingService.teamEmailChange(this.team.id,this.team.stripeId,"[email protected]").then((function(t){e.isSaving=!1,e.toastr.success(t.result),e.close.emit(!0)})).catch((function(t){e.isSaving=!1,e.toastr.error(t.message),e.close.emit(!0)}));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"teamNumberChange",value:function(){return vy(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.teamBillingService.stripeTeamCheckout(this.team.stripeId,8).then((function(t){console.log(t)}
1)).catch((function(t){console.log(t)}));case 2:case"end":return t.stop()}}),t,this)})))}}]),t}()).\u0275fac=function(t){return new(t||o0)(Oa(AA),Oa(lz),Oa(VS),Oa(AH),Oa(FS))},o0.\u0275cmp=ve({type:o0,selectors:[["vf-team-dialog"]],outputs:{close:"close"},decls:13,vars:6,consts:[["id","editor-wrapper"],["cols","2","rowHeight","85px"],["colspan","2"],["src","/assets/icon48.png","width","6%",1,"logo"],["id","form",3,"formGroup"],["colspan","2",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["appearance","legacy",1,"full-width"],["matInput","","formControlName","email","placeholder","Email Address","required","","type","email"],["id","name","matInput","","formControlName","name","placeholder","Organization Name","required",""],["id","number","type","number","matInput","","formControlName","number","placeholder","Organization number","required",""],[3,"diameter"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(Ma(0,"div",0),Ma(1,"mat-grid-list",1),Ma(2,"mat-grid-tile",2),La(3,"img",3),Ma(4,"h1"),ws(5,"Organization Info"),Fa(),Fa(),Ma(6,"form",4),Aa(7,t0,3,0,"mat-grid-tile",5),Aa(8,e0,3,0,"mat-grid-tile",5),Aa(9,n0,3,0,"mat-grid-tile",5),Ma(10,"mat-grid-tile",2),Aa(11,i0,1,1,"mat-spinner",6),Aa(12,r0,2,1,"button",7),Fa(),Fa(),Fa(),Fa()),2&t&&(kr(6),Ra("formGroup",e.teamForm),kr(1),Ra("ngIf","email"===e.status||"teamCreate"===e.status),kr(1),Ra("ngIf","name"===e.status||"teamCreate"===e.status),kr(1),Ra("ngIf","number"===e.status),kr(2),Ra("ngIf",e.isSaving),kr(1),Ra("ngIf",!e.isSaving))},directives:[BW,CW,UI,vE,GI,Fh,PT,WT,aE,mE,dA,vA,PE,ZP,MA],styles:["#editor-wrapper[_ngcontent-%COMP%]{position:relative;padding:20px 30px 15px;width:490px}#form[_ngcontent-%COMP%]{margin-bottom:2em}.logo[_ngcontent-%COMP%]{margin-right:1.5em;margin-bottom:1.5em}.full-width[_ngcontent-%COMP%]{width:87%}"]}),o0),c0=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.dirty||t.touched||e&&e.submitted))}}]),t}(),h0=0,f0=((u0=function(){function t(){_classCallCheck(this,t),this._stateChanges=new A,this._openCloseAllActions=new A,this.id="cdk-accordion-".concat(h0++),this._multi=!1}return _createClass(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||u0)},u0.\u0275dir=Ce({type:u0,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Ns]}),u0),d0=0,p0=((s0=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=f.EMPTY,this.closed=new Ku,this.opened=new Ku,this.destroyed=new Ku,this.expandedChange=new Ku,this.id="cdk-accordion-child-".concat(d0++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded}
1,set:function(t){t=t_(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t_(t)}}]),t}()).\u0275fac=function(t){return new(t||s0)(Oa(f0,12),Oa($o),Oa(X_))},s0.\u0275dir=Ce({type:s0,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[qs([{provide:f0,useValue:void 0}])]}),s0),m0=((a0=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:a0}),a0.\u0275inj=pt({factory:function(t){return new(t||a0)}}),a0),v0=["body"];function g0(t,e){}var y0=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],_0=["mat-expansion-panel-header","*","mat-action-row"],b0=function(t,e){return{collapsedHeight:t,expandedHeight:e}},w0=function(t,e){return{value:t,params:e}};function k0(t,e){1&t&&La(0,"span",2),2&t&&Ra("@indicatorRotate",Qa()._getExpandedState())}var C0,x0,S0,E0,I0,A0,T0,O0,D0,P0=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],R0=["mat-panel-title","mat-panel-description","*"],N0=new Ht("MAT_ACCORDION"),M0={indicatorRotate:Jw("indicatorRotate",[rk("collapsed, void",ik({transform:"rotate(0deg)"})),rk("expanded",ik({transform:"rotate(180deg)"})),ok("expanded <=> collapsed, void => collapsed",tk("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:Jw("expansionHeight",[rk("collapsed, void",ik({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),rk("expanded",ik({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),ok("expanded <=> collapsed, void => collapsed",ek([sk("@indicatorRotate",ak(),{optional:!0}),tk("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:Jw("bodyExpansion",[rk("collapsed, void",ik({height:"0px",visibility:"hidden"})),rk("expanded",ik({height:"*",visibility:"visible"})),ok("expanded <=> collapsed, void => collapsed",tk("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},F0=((C0=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||C0)(Oa(yu))},C0.\u0275dir=Ce({type:C0,selectors:[["ng-template","matExpansionPanelContent",""]]}),C0),L0=0,j0=new Ht("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),B0=((T0=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,i,r))._viewContainerRef=o,l._animationMode=s,l._hideToggle=!1,l.afterExpand=new Ku,l.afterCollapse=new Ku,l._inputChanges=new A,l._headerId="mat-expansion-panel-header-".concat(L0++),l._bodyAnimationDone=new A,l.accordion=t,l._document=a,l._bodyAnimationDone.pipe(l_((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?l.afterExpand.emit():"collapsed"===t.toState&&l.afterCollapse.emit())})),u&&(l.hideToggle=u.hideToggle),l}return _createClass(n,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe(vp(null),Hd((function(){return t.expanded&&!t._portal})),ap(1)).subscribe((function(){t._portal=new cb(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=t_(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),n}(p0)).\u0275fac=function(t){return new(t||T0)(Oa(N0,12),Oa($o),Oa(X_),Oa(bu),Oa(_c),Oa(Cx,8),Oa(j0,8))},T0.\u0275cmp=ve({type:T0,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,F0,!0),2&t&&rl(i=hl())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&al(v0,!0),2&t&&rl(n=hl())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&us("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[qs([{provide:N0,useValue:void 0}]),As,Ns],ngContentSelectors:_0,decls:7,vars:4,consts:[["role","regi
1on",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Xa(y0),Za(0),Ma(1,"div",0,1),qa("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),Ma(3,"div",2),Za(4,1),Aa(5,g0,0,0,"ng-template",3),Fa(),Za(6,2),Fa()),2&t&&(kr(1),Ra("@bodyExpansion",e._getExpandedState())("id",e.id),Ea("aria-labelledby",e._headerId),kr(4),Ra("cdkPortalOutlet",e._portal))},directives:[mb],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[M0.bodyExpansion]},changeDetection:0}),T0),V0=((A0=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||A0)},A0.\u0275dir=Ce({type:A0,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),A0),U0=((I0=function(){function t(e,n,i,r,o){var a=this;_classCallCheck(this,t),this.panel=e,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._parentChangeSubscription=f.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(Hd((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):jd;this._parentChangeSubscription=Q(e.opened,e.closed,s,e._inputChanges.pipe(Hd((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return a._changeDetectorRef.markForCheck()})),e.closed.pipe(Hd((function(){return e._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),i.monitor(n).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(a)})),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return _createClass(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:bb(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||I0)(Oa(B0,1),Oa(Ys),Oa(zw),Oa($o),Oa(j0,8))},I0.\u0275cmp=ve({type:I0,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(t,e){1&t&&(Wa("@expansionHeight.start",(function(){return e._animationStarted()})),qa("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(Ea("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Es("@.disabled",e._animationsDisabled)("@expansionHeight",ju(16,w0,e._getExpandedState(),ju(13,b0,e.collapsedHeight,e.expandedHeight))),us("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:R0,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Xa(P0),Ma(0,"span",0),Za(1),Za(2,1),Za(3,2),Fa(),Aa(4,k0,1,1,"span",1)),2&t&&(kr(4),Ra("ngIf",e._showToggle(
1)))},directives:[Fh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[M0.indicatorRotate,M0.expansionHeaderHeight]},changeDetection:0}),I0),H0=((E0=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||E0)},E0.\u0275dir=Ce({type:E0,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),E0),z0=((S0=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||S0)},S0.\u0275dir=Ce({type:S0,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),S0),q0=((x0=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._ownHeaders=new Qu,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(vp(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new Aw(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;36===e?bb(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?bb(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=t_(t)}}]),n}(f0)).\u0275fac=function(t){return W0(t||x0)},x0.\u0275dir=Ce({type:x0,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&ul(n,U0,!0),2&t&&rl(i=hl())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&us("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[qs([{provide:N0,useExisting:x0}]),As]}),x0),W0=fi(q0),G0=((D0=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:D0}),D0.\u0275inj=pt({factory:function(t){return new(t||D0)},imports:[[Lf,m0,yb]]}),D0),K0=((O0=function t(){_classCallCheck(this,t)}).\u0275mod=we({type:O0,bootstrap:[bY]}),O0.\u0275inj=pt({factory:function(t){return new(t||O0)},providers:[AF,{provide:CF,useValue:!mc.production},{provide:kN,useValue:mc.emulator?"http://localhost:5001":void 0}],imports:[[Id,_Y,Lf,OA,TA,G0,fy.initializeApp(mc.firebaseConfig),PF,Jy,LF,AX,Sx,QR,NX,kL,nj,MM,eZ,Kq,LA,RT,GT,VW,YS,TZ,KZ,KM,bq,$z,CR,WJ,JP,TN,_N,YB,aH,lV,DH.forRoot(),vM]]}),O0);ge(nO,[Dh,Ph,Nh,Fh,Jh,Zh,Kh,Yh,Qh,$h,Xh,ig,Kv,Yv,tg,Gp,UI,KE,JE,aE,PE,LE,iE,GE,ZE,ME,mE,vE,vA,kA,xA,EA,gA,bA,qI,GI,dA,YI,$I,VI,LI,PI,q0,B0,V0,U0,z0,H0,F0,uD,mD,OP,nP,uP,xP,_P,WD,LY,OY,KY,EY,n$,c$,y$,S$,R$,U$,Y$,nX,cX,gX,SX,RX,PX,U_,J_,mL,vL,pL,yL,bL,gL,WL,zL,QL,GL,Hx,KL,YL,uS,ej,tj,CL,NM,ZX,JX,tZ,UX,HX,zX,qX,WX,KX,YX,QX,GX,$X,XX,qq,MA,FA,rT,PT,CT,xT,ST,ET,IT,FT,LT,WT,BT,BW,CW,xW,EW,IW,SW,RS,HS,zS,qS,WS,SZ,_Z,IZ,bZ,gZ,yZ,UZ,gS,fS,GZ,HZ,WM,GM,mq,gq,qz,jz,Yz,Mz,kR,wR,qJ,HJ,LJ,PJ,NJ,RJ,XP,ZP,AN,yN,FB,kB,EB,qB,KB,wB,RU,LU,GU,UU,MU,$U,BU,YU,zU,WU,qU,ZU,nH,tH,rH,uV,TH,nO,eO,iO,tR,GR,lF,cF,hF,sG,DG,GW,ZW,bY,Fj,Sj,Lj,hz,Bq,rW,pZ,Ij,uj,Iq,sj,oq,yz,gW,tK,eK,yK,nK,AK,CK,XK,HK,mY,ZH,JJ,cz,JG,CG,ZG,aG,OG,pj,l0,WW,XW],[pf,yf,mf,Cf,Ff,Tf,Of,gf,Df,_f,wf,kf,xf,wq,bK]),ge(cF,[Dh,Ph,Nh,Fh,Jh,Zh,Kh,Yh,Q
1h,$h,Xh,ig,Kv,Yv,tg,Gp,UI,KE,JE,aE,PE,LE,iE,GE,ZE,ME,mE,vE,vA,kA,xA,EA,gA,bA,qI,GI,dA,YI,$I,VI,LI,PI,q0,B0,V0,U0,z0,H0,F0,uD,mD,OP,nP,uP,xP,_P,WD,LY,OY,KY,EY,n$,c$,y$,S$,R$,U$,Y$,nX,cX,gX,SX,RX,PX,U_,J_,mL,vL,pL,yL,bL,gL,WL,zL,QL,GL,Hx,KL,YL,uS,ej,tj,CL,NM,ZX,JX,tZ,UX,HX,zX,qX,WX,KX,YX,QX,GX,$X,XX,qq,MA,FA,rT,PT,CT,xT,ST,ET,IT,FT,LT,WT,BT,BW,CW,xW,EW,IW,SW,RS,HS,zS,qS,WS,SZ,_Z,IZ,bZ,gZ,yZ,UZ,gS,fS,GZ,HZ,WM,GM,mq,gq,qz,jz,Yz,Mz,kR,wR,qJ,HJ,LJ,PJ,NJ,RJ,XP,ZP,AN,yN,FB,kB,EB,qB,KB,wB,RU,LU,GU,UU,MU,$U,BU,YU,zU,WU,qU,ZU,nH,tH,rH,uV,TH,nO,eO,iO,tR,GR,lF,cF,hF,sG,DG,GW,ZW,bY,Fj,Sj,Lj,hz,Bq,rW,pZ,Ij,uj,Iq,sj,oq,yz,gW,tK,eK,yK,nK,AK,CK,XK,HK,mY,ZH,JJ,cz,JG,CG,ZG,aG,OG,pj,l0,WW,XW],[pf,yf,mf,Cf,Ff,Tf,Of,gf,Df,_f,wf,kf,xf,wq,bK]),ge(hF,[Dh,Ph,Nh,Fh,Jh,Zh,Kh,Yh,Qh,$h,Xh,ig,Kv,Yv,tg,Gp,UI,KE,JE,aE,PE,LE,iE,GE,ZE,ME,mE,vE,vA,kA,xA,EA,gA,bA,qI,GI,dA,YI,$I,VI,LI,PI,q0,B0,V0,U0,z0,H0,F0,uD,mD,OP,nP,uP,xP,_P,WD,LY,OY,KY,EY,n$,c$,y$,S$,R$,U$,Y$,nX,cX,gX,SX,RX,PX,U_,J_,mL,vL,pL,yL,bL,gL,WL,zL,QL,GL,Hx,KL,YL,uS,ej,tj,CL,NM,ZX,JX,tZ,UX,HX,zX,qX,WX,KX,YX,QX,GX,$X,XX,qq,MA,FA,rT,PT,CT,xT,ST,ET,IT,FT,LT,WT,BT,BW,CW,xW,EW,IW,SW,RS,HS,zS,qS,WS,SZ,_Z,IZ,bZ,gZ,yZ,UZ,gS,fS,GZ,HZ,WM,GM,mq,gq,qz,jz,Yz,Mz,kR,wR,qJ,HJ,LJ,PJ,NJ,RJ,XP,ZP,AN,yN,FB,kB,EB,qB,KB,wB,RU,LU,GU,UU,MU,$U,BU,YU,zU,WU,qU,ZU,nH,tH,rH,uV,TH,nO,eO,iO,tR,GR,lF,cF,hF,sG,DG,GW,ZW,bY,Fj,Sj,Lj,hz,Bq,rW,pZ,Ij,uj,Iq,sj,oq,yz,gW,tK,eK,yK,nK,AK,CK,XK,HK,mY,ZH,JJ,cz,JG,CG,ZG,aG,OG,pj,l0,WW,XW],[pf,yf,mf,Cf,Ff,Tf,Of,gf,Df,_f,wf,kf,xf,wq,bK]),mc.production&&function(){if(Ii)throw new Error("Cannot enable prod mode after platform setup.");Ei=!1}(),Sd().bootstrapModule(K0).catch((function(t){return console.error(t)}))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);
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.