1!function(){function e(e,n,r,i,o,a){return function(e,n,r,i,o){if(!t(e,n,r,i||e)&&o)throw new TypeError("failed to set property");return r}(w(a?e.prototype:e),n,r,i,o)}function t(e,n,i,o){return t="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,i){var o,u=a(e,t);if(u){if((o=Object.getOwnPropertyDescriptor(u,t)).set)return o.set.call(i,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(i,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(i,t,o)}else r(i,t,n);return!0},t(e,n,i,o)}function n(e){return y(e)||l(e)||p(e)||d()}function r(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,r){var i=o(w(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=a(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},o.apply(null,arguments)}function a(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),x(n,e)},u(e)}function s(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&x(i,n.prototype),i}function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||l(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function h(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||p(e,t)||d()}function d(){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 p(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e){if(Array.isArray(e))return e}function m(e,t,n){return t=w(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(e,b()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}
1function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function C(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkthor_app=self.webpackChunkthor_app||[]).push([[4736],{65594:function(e,t,n){"use strict";n.d(t,{l3:function(){return o},_j:function(){return r},LC:function(){return i},ZN:function(){return m},jt:function(){return u},pV:function(){return p},ru:function(){return s},F4:function(){return h},IO:function(){return v},vP:function(){return c},SB:function(){return f},oB:function(){return l},eR:function(){return d},X$:function(){return a},ZE:function(){return g},k1:function(){return b}});var r=C(function e(){E(this,e)}),i=C(function e(){E(this,e)}),o="*";function a(e,t){return{type:7,name:e,definitions:t,options:{}}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function f(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function y(e){Promise.resolve(null).then(e)}var m=function(){return C(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;E(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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 e=this;y(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),g=function(){return C(function e(t){var n=this;E(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?y(function(){return n._onFinish()}
1):this.players.forEach(function(e){e.onDone(function(){++r==a&&n._onFinish()}),e.onDestroy(function(){++i==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),b="!"},92674:function(e,t,n){"use strict";n.d(t,{mr:function(){return A},Ov:function(){return Le},ez:function(){return Qe},H9:function(){return Ye},K0:function(){return c},uU:function(){return ze},JJ:function(){return Ge},Do:function(){return D},Nd:function(){return qe},V_:function(){return p},Ye:function(){return I},S$:function(){return k},i8:function(){return Be},mk:function(){return xe},sg:function(){return Ce},O5:function(){return Ee},PC:function(){return Me},RF:function(){return Ie},n9:function(){return Te},tP:function(){return Pe},b0:function(){return O},Zx:function(){return Ke},lw:function(){return l},rS:function(){return We},gd:function(){return Ue},EM:function(){return et},JF:function(){return rt},NF:function(){return Je},w_:function(){return s},bD:function(){return Xe},q:function(){return o},Mx:function(){return _e},HT:function(){return a}});var r=n(62415),i=null;function o(){return i}function a(e){i||(i=e)}var u,s=C(function e(){E(this,e)}),c=new r.InjectionToken("DocumentToken"),l=((u=function(){return C(function e(){E(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}()).\u0275fac=function(e){return new(e||u)},u.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:d,token:u,providedIn:"platform"}),u);function d(){return(0,r.\u0275\u0275inject)(v)}var p=new r.InjectionToken("Location Initialized"),v=function(){var e=function(e){function t(e){var n;return E(this,t),(n=m(this,t))._doc=e,n._init(),n}return _(t,e),C(t,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{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(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){y()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){y()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}])}(l);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(c))},e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:g,token:e,providedIn:"platform"}),e}();function y(){return!!window.history.pushState}function g(){return new v((0,r.\u0275\u0275inject)(c))}function b(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function w(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function x(e){return e&&"?"!==e[0]?"?"+e:e}var k=function(){var e=function(){return C(function e(){E(this,e)},[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:S,token:e,providedIn:"root"}),e}();function S(e){var t=(0,r.\u0275\u0275inject)(c).location;return new O((0,r.\u0275\u0275inject)(l),t&&t.origin||"")}var A=new r.InjectionToken("appBaseHref"),O=function(){var e=function(e){function t(e,n){var r;if(E(this,t),(r=m(this,t))._platformLocation=e,r._removeListenerFns=[],null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return _(t,e),C(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.on
1HashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return b(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+x(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(k);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(l),r.\u0275\u0275inject(A,8))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=n&&(r._baseHref=n),r}return _(t,e),C(t,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=b(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}])}(k);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(l),r.\u0275\u0275inject(A,8))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),I=function(){var e=function(){function e(t,n){var i=this;E(this,e),this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=w(M(o)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return C(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+x(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,M(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;
1this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(k),r.\u0275\u0275inject(l))},e.normalizeQueryParams=x,e.joinWithSlash=b,e.stripTrailingSlash=w,e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:T,token:e,providedIn:"root"}),e}();function T(){return new I((0,r.\u0275\u0275inject)(k),(0,r.\u0275\u0275inject)(l))}function M(e){return e.replace(/\/index.html$/,"")}var P={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]},R=((R=R||{})[R.Decimal=0]="Decimal",R[R.Percent=1]="Percent",R[R.Currency=2]="Currency",R[R.Scientific=3]="Scientific",R),F=((F=F||{})[F.Zero=0]="Zero",F[F.One=1]="One",F[F.Two=2]="Two",F[F.Few=3]="Few",F[F.Many=4]="Many",F[F.Other=5]="Other",F),N=((N=N||{})[N.Format=0]="Format",N[N.Standalone=1]="Standalone",N),j=((j=j||{})[j.Narrow=0]="Narrow",j[j.Abbreviated=1]="Abbreviated",j[j.Wide=2]="Wide",j[j.Short=3]="Short",j),L=((L=L||{})[L.Short=0]="Short",L[L.Medium=1]="Medium",L[L.Long=2]="Long",L[L.Full=3]="Full",L),B=((B=B||{})[B.Decimal=0]="Decimal",B[B.Group=1]="Group",B[B.List=2]="List",B[B.PercentSign=3]="PercentSign",B[B.PlusSign=4]="PlusSign",B[B.MinusSign=5]="MinusSign",B[B.Exponential=6]="Exponential",B[B.SuperscriptingExponent=7]="SuperscriptingExponent",B[B.PerMille=8]="PerMille",B[B.Infinity=9]="Infinity",B[B.NaN=10]="NaN",B[B.TimeSeparator=11]="TimeSeparator",B[B.CurrencyDecimal=12]="CurrencyDecimal",B[B.CurrencyGroup=13]="CurrencyGroup",B);function V(e,t){return K((0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.DateFormat],t)}function W(e,t){return K((0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.TimeFormat],t)}function U(e,t){return K((0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.DateTimeFormat],t)}function z(e,t){var n=(0,r.\u0275findLocaleData)(e),i=n[r.\u0275LocaleDataIndex.NumberSymbols][t];if(void 0===i){if(t===B.CurrencyDecimal)return n[r.\u0275LocaleDataIndex.NumberSymbols][B.Decimal];if(t===B.CurrencyGroup)return n[r.\u0275LocaleDataIndex.NumberSymbols][B.Group]}return i}function q(e,t){return(0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.NumberFormats][t]}var H=r.\u0275getLocalePluralCase;function G(e){if(!e[r.\u0275LocaleDataIndex.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[r.\u0275LocaleDataIndex.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function K(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Y(e){var t=h(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var $=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Z={},Q=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{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]*)/,X=((X=X||{})[X.Short=0]="Short",X[X.ShortGMT=1]="ShortGMT",X[X.Long=2]="Long",X[X.Extended=3]="Extended",X),J=((J=J||{})[J.FullYear=0]="FullYear",J[J.Month=1]="Month",J[J.Date=2]="Date",J[J.Hours=3]="Hours",J[J.Minutes=4]="Minutes",J[J.Seconds=5]="Seconds",J[J.FractionalSeconds=6]="FractionalSeconds",J[J.Day=7]="Day",J),ee=((ee=ee||{})[ee.DayPeriods=0]="DayPeriods",ee[ee.Days=1]="Days",ee[ee.Months=2]="Months",ee[ee.Eras=3]="Eras",ee);function te(e,t,n,r){var i=function(e){if(pe(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=e.split("-").map(function(e){return+e}),n=h(t,3),r=n[0],i=n[1],o=void 0===i?1:i,a=n[2];return ne(r,o-1,void 0===a?1:a)}var u,s=parseFloat(e);
vendor: 17,084 bytes, line 1
1if(!isNaN(e-s))return new Date(s);if(u=e.match($))return function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,u=Number(e[5]||0)-r,s=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,u,s,c),t}(u)}var c=new Date(e);if(!pe(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);t=re(n,t)||t;for(var o,a=[];t;){if(!(o=Q.exec(t))){a.push(t);break}var u=(a=a.concat(o.slice(1))).pop();if(!u)break;t=u}var s=i.getTimezoneOffset();r&&(s=de(r,s),i=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(de(t,r)-r))}(i,r));var c="";return a.forEach(function(e){var t=function(e){if(he[e])return he[e];var t;switch(e){case"G":case"GG":case"GGG":t=ue(ee.Eras,j.Abbreviated);break;case"GGGG":t=ue(ee.Eras,j.Wide);break;case"GGGGG":t=ue(ee.Eras,j.Narrow);break;case"y":t=ae(J.FullYear,1,0,!1,!0);break;case"yy":t=ae(J.FullYear,2,0,!0,!0);break;case"yyy":t=ae(J.FullYear,3,0,!1,!0);break;case"yyyy":t=ae(J.FullYear,4,0,!1,!0);break;case"Y":t=fe(1);break;case"YY":t=fe(2,!0);break;case"YYY":t=fe(3);break;case"YYYY":t=fe(4);break;case"M":case"L":t=ae(J.Month,1,1);break;case"MM":case"LL":t=ae(J.Month,2,1);break;case"MMM":t=ue(ee.Months,j.Abbreviated);break;case"MMMM":t=ue(ee.Months,j.Wide);break;case"MMMMM":t=ue(ee.Months,j.Narrow);break;case"LLL":t=ue(ee.Months,j.Abbreviated,N.Standalone);break;case"LLLL":t=ue(ee.Months,j.Wide,N.Standalone);break;case"LLLLL":t=ue(ee.Months,j.Narrow,N.Standalone);break;case"w":t=le(1);break;case"ww":t=le(2);break;case"W":t=le(1,!0);break;case"d":t=ae(J.Date,1);break;case"dd":t=ae(J.Date,2);break;case"c":case"cc":t=ae(J.Day,1);break;case"ccc":t=ue(ee.Days,j.Abbreviated,N.Standalone);break;case"cccc":t=ue(ee.Days,j.Wide,N.Standalone);break;case"ccccc":t=ue(ee.Days,j.Narrow,N.Standalone);break;case"cccccc":t=ue(ee.Days,j.Short,N.Standalone);break;case"E":case"EE":case"EEE":t=ue(ee.Days,j.Abbreviated);break;case"EEEE":t=ue(ee.Days,j.Wide);break;case"EEEEE":t=ue(ee.Days,j.Narrow);break;case"EEEEEE":t=ue(ee.Days,j.Short);break;case"a":case"aa":case"aaa":t=ue(ee.DayPeriods,j.Abbreviated);break;case"aaaa":t=ue(ee.DayPeriods,j.Wide);break;case"aaaaa":t=ue(ee.DayPeriods,j.Narrow);break;case"b":case"bb":case"bbb":t=ue(ee.DayPeriods,j.Abbreviated,N.Standalone,!0);break;case"bbbb":t=ue(ee.DayPeriods,j.Wide,N.Standalone,!0);break;case"bbbbb":t=ue(ee.DayPeriods,j.Narrow,N.Standalone,!0);break;case"B":case"BB":case"BBB":t=ue(ee.DayPeriods,j.Abbreviated,N.Format,!0);break;case"BBBB":t=ue(ee.DayPeriods,j.Wide,N.Format,!0);break;case"BBBBB":t=ue(ee.DayPeriods,j.Narrow,N.Format,!0);break;case"h":t=ae(J.Hours,1,-12);break;case"hh":t=ae(J.Hours,2,-12);break;case"H":t=ae(J.Hours,1);break;case"HH":t=ae(J.Hours,2);break;case"m":t=ae(J.Minutes,1);break;case"mm":t=ae(J.Minutes,2);break;case"s":t=ae(J.Seconds,1);break;case"ss":t=ae(J.Seconds,2);break;case"S":t=ae(J.FractionalSeconds,1);break;case"SS":t=ae(J.FractionalSeconds,2);break;case"SSS":t=ae(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=se(X.Short);break;case"ZZZZZ":t=se(X.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=se(X.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=se(X.Long);break;default:return null}return he[e]=t,t}(e);c+=t?t(i,n,s):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ne(e,t,n){var r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function re(e,t){var n=function(e){return(0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.LocaleId]}(e);if(Z[n]=Z[n]||{},Z[n][t])return Z[n][t];var i="";switch(t){case"shortDate":i=V(e,L.Short);break;case"mediumDate":i=V(e,L.Medium);break;case"longDate":i=V(e,L.Long);break;case"fullDate":i=V(e,L.Full);break;case"shortTime":i=W(e,L.Short);break;case"mediumTime":i=W(e,L.Medium);break;case"longTime":i=W(e,L.Long);break;case"fullTime":i=W(e,L.Full);break;case"short":var o=re(e,"shortTime"),a=re(e,"shortDate");i=ie(U(e,L.Short),[o,a]);break;case"medium":var u=re(e,"mediumTime"),s=re(e,"mediumDate");i=ie(U(e,L.Medium),[u,s]);break;case"long":var c=re(e,"longTime"),l=re(e,"longDate");i=ie(U(e,L.Long),[c,l]);break;case"full":var f=re(e,"fullTime"),h=re(e,"fullDate");i=ie(U(e,L.Full),[f,h])}return i&&(Z[n][t]=i),i}function ie(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return r&&(a=a.substr(a.length-t)),o+a}function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var u=function(e,t){switch(e){case J.FullYear:return t.getFullYear();case J.Month:return t.getMonth();case J.Date:return t.getDate();case J.Hours:return t.getHours();case J.Minutes:return t.getMinutes();case J.Seconds:return t.getSeconds();case J.FractionalSeconds:return t.getMilliseconds();case J.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||u>-n)&&(u+=n),e===J.Hours)0===u&&-12===n&&(u=12);else if(e===J.FractionalSeconds)return function(e,t){return oe(e,3).substr(0,t)}(u,t);var s=z(a,B.MinusSign);return oe(u,t,s,r,i)}}function ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,t,n,i,o,a){switch(n){case ee.Months:return function(e,t,n){var i=(0,r.\u0275findLocaleData)(e),o=K([i[r.\u0275LocaleDataIndex.MonthsFormat],i[r.\u0275LocaleDataIndex.MonthsStandalone]],t);return K(o,n)}(t,o,i)[e.getMonth()];case ee.Days:return function(e,t,n){var i=(0,r.\u0275findLocaleData)(e),o=K([i[r.\u0275LocaleDataIndex.DaysFormat],i[r.\u0275LocaleDataIndex.DaysStandalone]],t);return K(o,n)}(t,o,i)[e.getDay()];case ee.DayPeriods:var u=e.getHours(),s=e.getMinutes();if(a){var c=function(e){var t=(0,r.\u0275findLocaleData)(e);return G(t),(t[r.\u0275LocaleDataIndex.ExtraData][2]||[]).map(function(e){return"string"==typeof e?Y(e):[Y(e[0]),Y(e[1])]})}(t),l=function(e,t,n){var i=(0,r.\u0275findLocaleData)(e);G(i);var o=K([i[r.\u0275LocaleDataIndex.ExtraData][0],i[r.\u0275LocaleDataIndex.ExtraData][1]],t)||[];return K(o,n)||[]}(t,o,i),f=c.findIndex(function(e){if(Array.isArray(e)){var t=h(e,2),n=t[0],r=t[1],i=u>=n.hours&&s>=n.minutes,o=u<r.hours||u===r.hours&&s<r.minutes;if(n.hours<r.hours){if(i&&o)return!0}else if(i||o)return!0}else if(e.hours===u&&e.minutes===s)return!0;return!1});if(-1!==f)return l[f]}return function(e,t,n){var i=(0,r.\u0275findLocaleData)(e),o=K([i[r.\u0275LocaleDataIndex.DayPeriodsFormat],i[r.\u0275LocaleDataIndex.DayPeriodsStandalone]],t);return K(o,n)}(t,o,i)[u<12?0:1];case ee.Eras:return function(e,t){return K((0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(o,a,e,t,n,i)}}function se(e){return function(t,n,r){var i=-1*r,o=z(n,B.MinusSign),a=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case X.Short:return(i>=0?"+":"")+oe(a,2,o)+oe(Math.abs(i%60),2,o);case X.ShortGMT:return"GMT"+(i>=0?"+":"")+oe(a,1,o);case X.Long:return"GMT"+(i>=0?"+":"")+oe(a,2,o)+":"+oe(Math.abs(i%60),2,o);case X.Extended:return 0===r?"Z":(i>=0?"+":"")+oe(a,2,o)+":"+oe(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function ce(e){return ne(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i;if(t){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();i=1+Math.floor((a+o)/7)}else{var u=ce(n),s=function(e){var t=ne(e,0,1).getDay();return ne(e,0,1+(t<=4?4:11)-t)}(u.getFullYear()),c=u.getTime()-s.getTime();i=1+Math.round(c/6048e5)}return oe(i,e,z(r,B.MinusSign))}}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return oe(ce(n).getFullYear(),e,z(r,B.MinusSign),t)}}var he={};function de(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function pe(e){return e instanceof Date&&!isNaN(e.valueOf())}var ve=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ye(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u="",s=!1;if(isFinite(e)){var c=function(e){var t,n,r,i,o,a=Math.abs(e)+"",u=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);a&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var l=t.minInt,f=t.minFrac,h=t.maxFrac;if(o){var d=o.match(ve);if(null===d)throw new Error("".concat(o," is not a valid digit info"));var p=d[1],v=d[3],y=d[5];null!=p&&(l=ge(p)),null!=v&&(f=ge(v)),null!=y?h=ge(y):null!=v&&f>h&&(h=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s<r.length;s++)r[s]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,a=o+1),r[0]=0;for(var c=1;c<a;c++)r[c]=0}if(u>=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i<Math.max(0,o);i++)r.push(0);var f=0!==o,h=t+e.integerLen,d=r.reduceRight(function(e,t,n,r){return r[n]=(t+=e)<10?t:t-10,f&&(0===r[n]&&n>=h?r.pop():f=!1),t>=10?1:0},0);d&&(r.unshift(d),e.integerLen++)}(c,f,h);var m=c.digits,g=c.integerLen,b=c.exponent,w=[];for(s=m.every(function(e){return!e});g<l;g++)m.unshift(0);for(;g<0;g++)m.unshift(0);g>0?w=m.splice(g,m.length):(w=m,m=[0]);var _=[];for(m.length>=t.lgSize&&_.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)_.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&_.unshift(m.join("")),u=_.join(z(n,r)),w.length&&(u+=z(n,i)+w.join("")),b&&(u+=z(n,B.Exponential)+"+"+b)}else u=z(n,B.Infinity);return u=e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var c=0;c<s.length;c++){var l=s.charAt(c);"0"===l?n.minFrac=n.maxFrac=c+1:"#"===l?n.maxFrac=c+1:n.posSuf+=l}var f=u.split(",");if(n.gSize=f[1]?f[1].length:0,n.lgSize=f[2]||f[1]?(f[2]||f[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf("#");n.negPre=o.substr(0,d).replace(/'/g,""),n.negSuf=o.substr(d+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function ge(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var be=C(function e(){E(this,e)}),we=function(){var e=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).locale=e,n}return _(t,e),C(t,[{key:"getPluralCategory",value:function(e,t){switch(H(t||this.locale)(e)){case F.Zero:return"zero";case F.One:return"one";case F.Two:return"two";case F.Few:return"few";case F.Many:return"many";default:return"other"}}}])}(be);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(r.LOCALE_ID))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}();function _e(e,t){t=encodeURIComponent(t);var n,r=f(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=h(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),u=a[0],s=a[1];if(u.trim()===t)return decodeURIComponent(s)}}catch(c){r.e(c)}finally{r.f()}return null}var xe=function(){var e=function(){return C(function e(t,n,r,i){E(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null},[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,r.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,r.\u0275stringify)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.IterableDiffers),r.\u0275\u0275directiveInject(r.KeyValueDiffers),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.Renderer2))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ke=function(){return C(function e(t,n,r,i){E(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i},[{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}}])}(),Ce=function(){var e=function(){return C(function e(t,n,r){E(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null},[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ke(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new Se(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=t._viewContainer.get(r);t._viewContainer.move(u,i);var s=new Se(e,u);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);
1a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(r.IterableDiffers))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),Se=C(function e(t,n){E(this,e),this.record=t,this.view=n}),Ee=function(){var e=function(){return C(function e(t,n){E(this,e),this._viewContainer=t,this._context=new Ae,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n},[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Oe("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Oe("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.TemplateRef))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),Ae=C(function e(){E(this,e),this.$implicit=null,this.ngIf=null});function Oe(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat((0,r.\u0275stringify)(t),"'."))}var De=function(){return C(function e(t,n){E(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1},[{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(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}])}(),Ie=function(){var e=function(){return C(function e(){E(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1},[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Te=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.ngSwitch=r,r._addCase(),this._view=new De(t,n)},[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(Ie,9))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Me=function(){var e=function(){return C(function e(t,n,r){E(this,e),this._ngEl=t,this._differs=n,this._renderer=r,this._ngStyle=null,this._differ=null},[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=h(e.split("."),2),r=n[0],i=n[1];null!=(t=null!=t&&i?"".concat(t).concat(i):t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.KeyValueDiffers),r.\u0275\u0275directiveInject(r.Renderer2))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),e}(),Pe=function(){var e=function(){return C(function e(t){E(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null},[{key:"ngOnChanges",value:function(e){if(e.ngTemplateOutlet){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ViewContainerRef))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.\u0275\u0275NgOnChangesFeature]}),e}();function Re(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat((0,r.\u0275stringify)(e),"'"))}var Fe=function(){return C(function e(){E(this,e)},[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}])}(),Ne=new(function(){return C(function e(){E(this,e)},[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}])}()),je=new Fe,Le=function(){var e=function(){function e(t){E(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return C(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if((0,r.\u0275isPromise)(t))return Ne;if((0,r.\u0275isSubscribable)(t))return je;throw Re(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.ChangeDetectorRef,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"async",type:e,pure:!1}),e}(),Be=function(){var e=function(){function e(){E(this,e)}return C(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Re(e,t);return t.toLowerCase()}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.\u0275\u0275definePipe({name:"lowercase",type:e,pure:!0}),e}(),Ve=/(?:[0-9A-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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
10EB3\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\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-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\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-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\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\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\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]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\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-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,We=function(){var e=function(){function e(){E(this,e)}return C(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Re(e,t);return t.replace(Ve,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.\u0275\u0275definePipe({name:"titlecase",type:e,pure:!0}),e}(),Ue=function(){var e=function(){function e(){E(this,e)}return C(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Re(e,t);return t.toUpperCase()}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.\u0275\u0275definePipe({name:"uppercase",type:e,pure:!0}),e}(),ze=function(){var e=function(){function e(t){E(this,e),this.locale=t}return C(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return te(t,n,i||this.locale,r)}catch(o){throw Re(e,o.message)}}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.LOCALE_ID,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"date",type:e,pure:!0}),e}(),qe=function(){var e=function(){return C(function e(t){E(this,e),this.differs=t,this.keyValues=[],this.compareFn=He},[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e),i=n!==this.compareFn;
1return r&&(this.keyValues=[],r.forEachItem(function(e){t.keyValues.push(function(e,t){return{key:e,value:t}}(e.key,e.currentValue))})),(r||i)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.KeyValueDiffers,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"keyvalue",type:e,pure:!1}),e}();function He(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;var i=String(n),o=String(r);return i==o?0:i<o?-1:1}var Ge=function(){var e=function(){function e(t){E(this,e),this._locale=t}return C(e,[{key:"transform",value:function(t,n,r){if(!$e(t))return null;r=r||this._locale;try{return function(e,t,n){return ye(e,me(q(t,R.Decimal),z(t,B.MinusSign)),t,B.Group,B.Decimal,n)}(Ze(t),r,n)}catch(i){throw Re(e,i.message)}}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.LOCALE_ID,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"number",type:e,pure:!0}),e}(),Ke=function(){var e=function(){function e(t){E(this,e),this._locale=t}return C(e,[{key:"transform",value:function(t,n,r){if(!$e(t))return null;r=r||this._locale;try{return function(e,t,n){return ye(e,me(q(t,R.Percent),z(t,B.MinusSign)),t,B.Group,B.Decimal,n,!0).replace(new RegExp("%","g"),z(t,B.PercentSign))}(Ze(t),r,n)}catch(i){throw Re(e,i.message)}}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.LOCALE_ID,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"percent",type:e,pure:!0}),e}(),Ye=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";E(this,e),this._locale=t,this._defaultCurrencyCode=n}return C(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(!$e(t))return null;a=a||this._locale,"boolean"==typeof i&&(i=i?"symbol":"code");var u=n||this._defaultCurrencyCode;"code"!==i&&(u="symbol"===i||"symbol-narrow"===i?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=function(e){return(0,r.\u0275findLocaleData)(e)[r.\u0275LocaleDataIndex.Currencies]}(n)[e]||P[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}(u,"symbol"===i?"wide":"narrow",a):i);try{return function(e,t,n,r,i){var o=me(q(t,R.Currency),z(t,B.MinusSign));return o.minFrac=function(e){var t,n=P[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,ye(e,o,t,B.CurrencyGroup,B.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Ze(t),a,u,n,o)}catch(s){throw Re(e,s.message)}}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(r.LOCALE_ID,16),r.\u0275\u0275directiveInject(r.DEFAULT_CURRENCY_CODE,16))},e.\u0275pipe=r.\u0275\u0275definePipe({name:"currency",type:e,pure:!0}),e}();function $e(e){return!(null==e||""===e||e!=e)}function Ze(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var Qe=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=r.\u0275\u0275defineInjector({providers:[{provide:be,useClass:we}]}),e}(),Xe="browser";function Je(e){return e===Xe}var et=function(){var e=C(function e(){E(this,e)});return e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({token:e,providedIn:"root",factory:function(){return new tt((0,r.\u0275\u0275inject)(c),window)}}),e}(),tt=function(){return C(function e(t,n){E(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}},[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;i;){var o=i.shadowRoot;if(o){var a=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(a)return a}i=r.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=nt(this.window.history)||nt(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}])}();function nt(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var rt=C(function e(){E(this,e)})},24521:function(e,t,n){"use strict";n.d(t,{TP:function(){return B},eN:function(){return j},JF:function(){return Z},dt:function(){return I},LE:function(){return x}});var r=n(92674),i=n(62415),o=n(13486),a=n(38135),u=n(23021),s=n(86243),l=n(39417),f=C(function e(){E(this,e)}),d=C(function e(){E(this,e)}),p=function(){function e(t){var n=this;E(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return C(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;
1e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,c(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}])}(),v=function(){return C(function e(){E(this,e)},[{key:"encodeKey",value:function(e){return b(e)}},{key:"encodeValue",value:function(e){return b(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}])}(),y=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function b(e){return encodeURIComponent(e).replace(y,function(e,t){var n;return null!==(n=g[t])&&void 0!==n?n:e})}function w(e){return"".concat(e)}var x=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(E(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new v,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var r=e.indexOf("="),i=h(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],a=i[1],u=n.get(o)||[];u.push(a),n.set(o,u)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}return C(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(w(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(w(t.value));-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}])}(),k=function(){return C(function e(){E(this,e),this.map=new Map},[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}}
1,{key:"keys",value:function(){return this.map.keys()}}])}();function S(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function A(e){return"undefined"!=typeof Blob&&e instanceof Blob}function O(e){return"undefined"!=typeof FormData&&e instanceof FormData}var D=function(){function e(t,n,r,i){var o;if(E(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new p),this.context||(this.context=new k),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u<n.length-1?"&":"")+a}}else this.params=new x,this.urlWithParams=n}return C(e,[{key:"serializeBody",value:function(){return null===this.body?null:S(this.body)||A(this.body)||O(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof x?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||O(this.body)?null:A(this.body)?this.body.type||null:S(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof x?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,u=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,s=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,f=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(r,i,a,{params:l,headers:c,context:f,reportProgress:s,responseType:o,withCredentials:u})}}])}(),I=((I=I||{})[I.Sent=0]="Sent",I[I.UploadProgress=1]="UploadProgress",I[I.ResponseHeader=2]="ResponseHeader",I[I.DownloadProgress=3]="DownloadProgress",I[I.Response=4]="Response",I[I.User=5]="User",I),T=C(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";E(this,e),this.headers=t.headers||new p,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),M=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,t),(e=m(this,t,[n])).type=I.ResponseHeader,e}return _(t,e),C(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(T),P=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,t),(e=m(this,t,[n])).type=I.Response,e.body=void 0!==n.body?n.body:null,e}return _(t,e),C(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}])}(T),R=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e,0,"Unknown Error"])).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return _(t,e),C(t)}(T);function F(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var N,j=(N=function(){return C(function e(t){E(this,e),this.handler=t},[{key:"request",value:function(e,t){var n,r,i,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof D?n=e:(r=c.headers instanceof p?c.headers:new p(c.headers),c.params&&(i=c.params instanceof x?c.params:new x({fromObject:c.params})),n=new D(e,t,void 0!==c.body?c.body:null,{headers:r,context:c.context,params:i,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var f=(0,o.of)(n).pipe((0,u.b)(function(e){return a.handler.handle(e)}));if(e instanceof D||"events"===c.observe)return f;var h=f.pipe((0,s.h)(function(e){return e instanceof P}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return h.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return h.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return h.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return h.pipe((0,l.U)(function(e){return e.body}))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new x).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,F(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,F(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,F(n,t))}}])}(),N.\u0275fac=function(e){return new(e||N)(i.\u0275\u0275inject(f))},N.\u0275prov=i.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac}),N),L=function(){return C(function e(t,n){E(this,e),this.next=t,this.interceptor=n},[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}])}(),B=new i.InjectionToken("HTTP_INTERCEPTORS"),V=function(){var e=function(){return C(function e(){E(this,e)},[{key:"intercept",value:function(e,t){return t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),W=/^\)\]\}',?\n/,U=function(){var e=function(){return C(function e(t){E(this,e),this.xhrFactory=t},[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEac
vendor: 4,944 bytes, line 1
1h(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),u=null,s=function(){if(null!==u)return u;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new p(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return u=new M({headers:i,status:t,statusText:n,url:o})},c=function(){var t=s(),i=t.headers,o=t.status,a=t.statusText,u=t.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var f=c;c=c.replace(W,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=f,l&&(l=!1,c={error:h,text:c})}}l?(n.next(new P({body:c,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new R({error:c,headers:i,status:o,statusText:a,url:u||void 0}))},l=function(e){var t=s().url,i=new R({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},f=!1,h=function(t){f||(n.next(s()),f=!0);var i={type:I.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&!!r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:I.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:I.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275inject(r.JF))},e.\u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),z=new i.InjectionToken("XSRF_COOKIE_NAME"),q=new i.InjectionToken("XSRF_HEADER_NAME"),H=C(function e(){E(this,e)}),G=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0},[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275inject(r.K0),i.\u0275\u0275inject(i.PLATFORM_ID),i.\u0275\u0275inject(z))},e.\u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),K=function(){var e=function(){return C(function e(t,n){E(this,e),this.tokenService=t,this.headerName=n},[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275inject(H),i.\u0275\u0275inject(q))},e.\u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Y=function(){var e=function(){return C(function e(t,n){E(this,e),this.backend=t,this.injector=n,this.chain=null},[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(B,[]);this.chain=t.reduceRight(function(e,t){return new L(e,t)},this.backend)}return this.chain.handle(e)}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275inject(d),i.\u0275\u0275inject(i.Injector))},e.\u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),$=function(){var e=function(){function e(){E(this,e)}return C(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:K,useClass:V}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:z,useValue:t.cookieName}:[],t.headerName?{provide:q,useValue:t.headerName}:[]]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({providers:[K,{provide:B,useExisting:K,multi:!0},{provide:H,useClass:G},{provide:z,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}
1]}),e}(),Z=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({providers:[j,{provide:f,useClass:Y},U,{provide:d,useExisting:U}],imports:[[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},62415:function(e,t,n){"use strict";n.r(t),n.d(t,{ANALYZE_FOR_ENTRY_COMPONENTS:function(){return qn},APP_BOOTSTRAP_LISTENER:function(){return vg},APP_ID:function(){return cg},APP_INITIALIZER:function(){return ug},ApplicationInitStatus:function(){return sg},ApplicationModule:function(){return nw},ApplicationRef:function(){return pb},Attribute:function(){return Un},COMPILER_OPTIONS:function(){return Fg},CUSTOM_ELEMENTS_SCHEMA:function(){return ra},ChangeDetectionStrategy:function(){return Y},ChangeDetectorRef:function(){return Kd},Compiler:function(){return Rg},CompilerFactory:function(){return Ng},Component:function(){return Gm},ComponentFactory:function(){return ad},ComponentFactoryResolver:function(){return ld},ComponentRef:function(){return od},ContentChild:function(){return Kn},ContentChildren:function(){return Gn},DEFAULT_CURRENCY_CODE:function(){return bg},DebugElement:function(){return $b},DebugEventListener:function(){return Ab},DebugNode:function(){return Yb},DefaultIterableDiffer:function(){return Id},Directive:function(){return Hm},ElementRef:function(){return gd},EmbeddedViewRef:function(){return Eb},ErrorHandler:function(){return na},EventEmitter:function(){return Hy},Host:function(){return Nr},HostBinding:function(){return Zm},HostListener:function(){return Qm},INJECTOR:function(){return Mu},Inject:function(){return Mr},InjectFlags:function(){return z},Injectable:function(){return fc},InjectionToken:function(){return zn},Injector:function(){return $u},Input:function(){return Ym},IterableDiffers:function(){return Bd},KeyValueDiffers:function(){return Wd},LOCALE_ID:function(){return gg},MissingTranslationStrategy:function(){return xg},ModuleWithComponentFactories:function(){return Sg},NO_ERRORS_SCHEMA:function(){return ia},NgModule:function(){return ig},NgModuleFactory:function(){return op},NgModuleFactoryLoader:function(){return yb},NgModuleRef:function(){return ip},NgProbeToken:function(){return ab},NgZone:function(){return Bg},Optional:function(){return Pr},Output:function(){return $m},PACKAGE_ROOT_URL:function(){return yg},PLATFORM_ID:function(){return pg},PLATFORM_INITIALIZER:function(){return dg},Pipe:function(){return Km},PlatformRef:function(){return hb},Query:function(){return Hn},QueryList:function(){return Ky},ReflectiveInjector:function(){return Rc},ReflectiveKey:function(){return bc},Renderer2:function(){return _d},RendererFactory2:function(){return wd},RendererStyleFlags2:function(){return Kr},ResolvedReflectiveFactory:function(){return Sc},Sanitizer:function(){return Sd},SecurityContext:function(){return Bo},Self:function(){return Rr},SimpleChange:function(){return Re},SkipSelf:function(){return Fr},SystemJsNgModuleLoader:function(){return kb},SystemJsNgModuleLoaderConfig:function(){return _b},TRANSLATIONS:function(){return wg},TRANSLATIONS_FORMAT:function(){return _g},TemplateRef:function(){return ep},Testability:function(){return Gg},TestabilityRegistry:function(){return Kg},Type:function(){return Xn},VERSION:function(){return Ad},Version:function(){return Ed},ViewChild:function(){return $n},ViewChildren:function(){return Yn},ViewContainerRef:function(){return sp},ViewEncapsulation:function(){return Q},ViewRef:function(){return Sb},WrappedValue:function(){return Is},asNativeElements:function(){return Ib},assertPlatform:function(){return cb},createPlatform:function(){return ub},createPlatformFactory:function(){return sb},defineInjectable:function(){return P},destroyPlatform:function(){return lb},enableProdMode:function(){return Jg},forwardRef:function(){return x},getDebugNode:function(){return qb},getModuleFactory:function(){return bb},getPlatform:function(){return fb},inject:function(){return Er},isDevMode:function(){return Xg},platformCore:function(){return Zb},resolveForwardRef:function(){return k},setTestabilityGetter:function(){return Yg},"\u02750":function(){return Tr},"\u0275ALLOW_MULTIPLE_PLATFORMS":function(){return ob},"\u0275APP_ID_RANDOM_PROVIDER":function(){return fg},"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__":function(){return Wn},"\u0275ChangeDetectorStatus":function(){return $},"\u0275CodegenComponentFactoryResolver":function(){return fd},"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__":function(){return Mg},"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__":function(){return Ig},"\u0275Compiler_compileModuleAsync__POST_R3__":function(){return Og},"\u0275Compiler_compileModuleSync__POST_R3__":function(){return Eg},"\u0275ComponentFactory":function(){return ad},"\u0275Console":function(){return mg},"\u0275DEFAULT_LOCALE_ID":function(){return Wf},"\u0275EMPTY_ARRAY":function(){return re},"\u0275EMPTY_MAP":function(){return cv},"\u0275INJECTOR_IMPL__POST_R3__":function(){return Gu},"\u0275INJECTOR_SCOPE":function(){return Ru},"\u0275LifecycleHooksFeature":function(){return ys},"\u0275LocaleDataIndex":function(){return Bf},"\u0275NG_COMP_DEF":function(){return ie},"\u0275NG_DIR_DEF":function(){return oe},"\u0275NG_ELEMENT_ID":function(){return le},"\u0275NG_INJ_DEF":function(){return V},"\u0275NG_MOD_DEF":function(){return ue},"\u0275NG_PIPE_DEF":function(){return ae},"\u0275NG_PROV_DEF":function(){return B},"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR":function(){return ey}
1,"\u0275NO_CHANGE":function(){return Sa},"\u0275NgModuleFactory":function(){return by},"\u0275NoopNgZone":function(){return Hg},"\u0275ReflectionCapabilities":function(){return hr},"\u0275Render3ComponentFactory":function(){return ly},"\u0275Render3ComponentRef":function(){return fy},"\u0275Render3NgModuleRef":function(){return gy},"\u0275RuntimeError":function(){return A},"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__":function(){return Hd},"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__":function(){return Xm},"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__":function(){return Jm},"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__":function(){return hc},"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__":function(){return og},"\u0275SWITCH_COMPILE_PIPE__POST_R3__":function(){return eg},"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__":function(){return yd},"\u0275SWITCH_IVY_ENABLED__POST_R3__":function(){return kg},"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__":function(){return xd},"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__":function(){return Xd},"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__":function(){return ap},"\u0275_sanitizeHtml":function(){return jo},"\u0275_sanitizeUrl":function(){return wo},"\u0275allowSanitizationBypassAndThrow":function(){return uo},"\u0275and":function(){return rw},"\u0275angular_packages_core_core_a":function(){return S},"\u0275angular_packages_core_core_b":function(){return kr},"\u0275angular_packages_core_core_ba":function(){return tw},"\u0275angular_packages_core_core_bb":function(){return Uf},"\u0275angular_packages_core_core_bc":function(){return Kv},"\u0275angular_packages_core_core_bd":function(){return Cp},"\u0275angular_packages_core_core_be":function(){return Ne},"\u0275angular_packages_core_core_bf":function(){return cy},"\u0275angular_packages_core_core_bg":function(){return bn},"\u0275angular_packages_core_core_bh":function(){return ht},"\u0275angular_packages_core_core_bi":function(){return kt},"\u0275angular_packages_core_core_bj":function(){return Ut},"\u0275angular_packages_core_core_bl":function(){return Ty},"\u0275angular_packages_core_core_bm":function(){return My},"\u0275angular_packages_core_core_bn":function(){return Py},"\u0275angular_packages_core_core_bo":function(){return Ry},"\u0275angular_packages_core_core_bp":function(){return Fy},"\u0275angular_packages_core_core_bq":function(){return Ko},"\u0275angular_packages_core_core_br":function(){return Vn},"\u0275angular_packages_core_core_bs":function(){return Bn},"\u0275angular_packages_core_core_bv":function(){return p},"\u0275angular_packages_core_core_bw":function(){return Pu},"\u0275angular_packages_core_core_bx":function(){return q},"\u0275angular_packages_core_core_bz":function(){return Je},"\u0275angular_packages_core_core_c":function(){return Or},"\u0275angular_packages_core_core_cb":function(){return fi},"\u0275angular_packages_core_core_cc":function(){return zh},"\u0275angular_packages_core_core_d":function(){return Fc},"\u0275angular_packages_core_core_e":function(){return xc},"\u0275angular_packages_core_core_f":function(){return Oc},"\u0275angular_packages_core_core_g":function(){return lg},"\u0275angular_packages_core_core_h":function(){return Cd},"\u0275angular_packages_core_core_i":function(){return pd},"\u0275angular_packages_core_core_j":function(){return vd},"\u0275angular_packages_core_core_k":function(){return mb},"\u0275angular_packages_core_core_l":function(){return np},"\u0275angular_packages_core_core_m":function(){return rp},"\u0275angular_packages_core_core_n":function(){return cp},"\u0275angular_packages_core_core_o":function(){return Ob},"\u0275angular_packages_core_core_p":function(){return Db},"\u0275angular_packages_core_core_q":function(){return Hb},"\u0275angular_packages_core_core_r":function(){return Yd},"\u0275angular_packages_core_core_s":function(){return Od},"\u0275angular_packages_core_core_t":function(){return Fd},"\u0275angular_packages_core_core_u":function(){return Ld},"\u0275angular_packages_core_core_v":function(){return Vd},"\u0275angular_packages_core_core_w":function(){return Qb},"\u0275angular_packages_core_core_x":function(){return Xb},"\u0275angular_packages_core_core_y":function(){return Jb},"\u0275angular_packages_core_core_z":function(){return ew},"\u0275bypassSanitizationTrustHtml":function(){return co},"\u0275bypassSanitizationTrustResourceUrl":function(){return po},"\u0275bypassSanitizationTrustScript":function(){return fo},"\u0275bypassSanitizationTrustStyle":function(){return lo},"\u0275bypassSanitizationTrustUrl":function(){return ho},"\u0275ccf":function(){return xv},"\u0275clearOverrides":function(){return M_},"\u0275clearResolutionOfComponentResourcesQueue":function(){return Hr},"\u0275cmf":function(){return P_},"\u0275compileComponent":function(){return Am},"\u0275compileDirective":function(){return Om},"\u0275compileNgModule":function(){return gm},"\u0275compileNgModuleDefs":function(){return bm}
1,"\u0275compileNgModuleFactory__POST_R3__":function(){return nb},"\u0275compilePipe":function(){return zm},"\u0275createInjector":function(){return Lu},"\u0275crt":function(){return Mp},"\u0275defaultIterableDiffers":function(){return Zd},"\u0275defaultKeyValueDiffers":function(){return Qd},"\u0275detectChanges":function(){return Du},"\u0275devModeEqual":function(){return Ds},"\u0275did":function(){return qv},"\u0275eld":function(){return iw},"\u0275findLocaleData":function(){return Rf},"\u0275flushModuleScopingQueueAsMuchAsPossible":function(){return ym},"\u0275getComponentViewDefinitionFactory":function(){return kv},"\u0275getDebugNodeR2":function(){return Gb},"\u0275getDebugNode__POST_R3__":function(){return zb},"\u0275getDirectives":function(){return ts},"\u0275getHostElement":function(){return rs},"\u0275getInjectableDef":function(){return F},"\u0275getLContext":function(){return Qr},"\u0275getLocaleCurrencyCode":function(){return Ff},"\u0275getLocalePluralCase":function(){return Nf},"\u0275getModuleFactory__POST_R3__":function(){return gb},"\u0275getSanitizationBypassType":function(){return so},"\u0275global":function(){return te},"\u0275initServicesIfNeeded":function(){return Kw},"\u0275inlineInterpolate":function(){return uv},"\u0275interpolate":function(){return av},"\u0275isBoundToModule__POST_R3__":function(){return ib},"\u0275isDefaultChangeDetectionStrategy":function(){return Z},"\u0275isListLikeIterable":function(){return Ts},"\u0275isObservable":function(){return $c},"\u0275isPromise":function(){return Kc},"\u0275isSubscribable":function(){return Yc},"\u0275ivyEnabled":function(){return Cg},"\u0275makeDecorator":function(){return jn},"\u0275markDirty":function(){return Iu},"\u0275mod":function(){return vv},"\u0275mpd":function(){return pv},"\u0275ncd":function(){return vw},"\u0275noSideEffects":function(){return K},"\u0275nov":function(){return Rv},"\u0275overrideComponentView":function(){return T_},"\u0275overrideProvider":function(){return I_},"\u0275pad":function(){return gw},"\u0275patchComponentDefWithScope":function(){return xm},"\u0275pid":function(){return Hv},"\u0275pod":function(){return bw},"\u0275ppd":function(){return mw},"\u0275prd":function(){return Gv},"\u0275publishDefaultGlobalUtils":function(){return ls},"\u0275publishGlobalUtil":function(){return fs},"\u0275qud":function(){return cw},"\u0275registerLocaleData":function(){return Pf},"\u0275registerModuleFactory":function(){return py},"\u0275registerNgModuleType":function(){return yy},"\u0275renderComponent":function(){return hs},"\u0275resetCompiledComponents":function(){return wm},"\u0275resetJitOptions":function(){return dm},"\u0275resolveComponentResources":function(){return Wr},"\u0275setClassMetadata":function(){return hy},"\u0275setCurrentInjector":function(){return xr},"\u0275setDocument":function(){return Ke},"\u0275setLocaleId":function(){return Kf},"\u0275store":function(){return oc},"\u0275stringify":function(){return y},"\u0275ted":function(){return _w},"\u0275transitiveScopesFor":function(){return km},"\u0275unregisterLocaleData":function(){return Lf},"\u0275unv":function(){return Dp},"\u0275unwrapSafeValue":function(){return ao},"\u0275vid":function(){return Cw},"\u0275whenRendered":function(){return ms},"\u0275\u0275CopyDefinitionFeature":function(){return Es},"\u0275\u0275FactoryTarget":function(){return Zn},"\u0275\u0275InheritDefinitionFeature":function(){return bs},"\u0275\u0275NgOnChangesFeature":function(){return Fe},"\u0275\u0275ProvidersFeature":function(){return id},"\u0275\u0275advance":function(){return Ea},"\u0275\u0275attribute":function(){return Bs},"\u0275\u0275attributeInterpolate1":function(){return $s},"\u0275\u0275attributeInterpolate2":function(){return Zs},"\u0275\u0275attributeInterpolate3":function(){return Qs},"\u0275\u0275attributeInterpolate4":function(){return Xs},"\u0275\u0275attributeInterpolate5":function(){return Js},"\u0275\u0275attributeInterpolate6":function(){return ec},"\u0275\u0275attributeInterpolate7":function(){return tc},"\u0275\u0275attributeInterpolate8":function(){return nc},"\u0275\u0275attributeInterpolateV":function(){return rc},"\u0275\u0275classMap":function(){return Il},"\u0275\u0275classMapInterpolate1":function(){return ef},"\u0275\u0275classMapInterpolate2":function(){return tf},"\u0275\u0275classMapInterpolate3":function(){return nf},"\u0275\u0275classMapInterpolate4":function(){return rf},"\u0275\u0275classMapInterpolate5":function(){return of},"\u0275\u0275classMapInterpolate6":function(){return af},"\u0275\u0275classMapInterpolate7":function(){return uf},"\u0275\u0275classMapInterpolate8":function(){return sf},"\u0275\u0275classMapInterpolateV":function(){return cf},"\u0275\u0275classProp":function(){return Al},"\u0275\u0275contentQuery":function(){return om},"\u0275\u0275defineComponent":function(){return he},"\u0275\u0275defineDirective":function(){return we},"\u0275\u0275defineInjectable":function(){return M},"\u0275\u0275defineInjector":function(){return R},"\u0275\u0275defineNgModule":function(){return me},"\u0275\u0275definePipe":function(){return _e},"\u0275\u0275directiveInject":function(){return Nc},"\u0275\u0275disableBindings":function(){return ft},"\u0275\u0275element":function(){return Uc},"\u0275\u0275elementContainer":function(){return Hc},"\u0275\u0275elementContainerEnd":function(){return qc},"\u0275\u0275elementContainerStart":function(){return zc},"\u0275\u0275elementEnd":function(){return Wc},"\u0275\u0275elementStart":function(){return Vc},"\u0275\u0275enableBindings":function(){return lt},"\u0275\u0275getCurrentView":function(){return Gc}
vendor: 6,445 bytes, line 1
1,"\u0275\u0275getInheritedFactory":function(){return Tn},"\u0275\u0275hostProperty":function(){return Of},"\u0275\u0275i18n":function(){return Gh},"\u0275\u0275i18nApply":function(){return $h},"\u0275\u0275i18nAttributes":function(){return Kh},"\u0275\u0275i18nEnd":function(){return Hh},"\u0275\u0275i18nExp":function(){return Yh},"\u0275\u0275i18nPostprocess":function(){return Zh},"\u0275\u0275i18nStart":function(){return qh},"\u0275\u0275inject":function(){return Cr},"\u0275\u0275injectAttribute":function(){return Pn},"\u0275\u0275invalidFactory":function(){return jc},"\u0275\u0275invalidFactoryDep":function(){return Sr},"\u0275\u0275listener":function(){return Zc},"\u0275\u0275loadQuery":function(){return am},"\u0275\u0275namespaceHTML":function(){return Yt},"\u0275\u0275namespaceMathML":function(){return Kt},"\u0275\u0275namespaceSVG":function(){return Gt},"\u0275\u0275nextContext":function(){return tl},"\u0275\u0275ngDeclareClassMetadata":function(){return N_},"\u0275\u0275ngDeclareComponent":function(){return j_},"\u0275\u0275ngDeclareDirective":function(){return F_},"\u0275\u0275ngDeclareFactory":function(){return L_},"\u0275\u0275ngDeclareInjectable":function(){return B_},"\u0275\u0275ngDeclareInjector":function(){return V_},"\u0275\u0275ngDeclareNgModule":function(){return W_},"\u0275\u0275ngDeclarePipe":function(){return U_},"\u0275\u0275pipe":function(){return Ny},"\u0275\u0275pipeBind1":function(){return jy},"\u0275\u0275pipeBind2":function(){return Ly},"\u0275\u0275pipeBind3":function(){return By},"\u0275\u0275pipeBind4":function(){return Vy},"\u0275\u0275pipeBindV":function(){return Wy},"\u0275\u0275projection":function(){return il},"\u0275\u0275projectionDef":function(){return rl},"\u0275\u0275property":function(){return Lc},"\u0275\u0275propertyInterpolate":function(){return ol},"\u0275\u0275propertyInterpolate1":function(){return al},"\u0275\u0275propertyInterpolate2":function(){return ul},"\u0275\u0275propertyInterpolate3":function(){return sl},"\u0275\u0275propertyInterpolate4":function(){return cl},"\u0275\u0275propertyInterpolate5":function(){return ll},"\u0275\u0275propertyInterpolate6":function(){return fl},"\u0275\u0275propertyInterpolate7":function(){return hl},"\u0275\u0275propertyInterpolate8":function(){return dl},"\u0275\u0275propertyInterpolateV":function(){return pl},"\u0275\u0275pureFunction0":function(){return wy},"\u0275\u0275pureFunction1":function(){return _y},"\u0275\u0275pureFunction2":function(){return xy},"\u0275\u0275pureFunction3":function(){return ky},"\u0275\u0275pureFunction4":function(){return Cy},"\u0275\u0275pureFunction5":function(){return Sy},"\u0275\u0275pureFunction6":function(){return Ey},"\u0275\u0275pureFunction7":function(){return Ay},"\u0275\u0275pureFunction8":function(){return Oy},"\u0275\u0275pureFunctionV":function(){return Dy},"\u0275\u0275queryRefresh":function(){return rm},"\u0275\u0275reference":function(){return ac},"\u0275\u0275resolveBody":function(){return fa},"\u0275\u0275resolveDocument":function(){return la},"\u0275\u0275resolveWindow":function(){return ca},"\u0275\u0275restoreView":function(){return pt},"\u0275\u0275sanitizeHtml":function(){return Vo},"\u0275\u0275sanitizeResourceUrl":function(){return zo},"\u0275\u0275sanitizeScript":function(){return qo},"\u0275\u0275sanitizeStyle":function(){return Wo},"\u0275\u0275sanitizeUrl":function(){return Uo},"\u0275\u0275sanitizeUrlOrResourceUrl":function(){return Yo},"\u0275\u0275setComponentScope":function(){return de},"\u0275\u0275setNgModuleScope":function(){return ge},"\u0275\u0275styleMap":function(){return Ol},"\u0275\u0275styleMapInterpolate1":function(){return lf},"\u0275\u0275styleMapInterpolate2":function(){return ff},"\u0275\u0275styleMapInterpolate3":function(){return hf},"\u0275\u0275styleMapInterpolate4":function(){return df},"\u0275\u0275styleMapInterpolate5":function(){return pf},"\u0275\u0275styleMapInterpolate6":function(){return vf},"\u0275\u0275styleMapInterpolate7":function(){return yf},"\u0275\u0275styleMapInterpolate8":function(){return mf},"\u0275\u0275styleMapInterpolateV":function(){return gf},"\u0275\u0275styleProp":function(){return El},"\u0275\u0275stylePropInterpolate1":function(){return bf},"\u0275\u0275stylePropInterpolate2":function(){return wf},"\u0275\u0275stylePropInterpolate3":function(){return _f},"\u0275\u0275stylePropInterpolate4":function(){return xf},"\u0275\u0275stylePropInterpolate5":function(){return kf},"\u0275\u0275stylePropInterpolate6":function(){return Cf},"\u0275\u0275stylePropInterpolate7":function(){return Sf},"\u0275\u0275stylePropInterpolate8":function(){return Ef},"\u0275\u0275stylePropInterpolateV":function(){return Af},"\u0275\u0275syntheticHostListener":function(){return Qc},"\u0275\u0275syntheticHostProperty":function(){return Df},"\u0275\u0275template":function(){return ic},"\u0275\u0275templateRefExtractor":function(){return lm},"\u0275\u0275text":function(){return zl},"\u0275\u0275textInterpolate":function(){return ql},"\u0275\u0275textInterpolate1":function(){return Hl},"\u0275\u0275textInterpolate2":function(){return Gl},"\u0275\u0275textInterpolate3":function(){return Kl},"\u0275\u0275textInterpolate4":function(){return Yl},"\u0275\u0275textInterpolate5":function(){return $l},"\u0275\u0275textInterpolate6":function(){return Zl},"\u0275\u0275textInterpolate7":function(){return Ql},"\u0275\u0275textInterpolate8":function(){return Xl},"\u0275\u0275textInterpolateV":function(){return Jl},"\u0275\u0275trustConstantHtml":function(){return Ho},"\u0275\u0275trustConstantResourceUrl":function(){return Go},"\u0275\u0275validateIframeAttribute":function(){return $i},"\u0275\u0275viewQuery":function(){return im}});var r=n(93386),o=n(63788),a=n(38135),l=n(42793),d=n(33316);function p(e){for(var t in e)if(e[t]===p)return t;throw Error("Could not find renamed property on target object.")}function v(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function y(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(y).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function b(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var w=p({__forward_ref__:p});function x(e){return e.__forward_ref__=x,e.toString=function(){return y(this())},e}
1function k(e){return S(e)?e():e}function S(e){return"function"==typeof e&&e.hasOwnProperty(w)&&e.__forward_ref__===x}var A=function(e){function t(e,n){var r;return E(this,t),r=m(this,t,[function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,n)]),r.code=e,r}return _(t,e),C(t)}(u(Error));function O(e){return"string"==typeof e?e:null==e?"":String(e)}function D(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():O(e)}function I(e,t){var n=t?" in ".concat(t):"";throw new A("201","No provider for ".concat(D(e)," found").concat(n))}function T(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+(null==r?"":" [Expected=> ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function M(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var P=M;function R(e){return{providers:e.providers||[],imports:e.imports||[]}}function F(e){return N(e,B)||N(e,W)}function N(e,t){return e.hasOwnProperty(t)?e[t]:null}function j(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(U))?e[V]:null}var L,B=p({"\u0275prov":p}),V=p({"\u0275inj":p}),W=p({ngInjectableDef:p}),U=p({ngInjectorDef:p}),z=((z=z||{})[z.Default=0]="Default",z[z.Host=1]="Host",z[z.Self=2]="Self",z[z.SkipSelf=4]="SkipSelf",z[z.Optional=8]="Optional",z);function q(){return L}function H(e){var t=L;return L=e,t}function G(e,t,n){var r=F(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&z.Optional?null:void 0!==t?t:void I(y(e),"Injector")}function K(e){return{toString:e}.toString()}var Y=((Y=Y||{})[Y.OnPush=0]="OnPush",Y[Y.Default=1]="Default",Y),$=(($=$||{})[$.CheckOnce=0]="CheckOnce",$[$.Checked=1]="Checked",$[$.CheckAlways=2]="CheckAlways",$[$.Detached=3]="Detached",$[$.Errored=4]="Errored",$[$.Destroyed=5]="Destroyed",$);function Z(e){return null==e||e===Y.Default}var Q=((Q=Q||{})[Q.Emulated=0]="Emulated",Q[Q.None=2]="None",Q[Q.ShadowDom=3]="ShadowDom",Q),X="undefined"!=typeof globalThis&&globalThis,J="undefined"!=typeof window&&window,ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,te=X||"undefined"!=typeof global&&global||J||ee,ne={},re=[],ie=p({"\u0275cmp":p}),oe=p({"\u0275dir":p}),ae=p({"\u0275pipe":p}),ue=p({"\u0275mod":p}),se=p({"\u0275loc":p}),ce=p({"\u0275fac":p}),le=p({__NG_ELEMENT_ID__:p}),fe=0;function he(e){return K(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Y.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Q.Emulated,id:"c",styles:e.styles||re,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=fe++,n.inputs=be(e.inputs,t),n.outputs=be(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(pe)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(ve)}:null,n})}function de(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(pe)},r.pipeDefs=function(){return n.map(ve)}}function pe(e){return xe(e)||ke(e)}function ve(e){return Ce(e)}var ye={};function me(e){return K(function(){var t={type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ye[e.id]=e.type),t})}function ge(e,t){return K(function(){var n=Se(e,!0);n.declarations=t.declarations||re,n.imports=t.imports||re,n.exports=t.exports||re})}function be(e,t){if(null==e)return ne;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var we=he;function _e(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function xe(e){return e[ie]||null}function ke(e){return e[oe]||null}function Ce(e){return e[ae]||null}function Se(e,t){var n=e[ue]||null;if(!n&&!0===t)throw new Error("Type ".concat(y(e)," does not have '\u0275mod' property."));return n}function Ee(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ae(e){return Array.isArray(e)&&!0===e[1]}function Oe(e){return 0!=(8&e.flags)}function De(e){return 2==(2&e.flags)}function Ie(e){return 1==(1&e.flags)}function Te(e){return null!==e.template}function Me(e){return 0!=(512&e[2])}function Pe(e,t){return e.hasOwnProperty(ce)?e[ce]:null}var Re=function(){return C(function e(t,n,r){E(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r},[{key:"isFirstChange",value:function(){return this.firstChange}}])}();function Fe(){return Ne}function Ne(e){return e.type.prototype.ngOnChanges&&(e.setInput=Le),je}function je(){var e=Ve(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ne)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Le(e,t,n,r){var i=Ve(e)||function(e,t){return e[Be]=t}(e,{previous:ne,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new Re(s&&s.currentValue,t,a===ne),e[r]=t}Fe.ngInherit=!0;var Be="__ngSimpleChanges__";function Ve(e){return e[Be]||null}var We,Ue=null,ze=function(e){Ue=e},qe=function(e,t,n){null!=Ue&&Ue(e,t,n)},He="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1998/MathML/";function Ke(e){We=e}function Ye(){return void 0!==We?We:"undefined"!=typeof document?document:void 0}function $e(e){return!!e.listen}var Ze={createRenderer:function(e,t){return Ye()}};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function Xe(e,t){return Qe(t[e])}function Je(e,t){return Qe(t[e.index])}function et(e,t){return e.data[t]}function tt(e,t){return e[t]}function nt(e,t){var n=t[e];return Ee(n)?n:n[0]}function rt(e){return 4==(4&e[2])}function it(e){return 128==(128&e[2])}function ot(e,t){return null==t?null:e[t]}function at(e){e[18]=0}function ut(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}
vendor: 5,042 bytes, line 1
1var st={lFrame:Lt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ct(){return st.bindingsEnabled}function lt(){st.bindingsEnabled=!0}function ft(){st.bindingsEnabled=!1}function ht(){return st.lFrame.lView}function dt(){return st.lFrame.tView}function pt(e){return st.lFrame.contextLView=e,e[8]}function vt(){for(var e=yt();null!==e&&64===e.type;)e=e.parent;return e}function yt(){return st.lFrame.currentTNode}function mt(){var e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gt(e,t){var n=st.lFrame;n.currentTNode=e,n.isParent=t}function bt(){return st.lFrame.isParent}function wt(){st.lFrame.isParent=!1}function _t(){return st.isInCheckNoChangesMode}function xt(e){st.isInCheckNoChangesMode=e}function kt(){var e=st.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ct(){return st.lFrame.bindingIndex}function St(e){return st.lFrame.bindingIndex=e}function Et(){return st.lFrame.bindingIndex++}function At(e){var t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ot(e){st.lFrame.inI18n=e}function Dt(e,t){var n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,It(t)}function It(e){st.lFrame.currentDirectiveIndex=e}function Tt(e){var t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Mt(){return st.lFrame.currentQueryIndex}function Pt(e){st.lFrame.currentQueryIndex=e}function Rt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ft(e,t,n){if(n&z.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&z.Host||(r=Rt(i),null===r||(i=i[15],10&r.type))););if(null===r)return!1;t=r,e=i}var o=st.lFrame=jt();return o.currentTNode=t,o.lView=e,!0}function Nt(e){var t=jt(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jt(){var e=st.lFrame,t=null===e?null:e.child;return null===t?Lt(e):t}function Lt(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Bt(){var e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vt=Bt;function Wt(){var e=Bt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ut(e){return(st.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}function zt(){return st.lFrame.selectedIndex}function qt(e){st.lFrame.selectedIndex=e}function Ht(){var e=st.lFrame;return et(e.tView,e.selectedIndex)}function Gt(){st.lFrame.currentNamespace=He}function Kt(){st.lFrame.currentNamespace=Ge}function Yt(){st.lFrame.currentNamespace=null}function $t(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,u=i.ngAfterViewInit,s=i.ngAfterViewChecked,c=i.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks||(e.viewHooks=[])).push(-n,u),s&&((e.viewHooks||(e.viewHooks=[])).push(n,s),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,s)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Zt(e,t,n){Jt(e,t,3,n)}function Qt(e,t,n,r){(3&e[2])===n&&Jt(e,t,n,r)}function Xt(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Jt(e,t,n,r){for(var i=null!=r?r:-1,o=t.length-1,a=0,u=void 0!==r?65535&e[18]:0;u<o;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[18]+=65536),(a<i||-1==i)&&(en(e,n,t,u),e[18]=(4294901760&e[18])+u+2),u++}function en(e,t,n,r){var i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,qe(4,a,o);try{o.call(a)}finally{qe(5,a,o)}}}else{qe(4,a,o);try{o.call(a)}finally{qe(5,a,o)}}}var tn=C(function e(t,n,r){E(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r});function nn(e,t,n){for(var r=$e(e),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],u=n[i++],s=n[i++];r?e.setAttribute(t,u,s,a):t.setAttributeNS(a,u,s)}else{var c=o,l=n[++i];on(c)?r&&e.setProperty(t,c,l):r?e.setAttribute(t,c,l):t.setAttribute(c,l),i++}}return i}function rn(e){return 3===e||4===e||6===e}function on(e){return 64===e.charCodeAt(0)}function an(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||un(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function un(e,t,n,r,i){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var u=e[o++];if("number"==typeof u){if(u===t){a=-1;break}if(u>t){a=o-1;break}}}for(;o<e.length;){var s=e[o];if("number"==typeof s)break;
1if(s===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function sn(e){return-1!==e}function cn(e){return 32767&e}function ln(e,t){for(var n=function(e){return e>>16}(e),r=t;n>0;)r=r[15],n--;return r}var fn=!0;function hn(e){var t=fn;return fn=e,t}var dn=0;function pn(e,t){var n=yn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,vn(r.data,e),vn(t,null),vn(r.blueprint,null));var i=mn(e,t),o=e.injectorIndex;if(sn(i))for(var a=cn(i),u=ln(i,t),s=u[1].data,c=0;c<8;c++)t[o+c]=u[a+c]|s[a+c];return t[o+8]=i,o}function vn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function yn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function mn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function gn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(r=n[le]),null==r&&(r=n[le]=dn++);var i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function bn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(rn(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}return null}function wn(e,t,n){if(n&z.Optional)return e;I(t,"NodeInjector")}function _n(e,t,n,r){if(n&z.Optional&&void 0===r&&(r=null),0==(n&(z.Self|z.Host))){var i=e[9],o=H(void 0);try{return i?i.get(t,r,n&z.Optional):G(t,r,n&z.Optional)}finally{H(o)}}return wn(r,t,n)}function xn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:z.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(le)?e[le]:void 0;return"number"==typeof t?t>=0?255&t:Cn:t}(n);if("function"==typeof o){if(!Ft(t,e,r))return r&z.Host?wn(i,n,r):_n(t,n,r,i);try{var a=o(r);if(null!=a||r&z.Optional)return a;I(n)}finally{Vt()}}else if("number"==typeof o){var u=null,s=yn(e,t),c=-1,l=r&z.Host?t[16][6]:null;for((-1===s||r&z.SkipSelf)&&(-1!==(c=-1===s?mn(e,t):t[s+8])&&Dn(r,!1)?(u=t[1],s=cn(c),t=ln(c,t)):s=-1);-1!==s;){var f=t[1];if(On(o,s,f.data)){var h=Sn(s,t,n,u,r,l);if(h!==kn)return h}-1!==(c=t[s+8])&&Dn(r,t[1].data[s+8]===l)&&On(o,s,t)?(u=f,s=cn(c),t=ln(c,t)):s=-1}}}return _n(t,n,r,i)}var kn={};function Cn(){return new In(vt(),ht())}function Sn(e,t,n,r,i,o){var a=t[1],u=a.data[e+8],s=En(u,a,n,null==r?De(u)&&fn:r!=a&&0!=(3&u.type),i&z.Host&&o===u);return null!==s?An(t,a,s,u):kn}function En(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,u=1048575&o,s=e.directiveStart,c=o>>20,l=i?u+c:e.directiveEnd,f=r?u:u+c;f<l;f++){var h=a[f];if(f<s&&n===h||f>=s&&h.type===n)return f}if(i){var d=a[s];if(d&&Te(d)&&d.type===n)return s}return null}function An(e,t,n,r){var i=e[n],o=t.data;if(function(e){return e instanceof tn}(i)){var a=i;a.resolving&&function(e,t){throw new A("200","Circular dependency in DI detected for ".concat(e))}(D(o[n]));var u=hn(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?H(a.injectImpl):null;Ft(e,r,z.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=Ne(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==s&&H(s),hn(u),a.resolving=!1,Vt()}}return i}function On(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Dn(e,t){return!(e&z.Self||e&z.Host&&t)}var In=function(){return C(function e(t,n){E(this,e),this._tNode=t,this._lView=n},[{key:"get",value:function(e,t,n){return xn(this._tNode,this._lView,e,n,t)}}])}();function Tn(e){return K(function(){for(var t=e.prototype.constructor,n=t[ce]||Mn(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;i&&i!==r;){var o=i[ce]||Mn(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(e){return new e}})}function Mn(e){return S(e)?function(){var t=Mn(k(e));return t&&t()}:Pe(e)}function Pn(e){return bn(vt(),e)}var Rn="__annotations__",Fn="__parameters__",Nn="__prop__metadata__";function jn(e,t,n,r,i){return K(function(){var o=Ln(t);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof a)return o.call.apply(o,[this].concat(t)),this;var u=s(a,t);return function(e){return i&&i.apply(void 0,[e].concat(t)),(e.hasOwnProperty(Rn)?e[Rn]:Object.defineProperty(e,Rn,{value:[]})[Rn]).push(u),r&&r(e),e}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}function Ln(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}function Bn(e,t,n){return K(function(){var r=Ln(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=s(i,t);return a.annotation=o,a;function a(e,t,n){for(var r=e.hasOwnProperty(Fn)?e[Fn]:Object.defineProperty(e,Fn,{value:[]})[Fn];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Vn(e,t,n,r){return K(function(){var i=Ln(t);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof o)return i.apply(this,t),this;var a=s(o,t);return function(e,n){var i=e.constructor,o=i.hasOwnProperty(Nn)?i[Nn]:Object.defineProperty(i,Nn,{value:{}})[Nn];o[n]=o.hasOwnProperty(n)&&o[n]||[],o[n].unshift(a),r&&r.apply(void 0,[e,n].concat(t))}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Wn(){return Bn("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return Pn(e)}}})}var Un=Wn(),zn=function(){return C(function e(t,n){E(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=M({token:this,providedIn:n.providedIn||"root",factory:n.factory}))},[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}])}(),qn=new zn("AnalyzeForEntryComponents"),Hn=C(function e(){E(this,e)}),Gn=Vn("ContentChildren",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t)},Hn),Kn=Vn("ContentChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Hn),Yn=Vn("ViewChildren",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t)},Hn),$n=Vn("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Hn),Zn=((Zn=Zn||{}
1)[Zn.Directive=0]="Directive",Zn[Zn.Component=1]="Component",Zn[Zn.Injectable=2]="Injectable",Zn[Zn.Pipe=3]="Pipe",Zn[Zn.NgModule=4]="NgModule",Zn);function Qn(e){var t=te.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var Xn=Function;function Jn(e){return"function"==typeof e}function er(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),er(r,t)):t!==e&&t.push(r)}return t}function tr(e,t){e.forEach(function(e){return Array.isArray(e)?tr(e,t):t(e)})}function nr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ir(e,t){for(var n=[],r=0;r<e;r++)n.push(t);return n}function or(e,t,n){var r=ur(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function ar(e,t){var n=ur(e,t);if(n>=0)return e[1|n]}function ur(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var sr=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,cr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,lr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,fr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/,hr=function(){return C(function e(t){E(this,e),this._reflect=t||te.Reflect},[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}},{key:"_zipTypesAndAnnotations",value:function(e,t){var n;n=ir(void 0===e?t.length:e.length);for(var r=0;r<n.length;r++)n[r]=void 0===e?[]:e[r]&&e[r]!=Object?[e[r]]:[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n}},{key:"_ownParameters",value:function(e,t){var n,r=e.toString();if(sr.test(n=r)||fr.test(n)||cr.test(n)&&!lr.test(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var i=e.ctorParameters;if(i&&i!==t.ctorParameters){var o="function"==typeof i?i():i,a=o.map(function(e){return e&&e.type}),u=o.map(function(e){return e&&dr(e.decorators)});return this._zipTypesAndAnnotations(a,u)}var s=e.hasOwnProperty(Fn)&&e[Fn],c=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return c||s?this._zipTypesAndAnnotations(c,s):ir(e.length)}},{key:"parameters",value:function(e){if(!Jn(e))return[];var t=pr(e),n=this._ownParameters(e,t);return!n&&t!==Object&&(n=this.parameters(t)),n||[]}},{key:"_ownAnnotations",value:function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?dr(e.decorators):e.hasOwnProperty(Rn)?e[Rn]:null}},{key:"annotations",value:function(e){if(!Jn(e))return[];var t=pr(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}},{key:"_ownPropMetadata",value:function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,i={};return Object.keys(r).forEach(function(e){i[e]=dr(r[e])}),i}return e.hasOwnProperty(Nn)?e[Nn]:null}},{key:"propMetadata",value:function(e){if(!Jn(e))return{};var t=pr(e),n={};if(t!==Object){var r=this.propMetadata(t);Object.keys(r).forEach(function(e){n[e]=r[e]})}var i=this._ownPropMetadata(e,t);
1return i&&Object.keys(i).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,c(n[e])),t.push.apply(t,c(i[e])),n[e]=t}),n}},{key:"ownPropMetadata",value:function(e){return Jn(e)&&this._ownPropMetadata(e,pr(e))||{}}},{key:"hasLifecycleHook",value:function(e,t){return e instanceof Xn&&t in e.prototype}},{key:"guards",value:function(e){return{}}},{key:"getter",value:function(e){return new Function("o","return o."+e+";")}},{key:"setter",value:function(e){return new Function("o","v","return o."+e+" = v;")}},{key:"method",value:function(e){return new Function("o","args","if (!o.".concat(e,") throw new Error('\"").concat(e,"\" is undefined');\n return o.").concat(e,".apply(o, args);"))}},{key:"importUri",value:function(e){return"object"==typeof e&&e.filePath?e.filePath:"./".concat(y(e))}},{key:"resourceUri",value:function(e){return"./".concat(y(e))}},{key:"resolveIdentifier",value:function(e,t,n,r){return r}},{key:"resolveEnum",value:function(e,t){return e[t]}}])}();function dr(e){return e?e.map(function(e){return s(e.type.annotationCls,c(e.args?e.args:[]))}):[]}function pr(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var vr,yr={},mr="__NG_DI_FLAG__",gr="ngTempTokenPath",br=/\n/gm,wr="__source",_r=p({provide:String,useValue:p});function xr(e){var t=vr;return vr=e,t}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;if(void 0===vr)throw new Error("inject() must be called from an injection context");return null===vr?G(e,void 0,t):vr.get(e,t&z.Optional?null:void 0,t)}function Cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;return(q()||kr)(k(e),t)}function Sr(e){throw new Error("invalid")}var Er=Cr;function Ar(e){for(var t=[],n=0;n<e.length;n++){var r=k(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=z.Default,a=0;a<r.length;a++){var u=r[a],s=Dr(u);"number"==typeof s?-1===s?i=u.token:o|=s:i=u}t.push(Cr(i,o))}else t.push(Cr(r))}return t}function Or(e,t){return e[mr]=t,e.prototype[mr]=t,e}function Dr(e){return e[mr]}function Ir(e,t,n,r){var i=e[gr];throw t[wr]&&i.unshift(t[wr]),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=y(t);if(Array.isArray(t))i=t.map(y).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):y(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(br,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[gr]=null,e}var Tr=function(e){return{token:e}},Mr=Or(Bn("Inject",Tr),-1),Pr=Or(Bn("Optional"),8),Rr=Or(Bn("Self"),2),Fr=Or(Bn("SkipSelf"),4),Nr=Or(Bn("Host"),1),jr=null;function Lr(){return jr=jr||new hr}function Br(e){return Vr(Lr().parameters(e))}function Vr(e){return e.map(function(e){return function(e){var t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(var n=0;n<e.length;n++){var r=e[n];if(void 0!==r){var i=Object.getPrototypeOf(r);if(r instanceof Pr||"Optional"===i.ngMetadataName)t.optional=!0;else if(r instanceof Fr||"SkipSelf"===i.ngMetadataName)t.skipSelf=!0;else if(r instanceof Rr||"Self"===i.ngMetadataName)t.self=!0;else if(r instanceof Nr||"Host"===i.ngMetadataName)t.host=!0;else if(r instanceof Mr)t.token=r.token;else if(r instanceof Un){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(e)})}function Wr(e){var t=[],n=new Map;function r(t){var r=n.get(t);if(!r){var i=e(t);n.set(t,r=i.then(Gr))}return r}return Ur.forEach(function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then(function(t){e.template=t}));var o=e.styleUrls,a=e.styles||(e.styles=[]),u=e.styles.length;o&&o.forEach(function(t,n){a.push(""),i.push(r(t).then(function(r){a[u+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});var s=Promise.all(i).then(function(){return function(e){zr.delete(e)}(n)});t.push(s)}),Hr(),Promise.all(t).then(function(){})}var Ur=new Map,zr=new Set;function qr(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Hr(){var e=Ur;return Ur=new Map,e}function Gr(e){return"string"==typeof e?e:e.text()}var Kr=((Kr=Kr||{})[Kr.Important=1]="Important",Kr[Kr.DashCase=2]="DashCase",Kr),Yr=/^>|^->|<!--|-->|--!>|<!-$/g,$r=/(<|>)/;function Zr(e){return e.replace(Yr,function(e){return e.replace($r,"\u200b$1\u200b")})}function Qr(e){var t=ri(e);if(t){if(Array.isArray(t)){var n,r,i,o=t;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(-1==(n=ui(o,e)))throw new Error("The provided component was not found in the application");r=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(n=function(e,t){for(var n=e[1].firstChild;n;){for(var r=n.directiveEnd,i=n.directiveStart;i<r;i++)if(e[i]===t)return n.index;
1n=ai(n)}return-1}(o,e),-1==n)throw new Error("The provided directive was not found in the application");i=si(n,o,!1)}else if(-1==(n=oi(o,e)))return null;var a=Qe(o[n]),u=ri(a),s=u&&!Array.isArray(u)?u:Xr(o,n,a);if(r&&void 0===s.component&&(s.component=r,ni(s.component,s)),i&&void 0===s.directives){s.directives=i;for(var c=0;c<i.length;c++)ni(i[c],s)}ni(s.native,s),t=s}}else for(var l=e,f=l;f=f.parentNode;){var h=ri(f);if(h){var d;if(!(d=Array.isArray(h)?h:h.lView))return null;var p=oi(d,l);if(p>=0){var v=Qe(d[p]),y=Xr(d,p,v);ni(v,y),t=y;break}}}return t||null}function Xr(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Jr(e){var t,n=ri(e);if(Array.isArray(n)){var r=ui(n,e),i=Xr(n,r,(t=nt(r,n))[0]);i.component=e,ni(e,i),ni(i.native,i)}else t=nt(n.nodeIndex,n.lView);return t}var ei,ti="__ngContext__";function ni(e,t){e[ti]=t}function ri(e){return e[ti]||null}function ii(e){var t=ri(e);return t?Array.isArray(t)?t:t.lView:null}function oi(e,t){for(var n=e[1],r=20;r<n.bindingStartIndex;r++)if(Qe(e[r])===t)return r;return-1}function ai(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function ui(e,t){var n=e[1].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(nt(i,e)[8]===t)return i}else if(nt(20,e)[8]===t)return 20;return-1}function si(e,t,n){var r=t[1].data[e],i=r.directiveStart;return 0==i?re:(!n&&2&r.flags&&i++,t.slice(i,r.directiveEnd))}function ci(e,t){return ei(e,t)}function li(e){var t=e[3];return Ae(t)?t[3]:t}function fi(e){return function(e){for(var t=Ee(e)?e:ii(e);t&&!(512&t[2]);)t=li(t);return t}(e)[8]}function hi(e){return pi(e[13])}function di(e){return pi(e[4])}function pi(e){for(;null!==e&&!Ae(e);)e=e[4];return e}function vi(e,t,n,r,i){if(null!=r){var o,a=!1;Ae(r)?o=r:Ee(r)&&(a=!0,r=r[0]);var u=Qe(r);0===e&&null!==n?null==i?Ai(t,n,u):Ei(t,n,u,i||null,!0):1===e&&null!==n?Ei(t,n,u,i||null,!0):2===e?Wi(t,u,a):3===e&&t.destroyNode(u),null!=o&&function(e,t,n,r,i){var o=n[7];o!==Qe(n)&&vi(t,e,r,o,i);for(var a=10;a<n.length;a++){var u=n[a];zi(u[1],u,e,t,r,o)}}(t,e,o,n,i)}}function yi(e,t){return $e(e)?e.createText(t):e.createTextNode(t)}function mi(e,t,n){$e(e)?e.setValue(t,n):t.textContent=n}function gi(e,t){return e.createComment(Zr(t))}function bi(e,t,n){return $e(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function wi(e,t){var n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ut(i,-1)),n.splice(r,1)}function _i(e,t){if(!(e.length<=10)){var n=10+t,r=e[n];if(r){var i=r[17];null!==i&&i!==e&&wi(i,r),t>0&&(e[n-1][4]=r[4]);var o=rr(e,10+t);!function(e,t){zi(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function xi(e,t){if(!(256&t[2])){var n=t[11];$e(n)&&n.destroyNode&&zi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return ki(e[1],e);for(;t;){var n=null;if(Ee(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ee(t)&&ki(t[1],t),t=t[3];null===t&&(t=e),Ee(t)&&ki(t[1],t),n=t&&t[4]}t=n}}(t)}}function ki(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof tn)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2){var u=i[o[a]],s=o[a+1];qe(4,u,s);try{s.call(u)}finally{qe(5,u,s)}}else{qe(4,i,o);try{o.call(i)}finally{qe(5,i,o)}}}}}(e,t),function(e,t){var n=e.cleanup,r=t[7],i=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],u="function"==typeof a?a(t):Qe(t[a]),s=r[i=n[o+2]],c=n[o+3];"boolean"==typeof c?u.removeEventListener(n[o],s,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r){for(var f=i+1;f<r.length;f++)r[f]();t[7]=null}}(e,t),1===t[1].type&&$e(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Ae(t[3])){n!==t[3]&&wi(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Ci(e,t,n){return Si(e,t.parent,n)}function Si(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===Q.None||i===Q.Emulated)return null}return Je(r,n)}
vendor: 7,215 bytes, line 1
1function Ei(e,t,n,r,i){$e(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function Ai(e,t,n){$e(e)?e.appendChild(t,n):t.appendChild(n)}function Oi(e,t,n,r,i){null!==r?Ei(e,t,n,r,i):Ai(e,t,n)}function Di(e,t){return $e(e)?e.parentNode(t):t.parentNode}function Ii(e,t,n){return Fi(e,t,n)}function Ti(e,t,n){return 40&e.type?Je(e,n):null}var Mi,Pi,Ri,Fi=Ti;function Ni(e,t){Fi=e,Mi=t}function ji(e,t,n,r){var i=Ci(e,r,t),o=t[11],a=Ii(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var u=0;u<n.length;u++)Oi(o,i,n[u],a,!1);else Oi(o,i,n,a,!1);void 0!==Mi&&Mi(o,r,t,n,i)}function Li(e,t){if(null!==t){var n=t.type;if(3&n)return Je(t,e);if(4&n)return Vi(-1,e[t.index]);if(8&n){var r=t.child;if(null!==r)return Li(e,r);var i=e[t.index];return Ae(i)?Vi(-1,i):Qe(i)}if(32&n)return ci(t,e)()||Qe(e[t.index]);var o=Bi(e,t);return null!==o?Array.isArray(o)?o[0]:Li(li(e[16]),o):Li(e,t.next)}return null}function Bi(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Vi(e,t){var n=10+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return Li(r,i)}return t[7]}function Wi(e,t,n){var r=Di(e,t);r&&function(e,t,n,r){$e(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function Ui(e,t,n,r,i,o,a){for(;null!=n;){var u=r[n.index],s=n.type;if(a&&0===t&&(u&&ni(Qe(u),r),n.flags|=4),64!=(64&n.flags))if(8&s)Ui(e,t,n.child,r,i,o,!1),vi(t,e,i,u,o);else if(32&s){for(var c=ci(n,r),l=void 0;l=c();)vi(t,e,i,l,o);vi(t,e,i,u,o)}else 16&s?qi(e,t,r,n,i,o):vi(t,e,i,u,o);n=a?n.projectionNext:n.next}}function zi(e,t,n,r,i,o){Ui(n,r,e.firstChild,t,i,o,!1)}function qi(e,t,n,r,i,o){var a=n[16],u=a[6].projection[r.projection];if(Array.isArray(u))for(var s=0;s<u.length;s++)vi(t,e,i,u[s],o);else Ui(e,t,u,a[3],i,o,!0)}function Hi(e,t,n){$e(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Gi(e,t,n){$e(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ki(){if(void 0===Pi&&(Pi=null,te.trustedTypes))try{Pi=te.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(Ku){}return Pi}function Yi(e){var t;return(null===(t=Ki())||void 0===t?void 0:t.createHTML(e))||e}function $i(e,t,n){var r=ht(),i=Ht(),o=Je(i,r);if(2===i.type&&"iframe"===t.toLowerCase()){var a=o;throw a.src="",a.srcdoc=Yi(""),Wi(r[11],a),new A("910","")}return e}function Zi(){if(void 0===Ri&&(Ri=null,te.trustedTypes))try{Ri=te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(Ku){}return Ri}function Qi(e){var t;return(null===(t=Zi())||void 0===t?void 0:t.createHTML(e))||e}function Xi(e){var t;return(null===(t=Zi())||void 0===t?void 0:t.createScript(e))||e}function Ji(e){var t;return(null===(t=Zi())||void 0===t?void 0:t.createScriptURL(e))||e}var eo=function(){return C(function e(t){E(this,e),this.changingThisBreaksApplicationSecurity=t},[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}])}(),to=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"getTypeName",value:function(){return"HTML"}}])}(eo),no=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"getTypeName",value:function(){return"Style"}}])}(eo),ro=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"getTypeName",value:function(){return"Script"}}])}(eo),io=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"getTypeName",value:function(){return"URL"}}])}(eo),oo=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}])}(eo);function ao(e){return e instanceof eo?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){var n=so(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function so(e){return e instanceof eo&&e.getTypeName()||null}function co(e){return new to(e)}function lo(e){return new no(e)}function fo(e){return new ro(e)}function ho(e){return new io(e)}function po(e){return new oo(e)}function vo(e){var t=new mo(e);return function(){try{return!!(new window.DOMParser).parseFromString(Yi(""),"text/html")}catch(e){return!1}}()?new yo(t):t}var yo=function(){return C(function e(t){E(this,e),this.inertDocumentHelper=t},[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Yi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}])}(),mo=function(){return C(function e(t){if(E(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}},[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Yi(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Yi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;("xmlns:ns1"===r||0===r.indexOf("ns1:"))&&e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}])}(),go=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,bo=/^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 wo(e){return(e=String(e)).match(go)||e.match(bo)?e:"unsafe:"+e}function _o(e){return(e=String(e)).split(",").map(function(e){return wo(e.trim())}).join(", ")}function xo(e){var t,n={},r=f(e.split(","));try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n}function ko(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var u in a)a.hasOwnProperty(u)&&(e[u]=!0)}return e}var Co,So=xo("area,br,col,hr,img,wbr"),Eo=xo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ao=xo("rp,rt"),Oo=ko(So,ko(Eo,xo("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")),ko(Ao,xo("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")),ko(Ao,Eo)),Do=xo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Io=xo("srcset"),To=ko(Do,Io,xo("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"),xo("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")),Mo=xo("script,style,template"),Po=function(){return C(function e(){E(this,e),this.sanitizedSomething=!1,this.buf=[]},[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Oo.hasOwnProperty(t))return this.sanitizedSomething=!0,!Mo.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n=e.attributes,r=0;r<n.length;r++){var i=n.item(r),o=i.name,a=o.toLowerCase();if(To.hasOwnProperty(a)){var u=i.value;Do[a]&&(u=wo(u)),Io[a]&&(u=_o(u)),this.buf.push(" ",o,'="',No(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Oo.hasOwnProperty(t)&&!So.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(No(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}])}(),Ro=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fo=/([^\#-~ |!])/g;function No(e){return e.replace(/&/g,"&").replace(Ro,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Fo,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function jo(e,t){var n=null;try{Co=Co||vo(e);var r=t?String(t):"";n=Co.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Co.getInertBodyElement(r)}while(r!==o);return Yi((new Po).sanitizeChildren(Lo(n)||n))}finally{if(n)for(var a=Lo(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Lo(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Bo=((Bo=Bo||{})[Bo.NONE=0]="NONE",Bo[Bo.HTML=1]="HTML",Bo[Bo.STYLE=2]="STYLE",Bo[Bo.SCRIPT=3]="SCRIPT",Bo[Bo.URL=4]="URL",Bo[Bo.RESOURCE_URL=5]="RESOURCE_URL",Bo);function Vo(e){var t=$o();return t?Qi(t.sanitize(Bo.HTML,e)||""):uo(e,"HTML")?Qi(ao(e)):jo(Ye(),O(e))}function Wo(e){var t=$o();return t?t.sanitize(Bo.STYLE,e)||"":uo(e,"Style")?ao(e):O(e)}function Uo(e){var t=$o();return t?t.sanitize(Bo.URL,e)||"":uo(e,"URL")?ao(e):wo(O(e))}function zo(e){var t=$o();if(t)return Ji(t.sanitize(Bo.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Ji(ao(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function qo(e){var t=$o();if(t)return Xi(t.sanitize(Bo.SCRIPT,e)||"");if(uo(e,"Script"))return Xi(ao(e));throw new Error("unsafe value used in a script context")}function Ho(e){return Yi(e[0])}function Go(e){return function(e){var t;return(null===(t=Ki())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Ko(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?zo:Uo}function Yo(e,t,n){return Ko(t,n)(e)}function $o(){var e=ht();return e&&e[12]}var Zo="ngDebugContext",Qo="ngOriginalError",Xo="ngErrorLogger";function Jo(e){return e[Zo]}function ea(e){return e[Qo]}function ta(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var na=function(){return C(function e(){E(this,e),this._console=console},[{key:"handleError",value:function(e){var t,n=this._findOriginalError(e),r=this._findContext(e),i=(t=e)&&t[Xo]||ta;i(this._console,"ERROR",e),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}},{key:"_findContext",value:function(e){return e?Jo(e)||this._findContext(ea(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=e&&ea(e);t&&ea(t);)t=ea(t);return t||null}}])}(),ra={name:"custom-elements"},ia={name:"no-errors-schema"};function oa(e){return"ng-reflect-".concat(e=function(e){return e.replace(aa,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"-"+t[1].toLowerCase()})}(e.replace(/[$@]/g,"_")))}var aa=/([A-Z])/g;function ua(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var sa=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te);function ca(e){return e.ownerDocument.defaultView}function la(e){return e.ownerDocument}function fa(e){return e.ownerDocument.body}function ha(e){return e instanceof Function?e():e}
vendor: 10,781 bytes, line 1
1function da(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var pa="ng-template";function va(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==da((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function ya(e){return 4===e.type&&e.value!==pa}function ma(e,t,n){return t===(4!==e.type||n?e.value:pa)}function ga(e,t,n){for(var r=4,i=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(rn(e[t]))return t;return e.length}(i),a=!1,u=0;u<t.length;u++){var s=t[u];if("number"!=typeof s){if(!a)if(4&r){if(r=2|1&r,""!==s&&!ma(e,s,n)||""===s&&1===t.length){if(ba(r))return!1;a=!0}}else{var c=8&r?s:t[++u];if(8&r&&null!==e.attrs){if(!va(e.attrs,c,n)){if(ba(r))return!1;a=!0}continue}var l=wa(8&r?"class":s,i,ya(e),n);if(-1===l){if(ba(r))return!1;a=!0;continue}if(""!==c){var f;f=l>o?"":i[l+1].toLowerCase();var h=8&r?f:null;if(h&&-1!==da(h,c,0)||2&r&&c!==f){if(ba(r))return!1;a=!0}}}}else{if(!a&&!ba(r)&&!ba(s))return!1;if(a&&ba(s))continue;a=!1,r=s|1&r}}return ba(r)||a}function ba(e){return 0==(1&e)}function wa(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i<t.length;){var a=t[i];if(a===e)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var u=t[++i];"string"==typeof u;)u=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function _a(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(ga(e,t[r],n))return!0;return!1}function xa(e,t){e:for(var n=0;n<t.length;n++){var r=t[n];if(e.length===r.length){for(var i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function ka(e,t){return e?":not("+t.trim()+")":t}function Ca(e){for(var t=e[0],n=1,r=2,i="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var u=e[++n];i+="["+a+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!ba(a)&&(t+=ka(o,i),i=""),r=a,o=o||!ba(r);n++}return""!==i&&(t+=ka(o,i)),t}var Sa={};function Ea(e){Aa(dt(),ht(),zt()+e,_t())}function Aa(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Zt(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Qt(t,o,0,n)}qt(n)}function Oa(e,t){return e<<17|t<<2}function Da(e){return e>>17&32767}function Ia(e){return 2|e}function Ta(e){return(131068&e)>>2}function Ma(e,t){return-131069&e|t<<2}function Pa(e){return 1|e}var Ra=Promise.resolve(null);function Fa(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var a=e.data[o];Pt(i),a.contentQueries(2,t[o],o)}}}function Na(e,t,n,r,i,o,a,u,s,c){var l=t.blueprint.slice();return l[0]=i,l[2]=140|r,at(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=u||e&&e[11],l[12]=s||e&&e[12]||null,l[9]=c||e&&e[9]||null,l[6]=o,l[16]=2==t.type?e[16]:l,l}function ja(e,t,n,r,i){var o=e.data[t];if(null===o)o=La(e,t,n,r,i),st.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;var a=mt();o.injectorIndex=null===a?-1:a.injectorIndex}return gt(o,!0),o}function La(e,t,n,r,i){var o=yt(),a=bt(),u=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=u),null!==o&&(a?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u)),u}function Ba(e,t,n,r){if(0===n)return-1;for(var i=t.length,o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Va(e,t,n){Nt(t);try{var r=e.viewQuery;null!==r&&wu(1,r,n);var i=e.template;null!==i&&za(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fa(e,t),e.staticViewQueries&&wu(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)pu(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Wt()}}function Wa(e,t,n,r){var i=t[2];if(256!=(256&i)){Nt(t);var o=_t();try{at(t),St(e.bindingStartIndex),null!==n&&za(e,t,n,2,r);var a=3==(3&i);if(!o)if(a){var u=e.preOrderCheckHooks;null!==u&&Zt(t,u,null)}else{var s=e.preOrderHooks;null!==s&&Qt(t,s,0,null),Xt(t,0)}if(function(e){for(var t=hi(e);null!==t;t=di(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&ut(o,1),i[2]|=1024}}(t),function(e){for(var t=hi(e);null!==t;t=di(t))for(var n=10;n<t.length;n++){var r=t[n],i=r[1];it(r)&&Wa(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Fa(e,t),!o)if(a){var c=e.contentCheckHooks;null!==c&&Zt(t,c)}else{var l=e.contentHooks;null!==l&&Qt(t,l,1),Xt(t,1)}!function(e,t){var n=e.hostBindingOpCodes;if(null!==n)try{for(var r=0;r<n.length;r++){var i=n[r];if(i<0)qt(~i);else{var o=i,a=n[++r],u=n[++r];Dt(a,o),u(2,t[o])}}}finally{qt(-1)}}(e,t);var f=e.components;null!==f&&function(e,t){for(var n=0;n<t.length;n++)hu(e,t[n])}(t,f);var h=e.viewQuery;if(null!==h&&wu(2,h,r),!o)if(a){var d=e.viewCheckHooks;null!==d&&Zt(t,d)}else{var p=e.viewHooks;null!==p&&Qt(t,p,2),Xt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ut(t[3],-1))}finally{Wt()}}}function Ua(e,t,n,r){var i=t[10],o=!_t(),a=rt(t);try{o&&!a&&i.begin&&i.begin(),a&&Va(e,t,r),Wa(e,t,n,r)}finally{o&&!a&&i.end&&i.end()}}function za(e,t,n,r,i){var o=zt(),a=2&r;try{qt(-1),a&&t.length>20&&Aa(e,t,20,_t()),qe(a?2:0,i),n(r,i)}finally{qt(o),qe(a?3:1,i)}}function qa(e,t,n){if(Oe(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function Ha(e,t,n){!ct()||(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||pn(n,t),ni(r,t);for(var a=n.initialInputs,u=i;u<o;u++){var s=e.data[u],c=Te(s);c&&au(t,n,s);var l=An(t,e,u,n);ni(l,t),null!==a&&cu(0,u-i,l,s,0,a),c&&(nt(n.index,t)[8]=l)}}(e,t,n,Je(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,o=n.index,a=st.lFrame.currentDirectiveIndex;try{qt(o);for(var u=r;u<i;u++){var s=e.data[u],c=t[u];It(u),(null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs)&&tu(s,c)}}finally{qt(-1),It(a)}}(e,t,n))}function Ga(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o<r.length;o+=2){var a=r[o+1],u=-1===a?n(t,e):e[a];e[i++]=u}}function Ka(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ya(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ya(e,t,n,r,i,o,a,u,s,c){var l=20+r,f=l+i,h=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Sa);return n}(l,f),d="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:u,declTNode:t,data:h.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:f,hostBindingOpCodes: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:s,consts:d,incompleteFirstPass:!1}}function $a(e,t,n){if($e(e))return e.selectRootElement(t,n===Q.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Za(e,t,n,r){var i=xu(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&ku(e).push(r,i.length-1))}function Qa(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Xa(e,t,n,r,i,o,a,u){var s,c=Je(t,n),l=t.inputs;!u&&null!=l&&(s=l[r])?(Eu(e,n,s,r,i),De(t)&&function(e,t){var n=nt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,t.value||"",r):i,$e(o)?o.setProperty(c,r,i):on(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function Ja(e,t,n,r){var i=!1;if(ct()){var o=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];_a(n,a.selectors,!1)&&(i||(i=[]),gn(pn(n,t),e,a.type),Te(a)?(nu(e,n),i.unshift(a)):i.push(a))}return i}(e,t,n),a=null===r?null:{"":-1};if(null!==o){i=!0,iu(n,e.data.length,o.length);for(var u=0;u<o.length;u++){var s=o[u];s.providersResolver&&s.providersResolver(s)}for(var c=!1,l=!1,f=Ba(e,t,o.length,null),h=0;h<o.length;h++){var d=o[h];n.mergedAttrs=an(n.mergedAttrs,d.hostAttrs),ou(e,n,t,f,d),ru(f,d,a),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);var p=d.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),f++}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,o=[],a=null,u=null,s=t.directiveStart;s<n;s++){var c=r[s],l=c.inputs,f=null===i||ya(t)?null:lu(l,i);o.push(f),a=Qa(l,s,a),u=Qa(c.outputs,s,u)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=u}(e,n)}a&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var o=n[t[i+1]];if(null==o)throw new A("301","Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],o)}}(n,r,a)}return n.mergedAttrs=an(n.mergedAttrs,n.attrs),i}function eu(e,t,n,r,i,o){var a=o.hostBindings;if(a){var u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);var s=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function tu(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function nu(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ru(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Te(t)&&(n[""]=e)}}function iu(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t
1+n,e.providerIndexes=t}function ou(e,t,n,r,i){e.data[r]=i;var o=i.factory||(i.factory=Pe(i.type)),a=new tn(o,Te(i),null);e.blueprint[r]=a,n[r]=a,eu(e,t,0,r,Ba(e,n,i.hostVars,Sa),i)}function au(e,t,n){var r=Je(t,e),i=Ka(n),o=e[10],a=vu(e,Na(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=a}function uu(e,t,n,r,i,o){var a=Je(e,t);su(t[11],a,o,e.value,n,r,i)}function su(e,t,n,r,i,o,a){if(null==o)$e(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{var u=null==a?O(o):a(o,r||"",i);$e(e)?e.setAttribute(t,i,u,n):n?t.setAttributeNS(n,i,u):t.setAttribute(i,u)}}function cu(e,t,n,r,i,o){var a=o[t];if(null!==a)for(var u=r.setInput,s=0;s<a.length;){var c=a[s++],l=a[s++],f=a[s++];null!==u?r.setInput(n,f,c,l):n[l]=f}}function lu(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function fu(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function hu(e,t){var n=nt(t,e);if(it(n)){var r=n[1];80&n[2]?Wa(r,n,r.template,n[8]):n[5]>0&&du(n)}}function du(e){for(var t=hi(e);null!==t;t=di(t))for(var n=10;n<t.length;n++){var r=t[n];if(1024&r[2]){var i=r[1];Wa(i,r,i.template,r[8])}else r[5]>0&&du(r)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var u=nt(o[a],e);it(u)&&u[5]>0&&du(u)}}function pu(e,t){var n=nt(t,e),r=n[1];(function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Va(r,n,n[8])}function vu(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function yu(e){for(;e;){e[2]|=64;var t=li(e);if(Me(e)&&!t)return e;e=t}return null}function mu(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=ii(n),i=r[1];Ua(i,r,i.template,n)}}function gu(e,t,n){var r=t[10];r.begin&&r.begin();try{Wa(e,t,e.template,n)}catch(i){throw Su(t,i),i}finally{r.end&&r.end()}}function bu(e){mu(e[8])}function wu(e,t,n){Pt(0),t(e,n)}var _u=Ra;function xu(e){return e[7]||(e[7]=[])}function ku(e){return e.cleanup||(e.cleanup=[])}function Cu(e,t,n){return(null===e||Te(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Su(e,t){var n=e[9],r=n?n.get(na,null):null;r&&r.handleError(t)}function Eu(e,t,n,r,i){for(var o=0;o<n.length;){var a=n[o++],u=n[o++],s=t[a],c=e.data[a];null!==c.setInput?c.setInput(s,i,r,u):s[u]=i}}function Au(e,t,n){var r=Xe(t,e);mi(e[11],r,n)}function Ou(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var u=t[a];"number"==typeof u?o=u:1==o?i=b(i,u):2==o&&(r=b(r,u+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Du(e){var t=Jr(e);gu(t[1],t,e)}function Iu(e){!function(e,t){var n;0===e.flags&&e.clean==Ra&&(e.flags|=1,e.clean=new Promise(function(e){return n=e}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,mu(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=Ra,n(null)}))}(yu(Jr(e))[8])}var Tu,Mu=new zn("INJECTOR",-1),Pu=function(){return C(function e(){E(this,e)},[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yr;if(t===yr){var n=new Error("NullInjectorError: No provider for ".concat(y(e),"!"));throw n.name="NullInjectorError",n}return t}}])}(),Ru=new zn("Set Injector scope."),Fu={},Nu={};function ju(){return void 0===Tu&&(Tu=new Pu),Tu}function Lu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Bu(e,t,n,r);return i._resolveInjectorDefTypes(),i}function Bu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Vu(e,n,t||ju(),r)}var Vu=function(){return C(function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;E(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&tr(n,function(e){return i.processProvider(e,t,n)}),tr([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(Mu,zu(void 0,this));var u=this.records.get(Ru);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:y(t))},[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;this.assertNotDestroyed();var r,i=xr(this),o=H(void 0);try{if(!(n&z.SkipSelf)){var a=this.records.get(e);if(void 0===a){var u=("function"==typeof(r=e)||"object"==typeof r&&r instanceof zn)&&F(e);a=u&&this.injectableDefInScope(u)?zu(Wu(e),Fu):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&z.Self?ju():this.parent).get(e,t=n&z.Optional&&t===yr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[gr]=s[gr]||[]).unshift(y(e)),i)throw s;return Ir(s,e,"R3InjectorError",this.source)}throw s}finally{H(o),xr(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;
1this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(y(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=k(e)))return!1;var i=j(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=j(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{tr(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))})}finally{}if(void 0!==s)for(var c=function(){var e=s[l],t=e.ngModule,n=e.providers;tr(n,function(e){return r.processProvider(e,t,n||re)})},l=0;l<s.length;l++)c()}this.injectorDefTypes.add(a);var f=Pe(a)||function(){return new a};this.records.set(a,zu(f,Fu));var h=i.providers;if(null!=h&&!u){var d=e;tr(h,function(e){return r.processProvider(e,d,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r,i=Hu(e=k(e))?e:k(e&&e.provide),o=qu(r=e)?zu(void 0,r.useValue):zu(Uu(r),Fu);if(Hu(e)||!0!==e.multi)this.records.get(i);else{var a=this.records.get(i);a||((a=zu(void 0,Fu,!0)).factory=function(){return Ar(a.multi)},this.records.set(i,a)),i=e,a.multi.push(e)}this.records.set(i,o)}},{key:"hydrate",value:function(e,t){return t.value===Fu&&(t.value=Nu,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value;var n}},{key:"injectableDefInScope",value:function(e){if(!e.providedIn)return!1;var t=k(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}])}();function Wu(e){var t=F(e),n=null!==t?t.factory:Pe(e);if(null!==n)return n;if(e instanceof zn)throw new Error("Token ".concat(y(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=ir(t,"?");throw new Error("Can't resolve all parameters for ".concat(y(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[B]||e[W]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Uu(e,t,n){var r;if(Hu(e)){var i=k(e);return Pe(i)||Wu(i)}if(qu(e))r=function(){return k(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))r=function(){return e.useFactory.apply(e,c(Ar(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return Cr(k(e.useExisting))};else{var o=k(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pe(o)||Wu(o);r=function(){return s(o,c(Ar(e.deps)))}}return r}function zu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function qu(e){return null!==e&&"object"==typeof e&&_r in e}function Hu(e){return"function"==typeof e}function Gu(e,t,n){return Lu({name:n},t,e,n)}var Ku,Yu=Gu,$u=((Ku=function(){return C(function e(){E(this,e)},null,[{key:"create",value:function(e,t){return Array.isArray(e)?Yu(e,t,""):Yu(e.providers,e.parent,e.name||"")}}])}()).THROW_IF_NOT_FOUND=yr,Ku.NULL=new Pu,Ku.\u0275prov=M({token:Ku,providedIn:"any",factory:function(){return Cr(Mu)}}),Ku.__NG_ELEMENT_ID__=-1,Ku);function Zu(e){us(e);var t=Qr(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){var n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Qu(e){us(e);var t=Qr(e);return null===t?null:t.lView[8]}function Xu(e){var t=Qr(e);if(null===t)return null;for(var n,r=t.lView;2===r[1].type&&(n=li(r));)r=n;return 512&r[2]?null:r[8]}function Ju(e){return c(fi(e).components)}function es(e){var t=Qr(e);return null===t?$u.NULL:new In(t.lView[1].data[t.nodeIndex],t.lView)}function ts(e){if(e instanceof Text)return[];var t=Qr(e);if(null===t)return[];var n=t.lView,r=n[1],i=t.nodeIndex;return(null==r?void 0:r.data[i])?(void 0===t.directives&&(t.directives=si(i,n,!1)),null===t.directives?[]:c(t.directives)):[]}function ns(e){var t=e.constructor;if(!t)throw new Error("Unable to find the instance constructor");var n=xe(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Y.OnPush:Y.Default};var r=ke(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function rs(e){return Qr(e).native}function is(e){us(e);var t=Qr(e);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var a=0;a<i.length;){var u=i[a++],s=i[a++];if("string"==typeof u){var c=u,l=Qe(n[s]),f=r[i[a++]],h=i[a++],d="boolean"==typeof h||h>=0?"dom":"output",p="boolean"==typeof h&&h;e==l&&o.push({element:e,name:c,callback:f,useCapture:p,type:d})}}return o.sort(os),o}function os(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function as(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function us(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function ss(e){Iu(e),Ju(e).forEach(function(e){return Du(e)})}var cs=!1;function ls(){cs||(cs=!0,fs("\u0275setProfiler",ze),fs("getDirectiveMetadata",ns),fs("getComponent",Zu),fs("getContext",Qu),fs("getListeners",is),fs("getOwningComponent",Xu),fs("getHostElement",rs),fs("getInjector",es),fs("getRootComponents",Ju),fs("getDirectives",ts),fs("applyChanges",ss))}function fs(e,t){if("undefined"==typeof COMPILED||!COMPILED){var n=te;if(n){var r=n.ng;r||(r=n.ng={}),r[e]=t}}}function hs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.rendererFactory||Ze,r=t.sanitizer||null,i=xe(e);i.type!=e&&(i.type=e);
1var o,a=i.selectors[0][0],u=$a(n.createRenderer(null,null),t.host||a,i.encapsulation),s=i.onPush?576:528,c=vs(t.scheduler,t.playerHandler),l=n.createRenderer(u,i),f=Ya(0,null,null,1,0,null,null,null,null,null),h=Na(null,f,c,s,null,null,n,l,null,t.injector||null);Nt(h);try{n.begin&&n.begin(),o=ps(ds(u,i,h,n,l,r),i,h,c,t.hostFeatures||null),Va(f,h,null),Wa(f,h,null,null)}finally{Wt(),n.end&&n.end()}return o}function ds(e,t,n,r,i,o){var a=n[1];n[20]=e;var u=ja(a,20,2,"#host",null),s=u.mergedAttrs=t.hostAttrs;null!==s&&(Ou(u,s,!0),null!==e&&(nn(i,e,s),null!==u.classes&&Gi(i,e,u.classes),null!==u.styles&&Hi(i,e,u.styles)));var c=r.createRenderer(e,t),l=Na(n,Ka(t),null,t.onPush?64:16,n[20],u,r,c,o||null,null);return a.firstCreatePass&&(gn(pn(u,n),a,t.type),nu(a,u),iu(u,n.length,1)),vu(n,l),n[20]=l}function ps(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=vt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ou(e,r,t,Ba(e,t,1,null),n));var i=An(t,e,r.directiveStart,r);ni(i,t);var o=Je(r,t);return o&&ni(o,t),i}(o,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(function(e){return e(a,t)}),t.contentQueries){var u=vt();t.contentQueries(1,a,u.directiveStart)}var s=vt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(qt(s.index),eu(n[1],s,0,s.directiveStart,s.directiveEnd,t),tu(t,a)),a}function vs(e,t){return{components:[],scheduler:e||sa,clean:_u,playerHandler:t||null,flags:0}}function ys(e,t){$t(ii(e)[1],vt())}function ms(e){return fi(e).clean}function gs(e){return Object.getPrototypeOf(e.prototype).constructor}function bs(e){for(var t=gs(e.type),n=!0,r=[e];t;){var i=void 0;if(Te(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=ws(e.inputs),o.declaredInputs=ws(e.declaredInputs),o.outputs=ws(e.outputs);var a=i.hostBindings;a&&ks(e,a);var u=i.viewQuery,s=i.contentQueries;if(u&&_s(e,u),s&&xs(e,s),v(e.inputs,i.inputs),v(e.declaredInputs,i.declaredInputs),v(e.outputs,i.outputs),Te(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var f=0;f<l.length;f++){var h=l[f];h&&h.ngInherit&&h(e),h===bs&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,r=e.length-1;r>=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=an(i.hostAttrs,n=an(n,i.hostAttrs))}}(r)}function ws(e){return e===ne?{}:e===re?[]:e}function _s(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function xs(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ks(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Cs=["providersResolver"],Ss=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Es(e){var t,n=gs(e.type);t=Te(e)?n.\u0275cmp:n.\u0275dir;var r,i=e,o=f(Cs);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a]=t[a]}}catch(l){o.e(l)}finally{o.f()}if(Te(t)){var u,s=f(Ss);try{for(s.s();!(u=s.n()).done;){var c=u.value;i[c]=t[c]}}catch(l){s.e(l)}finally{s.f()}}}var As=null;function Os(){if(!As){var e=te.Symbol;if(e&&e.iterator)As=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(As=r)}}return As}function Ds(e,t){var n=Ts(e),r=Ts(t);return n&&r?function(e,t,n){for(var r=e[Os()](),i=t[Os()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done||!n(o.value,a.value))return!1}}(e,t,Ds):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}var Is=function(){function e(t){E(this,e),this.wrapped=t}return C(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}])}();function Ts(e){return!!Ms(e)&&(Array.isArray(e)||!(e instanceof Map)&&Os()in e)}function Ms(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ps(e,t,n){return e[t]=n}function Rs(e,t){return e[t]}function Fs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ns(e,t,n,r){var i=Fs(e,t,n);return Fs(e,t+1,r)||i}function js(e,t,n,r,i){var o=Ns(e,t,n,r);return Fs(e,t+2,i)||o}function Ls(e,t,n,r,i,o){var a=Ns(e,t,n,r);return Ns(e,t+2,i,o)||a}function Bs(e,t,n,r){var i=ht();return Fs(i,Et(),t)&&(dt(),uu(Ht(),i,e,t,n,r)),Bs}function Vs(e,t){for(var n=!1,r=Ct(),i=1;i<t.length;i+=2)n=Fs(e,r++,t[i])||n;if(St(r),!n)return Sa;for(var o=t[0],a=1;a<t.length;a+=2)o+=O(t[a])+t[a+1];return o}function Ws(e,t,n,r){return Fs(e,Et(),n)?t+O(n)+r:Sa}
1function Us(e,t,n,r,i,o){var a=Ns(e,Ct(),n,i);return At(2),a?t+O(n)+r+O(i)+o:Sa}function zs(e,t,n,r,i,o,a,u){var s=js(e,Ct(),n,i,a);return At(3),s?t+O(n)+r+O(i)+o+O(a)+u:Sa}function qs(e,t,n,r,i,o,a,u,s,c){var l=Ls(e,Ct(),n,i,a,s);return At(4),l?t+O(n)+r+O(i)+o+O(a)+u+O(s)+c:Sa}function Hs(e,t,n,r,i,o,a,u,s,c,l,f){var h=Ct(),d=Ls(e,h,n,i,a,s);return d=Fs(e,h+4,l)||d,At(5),d?t+O(n)+r+O(i)+o+O(a)+u+O(s)+c+O(l)+f:Sa}function Gs(e,t,n,r,i,o,a,u,s,c,l,f,h,d){var p=Ct(),v=Ls(e,p,n,i,a,s);return v=Ns(e,p+4,l,h)||v,At(6),v?t+O(n)+r+O(i)+o+O(a)+u+O(s)+c+O(l)+f+O(h)+d:Sa}function Ks(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v){var y=Ct(),m=Ls(e,y,n,i,a,s);return m=js(e,y+4,l,h,p)||m,At(7),m?t+O(n)+r+O(i)+o+O(a)+u+O(s)+c+O(l)+f+O(h)+d+O(p)+v:Sa}function Ys(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m){var g=Ct(),b=Ls(e,g,n,i,a,s);return b=Ls(e,g+4,l,h,p,y)||b,At(8),b?t+O(n)+r+O(i)+o+O(a)+u+O(s)+c+O(l)+f+O(h)+d+O(p)+v+O(y)+m:Sa}function $s(e,t,n,r,i,o){var a=ht(),u=Ws(a,t,n,r);return u!==Sa&&uu(Ht(),a,e,u,i,o),$s}function Zs(e,t,n,r,i,o,a,u){var s=ht(),c=Us(s,t,n,r,i,o);return c!==Sa&&uu(Ht(),s,e,c,a,u),Zs}function Qs(e,t,n,r,i,o,a,u,s,c){var l=ht(),f=zs(l,t,n,r,i,o,a,u);return f!==Sa&&uu(Ht(),l,e,f,s,c),Qs}function Xs(e,t,n,r,i,o,a,u,s,c,l,f){var h=ht(),d=qs(h,t,n,r,i,o,a,u,s,c);return d!==Sa&&uu(Ht(),h,e,d,l,f),Xs}function Js(e,t,n,r,i,o,a,u,s,c,l,f,h,d){var p=ht(),v=Hs(p,t,n,r,i,o,a,u,s,c,l,f);return v!==Sa&&uu(Ht(),p,e,v,h,d),Js}function ec(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v){var y=ht(),m=Gs(y,t,n,r,i,o,a,u,s,c,l,f,h,d);return m!==Sa&&uu(Ht(),y,e,m,p,v),ec}function tc(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m){var g=ht(),b=Ks(g,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v);return b!==Sa&&uu(Ht(),g,e,b,y,m),tc}function nc(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b){var w=ht(),_=Ys(w,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m);return _!==Sa&&uu(Ht(),w,e,_,g,b),nc}function rc(e,t,n,r){var i=ht(),o=Vs(i,t);return o!==Sa&&uu(Ht(),i,e,o,n,r),rc}function ic(e,t,n,r,i,o,a,u){var s=ht(),c=dt(),l=e+20,f=c.firstCreatePass?function(e,t,n,r,i,o,a,u,s){var c=t.consts,l=ja(t,e,4,a||null,ot(c,u));Ja(t,n,l,ot(c,s)),$t(t,l);var f=l.tViews=Ya(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}(l,c,s,t,n,r,i,o,a):c.data[l];gt(f,!1);var h=s[11].createComment("");ji(c,s,h,f),ni(h,s),vu(s,s[l]=fu(h,s,h,f)),Ie(f)&&Ha(c,s,f),null!=a&&Ga(s,f,u)}function oc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ac(e){return tt(st.lFrame.contextLView,20+e)}var uc={"\u0275\u0275defineInjectable":M,"\u0275\u0275defineInjector":R,"\u0275\u0275inject":Cr,"\u0275\u0275invalidFactoryDep":Sr,resolveForwardRef:k},sc=p({provide:String,useValue:p});function cc(e){return void 0!==e.useClass}function lc(e){return void 0!==e.useFactory}var fc=jn("Injectable",void 0,void 0,void 0,function(e,t){return dc(e,t)}),hc=function(e,t){var n=null,r=null;e.hasOwnProperty(B)||Object.defineProperty(e,B,{get:function(){return null===n&&(n=Qn().compileInjectable(uc,"ng:///".concat(e.name,"/\u0275prov.js"),function(e,t){var n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(cc(n)||lc(n))&&void 0!==n.deps&&(r.deps=Vr(n.deps)),cc(n)?r.useClass=n.useClass:function(e){return sc in e}(n)?r.useValue=n.useValue:lc(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n}}),e.hasOwnProperty(ce)||Object.defineProperty(e,ce,{get:function(){if(null===r){var t=Qn();r=t.compileFactory(uc,"ng:///".concat(e.name,"/\u0275fac.js"),{name:e.name,type:e,typeArgumentCount:0,deps:Br(e),target:t.FactoryTarget.Injectable})}return r},configurable:!0})},dc=hc;function pc(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return y(e.token)}).join(" -> ")+")":""}function vc(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n="".concat(e," caused by: ").concat(t instanceof Error?t.message:t),r=Error(n);return r[Qo]=t,r}(o,r):Error(o);return a.addKey=yc,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a[Qo]=r,a}function yc(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function mc(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];n.push(o&&0!=o.length?o.map(y).join(" "):"?")}return Error("Cannot resolve all parameters for '"+y(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+y(e)+"' is decorated with Injectable.")}function gc(e,t){return Error("Cannot mix multi providers and regular providers, got: ".concat(e," ").concat(t))}var bc=function(){return C(function e(t,n){if(E(this,e),this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=y(this.token)},null,[{key:"get",value:function(e){return wc.get(k(e))}},{key:"numberOfKeys",get:function(){return wc.numberOfKeys}}])}(),wc=new(function(){return C(function e(){E(this,e),this._allKeys=new Map},[{key:"get",value:function(e){if(e instanceof bc)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new bc(e,bc.numberOfKeys);return this._allKeys.set(e,t),t}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}])}()),_c=new(function(){return C(function e(t){E(this,e),this.reflectionCapabilities=t},[{key:"updateCapabilities",value:function(e){this.reflectionCapabilities=e}},{key:"factory",value:function(e){return this.reflectionCapabilities.factory(e)}},{key:"parameters",value:function(e){return this.reflectionCapabilities.parameters(e)}},{key:"annotations",value:function(e){return this.reflectionCapabilities.annotations(e)}},{key:"propMetadata",value:function(e){return this.reflectionCapabilities.propMetadata(e)}},{key:"hasLifecycleHook",value:function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}},{key:"getter",value:function(e){return this.reflectionCapabilities.getter(e)}},{key:"setter",value:function(e){return this.reflectionCapabilities.setter(e)}},{key:"method",value:function(e){return this.reflectionCapabilities.method(e)}},{key:"importUri",value:function(e){return this.reflectionCapabilities.importUri(e)}},{key:"resourceUri",value:function(e){return this.reflectionCapabilities.resourceUri(e)}},{key:"resolveIdentifier",value:function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)}},{key:"resolveEnum",value:function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}])}())(new hr),xc=function(){function e(t,n,r){E(this,e),this.key=t,this.optional=n,this.visibility=r}return C(e,null,[{key:"fromKey",value:function(t){return new e(t,!1,null)}}])}(),kc=[],Cc=C(function e(t,n,r){E(this,e),this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}),Sc=C(function e(t,n){E(this,e),this.factory=t,this.dependencies=n});function Ec(e){var t,n;if(e.useClass){var r=k(e.useClass);t=_c.factory(r),n=Ic(r)}else e.useExisting?(t=function(e){return e},n=[xc.fromKey(bc.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return Tc(e,t,n)})}return Ic(e)}(e.useFactory,e.deps)):(t=function(){return e.useValue},n=kc);return new Sc(t,n)}function Ac(e){return new Cc(bc.get(e.provide),[Ec(e)],e.multi||!1)}function Oc(e){var t=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw gc(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else t.set(r.key.id,r)}else{var a;a=r.multiProvider?new Cc(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Dc(e,[]).map(Ac),new Map);return Array.from(t.values())}function Dc(e,t){return e.forEach(function(e){if(e instanceof Xn)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw function(e){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(e))}(e);Dc(e,t)}}),t}function Ic(e){var t=_c.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw mc(e,t);return t.map(function(n){return Tc(e,n,t)})}function Tc(e,t,n){var r=null,i=!1;if(!Array.isArray(t))return Mc(t instanceof Mr?t.token:t,i,null);for(var o=null,a=0;a<t.length;++a){var u=t[a];u instanceof Xn?r=u:u instanceof Mr?r=u.token:u instanceof Pr?i=!0:u instanceof Rr||u instanceof Fr?o=u:u instanceof zn&&(r=u)}if(null!=(r=k(r)))return Mc(r,i,o);throw mc(e,n)}function Mc(e,t,n){return new xc(bc.get(e),t,n)}var Pc={},Rc=function(){function e(){E(this,e)}return C(e,null,[{key:"resolve",value:function(e){return Oc(e)}},{key:"resolveAndCreate",value:function(t,n){var r=e.resolve(t);return e.fromResolvedProviders(r,n)}},{key:"fromResolvedProviders",value:function(e,t){return new Fc(e,t)}}])}(),Fc=function(){var e=function(){function e(t,n){E(this,e),this._constructionCounter=0,this._providers=t,this.parent=n||null;var r=t.length;this.keyIds=[],this.objs=[];for(var i=0;i<r;i++)this.keyIds[i]=t[i].key.id,this.objs[i]=Pc}return C(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yr;return this._getByKey(bc.get(e),null,t)}},{key:"resolveAndCreateChild",value:function(e){var t=Rc.resolve(e);return this.createChildFromResolved(t)}},{key:"createChildFromResolved",value:function(t){var n=new e(t);return n.parent=this,n}},{key:"resolveAndInstantiate",value:function(e){return this.instantiateResolved(Rc.resolve([e])[0])}},{key:"instantiateResolved",value:function(e){return this._instantiateProvider(e)}},{key:"getProviderAtIndex",value:function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index ".concat(e," is out-of-bounds."))}(e);return this._providers[e]}},{key:"_new",value:function(e){if(this._constructionCounter++>
1this._getMaxNumberOfObjects())throw function(e,t){return vc(e,t,function(e){return"Cannot instantiate cyclic dependency!".concat(pc(e))})}(this,e.key);return this._instantiateProvider(e)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(e){if(e.multiProvider){for(var t=[],n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])}},{key:"_instantiate",value:function(e,t){var n,r,i=this,o=t.factory;try{n=t.dependencies.map(function(e){return i._getByReflectiveDependency(e)})}catch(a){throw a.addKey&&a.addKey(this,e.key),a}try{r=o.apply(void 0,c(n))}catch(a){throw function(e,t,n,r){return vc(e,r,function(e){var n=y(e[0].token);return"".concat(t.message,": Error during instantiation of ").concat(n,"!").concat(pc(e),".")},t)}(this,a,0,e.key)}return r}},{key:"_getByReflectiveDependency",value:function(e){return this._getByKey(e.key,e.visibility,e.optional?null:yr)}},{key:"_getByKey",value:function(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof Rr?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}},{key:"_getObjByKeyId",value:function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Pc&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Pc}},{key:"_throwOrNull",value:function(e,t){if(t!==yr)return t;throw function(e,t){return vc(e,t,function(e){return"No provider for ".concat(y(e[0].token),"!").concat(pc(e))})}(this,e)}},{key:"_getByKeySelf",value:function(e,t){var n=this._getObjByKeyId(e.id);return n!==Pc?n:this._throwOrNull(e,t)}},{key:"_getByKeyDefault",value:function(t,n,r){var i;for(i=r instanceof Fr?this.parent:this;i instanceof e;){var o=i,a=o._getObjByKeyId(t.id);if(a!==Pc)return a;i=o.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)}},{key:"displayName",get:function(){return"ReflectiveInjector(providers: [".concat(function(e,t){for(var n=[],r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,function(e){return' "'+e.key.displayName+'" '}).join(", "),"])")}},{key:"toString",value:function(){return this.displayName}}])}();return e.INJECTOR_KEY=bc.get($u),e}();function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default,n=ht();return null===n?Cr(e,t):xn(vt(),n,k(e),t)}function jc(){throw new Error("invalid")}function Lc(e,t,n){var r=ht();return Fs(r,Et(),t)&&Xa(dt(),Ht(),r,e,t,r[11],n,!1),Lc}function Bc(e,t,n,r,i){var o=i?"class":"style";Eu(e,n,t.inputs[o],o,r)}function Vc(e,t,n,r){var i=ht(),o=dt(),a=20+e,u=i[11],s=i[a]=bi(u,t,st.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,a){var u=t.consts,s=ja(t,e,2,i,ot(u,o));return Ja(t,n,s,ot(u,a)),null!==s.attrs&&Ou(s,s.attrs,!1),null!==s.mergedAttrs&&Ou(s,s.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,s),s}(a,o,i,0,t,n,r):o.data[a];gt(c,!0);var l=c.mergedAttrs;null!==l&&nn(u,s,l);var f=c.classes;null!==f&&Gi(u,s,f);var h=c.styles;null!==h&&Hi(u,s,h),64!=(64&c.flags)&&ji(o,i,s,c),0===st.lFrame.elementDepthCount&&ni(s,i),st.lFrame.elementDepthCount++,Ie(c)&&(Ha(o,i,c),qa(o,c,i)),null!==r&&Ga(i,c)}function Wc(){var e=vt();bt()?wt():gt(e=e.parent,!1);var t=e;st.lFrame.elementDepthCount--;var n=dt();n.firstCreatePass&&($t(n,e),Oe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Bc(n,t,ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Bc(n,t,ht(),t.stylesWithoutHost,!1)}function Uc(e,t,n,r){Vc(e,t,n,r),Wc()}function zc(e,t,n){var r=ht(),i=dt(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=ot(o,r),u=ja(t,e,8,"ng-container",a);return null!==a&&Ou(u,a,!0),Ja(t,n,u,ot(o,i)),null!==t.queries&&t.queries.elementStart(t,u),u}(o,i,r,t,n):i.data[o];gt(a,!0);var u=r[o]=r[11].createComment("");ji(i,r,u,a),ni(u,r),Ie(a)&&(Ha(i,r,a),qa(i,a,r)),null!=n&&Ga(r,a)}function qc(){var e=vt(),t=dt();bt()?wt():gt(e=e.parent,!1),t.firstCreatePass&&($t(t,e),Oe(e)&&t.queries.elementEnd(e))}
1function Hc(e,t,n){zc(e,t,n),qc()}function Gc(){return ht()}function Kc(e){return!!e&&"function"==typeof e.then}function Yc(e){return!!e&&"function"==typeof e.subscribe}var $c=Yc;function Zc(e,t,n,r){var i=ht(),o=dt(),a=vt();return Xc(o,i,i[11],a,e,t,!!n,r),Zc}function Qc(e,t){var n=vt(),r=ht(),i=dt();return Xc(i,r,Cu(Tt(i.data),n,r),n,e,t,!1),Qc}function Xc(e,t,n,r,i,o,a,u){var s=Ie(r),c=e.firstCreatePass&&ku(e),l=t[8],f=xu(t),h=!0;if(3&r.type||u){var d=Je(r,t),p=u?u(d):d,v=f.length,y=u?function(e){return u(Qe(e[r.index]))}:r.index;if($e(n)){var m=null;if(!u&&s&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var u=t[7],s=i[o+2];return u.length>s?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=el(r,t,l,o,!1);var g=n.listen(p,i,o);f.push(o,g),c&&c.push(i,y,v,v+1)}}else o=el(r,t,l,o,!0),p.addEventListener(i,o,a),f.push(o),c&&c.push(i,y,v,a)}else o=el(r,t,l,o,!1);var b,w=r.outputs;if(h&&null!==w&&(b=w[i])){var _=b.length;if(_)for(var x=0;x<_;x+=2){var k=t[b[x]][b[x+1]].subscribe(o),C=f.length;f.push(o,k),c&&c.push(i,r.index,C,-(C+1))}}}function Jc(e,t,n,r){try{return qe(6,t,n),!1!==n(r)}catch(i){return Su(e,i),!1}finally{qe(7,t,n)}}function el(e,t,n,r,i){return function o(a){if(a===Function)return r;var u=2&e.flags?nt(e.index,t):t;0==(32&t[2])&&yu(u);for(var s=Jc(t,n,r,a),c=o.__ngNextListenerFn__;c;)s=Jc(t,n,c,a)&&s,c=c.__ngNextListenerFn__;return i&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function tl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ut(e)}function nl(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i<t.length;i++){var o=t[i];if("*"!==o){if(null===r?_a(e,o,!0):xa(r,o))return i}else n=i}return n}function rl(e){var t=ht()[16][6];if(!t.projection)for(var n=t.projection=ir(e?e.length:1,null),r=n.slice(),i=t.child;null!==i;){var o=e?nl(i,e):0;null!==o&&(r[o]?r[o].projectionNext=i:n[o]=i,r[o]=i),i=i.next}}function il(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=ht(),i=dt(),o=ja(i,20+e,16,null,n||null);null===o.projection&&(o.projection=t),wt(),64!=(64&o.flags)&&function(e,t,n){qi(t[11],0,t,n,Ci(e,n,t),Ii(n.parent||t[6],n,t))}(i,r,o)}function ol(e,t,n){return al(e,"",t,"",n),ol}function al(e,t,n,r,i){var o=ht(),a=Ws(o,t,n,r);return a!==Sa&&Xa(dt(),Ht(),o,e,a,o[11],i,!1),al}function ul(e,t,n,r,i,o,a){var u=ht(),s=Us(u,t,n,r,i,o);return s!==Sa&&Xa(dt(),Ht(),u,e,s,u[11],a,!1),ul}function sl(e,t,n,r,i,o,a,u,s){var c=ht(),l=zs(c,t,n,r,i,o,a,u);return l!==Sa&&Xa(dt(),Ht(),c,e,l,c[11],s,!1),sl}function cl(e,t,n,r,i,o,a,u,s,c,l){var f=ht(),h=qs(f,t,n,r,i,o,a,u,s,c);return h!==Sa&&Xa(dt(),Ht(),f,e,h,f[11],l,!1),cl}function ll(e,t,n,r,i,o,a,u,s,c,l,f,h){var d=ht(),p=Hs(d,t,n,r,i,o,a,u,s,c,l,f);return p!==Sa&&Xa(dt(),Ht(),d,e,p,d[11],h,!1),ll}function fl(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p){var v=ht(),y=Gs(v,t,n,r,i,o,a,u,s,c,l,f,h,d);return y!==Sa&&Xa(dt(),Ht(),v,e,y,v[11],p,!1),fl}function hl(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y){var m=ht(),g=Ks(m,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v);return g!==Sa&&Xa(dt(),Ht(),m,e,g,m[11],y,!1),hl}function dl(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g){var b=ht(),w=Ys(b,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m);return w!==Sa&&Xa(dt(),Ht(),b,e,w,b[11],g,!1),dl}function pl(e,t,n){var r=ht(),i=Vs(r,t);return i!==Sa&&Xa(dt(),Ht(),r,e,i,r[11],n,!1),pl}function vl(e,t,n,r,i){for(var o=e[n+1],a=null===t,u=r?Da(o):Ta(o),s=!1;0!==u&&(!1===s||a);){var c=e[u+1];yl(e[u],t)&&(s=!0,e[u+1]=r?Pa(c):Ia(c)),u=r?Da(c):Ta(c)}s&&(e[n+1]=r?Ia(o):Pa(o))}function yl(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ur(e,t)>=0}var ml={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gl(e){return e.substring(ml.key,ml.keyEnd)}function bl(e){return e.substring(ml.value,ml.valueEnd)}function wl(e,t){var n=ml.textEnd;return n===t?-1:(t=ml.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ml.key=t,n),kl(e,t,n))}function _l(e,t){var n=ml.textEnd,r=ml.key=kl(e,t,n);return n===r?-1:(r=ml.keyEnd=function(e,t,n){for(var r;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Cl(e,r,n),r=ml.value=kl(e,r,n),r=ml.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,u=a;a<n;){var s=e.charCodeAt(a++);if(59===s)return u;34===s||39===s?u=a=Sl(e,s,a,n):t===a-4&&85===o&&82===i&&76===r&&40===s?u=a=Sl(e,41,a,n):s>32&&(u=a),o=i,i=r,r=-33&s}return u}(e,r,n),Cl(e,r,n))}function xl(e){ml.key=0,ml.keyEnd=0,ml.value=0,ml.valueEnd=0,ml.textEnd=e.length}function kl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Cl(e,t,n,r){return(t=kl(e,t,n))<n&&t++,t}function Sl(e,t,n,r){for(var i=-1,o=n;o<r;){var a=e.charCodeAt(o++);if(a==t&&92!==i)return o;i=92==a&&92===i?0:a}throw new Error}function El(e,t,n){return Ml(e,t,n,!1),El}function Al(e,t){return Ml(e,t,null,!0),Al}function Ol(e){Pl(Ll,Dl,e,!1)}function Dl(e,t){for(var n=function(e){return xl(e),_l(e,kl(e,0,ml.textEnd))}(t);n>=0;n=_l(t,n))Ll(e,gl(t),bl(t))}function Il(e){Pl(or,Tl,e,!0)}function Tl(e,t){for(var n=function(e){return xl(e),wl(e,kl(e,0,ml.textEnd))}(t);n>=0;n=wl(t,n))or(e,gl(t),!0)}function Ml(e,t,n,r){var i=ht(),o=dt(),a=At(2);o.firstUpdatePass&&Fl(o,e,a,r),t!==Sa&&Fs(i,a,t)&&Bl(o,o.data[zt()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=y(ao(e)))),e}(t,n),r,a)}function Pl(e,t,n,r){var i=dt(),o=At(2);i.firstUpdatePass&&Fl(i,null,o,r);var a=ht();if(n!==Sa&&Fs(a,o,n)){var u=i.data[zt()];if(Ul(u,r)&&!Rl(i,o)){var s=r?u.classesWithoutHost:u.stylesWithoutHost;null!==s&&(n=b(s,n||"")),Bc(i,u,a,n,r)}else!function(e,t,n,r,i,o,a,u){i===Sa&&(i=re);for(var s=0,c=0,l=0<i.length?i[0]:null,f=0<o.length?o[0]:null;null!==l||null!==f;){var h=s<i.length?i[s+1]:void 0,d=c<o.length?o[c+1]:void 0,p=void 0,v=null;l===f?(s+=2,c+=2,h!==d&&(v=f,p=d)):null===f||null!==l&&l<f?(s+=2,v=l):(c+=2,v=f,p=d),null!==v&&Bl(e,t,n,r,v,p,a,u),l=s<i.length?i[s]:null,f=c<o.length?o[c]:null}}(i,u,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return re;var r=[],i=ao(n);if(Array.isArray(i))for(var o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(var a in i)i.hasOwnProperty(a)&&e(r,a,i[a]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,o)}}function Rl(e,t){return t>=e.expandoStartIndex}function Fl(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[zt()],a=Rl(e,n);Ul(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=Tt(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=jl(n=Nl(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;
vendor: 6,075 bytes, line 1
1if(-1===a||e[a]!==i)if(n=Nl(i,e,t,n,r),null===o){var u=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Ta(r))return e[Da(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&function(e,t,n,r){e[Da(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u=jl(u=Nl(null,e,t,u[1],r),t.attrs,r))}else o=function(e,t,n){for(var r,i=t.directiveEnd,o=1+t.directiveStylingLast;o<i;o++)r=jl(r,e[o].hostAttrs,n);return jl(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){var a=o?t.classBindings:t.styleBindings,u=Da(a),s=Ta(a);e[r]=n;var c,l=!1;if(Array.isArray(n)){var f=n;(null===(c=f[1])||ur(f,c)>0)&&(l=!0)}else c=n;if(i)if(0!==s){var h=Da(e[u+1]);e[r+1]=Oa(h,u),0!==h&&(e[h+1]=Ma(e[h+1],r)),e[u+1]=function(e,t){return 131071&e|t<<17}(e[u+1],r)}else e[r+1]=Oa(u,0),0!==u&&(e[u+1]=Ma(e[u+1],r)),u=r;else e[r+1]=Oa(s,0),0===u?u=r:e[s+1]=Ma(e[s+1],r),s=r;l&&(e[r+1]=Ia(e[r+1])),vl(e,c,r,!0),vl(e,c,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ur(o,t)>=0&&(n[r+1]=Pa(n[r+1]))}(t,c,e,r,o),a=Oa(u,s),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function Nl(e,t,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<a&&(r=jl(r,(o=t[u]).hostAttrs,i),o!==e);)u++;return null!==e&&(n.directiveStylingLast=u),r}function jl(e,t,n){var r=n?1:2,i=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?i=a:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),or(e,a,!!n||t[++o]))}return void 0===e?null:e}function Ll(e,t,n){or(e,t,ao(n))}function Bl(e,t,n,r,i,o,a,u){if(3&t.type){var s=e.data,c=s[u+1];Wl(function(e){return 1==(1&e)}(c)?Vl(s,t,n,i,Ta(c),a):void 0)||(Wl(o)||function(e){return 2==(2&e)}(c)&&(o=Vl(s,null,n,i,u,a)),function(e,t,n,r,i){var o=$e(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var a=-1===r.indexOf("-")?void 0:Kr.DashCase;if(null==i)o?e.removeStyle(n,r,a):n.style.removeProperty(r);else{var u="string"==typeof i&&i.endsWith("!important");u&&(i=i.slice(0,-10),a|=Kr.Important),o?e.setStyle(n,r,i,a):n.style.setProperty(r,i,u?"important":"")}}}(r,a,Xe(zt(),n),i,o))}}function Vl(e,t,n,r,i,o){for(var a,u=null===t;i>0;){var s=e[i],c=Array.isArray(s),l=c?s[1]:s,f=null===l,h=n[i+1];h===Sa&&(h=f?re:void 0);var d=f?ar(h,r):l===r?h:void 0;if(c&&!Wl(d)&&(d=ar(s,r)),Wl(d)&&(a=d,u))return a;var p=e[i+1];i=u?Da(p):Ta(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=ar(v,r))}return a}function Wl(e){return void 0!==e}function Ul(e,t){return 0!=(e.flags&(t?16:32))}function zl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ht(),r=dt(),i=e+20,o=r.firstCreatePass?ja(r,i,1,t,null):r.data[i],a=n[i]=yi(n[11],t);ji(r,n,a,o),gt(o,!1)}function ql(e){return Hl("",e,""),ql}function Hl(e,t,n){var r=ht(),i=Ws(r,e,t,n);return i!==Sa&&Au(r,zt(),i),Hl}function Gl(e,t,n,r,i){var o=ht(),a=Us(o,e,t,n,r,i);return a!==Sa&&Au(o,zt(),a),Gl}function Kl(e,t,n,r,i,o,a){var u=ht(),s=zs(u,e,t,n,r,i,o,a);return s!==Sa&&Au(u,zt(),s),Kl}function Yl(e,t,n,r,i,o,a,u,s){var c=ht(),l=qs(c,e,t,n,r,i,o,a,u,s);return l!==Sa&&Au(c,zt(),l),Yl}function $l(e,t,n,r,i,o,a,u,s,c,l){var f=ht(),h=Hs(f,e,t,n,r,i,o,a,u,s,c,l);return h!==Sa&&Au(f,zt(),h),$l}function Zl(e,t,n,r,i,o,a,u,s,c,l,f,h){var d=ht(),p=Gs(d,e,t,n,r,i,o,a,u,s,c,l,f,h);return p!==Sa&&Au(d,zt(),p),Zl}function Ql(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p){var v=ht(),y=Ks(v,e,t,n,r,i,o,a,u,s,c,l,f,h,d,p);return y!==Sa&&Au(v,zt(),y),Ql}function Xl(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y){var m=ht(),g=Ys(m,e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y);return g!==Sa&&Au(m,zt(),g),Xl}function Jl(e){var t=ht(),n=Vs(t,e);return n!==Sa&&Au(t,zt(),n),Jl}function ef(e,t,n){Pl(or,Tl,Ws(ht(),e,t,n),!0)}function tf(e,t,n,r,i){Pl(or,Tl,Us(ht(),e,t,n,r,i),!0)}function nf(e,t,n,r,i,o,a){Pl(or,Tl,zs(ht(),e,t,n,r,i,o,a),!0)}function rf(e,t,n,r,i,o,a,u,s){Pl(or,Tl,qs(ht(),e,t,n,r,i,o,a,u,s),!0)}function of(e,t,n,r,i,o,a,u,s,c,l){Pl(or,Tl,Hs(ht(),e,t,n,r,i,o,a,u,s,c,l),!0)}function af(e,t,n,r,i,o,a,u,s,c,l,f,h){Pl(or,Tl,Gs(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h),!0)}function uf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p){Pl(or,Tl,Ks(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h,d,p),!0)}function sf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y){Pl(or,Tl,Ys(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y),!0)}function cf(e){Pl(or,Tl,Vs(ht(),e),!0)}function lf(e,t,n){Ol(Ws(ht(),e,t,n))}function ff(e,t,n,r,i){Ol(Us(ht(),e,t,n,r,i))}function hf(e,t,n,r,i,o,a){Ol(zs(ht(),e,t,n,r,i,o,a))}function df(e,t,n,r,i,o,a,u,s){Ol(qs(ht(),e,t,n,r,i,o,a,u,s))}function pf(e,t,n,r,i,o,a,u,s,c,l){Ol(Hs(ht(),e,t,n,r,i,o,a,u,s,c,l))}function vf(e,t,n,r,i,o,a,u,s,c,l,f,h){Ol(Gs(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h))}function yf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p){Ol(Ks(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h,d,p))}function mf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y){Ol(Ys(ht(),e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y))}function gf(e){Ol(Vs(ht(),e))}function bf(e,t,n,r,i){return Ml(e,Ws(ht(),t,n,r),i,!1),bf}function wf(e,t,n,r,i,o,a){return Ml(e,Us(ht(),t,n,r,i,o),a,!1),wf}function _f(e,t,n,r,i,o,a,u,s){return Ml(e,zs(ht(),t,n,r,i,o,a,u),s,!1),_f}function xf(e,t,n,r,i,o,a,u,s,c,l){return Ml(e,qs(ht(),t,n,r,i,o,a,u,s,c),l,!1),xf}function kf(e,t,n,r,i,o,a,u,s,c,l,f,h){return Ml(e,Hs(ht(),t,n,r,i,o,a,u,s,c,l,f),h,!1),kf}function Cf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p){return Ml(e,Gs(ht(),t,n,r,i,o,a,u,s,c,l,f,h,d),p,!1),Cf}function Sf(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y){return Ml(e,Ks(ht(),t,n,r,i,o,a,u,s,c,l,f,h,d,p,v),y,!1),Sf}function Ef(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g){return Ml(e,Ys(ht(),t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m),g,!1),Ef}function Af(e,t,n){return Ml(e,Vs(ht(),t),n,!1),Af}function Of(e,t,n){var r=ht();return Fs(r,Et(),t)&&Xa(dt(),Ht(),r,e,t,r[11],n,!0),Of}function Df(e,t,n){var r=ht();if(Fs(r,Et(),t)){var i=dt(),o=Ht();Xa(i,o,r,e,t,Cu(Tt(i.data),o,r),n,!0)}return Df}var If=void 0,Tf=["en",[["a","p"],["AM","PM"],If],[["AM","PM"],If,If],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],If,[["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"]],If,[["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}",If,"{1} 'at' {0}",If],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Mf={};function Pf(e,t,n){"string"!=typeof t&&(n=t,t=e[Bf.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Mf[t]=e,n&&(Mf[t][Bf.ExtraData]=n)}function Rf(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=jf(t);if(n)return n;var r=t.split("-")[0];if(n=jf(r))return n;if("en"===r)return Tf;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Ff(e){return Rf(e)[Bf.CurrencyCode]||null}function Nf(e){return Rf(e)[Bf.PluralCase]}function jf(e){return e in Mf||(Mf[e]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[e]),Mf[e]}function Lf(){Mf={}}var Bf=((Bf=Bf||{})[Bf.LocaleId=0]="LocaleId",Bf[Bf.DayPeriodsFormat=1]="DayPeriodsFormat",Bf[Bf.DayPeriodsStandalone=2]="DayPeriodsStandalone",Bf[Bf.DaysFormat=3]="DaysFormat",Bf[Bf.DaysStandalone=4]="DaysStandalone",Bf[Bf.MonthsFormat=5]="MonthsFormat",Bf[Bf.MonthsStandalone=6]="MonthsStandalone",Bf[Bf.Eras=7]="Eras",Bf[Bf.FirstDayOfWeek=8]="FirstDayOfWeek",Bf[Bf.WeekendRange=9]="WeekendRange",Bf[Bf.DateFormat=10]="DateFormat",Bf[Bf.TimeFormat=11]="TimeFormat",Bf[Bf.DateTimeFormat=12]="DateTimeFormat",Bf[Bf.NumberSymbols=13]="NumberSymbols",Bf[Bf.NumberFormats=14]="NumberFormats",Bf[Bf.CurrencyCode=15]="CurrencyCode",Bf[Bf.CurrencySymbol=16]="CurrencySymbol",Bf[Bf.CurrencyName=17]="CurrencyName",Bf[Bf.Currencies=18]="Currencies",Bf[Bf.Directionality=19]="Directionality",Bf[Bf.PluralCase=20]="PluralCase",Bf[Bf.ExtraData=21]="ExtraData",Bf),Vf=["zero","one","two","few","many"],Wf="en-US",Uf="USD",zf={marker:"element"},qf={marker:"ICU"},Hf=((Hf=Hf||{})[Hf.SHIFT=2]="SHIFT",Hf[Hf.APPEND_EAGERLY=1]="APPEND_EAGERLY",Hf[Hf.COMMENT=2]="COMMENT",Hf),Gf=Wf;function Kf(e){(function(e,t){null==e&&T("Expected localeId to be defined",e,null,"!=")})(e),"string"==typeof e&&(Gf=e.toLowerCase().replace(/_/g,"-"))}function Yf(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Ti(e,0,n):Qe(n[i])}function $f(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,u=null;if(3&t.type||(u=a,a=i),null!==a&&0==(2&t.flags))for(var s=1;s<o.length;s++)Ei(e,a,n[o[s]],u,!1)}}function Zf(e,t){if(e.push(t),e.length>1)for(var n=e.length-2;n>=0;n--){var r=e[n];Qf(r)||Xf(r,t)&&null===Jf(r)&&eh(r,t.index)}}function Qf(e){return!(64&e.type)}function Xf(e,t){return Qf(t)||e.index>t.index}function Jf(e){var t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function eh(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ni(Yf,$f),e.insertBeforeIndex=t)}function th(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function nh(e,t,n){var r=La(e,n,64,null,null);return Zf(t,r),r}function rh(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function ih(e){return e>>>17}function oh(e){return(131070&e)>>>1}var ah=0,uh=0;function sh(e,t,n,r){for(var i,o=n[11],a=null,u=0;u<t.length;u++){var s=t[u];if("string"==typeof s){var c=t[++u];null===n[c]&&(n[c]=yi(o,s))}else if("number"==typeof s)switch(1&s){case 0:var l=ih(s),f=void 0,h=void 0;if(null===a&&(a=l,i=Di(o,r)),l===a?(f=r,h=i):(f=null,h=Qe(n[l])),null!==h){var d=oh(s);Ei(o,h,n[d],f,!1);var p=th(e,d);if(null!==p&&"object"==typeof p){var v=rh(p,n);null!==v&&sh(e,p.create[v],n,n[p.anchorIdx])}}break;case 1:var y=t[++u],m=t[++u];su(o,Xe(s>>>1,n),null,null,y,m,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(s,'"'))}else switch(s){case qf:var g=t[++u],b=t[++u];null===n[b]&&ni(n[b]=gi(o,g),n);break;case zf:var w=t[++u],_=t[++u];null===n[_]&&ni(n[_]=bi(o,w,null),n)}}}function ch(e,t,n,r,i){for(var o=0;o<n.length;o++){var a=n[o],u=n[++o];if(a&i)for(var s="",c=o+1;c<=o+u;c++){var l=n[c];if("string"==typeof l)s+=l;else if("number"==typeof l)if(l<0)s+=O(t[r-l]);else{var f=l>>>2;switch(3&l){case 1:var h=n[++c],d=n[++c],p=e.data[f];"string"==typeof p?su(t[11],t[f],null,p,h,s,d):Xa(e,p,t,h,s,t[11],d,!1);break;case 0:var v=t[f];null!==v&&mi(t[11],v,s);break;case 2:fh(e,th(e,f),t,s);break;case 3:lh(e,th(e,f),r,t)}}}else{var y=n[o+1];if(y>0&&3==(3&y)){var m=th(e,y>>>2);t[m.currentCaseLViewIndex]<0&&lh(e,m,r,t)}}o+=u}}function lh(e,t,n,r){var i=r[t.currentCaseLViewIndex];if(null!==i){var o=ah;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),ch(e,r,t.update[i],n,o)}}function fh(e,t,n,r){var i=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){var n=Nf(t)(parseInt(e,10)),r=Vf[n];return void 0!==r?r:"other"}(t,Gf);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);
1if(rh(t,n)!==i&&(hh(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){var o=n[t.anchorIdx];o&&sh(e,t.create[i],n,o)}}function hh(e,t,n){var r=rh(t,n);if(null!==r)for(var i=t.remove[r],o=0;o<i.length;o++){var a=i[o];if(a>0){var u=Xe(a,n);null!==u&&Wi(n[11],u)}else hh(e,th(e,~a),n)}}function dh(){var e,t,n=[],r=-1;function i(e,n){r=0;var i=rh(e,n);t=null!==i?e.remove[i]:re}function o(){if(r<t.length){var a=t[r++];return a>0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}var ph=/\ufffd(\d+):?\d*\ufffd/gi,vh=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,yh=/\ufffd(\d+)\ufffd/,mh=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,gh=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bh=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,wh=/\uE500/g;function _h(e,t,n,r,i,o,a){var u=Ba(e,r,1,null),s=u<<Hf.SHIFT,c=mt();t===c&&(c=null),null===c&&(s|=Hf.APPEND_EAGERLY),a&&(s|=Hf.COMMENT,function(e){void 0===ei&&(ei=e())}(dh)),i.push(s,null===o?"":o);var l=La(e,u,a?32:1,null===o?"":o,null);Zf(n,l);var f=l.index;return gt(l,!1),null!==c&&t!==c&&function(e,t){var n=e.insertBeforeIndex;null===n?(Ni(Yf,$f),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){true!=e&&T("Expecting array here",e,true,"==")}(Array.isArray(n)),n.push(t))}(c,f),l}function xh(e,t,n,r,i,o,a){var u=a.match(ph),s=_h(e,t,n,o,r,u?null:a,!1);u&&kh(i,a,s.index,null,0,null)}function kh(e,t,n,r,i,o){var a=e.length,u=a+1;e.push(null,null);for(var s=a+2,c=t.split(ph),l=0,f=0;f<c.length;f++){var h=c[f];if(1&f){var d=i+parseInt(h,10);e.push(-1-d),l|=Sh(d)}else""!==h&&e.push(h)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[a]=l,e[u]=e.length-s,l}function Ch(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];"number"==typeof r&&r<0&&t++}return t}function Sh(e){return 1<<Math.min(e,31)}function Eh(e){for(var t,n,r="",i=0,o=!1;null!==(t=gh.exec(e));)o?t[0]==="\ufffd/*".concat(n,"\ufffd")&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i)}function Ah(e,t,n,r,i,o){var a=0,u={type:i.type,currentCaseLViewIndex:Ba(e,t,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(Sh(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,i,o),function(e,t,n){var r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,o,u);for(var s=i.values,c=0;c<s.length;c++){for(var l=s[c],f=[],h=0;h<l.length;h++){var d=l[h];if("string"!=typeof d){var p=f.push(d)-1;l[h]="\x3c!--\ufffd".concat(p,"\ufffd--\x3e")}}a=Ih(e,u,t,n,r,i.cases[c],l.join(""),f)|a}a&&function(e,t,n){e.push(t,1,n<<2|3)}(n,a,o)}function Oh(e){for(var t=[],n=[],r=1,i=0,o=Dh(e=e.replace(mh,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""})),a=0;a<o.length;){var u=o[a++].trim();1===r&&(u=u.replace(/\s*(?:=)?(\w+)\s*/,"$1")),u.length&&t.push(u);var s=Dh(o[a++]);t.length>n.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function Dh(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var u=e.substring(n,a);mh.test(u)?i.push(Oh(u)):i.push(u),n=a+1}}else{if(0==r.length){var s=e.substring(n,a);i.push(s),n=a+1}r.push("{")}}var c=e.substring(n);return i.push(c),i}function Ih(e,t,n,r,i,o,a,u){var s=[],c=[],l=[];t.cases.push(o),t.create.push(s),t.remove.push(c),t.update.push(l);var f=vo(Ye()).getInertBodyElement(a),h=Lo(f)||f;return h?Th(e,t,n,r,s,c,l,h,i,u,0):0}function Th(e,t,n,r,i,o,a,u,s,c,l){for(var f=0,h=u.firstChild;h;){var d=Ba(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:var p=h,v=p.tagName.toLowerCase();if(Oo.hasOwnProperty(v)){Rh(i,zf,v,s,d),e.data[d]=v;for(var y=p.attributes,m=0;m<y.length;m++){var g=y.item(m),b=g.name.toLowerCase();g.value.match(ph)?To.hasOwnProperty(b)&&kh(a,g.value,d,g.name,0,Do[b]?wo:Io[b]?_o:null):Fh(i,d,g)}f=Th(e,t,n,r,i,o,a,h,d,c,l+1)|f,Mh(o,d,l)}break;case Node.TEXT_NODE:var w=h.textContent||"",_=w.match(ph);Rh(i,null,_?"":w,s,d),Mh(o,d,l),_&&(f=kh(a,w,d,null,0,null)|f);break;case Node.COMMENT_NODE:var x=yh.exec(h.textContent||"");if(x){var k=c[parseInt(x[1],10)];Rh(i,qf,"",s,d),Ah(e,n,r,s,k,d),Ph(o,d,l)}}h=h.nextSibling}return f}function Mh(e,t,n){0===n&&e.push(t)}function Ph(e,t,n){0===n&&(e.push(~t),e.push(t))}function Rh(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,function(e,t,n){return 0|t<<17|n<<1}(0,r,i))}function Fh(e,t,n){e.push(t<<1|1,n.name,n.value)}var Nh=/\[(\ufffd.+?\ufffd?)\]/,jh=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Lh=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Bh=/{([A-Z0-9_]+)}/g,Vh=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Wh=/\/\*/,Uh=/\d+\:(\d+)/;function zh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(Nh.test(e)){var r={},i=[0];n=n.replace(jh,function(e,t,n){var o=t||n,a=r[o]||[];if(a.length||(o.split("|").forEach(function(e){var t=e.match(Uh),n=t?parseInt(t[1],10):0,r=Wh.test(e);a.push([n,r,e])}),r[o]=a),!a.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(o));for(var u=i[i.length-1],s=0,c=0;c<a.length;c++)if(a[c][0]===u){s=c;break}var l=h(a[s],3),f=l[0],d=l[1],p=l[2];return d?i.pop():u!==f&&i.push(f),a.splice(s,1),p})}return Object.keys(t).length&&(n=n.replace(Lh,function(e,n,r,i,o,a){return t.hasOwnProperty(r)?"".concat(n).concat(t[r]).concat(a):e}),n=n.replace(Bh,function(e,n){return t.hasOwnProperty(n)?t[n]:e}),n=n.replace(Vh,function(e,n){if(t.hasOwnProperty(n)){var r=t[n];if(!r.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(e," with key: ").concat(n));return r.shift()}return e})),n}function qh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=dt(),i=ht(),o=20+e,a=ot(r.consts,t),u=mt();r.firstCreatePass&&function(e,t,n,r,i,o){var a=mt(),u=[],s=[],c=[[]];i=function(e,t){if(function(e){return-1===e}(t))return Eh(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Eh(e.substring(n,r))}(i,o);for(var l=function(e){return e.replace(wh," ")}(i).split(bh),f=0;f<l.length;f++){var h=l[f];if(0==(1&f))for(var d=Dh(h),p=0;p<d.length;p++){var v=d[p];if(0==(1&p)){var y=v;""!==y&&xh(e,a,c[0],u,s,n,y)}else{var m=v;if("object"!=typeof m)throw new Error('Unable to parse ICU expression in "'.concat(i,'" message.'));Ah(e,n,s,t,m,_h(e,a,c[0],n,u,"",!0).index)}}
1else{var g=47===h.charCodeAt(0),b=(h.charCodeAt(g?1:0),20+Number.parseInt(h.substring(g?2:1)));if(g)c.shift(),gt(mt(),!1);else{var w=nh(e,c[0],b);c.unshift([]),gt(w,!0)}}}e.data[r]={create:u,update:s}}(r,null===u?0:u.index,i,o,a,n);var s=r.data[o],c=Si(r,u===i[6]?null:u,i);(function(e,t,n,r){for(var i=e[11],o=0;o<t.length;o++){var a=t[o++],u=t[o],s=(a&Hf.COMMENT)===Hf.COMMENT,c=(a&Hf.APPEND_EAGERLY)===Hf.APPEND_EAGERLY,l=a>>>Hf.SHIFT,f=e[l];null===f&&(f=e[l]=s?i.createComment(u):yi(i,u)),c&&null!==n&&Ei(i,n,f,r,!1)}})(i,s.create,c,u&&8&u.type?i[u.index]:null),Ot(!0)}function Hh(){Ot(!1)}function Gh(e,t,n){qh(e,t,n),Hh()}function Kh(e,t){var n=dt();!function(e,t,n){var r=vt().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(var o=0;o<n.length;o+=2){var a=n[o],u=n[o+1];if(""!==u){if(vh.test(u))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(u,'".'));kh(i,u,r,a,Ch(i),null)}}e.data[t]=i}}(n,e+20,ot(n.consts,t))}function Yh(e){return function(e){e&&(ah|=1<<Math.min(uh,31)),uh++}(Fs(ht(),Et(),e)),Yh}function $h(e){!function(e,t,n){if(uh>0){var r=e.data[n];ch(e,t,Array.isArray(r)?r:r.update,Ct()-uh-1,ah)}ah=0,uh=0}
1(dt(),ht(),e+20)}function Zh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zh(e,t)}function Qh(e,t,n,r,i){if(e=k(e),Array.isArray(e))for(var o=0;o<e.length;o++)Qh(e[o],t,n,r,i);else{var a=dt(),u=ht(),s=Hu(e)?e:k(e.provide),c=Uu(e),l=vt(),f=1048575&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>20;if(Hu(e)||!e.multi){var p=new tn(c,i,Nc),v=ed(s,t,i?f:f+d,h);-1===v?(gn(pn(l,u),a,s),Xh(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(p),u.push(p)):(n[v]=p,u[v]=p)}else{var y=ed(s,t,f+d,h),m=ed(s,t,f,f+d),g=y>=0&&n[y],b=m>=0&&n[m];if(i&&!b||!i&&!g){gn(pn(l,u),a,s);var w=function(e,t,n,r,i){var o=new tn(e,n,Nc);return o.multi=[],o.index=t,o.componentProviders=0,Jh(o,i,r&&!n),o}(i?nd:td,n.length,i,r,c);!i&&b&&(n[m].providerFactory=w),Xh(a,e,t.length,0),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(w),u.push(w)}else Xh(a,e,y>-1?y:m,Jh(n[i?m:y],c,!i&&r));!i&&r&&b&&n[m].componentProviders++}}}function Xh(e,t,n,r){var i=Hu(t);if(i||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function Jh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ed(e,t,n,r){for(var i=n;i<r;i++)if(t[i]===e)return i;return-1}function td(e,t,n,r){return rd(this.multi,[])}function nd(e,t,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,u=An(n,n[1],this.providerFactory.index,r);rd(o,i=u.slice(0,a));for(var s=a;s<u.length;s++)i.push(u[s])}else rd(o,i=[]);return i}function rd(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function id(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=dt();if(r.firstCreatePass){var i=Te(e);Qh(n,r.data,r.blueprint,i,!0),Qh(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var od=C(function e(){E(this,e)}),ad=C(function e(){E(this,e)});function ud(e){var t=Error("No component factory found for ".concat(y(e),". Did you add it to @NgModule.entryComponents?"));return t[sd]=e,t}var sd="ngComponent",cd=function(){return C(function e(){E(this,e)},[{key:"resolveComponentFactory",value:function(e){throw ud(e)}}])}(),ld=function(){var e=C(function e(){E(this,e)});return e.NULL=new cd,e}(),fd=function(){return C(function e(t,n,r){E(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i<t.length;i++){var o=t[i];this._factories.set(o.componentType,o)}},[{key:"resolveComponentFactory",value:function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw ud(e);return new hd(t,this._ngModule)}}])}(),hd=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return _(t,e),C(t,[{key:"create",value:function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}])}(ad);function dd(){}function pd(){return vd(vt(),ht())}function vd(e,t){return new gd(Je(e,t))}var yd=pd,md=yd,gd=function(){var e=C(function e(t){E(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=md,e}();function bd(e){return e instanceof gd?e.nativeElement:e}var wd=C(function e(){E(this,e)}),_d=function(){var e=C(function e(){E(this,e)});return e.__NG_ELEMENT_ID__=function(){return kd()},e}(),xd=Cd,kd=xd;function Cd(){var e=ht(),t=nt(vt().index,e);return function(e){return e[11]}(Ee(t)?t:e)}var Sd=function(){var e=C(function e(){E(this,e)});return e.\u0275prov=M({token:e,providedIn:"root",factory:function(){return null}}),e}(),Ed=C(function e(t){E(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),Ad=new Ed("12.2.17"),Od=function(){return C(function e(){E(this,e)},[{key:"supports",value:function(e){return Ts(e)}},{key:"create",value:function(e){return new Id(e)}}])}(),Dd=function(e,t){return t},Id=function(){return C(function e(t){E(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Dd}
vendor: 12,574 bytes, line 1
1,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<Rd(n,r,i)?t:n,a=Rd(o,r,i),u=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var s=a-r,c=u-r;if(s!=c){for(var l=0;l<s;l++){var f=l<i.length?i[l]:i[l]=0,h=f+l;c<=h&&h<s&&(i[l]=f+1)}i[o.previousIndex]=c-s}}a!==u&&e(o,a,u)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Ts(e))throw new Error("Error trying to diff '".concat(y(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var u=0;u<this.length;u++)r=e[u],i=this._trackByFn(u,r),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,u)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[Os()]();!(r=i.next()).done;)t(r.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new Td(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Pd),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}])}(),Td=C(function e(t,n){E(this,e),this.item=t,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}),Md=function(){return C(function e(){E(this,e),this._head=null,this._tail=null},[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}])}(),Pd=function(){return C(function e(){E(this,e),this.map=new Map},[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Md,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}])}();function Rd(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Fd=function(){return C(function e(){E(this,e)},[{key:"supports",value:function(e){return e instanceof Map||Ms(e)}},{key:"create",value:function(){return new Nd}}])}(),Nd=function(){return C(function e(){E(this,e),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},[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Ms(e)))throw new Error("Error trying to diff '".concat(y(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new jd(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}])}(),jd=C(function e(t){E(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function Ld(){return new Bd([new Od])}var Bd=function(){var e=function(){function e(t){E(this,e),this.factories=t}return C(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(null!=t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ld())},deps:[[e,new Fr,new Pr]]}}}])}();return e.\u0275prov=M({token:e,providedIn:"root",factory:Ld}),e}();function Vd(){return new Wd([new Fd])}var Wd=function(){var e=function(){function e(t){E(this,e),this.factories=t}return C(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Vd())},deps:[[e,new Fr,new Pr]]}}}])}();return e.\u0275prov=M({token:e,providedIn:"root",factory:Vd}),e}();function Ud(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(Qe(o)),Ae(o))for(var a=10;a<o.length;a++){var u=o[a],s=u[1].firstChild;
vendor: 4,776 bytes, line 1
1null!==s&&Ud(u[1],u,s,r)}var l=n.type;if(8&l)Ud(e,t,n.child,r);else if(32&l)for(var f=ci(n,t),h=void 0;h=f();)r.push(h);else if(16&l){var d=Bi(t,n);if(Array.isArray(d))r.push.apply(r,c(d));else{var p=li(t[16]);Ud(p[1],p,d,r,!0)}}n=i?n.projectionNext:n.next}return r}var zd=function(){return C(function e(t,n){E(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1},[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Ud(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(Ae(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(_i(e,n),rr(t,n))}this._attachedToViewContainer=!1}xi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Za(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){yu(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){gu(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){xt(!0);try{gu(e,t,n)}finally{xt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,zi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}])}(),qd=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e]))._view=e,n}return _(t,e),C(t,[{key:"detectChanges",value:function(){bu(this._view)}},{key:"checkNoChanges",value:function(){!function(e){xt(!0);try{bu(e)}finally{xt(!1)}}(this._view)}},{key:"context",get:function(){return null}}])}(zd),Hd=Yd,Gd=Hd,Kd=function(){var e=C(function e(){E(this,e)});return e.__NG_ELEMENT_ID__=Gd,e}();function Yd(e){return function(e,t,n){if(De(e)&&!n){var r=nt(e.index,t);return new zd(r,r)}return 47&e.type?new zd(t[16],t):null}(vt(),ht(),16==(16&e))}var $d=[new Fd],Zd=new Bd([new Od]),Qd=new Wd($d),Xd=np,Jd=Xd,ep=function(){var e=C(function e(){E(this,e)});return e.__NG_ELEMENT_ID__=Jd,e}(),tp=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t))._declarationLView=e,i._declarationTContainer=n,i.elementRef=r,i}return _(t,e),C(t,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Na(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Va(t,n,e),new zd(n)}}])}(ep);function np(){return rp(vt(),ht())}function rp(e,t){return 4&e.type?new tp(t,e,vd(e,t)):null}var ip=C(function e(){E(this,e)}),op=C(function e(){E(this,e)}),ap=cp,up=ap,sp=function(){var e=C(function e(){E(this,e)});return e.__NG_ELEMENT_ID__=up,e}();function cp(){return dp(vt(),ht())}var lp=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t))._lContainer=e,i._hostTNode=n,i._hostLView=r,i}return _(t,e),C(t,[{key:"element",get:function(){return vd(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new In(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=mn(this._hostTNode,this._hostLView);if(sn(e)){var t=ln(e,this._hostLView),n=cn(e);return new In(t[1].data[n+8],t)}return new In(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=fp(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ip,null);a&&(i=a)}var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(Ae(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new lp(o,o[6],o[3]);a.detach(a.indexOf(e))}}var u=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],nr(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];
1t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var u=t[19];null!==u&&u.insertView(e),t[2]|=128}(r,n,s,u);var c=Vi(u,s),l=n[11],f=Di(l,s[7]);return null!==f&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,zi(e,r,n,1,i,o)}(r,s[6],l,n,f,c),e.attachToViewContainerRef(),nr(hp(s),u,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=fp(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=_i(this._lContainer,t);n&&(rr(hp(this._lContainer),t),xi(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=_i(this._lContainer,t);return n&&null!=rr(hp(this._lContainer),t)?new zd(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}])}(sp);function fp(e){return e[8]}function hp(e){return e[8]||(e[8]=[])}function dp(e,t){var n,r=t[e.index];if(Ae(r))n=r;else{var i;if(8&e.type)i=Qe(r);else{var o=t[11];i=o.createComment("");var a=Je(e,t);Ei(o,Di(o,a),i,function(e,t){return $e(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=fu(r,t,i,e),vu(t,n)}return new lp(n,e,t)}function pp(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '".concat(t,"'. Current value: '").concat(n,"'.");return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return vp(n,t),n}(i,e)}function vp(e,t){e[Zo]=t,e[Xo]=t.logError.bind(t)}function yp(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: ".concat(e))}function mp(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function gp(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function bp(e,t){return e.nodes[t]}function wp(e,t){return e.nodes[t]}function _p(e,t){return e.nodes[t]}function xp(e,t){return e.nodes[t]}function kp(e,t){return e.nodes[t]}var Cp=C(function e(){E(this,e)}),Sp={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ep=function(){},Ap=new Map;function Op(e){var t=Ap.get(e);return t||(t=y(e)+"_"+Ap.size,Ap.set(e,t)),t}function Dp(e,t,n,r){if(Is.isWrapped(r)){r=Is.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=Is.unwrap(e.oldValues[i]);e.oldValues[i]=new Is(o)}return r}var Ip="$$undefined",Tp="$$empty";function Mp(e){return{id:Ip,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Pp=0;function Rp(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function Fp(e,t,n,r){return!!Rp(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Np(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Ds(i,r)){var o=t.bindings[n].name;throw pp(Sp.createDebugContext(e,t.nodeIndex),"".concat(o,": ").concat(i),"".concat(o,": ").concat(r),0!=(1&e.state))}}function jp(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Lp(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Bp(e,t,n,r){try{return jp(33554432&e.def.nodes[t].flags?wp(e,t).componentView:e),Sp.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function Vp(e){return e.parent?wp(e.parent,e.parentNodeDef.nodeIndex):null}function Wp(e){return e.parent?e.parentNodeDef.parent:null}function Up(e,t){switch(201347067&t.flags){case 1:return wp(e,t.nodeIndex).renderElement;case 2:return bp(e,t.nodeIndex).renderText}}function zp(e,t){return e?"".concat(e,":").concat(t):t}function qp(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Hp(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Gp(e){return 1<<e%32}function Kp(e){var t={},n=0,r={};return e&&e.forEach(function(e){var i=h(e,2),o=i[0],a=i[1];"number"==typeof o?(t[o]=a,n|=Gp(o)):r[o]=a}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Yp(e,t){return e.map(function(e){var n,r,i;return Array.isArray(e)?(i=(n=h(e,2))[0],r=n[1]):(i=0,r=e),r&&("function"==typeof r||"object"==typeof r)&&t&&Object.defineProperty(r,wr,{value:t,configurable:!0}),{flags:i,token:r,tokenKey:Op(r)}})}function $p(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===Q.ShadowDom||1===r.element.componentRendererType.encapsulation)?wp(e,n.renderParent.
1nodeIndex).renderElement:void 0:t}var Zp=new WeakMap;function Qp(e){var t=Zp.get(e);return t||((t=e(function(){return Ep})).factory=e,Zp.set(e,t)),t}function Xp(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(Up(e,e.def.lastRenderRootNode))),Jp(e,t,0,e.def.nodes.length-1,n,r,i)}function Jp(e,t,n,r,i,o,a){for(var u=n;u<=r;u++){var s=e.def.nodes[u];11&s.flags&&tv(e,s,t,i,o,a),u+=s.childCount}}function ev(e,t,n,r,i,o){for(var a=e;a&&!qp(a);)a=a.parent;for(var u=a.parent,s=Wp(a),c=s.nodeIndex+s.childCount,l=s.nodeIndex+1;l<=c;l++){var f=u.def.nodes[l];f.ngContentIndex===t&&tv(u,f,n,r,i,o),l+=f.childCount}if(!u.parent){var h=e.root.projectableNodes[t];if(h)for(var d=0;d<h.length;d++)nv(e,h[d],n,r,i,o)}}function tv(e,t,n,r,i,o){if(8&t.flags)ev(e,t.ngContent.index,n,r,i,o);else{var a=Up(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&nv(e,a,n,r,i,o),32&t.bindingFlags&&nv(wp(e,t.nodeIndex).componentView,a,n,r,i,o)):nv(e,a,n,r,i,o),16777216&t.flags)for(var u=wp(e,t.nodeIndex).viewContainer._embeddedViews,s=0;s<u.length;s++)Xp(u[s],n,r,i,o);1&t.flags&&!t.element.name&&Jp(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function nv(e,t,n,r,i,o){var a=e.renderer;switch(n){case 1:a.appendChild(r,t);break;case 2:a.insertBefore(r,t,i);break;case 3:a.removeChild(r,t);break;case 0:o.push(t)}}var rv=/^:([^:]+):(.+)$/;function iv(e){if(":"===e[0]){var t=e.match(rv);return[t[1],t[2]]}return["",e]}function ov(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function av(e,t){for(var n="",r=0;r<2*e;r+=2)n=n+t[r]+sv(t[r+1]);return n+t[2*e]}function uv(e,t,n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b){switch(e){case 1:return t+sv(n)+r;case 2:return t+sv(n)+r+sv(i)+o;case 3:return t+sv(n)+r+sv(i)+o+sv(a)+u;case 4:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c;case 5:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c+sv(l)+f;case 6:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c+sv(l)+f+sv(h)+d;case 7:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c+sv(l)+f+sv(h)+d+sv(p)+v;case 8:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c+sv(l)+f+sv(h)+d+sv(p)+v+sv(y)+m;case 9:return t+sv(n)+r+sv(i)+o+sv(a)+u+sv(s)+c+sv(l)+f+sv(h)+d+sv(p)+v+sv(y)+m+sv(g)+b;default:throw new Error("Does not support more than 9 expressions")}}function sv(e){return null!=e?e.toString():""}var cv={},lv={},fv=Op($u),hv=Op(Mu),dv=Op(ip);function pv(e,t,n,r){return n=k(n),{index:-1,deps:Yp(r,y(t)),flags:e,token:t,value:n}}function vv(e){for(var t={},n=[],r=null,i=0;i<e.length;i++){var o=e[i];o.token===Ru&&(r=o.value),1073741824&o.flags&&n.push(o.token),o.index=i,t[Op(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,scope:r}}function yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$u.THROW_IF_NOT_FOUND,r=xr(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var i=t.tokenKey;switch(i){case fv:case hv:case dv:return e}var o,a=e._def.providersByKey[i];if(a){var u=e._providers[a.index];return void 0===u&&(u=e._providers[a.index]=mv(e,a)),u===lv?void 0:u}if((o=F(t.token))&&function(e,t){var n=k(t.providedIn);return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,o)){var s=e._providers.length;return e._def.providers[s]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:s,token:t.token},e._providers[s]=lv,e._providers[s]=mv(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{xr(r)}}function mv(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(yv(e,n[0]));case 2:return new t(yv(e,n[0]),yv(e,n[1]));case 3:return new t(yv(e,n[0]),yv(e,n[1]),yv(e,n[2]));default:for(var i=[],o=0;o<r;o++)i[o]=yv(e,n[o]);return s(t,i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(yv(e,n[0]));case 2:return t(yv(e,n[0]),yv(e,n[1]));case 3:return t(yv(e,n[0]),yv(e,n[1]),yv(e,n[2]));default:for(var i=[],o=0;o<r;o++)i[o]=yv(e,n[o]);return t.apply(void 0,i)}}(e,t.value,t.deps);break;case 2048:n=yv(e,t.deps[0]);break;case 256:n=t.value}return n!==lv&&null!==n&&"object"==typeof n&&!(131072&t.flags)&&"function"==typeof n.ngOnDestroy&&(t.flags|=131072),void 0===n?lv:n}
1function gv(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,rr(n,t),Sp.dirtyParentQueries(r),wv(r),r}function bv(e,t,n){var r=t?Up(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Xp(n,2,i,o,void 0)}function wv(e){Xp(e,3,null,null,void 0)}var _v={};function xv(e,t,n,r,i,o){return new Cv(e,t,n,r,i,o)}function kv(e){return e.viewDefFactory}var Cv=function(e){function t(e,n,r,i,o,a){var u;return E(this,t),(u=m(this,t)).selector=e,u.componentType=n,u._inputs=i,u._outputs=o,u.ngContentSelectors=a,u.viewDefFactory=r,u}return _(t,e),C(t,[{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}},{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=Qp(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Sp.createRootView(e,t||[],n,i,r,_v),u=_p(a,o).instance;return n&&a.renderer.setAttribute(wp(a,0).renderElement,"ng-version",Ad.full),new Sv(a,new Dv(a),u)}}])}(ad),Sv=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t))._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return _(t,e),C(t,[{key:"location",get:function(){return new gd(wp(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Pv(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}},{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}}])}(od);function Ev(e,t,n){return new Av(e,t,n)}var Av=function(){return C(function e(t,n,r){E(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]},[{key:"element",get:function(){return new gd(this._data.renderElement)}},{key:"injector",get:function(){return new Pv(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Wp(e),e=e.parent;return e?new Pv(e,t):new Pv(this._view,null)}},{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=gv(this._data,e);Sp.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Dv(t);return n.attachToViewContainerRef(this),n}return null}},{key:"length",get:function(){return this._embeddedViews.length}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;!i&&!(e instanceof hd)&&(i=o.get(ip));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e;return function(e,t,n,r){var i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,nr(i,n,r),function(e,t){var n=Vp(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(t,r),Sp.dirtyParentQueries(r),bv(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,n){var r=e.viewContainer._embeddedViews,i=r[t];rr(r,t),null==n&&(n=r.length),nr(r,n,i),Sp.dirtyParentQueries(i),wv(i),bv(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=gv(this._data,e);t&&Sp.destroyView(t)}},{key:"detach",value:function(e){var t=gv(this._data,e);return t?new Dv(t):null}}])}();function Ov(e){return new Dv(e)}var Dv=function(){return C(function e(t){E(this,e),this._view=t,this._viewContainerRef
1=null,this._appRef=null},[{key:"rootNodes",get:function(){return function(e){var t=[];return Xp(e,0,void 0,void 0,t),t}(this._view)}},{key:"context",get:function(){return this._view.context},set:function(e){this._view.context=e}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}},{key:"markForCheck",value:function(){jp(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Sp.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Sp.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Sp.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,wv(this._view),Sp.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}])}();function Iv(e,t){return new Tv(e,t)}var Tv=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t))._parentView=e,r._def=n,r}return _(t,e),C(t,[{key:"createEmbeddedView",value:function(e){return new Dv(Sp.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new gd(wp(this._parentView,this._def.nodeIndex).renderElement)}}])}(ep);function Mv(e,t){return new Pv(e,t)}var Pv=function(){return C(function e(t,n){E(this,e),this.view=t,this.elDef=n},[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$u.THROW_IF_NOT_FOUND;return Sp.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Op(e)},t)}}])}();function Rv(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=wp(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return bp(e,n.nodeIndex).renderText;if(20240&n.flags)return _p(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function Fv(e,t,n,r){return new Nv(e,t,n,r)}var Nv=function(){return C(function e(t,n,r,i){E(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=ir(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=mv(e,i))}}(this)},[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$u.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default,r=0;return n&z.SkipSelf?r|=1:n&z.Self&&(r|=4),yv(this,{token:e,tokenKey:Op(e),flags:r},t)}},{key:"instance",get:function(){return this.get(this._moduleType)}},{key:"componentFactoryResolver",get:function(){return this.get(ld)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(y(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==lv){var a=o.ngOnDestroy;"function"==typeof a&&!r.has(o)&&(a.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(e){return e()})}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}}])}(),jv=Op(_d),Lv=Op(gd),Bv=Op(sp),Vv=Op(ep),Wv=Op(Kd),Uv=Op($u),zv=Op(Mu);function qv(e,t,n,r,i,o,a,u){var s=[];if(a)for(var c in a){var l=h(a[c],2),f=l[0],d=l[1];s[f]={flags:8,name:c,nonMinifiedName:d,ns:null,securityContext:null,suffix:null}}var p=[];if(u)for(var v in u)p.push({type:1,propName:v,target:null,eventName:u[v]});return Kv(e,t|=16384,n,r,i,i,o,s,p)}function Hv(e,t,n){return Kv(-1,e|=16,null,0,t,t,n)}function Gv(e,t,n,r,i){return Kv(-1,e,t,0,n,r,i)}function Kv(e,t,n,r,i,o,a,u,s){var c=Kp(n),l=c.matchedQueries,f=c.references,h=c.matchedQueryIds;s||(s=[]),u||(u=[]),o=k(o);var d=Yp(a,y(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,
vendor: 1,997 bytes, line 1
1checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:f,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:ov(u),outputs:s,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function Yv(e,t){return Xv(e,t)}function $v(e,t){for(var n=e;n.parent&&!qp(n);)n=n.parent;return Jv(n.parent,Wp(n),!0,t.provider.value,t.provider.deps)}function Zv(e,t){var n=Jv(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var i=t.outputs[r],o=n[i.propName];if(!$c(o))throw new Error("@Output ".concat(i.propName," not initialized in '").concat(n.constructor.name,"'."));var a=o.subscribe(Qv(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=a.unsubscribe.bind(a)}return n}function Qv(e,t,n){return function(r){return Bp(e,t,n,r)}}function Xv(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Jv(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(ty(e,t,n,i[0]));case 2:return r(ty(e,t,n,i[0]),ty(e,t,n,i[1]));case 3:return r(ty(e,t,n,i[0]),ty(e,t,n,i[1]),ty(e,t,n,i[2]));default:for(var a=[],u=0;u<o;u++)a.push(ty(e,t,n,i[u]));return r.apply(void 0,a)}}(e,t.parent,n,r.value,r.deps);case 2048:return ty(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Jv(e,t,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(ty(e,t,n,i[0]));case 2:return new r(ty(e,t,n,i[0]),ty(e,t,n,i[1]));case 3:return new r(ty(e,t,n,i[0]),ty(e,t,n,i[1]),ty(e,t,n,i[2]));default:for(var a=[],u=0;u<o;u++)a.push(ty(e,t,n,i[u]));return s(r,a)}}var ey={};function ty(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:$u.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===Wv&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;
1){if(t)switch(a){case jv:return ny(u,t,n).renderer;case Lv:return new gd(wp(u,t.nodeIndex).renderElement);case Bv:return wp(u,t.nodeIndex).viewContainer;case Vv:if(t.element.template)return wp(u,t.nodeIndex).template;break;case Wv:return Ov(ny(u,t,n));case Uv:case zv:return Mv(u,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var c=_p(u,s.nodeIndex);return c||(c={instance:Xv(u,s)},u.nodes[s.nodeIndex]=c),c.instance}}n=qp(u),t=Wp(u),u=u.parent,4&r.flags&&(u=null)}var l=o.root.injector.get(r.token,ey);return l!==ey||i===ey?l:o.root.ngModule.injector.get(r.token,i)}function ny(e,t,n){var r;if(n)r=wp(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!qp(r);)r=r.parent;return r}function ry(e,t,n,r,i,o){if(32768&n.flags){var a=wp(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=Is.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Re(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function iy(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&t&&ay(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&t&&(r=oy(e,a,t,r)),a=a.parent}}function oy(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&ay(e,i,o.flags&n,r++),i+=o.childCount}return r}function ay(e,t,n,r){var i=_p(e,t);if(i){var o=i.instance;!o||(Sp.setCurrentNode(e,t),1048576&n&&gp(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&gp(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}var uy=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).ngModule=e,n}return _(t,e),C(t,[{key:"resolveComponentFactory",value:function(e){var t=xe(e);return new ly(t,this.ngModule)}}])}(ld);function sy(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cy=new zn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return sa}}),ly=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).componentDef=e,r.ngModule=n,r.componentType=e.type,r.selector=e.selectors.map(Ca).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!n,r}return _(t,e),C(t,[{key:"inputs",get:function(){return sy(this.componentDef.inputs)}},{key:"outputs",get:function(){return sy(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,ey,i);return o!==ey||r===ey?o:t.get(n,r,i)}}}(e,r.injector):e,u=a.get(wd,Ze),s=a.get(Sd,null),c=u.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=n?$a(c,n,this.componentDef.encapsulation):bi(u.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?He:"math"===t?Ge:null}(l)),h=this.componentDef.onPush?576:528,d=vs(),p=Ya(0,null,null,1,0,null,null,null,null,null),v=Na(null,p,d,h,null,null,u,c,s,a);Nt(v);try{var y=ds(f,this.componentDef,v,u,c);if(f)if(n)nn(c,f,["ng-version",Ad.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!ba(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),g=m.attrs,b=m.classes;g&&nn(c,f,g),b&&b.length>0&&Gi(c,f,b.join(" "))}if(o=et(p,20),void 0!==t)for(var w=o.projection=[],_=0;_<this.ngContentSelectors.length;_++){var x=t[_];w.push(null!=x?Array.from(x):null)}i=ps(y,this.componentDef,v,d,[ys]),Va(p,v,null)}finally{Wt()}return new fy(this.componentType,i,vd(o,v),v,o)}}])}(ad),fy=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t)).location=r,a._rootLView=i,a._tNode=o,a.instance=n,a.hostView=a.changeDetectorRef=new qd(i),a.componentType=e,a}return _(t,e),C(t,[{key:"injector",get:function(){return new In(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}])}(od);function hy(e,t,n,r){return K(function(){var i,o=e;null!==t&&(o.hasOwnProperty("decorators")&&void 0!==o.decorators?(i=o.decorators).push.apply(i,c(t)):o.decorators=t),null!==n&&(o.ctorParameters=n),null!==r&&(o.propDecorators=o.hasOwnProperty("propDecorators")&&void 0!==o.propDecorators?Object.assign(Object.assign({},o.propDecorators),r):r)})}var dy=new Map;function py(e,t){var n=dy.get(e);vy(e,n&&n.moduleType,t.moduleType),dy.set(e,t)}
1function vy(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(y(t)," vs ").concat(y(t.name)))}function yy(e){var t=new Set;!function e(n){var r=Se(n,!0),i=r.id;null!==i&&(vy(i,dy.get(i),n),dy.set(i,n));var o,a=f(ha(r.imports));try{for(a.s();!(o=a.n()).done;){var u=o.value;t.has(u)||(t.add(u),e(u))}}catch(s){a.e(s)}finally{a.f()}}(e)}function my(e){return dy.get(e)||ye[e]}var gy=function(e){function t(e,n){var r;E(this,t),(r=m(this,t))._parent=n,r._bootstrapComponents=[],r.injector=g(r),r.destroyCbs=[],r.componentFactoryResolver=new uy(g(r));var i=Se(e),o=e[se]||null;return o&&Kf(o),r._bootstrapComponents=ha(i.bootstrap),r._r3Injector=Bu(e,n,[{provide:ip,useValue:r},{provide:ld,useValue:r.componentFactoryResolver}],y(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return _(t,e),C(t,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$u.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;return e===$u||e===ip||e===Mu?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}])}
vendor: 4,372 bytes, line 1
1(ip),by=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).moduleType=e,null!==Se(e)&&yy(e),n}return _(t,e),C(t,[{key:"create",value:function(e){return new gy(this.moduleType,e)}}])}(op);function wy(e,t,n){var r=kt()+e,i=ht();return i[r]===Sa?Ps(i,r,n?t.call(n):t()):Rs(i,r)}function _y(e,t,n,r){return Ty(ht(),kt(),e,t,n,r)}function xy(e,t,n,r,i){return My(ht(),kt(),e,t,n,r,i)}function ky(e,t,n,r,i,o){return Py(ht(),kt(),e,t,n,r,i,o)}function Cy(e,t,n,r,i,o,a){return Ry(ht(),kt(),e,t,n,r,i,o,a)}function Sy(e,t,n,r,i,o,a,u){var s=kt()+e,c=ht(),l=Ls(c,s,n,r,i,o);return Fs(c,s+4,a)||l?Ps(c,s+5,u?t.call(u,n,r,i,o,a):t(n,r,i,o,a)):Rs(c,s+5)}function Ey(e,t,n,r,i,o,a,u,s){var c=kt()+e,l=ht(),f=Ls(l,c,n,r,i,o);return Ns(l,c+4,a,u)||f?Ps(l,c+6,s?t.call(s,n,r,i,o,a,u):t(n,r,i,o,a,u)):Rs(l,c+6)}function Ay(e,t,n,r,i,o,a,u,s,c){var l=kt()+e,f=ht(),h=Ls(f,l,n,r,i,o);return js(f,l+4,a,u,s)||h?Ps(f,l+7,c?t.call(c,n,r,i,o,a,u,s):t(n,r,i,o,a,u,s)):Rs(f,l+7)}function Oy(e,t,n,r,i,o,a,u,s,c,l){var f=kt()+e,h=ht(),d=Ls(h,f,n,r,i,o);return Ls(h,f+4,a,u,s,c)||d?Ps(h,f+8,l?t.call(l,n,r,i,o,a,u,s,c):t(n,r,i,o,a,u,s,c)):Rs(h,f+8)}function Dy(e,t,n,r){return Fy(ht(),kt(),e,t,n,r)}function Iy(e,t){var n=e[t];return n===Sa?void 0:n}function Ty(e,t,n,r,i,o){var a=t+n;return Fs(e,a,i)?Ps(e,a+1,o?r.call(o,i):r(i)):Iy(e,a+1)}function My(e,t,n,r,i,o,a){var u=t+n;return Ns(e,u,i,o)?Ps(e,u+2,a?r.call(a,i,o):r(i,o)):Iy(e,u+2)}function Py(e,t,n,r,i,o,a,u){var s=t+n;return js(e,s,i,o,a)?Ps(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):Iy(e,s+3)}function Ry(e,t,n,r,i,o,a,u,s){var c=t+n;return Ls(e,c,i,o,a,u)?Ps(e,c+4,s?r.call(s,i,o,a,u):r(i,o,a,u)):Iy(e,c+4)}function Fy(e,t,n,r,i,o){for(var a=t+n,u=!1,s=0;s<i.length;s++)Fs(e,a++,i[s])&&(u=!0);return u?Ps(e,a,r.apply(o,i)):Iy(e,a)}function Ny(e,t){var n,r=dt(),i=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new A("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Pe(n.type)),a=H(Nc);try{var u=hn(!1),s=o();return hn(u),oc(r,ht(),i,s),s}finally{H(a)}}function jy(e,t,n){var r=e+20,i=ht(),o=tt(i,r);return zy(i,Uy(i,r)?Ty(i,kt(),t,o.transform,n,o):o.transform(n))}function Ly(e,t,n,r){var i=e+20,o=ht(),a=tt(o,i);return zy(o,Uy(o,i)?My(o,kt(),t,a.transform,n,r,a):a.transform(n,r))}function By(e,t,n,r,i){var o=e+20,a=ht(),u=tt(a,o);return zy(a,Uy(a,o)?Py(a,kt(),t,u.transform,n,r,i,u):u.transform(n,r,i))}function Vy(e,t,n,r,i,o){var a=e+20,u=ht(),s=tt(u,a);return zy(u,Uy(u,a)?Ry(u,kt(),t,s.transform,n,r,i,o,s):s.transform(n,r,i,o))}function Wy(e,t,n){var r=e+20,i=ht(),o=tt(i,r);return zy(i,Uy(i,r)?Fy(i,kt(),t,o.transform,n,o):o.transform.apply(o,n))}function Uy(e,t){return e[1].data[t].pure}function zy(e,t){return Is.isWrapped(t)&&(t=Is.unwrap(t),e[Ct()]=Sa),t}function qy(e){return function(t){setTimeout(e,void 0,t)}}var Hy=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return E(this,t),(e=m(this,t)).__isAsync=n,e}return _(t,e),C(t,[{key:"emit",value:function(e){i(t,"next",this,3)([e])}},{key:"subscribe",value:function(e,n,r){var a,u,s,c=e,l=n||function(){return null},f=r;if(e&&"object"==typeof e){var h=e;c=null===(a=h.next)||void 0===a?void 0:a.bind(h),l=null===(u=h.error)||void 0===u?void 0:u.bind(h),f=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=qy(l),c&&(c=qy(c)),f&&(f=qy(f)));var d=i(t,"subscribe",this,3)([{next:c,error:l,complete:f}]);return e instanceof o.w&&e.add(d),d}}])}(r.xQ);function Gy(){return this._results[Os()]()}var Ky=function(){return C(function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];E(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Os(),r=e.prototype;r[n]||(r[n]=Gy)},[{key:"changes",get:function(){return this._changes||(this._changes=new Hy)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}}
vendor: 5,954 bytes, line 1
1,{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var r=er(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}])}();Symbol;var Yy=function(){function e(t){E(this,e),this.queryList=t,this.matches=null}return C(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}])}(),$y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];E(this,e),this.queries=t}return C(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new e(i)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==cm(e,t).matches&&this.queries[t].setDirty()}}])}(),Zy=C(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;E(this,e),this.predicate=t,this.flags=n,this.read=r}),Qy=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];E(this,e),this.queries=t}return C(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}])}(),Xy=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;E(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return C(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r<n.length;r++){var i=n[r];this.matchTNodeWithReadOption(e,t,Jy(t,i)),this.matchTNodeWithReadOption(e,t,En(t,e,i,!1,!1))}else n===ep?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,En(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===gd||r===sp||r===ep&&4&t.type)this.addMatch(t.index,-2);else{var i=En(t,e,r,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}])}();function Jy(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function em(e,t,n,r){return-1===n?function(e,t){return 11&e.type?vd(e,t):4&e.type?rp(e,t):null}(t,e):-2===n?function(e,t,n){return n===gd?vd(t,e):n===ep?rp(t,e):n===sp?dp(t,e):void 0}(e,t,r):An(e,e[1],n,t)}function tm(e,t,n,r){var i=t[19].queries[r];if(null===i.matches){for(var o=e.data,a=n.matches,u=[],s=0;s<a.length;s+=2){var c=a[s];u.push(c<0?null:em(t,o[c],a[s+1],n.metadata.read))}i.matches=u}return i.matches}function nm(e,t,n,r){var i=e.queries.getByIndex(n),o=i.matches;if(null!==o)for(var a=tm(e,t,i,n),u=0;u<o.length;u+=2){var s=o[u];if(s>0)r.push(a[u/2]);else{for(var c=o[u+1],l=t[-s],f=10;f<l.length;f++){var h=l[f];h[17]===h[3]&&nm(h[1],h,c,r)}if(null!==l[9])for(var d=l[9],p=0;p<d.length;p++){var v=d[p];nm(v[1],v,c,r)}}}return r}function rm(e){var t=ht(),n=dt(),r=Mt();Pt(r+1);var i=cm(n,r);if(e.dirty&&rt(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{var o=i.crossesNgTemplate?nm(n,t,r,[]):tm(n,t,i,r);e.reset(o,bd),e.notifyOnChanges()}return!0}return!1}function im(e,t,n){var r=dt();r.firstCreatePass&&(sm(r,new Zy(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),um(r,ht(),t)}function om(e,t,n,r){var i=dt();if(i.firstCreatePass){var o=vt();sm(i,new Zy(t,n,r),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}um(i,ht(),n)}function am(){return e=ht(),t=Mt(),e[19].queries[t].queryList;var e,t}
1function um(e,t,n){var r=new Ky(4==(4&n));Za(e,t,r,r.destroy),null===t[19]&&(t[19]=new $y),t[19].queries.push(new Yy(r))}function sm(e,t,n){null===e.queries&&(e.queries=new Qy),e.queries.track(new Xy(t,n))}function cm(e,t){return e.queries.getByIndex(t)}function lm(e,t){return rp(e,t)}var fm={"\u0275\u0275attribute":Bs,"\u0275\u0275attributeInterpolate1":$s,"\u0275\u0275attributeInterpolate2":Zs,"\u0275\u0275attributeInterpolate3":Qs,"\u0275\u0275attributeInterpolate4":Xs,"\u0275\u0275attributeInterpolate5":Js,"\u0275\u0275attributeInterpolate6":ec,"\u0275\u0275attributeInterpolate7":tc,"\u0275\u0275attributeInterpolate8":nc,"\u0275\u0275attributeInterpolateV":rc,"\u0275\u0275defineComponent":he,"\u0275\u0275defineDirective":we,"\u0275\u0275defineInjectable":M,"\u0275\u0275defineInjector":R,"\u0275\u0275defineNgModule":me,"\u0275\u0275definePipe":_e,"\u0275\u0275directiveInject":Nc,"\u0275\u0275getInheritedFactory":Tn,"\u0275\u0275inject":Cr,"\u0275\u0275injectAttribute":Pn,"\u0275\u0275invalidFactory":jc,"\u0275\u0275invalidFactoryDep":Sr,"\u0275\u0275templateRefExtractor":lm,"\u0275\u0275NgOnChangesFeature":Fe,"\u0275\u0275ProvidersFeature":id,"\u0275\u0275CopyDefinitionFeature":Es,"\u0275\u0275InheritDefinitionFeature":bs,"\u0275\u0275nextContext":tl,"\u0275\u0275namespaceHTML":Yt,"\u0275\u0275namespaceMathML":Kt,"\u0275\u0275namespaceSVG":Gt,"\u0275\u0275enableBindings":lt,"\u0275\u0275disableBindings":ft,"\u0275\u0275elementStart":Vc,"\u0275\u0275elementEnd":Wc,"\u0275\u0275element":Uc,"\u0275\u0275elementContainerStart":zc,"\u0275\u0275elementContainerEnd":qc,"\u0275\u0275elementContainer":Hc,"\u0275\u0275pureFunction0":wy,"\u0275\u0275pureFunction1":_y,"\u0275\u0275pureFunction2":xy,"\u0275\u0275pureFunction3":ky,"\u0275\u0275pureFunction4":Cy,"\u0275\u0275pureFunction5":Sy,"\u0275\u0275pureFunction6":Ey,"\u0275\u0275pureFunction7":Ay,"\u0275\u0275pureFunction8":Oy,"\u0275\u0275pureFunctionV":Dy,"\u0275\u0275getCurrentView":Gc,"\u0275\u0275restoreView":pt,"\u0275\u0275listener":Zc,"\u0275\u0275projection":il,"\u0275\u0275syntheticHostProperty":Df,"\u0275\u0275syntheticHostListener":Qc,"\u0275\u0275pipeBind1":jy,"\u0275\u0275pipeBind2":Ly,"\u0275\u0275pipeBind3":By,"\u0275\u0275pipeBind4":Vy,"\u0275\u0275pipeBindV":Wy,"\u0275\u0275projectionDef":rl,"\u0275\u0275hostProperty":Of,"\u0275\u0275property":Lc,"\u0275\u0275propertyInterpolate":ol,"\u0275\u0275propertyInterpolate1":al,"\u0275\u0275propertyInterpolate2":ul,"\u0275\u0275propertyInterpolate3":sl,"\u0275\u0275propertyInterpolate4":cl,"\u0275\u0275propertyInterpolate5":ll,"\u0275\u0275propertyInterpolate6":fl,"\u0275\u0275propertyInterpolate7":hl,"\u0275\u0275propertyInterpolate8":dl,"\u0275\u0275propertyInterpolateV":pl,"\u0275\u0275pipe":Ny,"\u0275\u0275queryRefresh":rm,"\u0275\u0275viewQuery":im,"\u0275\u0275loadQuery":am,"\u0275\u0275contentQuery":om,"\u0275\u0275reference":ac,"\u0275\u0275classMap":Il,"\u0275\u0275classMapInterpolate1":ef,"\u0275\u0275classMapInterpolate2":tf,"\u0275\u0275classMapInterpolate3":nf,"\u0275\u0275classMapInterpolate4":rf,"\u0275\u0275classMapInterpolate5":of,"\u0275\u0275classMapInterpolate6":af,"\u0275\u0275classMapInterpolate7":uf,"\u0275\u0275classMapInterpolate8":sf,"\u0275\u0275classMapInterpolateV":cf,"\u0275\u0275styleMap":Ol,"\u0275\u0275styleMapInterpolate1":lf,"\u0275\u0275styleMapInterpolate2":ff,"\u0275\u0275styleMapInterpolate3":hf,"\u0275\u0275styleMapInterpolate4":df,"\u0275\u0275styleMapInterpolate5":pf,"\u0275\u0275styleMapInterpolate6":vf,"\u0275\u0275styleMapInterpolate7":yf,"\u0275\u0275styleMapInterpolate8":mf,"\u0275\u0275styleMapInterpolateV":gf,"\u0275\u0275styleProp":El,"\u0275\u0275stylePropInterpolate1":bf,"\u0275\u0275stylePropInterpolate2":wf,"\u0275\u0275stylePropInterpolate3":_f,"\u0275\u0275stylePropInterpolate4":xf,"\u0275\u0275stylePropInterpolate5":kf,"\u0275\u0275stylePropInterpolate6":Cf,"\u0275\u0275stylePropInterpolate7":Sf,"\u0275\u0275stylePropInterpolate8":Ef,"\u0275\u0275stylePropInterpolateV":Af,"\u0275\u0275classProp":Al,"\u0275\u0275advance":Ea,"\u0275\u0275template":ic,"\u0275\u0275text":zl,"\u0275\u0275textInterpolate":ql,"\u0275\u0275textInterpolate1":Hl,"\u0275\u0275textInterpolate2":Gl,"\u0275\u0275textInterpolate3":Kl,"\u0275\u0275textInterpolate4":Yl,"\u0275\u0275textInterpolate5":$l,"\u0275\u0275textInterpolate6":Zl,"\u0275\u0275textInterpolate7":Ql,"\u0275\u0275textInterpolate8":Xl,"\u0275\u0275textInterpolateV":Jl,"\u0275\u0275i18
1n":Gh,"\u0275\u0275i18nAttributes":Kh,"\u0275\u0275i18nExp":Yh,"\u0275\u0275i18nStart":qh,"\u0275\u0275i18nEnd":Hh,"\u0275\u0275i18nApply":$h,"\u0275\u0275i18nPostprocess":Zh,"\u0275\u0275resolveWindow":ca,"\u0275\u0275resolveDocument":la,"\u0275\u0275resolveBody":fa,"\u0275\u0275setComponentScope":de,"\u0275\u0275setNgModuleScope":ge,"\u0275\u0275sanitizeHtml":Vo,"\u0275\u0275sanitizeStyle":Wo,"\u0275\u0275sanitizeResourceUrl":zo,"\u0275\u0275sanitizeScript":qo,"\u0275\u0275sanitizeUrl":Uo,"\u0275\u0275sanitizeUrlOrResourceUrl":Yo,"\u0275\u0275trustConstantHtml":Ho,"\u0275\u0275trustConstantResourceUrl":Go,"\u0275\u0275validateIframeAttribute":$i,forwardRef:x,resolveForwardRef:k},hm=null;function dm(){hm=null}var pm=[],vm=!1;function ym(){if(!vm){vm=!0;try{for(var e=pm.length-1;e>=0;e--){var t=pm[e],n=t.moduleType,r=t.ngModule;r.declarations&&r.declarations.every(mm)&&(pm.splice(e,1),_m(n,r))}}finally{vm=!1}}}function mm(e){return Array.isArray(e)?e.every(mm):!!k(e)}function gm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};bm(e,t),function(e,t){pm.push({moduleType:e,ngModule:t})}(e,t)}function bm(e,t){var n=er(t.declarations||re),r=null;Object.defineProperty(e,ue,{configurable:!0,get:function(){return null===r&&((r=Qn().compileNgModule(fm,"ng:///".concat(e.name,"/\u0275mod.js"),{type:e,bootstrap:er(t.bootstrap||re).map(k),declarations:n.map(k),imports:er(t.imports||re).map(k).map(Cm),exports:er(t.exports||re).map(k).map(Cm),schemas:t.schemas?er(t.schemas):null,id:t.id||null})).schemas||(r.schemas=[])),r}});var i=null;Object.defineProperty(e,ce,{get:function(){if(null===i){var t=Qn();i=t.compileFactory(fm,"ng:///".concat(e.name,"/\u0275fac.js"),{name:e.name,type:e,deps:Br(e),target:t.FactoryTarget.NgModule,typeArgumentCount:0})}return i},configurable:!1});var o=null;Object.defineProperty(e,V,{get:function(){if(null===o){var n={name:e.name,type:e,providers:t.providers||re,imports:[(t.imports||re).map(k),(t.exports||re).map(k)]};o=Qn().compileInjector(fm,"ng:///".concat(e.name,"/\u0275inj.js"),n)}return o},configurable:!1})}new WeakMap,new WeakMap;function wm(){new WeakMap,new WeakMap,pm.length=0}function _m(e,t){var n=er(t.declarations||re),r=km(e);n.forEach(function(t){t.hasOwnProperty(ie)?xm(xe(t),r):!t.hasOwnProperty(oe)&&!t.hasOwnProperty(ae)&&(t.ngSelectorScope=e)})}function xm(e,t){e.directiveDefs=function(){return Array.from(t.compilation.directives).map(function(e){return e.hasOwnProperty(ie)?xe(e):ke(e)}).filter(function(e){return!!e})},e.pipeDefs=function(){return Array.from(t.compilation.pipes).map(function(e){return Ce(e)})},e.schemas=t.schemas,e.tView=null}function km(e){if(!Sm(e))throw new Error("".concat(e.name," does not have a module def (\u0275mod property)"));var t=Se(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;var n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ha(t.imports).forEach(function(e){var t=e;if(!Sm(t))throw new Error("Importing ".concat(t.name," which does not have a \u0275mod property"));var r=km(t);r.exported.directives.forEach(function(e){return n.compilation.directives.add(e)}),r.exported.pipes.forEach(function(e){return n.compilation.pipes.add(e)})}),ha(t.declarations).forEach(function(e){Ce(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),ha(t.exports).forEach(function(e){var t=e;if(Sm(t)){var r=km(t);r.exported.directives.forEach(function(e){n.compilation.directives.add(e),n.exported.directives.add(e)}),r.exported.pipes.forEach(function(e){n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else Ce(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Cm(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Sm(e){return!!Se(e)}var Em=0;function Am(e,t){var n=null;(function(e,t){qr(t)&&(Ur.set(e,t),zr.add(e))})(e,t),Im(e,t),Object.defineProperty(e,ie,{get:function(){if(null===n){var r=Qn();if(qr(t)){var i=["Component '".concat(e.name,"' is not resolved:")];throw t.templateUrl&&i.push(" - templateUrl: ".concat(t.templateUrl)),t.styleUrls&&t.styleUrls.length&&i.push(" - styleUrls: ".concat(JSON.stringify(t.styleUrls))),i.push("Did
1you run and wait for 'resolveComponentResources()'?"),new Error(i.join("\n"))}var o=hm,a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);var u=t.encapsulation;void 0===u&&(u=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:Q.Emulated);var s=t.templateUrl||"ng:///".concat(e.name,"/template.html"),c=Object.assign(Object.assign({},Mm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,s),template:t.template||"",preserveWhitespaces:a,styles:t.styles||re,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:u,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Em++;try{c.usesInheritance&&Pm(e),n=r.compileComponent(fm,s,c)}finally{Em--}if(0===Em&&ym(),function(e){return void 0!==e.ngSelectorScope}(e)){var l=km(e.ngSelectorScope);xm(n,l)}}return n},configurable:!1})}function Om(e,t){var n=null;Im(e,t||{}),Object.defineProperty(e,oe,{get:function(){if(null===n){var r=Dm(e,t||{});n=Qn().compileDirective(fm,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Dm(e,t){var n=e&&e.name,r="ng:///".concat(n,"/\u0275dir.js"),i=Qn(),o=Mm(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&Pm(e),{metadata:o,sourceMapUrl:r}}function Im(e,t){var n=null;Object.defineProperty(e,ce,{get:function(){if(null===n){var r=Dm(e,t),i=Qn();n=i.compileFactory(fm,"ng:///".concat(e.name,"/\u0275fac.js"),{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Br(e),target:i.FactoryTarget.Directive})}return n},configurable:!1})}function Tm(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Mm(e,t){var n=Lr(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||ne,propMetadata:r,inputs:t.inputs||re,outputs:t.outputs||re,queries:Fm(e,r,jm),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Tm(e),exportAs:Nm(t.exportAs),providers:t.providers||null,viewQueries:Fm(e,r,Lm)}}function Pm(e){for(var t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;n&&n!==t;)!ke(n)&&!xe(n)&&Um(n)&&Om(n,null),n=Object.getPrototypeOf(n)}function Rm(e){return"string"==typeof e?Vm(e):k(e)}function Fm(e,t,n){var r=[],i=function(i){if(t.hasOwnProperty(i)){var o=t[i];o.forEach(function(t){if(n(t)){if(!t.selector)throw new Error("Can't construct a query for the property \"".concat(i,'" of "').concat(D(e),"\" since the query selector wasn't defined."));if(o.some(Bm))throw new Error("Cannot combine @Input decorators with query decorators");r.push(function(e,t){return{propertyName:e,predicate:Rm(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}(i,t))}})}};for(var o in t)i(o);return r}function Nm(e){return void 0===e?null:Vm(e)}function jm(e){var t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Lm(e){var t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Bm(e){return"Input"===e.ngMetadataName}function Vm(e){return e.split(",").map(function(e){return e.trim()})}var Wm=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Um(e){var t=Lr();if(Wm.some(function(n){return t.hasLifecycleHook(e,n)}))return!0;var n=t.propMetadata(e);for(var r in n)for(var i=n[r],o=0;o<i.length;o++){var a=i[o],u=a.ngMetadataName;if(Bm(a)||jm(a)||Lm(a)||"Output"===u||"HostBinding"===u||"HostListener"===u)return!0}return!1}function zm(e,t){var n=null,r=null;Object.defineProperty(e,ce,{get:function(){if(null===r){var n=qm(e,t),i=Qn();r=i.compileFactory(fm,"ng:///".concat(n.name,"/\u0275fac.js"),{name:n.name,type:n.type,typeArgumentCount:0,deps:Br(e),target:i.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,ae,{get:function(){if(null===n){var r=qm(e,t);n=Qn().compilePipe(fm,"ng:///".concat(r.name,"/\u0275pipe.js"),r)}return n},configurable:!1})}function qm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}var Hm=jn("Directive",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},void 0,void 0,function(e,t){return ng(e,t)}),Gm=jn("Component",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:Y.Default},e)},Hm,void 0,function(e,t){return tg(e,t)}),Km=jn("Pipe",function(e){return Object.assign({pure:!0},e)},void 0,void 0,function(e,t){return rg(e,t)}),Ym=Vn("Input",function(e){return{bindingPropertyName:e}}),$m=Vn("Output",function(e){return{bindingPropertyName:e}}),Zm=Vn("HostBinding",function(e){return{hostPropertyName:e}}),Qm=Vn("HostListener",function(e,t){return{eventName:e,args:t}}),Xm=Am,Jm=Om,eg=zm,tg=Xm,ng=Jm,rg=eg,ig=jn("NgModule",function(e){return e},void 0,void 0,function(e,t){return ag(e,t)}),og=gm,ag=og,ug=new zn("Application Initializer"),sg=function(){var e=function(){return C(function e(t){var n=this;E(this,e),this.appInits=t,this.resolve=dd,this.reject=dd,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}
1,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=function(){var n=e.appInits[i]();if(Kc(n))t.push(n);else if($c(n)){var r=new Promise(function(e,t){n.subscribe({complete:e,error:t})});t.push(r)}},i=0;i<this.appInits.length;i++)r();Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}])}();return e.\u0275fac=function(t){return new(t||e)(Cr(ug,8))},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}(),cg=new zn("AppId");function lg(){return"".concat(hg()).concat(hg()).concat(hg())}var fg={provide:cg,useFactory:lg,deps:[]};function hg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var dg=new zn("Platform Initializer"),pg=new zn("Platform ID"),vg=new zn("appBootstrapListener"),yg=new zn("Application Packages Root URL"),mg=function(){var e=function(){return C(function e(){E(this,e)},[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}(),gg=new zn("LocaleId"),bg=new zn("DefaultCurrencyCode"),wg=new zn("Translations"),_g=new zn("TranslationsFormat"),xg=((xg=xg||{})[xg.Error=0]="Error",xg[xg.Warning=1]="Warning",xg[xg.Ignore=2]="Ignore",xg),kg=!0,Cg=kg,Sg=C(function e(t,n){E(this,e),this.ngModuleFactory=t,this.componentFactories=n}),Eg=function(e){return new by(e)},Ag=Eg,Og=function(e){return Promise.resolve(Eg(e))},Dg=Og,Ig=function(e){var t=Eg(e),n=ha(Se(e).declarations).reduce(function(e,t){var n=xe(t);return n&&e.push(new ly(n)),e},[]);return new Sg(t,n)},Tg=Ig,Mg=function(e){return Promise.resolve(Ig(e))},Pg=Mg,Rg=function(){var e=function(){return C(function e(){E(this,e),this.compileModuleSync=Ag,this.compileModuleAsync=Dg,this.compileModuleAndAllComponentsSync=Tg,this.compileModuleAndAllComponentsAsync=Pg},[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}(),Fg=new zn("compilerOptions"),Ng=C(function e(){E(this,e)}),jg=Promise.resolve(0);function Lg(e){"undefined"==typeof Zone?jg.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Bg=function(){function e(t){var n=t.enableLongStackTrace,r=void 0!==n&&n,i=t.shouldCoalesceEventChangeDetection,o=void 0!==i&&i,a=t.shouldCoalesceRunChangeDetection,u=void 0!==a&&a;if(E(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hy(!1),this.onMicrotaskEmpty=new Hy(!1),this.onStable=new Hy(!1),this.onError=new Hy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!u&&o,s.shouldCoalesceRunChangeDetection=u,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){var e=te.requestAnimationFrame,t=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){var t=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Ug(e),e.isCheckStableRunning=!0,Wg(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Ug(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(n,r,i,o,a,u){try{return zg(e),n.invokeTask(i,o,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),qg(e)}},onInvoke:function(n,r,i,o,a,u,s){try{return zg(e),n.invoke(i,o,a,u,s)}
1finally{e.shouldCoalesceRunChangeDetection&&t(),qg(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ug(e),Wg(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!1}})}(s)}return C(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Vg,dd,dd);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}])}(),Vg={};function Wg(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Ug(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function zg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function qg(e){e._nesting--,Wg(e)}var Hg=function(){return C(function e(){E(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hy,this.onMicrotaskEmpty=new Hy,this.onStable=new Hy,this.onError=new Hy},[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}])}(),Gg=function(){var e=function(){return C(function e(t){var n=this;E(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})},[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Bg.assertNotInAngularZone(),Lg(function(){e._isZoneStable=!0,e._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 e=this;if(this.isStable())Lg(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}])}();return e.\u0275fac=function(t){return new(t||e)(Cr(Bg))},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}(),Kg=function(){var e=function(){return C(function e(){E(this,e),this._applications=new Map,$g.addToWindow(this)},[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||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(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $g.findTestabilityInTree(this,e,t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}();function Yg(e){$g=e}var $g=new(function(){return C(function e(){E(this,e)},[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}])}()),Zg=!0,Qg=!1;function Xg(){return Qg=!0,Zg}function Jg(){if(Qg)throw new Error("Cannot enable prod mode after platform setup.");Zg=!1}var eb,tb=nb;function nb(e,t,n){var r=new by(n);return Promise.resolve(r)}var rb=ib;function ib(e){return e.isBoundToModule}var ob=new zn("AllowMultipleToken"),ab=C(function e(t,n){E(this,e),this.name=t,this.token=n});function ub(e){if(eb&&!eb.destroyed&&!eb.injector.get(ob,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");eb=e.get(hb);var t=e.get(dg,null);return t&&t.forEach(function(e){return e()}),eb}
1function sb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new zn(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=fb();if(!o||o.injector.get(ob,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Ru,useValue:"platform"});ub($u.create({providers:a,name:r}))}return cb(i)}}function cb(e){var t=fb();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function lb(){eb&&!eb.destroyed&&eb.destroy()}function fb(){return eb&&!eb.destroyed?eb:null}var hb=function(){var e=function(){return C(function e(t){E(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1},[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,r=function(e,t){return"noop"===e?new Hg:("zone.js"===e?void 0:e)||new Bg({enableLongStackTrace:Xg(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:Bg,useValue:r}];return r.run(function(){var o=$u.create({providers:i,parent:n.injector,name:e.moduleType.name}),a=e.create(o),u=a.injector.get(na,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.runOutsideAngular(function(){var e=r.onError.subscribe({next:function(e){u.handleError(e)}});a.onDestroy(function(){vb(n._modules,a),e.unsubscribe()})}),function(e,r,i){try{var o=((u=a.injector.get(sg)).runInitializers(),u.donePromise.then(function(){return Cg&&Kf(a.injector.get(gg,Wf)||Wf),n._moduleDoBootstrap(a),a}));return Kc(o)?o.catch(function(t){throw r.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw r.runOutsideAngular(function(){return e.handleError(t)}),t}var u}(u,r)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=db({},n);return tb(this.injector,r,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(pb);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(y(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}])}();return e.\u0275fac=function(t){return new(t||e)(Cr($u))},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}();function db(e,t){return Array.isArray(t)?t.reduce(db,e):Object.assign(Object.assign({},e),t)}var pb=function(){var e=function(){return C(function e(t,n,r,i,o){var u=this;E(this,e),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new a.y(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),c=new a.y(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){Bg.assertNotInAngularZone(),Lg(function(){!u._stable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks&&(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Bg.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,l.T)(s,c.pipe((0,d.B)()))},[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
1s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ad?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=rb(n)?void 0:this._injector.get(ip),o=n.create($u.NULL,[],t||n.selector,i),a=o.location.nativeElement,u=o.injector.get(Gg,null),s=u&&o.injector.get(Kg);return u&&s&&s.registerApplication(a,u),o.onDestroy(function(){r.detachView(o.hostView),vb(r.components,o),s&&s.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=f(this._views);try{for(n.s();!(t=n.n()).done;){var r;t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vb(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vg,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}])}();return e.\u0275fac=function(t){return new(t||e)(Cr(Bg),Cr($u),Cr(na),Cr(ld),Cr(sg))},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}();function vb(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yb=C(function e(){E(this,e)});function mb(e){var t=my(e);if(!t)throw wb(e);return t}function gb(e){var t=my(e);if(!t)throw wb(e);return new by(t)}var bb=gb;function wb(e){return new Error("No module with ID ".concat(e," loaded"))}var _b=C(function e(){E(this,e)}),xb={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},kb=function(){var e=function(){return C(function e(t,n){E(this,e),this._compiler=t,this._config=n||xb},[{key:"load",value:function(e){return!Cg&&this._compiler instanceof Rg?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=h(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n(72957)(i).then(function(e){return e[o]}).then(function(e){return Cb(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=h(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n(72957)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Cb(e,r,i)})}}])}();return e.\u0275fac=function(t){return new(t||e)(Cr(Rg),Cr(_b,8))},e.\u0275prov=M({token:e,factory:e.\u0275fac}),e}();function Cb(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Sb=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(Kd),Eb=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(Sb),Ab=C(function e(t,n){E(this,e),this.name=t,this.callback=n}),Ob=function(){return C(function e(t,n,r){E(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Db&&n.addChild(this)},[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}])}(),Db=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e,n,r])).properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return _(t,e),C(t,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);
1-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(c(t))),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=r}))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return Tb(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return Mb(this,e,t),t}},{key:"children",get:function(){return this.childNodes.filter(function(e){return e instanceof t})}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})}}])}(Ob);function Ib(e){return e.map(function(e){return e.nativeElement})}function Tb(e,t,n){e.childNodes.forEach(function(e){e instanceof Db&&(t(e)&&n.push(e),Tb(e,t,n))})}function Mb(e,t,n){e instanceof Db&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Db&&Mb(e,t,n)})}var Pb=function(){return C(function e(t){E(this,e),this.nativeNode=t},[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new Rb(e):null}},{key:"injector",get:function(){return es(this.nativeNode)}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(Zu(e)||Xu(e))}},{key:"context",get:function(){return Zu(this.nativeNode)||Qu(this.nativeNode)}},{key:"listeners",get:function(){return is(this.nativeNode).filter(function(e){return"dom"===e.type})}},{key:"references",get:function(){return function(e){var t=Qr(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o<n.localNames.length;o+=2)r[n.localNames[o]]=e[i],i++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}},{key:"providerTokens",get:function(){return function(e){var t=Qr(e);if(null===t)return[];for(var n=t.lView[1],r=n.data[t.nodeIndex],i=[],o=r.directiveEnd,a=1048575&r.providerIndexes;a<o;a++){var u=n.data[a];as(u)&&(u=u.type),i.push(u)}return i}(this.nativeNode)}}])}(),Rb=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"nativeElement",get:function(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}},{key:"name",get:function(){var e=Qr(this.nativeNode);return null!==e?e.lView[1].data[e.nodeIndex].value:this.nativeNode.nodeName}},{key:"properties",get:function(){var e=Qr(this.nativeNode);if(null===e)return{};var t=e.lView,n=t[1].data,r=n[e.nodeIndex],i={};return function(e,t){if(e)for(var n=Object.getPrototypeOf(e),r=Node.prototype;null!==n&&n!==r;){var i=Object.getOwnPropertyDescriptors(n);for(var o in i)if(!o.startsWith("__")&&!o.startsWith("on")){var a=e[o];Fb(a)&&(t[o]=a)}n=Object.getPrototypeOf(n)}}(this.nativeElement,i),function(e,t,n,r){var i=t.propertyBindings;if(null!==i)for(var o=0;o<i.length;o++){var a=i[o],u=r[a].split("\ufffd"),s=u[0];if(u.length>1){for(var c=u[1],l=1;l<u.length-1;l++)c+=O(n[a+l-1])+u[l+1];e[s]=c}else e[s]=n[a]}}(i,r,t,n),i}},{key:"attributes",get:function(){var e={},t=this.nativeElement;if(!t)return e;var n=Qr(t);if(null===n)return{};var r=n.lView[1].data[n.nodeIndex].attrs,i=[];if(r)for(var o=0;o<r.length;){var a=r[o];if("string"!=typeof a)break;e[a]=r[o+1],i.push(a.toLowerCase()),o+=2}for(var u=t.attributes,s=0;s<u.length;s++){var c=u[s],l=c.name.toLowerCase();-1===i.indexOf(l)&&(e[l]=c.value)}return e}},{key:"styles",get:function(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}},{key:"classes",get:function(){var e={},t=this.nativeElement.className;return(t&&"string"!=typeof t?t.baseVal.split(" "):t.split(" ")).forEach(function(t){return e[t]=!0}),e}},{key:"childNodes",get:function(){for(var e=this.nativeNode.childNodes,t=[],n=0;n<e.length;n++)t.push(zb(e[n]));return t}},{key:"children",get:function(){var e=this.nativeElement;if(!e)return[];for(var t=e.children,n=[],r=0;r<t.length;r++)n.push(zb(t[r]));return n}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return Nb(this,e,t,!0),t}},{key:"queryAllNodes",value:function(e){var t=[];return Nb(this,e,t,!1),t}},{key:"triggerEventHandler",value:function(e,t){var n=this.nativeNode,r=[];
1this.listeners.forEach(function(i){if(i.name===e){var o=i.callback;o.call(n,t),r.push(o)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(function(e){if(-1!==e.toString().indexOf("__ngUnwrap__")){var i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}})}}])}(Pb);function Fb(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Nb(e,t,n,r){var i=Qr(e.nativeNode);null!==i?jb(i.lView[1].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode):Vb(e.nativeNode,t,n,r)}function jb(e,t,n,r,i,o){var a=function(e,t){var n=null===e?-1:e.index;return-1!==n?Qe(t[n]):null}(e,t);if(11&e.type){if(Bb(a,n,r,i,o),De(e)){var u=nt(e.index,t);u&&u[1].firstChild&&jb(u[1].firstChild,u,n,r,i,o)}else e.child&&jb(e.child,t,n,r,i,o),a&&Vb(a,n,r,i);var s=t[e.index];Ae(s)&&Lb(s,n,r,i,o)}else if(4&e.type){var c=t[e.index];Bb(c[7],n,r,i,o),Lb(c,n,r,i,o)}else if(16&e.type){var l=t[16],h=l[6].projection[e.projection];if(Array.isArray(h)){var d,p=f(h);try{for(p.s();!(d=p.n()).done;){Bb(d.value,n,r,i,o)}}catch(m){p.e(m)}finally{p.f()}}else if(h){var v=l[3];jb(v[1].data[h.index],v,n,r,i,o)}}else e.child&&jb(e.child,t,n,r,i,o);if(o!==a){var y=4&e.flags?e.projectionNext:e.next;y&&jb(y,t,n,r,i,o)}}function Lb(e,t,n,r,i){for(var o=10;o<e.length;o++){var a=e[o],u=a[1].firstChild;u&&jb(u,a,t,n,r,i)}}function Bb(e,t,n,r,i){if(i!==e){var o=qb(e);if(!o)return;(r&&o instanceof Rb&&t(o)&&-1===n.indexOf(o)||!r&&t(o)&&-1===n.indexOf(o))&&n.push(o)}}function Vb(e,t,n,r){for(var i=e.childNodes,o=i.length,a=0;a<o;a++){var u=i[a],s=qb(u);s&&((r&&s instanceof Rb&&t(s)&&-1===n.indexOf(s)||!r&&t(s)&&-1===n.indexOf(s))&&n.push(s),Vb(u,t,n,r))}}var Wb=new Map,Ub="__ng_debug__";function zb(e){return e instanceof Node?(e.hasOwnProperty(Ub)||(e[Ub]=e.nodeType==Node.ELEMENT_NODE?new Rb(e):new Pb(e)),e[Ub]):null}var qb=zb;function Hb(e){return function(e){return Wb.get(e)||null}(e)}var Gb=function(e){return null};function Kb(e){Wb.set(e.nativeNode,e)}var Yb=Pb,$b=Rb,Zb=sb(null,"core",[{provide:pg,useValue:"unknown"},{provide:hb,deps:[$u]},{provide:Kg,deps:[]},{provide:mg,deps:[]}]);function Qb(){return Zd}function Xb(){return Qd}function Jb(e){return e=e||Cg&&"undefined"!=typeof $localize&&$localize.locale||Wf,Cg&&Kf(e),e}var ew=[{provide:pb,useClass:pb,deps:[Bg,$u,na,ld,sg]},{provide:cy,deps:[Bg],useFactory:tw},{provide:sg,useClass:sg,deps:[[new Pr,ug]]},{provide:Rg,useClass:Rg,deps:[]},fg,{provide:Bd,useFactory:Qb,deps:[]},{provide:Wd,useFactory:Xb,deps:[]},{provide:gg,useFactory:Jb,deps:[[new Mr(gg),new Pr,new Fr]]},{provide:bg,useValue:Uf}];function tw(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var nw=function(){var e=C(function e(t){E(this,e)});return e.\u0275fac=function(t){return new(t||e)(Cr(pb))},e.\u0275mod=me({type:e}),e.\u0275inj=R({providers:ew}),e}();function rw(e,t,n,r,i,o){e|=1;var a=Kp(t),u=a.matchedQueries,s=a.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:a.matchedQueryIds,references:s,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Qp(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Ep},provider:null,text:null,query:null,ngContent:null}}function iw(e,t,n,r,i,o){var a,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0;l||(l=Ep);var p=Kp(n),v=p.matchedQueries,y=p.references,m=p.matchedQueryIds,g=null,b=null;o&&(g=(a=h(iv(o),2))[0],b=a[1]),s=s||[];for(var w=[],_=0;_<s.length;_++){var x=h(s[_],3),k=x[0],C=x[1],S=x[2],E=iv(C),A=h(E,2),O=A[0],D=A[1],I=void 0,T=void 0;switch(15&k){case 4:T=S;break;case 1:case 8:I=S}
1w[_]={flags:k,ns:O,name:D,nonMinifiedName:D,securityContext:I,suffix:T}}c=c||[];for(var M=[],P=0;P<c.length;P++){var R=h(c[P],2),F=R[0],N=R[1];M[P]={type:0,target:F,eventName:N,propName:null}}var j=(u=u||[]).map(function(e){var t=h(e,2),n=t[0],r=t[1],i=h(iv(n),2);return[i[0],i[1],r]});return d=function(e){return e&&e.id===Ip&&(e.id=null!=e.encapsulation&&e.encapsulation!==Q.None||e.styles.length||Object.keys(e.data).length?"c"+Pp++:Tp),e&&e.id===Tp&&(e=null),e||null}(d),f&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:v,matchedQueryIds:m,references:y,ngContentIndex:r,childCount:i,bindings:w,bindingFlags:ov(w),outputs:M,element:{ns:g,name:b,attrs:j,template:null,componentProvider:null,componentView:f||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:l||Ep},provider:null,text:null,query:null,ngContent:null}}function ow(e,t,n){var r,i=n.element,o=e.root.selectorOrNode,a=e.renderer;if(e.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var u=$p(e,t,n);u&&a.appendChild(u,r)}else r=a.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===Q.ShadowDom);if(i.attrs)for(var s=0;s<i.attrs.length;s++){var c=h(i.attrs[s],3),l=c[0],f=c[1],d=c[2];a.setAttribute(r,f,d,l)}return r}function aw(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=uw(e,n.nodeIndex,zp(o.target,o.eventName)),u=o.target,s=e;"component"===o.target&&(u=null,s=t);var c=s.renderer.listen(u||r,o.eventName,a);e.disposables[n.outputIndex+i]=c}}function uw(e,t,n){return function(r){return Bp(e,t,n,r)}}function sw(e,t,n,r){if(!Fp(e,t,n,r))return!1;var i=t.bindings[n],o=wp(e,t.nodeIndex),a=o.renderElement,u=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var a=t.securityContext,u=a?e.root.sanitizer.sanitize(a,o):o;u=null!=u?u.toString():null;var s=e.renderer;null!=o?s.setAttribute(n,i,u,r):s.removeAttribute(n,i,r)}(e,i,a,i.ns,u,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,a,u,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(Bo.STYLE,i);if(null!=o){o=o.toString();var a=t.suffix;null!=a&&(o+=a)}else o=null;var u=e.renderer;null!=o?u.setStyle(n,r,o):u.removeStyle(n,r)}(e,i,a,u,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,a=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,a)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,a,u,r)}return!0}function cw(e,t,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Gp(t),bindings:r},ngContent:null}}function lw(e){return new Ky(e)}function fw(e){for(var t=e.def.nodeMatchedQueries;e.parent&&Hp(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){var o=e.def.nodes[i];67108864&o.flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&kp(e,i).setDirty(),(1&o.flags&&i+o.childCount<n.nodeIndex||!(67108864&o.childFlags)||!(536870912&o.childFlags)
vendor: 19,575 bytes, line 1
1)&&(i+=o.childCount)}}if(134217728&e.def.nodeFlags)for(var a=0;a<e.def.nodes.length;a++){var u=e.def.nodes[a];134217728&u.flags&&536870912&u.flags&&kp(e,a).setDirty(),a+=u.childCount}}function hw(e,t){var n=kp(e,t.nodeIndex);if(n.dirty){var r,i;if(67108864&t.flags){var o=t.parent.parent;i=dw(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=_p(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=dw(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i,bd);for(var a=t.query.bindings,u=!1,s=0;s<a.length;s++){var c=a[s],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,u=!0}r[c.propName]=l}u&&n.notifyOnChanges()}}function dw(e,t,n,r,i){for(var o=t;o<=n;o++){var a=e.def.nodes[o],u=a.matchedQueries[r.id];if(null!=u&&i.push(pw(e,a,u)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var s=wp(e,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(dw(e,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var c=s.viewContainer._embeddedViews,l=0;l<c.length;l++){var f=c[l],h=Vp(f);h&&h===s&&dw(f,0,f.def.nodes.length-1,r,i)}var d=s.template._projectedViews;if(d)for(var p=0;p<d.length;p++){var v=d[p];dw(v,0,v.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function pw(e,t,n){if(null!=n)switch(n){case 1:return wp(e,t.nodeIndex).renderElement;case 0:return new gd(wp(e,t.nodeIndex).renderElement);case 2:return wp(e,t.nodeIndex).template;case 3:return wp(e,t.nodeIndex).viewContainer;case 4:return _p(e,t.nodeIndex).instance}}function vw(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function yw(e,t,n){var r=$p(e,t,n);r&&ev(e,n.ngContent.index,1,r,null,void 0)}function mw(e,t){return ww(128,e,ir(t+1))}function gw(e,t){return ww(32,e,ir(t))}function bw(e,t){for(var n=Object.keys(t),r=n.length,i=[],o=0;o<r;o++)i.push(n[o]);return ww(64,e,i)}function ww(e,t,n){for(var r=[],i=0;i<n.length;i++){var o=n[i];r.push({flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ov(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function _w(e,t,n){for(var r=[],i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function xw(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=$p(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function kw(e,t){return(null!=e?e.toString():"")+t.suffix}function Cw(e,t,n,r){for(var i=0,o=0,a=0,u=0,s=0,c=null,l=null,f=!1,h=!1,d=null,p=0;p<t.length;p++){var v=t[p];if(v.nodeIndex=p,v.parent=c,v.bindingIndex=i,v.outputIndex=o,v.renderParent=l,a|=v.flags,s|=v.matchedQueryIds,v.element){var y=v.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,f=!1,h=!1,v.element.template&&(s|=v.element.template.nodeMatchedQueries)}if(Ew(c,v,t.length),i+=v.bindings.length,o+=v.outputs.length,!l&&3&v.flags&&(d=v),20224&v.flags){f||(f=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var m=0!=(32768&v.flags);0==(8192&v.flags)||m?c.element.publicProviders[Op(v.provider.token)]=v:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Op(v.provider.token)]=v),m&&(c.element.componentProvider=v)}if(c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):u|=v.flags,v.childCount>0)c=v,Sw(v)||(l=v);else for(;c&&p===c.nodeIndex+c.childCount;){var g=c.parent;g&&(g.childFlags|=c.childFlags,g.childMatchedQueries|=c.childMatchedQueries),l=(c=g)&&Sw(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Ep,updateRenderer:r||Ep,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function Sw(e){return 0!=(1&e.flags)&&null===e.element.name}function Ew(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function Aw(e,t,n,r){var i=Iw(e.root,e.renderer,e,t,n);return Tw(i,e.component,r),Mw(i),i}function Ow(e,t,n){var r=Iw(e,e.renderer,null,null,t);return Tw(r,n,n),Mw(r),r}function Dw(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Iw(e.root,i,e,t.element.componentProvider,n)}function Iw(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Tw(e,t,n){e.component=t,e.context=n}function Mw(e){var t;qp(e)&&(t=wp(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i],a=void 0;switch(Sp.setCurrentNode(e,i),201347067&o.flags){case 1:var u=ow(e,t,o),s=void 0;if(33554432&o.flags){var c=Qp(o.element.componentView);s=Sp.createComponentView(e,o,c,u)}aw(e,s,o,u),a={renderElement:u,componentView:s,viewContainer:null,template:o.element.template?Iv(e,o):void 0},16777216&o.flags&&(a.viewContainer=Ev(e,o,a));break;case 2:a=xw(e,t,o);break;case 512:case 1024:case 2048:case 256:!(a=r[i])&&!(4096&o.flags)&&(a={instance:Yv(e,o)});break;case 16:a={instance:$v(e,o)};break;case 16384:(a=r[i])||(a={instance:Zv(e,o)}),32768&o.flags&&Tw(wp(e,o.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=lw(-2147483648==(-2147483648&o.flags));break;case 8:yw(e,t,o),a=void 0}r[i]=a}Ww(e,Vw.CreateViewNodes),Hw(e,201326592,268435456,0)}function Pw(e){Nw(e),Sp.updateDirectives(e,1),Uw(e,Vw.CheckNoChanges),Sp.updateRenderer(e,1),Ww(e,Vw.CheckNoChanges),e.state&=-97}function Rw(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,mp(e,0,256),Nw(e),Sp.updateDirectives(e,0),Uw(e,Vw.CheckAndUpdate),Hw(e,67108864,536870912,0);var t=mp(e,256,512);iy(e,2097152|(t?1048576:0)),Sp.updateRenderer(e,0),Ww(e,Vw.CheckAndUpdate),Hw(e,134217728,536870912,0),iy(e,8388608|((t=mp(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,mp(e,768,1024)}function Fw(e,t,n,r,i,o,a,u,s,l,f,h,d){return 0===n?function(e,t,n,r,i,o,a,u,s,c,l,f){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,a,u,s,c,l,f){var h=t.bindings.length,d=!1;return h>0&&sw(e,t,0,n)&&(d=!0),h>1&&sw(e,t,1,r)&&(d=!0),h>2&&sw(e,t,2,i)&&(d=!0),h>3&&sw(e,t,3,o)&&(d=!0),h>4&&sw(e,t,4,a)&&(d=!0),h>5&&sw(e,t,5,u)&&(d=!0),h>6&&sw(e,t,6,s)&&(d=!0),h>7&&sw(e,t,7,c)&&(d=!0),h>8&&sw(e,t,8,l)&&(d=!0),h>9&&sw(e,t,9,f)&&(d=!0),d}(e,t,n,r,i,o,a,u,s,c,l,f);case 2:return function(e,t,n,r,i,o,a,u,s,c,l,f){var h=!1,d=t.bindings,p=d.length;if(p>0&&Fp(e,t,0,n)&&(h=!0),p>1&&Fp(e,t,1,r)&&(h=!0),p>2&&Fp(e,t,2,i)&&(h=!0),p>3&&Fp(e,t,3,o)&&(h=!0),p>4&&Fp(e,t,4,a)&&(h=!0),p>5&&Fp(e,t,5,u)&&(h=!0),p>6&&Fp(e,t,6,s)&&(h=!0),p>7&&Fp(e,t,7,c)&&(h=!0),p>8&&Fp(e,t,8,l)&&(h=!0),p>9&&Fp(e,t,9,f)&&(h=!0),h){var v=t.text.prefix;p>0&&(v+=kw(n,d[0])),p>1&&(v+=kw(r,d[1])),p>2&&(v+=kw(i,d[2])),p>3&&(v+=kw(o,d[3])),p>4&&(v+=kw(a,d[4])),p>5&&(v+=kw(u,d[5])),p>6&&(v+=kw(s,d[6])),p>7&&(v+=kw(c,d[7])),p>8&&(v+=kw(l,d[8])),p>9&&(v+=kw(f,d[9]));var y=bp(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return h}(e,t,n,r,i,o,a,u,s,c,l,f);case 16384:return function(e,t,n,r,i,o,a,u,s,c,l,f){var h,d=_p(e,t.nodeIndex),p=d.instance,v=!1,y=t.bindings.length;return y>0&&Rp(e,t,0,n)&&(v=!0,h=ry(e,d,t,0,n,h)),y>1&&Rp(e,t,1,r)&&(v=!0,h=ry(e,d,t,1,r,h)),y>2&&Rp(e,t,2,i)&&(v=!0,h=ry(e,d,t,2,i,h)),y>3&&Rp(e,t,3,o)&&(v=!0,h=ry(e,d,t,3,o,h)),y>4&&Rp(e,t,4,a)&&(v=!0,h=ry(e,d,t,4,a,h)),y>5&&Rp(e,t,5,u)&&(v=!0,h=ry(e,d,t,5,u,h)),y>6&&Rp(e,t,6,s)&&(v=!0,h=ry(e,d,t,6,s,h)),y>7&&Rp(e,t,7,c)&&(v=!0,h=ry(e,d,t,7,c,h)),y>8&&Rp(e,t,8,l)&&(v=!0,h=ry(e,d,t,8,l,h)),y>9&&Rp(e,t,9,f)&&(v=!0,h=ry(e,d,t,9,f,h)),h&&p.ngOnChanges(h),65536&t.flags&&gp(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),v}(e,t,n,r,i,o,a,u,s,c,l,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,u,s,c,l,f){var h=t.bindings,d=!1,p=h.length;if(p>0&&Fp(e,t,0,n)&&(d=!0),p>1&&Fp(e,t,1,r)&&(d=!0),p>2&&Fp(e,t,2,i)&&(d=!0),p>3&&Fp(e,t,3,o)&&(d=!0),p>4&&Fp(e,t,4,a)&&(d=!0),p>5&&Fp(e,t,5,u)&&(d=!0),p>6&&Fp(e,t,6,s)&&(d=!0),p>7&&Fp(e,t,7,c)&&(d=!0),p>8&&Fp(e,t,8,l)&&(d=!0),p>9&&Fp(e,t,9,f)&&(d=!0),d){var v,y=xp(e,t.nodeIndex);switch(201347067&t.flags){case 32:v=[],p>0&&v.push(n),p>1&&v.push(r),p>2&&v.push(i),p>3&&v.push(o),p>4&&v.push(a),p>5&&v.push(u),p>6&&v.push(s),p>7&&v.push(c),p>8&&v.push(l),p>9&&v.push(f);break;case 64:v={},p>0&&(v[h[0].name]=n),p>1&&(v[h[1].name]=r),p>2&&(v[h[2].name]=i),p>3&&(v[h[3].name]=o),p>4&&(v[h[4].name]=a),p>5&&(v[h[5].name]=u),p>6&&(v[h[6].name]=s),p>7&&(v[h[7].name]=c),p>8&&(v[h[8].name]=l),p>9&&(v[h[9].name]=f);break;case 128:var m=n;switch(p){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,u);break;case 7:v=m.transform(r,i,o,a,u,s);break;case 8:v=m.transform(r,i,o,a,u,s,c);break;case 9:v=m.transform(r,i,o,a,u,s,c,l);break;case 10:v=m.transform(r,i,o,a,u,s,c,l,f)}}y.value=v}return d}(e,t,n,r,i,o,a,u,s,c,l,f);default:throw"unreachable"}}(e,t,r,i,o,a,u,s,l,f,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i<n.length;i++)sw(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Fp(e,t,o,n[o])&&(i=!0);if(i){for(var a="",u=0;u<n.length;u++)a+=kw(n[u],r[u]);a=t.text.prefix+a;var s=bp(e,t.nodeIndex).renderText;e.renderer.setValue(s,a)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r,i=_p(e,t.nodeIndex),o=i.instance,a=!1,u=0;u<n.length;u++)Rp(e,t,u,n[u])&&(a=!0,r=ry(e,i,t,u,n[u],r));return r&&o.ngOnChanges(r),65536&t.flags&&gp(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),a}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Fp(e,t,o,n[o])&&(i=!0);if(i){var a,u=xp(e,t.nodeIndex);switch(201347067&t.flags){case 32:a=n;break;case 64:a={};for(var s=0;s<n.length;s++)a[r[s].name]=n[s];break;case 128:var l=n[0],f=n.slice(1);a=l.transform.apply(l,c(f))}u.value=a}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Nw(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=wp(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,Lp(a,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function jw(e,t,n,r,i,o,a,u,s,c,l,f,h){return 0===n?function(e,t,n,r,i,o,a,u,s,c,l,f){var h=t.bindings.length;h>0&&Np(e,t,0,n),h>1&&Np(e,t,1,r),h>2&&Np(e,t,2,i),h>3&&Np(e,t,3,o),h>4&&Np(e,t,4,a),h>5&&Np(e,t,5,u),h>6&&Np(e,t,6,s),h>7&&Np(e,t,7,c),h>8&&Np(e,t,8,l),h>9&&Np(e,t,9,f)}(e,t,r,i,o,a,u,s,c,l,f,h):function(e,t,n){for(var r=0;r<n.length;r++)Np(e,t,r,n[r])}(e,t,r),!1}function Lw(e,t){if(kp(e,t.nodeIndex).dirty)throw pp(Sp.createDebugContext(e,t.nodeIndex),"Query ".concat(t.query.id," not dirty"),"Query ".concat(t.query.id," dirty"),0!=(1&e.state))}function Bw(e){if(!(128&e.state)){if(Uw(e,Vw.Destroy),Ww(e,Vw.Destroy),iy(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();(function(e){if(16&e.state){var t=Vp(e);if(t){var n=t.template._projectedViews;n&&(rr(n,n.indexOf(e)),Sp.dirtyParentQueries(e))}}})(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(wp(e,n).renderElement):2&r.flags?e.renderer.destroyNode(bp(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&kp(e,n).destroy()}}(e),qp(e)&&e.renderer.destroy(),e.state|=128}}var Vw=((Vw=Vw||{})[Vw.CreateViewNodes=0]="CreateViewNodes",Vw[Vw.CheckNoChanges=1]="CheckNoChanges",Vw[Vw.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",Vw[Vw.CheckAndUpdate=3]="CheckAndUpdate",Vw[Vw.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",Vw[Vw.Destroy=5]="Destroy",Vw);function Ww(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?zw(wp(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Uw(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=wp(e,r).viewContainer._embeddedViews,a=0;a<o.length;a++)zw(o[a],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function zw(e,t){var n=e.state;switch(t){case Vw.CheckNoChanges:0==(128&n)&&(12==(12&n)?Pw(e):64&n&&qw(e,Vw.CheckNoChangesProjectedViews));break;case Vw.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Pw(e):64&n&&qw(e,t));break;case Vw.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Rw(e):64&n&&qw(e,Vw.CheckAndUpdateProjectedViews));break;case Vw.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Rw(e):64&n&&qw(e,t));break;case Vw.Destroy:Bw(e);break;case Vw.CreateViewNodes:Mw(e)}}function qw(e,t){Uw(e,t),Ww(e,t)}function Hw(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var a=e.def.nodes[o];if(a.flags&t&&a.flags&n)switch(Sp.setCurrentNode(e,a.nodeIndex),r){case 0:hw(e,a);break;case 1:Lw(e,a)}(!(a.childFlags&t)||!(a.childFlags&n))&&(o+=a.childCount)}}var Gw=!1;function Kw(){if(!Gw){Gw=!0;var e=Xg()?{setCurrentNode:y_,createRootView:$w,createEmbeddedView:Qw,createComponentView:Xw,createNgModuleRef:Jw,overrideProvider:r_,overrideComponentView:i_,clearOverrides:o_,checkAndUpdateView:c_,checkNoChangesView:l_,destroyView:f_,createDebugContext:function(e,t){return new C_(e,t)},handleEvent:m_,updateDirectives:g_,updateRenderer:b_}:{setCurrentNode:function(){},createRootView:Yw,createEmbeddedView:Aw,createComponentView:Dw,createNgModuleRef:Fv,overrideProvider:Ep,overrideComponentView:Ep,clearOverrides:Ep,checkAndUpdateView:Rw,checkNoChangesView:Pw,destroyView:Bw,createDebugContext:function(e,t){return new C_(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?u_:s_,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?u_:s_,e)}};Sp.setCurrentNode=e.setCurrentNode,Sp.createRootView=e.createRootView,Sp.createEmbeddedView=e.createEmbeddedView,Sp.createComponentView=e.createComponentView,Sp.createNgModuleRef=e.createNgModuleRef,Sp.overrideProvider=e.overrideProvider,Sp.overrideComponentView=e.overrideComponentView,Sp.clearOverrides=e.clearOverrides,Sp.checkAndUpdateView=e.checkAndUpdateView,Sp.checkNoChangesView=e.checkNoChangesView,Sp.destroyView=e.destroyView,Sp.resolveDep=ty,Sp.createDebugContext=e.createDebugContext,Sp.handleEvent=e.handleEvent,Sp.updateDirectives=e.updateDirectives,Sp.updateRenderer=e.updateRenderer,Sp.dirtyParentQueries=fw}}function Yw(e,t,n,r,i,o){var a=i.injector.get(wd);return Ow(Zw(e,i,a,t,n),r,o)}function $w(e,t,n,r,i,o){var a=i.injector.get(wd),u=Zw(e,i,new O_(a),t,n),s=a_(r);return E_(v_.create,Ow,null,[u,s,o])}function Zw(e,t,n,r,i){var o=t.injector.get(Sd),a=t.injector.get(na),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:u,errorHandler:a}}function Qw(e,t,n,r){var i=a_(n);return E_(v_.create,Aw,null,[e,t,i,r])}function Xw(e,t,n,r){return n=n_.get(t.element.componentProvider.provider.token)||a_(n),E_(v_.create,Dw,null,[e,t,n,r])}function Jw(e,t,n,r){var i=function(e){var t,n,r,i=(t=e,n=!1,r=!1,0===e_.size||(t.providers.forEach(function(e){var t=e_.get(e.token);3840&e.flags&&t&&(n=!0,r=r||t.deprecatedBehavior)}),t.modules.forEach(function(e){t_.forEach(function(t,i){k(F(i).providedIn)===e&&(n=!0,r=r||t.deprecatedBehavior)})})),{hasOverrides:n,hasDeprecatedOverrides:r}),o=i.hasDeprecatedOverrides;return i.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];o&&(n.flags|=4096);var r=e_.get(n.token);r&&(n.flags=-3841&n.flags|r.flags,n.deps=Yp(r.deps),n.value=r.value)}if(t_.size>0){var i=new Set(e.modules);t_.forEach(function(t,n){if(i.has(k(F(n).providedIn))){var r={token:n,flags:t.flags|(o?4096:0),deps:Yp(t.deps),value:t.value,index:e.providers.length};e.providers.push(r),e.providersByKey[Op(n)]=r}})}}(e=e.factory(function(){return Ep})),e):e}(r);return Fv(e,t,n,i)}var e_=new Map,t_=new Map,n_=new Map;function r_(e){var t;e_.set(e.token,e),"function"==typeof e.token&&(t=F(e.token))&&"function"==typeof t.providedIn&&t_.set(e.token,e)}function i_(e,t){var n=Qp(kv(t)),r=Qp(n.nodes[0].element.componentView);n_.set(e,r)}function o_(){e_.clear(),t_.clear(),n_.clear()}function a_(e){if(0===e_.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&e_.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Ep});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=e_.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=Yp(o.deps),i.value=o.value)}}}}function u_(e,t,n,r,i,o,a,u,s,c,l,f,h){var d=e.def.nodes[t];return Fw(e,d,n,r,i,o,a,u,s,c,l,f,h),224&d.flags?xp(e,t).value:void 0}function s_(e,t,n,r,i,o,a,u,s,c,l,f,h){var d=e.def.nodes[t];return jw(e,d,n,r,i,o,a,u,s,c,l,f,h),224&d.flags?xp(e,t).value:void 0}function c_(e){return E_(v_.detectChanges,Rw,null,[e])}function l_(e){return E_(v_.checkNoChanges,Pw,null,[e])}
1function f_(e){return E_(v_.destroy,Bw,null,[e])}var h_,d_,p_,v_=((v_=v_||{})[v_.create=0]="create",v_[v_.detectChanges=1]="detectChanges",v_[v_.checkNoChanges=2]="checkNoChanges",v_[v_.destroy=3]="destroy",v_[v_.handleEvent=4]="handleEvent",v_);function y_(e,t){d_=e,p_=t}function m_(e,t,n,r){return y_(e,t),E_(v_.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function g_(e,t){if(128&e.state)throw yp(v_[h_]);return y_(e,x_(e,0)),e.def.updateDirectives(function(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return 0===t?w_(e,i,r,a):__(e,i,r,a),16384&i.flags&&y_(e,x_(e,n)),224&i.flags?xp(e,i.nodeIndex).value:void 0},e)}function b_(e,t){if(128&e.state)throw yp(v_[h_]);return y_(e,k_(e,0)),e.def.updateRenderer(function(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return 0===t?w_(e,i,r,a):__(e,i,r,a),3&i.flags&&y_(e,k_(e,n)),224&i.flags?xp(e,i.nodeIndex).value:void 0},e)}function w_(e,t,n,r){if(Fw.apply(void 0,[e,t,n].concat(c(r)))){var i=1===n?r[0]:r;if(16384&t.flags){for(var o={},a=0;a<t.bindings.length;a++){var u=t.bindings[a],s=i[a];8&u.flags&&(o[oa(u.nonMinifiedName)]=ua(s))}var l=t.parent,f=wp(e,l.nodeIndex).renderElement;if(l.element.name)for(var h in o){var d=o[h];null!=d?e.renderer.setAttribute(f,h,d):e.renderer.removeAttribute(f,h)}else e.renderer.setValue(f,Zr("bindings=".concat(JSON.stringify(o,null,2))))}}}function __(e,t,n,r){jw.apply(void 0,[e,t,n].concat(c(r)))}function x_(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function k_(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var C_=function(){return C(function e(t,n){E(this,e),this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];for(var r=this.nodeDef,i=t;r&&0==(1&r.flags);)r=r.parent;if(!r)for(;!r&&i;)r=Wp(i),i=i.parent;this.elDef=r,this.elView=i},[{key:"elOrCompView",get:function(){return wp(this.elView,this.elDef.nodeIndex).componentView||this.view}},{key:"injector",get:function(){return Mv(this.elView,this.elDef)}},{key:"component",get:function(){return this.elOrCompView.component}},{key:"context",get:function(){return this.elOrCompView.context}},{key:"providerTokens",get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}},{key:"references",get:function(){var e={};if(this.elDef){S_(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&S_(this.elView,n,e),t+=n.childCount}}return e}},{key:"componentRenderElement",get:function(){var e=function(e){for(;e&&!qp(e);)e=e.parent;return e.parent?wp(e.parent,Wp(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}},{key:"renderNode",get:function(){return 2&this.nodeDef.flags?Up(this.view,this.nodeDef):Up(this.elView,this.elDef)}},{key:"logError",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o;2&this.nodeDef.flags?(i=this.view.def,o=this.nodeDef.nodeIndex):(i=this.elView.def,o=this.elDef.nodeIndex);var a=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(i,o),u=-1;i.factory(function(){var t;return++u===a?(t=e.error).bind.apply(t,[e].concat(n)):Ep}),u<a&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,n))}}])}();function S_(e,t,n){for(var r in t.references)n[r]=pw(e,t,t.references[r])}function E_(e,t,n,r){var i=h_,o=d_,a=p_;try{h_=e;var u=t.apply(n,r);return d_=o,p_=a,h_=i,u}catch(u){throw function(e){return!!Jo(e)}(u)||!d_?u:function(e,t){return e instanceof Error||(e=new Error(e.toString())),vp(e,t),e}(u,A_())}}function A_(){return d_?new C_(d_,p_):null}var O_=function(){return C(function e(t){E(this,e),this.delegate=t},[{key:"createRenderer",value:function(e,t){return new D_(this.delegate.createRenderer(e,t))}},{key:"begin",value:function(){this.delegate.begin&&this.delegate.begin()}},{key:"end",value:function(){this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}])}(),D_=function(){return C(function e(t){E(this,e),this.delegate=t,this.debugContextFactory=A_,this.data=this.delegate.data},[{key:"createDebugContext",value:function(e){return this.debugContextFactory(e)}},{key:"destroyNode",value:function(e){var t=qb(e);t&&(Wb.delete(t.nativeNode),t instanceof Ob&&(t.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}},{key:"destroy",value:function(){this.delegate.destroy()}},{key:"createElement",value:function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new Db(n,null,r);i.name=e,Kb(i)}return n}},{key:"createComment",value:function(e){var t=this.delegate.createComment(Zr(e)),n=this.createDebugContext(t);return n&&Kb(new Ob(t,null,n)),t}},{key:"createText",value:function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Kb(new Ob(t,null,n)),t}},{key:"appendChild",value:function(e,t){var n=qb(e),r=qb(t);n&&r&&n instanceof Db&&n.addChild(r),this.delegate.appendChild(e,t)}},{key:"insertBefore",value:function(e,t,n,r){var i=qb(e),o=qb(t),a=qb(n);i&&o&&i instanceof Db&&i.insertBefore(a,o),this.delegate.insertBefore(e,t,n,r)}},{key:"removeChild",value:function(e,t){var n=qb(e),r=qb(t);n&&r&&n instanceof Db&&n.removeChild(r),this.delegate.removeChild(e,t)}},{key:"selectRootElement",value:function(e,t){var n=this.delegate.selectRootElement(e,t),r=A_();return r&&Kb(new Db(n,null,r)),n}},{key:"setAttribute",value:function(e,t,n,r){var i=qb(e);i&&i instanceof Db&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){var r=qb(e);r&&r instanceof Db&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){var n=qb(e);n&&n instanceof Db&&(n.classes[t]=!0),this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){var n=qb(e);n&&n instanceof Db&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){var i=qb(e);i&&i instanceof Db&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){var r=qb(e);r&&r instanceof Db&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){var r=qb(e);r&&r instanceof Db&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){if("string"!=typeof e){var r=qb(e);r&&r.listeners.push(new Ab(t,n))}
1return this.delegate.listen(e,t,n)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setValue",value:function(e,t){return this.delegate.setValue(e,t)}}])}();function I_(e){return Kw(),Sp.overrideProvider(e)}function T_(e,t){return Kw(),Sp.overrideComponentView(e,t)}function M_(){return Kw(),Sp.clearOverrides()}function P_(e,t,n){return new R_(e,t,n)}var R_=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t)).moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return _(t,e),C(t,[{key:"create",value:function(e){Kw();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Qp(this._ngModuleDefFactory));return Sp.createNgModuleRef(this.moduleType,e||$u.NULL,this._bootstrapComponents,t)}}])}(op);function F_(e){return Qn().compileDirectiveDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275fac.js"),e)}function N_(e){var t,n;hy(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function j_(e){return Qn().compileComponentDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275cmp.js"),e)}function L_(e){return Qn(function(e){switch(e){case Zn.Directive:return"directive";case Zn.Component:return"component";case Zn.Injectable:return"injectable";case Zn.Pipe:return"pipe";case Zn.NgModule:}}(e.target)).compileFactoryDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275fac.js"),e)}function B_(e){return Qn().compileInjectableDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275prov.js"),e)}function V_(e){return Qn().compileInjectorDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275inj.js"),e)}function W_(e){return Qn().compileNgModuleDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275mod.js"),e)}function U_(e){return Qn().compilePipeDeclaration(fm,"ng:///".concat(e.type.name,"/\u0275pipe.js"),e)}},65061:function(e,t,n){"use strict";n.d(t,{Wl:function(){return v},gN:function(){return X},Fj:function(){return b},qu:function(){return bt},NI:function(){return Se},oH:function(){return He},u:function(){return $e},cw:function(){return Ee},sg:function(){return Ke},u5:function(){return mt},nD:function(){return vt},Fd:function(){return ut},wO:function(){return dt},qQ:function(){return ct},Cf:function(){return k},JU:function(){return d},a5:function(){return J},JJ:function(){return te},JL:function(){return ne},F:function(){return Ie},On:function(){return Pe},YN:function(){return Je},wV:function(){return Ne},_:function(){return Ve},eT:function(){return Ue},UX:function(){return gt},Q7:function(){return ft},EJ:function(){return Xe},kI:function(){return O},_Y:function(){return Re},Kr:function(){return rt}});var r,i=n(62415),o=n(92674),a=n(69556),u=n(297),s=n(39417),l=((r=function(){return C(function e(t,n){E(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}},[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}])}()).\u0275fac=function(e){return new(e||r)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},r.\u0275dir=i.\u0275\u0275defineDirective({type:r}),r),h=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(l);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,features:[i.\u0275\u0275InheritDefinitionFeature]}),t}(),d=new i.InjectionToken("NgValueAccessor"),p={provide:d,useExisting:(0,i.forwardRef)(function(){return v}),multi:!0},v=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"writeValue",value:function(e){this.setProperty("checked",e)}}])}(h);
1return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([p]),i.\u0275\u0275InheritDefinitionFeature]}),t}(),y={provide:d,useExisting:(0,i.forwardRef)(function(){return b}),multi:!0},g=new i.InjectionToken("CompositionEventMode"),b=function(){var e=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e,n]))._compositionMode=r,i._composing=!1,null==i._compositionMode&&(i._compositionMode=!function(){var e=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}()),i}return _(t,e),C(t,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}])}(l);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(g,8))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,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(e,t){1&e&&i.\u0275\u0275listener("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[i.\u0275\u0275ProvidersFeature([y]),i.\u0275\u0275InheritDefinitionFeature]}),e}();function w(e){return null==e||0===e.length}function x(e){return null!=e&&"number"==typeof e.length}var k=new i.InjectionToken("NgValidators"),S=new i.InjectionToken("NgAsyncValidators"),A=/^(?=.{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])?)*$/,O=function(){return C(function e(){E(this,e)},null,[{key:"min",value:function(e){return D(e)}},{key:"max",value:function(e){return I(e)}},{key:"required",value:function(e){return T(e)}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return w((t=e).value)||A.test(t.value)?null:{email:!0};var t}},{key:"minLength",value:function(e){return M(e)}},{key:"maxLength",value:function(e){return P(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(w(e.value))return null;var r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}):R;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return V(e)}},{key:"composeAsync",value:function(e){return U(e)}}])}();function D(e){return function(t){if(w(t.value)||w(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function I(e){return function(t){if(w(t.value)||w(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function T(e){return w(e.value)?{required:!0}:null}function M(e){return function(t){return w(t.value)||!x(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}function P(e){return function(t){return x(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function R(e){return null}function F(e){return null!=e}
1function N(e){var t=(0,i.\u0275isPromise)(e)?(0,a.D)(e):e;return(0,i.\u0275isObservable)(t),t}function j(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function L(e,t){return t.map(function(t){return t(e)})}function B(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function V(e){if(!e)return null;var t=e.filter(F);return 0==t.length?null:function(e){return j(L(e,t))}}function W(e){return null!=e?V(B(e)):null}function U(e){if(!e)return null;var t=e.filter(F);return 0==t.length?null:function(e){var n=L(e,t).map(N);return(0,u.D)(n).pipe((0,s.U)(j))}}function z(e){return null!=e?U(B(e)):null}function q(e,t){return null===e?[t]:Array.isArray(e)?[].concat(c(e),[t]):[e,t]}function H(e){return e._rawValidators}function G(e){return e._rawAsyncValidators}function K(e){return e?Array.isArray(e)?e:[e]:[]}function Y(e,t){return Array.isArray(e)?e.includes(t):e===t}function $(e,t){var n=K(t);return K(e).forEach(function(e){Y(n,e)||n.push(e)}),n}function Z(e,t){return K(t).filter(function(t){return!Y(e,t)})}var Q=function(){var e=function(){return C(function e(){E(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]},[{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}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=W(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=z(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e}),e}(),X=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}])}(Q);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,features:[i.\u0275\u0275InheritDefinitionFeature]}),t}(),J=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return _(t,e),C(t)}(Q),ee=function(){return C(function e(t){E(this,e),this._cd=t},[{key:"is",value:function(e){var t,n,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[e])}}])}(),te=function(){var e=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t)}(ee);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(J,2))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.\u0275\u0275classProp("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),e}(),ne=function(){var e=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t)}(ee);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(X,10))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.\u0275\u0275classProp("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),e}();function re(e,t){return[].concat(c(t.path),[e])}function ie(e,t){ue(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ce(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ce(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function oe(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),se(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function ae(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)}
1)}function ue(e,t){var n=H(e);null!==t.validator?e.setValidators(q(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var r=G(e);null!==t.asyncValidator?e.setAsyncValidators(q(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);var i=function(){return e.updateValueAndValidity()};ae(t._rawValidators,i),ae(t._rawAsyncValidators,i)}function se(e,t){var n=!1;if(null!==e){if(null!==t.validator){var r=H(e);if(Array.isArray(r)&&r.length>0){var i=r.filter(function(e){return e!==t.validator});i.length!==r.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){var o=G(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var u=function(){};return ae(t._rawValidators,u),ae(t._rawAsyncValidators,u),n}function ce(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function le(e,t){ue(e,t)}function fe(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function he(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function de(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===b?n=e:function(e){return Object.getPrototypeOf(e.constructor)===h}(e)?r=e:i=e}),i||r||n||null):null;var n,r,i}function pe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ve="VALID",ye="INVALID",me="PENDING",ge="DISABLED";function be(e){return(ke(e)?e.validators:e)||null}function we(e){return Array.isArray(e)?W(e):e||null}function _e(e,t){return(ke(t)?t.asyncValidators:e)||null}function xe(e){return Array.isArray(e)?z(e):e||null}function ke(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ce=function(){return C(function e(t,n){E(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=we(this._rawValidators),this._composedAsyncValidatorFn=xe(this._rawAsyncValidators)},[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===ve}},{key:"invalid",get:function(){return this.status===ye}},{key:"pending",get:function(){return this.status==me}},{key:"disabled",get:function(){return this.status===ge}},{key:"enabled",get:function(){return this.status!==ge}},{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:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=we(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=xe(e)}},{key:"addValidators",value:function(e){this.setValidators($(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators($(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(Z(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(Z(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return Y(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return Y(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}
1),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=me,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=ge,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=ve,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=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(),(this.status===ve||this.status===me)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?ge:ve}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=me,this._hasOwnPendingAsyncValidator=!0;var n=N(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var r=e;return t.forEach(function(e){r=r instanceof Ee?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ae&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}}
vendor: 4,127 bytes, line 1
1,{key:"_initObservables",value:function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?ge:this.errors?ye:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(me)?me:this._anyControlsHaveStatus(ye)?ye:ve}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ke(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}])}(),Se=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return E(this,t),(e=m(this,t,[be(r),_e(i,r)]))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _(t,e),C(t,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){pe(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){pe(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}])}(Ce),Ee=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[be(n),_e(r,n)])).controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!!i.asyncValidator}),i}return _(t,e),C(t,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
1this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Se?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var r=n[t],i=this.controls[r];if(this.contains(r)&&e(i))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))})}}])}(Ce),Ae=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[be(n),_e(r,n)])).controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!!i.asyncValidator}),i}return _(t,e),C(t,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Se?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=f(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}])}(Ce),Oe={provide:X,useExisting:(0,i.forwardRef)(function(){return Ie})},De=Promise.resolve(null),Ie=function(){var e=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new Ee({},W(e),z(n)),r}return _(t,e),C(t,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{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}},{key:"addControl",value:function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ie(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),pe(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;De.then(function(){var n=t._findContainer(e.path),r=new Ee({});le(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;De.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,he(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}])}(X);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(k,10),i.\u0275\u0275directiveInject(S,10))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Oe]),i.\u0275\u0275InheritDefinitionFeature]}),e}(),Te={provide:J,useExisting:(0,i.forwardRef)(function(){return Pe})},Me=Promise.resolve(null),Pe=function(){var e=function(e){function t(e,n,r,o){var a;return E(this,t),(a=m(this,t)).control=new Se,a._registered=!1,a.update=new i.EventEmitter,a._parent=e,a._setValidators(n),a._setAsyncValidators(r),a.valueAccessor=de(0,o),a}return _(t,e),C(t,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),fe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?re(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{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(){ie(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}}
1,{key:"_updateValue",value:function(e){var t=this;Me.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Me.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}}])}(J);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(X,9),i.\u0275\u0275directiveInject(k,10),i.\u0275\u0275directiveInject(S,10),i.\u0275\u0275directiveInject(d,10))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([Te]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),e}(),Re=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Fe={provide:d,useExisting:(0,i.forwardRef)(function(){return Ne}),multi:!0},Ne=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}])}(h);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Fe]),i.\u0275\u0275InheritDefinitionFeature]}),t}(),je={provide:d,useExisting:(0,i.forwardRef)(function(){return Ve}),multi:!0},Le=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({}),e}(),Be=function(){var e=function(){return C(function e(){E(this,e),this._accessors=[]},[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new e},token:e,providedIn:Le}),e}(),Ve=function(){var e=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e,n]))._registry=r,o._injector=i,o.onChange=function(){},o}return _(t,e),C(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(J),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}])}(h);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(Be),i.\u0275\u0275directiveInject(i.Injector))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([je]),i.\u0275\u0275InheritDefinitionFeature]}),e}(),We={provide:d,useExisting:(0,i.forwardRef)(function(){return Ue}),multi:!0},Ue=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"writeValue",value:function(e){this.setProperty("value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}])}(h);
1return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([We]),i.\u0275\u0275InheritDefinitionFeature]}),t}(),ze=new i.InjectionToken("NgModelWithFormControlWarning"),qe={provide:J,useExisting:(0,i.forwardRef)(function(){return He})},He=function(){var e=function(e){function t(e,n,r,o){var a;return E(this,t),(a=m(this,t))._ngModelWarningConfig=o,a.update=new i.EventEmitter,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(n),a.valueAccessor=de(0,r),a}return _(t,e),C(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&oe(t,this,!1),ie(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}fe(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&oe(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}])}(J);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(k,10),i.\u0275\u0275directiveInject(S,10),i.\u0275\u0275directiveInject(d,10),i.\u0275\u0275directiveInject(ze,8))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([qe]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),e._ngModelWarningSentOnce=!1,e}(),Ge={provide:X,useExisting:(0,i.forwardRef)(function(){return Ke})},Ke=function(){var e=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).validators=e,r.asyncValidators=n,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r._setValidators(e),r._setAsyncValidators(n),r}return _(t,e),C(t,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(se(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return ie(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){oe(e.control||null,e,!1),pe(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,he(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;
1this.directives.forEach(function(t){var n=t.control,r=e.form.get(t.path);n!==r&&(oe(n||null,t),r instanceof Se&&(ie(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);le(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return se(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ue(this.form,this),this._oldForm&&se(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}])}(X);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(k,10),i.\u0275\u0275directiveInject(S,10))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ge]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),e}(),Ye={provide:J,useExisting:(0,i.forwardRef)(function(){return $e})},$e=function(){var e=function(e){function t(e,n,r,o,a){var u;return E(this,t),(u=m(this,t))._ngModelWarningConfig=a,u._added=!1,u.update=new i.EventEmitter,u._ngModelWarningSent=!1,u._parent=e,u._setValidators(n),u._setAsyncValidators(r),u.valueAccessor=de(0,o),u}return _(t,e),C(t,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),fe(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return re(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{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}}])}(J);return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(X,13),i.\u0275\u0275directiveInject(k,10),i.\u0275\u0275directiveInject(S,10),i.\u0275\u0275directiveInject(d,10),i.\u0275\u0275directiveInject(ze,8))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Ye]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),e._ngModelWarningSentOnce=!1,e}(),Ze={provide:d,useExisting:(0,i.forwardRef)(function(){return Xe}),multi:!0};function Qe(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Xe=function(){var e,t=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments))._optionMap=new Map,e._idCounter=0,e._compareWith=Object.is,e}return _(t,e),C(t,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this.setProperty("selectedIndex",-1);var n=Qe(t,e);this.setProperty("value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}])}(h);
1return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Ze]),i.\u0275\u0275InheritDefinitionFeature]}),t}(),Je=function(){var e=function(){return C(function e(t,n,r){E(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())},[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Qe(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Xe,9))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e}(),et={provide:d,useExisting:(0,i.forwardRef)(function(){return nt}),multi:!0};function tt(e,t){return null==e?"".concat(t):("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var nt=function(){var e,t=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments))._optionMap=new Map,e._idCounter=0,e._compareWith=Object.is,e}return _(t,e),C(t,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),u=t._getOptionValue(a.value);r.push(u)}else for(var s=n.options,c=0;c<s.length;c++){var l=s.item(c);if(l.selected){var f=t._getOptionValue(l.value);r.push(f)}}t.value=r,e(r)}}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}])}(h);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([et]),i.\u0275\u0275InheritDefinitionFeature]}),t}(),rt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))},[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(tt(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(tt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(nt,9))},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e}();function it(e){return"number"==typeof e?e:parseInt(e,10)}var ot=function(){var e=function(){return C(function e(){E(this,e),this._validator=R},[{key:"handleChanges",value:function(e){if(this.inputName in e){var t=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.createValidator(t),this._onChange&&this._onChange()}}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e}),e}(),at={provide:k,useExisting:(0,i.forwardRef)(function(){return ut}),multi:!0},ut=function(){var e,t=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).inputName="max",e.normalizeInput=function(e){return parseFloat(e)},e.createValidator=function(e){return I(e)},e}return _(t,e),C(t,[{key:"ngOnChanges",value:function(e){this.handleChanges(e)}}])}(ot);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,t){var n;2&e&&i.\u0275\u0275attribute("max",null!==(n=t.max)&&void 0!==n?n:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([at]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t}(),st={provide:k,useExisting:(0,i.forwardRef)(function(){return ct}),multi:!0},ct=function(){var e,t=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).inputName="min",e.normalizeInput=function(e){return parseFloat(e)},e.createValidator=function(e){return D(e)},e}return _(t,e),C(t,[{key:"ngOnChanges",value:function(e){this.handleChanges(e)}}])}(ot);return t.\u0275fac=function(n){return(e||(e=i.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,t){var n;2&e&&i.\u0275\u0275attribute("min",null!==(n=t.min)&&void 0!==n?n:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([st]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t}(),lt={provide:k,useExisting:(0,i.forwardRef)(function(){return ft}),multi:!0},ft=function(){var e=function(){return C(function e(){E(this,e),this._required=!1},[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?T(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.\u0275\u0275attribute("required",t.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([lt])]}),e}(),ht={provide:k,useExisting:(0,i.forwardRef)(function(){return dt}),multi:!0},dt=function(){var e=function(){return C(function e(){E(this,e),this._validator=R},[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this.enabled()?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}
1,{key:"_createValidator",value:function(){this._validator=this.enabled()?M(it(this.minlength)):R}},{key:"enabled",value:function(){return null!=this.minlength}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.\u0275\u0275attribute("minlength",t.enabled()?t.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([ht]),i.\u0275\u0275NgOnChangesFeature]}),e}(),pt={provide:k,useExisting:(0,i.forwardRef)(function(){return vt}),multi:!0},vt=function(){var e=function(){return C(function e(){E(this,e),this._validator=R},[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this.enabled()?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=this.enabled()?P(it(this.maxlength)):R}},{key:"enabled",value:function(){return null!=this.maxlength}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.\u0275\u0275defineDirective({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.\u0275\u0275attribute("maxlength",t.enabled()?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([pt]),i.\u0275\u0275NgOnChangesFeature]}),e}(),yt=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Le]]}),e}(),mt=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({imports:[yt]}),e}(),gt=function(){var e=function(){function e(){E(this,e)}return C(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:ze,useValue:t.warnOnNgModelWithFormControl}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({imports:[yt]}),e}(),bt=function(){var e=function(){return C(function e(){E(this,e)},[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this._reduceControls(e),i=null,o=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(i=null!=n.validators?n.validators:null,o=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(i=null!=n.validator?n.validator:null,o=null!=n.asyncValidator?n.asyncValidator:null)),new Ee(r,{asyncValidators:o,updateOn:t,validators:i})}},{key:"control",value:function(e,t,n){return new Se(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Ae(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof Se||e instanceof Ee||e instanceof Ae?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new e},token:e,providedIn:gt}),e}()},43610:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Ut},PW:function(){return Gt}});var r=n(62415),o=n(47623),a=n(65594);function u(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(e){switch(e.length){case 0:return new a.ZN;case 1:return e[0];default:return new a.ZE(e)}}function d(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=[],s=[],c=-1,l=null;if(r.forEach(function(e){var n=e.offset,r=n==c,f=r&&l||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,u),s){case a.k1:s=i[n];break;case a.l3:s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,u)}f[r]=s}),r||s.push(f),l=f,c=n}),u.length){var f="\n - ";throw new Error("Unable to animate due to the following errors:".concat(f).concat(u.join(f)))}return s}function p(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&v(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&v(n,"done",e))});break;
1case"destroy":e.onDestroy(function(){return r(n&&v(n,"destroy",e))})}}function v(e,t,n){var r=n.totalTime,i=y(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function y(e,t,n,r){var i=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:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function g(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function b(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var w=function(e,t){return!1},x=function(e,t){return!1},k=function(e,t,n){return[]},S=s();(S||"undefined"!=typeof Element)&&(w=u()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},x=function(){if(S||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:x}(),k=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),o=0;o<i.length;o++)r.push(i[o]);else{var a=e.querySelector(t);a&&r.push(a)}return r});var A=null,O=!1;function D(e){A||(A=("undefined"!=typeof document?document.body:null)||{},O=!!A.style&&"WebkitAppearance"in A.style);var t=!0;return A.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in A.style)&&O&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in A.style)),t}var I=x,T=w,M=k;function P(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var R,F=((R=function(){return C(function e(){E(this,e)},[{key:"validateStyleProperty",value:function(e){return D(e)}},{key:"matchesElement",value:function(e,t){return I(e,t)}},{key:"containsElement",value:function(e,t){return T(e,t)}},{key:"query",value:function(e,t,n){return M(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return new a.ZN(n,r)}}])}()).\u0275fac=function(e){return new(e||R)},R.\u0275prov=r.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R),N=function(){var e=C(function e(){E(this,e)});return e.NOOP=new F,e}(),j="ng-enter",L="ng-leave",B="ng-trigger",V=".ng-trigger",W="ng-animating",U=".ng-animating";function z(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:q(parseFloat(t[1]),t[2])}function q(e,t){return"s"===t?1e3*e:e}function H(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=q(parseFloat(a[1]),a[2]);var u=a[3];null!=u&&(i=q(parseFloat(u),a[4]));var s=a[5];s&&(o=s)}else r=e;if(!n){var c=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else G(e,n);return n}function Y(e,t,n){return n?t+":"+n+";":""}function $(e){for(var t="",n=0;n<e.style.length;n++){var r=e.style.item(n);t+=Y(0,r,e.style.getPropertyValue(r))}for(var i in e.style)e.style.hasOwnProperty(i)&&!i.startsWith("_")&&(t+=Y(0,oe(i),e.style[i]));e.setAttribute("style",t)}function Z(e,t,n){e.style&&(Object.keys(t).forEach(function(r){var i=ie(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),s()&&$(e))}function Q(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=ie(t);e.style[n]=""}),s()&&$(e))}function X(e){return Array.isArray(e)?1==e.length?e[0]:(0,a.vP)(e):e}var J=new RegExp("{{\\s*(.+?)\\s*}}","g");function ee(e){var t=[];if("string"==typeof e){for(var n;n=J.exec(e);)t.push(n[1]);J.lastIndex=0}return t}function te(e,t,n){var r=e.toString(),i=r.replace(J,function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param ".concat(r)),i=""),i.toString()});return i==r?e:i}function ne(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var re=/-+([a-z0-9])/g;function ie(e){return e.replace(re,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function oe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ae(e,t){return 0===e||0===t}function ue(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],o=[];if(r.forEach(function(e){i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var a=function(){var n=t[u];o.forEach(function(t){n[t]=ce(e,t)})},u=1;u<t.length;u++)a()}return t}function se(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function ce(e,t){return window.getComputedStyle(e)[t]}function le(e,t){var n=[];
1return"string"==typeof e?e.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],u=i[3];t.push(de(o,u)),"<"==a[0]&&("*"!=o||"*"!=u)&&t.push(de(u,o))}(e,n,t)}):n.push(e),n}var fe=new Set(["true","1"]),he=new Set(["false","0"]);function de(e,t){var n=fe.has(e)||he.has(e),r=fe.has(t)||he.has(t);return function(i,o){var a="*"==e||e==i,u="*"==t||t==o;return!a&&n&&"boolean"==typeof i&&(a=i?fe.has(e):he.has(e)),!u&&r&&"boolean"==typeof o&&(u=o?fe.has(t):he.has(t)),a&&u}}var pe=new RegExp("s*:selfs*,?","g");function ve(e,t,n){return new ye(e).build(t,n)}var ye=function(){return C(function e(t){E(this,e),this._driver=t},[{key:"build",value:function(e,t){var n=new me(t);return this._resetContextStyleTimingState(n),se(this,X(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var u=e,s=u.name;s.toString().split(/\s*,\s*/).forEach(function(e){u.name=e,o.push(n.visitState(u,t))}),u.name=s}else if(1==e.type){var c=n.visitTransition(e,t);r+=c.queryCount,i+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(e){if(ge(e)){var t=e;Object.keys(t).forEach(function(e){ee(t[e]).forEach(function(e){o.hasOwnProperty(e)||i.add(e)})})}}),i.size){var a=ne(i.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=se(this,X(e.animation),t);return{type:1,matchers:le(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:be(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return se(n,e,t)}),options:be(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=se(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:be(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return we(H(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=we(0,0,"");return i.dynamic=!0,i.strValue=r,i}return we((n=n||H(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var r,i=e.styles?e.styles:(0,a.oB)({});if(5==i.type)r=this.visitKeyframes(i,t);else{var o=e.styles,u=!1;if(!o){u=!0;var s={};n.easing&&(s.easing=n.easing),o=(0,a.oB)(s)}t.currentTime+=n.duration+n.delay;var c=this.visitStyle(o,t);c.isEmptyStep=u,r=c}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);
1return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==a.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(ge(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a=t.collectedStyles[t.currentQuerySelector],u=a[r],s=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(u.startTime,'ms" and "').concat(u.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),s=!1),o=u.startTime),s&&(a[r]={startTime:o,endTime:i}),t.options&&function(e,t,n){var r=t.params||{},i=ee(e);i.length&&i.forEach(function(e){r.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[r],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,u=!1,s=0,c=e.steps.map(function(e){var r=n._makeStyleAst(e,t),c=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ge(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ge(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),u=u||l<0||l>1,a=a||l<s,s=l,o.push(l),r});u&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,f=0;i>0&&i<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(f=1/(l-1));var h=l-1,d=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return c.forEach(function(e,i){var a=f>0?i==h?1:f*i:o[i],u=a*v;t.currentTime=d+p.delay+u,p.duration=u,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:se(this,X(e.animation),t),options:be(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:be(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:be(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(pe,"")),e=e.replace(/@\*/g,V).replace(/@\w+/g,function(e){return V+"-"+e.substr(1)}).replace(/:animating/g,U),[e,t]}(e.selector),o=h(i,2),a=o[0],u=o[1];t.currentQuerySelector=n.length?n+" "+a:a,g(t.collectedStyles,t.currentQuerySelector,{});var s=se(this,X(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:u,animation:s,originalSelector:e.selector,options:be(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:H(e.timings,t.errors,!0);return{type:12,animation:se(this,X(e.animation),t),timings:n,options:null}}}])}(),me=C(function e(t){E(this,e),this.errors=t,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 ge(e){return!Array.isArray(e)&&"object"==typeof e}function be(e){return e?(e=G(e)).params&&(e.params=function(e){return e?G(e):null}(e.params)):e={},e}function we(e,t,n){return{duration:e,delay:t,easing:n}}function _e(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:u}}var xe=function(){return C(function e(){E(this,e),this._map=new Map}
1,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,c(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}])}(),ke=new RegExp(":enter","g"),Ce=new RegExp(":leave","g");function Se(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},u=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Ee).buildKeyframes(e,t,n,r,i,o,a,u,s,c)}var Ee=function(){return C(function e(){E(this,e)},[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,u,s){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];s=s||new xe;var l=new Oe(e,t,s,r,i,c,[]);l.options=u,l.currentTimeline.setStyles([o],null,l.errors,u),se(this,n,l);var f=l.timelines.filter(function(e){return e.containsAnimation()});if(f.length&&Object.keys(a).length){var h=f[f.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,l.errors,u)}return f.length?f.map(function(e){return e.buildKeyframes()}):[_e(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?z(n.duration):null,o=null!=n.delay?z(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),se(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ae);var a=z(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return se(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?z(e.options.delay):0;e.steps.forEach(function(a){var u=t.createSubContext(e.options);o&&u.delayNextStep(o),se(n,a,u),i=Math.max(i,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return H(t.params?te(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;
1o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?z(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ae);var a=r,u=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;var s=null;u.forEach(function(r,i){t.currentQueryIndex=i;var u=t.createSubContext(e.options,r);o&&u.delayNextStep(o),r===t.element&&(s=u.currentTimeline),se(n,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),s&&(t.currentTimeline.mergeTimelineCollectedStyles(s),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),u=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":u=a-u;break;case"full":u=n.currentStaggerTime}var s=t.currentTimeline;u&&s.delayNextStep(u);var c=s.currentTime;se(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}])}(),Ae={},Oe=function(){function e(t,n,r,i,o,a,u,s){E(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ae,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new De(this._driver,n,0),u.push(this.currentTimeline)}return C(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=z(r.duration)),null!=r.delay&&(i.delay=z(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=te(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ae,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ie(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(ke,"."+this._enterClassName)).replace(Ce,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),a.push.apply(a,c(u))}return!i&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}])}(),De=function(){function e(t,n,r,i){E(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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 C(e,[{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:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||a.l3,t._currentKeyframe[e]=a.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},u=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=a.l3}):K(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(u).forEach(function(e){var t=te(u[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:a.l3),i._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,u){var s=K(o,!0);Object.keys(s).forEach(function(e){var r=s[e];r==a.k1?t.add(e):r==a.l3&&n.add(e)}),r||(s.offset=u/e.duration),i.push(s)});var o=t.size?ne(t.values()):[],u=n.size?ne(n.values()):[];if(r){var s=i[0],c=G(s);s.offset=0,c.offset=1,i=[s,c]}return _e(this.element,i,o,u,this.duration,this.startTime,this.easing,!1)}}])}(),Ie=function(e){function t(e,n,r,i,o,a){var u,s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return E(this,t),(u=m(this,t,[e,n,a.delay])).keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return _(t,e),C(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,u=n/a,s=K(e[0],!1);s.offset=0,o.push(s);var c=K(e[0],!1);c.offset=Te(u),o.push(c);for(var l=e.length-1,f=1;f<=l;f++){var h=K(e[f],!1);h.offset=Te((n+h.offset*r)/a),o.push(h)}r=a,n=0,i="",e=o}return _e(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}])}(De);function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Me=C(function e(){E(this,e)}),Pe=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"normalizePropertyName",value:function(e,t){return ie(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Re[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}])}(Me),Re=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("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 Fe(e,t,n,r,i,o,a,u,s,c,l,f,h){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:u,queriedElements:s,preStyleProps:c,postStyleProps:l,totalTime:f,errors:h}}var Ne={},je=function(){return C(function e(t,n,r){E(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r},[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,u,s,c){var l=[],f=this.ast.options&&this.ast.options.params||Ne,h=this.buildStyles(n,a&&a.params||Ne,l),d=u&&u.params||Ne,p=this.buildStyles(r,d,l),v=new Set,y=new Map,m=new Map,b="void"===r,w={params:Object.assign(Object.assign({},f),d)},_=c?[]:Se(e,t,this.ast.animation,i,o,h,p,w,s,l),x=0;if(_.forEach(function(e){x=Math.max(e.duration+e.delay,x)}),l.length)return Fe(t,this._triggerName,n,r,b,h,p,[],[],y,m,x,l);_.forEach(function(e){var n=e.element,r=g(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=g(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&v.add(n)});var k=ne(v.values());return Fe(t,this._triggerName,n,r,b,h,p,_,k,y,m,x)}}])}(),Le=function(){return C(function e(t,n,r){E(this,e),this.styles=t,this.defaultParams=n,this.normalizer=r},[{key:"buildStyles",value:function(e,t){var n=this,r={},i=G(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}
1),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=te(a,i,t));var u=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,u,a,t),r[u]=a})}}),r}}])}(),Be=function(){return C(function e(t,n,r){var i=this;E(this,e),this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Le(e.style,e.options&&e.options.params||{},r)}),Ve(this.states,"true","1"),Ve(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new je(t,e,i.states))}),this.fallbackTransition=function(e,t,n){return new je(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)},[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}])}();function Ve(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var We=new xe,Ue=function(){return C(function e(t,n,r){E(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]},[{key:"register",value:function(e,t){var n=[],r=ve(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=d(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],u=this._animations[e],s=new Map;if(u?(n=Se(this._driver,t,u,j,L,{},{},i,We,o)).forEach(function(e){var t=g(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=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(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,a.l3)})});var c=l(n.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return r.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=y(t,"","","");return p(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}])}(),ze="ng-animate-queued",qe="ng-animate-disabled",He=".ng-animate-disabled",Ge=[],Ke={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ye={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$e="__ng_removed",Ze=function(){return C(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";E(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=G(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})},[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}])}(),Qe="void",Xe=new Ze(Qe),Je=function(){return C(function e(t,n,r){E(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+t,ut(n,this._hostClassName)},[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=g(this._elementListeners,e,[]),u={name:t,phase:n,callback:r};a.push(u);var s=g(this._engine.statesByElement,e,{});return s.hasOwnProperty(t)||(ut(e,B),ut(e,B+"-"+t),s[t]=Xe),function(){o._engine.afterFlush(function(){var e=a.indexOf(u);e>=0&&a.splice(e,1),o._triggers[t]||delete s[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new tt(this.id,t,e),u=this._engine.statesByElement.get(e);u||(ut(e,B),ut(e,B+"-"+t),this._engine.statesByElement.set(e,u={}));var s=u[t],c=new Ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),u[t]=c,s||(s=Xe),c.value===Qe||s.value!==c.value){var l=g(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=o.matchTransition(s.value,c.value,e,c.params),h=!1;if(!f){if(!i)return;f=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:s,toState:c,player:a,isFallbackTransition:h}),h||(ut(e,ze),a.onStart(function(){st(e,ze)})),a.onDone(function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),l.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(s.params,c.params)){var d=[],p=o.matchStyles(s.value,s.params,d),v=o.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){Q(e,p),Z(e,v)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,r=this._engine.driver.query(e,V,!0);r.forEach(function(e){if(!e[$e]){var r=n._engine.fetchNamespacesByElement(e);r.size?r.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return r.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,r){var i=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,Qe,r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&l(a).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){var i=new Set;n.forEach(function(n){var o=n.name;if(!i.has(o)){i.add(o);var a=t._triggers[o].fallbackTransition,u=r[o]||Xe,s=new Ze(Qe),c=new tt(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:u,toState:s,player:c,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else for(var a=e;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{var u=e[$e];(!u||u===Ke)&&(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){ut(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==r.triggerName){var n=y(o,r.triggerName,r.fromState.value,r.toState.value);n._data=e,p(r.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1})}}
1,{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}])}(),et=function(){return C(function e(t,n,r){E(this,e),this.bodyNode=t,this.driver=n,this._normalizer=r,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(e,t){}},[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Je(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,r){if(nt(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}},{key:"insertNode",value:function(e,t,n,r){if(nt(t)){var i=t[$e];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ut(e,qe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),st(e,qe))}},{key:"removeNode",value:function(e,t,n,r){if(nt(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t[$e]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return nt(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,V,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,U,!0)).forEac
1h(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return l(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[$e];if(n&&n.setForRemoval){if(e[$e]=Ke,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,He)&&this.markElementAsDisabled(e,!1),this.driver.query(e,He,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)ut(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(var o=0;o<i.length;o++)i[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(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var u=this._whenQuietFns;this._whenQuietFns=[],n.length?l(n).onDone(function(){u.forEach(function(e){return e()})}):u.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,r=new xe,i=[],o=new Map,u=[],s=new Map,f=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(function(e){d.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)d.add(t[r])});var p=this.bodyNode,v=Array.from(this.statesByElement.keys()),y=ot(v,this.collectedEnterElements),m=new Map,b=0;y.forEach(function(e,t){var n=j+b++;m.set(t,n),e.forEach(function(e){return ut(e,n)})});for(var w=[],_=new Set,x=new Set,k=0;k<this.collectedLeaveElements.length;k++){var C=this.collectedLeaveElements[k],S=C[$e];S&&S.setForRemoval&&(w.push(C),_.add(C),S.hasAnimation?this.driver.query(C,".ng-star-inserted",!0).forEach(function(e){return _.add(e)}):x.add(C))}var E=new Map,A=ot(v,Array.from(_));A.forEach(function(e,t){var n=L+b++;E.set(t,n),e.forEach(function(e){return ut(e,n)})}),e.push(function(){y.forEach(function(e,t){var n=m.get(t);e.forEach(function(e){return st(e,n)})}),A.forEach(function(e,t){var n=E.get(t);e.forEach(function(e){return st(e,n)})}
1),w.forEach(function(e){n.processLeaveNode(e)})});for(var O=[],D=[],I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(O.push(t),n.collectedEnterElements.length){var a=o[$e];if(a&&a.setForMove)return void t.destroy()}var c=!p||!n.driver.containsElement(p,o),l=E.get(o),d=m.get(o),v=n._buildInstruction(e,r,d,l,c);if(v.errors&&v.errors.length)D.push(v);else{if(c)return t.onStart(function(){return Q(o,v.fromStyles)}),t.onDestroy(function(){return Z(o,v.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Q(o,v.fromStyles)}),t.onDestroy(function(){return Z(o,v.toStyles)}),void i.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,v.timelines),u.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return g(s,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=f.get(t);r||f.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=h.get(t);r||h.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(D.length){var T=[];D.forEach(function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return T.push("- ".concat(e,"\n"))})}),O.forEach(function(e){return e.destroy()}),this.reportError(T)}var M=new Map,P=new Map;u.forEach(function(e){var t=e.element;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,M))}
1),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){g(M,t,[]).push(e),e.destroy()})});var R=w.filter(function(e){return ft(e,f,h)}),F=new Map;it(F,this.driver,x,h,a.l3).forEach(function(e){ft(e,f,h)&&R.push(e)});var N=new Map;y.forEach(function(e,t){it(N,n.driver,new Set(e),f,a.k1)}),R.forEach(function(e){var t=F.get(e),n=N.get(e);F.set(e,Object.assign(Object.assign({},t),n))});var B=[],V=[],W={};u.forEach(function(e){var t=e.element,a=e.player,u=e.instruction;if(r.has(t)){if(d.has(t))return a.onDestroy(function(){return Z(t,u.toStyles)}),a.disabled=!0,a.overrideTotalTime(u.totalTime),void i.push(a);var s=W;if(P.size>1){for(var c=t,f=[];c=c.parentNode;){var h=P.get(c);if(h){s=h;break}f.push(c)}f.forEach(function(e){return P.set(e,s)})}var p=n._buildAnimation(a.namespaceId,u,M,o,N,F);if(a.setRealPlayer(p),s===W)B.push(a);else{var v=n.playersByElement.get(s);v&&v.length&&(a.parentPlayer=l(v)),i.push(a)}}else Q(t,u.fromStyles),a.onDestroy(function(){return Z(t,u.toStyles)}),V.push(a),d.has(t)&&i.push(a)}),V.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=l(t);e.setRealPlayer(n)}}
1),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var z=0;z<w.length;z++){var q=w[z],H=q[$e];if(st(q,L),!H||!H.hasAnimation){var G=[];if(s.size){var K=s.get(q);K&&K.length&&G.push.apply(G,c(K));for(var Y=this.driver.query(q,U,!0),$=0;$<Y.length;$++){var X=s.get(Y[$]);X&&X.length&&G.push.apply(G,c(X))}}var J=G.filter(function(e){return!e.destroyed});J.length?ct(this,q,J):this.processLeaveNode(q)}}return w.length=0,B.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),B}},{key:"elementContainsData",value:function(e,t){var n=!1,r=t[$e];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,r,i){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var u=this.playersByElement.get(e);if(u){var s=!i||i==Qe;u.forEach(function(e){e.queued||!s&&e.triggerName!=r||o.push(e)})}}return(n||r)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var r,i=this,o=t.element,a=t.isRemovalTransition?void 0:e,u=t.isRemovalTransition?void 0:t.triggerName,s=f(t.timelines);try{var c=function(){var e=r.value.element,s=e!==o,c=g(n,e,[]);i._getPreviousPlayers(e,s,a,u,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})};for(s.s();!(r=s.n()).done;)c()}catch(l){s.e(l)}finally{s.f()}Q(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,r,i,o){var u=this,s=t.triggerName,c=t.element,f=[],h=new Set,p=new Set,v=t.timelines.map(function(t){var l=t.element;h.add(l);var v=l[$e];if(v&&v.removedBeforeQueried)return new a.ZN(t.duration,t.delay);var y=l!==c,m=function(e){var t=[];return lt(e,t),t}((n.get(l)||Ge).map(function(e){return e.getRealPlayer()})).filter(function(e){return!!e.element&&e.element===l}),g=i.get(l),b=o.get(l),w=d(0,u._normalizer,0,t.keyframes,g,b),_=u._buildPlayer(t,w,m);if(t.subTimeline&&r&&p.add(l),y){var x=new tt(e,s,l);x.setRealPlayer(_),f.push(x)}return _});f.forEach(function(e){g(u.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&delete e[t]}return r}(u.playersByQueriedElement,e.element,e)})}),h.forEach(function(e){return ut(e,W)});var y=l(v);return y.onDestroy(function(){h.forEach(function(e){return st(e,W)}),Z(c,t.toStyles)}),p.forEach(function(e){g(r,e,[]).push(y)}),y}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new a.ZN(e.duration,e.delay)}}])}(),tt=function(){return C(function e(t,n,r){E(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new a.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0},[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
1h(function(n){t._queuedCallbacks[n].forEach(function(t){return p(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){g(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}])}();function nt(e){return e&&1===e.nodeType}function rt(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function it(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(rt(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);(!n||0==n.length)&&(r[$e]=Ye,a.push(r))}),e.set(r,o)});var u=0;return n.forEach(function(e){return rt(e,o[u++])}),a}function ot(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function o(e){if(!e)return 1;var t=i.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:r.has(a)?1:o(a),i.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var at="$$classes";function ut(e,t){if(e.classList)e.classList.add(t);else{var n=e[at];n||(n=e[at]={}),n[t]=!0}}function st(e,t){if(e.classList)e.classList.remove(t);else{var n=e[at];n&&delete n[t]}}function ct(e,t,n){l(n).onDone(function(){return e.processLeaveNode(t)})}function lt(e,t){for(var n=0;n<e.length;n++){var r=e[n];r instanceof a.ZE?lt(r.players,t):t.push(r)}}function ft(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var ht=function(){return C(function e(t,n,r){var i=this;E(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new et(t,n,r),this._timelineEngine=new Ue(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}},[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var u=[],s=ve(this._driver,i,u);if(u.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(u.join("\n - ")));a=function(e,t,n){return new Be(e,t,n)}(r,s,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=h(b(n),2),o=i[0],a=i[1];this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=h(b(n),2),a=o[0],u=o[1];return this._timelineEngine.listen(a,t,u,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}])}();function dt(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=vt(t[0]),t.length>1&&(r=vt(t[t.length-1]))):t&&(n=vt(t)),n||r?new pt(e,n,r):null}var pt=function(){var e=function(){function e(t,n,r){E(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return C(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Z(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Z(this._element,this._initialStyles),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),Z(this._element,this._initialStyles),this._state=3)}}])}();return e.initialStylesByElement=new WeakMap,e}();function vt(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];yt(i)&&((t=t||{})[i]=e[i])}return t}function yt(e){return"display"===e||"position"===e}var mt="animation",gt="animationend",bt=function(){return C(function e(t,n,r,i,o,a,u){var s=this;E(this,e),this._element=t,this._name=n,this._duration=r,this._delay=i,this._easing=o,this._fillMode=a,this._onDoneFn=u,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return s._handleCallback(e)}},[{key:"apply",value:function(){(function(e,t){var n=St(e,"").trim();n.length&&(function(e,t){for(var n=0,r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t="".concat(n,", ").concat(t)),Ct(e,"",t)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),kt(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){wt(this._element,this._name,"paused")}},{key:"resume",value:function(){wt(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=_t(this._element,this._name);this._position=e*this._duration,Ct(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),kt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=St(e,"").split(","),r=xt(n,t);r>=0&&(n.splice(r,1),Ct(e,"",n.join(",")))}(this._element,this._name))}}])}();function wt(e,t,n){Ct(e,"PlayState",n,_t(e,t))}function _t(e,t){var n=St(e,"");return n.indexOf(",")>0?xt(n.split(","),t):xt([n],t)}function xt(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function kt(e,t,n){n?e.removeEventListener(gt,t):e.addEventListener(gt,t)}function Ct(e,t,n,r){var i=mt+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function St(e,t){return e.style[mt+t]||""}var Et=function(){return C(function e(t,n,r,i,o,a,u,s){E(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=u,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()},[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>
1=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new bt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:ce(e.element,r))})}this.currentSnapshot=t}}])}(),At=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=P(n),r}return _(t,e),C(t,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),i(t,"init",this,3)([]))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),i(t,"play",this,3)([]))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,i(t,"destroy",this,3)([]))}}])}(a.ZN),Ot=function(){return C(function e(){E(this,e),this._count=0},[{key:"validateStyleProperty",value:function(e){return D(e)}},{key:"matchesElement",value:function(e,t){return I(e,t)}},{key:"containsElement",value:function(e,t){return T(e,t)}},{key:"query",value:function(e,t,n){return M(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return P(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Et}),u={};ae(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var s=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=ue(e,t,u));if(0==n)return new At(e,s);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,c,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var f=dt(e,t),h=new Et(e,t,c,n,r,i,s,f);return h.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),h}}])}(),Dt=function(){return C(function e(t,n,r,i){E(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ce(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}])}(),It=function(){return C(function e(){E(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Tt().toString()),this._cssKeyframesDriver=new Ot},[{key:"validateStyleProperty",value:function(e){return D(e)}},{key:"matchesElement",value:function(e,t){return I(e,t)}},{key:"containsElement",value:function(e,t){return T(e,t)}},{key:"query",value:function(e,t,n){return M(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){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(e,t,n,r,i,o);var u={duration:n,delay:r,fill:0==r?"both":"forwards"};
1i&&(u.easing=i);var s={},c=o.filter(function(e){return e instanceof Dt});ae(n,r)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=dt(e,t=ue(e,t=t.map(function(e){return K(e,!1)}),s));return new Dt(e,t,u,l)}}])}();function Tt(){return u()&&Element.prototype.animate||{}}var Mt=n(92674),Pt=function(){var e=function(e){function t(e,n){var i;return E(this,t),(i=m(this,t))._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}}),i}return _(t,e),C(t,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,a.vP)(e):e;return Nt(this._renderer,null,t,"register",[n]),new Rt(t,this._renderer)}}])}(a._j);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(Mt.K0))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Rt=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t))._id=e,r._renderer=n,r}return _(t,e),C(t,[{key:"create",value:function(e,t){return new Ft(this._id,e,t||{},this._renderer)}}])}(a.LC),Ft=function(){return C(function e(t,n,r,i){E(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)},[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nt(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{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"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}])}();function Nt(e,t,n,r,i){return e.setProperty(t,"@@".concat(n,":").concat(r),i)}var jt="@.disabled",Lt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}},[{key:"createRenderer",value:function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new Bt("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);var u=function(t){Array.isArray(t)?t.forEach(u):n.engine.registerTrigger(o,a,e,t.name,t)};return t.data.animation.forEach(u),new Vt(this,a,r,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=h(e,2);(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}])}();return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(ht),r.\u0275\u0275inject(r.NgZone))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Bt=function(){return C(function e(t,n,r){E(this,e),this.namespaceId=t,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null},[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==jt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n
1)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}])}(),Vt=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[n,r,i])).factory=e,o.namespaceId=n,o}return _(t,e),C(t,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==jt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var r=this;if("@"==t.charAt(0)){var i,o,a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),s="";return"@"!=u.charAt(0)&&(i=function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(u),u=(o=h(i,2))[0],s=o[1]),this.engine.listen(this.namespaceId,a,u,s,function(e){r.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}])}(Bt),Wt=function(){var e=function(e){function t(e,n,r){return E(this,t),m(this,t,[e.body,n,r])}return _(t,e),C(t,[{key:"ngOnDestroy",value:function(){this.flush()}}])}(ht);return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(Mt.K0),r.\u0275\u0275inject(N),r.\u0275\u0275inject(Me))},e.\u0275prov=r.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Ut=new r.InjectionToken("AnimationModuleType"),zt=[{provide:a._j,useClass:Pt},{provide:Me,useFactory:function(){return new Pe}},{provide:ht,useClass:Wt},{provide:r.RendererFactory2,useFactory:function(e,t,n){return new Lt(e,t,n)},deps:[o.se,ht,r.NgZone]}],qt=[{provide:N,useFactory:function(){return"function"==typeof Tt()?new It:new Ot}},{provide:Ut,useValue:"BrowserAnimations"}].concat(zt),Ht=[{provide:N,useClass:F},{provide:Ut,useValue:"NoopAnimations"}].concat(zt),Gt=function(){var e=function(){function e(){E(this,e)}return C(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Ht:qt}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=r.\u0275\u0275defineInjector({providers:qt,imports:[o.b2]}),e}()},47623:function(e,t,n){"use strict";n.d(t,{b2:function(){return z},H7:function(){return B},h_:function(){return H},Dx:function(){return Y},q6:function(){return W},se:function(){return D}});var r,o,a=n(92674),u=n(62415),s=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).supportsDOMEvents=!0,e}return _(t,e),C(t)}(a.w_),c=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(l=l||document.querySelector("base"))?l.getAttribute("href"):null;return null==t?null:function(e){r=r||document.createElement("a"),r.setAttribute("href",e);var t=r.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){l=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,a.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,a.HT)(new t)}}])}(s),l=null,f=new u.InjectionToken("TRANSITION_ID"),h=[{provide:u.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(u.ApplicationInitStatus).donePromise.then(function(){for(var n=(0,a.q)(),r=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),i=0;i<r.length;i++)n.remove(r[i])})}},deps:[f,a.K0,u.Injector],multi:!0}],d=function(){function e(){E(this,e)}return C(e,[{key:"addToWindow",value:function(e){u.\u0275global.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},u.\u0275global.getAllAngularTestabilities=function(){return e.getAllTestabilities()},u.\u0275global.getAllAngularRootElements=function(){return e.getAllRootElements()},u.\u0275global.frameworkStabilizers||(u.\u0275global.frameworkStabilizers=[]),u.\u0275global.frameworkStabilizers.push(function(e){var t=u.\u0275global.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?(0,a.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,u.setTestabilityGetter)(new e)}}])}(),p=((o=function(){return C(function e(){E(this,e)},[{key:"build",value:function(){return new XMLHttpRequest}}])}()).\u0275fac=function(e){return new(e||o)}
1,o.\u0275prov=u.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o),v=new u.InjectionToken("EventManagerPlugins"),y=function(){var e=function(){return C(function e(t,n){var r=this;E(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()},[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event ".concat(e))}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(v),u.\u0275\u0275inject(u.NgZone))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),g=function(){return C(function e(t){E(this,e),this._doc=t},[{key:"addGlobalEventListener",value:function(e,t,n){var r=(0,a.q)().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}])}(),b=function(){var e=function(){return C(function e(){E(this,e),this._stylesSet=new Set},[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){function t(e){var n;return E(this,t),(n=m(this,t))._doc=e,n._hostNodes=new Map,n._hostNodes.set(e.head,[]),n}return _(t,e),C(t,[{key:"_addStylesToHost",value:function(e,t,n){var r=this;e.forEach(function(e){var i=r._doc.createElement("style");i.textContent=e,n.push(t.appendChild(i))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(x),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,r){t._addStylesToHost(e,r,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(x)})}}])}(b);return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}();function x(e){(0,a.q)().remove(e)}var k={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/"},S=/%COMP%/g;function A(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?A(e,i,n):(i=i.replace(S,e),n.push(i))}return n}function O(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var D=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new I(t)},[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case u.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new T(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case u.ViewEncapsulation.ShadowDom:return new M(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=A(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(y),u.\u0275\u0275inject(w),u.\u0275\u0275inject(u.APP_ID))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),I=function(){return C(function e(t){E(this,e),this.eventManager=t,this.data=Object.create(null)},[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(k[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=k[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=k[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?e.style.setProperty(t,n,r&u.RendererStyleFlags2.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&u.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,O(n)):this.eventManager.addEventListener(e,t,O(n))}}])}(),T=function(e){function t(e,n,r,i){var o;E(this,t),(o=m(this,t,[e])).component=r;var a=A(i+"-"+r.id,r.styles,[]);return n.addStyles(a),o.contentAttr="_ngcontent-%COMP%".replace(S,i+"-"+r.id),o.hostAttr="_nghost-%COMP%".replace(S,i+"-"+r.id),o}
1return _(t,e),C(t,[{key:"applyToHost",value:function(e){i(t,"setAttribute",this,3)([e,this.hostAttr,""])}},{key:"createElement",value:function(e,n){var r=i(t,"createElement",this,3)([e,n]);return i(t,"setAttribute",this,3)([r,this.contentAttr,""]),r}}])}(I),M=function(e){function t(e,n,r,i){var o;E(this,t),(o=m(this,t,[e])).sharedStylesHost=n,o.hostEl=r,o.shadowRoot=r.attachShadow({mode:"open"}),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=A(i.id,i.styles,[]),u=0;u<a.length;u++){var s=document.createElement("style");s.textContent=a[u],o.shadowRoot.appendChild(s)}return o}return _(t,e),C(t,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,n){return i(t,"appendChild",this,3)([this.nodeOrShadowRoot(e),n])}},{key:"insertBefore",value:function(e,n,r){return i(t,"insertBefore",this,3)([this.nodeOrShadowRoot(e),n,r])}},{key:"removeChild",value:function(e,n){return i(t,"removeChild",this,3)([this.nodeOrShadowRoot(e),n])}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(i(t,"parentNode",this,3)([this.nodeOrShadowRoot(e)]))}}])}(I),P=function(){var e=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}])}(g);return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),R=["alt","control","meta","shift"],F={"\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"},N={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"},j={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},L=function(){var e=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,a.q)().onAndCancel(e,i.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(R.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&N.hasOwnProperty(t)&&(t=N[t]))}return F[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),R.forEach(function(r){r!=n&&j[r](e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}}},{key:"_normalizeKey",value:function(e){return"esc"===e?"escape":e}}])}(g);return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,u.\u0275\u0275defineInjectable)({factory:function(){return(0,u.\u0275\u0275inject)(V)},token:e,providedIn:"root"}),e}(),V=function(){var e=function(e){function t(e){var n;return E(this,t),(n=m(this,t))._doc=e,n}return _(t,e),C(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case u.SecurityContext.NONE:return t;case u.SecurityContext.HTML:return(0,u.\u0275allowSanitizationBypassAndThrow)(t,"HTML")?(0,u.\u0275unwrapSafeValue)(t):(0,u.\u0275_sanitizeHtml)(this._doc,String(t)).toString();case u.SecurityContext.STYLE:return(0,u.\u0275allowSanitizationBypassAndThrow)(t,"Style")?(0,u.\u0275unwrapSafeValue)(t):t;case u.SecurityContext.SCRIPT:if((0,u.\u0275allowSanitizationBypassAndThrow)(t,"Script"))return(0,u.\u0275unwrapSafeValue)(t);throw new Error("unsafe value used in a script context");case u.SecurityContext.URL:return(0,u.\u0275getSanitizationBypassType)(t),(0,u.\u0275allowSanitizationBypassAndThrow)(t,"URL")?(0,u.\u0275unwrapSafeValue)(t):(0,u.\u0275_sanitizeUrl)(String(t));case u.SecurityContext.RESOURCE_URL:if((0,u.\u0275allowSanitizationBypassAndThrow)(t,"ResourceURL"))return(0,u.\u0275unwrapSafeValue)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,u.\u0275bypassSanitizationTrustHtml)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,u.\u0275bypassSanitizationTrustStyle)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,u.\u0275bypassSanitizationTrustScript)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,u.\u0275bypassSanitizationTrustUrl)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(e)}}])}(B);return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=(0,u.\u0275\u0275defineInjectable)({factory:function(){return function(e){return new V(e.get(a.K0))}((0,u.\u0275\u0275inject)(u.INJECTOR))},token:e,providedIn:"root"}),e}(),W=(0,u.createPlatformFactory)(u.platformCore,"browser",[{provide:u.PLATFORM_ID,useValue:a.bD},{provide:u.PLATFORM_INITIALIZER,useValue:function(){c.makeCurrent(),d.init()},multi:!0},{provide:a.K0,useFactory:function(){return(0,u.\u0275setDocument)(document),document},deps:[]}]),U=[[],{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function(){return new u.ErrorHandler},deps:[]},{provide:v,useClass:P,multi:!0,deps:[a.K0,u.NgZone,u.PLATFORM_ID]},{provide:v,useClass:L,multi:!0,deps:[a.K0]},[],{provide:D,useClass:D,deps:[y,w,u.APP_ID]},{provide:u.RendererFactory2,useExisting:D},{provide:b,useExisting:w},{provide:w,useClass:w,deps:[a.K0]},{provide:u.Testability,useClass:u.Testability,deps:[u.NgZone]},{provide:y,useClass:y,deps:[v,u.NgZone]}
1,{provide:a.JF,useClass:p,deps:[]},[]],z=function(){var e=function(){function e(t){if(E(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return C(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:u.APP_ID,useValue:t.appId},{provide:f,useExisting:u.APP_ID},h]}}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(e,12))},e.\u0275mod=u.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=u.\u0275\u0275defineInjector({providers:U,imports:[a.ez,u.ApplicationModule]}),e}();function q(){return new H((0,u.\u0275\u0275inject)(a.K0))}var H=function(){var e=function(){return C(function e(t){E(this,e),this._doc=t,this._dom=(0,a.q)()},[{key:"addTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,t):null}},{key:"addTags",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(e,r){return r&&e.push(t._getOrCreateElement(r,n)),e},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta[".concat(e,"]"));return t?[].slice.call(t):[]}},{key:"updateTag",value:function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n){var r=this._parseSelector(e),i=this.getTags(r).filter(function(n){return t._containsAttributes(e,n)})[0];if(void 0!==i)return i}var o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}},{key:"_setMetaElementAttributes",value:function(e,t){var n=this;return Object.keys(e).forEach(function(r){return t.setAttribute(n._getMetaKeyMap(r),e[r])}),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return"".concat(t,'="').concat(e[t],'"')}},{key:"_containsAttributes",value:function(e,t){var n=this;return Object.keys(e).every(function(r){return t.getAttribute(n._getMetaKeyMap(r))===e[r]})}},{key:"_getMetaKeyMap",value:function(e){return G[e]||e}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=(0,u.\u0275\u0275defineInjectable)({factory:q,token:e,providedIn:"root"}),e}(),G={httpEquiv:"http-equiv"};function K(){return new Y((0,u.\u0275\u0275inject)(a.K0))}var Y=function(){var e=function(){return C(function e(t){E(this,e),this._doc=t},[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(a.K0))},e.\u0275prov=(0,u.\u0275\u0275defineInjectable)({factory:K,token:e,providedIn:"root"}),e}();"undefined"!=typeof window&&window},13074:function(e,t,n){"use strict";n.d(t,{gz:function(){return Ye},gk:function(){return z},m2:function(){return U},Q3:function(){return q},OD:function(){return W},F0:function(){return mn},rH:function(){return bn},Od:function(){return xn},yS:function(){return wn},Bz:function(){return Pn},lC:function(){return kn},R9:function(){return H},Xs:function(){return ne}});var i=n(92674),o=n(62415),a=n(69556),u=n(13486),s=n(31530),l=n(20820),h=n(38135),d=n(38614),p=n(69557),v=n(24141),y=n(33393),b=n(23109),w=n(93386),x=n(39417),k=n(10480),S=n(8355),A=n(5790),O=n(26362),D=n(86243),I=n(58267),T=n(23021),M=n(55536),P=n(6650),R=n(82754),F=n(65426),N=n(3003),j=n(26947),L=n(50724),B=n(87402),V=C(function e(t,n){E(this,e),this.id=t,this.url=n}),W=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(this,t),(r=m(this,t,[e,n])).navigationTrigger=i,r.restoredState=o,r}return _(t,e),C(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(V),U=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e,n])).urlAfterRedirects=r,i}return _(t,e),C(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}])}(V),z=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e,n])).reason=r,i}return _(t,e),C(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(V),q=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e,n])).error=r,i}return _(t,e),C(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}])}(V),H=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e,n])).urlAfterRedirects=r,o.state=i,o}
1return _(t,e),C(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(V),G=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e,n])).urlAfterRedirects=r,o.state=i,o}return _(t,e),C(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(V),K=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t,[e,n])).urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return _(t,e),C(t,[{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,")")}}])}(V),Y=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e,n])).urlAfterRedirects=r,o.state=i,o}return _(t,e),C(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(V),$=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e,n])).urlAfterRedirects=r,o.state=i,o}return _(t,e),C(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(V),Z=function(){return C(function e(t){E(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}])}(),Q=function(){return C(function e(t){E(this,e),this.route=t},[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}])}(),X=function(){return C(function e(t){E(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),J=function(){return C(function e(t){E(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),ee=function(){return C(function e(t){E(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),te=function(){return C(function e(t){E(this,e),this.snapshot=t},[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),ne=function(){return C(function e(t,n,r){E(this,e),this.routerEvent=t,this.position=n,this.anchor=r},[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}])}(),re="primary",ie=function(){return C(function e(t){E(this,e),this.params=t||{}},[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}])}();function oe(e){return new ie(e)}var ae="ngNavigationCancelingError";function ue(e){var t=Error("NavigationCancelingError: "+e);return t[ae]=!0,t}function se(e,t,n){var r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],u=e[o];if(a.startsWith(":"))i[a.substring(1)]=u;else if(a!==u.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function ce(e,t){var n,r=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!le(e[n=r[o]],t[n]))return!1;return!0}function le(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=c(e).sort(),r=c(t).sort();return n.every(function(e,t){return r[t]===e})}return e===t}function fe(e){return Array.prototype.concat.apply([],e)}function he(e){return e.length>0?e[e.length-1]:null}function de(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function pe(e){return(0,o.\u0275isObservable)(e)?e:(0,o.\u0275isProm
1ise)(e)?(0,a.D)(Promise.resolve(e)):(0,u.of)(e)}var ve={exact:function e(t,n,r){if(!Ce(t.segments,n.segments)||!we(t.segments,n.segments,r)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children)if(!t.children[i]||!e(t.children[i],n.children[i],r))return!1;return!0},subset:ge},ye={exact:function(e,t){return ce(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return le(e[n],t[n])})},ignored:function(){return!0}};function me(e,t,n){return ve[n.paths](e.root,t.root,n.matrixParams)&&ye[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function ge(e,t,n){return be(e,t,t.segments,n)}function be(e,t,n,r){if(e.segments.length>n.length){var i=e.segments.slice(0,n.length);return!(!Ce(i,n)||t.hasChildren()||!we(i,n,r))}if(e.segments.length===n.length){if(!Ce(e.segments,n)||!we(e.segments,n,r))return!1;for(var o in t.children)if(!e.children[o]||!ge(e.children[o],t.children[o],r))return!1;return!0}var a=n.slice(0,e.segments.length),u=n.slice(e.segments.length);return!!(Ce(e.segments,a)&&we(e.segments,a,r)&&e.children[re])&&be(e.children[re],t,u,r)}function we(e,t,n){return t.every(function(t,r){return ye[n](e[r].parameters,t.parameters)})}var _e=function(){return C(function e(t,n,r){E(this,e),this.root=t,this.queryParams=n,this.fragment=r},[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ae.serialize(this)}}])}(),xe=function(){return C(function e(t,n){var r=this;E(this,e),this.segments=t,this.children=n,this.parent=null,de(n,function(e,t){return e.parent=r})},[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Oe(this)}}])}(),ke=function(){return C(function e(t,n){E(this,e),this.path=t,this.parameters=n},[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=oe(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Fe(this)}}])}();function Ce(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Se=C(function e(){E(this,e)}),Ee=function(){return C(function e(){E(this,e)},[{key:"parse",value:function(e){var t=new Ve(e);return new _e(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n="/".concat(De(e.root,!0)),r=function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Te(t),"=").concat(Te(e))}).join("&"):"".concat(Te(t),"=").concat(Te(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams);return"".concat(n).concat(r).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}])}(),Ae=new Ee;function Oe(e){return e.segments.map(function(e){return Fe(e)}).join("/")}function De(e,t){if(!e.hasChildren())return Oe(e);if(t){var n=e.children[re]?De(e.children[re],!1):"",r=[];return de(e.children,function(e,t){t!==re&&r.push("".concat(t,":").concat(De(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return de(e.children,function(e,r){r===re&&(n=n.concat(t(e,r)))}),de(e.children,function(e,r){r!==re&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return n===re?[De(e.children[re],!1)]:["".concat(n,":").concat(De(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[re]?"".concat(Oe(e),"/").concat(i[0]):"".concat(Oe(e),"/(").concat(i.join("//"),")")}function Ie(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Te(e){return Ie(e).replace(/%3B/gi,";")}function Me(e){return Ie(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pe(e){return decodeURIComponent(e)}function Re(e){return Pe(e.replace(/\+/g,"%20"))}function Fe(e){return"".concat(Me(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(Me(t),"=").concat(Me(e[t]))}).join("")}(e.parameters))}var Ne=/^[^\/()?;=#]+/;function je(e){var t=e.match(Ne);return t?t[0]:""}var Le=/^[^=?&#]+/,Be=/^[^?&#]+/,Ve=function(){return C(function e(t){E(this,e),this.url=t,this.remaining=t},[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decode
1URIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[re]=new xe(e,t)),n}},{key:"parseSegment",value:function(){var e=je(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new ke(Pe(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=je(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=je(this.remaining);r&&(n=r,this.capture(n))}e[Pe(t)]=Pe(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Le);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(Be);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Re(t),o=Re(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=je(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=re);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[re]:new xe([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}])}(),We=function(){return C(function e(t){E(this,e),this._root=t},[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Ue(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Ue(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=ze(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return ze(e,this._root).map(function(e){return e.value})}}])}();function Ue(e,t){if(e===t.value)return t;var n,r=f(t.children);try{for(r.s();!(n=r.n()).done;){var i=Ue(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function ze(e,t){if(e===t.value)return[t];var n,r=f(t.children);try{for(r.s();!(n=r.n()).done;){var i=ze(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var qe=function(){return C(function e(t,n){E(this,e),this.value=t,this.children=n},[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}])}();function He(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Ge=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).snapshot=n,Xe(g(r),e),r}return _(t,e),C(t,[{key:"toString",value:function(){return this.snapshot.toString()}}])}(We);function Ke(e,t){var n=function(e,t){var n=new Ze([],{},{},"",{},re,t,null,e.root,-1,{});return new Qe("",new qe(n,[]))}(e,t),r=new s.X([new ke("",{})]),i=new s.X({}),o=new s.X({}),a=new s.X({}),u=new s.X(""),c=new Ye(r,i,a,u,o,re,t,n.root);return c.snapshot=n.root,new Ge(new qe(c,[]),n)}var Ye=function(){return C(function e(t,n,r,i,o,a,u,s){E(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}
1,[{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((0,x.U)(function(e){return oe(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,x.U)(function(e){return oe(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}])}();function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Ze=function(){return C(function e(t,n,r,i,o,a,u,s,c,l,f){E(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=l,this._resolve=f},[{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=oe(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}])}(),Qe=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[n])).url=e,Xe(g(r),n),r}return _(t,e),C(t,[{key:"toString",value:function(){return Je(this._root)}}])}(We);function Xe(e,t){t.value._routerState=e,t.children.forEach(function(t){return Xe(e,t)})}function Je(e){var t=e.children.length>0?" { ".concat(e.children.map(Je).join(", ")," } "):"";return"".concat(e.value).concat(t)}function et(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ce(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ce(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ce(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ce(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function tt(e,t){var n=ce(e.params,t.params)&&function(e,t){return Ce(e,t)&&e.every(function(e,n){return ce(e.parameters,t[n].parameters)})}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||tt(e.parent,t.parent))}function nt(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=t.value;var i=function(e,t,n){return t.children.map(function(t){var r,i=f(n.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return nt(e,t,o)}}catch(a){i.e(a)}finally{i.f()}return nt(e,t)})}(e,t,n);return new qe(r,i)}if(e.shouldAttach(t.value)){var o=e.retrieve(t.value);if(null!==o){var a=o.route;return rt(t,a),a}}var u=function(e){return new Ye(new s.X(e.url),new s.X(e.params),new s.X(e.queryParams),new s.X(e.fragment),new s.X(e.data),e.outlet,e.component,e)}(t.value),c=t.children.map(function(t){return nt(e,t)});return new qe(u,c)}function rt(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)rt(e.children[n],t.children[n])}function it(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ot(e){return"object"==typeof e&&null!=e&&e.outlets}function at(e,t,n,r,i){var o={};return r&&de(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new _e(n.root===e?t:ut(n.root,e,t),o,i)}function ut(e,t,n){var r={};return de(e.children,function(e,i){r[i]=e===t?n:ut(e,t,n)}),new xe(e.segments,r)}var st=function(){return C(function e(t,n,r){if(E(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&it(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(ot);if(i&&i!==he(r))throw new Error("{outlets:{}} has to be the last command")},[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}])}(),ct=C(function e(t,n,r){E(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r});function lt(e,t,n){if(e||(e=new xe([],{})),0===e.segments.length&&e.hasChildren())return ft(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],u=n[r];if(ot(u))break;var s="".concat(u),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!vt(s,c,a))return o;r+=2}else{if(!vt(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new xe(e.segments.slice(0,r.pathIndex),{});return o.children[re]=new xe(e.segments.slice(r.pathIndex),e.children),ft(o,0,i)}return r.match&&0===i.length?new xe(e.segments,{}):r.match&&!e.hasChildren()?ht(e,t,n):r.match?ft(e,0,i):ht(e,t,n)}function ft(e,t,n){if(0===n.length)return new xe(e.segments,{});var i=function(e){return ot(e[0])?e[0].outlets:r({},re,e)}(n),o={};return de(i,function(n,r){"string"==typeof n&&(n=[n]),null!==n&&(o[r]=lt(e.children[r],t,n))}),de(e.children,function(e,t){void 0===i[t]&&(o[t]=e)}),new xe(e.segments,o)}function ht(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){var o=n[i];if(ot(o)){var a=dt(o.outlets);return new xe(r,a)}if(0===i&&it(n[0]))r.push(new ke(e.segments[t].path,pt(n[0]))),i++;else{var u=ot(o)?o.outlets[re]:"".concat(o),s=i<n.length-1?n[i+1]:null;u&&s&&it(s)?(r.push(new ke(u,pt(s))),i+=2):(r.push(new ke(u,{})),i++)}}return new xe(r,{})}function dt(e){var t={};return de(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=ht(new xe([],{}),0,e))}),t}function pt(e){var t={};return de(e,function(e,n){return t[n]="".concat(e)}),t}function vt(e,t,n){return e==n.path&&ce(t,n.parameters)}var yt=function(){return C(function e(t,n,r,i){E(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i},[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),et(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=He(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),de(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=He(e),o=0,a=Object.keys(i);o<a.length;o++){var u=a[o];this.deactivateRouteAndItsChildren(i[u],r)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=He(t);
1e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new te(e.value.snapshot))}),e.children.length&&this.forwardEvent(new J(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(et(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var u=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(u.contexts),a.attachRef=u.componentRef,a.route=u.route.value,a.outlet&&a.outlet.attach(u.componentRef,u.route.value),mt(u.route)}else{var s=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=s?s.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=c,a.outlet&&a.outlet.activateWith(r,c),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}])}();function mt(e){et(e.value),e.children.forEach(mt)}var gt=C(function e(t,n){E(this,e),this.routes=t,this.module=n});function bt(e){return"function"==typeof e}function wt(e){return e instanceof _e}var _t=Symbol("INITIAL_VALUE");function xt(){return(0,k.w)(function(e){return(0,l.aj)(e.map(function(e){return e.pipe((0,S.q)(1),(0,A.O)(_t))})).pipe((0,O.R)(function(e,t){var n=!1;return t.reduce(function(e,r,i){return e!==_t?e:(r===_t&&(n=!0),n||!1!==r&&i!==t.length-1&&!wt(r)?e:r)},e)},_t),(0,D.h)(function(e){return e!==_t}),(0,x.U)(function(e){return wt(e)?e:!0===e}),(0,S.q)(1))})}var kt,Ct=((kt=C(function e(){E(this,e)})).\u0275fac=function(e){return new(e||kt)},kt.\u0275cmp=o.\u0275\u0275defineComponent({type:kt,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&o.\u0275\u0275element(0,"router-outlet")},directives:function(){return[kn]},encapsulation:2}),kt);function St(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];Et(r,At(t,r))}}function Et(e,t){e.children&&St(e.children,t)}function At(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function Ot(e){var t=e.children&&e.children.map(Ot),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==re&&(n.component=Ct),n}function Dt(e){return e.outlet||re}function It(e,t){var n=e.filter(function(e){return Dt(e)===t});return n.push.apply(n,c(e.filter(function(e){return Dt(e)!==t}))),n}var Tt={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Mt(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Tt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||se)(n,e,t);if(!i)return Object.assign({},Tt);var o={};de(i.posParams,function(e,t){o[t]=e.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Pt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Rt(e,t,n)&&Dt(n)!==re})}(e,n,r)){var o=new xe(t,function(e,t,n,r){var i={};i[re]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=f(n);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(""===u.path&&Dt(u)!==re){var s=new xe([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[Dt(u)]=s}}}catch(c){a.e(c)}finally{a.f()}return i}(e,t,r,new xe(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Rt(e,t,n)})}(e,n,r)){var a=new xe(e.segments,function(e,t,n,r,i,o){var a,u={},s=f(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(Rt(e,n,c)&&!i[Dt(c)]){var l=new xe([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,u[Dt(c)]=l}}}catch(h){s.e(h)}finally{s.f()}return Object.assign(Object.assign({},i),u)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new xe(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Rt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ft(e,t,n,r){return!!(Dt(e)===r||r!==re&&Rt(t,n,e))&&("**"===e.path||Mt(t,e,n).matched)}function Nt(e,t,n){return 0===t.length&&!e.children[n]}var jt=C(function e(t){E(this,e),this.segmentGroup=t||null}),Lt=C(function e(t){E(this,e),this.urlTree=t});function Bt(e){return new h.y(function(t){return t.error(new jt(e))})}function Vt(e){return new h.y(function(t){return t.error(new Lt(e))})}function Wt(e){return new h.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Ut=function(){return C(function e(t,n,r,i,a){E(this,e),this.configLoader=n,this.urlSerializer
1=r,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(o.NgModuleRef)},[{key:"apply",value:function(){var e=this,t=Pt(this.urlTree.root,[],[],this.config).segmentGroup,n=new xe(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,re).pipe((0,x.U)(function(t){return e.createUrlTree(zt(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,I.K)(function(t){if(t instanceof Lt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof jt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,re).pipe((0,x.U)(function(n){return t.createUrlTree(zt(n),e.queryParams,e.fragment)})).pipe((0,I.K)(function(e){throw e instanceof jt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new xe([],r({},re,e)):e;return new _e(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,x.U)(function(e){return new xe([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,u=Object.keys(n.children);o<u.length;o++){var s=u[o];"primary"===s?i.unshift(s):i.push(s)}return(0,a.D)(i).pipe((0,T.b)(function(i){var o=n.children[i],a=It(t,i);return r.expandSegmentGroup(e,a,o,i).pipe((0,x.U)(function(e){return{segment:e,outlet:i}}))}),(0,O.R)(function(e,t){return e[t.outlet]=t.segment,e},{}),(0,M.Z)())}},{key:"expandSegment",value:function(e,t,n,r,i,o){var s=this;return(0,a.D)(n).pipe((0,T.b)(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe((0,I.K)(function(e){if(e instanceof jt)return(0,u.of)(null);throw e}))}),(0,P.P)(function(e){return!!e}),(0,I.K)(function(e,n){if(e instanceof d.K||"EmptyError"===e.name){if(Nt(t,r,i))return(0,u.of)(new xe([],{}));throw new jt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return Ft(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Bt(t):Bt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Vt(o):this.lineralizeSegments(n,o).pipe((0,R.zg)(function(n){var o=new xe(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,u=Mt(t,r,i),s=u.matched,c=u.consumedSegments,l=u.lastChild,f=u.positionalParamSegments;if(!s)return Bt(t);var h=this.applyRedirectCommands(c,r.redirectTo,f);return r.redirectTo.startsWith("/")?Vt(h):this.lineralizeSegments(r,h).pipe((0,R.zg)(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,u.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,x.U)(function(e){return n._loadedConfig=e,new xe(r,{})})):(0,u.of)(new xe(r,{}));var a=Mt(t,n,r),s=a.matched,c=a.consumedSegments,l=a.lastChild;if(!s)return Bt(t);var f=r.slice(l);return this.getChildConfig(e,n,r).pipe((0,R.zg)(function(e){var r=e.module,a=e.routes,s=Pt(t,c,f,a),l=s.segmentGroup,h=s.slicedSegments,d=new xe(l.segments,l.children);if(0===h.length&&d.hasChildren())return o.expandChildren(r,a,d).pipe((0,x.U)(function(e){return new xe(c,e)}));if(0===a.length&&0===h.length)return(0,u.of)(new xe(c,{}));var p=Dt(n)===i;return o.expandSegment(r,d,a,h,p?re:i,!0).pipe((0,x.U)(function(e){return new xe(c.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?(0,u.of)(new gt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,u.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,R.zg)(function(n){return n?r.configLoader.load(e.injector,t).pipe((0,x.U)(function(e){return t._loadedConfig=e,e})):(i=t,new h.y(function(e){return e.error(ue("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}));var i})):(0,u.of)(new gt([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return(0,u.of)(!0);var o=i.map(function(r){var i,o,a=e.get(r);if((o=a)&&bt(o.canLoad))i=a.canLoad(t,n);else{if(!bt(a))throw new Error("Invalid CanLoad guard");i=a(t,n)}return pe(i)});return(0,u.of)(o).pipe(xt(),(0,F.b)(function(e){if(wt(e)){var t=ue('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,x.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return(0,u.of)(n);if(r.numberOfChildren>1||!r.children[re])return Wt(e.redirectTo);r=r.children[re]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new _e(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return de(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return de(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new xe(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=f(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}])}();function zt(e){for(var t={},n=0,r=Object.keys(e.children);n<r.length;n++){var i=r[n],o=zt(e.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function(e){if(1===e.numberOfChildren&&e.children[re]){var t=e.children[re];return new xe(e.segments.concat(t.segments),t.children)}return e}(new xe(e.segments,t))}var qt=C(function e(t){E(this,e),this.path=t,this.route=this.path[this.path.length-1]}),Ht=C(function e(t,n){E(this,e),this.component=t,this.route=n});function Gt(e,t,n){var r=e._root;return Yt(r,t?t._root:null,n,[r.value])}function Kt(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Yt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=He(t);
1return e.children.forEach(function(e){(function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ce(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ce(e.url,t.url)||!ce(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tt(e,t)||!ce(e.queryParams,t.queryParams);default:return!tt(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new qt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Yt(e,t,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new Ht(u.outlet.component,a))}else a&&$t(t,u,i),i.canActivateChecks.push(new qt(r)),Yt(e,null,o.component?u?u.children:null:n,r,i)})(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),de(o,function(e,t){return $t(e,n.getContext(t),i)}),i}function $t(e,t,n){var r=He(e),i=e.value;de(r,function(e,r){$t(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Ht(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Zt=C(function e(){E(this,e)});function Qt(e){return new h.y(function(t){return t.error(e)})}var Xt=function(){return C(function e(t,n,r,i,o,a){E(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a},[{key:"recognize",value:function(){var e=Pt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,re);if(null===t)return null;var n=new Ze([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},re,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new qe(n,t),i=new Qe(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=$e(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,i=Object.keys(t.children);r<i.length;r++){var o=i[r],a=t.children[o],u=It(e,o),s=this.processSegmentGroup(u,a,o);if(null===s)return null;n.push.apply(n,c(s))}var l=Jt(n);return l.sort(function(e,t){return e.value.outlet===re?-1:t.value.outlet===re?1:e.value.outlet.localeCompare(t.value.outlet)}),l}},{key:"processSegment",value:function(e,t,n,r){var i,o=f(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,u=this.processSegmentAgainstRoute(a,t,n,r);if(null!==u)return u}}catch(s){o.e(s)}finally{o.f()}return Nt(t,n,r)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo||!Ft(e,t,n,r))return null;var i,o=[],a=[];if("**"===e.path){var u=n.length>0?he(n).parameters:{};i=new Ze(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(e),Dt(e),e.component,e,en(t),tn(t)+n.length,rn(e))}else{var s=Mt(t,e,n);if(!s.matched)return null;o=s.consumedSegments,a=n.slice(s.lastChild),i=new Ze(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(e),Dt(e),e.component,e,en(t),tn(t)+o.length,rn(e))}var c,l=(c=e).children?c.children:c.loadChildren?c._loadedConfig.routes:[],f=Pt(t,o,a,l.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=f.segmentGroup,d=f.slicedSegments;if(0===d.length&&h.hasChildren()){var p=this.processChildren(l,h);return null===p?null:[new qe(i,p)]}if(0===l.length&&0===d.length)return[new qe(i,[])];var v=Dt(e)===r,y=this.processSegment(l,h,d,v?re:r);return null===y?null:[new qe(i,y)]}}])}();function Jt(e){var t,n=[],r=new Set,i=f(e);try{var o=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),1;var o=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,c(i.children)),r.add(o)):n.push(i)};for(i.s();!(t=i.n()).done;)o()}catch(h){i.e(h)}finally{i.f()}var a,u=f(r);try{for(u.s();!(a=u.n()).done;){var s=a.value,l=Jt(s.children);n.push(new qe(s.value,l))}}catch(h){u.e(h)}finally{u.f()}return n.filter(function(e){return!r.has(e)})}function en(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function tn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function nn(e){return e.data||{}}function rn(e){return e.resolve||{}}function on(e){return(0,k.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,x.U)(function(){return t})):(0,u.of)(t)})}var an=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(function(){return C(function e(){E(this,e)},[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}])}()),un=new o.InjectionToken("ROUTES"),sn=function(){return C(function e(t,n,r,i){E(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i},[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe((0,x.U)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new gt(fe(i.injector.get(un,void 0,o.InjectFlags.Self|o.InjectFlags.Optional)).map(Ot),i)}),(0,I.K)(function(e){throw t._loader$=void 0,e}));return t._loader$=new b.c(r,function(){return new w.xQ}).pipe((0,j.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):pe(e()).pipe((0,R.zg)(function(e){return e instanceof o.NgModuleFactory?(0,u.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}])}(),cn=C(function e(){E(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new ln,this.attachRef=null}),ln=function(){return C(function e(){E(this,e),this.contexts=new Map},[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new cn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}])}(),fn=function(){return C(function e(){E(this,e)},[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}])}();function hn(e){throw e}function dn(e,t,n){return t.parse("/")}function pn(e,t){return(0,u.of)(null)}var vn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},mn=function(){var e=function(){return C(function e(t,n,r,i,a,u,c,l){var f=this;
1E(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new w.xQ,this.errorHandler=hn,this.malformedUriErrorHandler=dn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pn,afterPreactivation:pn},this.urlHandlingStrategy=new fn,this.routeReuseStrategy=new an,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(o.NgModuleRef),this.console=a.get(o.\u0275Console);var h=a.get(o.NgZone);this.isNgZoneEnabled=h instanceof o.NgZone&&o.NgZone.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new _e(new xe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sn(u,c,function(e){return f.triggerEvent(new Z(e))},function(e){return f.triggerEvent(new Q(e))}),this.routerState=Ke(this.currentUrlTree,this.rootComponentType),this.transitions=new s.X({id:0,targetPageId: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()},[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,D.h)(function(e){return 0!==e.id}),(0,x.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,k.w)(function(e){var r=!1,i=!1;return(0,u.of)(e).pipe((0,F.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,k.w)(function(e){var r=t.browserUrlTree.toString(),o=!t.navigated||e.extractedUrl.toString()!==r||r!==t.currentUrlTree.toString();if(("reload"===t.onSameUrlNavigation||o)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return gn(e.source)&&(t.browserUrlTree=e.extractedUrl),(0,u.of)(e).pipe((0,k.w)(function(e){var r=t.transitions.getValue();return n.next(new W(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?y.E:Promise.resolve(e)}),function(e,t,n,r){return(0,k.w)(function(i){return function(e,t,n,r,i){return new Ut(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe((0,x.U)(function(e){return Object.assign(Object.assign({},i),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,F.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,o,a){return(0,R.zg)(function(r){return function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Xt(e,t,n,r,o,a).recognize();return null===s?Qt(new Zt):(0,u.of)(s)}catch(i){return Qt(i)}}(e,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,t.serializeUrl(s)),o,a).pipe((0,x.U)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var s})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,F.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var r=new H(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(o&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,s=e.extractedUrl,c=e.source,l=e.restoredState,f=e.extras,h=new W(a,t.serializeUrl(s),c,l);n.next(h);var d=Ke(s,t.rootComponentType).snapshot;return(0,u.of)(Object.assign(Object.assign({},e),{targetSnapshot:d,urlAfterRedirects:s,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}
1))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),y.E}),on(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),(0,F.b)(function(e){var n=new G(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,x.U)(function(e){return Object.assign(Object.assign({},e),{guards:Gt(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,R.zg)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,s=o.canActivateChecks,c=o.canDeactivateChecks;return 0===c.length&&0===s.length?(0,u.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return(0,a.D)(e).pipe((0,R.zg)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,u.of)(!0);var a=o.map(function(o){var a,u=Kt(o,t,i);if(function(e){return e&&bt(e.canDeactivate)}(u))a=pe(u.canDeactivate(e,t,n,r));else{if(!bt(u))throw new Error("Invalid CanDeactivate guard");a=pe(u(e,t,n,r))}return a.pipe((0,P.P)())});return(0,u.of)(a).pipe(xt())}(e.component,e.route,n,t,r)}),(0,P.P)(function(e){return!0!==e},!0))}(c,r,i,e).pipe((0,R.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return(0,a.D)(t).pipe((0,T.b)(function(t){return(0,p.z)(function(e,t){return null!==e&&t&&t(new X(e)),(0,u.of)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new ee(e)),(0,u.of)(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,v.P)(function(){var i=t.guards.map(function(i){var o,a=Kt(i,t.node,n);if(function(e){return e&&bt(e.canActivateChild)}(a))o=pe(a.canActivateChild(r,e));else{if(!bt(a))throw new Error("Invalid CanActivateChild guard");o=pe(a(r,e))}return o.pipe((0,P.P)())});return(0,u.of)(i).pipe(xt())})});return(0,u.of)(i).pipe(xt())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return(0,u.of)(!0);var i=r.map(function(r){return(0,v.P)(function(){var i,o=Kt(r,t,n);if(function(e){return e&&bt(e.canActivate)}(o))i=pe(o.canActivate(t,e));else{if(!bt(o))throw new Error("Invalid CanActivate guard");i=pe(o(t,e))}return i.pipe((0,P.P)())})});return(0,u.of)(i).pipe(xt())}(e,t.route,n))}),(0,P.P)(function(e){return!0!==e},!0))}(r,s,e,t):(0,u.of)(n)}),(0,x.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,F.b)(function(e){if(wt(e.guardsResult)){var n=ue('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new K(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),(0,D.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),on(function(e){if(e.guards.canActivateChecks.length)return(0,u.of)(e).pipe((0,F.b)(function(e){var n=new Y(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,k.w)(function(e){var n=!1;return(0,u.of)(e).pipe(function(e,t){return(0,R.zg)(function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;if(!i.length)return(0,u.of)(n);var o=0;return(0,a.D)(i).pipe((0,T.b)(function(n){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return(0,u.of)({});var o={};return(0,a.D)(i).pipe((0,R.zg)(function(i){return function(e,t,n,r){var i=Kt(e,t,r);return pe(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe((0,F.b)(function(e){o[i]=e}))}),(0,N.h)(1),(0,R.zg)(function(){return Object.keys(o).length===i.length?(0,u.of)(o):y.E}))}(e._resolve,e,t,r).pipe((0,x.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),$e(e,n).resolve),null}))}(n.route,r,e,t)}),(0,F.b)(function(){return o++}),(0,N.h)(1),(0,R.zg)(function(e){return o===i.length?(0,u.of)(n):y.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,F.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,F.b)(function(e){var n=new $(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),on(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),(0,x.U)(function(e){var n=function(e,t,n){var r=nt(e,t._root,n?n._root:void 0);return new Ge(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,F.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(e.urlAfterRedirects,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,x.U)(function(r){return new yt(t,r.targetRouterState,r.currentRouterState,n).activate(e),r})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,F.b)({next:function(){r=!0},complete:function(){r=!0}}),(0,L.x)(function(){var n;if(!r&&!i){var o="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,o)):t.cancelNavigationTransition(e,o)}(null===(n=t.currentNavigation)||void 0===n?void 0:n.id)===e.id&&(t.currentNavigation=null)}),(0,I.K)(function(r){if(i=!0,function(e){return e&&e[ae]}(r)){var o=wt(r.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new z(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree),i={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||gn(e.source)};t.scheduleNavigation(n,"imperative",null,i,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var u=new q(e.id,t.serializeUrl(e.extractedUrl),r);n.next(u);try{e.resolve(t.errorHandler(r))}catch(a){e.reject(a)}}return y.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}}
1,{key:"resetConfig",value:function(e){St(e),this.config=e.map(Ot),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,u=n||this.routerState.root,s=a?this.currentUrlTree.fragment:i,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,r,i){if(0===n.length)return at(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new st(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return de(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(c(e),[{outlets:o}])}if(r.segmentPath)return[].concat(c(e),[r.segmentPath])}return"string"!=typeof r?[].concat(c(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(c(e),[r])},[]);return new st(n,t,r)}(n);if(o.toRoot())return at(t.root,new xe([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new ct(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new ct(r,r===t.root,0)}var i=it(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new ct(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),u=a.processChildren?ft(a.segmentGroup,a.index,o.commands):lt(a.segmentGroup,a.index,o.commands);return at(a.segmentGroup,u,t,r,i)}(u,this.currentUrlTree,e,l,null!=s?s:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=wt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){var n;
1if(n=!0===t?Object.assign({},vn):!1===t?Object.assign({},yn):t,wt(e))return me(this.currentUrlTree,e,n);var r=this.parseUrl(e);return me(this.currentUrlTree,r,n)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.currentPageId=t.targetPageId,e.events.next(new U(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ".concat(t))})}},{key:"scheduleNavigation",value:function(e,t,n,r,i){var o,a;if(this.disposed)return Promise.resolve(!1);var u,s,c,l=this.getTransition(),f=gn(t)&&l&&!gn(l.source),h=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(f&&h)return Promise.resolve(!0);i?(u=i.resolve,s=i.reject,c=i.promise):c=new Promise(function(e,t){u=e,s=t});var d,p=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),d=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(a=this.browserPageId)&&void 0!==a?a:0)+1):d=0,this.setTransition({id:p,targetPageId:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:u,reject:s,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t){var n=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}},{key:"restoreHistory",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var i=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===i?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new z(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(o.Type),o.\u0275\u0275inject(Se),o.\u0275\u0275inject(ln),o.\u0275\u0275inject(i.Ye),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(o.NgModuleFactoryLoader),o.\u0275\u0275inject(o.Compiler),o.\u0275\u0275inject(void 0))},e.\u0275prov=o.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}();function gn(e){return"imperative"!==e}var bn=function(){var e=function(){return C(function e(t,n,r,i,o){E(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new w.xQ,null==r&&i.setAttribute(o.nativeElement,"tabindex","0")},[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275directiveInject(mn),o.\u0275\u0275directiveInject(Ye),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&o.\u0275\u0275listener("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[o.\u0275\u0275NgOnChangesFeature]}),e}(),wn=function(){var e=function(){return C(function e(t,n,r){var i=this;E(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new w.xQ,this.subscription=t.events.subscribe(function(e){e instanceof U&&i.updateTargetUrlAndHref()})},[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,r,i){if(0!==e||t||n||r||i||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275directiveInject(mn),o.\u0275\u0275directiveInject(Ye),o.\u0275\u0275directiveInject(i.S$))},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.\u0275\u0275listener("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(o.\u0275\u0275hostProperty("href",t.href,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275attribute("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[o.\u0275\u0275NgOnChangesFeature]}),e}();function _n(e){return""===e||!!e}var xn=function(){var e=function(){return C(function e(t,n,r,i,o,a){var u=this;E(this,e),this.router=t,this.element=n,this.renderer=r,this.cdr=i,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(function(e){e instanceof U&&u.update(
1)})},[{key:"ngAfterContentInit",value:function(){var e=this;(0,u.of)(this.links.changes,this.linksWithHrefs.changes,(0,u.of)(null)).pipe((0,B.J)()).subscribe(function(t){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var e,t=this;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();var n=[].concat(c(this.links.toArray()),c(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(e){return!!e}).map(function(e){return e.onChanges});this.linkInputChangesSubscription=(0,a.D)(n).pipe((0,B.J)()).subscribe(function(e){t.isActive!==t.isLinkActive(t.router)(e)&&t.update()})}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.cdr.markForCheck(),e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})}},{key:"isLinkActive",value:function(e){var t=function(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(n){return e.isActive(n.urlTree,t)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275directiveInject(mn),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(bn,8),o.\u0275\u0275directiveInject(wn,8))},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var r;(1&e&&(o.\u0275\u0275contentQuery(n,bn,5),o.\u0275\u0275contentQuery(n,wn,5)),2&e)&&(o.\u0275\u0275queryRefresh(r=o.\u0275\u0275loadQuery())&&(t.links=r),o.\u0275\u0275queryRefresh(r=o.\u0275\u0275loadQuery())&&(t.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[o.\u0275\u0275NgOnChangesFeature]}),e}(),kn=function(){var e=function(){return C(function e(t,n,r,i,a){E(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.EventEmitter,this.deactivateEvents=new o.EventEmitter,this.name=i||re,t.onChildOutletCreated(this.name,this)},[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{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:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Cn(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275directiveInject(ln),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275injectAttribute("name"),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Cn=function(){return C(function e(t,n,r){E(this,e),this.route=t,this.childContexts=n,this.parent=r},[{key:"get",value:function(e,t){return e===Ye?this.route:e===ln?this.childContexts:this.parent.get(e,t)}}])}(),Sn=C(function e(){E(this,e)}),En=function(){return C(function e(){E(this,e)},[{key:"preload",value:function(e,t){return(0,u.of)(null)}}])}(),An=function(){var e=function(){return C(function e(t,n,r,i,o){E(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new sn(n,r,function(e){return t.triggerEvent(new Z(e))},function(e){return t.triggerEvent(new Q(e))})},[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,D.h)(function(e){return e instanceof U}),(0,T.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(o.NgModuleRef);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=f(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;
1if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var u=o._loadedConfig;r.push(this.processRoutes(u.module,u.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children))}}catch(s){i.e(s)}finally{i.f()}return(0,a.D)(r).pipe((0,B.J)(),(0,x.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,u.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,R.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(mn),o.\u0275\u0275inject(o.NgModuleFactoryLoader),o.\u0275\u0275inject(o.Compiler),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(Sn))},e.\u0275prov=o.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),On=function(){var e=function(){return C(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"},[{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 e=this;return this.router.events.subscribe(function(t){t instanceof W?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ne&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new ne(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(mn),o.\u0275\u0275inject(i.EM),o.\u0275\u0275inject(void 0))},e.\u0275prov=o.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Dn=new o.InjectionToken("ROUTER_CONFIGURATION"),In=new o.InjectionToken("ROUTER_FORROOT_GUARD"),Tn=[i.Ye,{provide:Se,useClass:Ee},{provide:mn,useFactory:function(e,t,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new mn(null,e,t,n,r,i,o,fe(a));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(u,l),u.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[Se,ln,i.Ye,o.Injector,o.NgModuleFactoryLoader,o.Compiler,un,Dn,[C(function e(){E(this,e)}),new o.Optional],[C(function e(){E(this,e)}),new o.Optional]]},ln,{provide:Ye,useFactory:function(e){return e.routerState.root},deps:[mn]},{provide:o.NgModuleFactoryLoader,useClass:o.SystemJsNgModuleLoader},An,En,function(){return C(function e(){E(this,e)},[{key:"preload",value:function(e,t){return t().pipe((0,I.K)(function(){return(0,u.of)(null)}))}}])}(),{provide:Dn,useValue:{enableTracing:!1}}];function Mn(){return new o.NgProbeToken("Router",mn)}var Pn=function(){var e=function(){function e(t,n){E(this,e)}return C(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Tn,jn(t),{provide:In,useFactory:Nn,deps:[[mn,new o.Optional,new o.SkipSelf]]},{provide:Dn,useValue:n||{}},{provide:i.S$,useFactory:Fn,deps:[i.lw,[new o.Inject(i.mr),new o.Optional],Dn]},{provide:On,useFactory:Rn,deps:[mn,i.EM,Dn]},{provide:Sn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:En},{provide:o.NgProbeToken,multi:!0,useFactory:Mn},[Ln,{provide:o.APP_INITIALIZER,multi:!0,useFactory:Bn,deps:[Ln]},{provide:Wn,useFactory:Vn,deps:[Ln]},{provide:o.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Wn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[jn(t)]}}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(In,8),o.\u0275\u0275inject(mn,8))},e.\u0275mod=o.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=o.\u0275\u0275defineInjector({}),e}();function Rn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new On(e,t,n)}function Fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function Nn(e){return"guarded"}function jn(e){return[{provide:o.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:un,multi:!0,useValue:e}]}var Ln=function(){var e=function(){return C(function e(t){E(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new w.xQ},[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(mn),i=e.injector.get(Dn);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?(0,u.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Dn),n=this.injector.get(An
1),r=this.injector.get(On),i=this.injector.get(mn),a=this.injector.get(o.ApplicationRef);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(o.Injector))},e.\u0275prov=o.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}();function Bn(e){return e.appInitializer.bind(e)}function Vn(e){return e.bootstrapListener.bind(e)}var Wn=new o.InjectionToken("Router Initializer")},48319:function(e,t,n){"use strict";n.d(t,{N0:function(){return d},Ar:function(){return v}});var i,o,a=n(85572),u=n(62415),s=n(82754),c=n(10996),l=n(69556),f=n(24521),h=new u.InjectionToken("JWT_OPTIONS"),d=(i=function(){return C(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;E(this,e),this.tokenGetter=t&&t.tokenGetter||function(){}},[{key:"urlBase64Decode",value:function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}},{key:"b64decode",value:function(e){var t="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0;r=e.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?t+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return t}},{key:"b64DecodeUnicode",value:function(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}},{key:"decodeToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter();if(!e||""===e)return null;var t=e.split(".");if(3!==t.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");var n=this.urlBase64Decode(t[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}},{key:"getTokenExpirationDate",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter();if(!(e=this.decodeToken(t))||!e.hasOwnProperty("exp"))return null;var n=new Date(0);return n.setUTCSeconds(e.exp),n}},{key:"isTokenExpired",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter(),t=arguments.length>1?arguments[1]:void 0;if(!e||""===e)return!0;var n=this.getTokenExpirationDate(e);return t=t||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*t)}},{key:"getAuthScheme",value:function(e,t){return"function"==typeof e?e(t):e}}])}(),i.\u0275fac=function(e){return new(e||i)(u.\u0275\u0275inject(h))},i.\u0275prov=u.\u0275\u0275defineInjectable({token:i,factory:function(e){return i.\u0275fac(e)}}),i=(0,a.gn)([(0,a.fM)(0,(0,u.Inject)(h)),(0,a.w6)("design:paramtypes",[Object])],i)),p=function(){var e=function(){return C(function e(t,n){E(this,e),this.jwtHelper=n,this.standardPorts=["80","443"],this.tokenGetter=t.tokenGetter,this.headerName=t.headerName||"Authorization",this.authScheme=t.authScheme||""===t.authScheme?t.authScheme:"Bearer ",this.whitelistedDomains=t.whitelistedDomains||[],this.blackl
1istedRoutes=t.blacklistedRoutes||[],this.throwNoTokenError=t.throwNoTokenError||!1,this.skipWhenExpired=t.skipWhenExpired},[{key:"isWhitelistedDomain",value:function(e){var t=(0,c.Qc)(e.url,!1,!0),n=null!==t.hostname?"".concat(t.hostname).concat(t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""):t.hostname;return null===n||this.whitelistedDomains.findIndex(function(e){return"string"==typeof e?e===n:e instanceof RegExp&&e.test(n)})>-1}},{key:"isBlacklistedRoute",value:function(e){var t=(0,c.Qc)(e.url,!1,!0);return this.blacklistedRoutes.findIndex(function(n){if("string"==typeof n){var r=(0,c.Qc)(n,!1,!0);return r.hostname===t.hostname&&r.path===t.path}return n instanceof RegExp&&n.test(e.url)})>-1}},{key:"handleInterception",value:function(e,t,n){var i=this.jwtHelper.getAuthScheme(this.authScheme,t),o=!1;if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");return this.skipWhenExpired&&(o=!e||this.jwtHelper.isTokenExpired(e)),e&&o&&this.skipWhenExpired?t=t.clone():e&&(t=t.clone({setHeaders:r({},this.headerName,"".concat(i).concat(e))})),n.handle(t)}},{key:"intercept",value:function(e,t){var n=this;if(!this.isWhitelistedDomain(e)||this.isBlacklistedRoute(e))return t.handle(e);var r=this.tokenGetter(e);return r instanceof Promise?(0,l.D)(r).pipe((0,s.zg)(function(r){return n.handleInterception(r,e,t)})):this.handleInterception(r,e,t)}}])}();return e.\u0275fac=function(t){return new(t||e)(u.\u0275\u0275inject(h),u.\u0275\u0275inject(d))},e.\u0275prov=u.\u0275\u0275defineInjectable({token:e,factory:function(t){return e.\u0275fac(t)}}),e=(0,a.gn)([(0,a.fM)(0,(0,u.Inject)(h)),(0,a.w6)("design:paramtypes",[Object,d])],e)}(),v=o=function(){return C(function e(t){if(E(this,e),t)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")},null,[{key:"forRoot",value:function(e){return{ngModule:o,providers:[{provide:f.TP,useClass:p,multi:!0},e.jwtOptionsProvider||{provide:h,useValue:e.config},d]}}}])}();v.\u0275fac=function(e){return new(e||v)(u.\u0275\u0275inject(v,12))},v.\u0275mod=u.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=u.\u0275\u0275defineInjector({}),v.ctorParameters=function(){return[{type:v,decorators:[{type:u.Optional},{type:u.SkipSelf}]}]},v=o=(0,a.gn)([(0,a.fM)(0,(0,u.Optional)()),(0,a.fM)(0,(0,u.SkipSelf)()),(0,a.w6)("design:paramtypes",[v])],v)},12278:function(e,t,n){"use strict";n.d(t,{eX:function(){return R},sQ:function(){return Q},GW:function(){return S},l4:function(){return F}});var r=n(17419),i=n(42793),o=n(38135),a=n(93386),u=n(63553),s=n(54060),l=n(39417),h=n(58267),d=n(86243),p=n(59413),v=n(82754),y=n(64793),g=n(14358),b=n(8355),w=n(62415),x={dispatch:!0,useEffectsErrorHandler:!0},k="__@ngrx/effects_create__";function S(e,t){var n=e(),r=Object.assign(Object.assign({},x),t);return Object.defineProperty(n,k,{value:r}),n}function A(e){return Object.getOwnPropertyNames(e).filter(function(t){return!(!e[t]||!e[t].hasOwnProperty(k))&&e[t][k].hasOwnProperty("dispatch")}).map(function(t){return Object.assign({propertyName:t},e[t][k])})}function O(e){return Object.getPrototypeOf(e)}var D="__@ngrx/effects__";function I(e){return(0,r.qC)(T,O)(e)}function T(e){return function(e){return e.constructor.hasOwnProperty(D)}(e)?e.constructor[D]:[]}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return e.pipe((0,h.K)(function(r){return t&&t.handleError(r),n<=1?e:M(e,t,n-1)}))}var P,R=((P=function(e){function t(e){var n;return E(this,t),n=m(this,t),e&&(n.source=e),n}return _(t,e),C(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}}])}(o.y)).\u0275fac=function(e){return new(e||P)(w.\u0275\u0275inject(r.Y$))},P.\u0275prov=w.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P);function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,d.h)(function(e){return t.some(function(t){return"string"==typeof t?t===e.type:t.type===e.type})})}function N(e){return j(e,"ngrxOnInitEffects")}function j(e,t){return e&&t in e&&"function"==typeof e[t]}var L=new w.InjectionToken("@ngrx/effects Internal Root Guard"),B=new w.InjectionToken("@ngrx/effects User Provided Effects"),V=new w.InjectionToken("@ngrx/effects Internal Root Effects"),W=new w.InjectionToken("@ngrx/effects Root Effects"),U=new w.InjectionToken("@ngrx/effects Internal Feature Effects"),z=new w.InjectionToken("@ngrx/effects Feature Effects"),q=ne
1w w.InjectionToken("@ngrx/effects Effects Error Handler"),H=function(){var e=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).errorHandler=e,r.effectsErrorHandler=n,r}return _(t,e),C(t,[{key:"addEffects",value:function(e){this.next(e)}},{key:"toActions",value:function(){var e=this;return this.pipe((0,p.v)(O),(0,v.zg)(function(e){return e.pipe((0,p.v)(G))}),(0,v.zg)(function(t){var n=t.pipe((0,y.z)(function(t){return function(e,t){return function(n){var r=function(e,t,n){var r=O(e).constructor.name,o=function(e){return[I,A].reduce(function(t,n){return t.concat(n(e))},[])}(e).map(function(i){var o=i.propertyName,a=i.dispatch,c=i.useEffectsErrorHandler,f="function"==typeof e[o]?e[o]():e[o],h=c?n(f,t):f;return!1===a?h.pipe((0,u.l)()):h.pipe((0,s.i)()).pipe((0,l.U)(function(t){return{effect:e[o],notification:t,propertyName:o,sourceName:r,sourceInstance:e}}))});return i.T.apply(void 0,c(o))}(n,e,t);return function(e){return j(e,"ngrxOnRunEffects")}(n)?n.ngrxOnRunEffects(r):r}}(e.errorHandler,e.effectsErrorHandler)(t)}),(0,l.U)(function(t){return function(e,t){if("N"===e.notification.kind){var n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error("Effect ".concat(function(e){var t=e.propertyName,n=e.sourceInstance,r=e.sourceName,i="function"==typeof n[t];return'"'.concat(r,".").concat(String(t)).concat(i?"()":"",'"')}(e)," dispatched an invalid action: ").concat(function(e){try{return JSON.stringify(e)}catch(t){return e}}(n))))}}(t,e.errorHandler),t.notification}),(0,d.h)(function(e){return"N"===e.kind&&null!=e.value}),(0,g.D)()),r=t.pipe((0,b.q)(1),(0,d.h)(N),(0,l.U)(function(e){return e.ngrxOnInitEffects()}));return(0,i.T)(n,r)}))}}])}(a.xQ);return e.\u0275fac=function(t){return new(t||e)(w.\u0275\u0275inject(w.ErrorHandler),w.\u0275\u0275inject(q))},e.\u0275prov=w.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}();function G(e){return function(e){return j(e,"ngrxOnIdentifyEffects")}(e)?e.ngrxOnIdentifyEffects():""}var K=function(){var e=function(){return C(function e(t,n){E(this,e),this.effectSources=t,this.store=n,this.effectsSubscription=null},[{key:"start",value:function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}},{key:"ngOnDestroy",value:function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}])}();return e.\u0275fac=function(t){return new(t||e)(w.\u0275\u0275inject(H),w.\u0275\u0275inject(r.yh))},e.\u0275prov=w.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),Y="@ngrx/effects/init";(0,r.PH)(Y);var $=function(){var e=function(){return C(function e(t,n,r,i,o,a,u){E(this,e),this.sources=t,n.start(),i.forEac
1h(function(e){return t.addEffects(e)}),r.dispatch({type:Y})},[{key:"addEffects",value:function(e){this.sources.addEffects(e)}}])}();return e.\u0275fac=function(t){return new(t||e)(w.\u0275\u0275inject(H),w.\u0275\u0275inject(K),w.\u0275\u0275inject(r.yh),w.\u0275\u0275inject(W),w.\u0275\u0275inject(r.cr,8),w.\u0275\u0275inject(r.CK,8),w.\u0275\u0275inject(L,8))},e.\u0275mod=w.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=w.\u0275\u0275defineInjector({}),e}(),Z=function(){var e=C(function e(t,n,r,i){E(this,e),n.forEach(function(e){return e.forEach(function(e){return t.addEffects(e)})})});return e.\u0275fac=function(t){return new(t||e)(w.\u0275\u0275inject($),w.\u0275\u0275inject(z),w.\u0275\u0275inject(r.cr,8),w.\u0275\u0275inject(r.CK,8))},e.\u0275mod=w.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=w.\u0275\u0275defineInjector({}),e}(),Q=function(){var e=function(){return C(function e(){E(this,e)},null,[{key:"forFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:Z,providers:[e,{provide:U,multi:!0,useValue:e},{provide:B,multi:!0,useValue:[]},{provide:z,multi:!0,useFactory:X,deps:[w.Injector,U,B]}]}}},{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:$,providers:[{provide:q,useValue:M},K,H,R,e,{provide:V,useValue:[e]},{provide:L,useFactory:J,deps:[[K,new w.Optional,new w.SkipSelf],[V,new w.Self]]},{provide:B,multi:!0,useValue:[]},{provide:W,useFactory:X,deps:[w.Injector,V,B]}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=w.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=w.\u0275\u0275defineInjector({}),e}();function X(e,t,n){var r,i=[],o=f(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.push.apply(i,c(a))}}catch(h){o.e(h)}finally{o.f()}var u,s=f(n);try{for(s.s();!(u=s.n()).done;){var l=u.value;i.push.apply(i,c(l))}}catch(h){s.e(h)}finally{s.f()}return function(e,t){return t.map(function(t){return e.get(t)})}(e,i)}function J(e,t){if((1!==t.length||0!==t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},89952:function(e,t,n){"use strict";n.d(t,{Qi:function(){return k},tr:function(){return p}});var r,i=n(17419),o=n(62415),a=n(13074),u=n(57746),s="@ngrx/router-store/request",c=((0,i.PH)(s,(0,i.Ky)()),"@ngrx/router-store/navigation"),l=((0,i.PH)(c,(0,i.Ky)()),"@ngrx/router-store/cancel"),f=((0,i.PH)(l,(0,i.Ky)()),"@ngrx/router-store/error"),d=((0,i.PH)(f,(0,i.Ky)()),"@ngrx/router-store/navigated"),p=(0,i.PH)(d,(0,i.Ky)()),v=C(function e(){E(this,e)}),y=function(){return C(function e(){E(this,e)},[{key:"serialize",value:function(e){return{root:this.serializeRoute(e.root),url:e.url}}},{key:"serializeRoute",value:function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,paramMap:e.paramMap,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{component:e.routeConfig.component,path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,queryParamMap:e.queryParamMap,fragment:e.fragment,component:e.routeConfig?e.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:n[0],pathFromRoot:void 0,children:n}}}])}(),m=function(){return C(function e(){E(this,e)},[{key:"serialize",value:function(e){return{root:this.serializeRoute(e.root),url:e.url}}},{key:"serializeRoute",value:function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,fragment:e.fragment,firstChild:n[0],children:n}}}])}(),g=((r=g||(g={}))[r.PreActivation=1]="PreActivation",r[r.PostActivation=2]="PostActivation",g),b=new o.InjectionToken("@ngrx/router-store Internal Configuration"),w=new o.InjectionToken("@ngrx/router-store Configuration");function _(e){return Object.assign({stateKey:"router",serializer:m,navigationActionTiming:g.PreActivation},e)}var x=function(){return(e=x||(x={}))[e.NONE=1]="NONE",e[e.ROUTER=2]="ROUTER",e[e.STORE=3]="STORE",x;var e}(),k=function(){var e=function(){function e(t,n,r,a,u,s){E(this,e),this.store=t,this.router=n,this.serializer
1=r,this.errorHandler=a,this.config=u,this.activeRuntimeChecks=s,this.lastEvent=null,this.routerState=null,this.trigger=x.NONE,this.stateKey=this.config.stateKey,!(0,i.rM)()&&(0,o.isDevMode)()&&((null==s?void 0:s.strictActionSerializability)||(null==s?void 0:s.strictStateSerializability))&&this.serializer instanceof y&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the DefaultRouterStateSerializer. The default serializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer. This also applies to Ivy with immutability runtime checks."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}return C(e,[{key:"setUpStoreStateListener",value:function(){var e=this;this.store.pipe((0,i.Ys)(this.stateKey),(0,u.M)(this.store)).subscribe(function(t){var n=h(t,2),r=n[0],i=n[1];e.navigateIfNeeded(r,i)})}},{key:"navigateIfNeeded",value:function(e,t){var n=this;if(e&&e.state&&this.trigger!==x.ROUTER&&!(this.lastEvent instanceof a.OD)){var r=e.state.url;(function(e,t){return S(e)===S(t)})(this.router.url,r)||(this.storeState=t,this.trigger=x.STORE,this.router.navigateByUrl(r).catch(function(e){n.errorHandler.handleError(e)}))}}},{key:"setUpRouterEventsListener",value:function(){var e,t=this,n=this.config.navigationActionTiming===g.PostActivation;this.router.events.pipe((0,u.M)(this.store)).subscribe(function(r){var i=h(r,2),o=i[0],u=i[1];t.lastEvent=o,o instanceof a.OD?(t.routerState=t.serializer.serialize(t.router.routerState.snapshot),t.trigger!==x.STORE&&(t.storeState=u,t.dispatchRouterRequest(o))):o instanceof a.R9?(e=o,!n&&t.trigger!==x.STORE&&t.dispatchRouterNavigation(o)):o instanceof a.gk?(t.dispatchRouterCancel(o),t.reset()):o instanceof a.Q3?(t.dispatchRouterError(o),t.reset()):o instanceof a.m2&&(t.trigger!==x.STORE&&(n&&t.dispatchRouterNavigation(e),t.dispatchRouterNavigated(o)),t.reset())})}},{key:"dispatchRouterRequest",value:function(e){this.dispatchRouterAction(s,{event:e})}},{key:"dispatchRouterNavigation",value:function(e){var t=this.serializer.serialize(e.state);this.dispatchRouterAction(c,{routerState:t,event:new a.R9(e.id,e.url,e.urlAfterRedirects,t)})}},{key:"dispatchRouterCancel",value:function(e){this.dispatchRouterAction(l,{storeState:this.storeState,event:e})}},{key:"dispatchRouterError",value:function(e){this.dispatchRouterAction(f,{storeState:this.storeState,event:new a.Q3(e.id,e.url,"".concat(e))})}},{key:"dispatchRouterNavigated",value:function(e){var t=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction(d,{event:e,routerState:t})}},{key:"dispatchRouterAction",value:function(e,t){this.trigger=x.ROUTER;try{this.store.dispatch({type:e,payload:Object.assign(Object.assign({routerState:this.routerState},t),{event:0===this.config.routerState?t.event:{id:t.event.id,url:t.event.url,urlAfterRedirects:t.event.urlAfterRedirects}})})}finally{this.trigger=x.NONE}}},{key:"reset",value:function(){this.trigger=x.NONE,this.storeState=null,this.routerState=null}}],[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:b,useValue:t},{provide:w,useFactory:_,deps:[b]},{provide:v,useClass:t.serializer?t.serializer:0===t.routerState?y:m}]}}}])}();return e.\u0275fac=function(t){return new(t||e)(o.\u0275\u0275inject(i.yh),o.\u0275\u0275inject(a.F0),o.\u0275\u0275inject(v),o.\u0275\u0275inject(o.ErrorHandler),o.\u0275\u0275inject(w),o.\u0275\u0275inject(i.hg))},e.\u0275mod=o.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=o.\u0275\u0275defineInjector({}),e}();function S(e){return(null==e?void 0:e.length)>0&&"/"===e[e.length-1]?e.substring(0,e.length-1):e}},17419:function(e,t,o){"use strict";o.d(t,{hg:function(){return Q},Y$:function(){return ae},yh:function(){return he},CK:function(){return We},Aw:function(){return Ue},cr:function(){return Ve},qC:function(){return ee},PH:function(){return k},ZF:function(){return Ae},Lq:function(){return Ze},P1:function(){return Se},rM:function(){return _e},on:function(){return $e},Ky:function(){return S},Ys:function(){return pe}});var a=o(62415),u=o(31530),s=o(38135),l=o(93386),d=o(91786),p=o(50263),v=o(57746),y=o(26362),g=o(20354),b=o(39417),w=o(73916),x={};function k(e,t){if(x[e]=(x[e]||0)+1,"function"==typeof t)return A(e,function(){return Object.assign(Object.assign({},t.apply(void 0,arguments)),{type:e})});switch(t?t._as:"empty"){case"empty":return A(e,function(){return{type:e}});case"props":return A(e,function(t){return Object.assign(Object.assign({},t),{type:e})});default:throw new Error("Unexpected config.")}}function S(){return{_as:"props",_p:void 0}}function A(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}var O,D="@ngrx/store/init",I=((O=function(e){function t(){return E(this,t),m(this,t,[{type:D}])}return _(t,e),C(t,[{key:"next",value:function(e){if("function"==typeof e)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");i(t,"next",this,3)([e])}},{key:"complete",value:function(){}},{key:"ngOnDestroy",value:function(){i(t,"complete",this,3)([])}}])}(u.X)).\u0275fac=function(e){return new(e||O)},O.\u0275prov=a.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O),T=[I],M=new a.InjectionToken("@ngrx/store Internal Root Guard"),P=new a.InjectionToken("@ngrx/store Internal Initial State"),R=new a.InjectionToken("@ngrx/store Initial State"),F=new a.InjectionToken("@ngrx/store Reducer Factory"),N=new a.InjectionToken("@ngrx/store Internal Reducer Factory Provider"),j=new a.InjectionToken("@ngrx/store Initial Reducers"),L=new a.InjectionToken("@ngrx/store Internal Initial Reducers"),B=new a.InjectionToken("@ngrx/store Store Features"),V=new a.InjectionToken("@ngrx/store Internal Store Reducers"),W=new a.InjectionToken("@ngrx/store Internal Feature Reducers"),U=new a.InjectionToken("@ngrx/store Internal Feature Configs"),z=new a.InjectionToken("@ngrx/store Internal Store Features"),q=ne
1w a.InjectionToken("@ngrx/store Internal Feature Reducers Token"),H=new a.InjectionToken("@ngrx/store Feature Reducers"),G=new a.InjectionToken("@ngrx/store User Provided Meta Reducers"),K=new a.InjectionToken("@ngrx/store Meta Reducers"),Y=new a.InjectionToken("@ngrx/store Internal Resolved Meta Reducers"),$=new a.InjectionToken("@ngrx/store User Runtime Checks Config"),Z=new a.InjectionToken("@ngrx/store Internal User Runtime Checks Config"),Q=new a.InjectionToken("@ngrx/store Internal Runtime Checks"),X=new a.InjectionToken("@ngrx/store Check if Action types are unique");function J(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),r={},i=0;i<n.length;i++){var o=n[i];"function"==typeof e[o]&&(r[o]=e[o])}var a=Object.keys(r);return function(e,n){e=void 0===e?t:e;for(var i=!1,o={},u=0;u<a.length;u++){var s=a[u],c=e[s],l=(0,r[s])(c,n);o[s]=l,i=i||l!==c}return i?o:e}}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(0===t.length)return e;var n=t[t.length-1];return t.slice(0,-1).reduceRight(function(e,t){return t(e)},n(e))}}function te(e,t){return Array.isArray(t)&&t.length>0&&(e=ee.apply(null,[].concat(c(t),[e]))),function(t,n){var r=e(t);return function(e,t){return r(e=void 0===e?n:e,t)}}}var ne=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(s.y),re=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(I),ie=function(){var e=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[i(r,n)])).dispatcher=e,o.initialState=n,o.reducers=r,o.reducerFactory=i,o}return _(t,e),C(t,[{key:"currentReducers",get:function(){return this.reducers}},{key:"addFeature",value:function(e){this.addFeatures([e])}},{key:"addFeatures",value:function(e){var t=e.reduce(function(e,t){var n=t.reducers,r=t.reducerFactory,i=t.metaReducers,o=t.initialState,a=t.key,u="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?ee.apply(void 0,c(e)):function(e){return e};return function(e,n){return e=t(e),function(t,r){return e(t=void 0===t?n:t,r)}}}(i)(n,o):te(r,i)(n,o);return e[a]=u,e},{});this.addReducers(t)}},{key:"removeFeature",value:function(e){this.removeFeatures([e])}},{key:"removeFeatures",value:function(e){this.removeReducers(e.map(function(e){return e.key}))}},{key:"addReducer",value:function(e,t){this.addReducers(r({},e,t))}},{key:"addReducers",value:function(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}},{key:"removeReducer",value:function(e){this.removeReducers([e])}},{key:"removeReducers",value:function(e){var t=this;e.forEach(function(e){t.reducers=function(e,t){return Object.keys(e).filter(function(e){return e!==t}).reduce(function(t,n){return Object.assign(t,r({},n,e[n]))},{})}(t.reducers,e)}),this.updateReducers(e)}},{key:"updateReducers",value:function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:e})}},{key:"ngOnDestroy",value:function(){this.complete()}}])}(u.X);return e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275inject(re),a.\u0275\u0275inject(R),a.\u0275\u0275inject(j),a.\u0275\u0275inject(F))},e.\u0275prov=a.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),oe=[ie,{provide:ne,useExisting:ie},{provide:re,useExisting:I}],ae=function(){var e,t=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"ngOnDestroy",value:function(){this.complete()}}])}(l.xQ);return t.\u0275fac=function(n){return(e||(e=a.\u0275\u0275getInheritedFactory(t)))(n||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t}(),ue=[ae],se=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(s.y),ce=function(){var e=function(e){function t(e,n,r,i){var o;E(this,t),o=m(this,t,[i]);var a=e.pipe((0,p.QV)(d.N)).pipe((0,v.M)(n)).pipe((0,y.R)(le,{state:i}));return o.stateSubscription=a.subscribe(function(e){var t=e.state,n=e.action;o.next(t),r.next(n)}),o}return _(t,e),C(t,[{key:"ngOnDestroy",value:function(){this.stateSubscription.unsubscribe(),this.complete()}}])}(u.X);return e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275inject(I),a.\u0275\u0275inject(ne),a.\u0275\u0275inject(ae),a.\u0275\u0275inject(R))},e.\u0275prov=a.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e.INIT=D,e}();function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{state:void 0},t=arguments.length>1?arguments[1]:void 0,n=h(t,2),r=n[0],i=n[1],o=e.state;return{state:i(o,r),action:r}}var fe=[ce,{provide:se,useExisting:ce}],he=function(){var e=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t)).actionsObserver=n,i.reducerManager=r,i.source=e,i}return _(t,e),C(t,[{key:"select",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return pe.call.apply(pe,[null,e].concat(n))(this)}},{key:"lift",value:function(e){var n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}},{key:"dispatch",value:function(e){this.actionsObserver.next(e)}},{key:"next",value:function(e){this.actionsObserver.next(e)}},{key:"error",value:function(e){this.actionsObserver.error(e)}},{key:"complete",value:function(){this.actionsObserver.complete()}},{key:"addReducer",value:function(e,t){this.reducerManager.addReducer(e,t)}},{key:"removeReducer",value:function(e){this.reducerManager.removeReducer(e)}}])}(s.y);return e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275inject(se),a.\u0275\u0275inject(I),a.\u0275\u0275inject(ie))},e.\u0275prov=a.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e}(),de=[he];function pe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return function(n){var i;
1if("string"==typeof e){var o=[t].concat(r).filter(Boolean);i=n.pipe(g.j.apply(void 0,[e].concat(c(o))))}else{if("function"!=typeof e)throw new TypeError("Unexpected type '".concat(typeof e,"' in select operator, expected 'string' or 'function'"));i=n.pipe((0,b.U)(function(n){return e(n,t)}))}return i.pipe((0,w.x)())}}var ve="https://ngrx.io/guide/store/configuration/runtime-checks";function ye(e){return void 0===e}function me(e){return null===e}function ge(e){return Array.isArray(e)}function be(e){return"object"==typeof e&&null!==e}function we(e){return"function"==typeof e}function _e(){return!1}function xe(e,t){return e===t}function ke(e,t,n){for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xe,i=null,o=null;return{memoized:function(){if(void 0!==t)return t.result;if(!i)return o=e.apply(null,arguments),i=arguments,o;if(!ke(arguments,i,n))return o;var a=e.apply(null,arguments);return i=arguments,r(o,a)?o:(o=a,a)},reset:function(){i=null,o=null},setResult:function(e){t={result:e}},clearResult:function(){t=void 0}}}function Se(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stateFn:Ee};return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i;if(Array.isArray(a[0])){var u=a,s=n(u),l=s[0],f=s.slice(1);a=[].concat(c(l),c(f))}var h=a.slice(0,a.length-1),d=a[a.length-1],p=h.filter(function(e){return e.release&&"function"==typeof e.release}),v=e(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.apply(null,t)}),y=Ce(function(e,n){return t.stateFn.apply(null,[e,h,n,v])});return Object.assign(y.memoized,{release:function(){y.reset(),v.reset(),p.forEach(function(e){return e.release()})},projector:v.memoized,setResult:y.setResult,clearResult:y.clearResult})}}(Ce).apply(void 0,arguments)}function Ee(e,t,n,r){if(void 0===n){var i=t.map(function(t){return t(e)});return r.memoized.apply(null,i)}var o=t.map(function(t){return t(e,n)});return r.memoized.apply(null,[].concat(c(o),[n]))}function Ae(e){return Se(function(t){var n=t[e];return(0,a.isDevMode)()&&!(e in t)&&console.warn('@ngrx/store: The feature name "'.concat(e,"\" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('").concat(e,"', ...) or StoreModule.forFeature('").concat(e,"', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.")),n},function(e){return e})}function Oe(e){Object.freeze(e);var t=we(e);return Object.getOwnPropertyNames(e).forEach(function(n){if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){var r=e[n];(be(r)||we(r))&&!Object.isFrozen(r)&&Oe(r)}}),e}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(ye(e)||me(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce(function(n,r){if(n)return n;var i=e[r];return function(e){return we(e)&&e.hasOwnProperty("\u0275cmp")}(i)?n:!(ye(i)||me(i)||function(e){return"number"==typeof e}(i)||function(e){return"boolean"==typeof e}(i)||function(e){return"string"==typeof e}(i)||ge(i))&&(function(e){if(!function(e){return be(e)&&!ge(e)}(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(i)?De(i,[].concat(c(t),[r])):{path:[].concat(c(t),[r]),value:i})},!1)}function Ie(e,t){if(!1!==e){var n=e.path.join("."),r=new Error("Detected unserializable ".concat(t,' at "').concat(n,'". ').concat(ve,"#strict").concat(t,"serializability"));throw r.value=e.value,r.unserializablePath=n,r}}function Te(e){return(0,a.isDevMode)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}
1,e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Me(e){var t=e.strictActionSerializability,n=e.strictStateSerializability;return function(e){return t||n?function(e,t){return function(n,r){t.action(r)&&Ie(De(r),"action");var i=e(n,r);return t.state()&&Ie(De(i),"state"),i}}(e,{action:function(e){return t&&!Re(e)},state:function(){return n}}):e}}function Pe(e){var t=e.strictActionImmutability,n=e.strictStateImmutability;return function(e){return t||n?function(e,t){return function(n,r){var i=t.action(r)?Oe(r):r,o=e(n,i);return t.state()?Oe(o):o}}(e,{action:function(e){return t&&!Re(e)},state:function(){return n}}):e}}function Re(e){return e.type.startsWith("@ngrx")}function Fe(e){var t=e.strictActionWithinNgZone;return function(e){return t?function(e,t){return function(n,r){if(t.action(r)&&!a.NgZone.isInAngularZone())throw new Error("Action '".concat(r.type,"' running outside NgZone. ").concat(ve,"#strictactionwithinngzone"));return e(n,r)}}(e,{action:function(e){return t&&!Re(e)}}):e}}function Ne(e){return[{provide:Z,useValue:e},{provide:$,useFactory:Le,deps:[Z]},{provide:Q,deps:[$],useFactory:Te},{provide:K,multi:!0,deps:[Q],useFactory:Pe},{provide:K,multi:!0,deps:[Q],useFactory:Me},{provide:K,multi:!0,deps:[Q],useFactory:Fe}]}function je(){return[{provide:X,multi:!0,deps:[Q],useFactory:Be}]}function Le(e){return e}function Be(e){if(e.strictActionTypeUniqueness){var t=Object.entries(x).filter(function(e){return h(e,2)[1]>1}).map(function(e){return h(e,1)[0]});if(t.length)throw new Error("Action types are registered more than once, ".concat(t.map(function(e){return'"'.concat(e,'"')}).join(", "),". ").concat(ve,"#strictactiontypeuniqueness"))}}var Ve=function(){var e=C(function e(t,n,r,i,o,a){E(this,e)});return e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275inject(I),a.\u0275\u0275inject(ne),a.\u0275\u0275inject(ae),a.\u0275\u0275inject(he),a.\u0275\u0275inject(M,8),a.\u0275\u0275inject(X,8))},e.\u0275mod=a.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=a.\u0275\u0275defineInjector({}),e}(),We=function(){var e=function(){return C(function e(t,n,r,i,o){E(this,e),this.features=t,this.featureReducers=n,this.reducerManager=r;var a=t.map(function(e,t){var r=n.shift()[t];return Object.assign(Object.assign({},e),{reducers:r,initialState:Ge(e.initialState)})});r.addFeatures(a)},[{key:"ngOnDestroy",value:function(){this.reducerManager.removeFeatures(this.features)}}])}();return e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275inject(z),a.\u0275\u0275inject(H),a.\u0275\u0275inject(ie),a.\u0275\u0275inject(Ve),a.\u0275\u0275inject(X,8))},e.\u0275mod=a.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=a.\u0275\u0275defineInjector({}),e}(),Ue=function(){var e=function(){return C(function e(){E(this,e)},null,[{key:"forRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:Ve,providers:[{provide:M,useFactory:Ye,deps:[[he,new a.Optional,new a.SkipSelf]]},{provide:P,useValue:t.initialState},{provide:R,useFactory:Ge,deps:[P]},{provide:L,useValue:e},{provide:V,useExisting:e instanceof a.InjectionToken?e:L},{provide:j,deps:[a.Injector,L,[new a.Inject(V)]],useFactory:ze},{provide:G,useValue:t.metaReducers?t.metaReducers:[]},{provide:Y,deps:[K,G],useFactory:Ke},{provide:N,useValue:t.reducerFactory?t.reducerFactory:J},{provide:F,deps:[N,Y],useFactory:te},T,oe,ue,fe,de,Ne(t.runtimeChecks),je()]}}},{key:"forFeature",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{ngModule:We,providers:[{provide:U,multi:!0,useValue:e instanceof Object?{}:n},{provide:B,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof a.InjectionToken||!n.reducerFactory?J:n.reducerFactory,metaReducers:n instanceof a.InjectionToken||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof a.InjectionToken||!n.initialState?void 0:n.initialState}},{provide:z,deps:[a.Injector,U,B],useFactory:qe},{provide:W,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:q,multi:!0,useExisting:t instanceof a.InjectionToken?t:W},{provide:H,multi:!0,deps:[a.Injector,W,[new a.Inject(q)]],useFactory:He},je()]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=a.\u0275\u0275defineInjector({}),e}();function ze(e,t){return t instanceof a.InjectionToken?e.get(t):t}function qe(e,t,n){return n.map(function(n,r){if(t[r]instanceof a.InjectionToken){var i=e.get(t[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:J,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function He(e,t){return t.map(function(t){return t instanceof a.InjectionToken?e.get(t):t})}function Ge(e){return"function"==typeof e?e():e}function Ke(e,t){return e.concat(t)}function Ye(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature
1() instead.");return"guarded"}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{reducer:t.pop(),types:t.map(function(e){return e.type})}}function Ze(e){for(var t=new Map,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=function(){var e,n=u[a],r=f(n.types);try{var i=function(){var r=e.value,i=t.get(r);t.set(r,i?function(e,t){return n.reducer(i(e,t),t)}:n.reducer)};for(r.s();!(e=r.n()).done;)i()}catch(o){r.e(o)}finally{r.f()}},a=0,u=r;a<u.length;a++)o();return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,i=t.get(r.type);return i?i(n,r):n}}},49042:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var r=function(){function e(e,t){this.API_KEY=e,this.API_SECRET=t,this._cache={},this._headers={API_KEY:e,API_SECRET:t}}return Object.defineProperty(e.prototype,"headers",{get:function(){return this._headers},enumerable:!1,configurable:!0}),e.prototype._fetch=function(e,t){return fetch(e,t).then(function(e){return e.json()})},e.prototype._request=function(e,t,r,i,o){void 0===i&&(i=!0),void 0===o&&(o="application/json");var a=this.headers,u=this._cache,s={method:e,headers:a},c=void 0;if(r&&(s.body=JSON.stringify(r)),i){var l=JSON.stringify({method:e,url:t,params:r});c=u[l]||(u[l]=this._fetch(t,s))}else c=this._fetch(t,n(n({},s),{headers:n(n({},a),{"Cache-Control":"no-cache","Content-Type":o})}));return c},e.prototype.get=function(e,t,n,r){return t&&(e=e+"?"+new URLSearchParams(t)),this._request("GET",e,void 0,n,r)},e.prototype.post=function(e,t,n){return this._request("POST",e,t,!1,n)},e.prototype.put=function(e,t,n){return this._request("PUT",e,t,!1,n)},e}();t.Api=r},1337:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticatedApi=void 0;var a=n(62847),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"headers",{get:function(){return o(o({},this._headers),{user_token:(0,a.getAuthToken)()||""})},enumerable:!1,configurable:!0}),t}(n(49042).Api);t.AuthenticatedApi=u},29543:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomHeaderApi=void 0;var o=function(e){function t(t){var n=e.call(this,"","")||this;return n.customHeaders=t,n._headers=t,n}return i(t,e),t}(n(49042).Api);t.CustomHeaderApi=o},54331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messenger=void 0;var r=n(28491),i=function(){function e(e){var t=this;this._window=e,this._events=Object.create(null),this._middleware=[],window.addEventListener("message",function(n){var r=n.data,i=r.name,o=r.data,a=t._events[i];n.origin===window.location.origin&&n.source===e&&a&&(a.next(o),t._triggerMiddleware({name:i,data:o}))})}return e.prototype.send=function(e){this._window.postMessage(e,window.location.origin),this._triggerMiddleware(e)},e.prototype.on=function(e,t){var n=this._events;return(n[e]||(n[e]=new r.Subject)).subscribe(t)},e.prototype.addMiddleware=function(e){this._middleware.push(e)},e.prototype._triggerMiddleware=function(e){this._middleware.forEach(function(t){return t(e)})},e}();t.Messenger=i},12925:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentService=void 0;var r=function(){function e(){}return Object.defineProperty(e.prototype,"_analytics",{get:function(){return window.analytics},enumerable:!1,configurable:!0}),e.prototype.track=function(e){this._analytics.track(e.name,n(n({},e.data),{location:window.location.href}))},e.prototype.page=function(){this._analytics.page()},e}();t.SegmentService=r},63477:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useApi=t.ApiProvider=void 0;var a=o(n(42648)),u=n(49042),s=a.default.createContext(void 0);t.ApiProvider=s.Provider,t.useApi=function(e){void 0===e&&(e="api");var t=(0,a.useContext)(s);return!t||t instanceof u.Api?t:t[e]}},23168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useMessenger=t.MessengerProvider=void 0;var a=o(n(42648)),u=a.default.createContext(void 0);t.MessengerProvider=u.Provider,t.useMessenger=function(){return(0,a.useContext)(u)}},62847:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){e.done?i(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKeys=t.importKey=t.verifyAuthToken=t.getDecodedAuthToken=t.getAuthToken=void 0;var a=o(n(6147));function u(){return localStorage.getItem("user_token")}function s(){var e=u();return e?(0,a.default)(e):null}function c(e){return r(this,void 0,void 0,function(){return i(this,function(t){return[2,window.crypto.subtle.importKey("jwk",e,"AES-GCM",!0,["encrypt","decrypt"])]})})}t.getAuthToken=u,t.getDecodedAuthToken=s,t.verifyAuthToken=function(){var e=s();return!(!e||!e.exp)&&Date.now()<e.exp},t.importKey=c,t.getKeys=function(e,t,n){return r(this,void 0,void 0,function(){var r,o,a,u;return i(this,function(i){switch(i.label){case 0:return r=new Uint8Array(Object.values(n)).buffer,o=new Uint8Array(Object.values(t)),[4,c(e)];
1case 1:return a=i.sent(),[4,window.crypto.subtle.decrypt({name:"AES-GCM",iv:o},a,r)];case 2:return u=i.sent(),[2,String.fromCharCode.apply(null,Array.from(new Uint16Array(u)))]}})})}},87805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useScaleContainerHeightToContent=void 0;var r=n(42648),i=n(23168);t.useScaleContainerHeightToContent=function(){var e=(0,i.useMessenger)();(0,r.useEffect)(function(){e.send({name:"height",data:document.body.scrollHeight+"px"})})}},45579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePageMessages=void 0;var r=n(42648),i=n(23168);t.usePageMessages=function(e,t){var n=(0,i.useMessenger)();(0,r.useEffect)(function(){var r=n.on("page",function(n){n!==window.location.pathname&&t.replace(n.replace("/"+e,""))}),i=t.listen(function(t){return n.send({name:"page",data:"/"+e+t.pathname})});return function(){r.unsubscribe(),i()}},[n,e,t])}},20996:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(62847),t),i(n(1337),t),i(n(49042),t),i(n(29543),t),i(n(54331),t),i(n(12925),t),i(n(63477),t),i(n(23168),t),i(n(45579),t),i(n(87805),t),i(n(24310),t),i(n(38400),t)},38400:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},28491:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler
1=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var o=n(37213);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}});var a=n(41960);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return a.ConnectableObservable}});var u=n(29799);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return u.observable}});var s=n(80671);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return s.animationFrames}});var c=n(57159);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return c.Subject}});var l=n(47231);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var f=n(25597);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var h=n(31081);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return h.AsyncSubject}});var d=n(73442);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return d.asapScheduler}});var p=n(87464);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return p.asyncScheduler}});var v=n(99144);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var y=n(16209);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return y.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return y.animationFrameScheduler}});var m=n(48625);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var g=n(67952);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return g.Scheduler}});var b=n(8818);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return b.Subscription}});var w=n(75583);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var _=n(65034);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return _.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return _.NotificationKind}});var x=n(2265);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return x.pipe}});var k=n(78415);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return k.noop}});var C=n(71973);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return C.identity}});var S=n(29876);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return S.isObservable}});var E=n(31788);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return E.lastV
1alueFrom}});var A=n(56124);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return A.firstValueFrom}});var O=n(70163);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return O.ArgumentOutOfRangeError}});var D=n(65682);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return D.EmptyError}});var I=n(93384);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return I.NotFoundError}});var T=n(6291);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return T.ObjectUnsubscribedError}});var M=n(96882);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return M.SequenceError}});var P=n(2883);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return P.TimeoutError}});var R=n(87297);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return R.UnsubscriptionError}});var F=n(79729);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return F.bindCallback}});var N=n(11168);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return N.bindNodeCallback}});var j=n(32101);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return j.combineLatest}});var L=n(12478);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return L.concat}});var B=n(54109);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return B.connectable}});var V=n(8656);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return V.defer}});var W=n(15514);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return W.empty}});var U=n(76098);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return U.forkJoin}});var z=n(39245);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return z.from}});var q=n(58641);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return q.fromEvent}});var H=n(30737);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return H.fromEventPattern}});var G=n(67370);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return G.generate}});var K=n(35912);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return K.iif}});var Y=n(56837);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return Y.interval}});var $=n(61598);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return $.merge}});var Z=n(48731);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Z.never}});var Q=n(60645);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return Q.of}});var X=n(2256);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return X.onErrorResumeNext}});var J=n(18993);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return J.pairs}});var ee=n(32007);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=n(81560);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var ne=n(91757);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return ne.range}});var re=n(38937);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ie=n(19220);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var oe=n(54780);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return oe.using}});var ae=n(93973);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ae.zip}});var ue=n(76156);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ue.scheduled}});var se=n(15514);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return se.EMPTY}});var ce=n(48731);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),i(n(81970),t);var le=n(72289);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return le.config}});var fe=n(52824);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return fe.audit}});var he=n(85152);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return he.auditTime}});var de=n(98163);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return de.buffer}});var pe=n(32708);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return pe.bufferCount}});var ve=n(5793);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var ye=n(23559);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ye.bufferToggle}});var me=n(54061);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return me.bufferWhen}});var ge=n(47859);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ge.catchError}});var be=n(44144);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return be.combineAll}});var we=n(71220);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var _e=n(65953);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return _e.combineLatestWith}});var xe=n(52737);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return xe.concatAll}});var ke=n(19158);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return ke.concatMap}});var Ce=n(97436);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Ce.concatMapTo}});var Se=n(66545);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Se.concatWith}});var Ee=n(37661);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Ee.connect}});var Ae=n(95750);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return Ae.count}});var Oe=n(83890);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Oe.debounce}});var De=n(232);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return De.debounceTime}});var Ie=n(3785);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Ie.defaultIfEmpty}});var Te=n(46816);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Te.delay}});var Me=n(55910);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Me.delayWhen}});var Pe=n(37933);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Pe.dematerialize}});var Re=n(40665);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Re.distinct}});var Fe=n(30973);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Fe.distinctUntilChanged}});var Ne=n(44334);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Ne.distinctUntilKeyChanged}});var je=n(39189);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return je.elementAt}});var Le=n(24354);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Le.endWith}});var Be=n(82900);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Be.every}});var Ve=n(23281);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return Ve.exhaust}});var We=n(24042);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return We.exhaustAll}});var Ue=n(87557);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return Ue.exhaustMap}});
1var ze=n(24362);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return ze.expand}});var qe=n(91158);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return qe.filter}});var He=n(22282);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return He.finalize}});var Ge=n(32381);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Ge.find}});var Ke=n(96006);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return Ke.findIndex}});var Ye=n(75734);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Ye.first}});var $e=n(6076);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return $e.groupBy}});var Ze=n(25315);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Ze.ignoreElements}});var Qe=n(21900);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Qe.isEmpty}});var Xe=n(20109);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Xe.last}});var Je=n(71905);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Je.map}});var et=n(22775);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=n(66402);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var nt=n(79011);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return nt.max}});var rt=n(24789);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var it=n(96064);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var ot=n(53320);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var at=n(72573);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return at.mergeMapTo}});var ut=n(4225);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ut.mergeScan}});var st=n(76469);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return st.mergeWith}});var ct=n(30377);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ct.min}});var lt=n(81693);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return lt.multicast}});var ft=n(20384);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}});var ht=n(53072);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return ht.onErrorResumeNextWith}});var dt=n(66010);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return dt.pairwise}});var pt=n(69708);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var vt=n(45612);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return vt.publish}});var yt=n(25964);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return yt.publishBehavior}});var mt=n(67031);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return mt.publishLast}});var gt=n(1553);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return gt.publishReplay}});var bt=n(17894);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return bt.raceWith}});var wt=n(58520);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var _t=n(39346);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return _t.repeat}});var xt=n(24397);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return xt.repeatWhen}});var kt=n(14165);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return kt.retry}});var Ct=n(53634);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Ct.retryWhen}});var St=n(2479);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return St.refCount}});var Et=n(79200);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Et.sample}});var At=n(54507);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return At.sampleTime}});var Ot=n(29771);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Ot.scan}});var Dt=n(53220);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Dt.sequenceEqual}});var It=n(57601);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return It.share}});var Tt=n(81590);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var Mt=n(47437);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Mt.single}});var Pt=n(44552);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Pt.ski
1p}});var Rt=n(22586);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Rt.skipLast}});var Ft=n(99182);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Nt=n(56806);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Nt.skipWhile}});var jt=n(86143);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return jt.startWith}});var Lt=n(88554);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Lt.subscribeOn}});var Bt=n(49381);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Vt=n(97660);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Vt.switchMap}});var Wt=n(83738);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Wt.switchMapTo}});var Ut=n(72834);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var zt=n(74150);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return zt.take}});var qt=n(96544);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Ht=n(41281);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Ht.takeUntil}});var Gt=n(64406);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Gt.takeWhile}});var Kt=n(71139);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Kt.tap}});var Yt=n(93095);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var $t=n(88098);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return $t.throttleTime}});var Zt=n(45423);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Zt.throwIfEmpty}});var Qt=n(64938);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Qt.timeInterval}});var Xt=n(2883);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Jt=n(76917);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Jt.timeoutWith}});var en=n(51109);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return en.timestamp}});var tn=n(4773);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tn.toArray}});var nn=n(6586);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return nn.window}});var rn=n(1179);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return rn.windowCount}});var on=n(18138);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return on.windowTime}});var an=n(38962);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return an.windowToggle}});var un=n(17444);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return un.windowWhen}});var sn=n(85952);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return sn.withLatestFrom}});var cn=n(68150);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return cn.zipAll}});var ln=n(61779);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return ln.zipWith}})},31081:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t._hasValue,r=t._value,i=t.isStopped,o=t._isComplete;t.hasError?e.error(t.thrownError):(i||o)&&(n&&e.next(r),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(n(57159).Subject);t.AsyncSubject=o},47231:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e._value;if(e.hasError)throw e.thrownError;return this._throwIfClosed(),t},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(57159).Subject);t.BehaviorSubject=o},65034:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var r,i=n(15514),o=n(60645),a=n(38937),u=n(60498);(r=t.NotificationKind||(t.NotificationKind={})).NEXT="N",r.ERROR="E",r.COMPLETE="C";var s=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.error;return"N"===i?null==e?void 0:e(r.value):"E"===i?null==t?void 0:t(o):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return u.isFunction(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.error,r="N"===t?o.of(e.value):"E"===t?a.throwError(function(){return n}):"C"===t?i.EMPTY:0;if(!r)throw new TypeError("Unexpected notification kind "+t);return r},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var n,r,i,o=e.kind,a=e.value,u=e.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(n=t.next)||void 0===n||n.call(t,a):"E"===o?null===(r=t.error)||void 0===r||r.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=s,t.observeNotification=c},39808:function(e,t){"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},37213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var r=n(75583),i=n(8818),o=n(29799),a=n(2265),u=n(72289),s=n(60498),c=n(7410),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this,a=function(e){return e&&e instanceof r.Subscriber||function(e){return e&&s.isFunction(e.next)&&s.isFunction(e.error)&&s.isFunction(e.complete)}(e)&&i.isSubscription(e)}(e)?e:new r.SafeSubscriber(e,t,n);return c.errorContext(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))(function(t,i){var o=new r.SafeSubscriber({next:function(t){try{e(t)}catch(n){i(n),o.unsubscribe()}},error:i,complete:t});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function f(e){var t;return null!==(t=null!=e?e:u.config.Promise)&&void 0!==t?t:Promise}t.Observable=l},25597:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
vendor: 10,972 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var o=n(57159),a=n(63184),u=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=a.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return i(t,e),t.prototype.next=function(t){var n=this,r=n._buffer,i=n._infiniteTimeWindow,o=n._timestampProvider,a=n._windowTime;n.isStopped||(r.push(t),!i&&r.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),u=0,s=1;s<r.length&&r[s]<=a;s+=2)u=s;u&&r.splice(0,u+1)}},t}(o.Subject);t.ReplaySubject=u},67952:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var r=n(63184),i=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=r.dateTimestampProvider.now,e}();t.Scheduler=i},57159:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var a=n(37213),u=n(8818),s=n(6291),c=n(66004),l=n(7410),f=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new s.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=o(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;l.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;l.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.observers;return n.hasError||n.isStopped?u.EMPTY_SUBSCRIPTION:(this.currentObservers=null,r.push(e),new u.Subscription(function(){t.currentObservers=null,c.arrRemove(r,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.isStopped;t.hasError?e.error(t.thrownError):n&&e.complete()},t.prototype.asObservable=function(){var e=new a.Observable;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(a.Observable);t.Subject=f;var h=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:u.EMPTY_SUBSCRIPTION},t}(f);t.AnonymousSubject=h},75583:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var o=n(60498),a=n(8818),u=n(72289),s=n(44242),c=n(78415),l=n(39808),f=n(9303),h=n(7410),d=function(e){function n(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,a.isSubscription(n)&&n.add(r)):r.destination=t.EMPTY_OBSERVER,r}return i(n,e),n.create=function(e,t,n){return new m(e,t,n)},n.prototype.next=function(e){this.isStopped?b(l.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?b(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?b(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(a.Subscription);t.Subscriber=d;var p=Function.prototype.bind;function v(e,t){return p.call(e,t)}var y=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){g(n)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){g(n)}else g(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){g(t)}},e}(),m=function(e){function t(t,n,r){var i,a,s=e.call(this)||this;return o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&u.config.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&v(t.next,a),error:t.error&&v(t.error,a),complete:t.complete&&v(t.complete,a)}):i=t,s.destination=new y(i),s}return i(t,e),t}(d);function g(e){u.config.useDeprecatedSynchronousErrorHandling?h.captureError(e):s.reportUnhandledError(e)}function b(e,t){var n=u.config.onStoppedNotification;n&&f.timeoutProvider.setTimeout(function(){return n(e,t)})}t.SafeSubscriber=m,t.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}},8818:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var a=n(60498),u=n(87297),s=n(66004),c=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,s,c;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var h=r(f),d=h.next();!d.done;d=h.next())d.value.remove(this)}catch(b){e={error:b}}finally{try{d&&!d.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}else f.remove(this);var p=this.initialTeardown;if(a.isFunction(p))try{p()}catch(b){c=b instanceof u.UnsubscriptionError?b.errors:[b]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var y=r(v),m=y.next();!m.done;m=y.next()){var g=m.value;try{l(g)}catch(b){c=null!=c?c:[],b instanceof u.UnsubscriptionError?c=o(o([],i(c)),i(b.errors)):c.push(b)}}}catch(b){n={error:b}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(n)throw n.error}}}if(c)throw new u.UnsubscriptionError(c)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&s.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&s.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e;var t}();function l(e){a.isFunction(e)?e():e.unsubscribe()}t.Subscription=c,t.EMPTY_SUBSCRIPTION=c.EMPTY,t.isSubscription=function(e){return e instanceof c||e&&"closed"in e&&a.isFunction(e.remove)&&a.isFunction(e.add)&&a.isFunction(e.unsubscribe)}},72289:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},56124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var r=n(65682),i=n(75583);t.firstValueFrom=function(e,t){var n="object"==typeof t;return new Promise(function(o,a){var u=new i.SafeSubscriber({next:function(e){o(e),u.unsubscribe()},error:a,complete:function(){n?o(t.defaultValue):a(new r.EmptyError)}});e.subscribe(u)})}},31788:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var r=n(65682);t.lastValueFrom=function(e,t){var n="object"==typeof t;return new Promise(function(i,o){var a,u=!1;e.subscribe({next:function(e){a=e,u=!0},error:o,complete:function(){u?i(a):n?i(t.defaultValue):o(new r.EmptyError)}})})}},41960:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var o=n(37213),a=n(8818),u=n(2479),s=n(17842),c=n(77356),l=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,c.hasLift(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new a.Subscription;var n=this.getSubject();t.add(this.source.subscribe(s.createOperatorSubscriber(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=a.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return u.refCount()(this)},t}(o.Observable);t.ConnectableObservable=l},79729:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var r=n(10850);t.bindCallback=function(e,t,n){return r.bindCallbackInternals(!1,e,t,n)}},10850:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var o=n(84509),a=n(37213),u=n(88554),s=n(1278),c=n(20384),l=n(31081);t.bindCallbackInternals=function e(t,n,f,h){if(f){if(!o.isScheduler(f))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e(t,n,h).apply(this,r).pipe(s.mapOneOrManyArgs(f))};h=f}return h?function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e(t,n).apply(this,r).pipe(u.subscribeOn(h),c.observeOn(h))}:function(){for(var e=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var s=new l.AsyncSubject,c=!0;return new a.Observable(function(a){var u=s.subscribe(a);if(c){c=!1;var l=!1,f=!1;n.apply(e,i(i([],r(o)),[function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=e.shift();if(null!=r)return void s.error(r)}s.next(1<e.length?e:e[0]),f=!0,l&&s.complete()}])),f&&s.complete(),l=!0}return u})}}},11168:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var r=n(10850);t.bindNodeCallback=function(e,t,n){return r.bindCallbackInternals(!0,e,t,n)}},32101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var r=n(37213),i=n(89797),o=n(39245),a=n(71973),u=n(1278),s=n(54743),c=n(60297),l=n(17842),f=n(35488);function h(e,t,n){return void 0===n&&(n=a.identity),function(r){d(t,function(){for(var i=e.length,a=new Array(i),u=i,s=i,c=function(i){d(t,function(){var c=o.from(e[i],t),f=!1;c.subscribe(l.createOperatorSubscriber(r,function(e){a[i]=e,f||(f=!0,s--),s||r.next(n(a.slice()))},function(){--u||r.complete()}))},r)},f=0;f<i;f++)c(f)},r)}}function d(e,t,n){e?f.executeSchedule(n,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.popScheduler(e),l=s.popResultSelector(e),f=i.argsArgArrayOrObject(e),d=f.args,p=f.keys;if(0===d.length)return o.from([],n);var v=new r.Observable(h(d,n,p?function(e){return c.createObject(p,e)}:a.identity));return l?v.pipe(u.mapOneOrManyArgs(l)):v},t.combineLatestInit=h},12478:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var r=n(52737),i=n(54743),o=n(39245);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.concatAll()(o.from(e,i.popScheduler(e)))}},54109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var r=n(57159),i=n(37213),o=n(8656),a={connector:function(){return new r.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=a);var n=null,r=t.connector,u=t.resetOnDisconnect,s=void 0===u||u,c=r(),l=new i.Observable(function(e){return c.subscribe(e)});return l.connect=function(){return(!n||n.closed)&&(n=o.defer(function(){return e}).subscribe(c),s&&n.add(function(){return c=r()})),n},l}},8656:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var r=n(37213),i=n(63345);t.defer=function(e){return new r.Observable(function(t){i.innerFrom(e()).subscribe(t)})}},80671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var r=n(37213),i=n(81153),o=n(71122);function a(e){return new r.Observable(function(t){var n=e||i.performanceTimestampProvider,r=n.now(),a=0,u=function(){t.closed||(a=o.animationFrameProvider.requestAnimationFrame(function(i){a=0;var o=n.now();t.next({timestamp:e?o:i,elapsed:o-r}),u()}))};return u(),function(){a&&o.animationFrameProvider.cancelAnimationFrame(a)}})}t.animationFrames=function(e){return e?a(e):u};var u=a()},15514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var r=n(37213);t.EMPTY=new r.Observable(function(e){return e.complete()}),t.empty=function(e){return e?function(e){return new r.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):t.EMPTY}},76098:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var r=n(37213),i=n(89797),o=n(63345),a=n(54743),u=n(17842),s=n(1278),c=n(60297);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.popResultSelector(e),l=i.argsArgArrayOrObject(e),f=l.args,h=l.keys,d=new r.Observable(function(e){var t=f.length;if(t)for(var n=new Array(t),r=t,i=t,a=function(t){var a=!1;o.innerFrom(f[t]).subscribe(u.createOperatorSubscriber(e,function(e){a||(a=!0,i--),n[t]=e},function(){return r--},void 0,function(){(!r||!a)&&(i||e.next(h?c.createObject(h,n):n),e.complete())}))},s=0;s<t;s++)a(s);else e.complete()});return n?d.pipe(s.mapOneOrManyArgs(n)):d}},39245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var r=n(76156),i=n(63345);t.from=function(e,t){return t?r.scheduled(e,t):i.innerFrom(e)}},58641:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};
1Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=n(63345),o=n(37213),a=n(53320),u=n(15730),s=n(60498),c=n(1278),l=["addListener","removeListener"],f=["addEventListener","removeEventListener"],h=["on","off"];function d(e,t){return function(n){return function(r){return e[n](t,r)}}}t.fromEvent=function e(t,n,p,v){if(s.isFunction(p)&&(v=p,p=void 0),v)return e(t,n,p).pipe(c.mapOneOrManyArgs(v));var y=r(function(e){return s.isFunction(e.addEventListener)&&s.isFunction(e.removeEventListener)}(t)?f.map(function(e){return function(r){return t[e](n,r,p)}}):function(e){return s.isFunction(e.addListener)&&s.isFunction(e.removeListener)}(t)?l.map(d(t,n)):function(e){return s.isFunction(e.on)&&s.isFunction(e.off)}(t)?h.map(d(t,n)):[],2),m=y[0],g=y[1];if(!m&&u.isArrayLike(t))return a.mergeMap(function(t){return e(t,n,p)})(i.innerFrom(t));if(!m)throw new TypeError("Invalid event target");return new o.Observable(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return m(t),function(){return g(t)}})}},30737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var r=n(37213),i=n(60498),o=n(1278);t.fromEventPattern=function e(t,n,a){return a?e(t,n).pipe(o.mapOneOrManyArgs(a)):new r.Observable(function(e){var r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)},o=t(r);return i.isFunction(n)?function(){return n(r,o)}:void 0})}},4061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var r=n(37213);t.fromSubscribable=function(e){return new r.Observable(function(t){return e.subscribe(t)})}},67370:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var i=n(71973),o=n(84509),a=n(8656),u=n(2798);t.generate=function(e,t,n,s,c){var l,f,h,d;function p(){var e;return r(this,function(r){switch(r.label){case 0:e=d,r.label=1;case 1:return!t||t(e)?[4,h(e)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(d=(l=e).initialState,t=l.condition,n=l.iterate,h=void 0===(f=l.resultSelector)?i.identity:f,c=l.scheduler):(d=e,!s||o.isScheduler(s)?(h=i.identity,c=s):h=s),a.defer(c?function(){return u.scheduleIterable(p(),c)}:p)}},35912:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var r=n(8656);t.iif=function(e,t,n){return r.defer(function(){return e()?t:n})}},63345:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){e.done?i(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof a?a(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var u=n(15730),s=n(80627),c=n(37213),l=n(51253),f=n(12492),h=n(19543),d=n(91026),p=n(43569),v=n(60498),y=n(44242),m=n(29799);function g(e){return new c.Observable(function(t){var n=e[m.observable]();if(v.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function b(e){return new c.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function w(e){return new c.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,y.reportUnhandledError)})}function _(e){return new c.Observable(function(t){var n,r;try{for(var i=a(e),o=i.next();!o.done;o=i.next())if(t.next(o.value),t.closed)return}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function x(e){return new c.Observable(function(t){(function(e,t){var n,a,u,s;return r(this,void 0,void 0,function(){var r;return i(this,function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),n=o(e),i.label=1;case 1:return[4,n.next()];case 2:if((a=i.sent()).done)return[3,4];if(t.next(a.value),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return r=i.sent(),u={error:r},[3,11];case 6:return i.trys.push([6,,9,10]),a&&!a.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function k(e){return x(p.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof c.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return g(e);if(u.isArrayLike(e))return b(e);if(s.isPromise(e))return w(e);if(f.isAsyncIterable(e))return x(e);if(d.isIterable(e))return _(e);if(p.isReadableStreamLike(e))return k(e)}throw h.createInvalidObservableTypeError(e)},t.fromInteropObservable=g,t.fromArrayLike=b,t.fromPromise=w,t.fromIterable=_,t.fromAsyncIterable=x,t.fromReadableStreamLike=k},56837:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=n(87464),i=n(19220);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},61598:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var r=n(24789),i=n(63345),o=n(15514),a=n(54743),u=n(39245);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.popScheduler(e),s=a.popNumber(e,1/0),c=e;return c.length?1===c.length?i.innerFrom(c[0]):r.mergeAll(s)(u.from(c,n)):o.EMPTY}},48731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var r=n(37213),i=n(78415);t.NEVER=new r.Observable(i.noop),t.never=function(){return t.NEVER}},60645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var r=n(54743),i=n(39245);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.popScheduler(e);return i.from(e,n)}},2256:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var r=n(37213),i=n(7321),o=n(17842),a=n(78415),u=n(63345);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.argsOrArgArray(e);return new r.Observable(function(e){var t=0,r=function(){if(t<n.length){var i=void 0;try{i=u.innerFrom(n[t++])}catch(c){return void r()}var s=new o.OperatorSubscriber(e,void 0,a.noop,a.noop);i.subscribe(s),s.add(r)}else e.complete()};r()})}},18993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var r=n(39245);t.pairs=function(e,t){return r.from(Object.entries(e),t)}},32007:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=n(12885),i=n(91158),o=n(63345);t.partition=function(e,t,n){return[i.filter(t,n)(o.innerFrom(e)),i.filter(r.not(t,n))(o.innerFrom(e))]}},81560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var r=n(37213),i=n(63345),o=n(7321),a=n(17842);function u(e){return function(t){for(var n=[],r=function(r){n.push(i.innerFrom(e[r]).subscribe(a.createOperatorSubscriber(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?i.innerFrom(e[0]):new r.Observable(u(e))},t.raceInit=u},91757:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var r=n(37213),i=n(15514);t.range=function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var o=t+e;return new r.Observable(n?function(t){var r=e;return n.schedule(function(){r<o?(t.next(r++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<o&&!t.closed;)t.next(n++);t.complete()})}},38937:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var r=n(37213),i=n(60498);t.throwError=function(e,t){var n=i.isFunction(e)?e:function(){return e},o=function(e){return e.error(n())};return new r.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},19220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var r=n(37213),i=n(87464),o=n(84509),a=n(9321);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.async);var u=-1;return null!=t&&(o.isScheduler(t)?n=t:u=t),new r.Observable(function(t){var r=a.isValidDate(e)?+e-n.now():e;r<0&&(r=0);var i=0;return n.schedule(function(){t.closed||(t.next(i++),0<=u?this.schedule(void 0,u):t.complete())},r)})}},54780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var r=n(37213),i=n(63345),o=n(15514);t.using=function(e,t){return new r.Observable(function(n){var r=e(),a=t(r);return(a?i.innerFrom(a):o.EMPTY).subscribe(n),function(){r&&r.unsubscribe()}})}},93973:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};
1Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=n(37213),a=n(63345),u=n(7321),s=n(15514),c=n(17842),l=n(54743);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e),f=u.argsOrArgArray(e);return f.length?new o.Observable(function(e){var t=f.map(function(){return[]}),o=f.map(function(){return!1});e.add(function(){t=o=null});for(var u=function(u){a.innerFrom(f[u]).subscribe(c.createOperatorSubscriber(e,function(a){if(t[u].push(a),t.every(function(e){return e.length})){var s=t.map(function(e){return e.shift()});e.next(n?n.apply(void 0,i([],r(s))):s),t.some(function(e,t){return!e.length&&o[t]})&&e.complete()}},function(){o[u]=!0,!t[u].length&&e.complete()}))},s=0;!e.closed&&s<f.length;s++)u(s);return function(){t=o=null}}):s.EMPTY}},17842:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var o=n(75583);t.createOperatorSubscriber=function(e,t,n,r,i){return new a(e,t,n,r,i)};var a=function(e){function t(t,n,r,i,o,a){var u=e.call(this,t)||this;return u.onFinalize=o,u.shouldUnsubscribe=a,u._next=n?function(e){try{n(e)}catch(r){t.error(r)}}:e.prototype._next,u._error=i?function(e){try{i(e)}catch(n){t.error(n)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(o.Subscriber);t.OperatorSubscriber=a},52824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var r=n(77356),i=n(63345),o=n(17842);t.audit=function(e){return r.operate(function(t,n){var r=!1,a=null,u=null,s=!1,c=function(){if(null==u||u.unsubscribe(),u=null,r){r=!1;var e=a;a=null,n.next(e)}s&&n.complete()},l=function(){u=null,s&&n.complete()};t.subscribe(o.createOperatorSubscriber(n,function(t){r=!0,a=t,u||i.innerFrom(e(t)).subscribe(u=o.createOperatorSubscriber(n,c,l))},function(){s=!0,(!r||!u||u.closed)&&n.complete()}))})}},85152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var r=n(87464),i=n(52824),o=n(19220);t.auditTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.audit(function(){return o.timer(e,t)})}},98163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var r=n(77356),i=n(78415),o=n(17842),a=n(63345);t.buffer=function(e){return r.operate(function(t,n){var r=[];return t.subscribe(o.createOperatorSubscriber(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),a.innerFrom(e).subscribe(o.createOperatorSubscriber(n,function(){var e=r;r=[],n.next(e)},i.noop)),function(){r=null}})}},32708:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=n(77356),o=n(17842),a=n(66004);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate(function(n,i){var u=[],s=0;n.subscribe(o.createOperatorSubscriber(i,function(n){var o,c,l,f,h=null;s++%t==0&&u.push([]);try{for(var d=r(u),p=d.next();!p.done;p=d.next())(m=p.value).push(n),e<=m.length&&(h=null!=h?h:[]).push(m)}catch(g){o={error:g}}finally{try{p&&!p.done&&(c=d.return)&&c.call(d)}finally{if(o)throw o.error}}if(h)try{for(var v=r(h),y=v.next();!y.done;y=v.next()){var m;a.arrRemove(u,m=y.value),i.next(m)}}catch(g){l={error:g}}finally{try{y&&!y.done&&(f=v.return)&&f.call(v)}finally{if(l)throw l.error}}},function(){var e,t;try{for(var n=r(u),o=n.next();!o.done;o=n.next())i.next(o.value)}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.complete()},void 0,function(){u=null}))})}},5793:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=n(8818),o=n(77356),a=n(17842),u=n(66004),s=n(87464),c=n(54743),l=n(35488);t.bufferTime=function(e){for(var t,n,f=[],h=1;h<arguments.length;h++)f[h-1]=arguments[h];var d=null!==(t=c.popScheduler(f))&&void 0!==t?t:s.asyncScheduler,p=null!==(n=f[0])&&void 0!==n?n:null,v=f[1]||1/0;return o.operate(function(t,n){var o=[],s=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),u.arrRemove(o,e),n.next(t),s&&f()},f=function(){if(o){var t=new i.Subscription;n.add(t);var r={buffer:[],subs:t};o.push(r),l.executeSchedule(t,d,function(){return c(r)},e)}};null!==p&&p>=0?l.executeSchedule(n,d,f,p,!0):s=!0,f();var h=a.createOperatorSubscriber(n,function(e){var t,n,i=o.slice();try{for(var a=r(i),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.buffer;l.push(e),v<=l.length&&c(s)}}catch(f){t={error:f}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)n.next(o.shift().buffer);null==h||h.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return o=null});t.subscribe(h)})}},23559:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=n(8818),o=n(77356),a=n(63345),u=n(17842),s=n(78415),c=n(66004);t.bufferToggle=function(e,t){return o.operate(function(n,o){var l=[];a.innerFrom(e).subscribe(u.createOperatorSubscriber(o,function(e){var n=[];l.push(n);var r=new i.Subscription;r.add(a.innerFrom(t(e)).subscribe(u.createOperatorSubscriber(o,function(){c.arrRemove(l,n),o.next(n),r.unsubscribe()},s.noop)))},s.noop)),n.subscribe(u.createOperatorSubscriber(o,function(e){var t,n;try{for(var i=r(l),o=i.next();!o.done;o=i.next())o.value.push(e)}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},function(){for(;l.length>0;)o.next(l.shift());o.complete()}))})}},54061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var r=n(77356),i=n(78415),o=n(17842),a=n(63345);t.bufferWhen=function(e){return r.operate(function(t,n){var r=null,u=null,s=function(){null==u||u.unsubscribe();var t=r;r=[],t&&n.next(t),a.innerFrom(e()).subscribe(u=o.createOperatorSubscriber(n,s,i.noop))};s(),t.subscribe(o.createOperatorSubscriber(n,function(e){return null==r?void 0:r.push(e)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=u=null}))})}},47859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var r=n(63345),i=n(17842),o=n(77356);t.catchError=function e(t){return o.operate(function(n,o){var a,u=null,s=!1;u=n.subscribe(i.createOperatorSubscriber(o,void 0,void 0,function(i){a=r.innerFrom(t(i,e(t)(n))),u?(u.unsubscribe(),u=null,a.subscribe(o)):s=!0})),s&&(u.unsubscribe(),u=null,a.subscribe(o))})}},44144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var r=n(71220);t.combineAll=r.combineLatestAll},6726:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var o=n(32101),a=n(77356),u=n(7321),s=n(1278),c=n(2265),l=n(54743);
1t.combineLatest=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var f=l.popResultSelector(t);return f?c.pipe(e.apply(void 0,i([],r(t))),s.mapOneOrManyArgs(f)):a.operate(function(e,n){o.combineLatestInit(i([e],r(u.argsOrArgArray(t))))(n)})}},71220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var r=n(32101),i=n(75247);t.combineLatestAll=function(e){return i.joinAllInternals(r.combineLatest,e)}},65953:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var o=n(6726);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.combineLatest.apply(void 0,i([],r(e)))}},59086:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var o=n(77356),a=n(52737),u=n(54743),s=n(39245);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u.popScheduler(e);return o.operate(function(t,o){a.concatAll()(s.from(i([t],r(e)),n)).subscribe(o)})}},52737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var r=n(24789);t.concatAll=function(){return r.mergeAll(1)}},19158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var r=n(53320),i=n(60498);t.concatMap=function(e,t){return i.isFunction(t)?r.mergeMap(e,t,1):r.mergeMap(e,1)}},97436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var r=n(19158),i=n(60498);t.concatMapTo=function(e,t){return i.isFunction(t)?r.concatMap(function(){return e},t):r.concatMap(function(){return e})}},66545:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var o=n(59086);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concat.apply(void 0,i([],r(e)))}},37661:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var r=n(57159),i=n(63345),o=n(77356),a=n(4061),u={connector:function(){return new r.Subject}};t.connect=function(e,t){void 0===t&&(t=u);var n=t.connector;return o.operate(function(t,r){var o=n();i.innerFrom(e(a.fromSubscribable(o))).subscribe(r),r.add(t.subscribe(o))})}},95750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var r=n(58520);t.count=function(e){return r.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}},83890:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var r=n(77356),i=n(78415),o=n(17842),a=n(63345);t.debounce=function(e){return r.operate(function(t,n){var r=!1,u=null,s=null,c=function(){if(null==s||s.unsubscribe(),s=null,r){r=!1;var e=u;u=null,n.next(e)}};t.subscribe(o.createOperatorSubscriber(n,function(t){null==s||s.unsubscribe(),r=!0,u=t,s=o.createOperatorSubscriber(n,c,i.noop),a.innerFrom(e(t)).subscribe(s)},function(){c(),n.complete()},void 0,function(){u=s=null}))})}},232:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var r=n(87464),i=n(77356),o=n(17842);t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.operate(function(n,r){var i=null,a=null,u=null,s=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,r.next(e)}};function c(){var n=u+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);s()}n.subscribe(o.createOperatorSubscriber(r,function(n){a=n,u=t.now(),i||(i=t.schedule(c,e),r.add(i))},function(){s(),r.complete()},void 0,function(){a=i=null}))})}},3785:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var r=n(77356),i=n(17842);t.defaultIfEmpty=function(e){return r.operate(function(t,n){var r=!1;t.subscribe(i.createOperatorSubscriber(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}},46816:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var r=n(87464),i=n(55910),o=n(19220);t.delay=function(e,t){void 0===t&&(t=r.asyncScheduler);var n=o.timer(e,t);return i.delayWhen(function(){return n})}},55910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var r=n(12478),i=n(74150),o=n(25315),a=n(22775),u=n(53320),s=n(63345);t.delayWhen=function e(t,n){return n?function(a){return r.concat(n.pipe(i.take(1),o.ignoreElements()),a.pipe(e(t)))}:u.mergeMap(function(e,n){return s.innerFrom(t(e,n)).pipe(i.take(1),a.mapTo(e))})}},37933:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var r=n(65034),i=n(77356),o=n(17842);t.dematerialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return r.observeNotification(e,t)}))})}},40665:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var r=n(77356),i=n(17842),o=n(78415),a=n(63345);t.distinct=function(e,t){return r.operate(function(n,r){var u=new Set;n.subscribe(i.createOperatorSubscriber(r,function(t){var n=e?e(t):t;u.has(n)||(u.add(n),r.next(t))})),t&&a.innerFrom(t).subscribe(i.createOperatorSubscriber(r,function(){return u.clear()},o.noop))})}},30973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var r=n(71973),i=n(77356),o=n(17842);function a(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=r.identity),e=null!=e?e:a,i.operate(function(n,r){var i,a=!0;n.subscribe(o.createOperatorSubscriber(r,function(n){var o=t(n);(a||!e(i,o))&&(a=!1,i=o,r.next(n))}))})}},44334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var r=n(30973);t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}},39189:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var r=n(70163),i=n(91158),o=n(45423),a=n(3785),u=n(74150);t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(s){return s.pipe(i.filter(function(t,n){return n===e}),u.take(1),n?a.defaultIfEmpty(t):o.throwIfEmpty(function(){return new r.ArgumentOutOfRangeError}))}}},24354:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var o=n(12478),a=n(60645);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return o.concat(t,a.of.apply(void 0,i([],r(e))))}}},82900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var r=n(77356),i=n(17842);t.every=function(e,t){return r.operate(function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,function(i){e.call(t,i,o++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}
1))})}},23281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var r=n(24042);t.exhaust=r.exhaustAll},24042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var r=n(87557),i=n(71973);t.exhaustAll=function(){return r.exhaustMap(i.identity)}},87557:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var r=n(71905),i=n(63345),o=n(77356),a=n(17842);t.exhaustMap=function e(t,n){return n?function(o){return o.pipe(e(function(e,o){return i.innerFrom(t(e,o)).pipe(r.map(function(t,r){return n(e,t,o,r)}))}))}:o.operate(function(e,n){var r=0,o=null,u=!1;e.subscribe(a.createOperatorSubscriber(n,function(e){o||(o=a.createOperatorSubscriber(n,void 0,function(){o=null,u&&n.complete()}),i.innerFrom(t(e,r++)).subscribe(o))},function(){u=!0,!o&&n.complete()}))})}},24362:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var r=n(77356),i=n(88101);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,r.operate(function(r,o){return i.mergeInternals(r,o,e,t,void 0,!0,n)})}},91158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var r=n(77356),i=n(17842);t.filter=function(e,t){return r.operate(function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,function(n){return e.call(t,n,o++)&&r.next(n)}))})}},22282:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var r=n(77356);t.finalize=function(e){return r.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}},32381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var r=n(77356),i=n(17842);function o(e,t,n){var r="index"===n;return function(n,o){var a=0;n.subscribe(i.createOperatorSubscriber(o,function(i){var u=a++;e.call(t,i,u,n)&&(o.next(r?u:i),o.complete())},function(){o.next(r?-1:void 0),o.complete()}))}}t.find=function(e,t){return r.operate(o(e,t,"value"))},t.createFind=o},96006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var r=n(77356),i=n(32381);t.findIndex=function(e,t){return r.operate(i.createFind(e,t,"index"))}},75734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var r=n(65682),i=n(91158),o=n(74150),a=n(3785),u=n(45423),s=n(71973);t.first=function(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?i.filter(function(t,n){return e(t,n,c)}):s.identity,o.take(1),n?a.defaultIfEmpty(t):u.throwIfEmpty(function(){return new r.EmptyError}))}}},96064:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var r=n(53320);t.flatMap=r.mergeMap},6076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var r=n(37213),i=n(63345),o=n(57159),a=n(77356),u=n(17842);t.groupBy=function(e,t,n,s){return a.operate(function(a,c){var l;t&&"function"!=typeof t?(n=t.duration,l=t.element,s=t.connector):l=t;var f=new Map,h=function(e){f.forEach(e),e(c)},d=function(e){return h(function(t){return t.error(e)})},p=0,v=!1,y=new u.OperatorSubscriber(c,function(t){try{var a=e(t),h=f.get(a);if(!h){f.set(a,h=s?s():new o.Subject);var m=function(e,t){var n=new r.Observable(function(e){p++;var n=t.subscribe(e);return function(){n.unsubscribe(),0==--p&&v&&y.unsubscribe()}});return n.key=e,n}(a,h);if(c.next(m),n){var g=u.createOperatorSubscriber(h,function(){h.complete(),null==g||g.unsubscribe()},void 0,void 0,function(){return f.delete(a)});y.add(i.innerFrom(n(m)).subscribe(g))}}h.next(l?l(t):t)}catch(b){d(b)}},function(){return h(function(e){return e.complete()})},d,function(){return f.clear()},function(){return v=!0,0===p});a.subscribe(y)})}},25315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var r=n(77356),i=n(17842),o=n(78415);t.ignoreElements=function(){return r.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))})}},21900:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var r=n(77356),i=n(17842);t.isEmpty=function(){return r.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}},75247:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var r=n(71973),i=n(1278),o=n(2265),a=n(53320),u=n(4773);t.joinAllInternals=function(e,t){return o.pipe(u.toArray(),a.mergeMap(function(t){return e(t)}),t?i.mapOneOrManyArgs(t):r.identity)}},20109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var r=n(65682),i=n(91158),o=n(96544),a=n(45423),u=n(3785),s=n(71973);t.last=function(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?i.filter(function(t,n){return e(t,n,c)}):s.identity,o.takeLast(1),n?u.defaultIfEmpty(t):a.throwIfEmpty(function(){return new r.EmptyError}))}}},71905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var r=n(77356),i=n(17842);t.map=function(e,t){return r.operate(function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,function(n){r.next(e.call(t,n,o++))}))})}},22775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var r=n(71905);t.mapTo=function(e){return r.map(function(){return e})}},66402:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var r=n(65034),i=n(77356),o=n(17842);t.materialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){t.next(r.Notification.createNext(e))},function(){t.next(r.Notification.createComplete()),t.complete()},function(e){t.next(r.Notification.createError(e)),t.complete()}))})}},79011:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var r=n(58520),i=n(60498);t.max=function(e){return r.reduce(i.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}},5613:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var o=n(77356),a=n(7321),u=n(24789),s=n(54743),c=n(39245);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.popScheduler(e),l=s.popNumber(e,1/0);return e=a.argsOrArgArray(e),o.operate(function(t,o){u.mergeAll(l)(c.from(i([t],r(e)),n)).subscribe(o)})}},24789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var r=n(53320),i=n(71973);t.mergeAll=function(e){return void 0===e&&(e=1/0),r.mergeMap(i.identity,e)}},88101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var r=n(63345),i=n(35488),o=n(17842);t.mergeInternals=function(e,t,n,a,u,s,c,l){var f=[],h=0,d=0,p=!1,v=function(){p&&!f.length&&!h&&t.complete()},y=function(e){return h<a?m(e):f.push(e)},m=function(e){s&&t.next(e),h++;var l=!1;r.innerFrom(n(e,d++)).subscribe(o.createOperatorSubscriber(t,function(e){null==u||u(e),s?y(e):t.next(e)},function(){l=!0},void 0,function(){if(l)try{h--;for(var e=function(){var e=f.shift();c?i.executeSchedule(t,c,function(){return m(e)}):m(e)};f.length&&h<a;)e();v()}catch(n){t.error(n)}}))};return e.subscribe(o.createOperatorSubscriber(t,y,function(){p=!0,v()})),function(){null==l||l()}}},53320:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var r=n(71905),i=n(63345),o=n(77356),a=n(88101),u=n(60498);t.mergeMap=function e(t,n,s){return void 0===s&&(s=1/0),u.isFunction(n)?e(function(e,o){return r.map(function(t,r){return n(e,t,o,r)})(i.innerFrom(t(e,o)))},s):("number"==typeof n&&(s=n),o.operate(function(e,n){return a.mergeInternals(e,n,t,s)}))}},72573:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var r=n(53320),i=n(60498);t.mergeMapTo=function(e,t,n){return void 0===n&&(n=1/0),i.isFunction(t)?r.mergeMap(function(){return e},t,n):("number"==typeof t&&(n=t),r.mergeMap(function(){return e},n))}},4225:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var r=n(77356),i=n(88101);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),r.operate(function(r,o){var a=t;return i.mergeInternals(r,o,function(t,n){return e(a,t,n)},n,function(e){a=e},!1,void 0,function(){return a=null})})}},76469:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var o=n(5613);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.merge.apply(void 0,i([],r(e)))}},30377:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var r=n(58520),i=n(60498);t.min=function(e){return r.reduce(i.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}},81693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var r=n(41960),i=n(60498),o=n(37661);t.multicast=function(e,t){var n=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?o.connect(t,{connector:n}):function(e){return new r.ConnectableObservable(e,n)}}},20384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var r=n(35488),i=n(77356),o=n(17842);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate(function(n,i){n.subscribe(o.createOperatorSubscriber(i,function(n){return r.executeSchedule(i,e,function(){return i.next(n)},t)},function(){return r.executeSchedule(i,e,function(){return i.complete()},t)},function(n){return r.executeSchedule(i,e,function(){return i.error(n)},t)}))})}},53072:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var o=n(7321),a=n(2256);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.argsOrArgArray(e);return function(e){return a.onErrorResumeNext.apply(void 0,i([e],r(n)))}}t.onErrorResumeNextWith=u,t.onErrorResumeNext=u},66010:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var r=n(77356),i=n(17842);t.pairwise=function(){return r.operate(function(e,t){var n,r=!1;e.subscribe(i.createOperatorSubscriber(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))})}},69708:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var r=n(71905);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return r.map(function(t){for(var r=t,i=0;i<n;i++){var o=null==r?void 0:r[e[i]];if(void 0===o)return;r=o}return r})}},45612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var r=n(57159),i=n(81693),o=n(37661);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new r.Subject)(e)}}},25964:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var r=n(47231),i=n(41960);t.publishBehavior=function(e){return function(t){var n=new r.BehaviorSubject(e);return new i.ConnectableObservable(t,function(){return n})}}},67031:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var r=n(31081),i=n(41960);t.publishLast=function(){return function(e){var t=new r.AsyncSubject;return new i.ConnectableObservable(e,function(){return t})}}},1553:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var r=n(25597),i=n(81693),o=n(60498);t.publishReplay=function(e,t,n,a){n&&!o.isFunction(n)&&(a=n);var u=o.isFunction(n)?n:void 0;return function(n){return i.multicast(new r.ReplaySubject(e,t,a),u)(n)}}},17894:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var o=n(81560),a=n(77356),u=n(71973);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?a.operate(function(t,n){o.raceInit(i([t],r(e)))(n)}):u.identity}},58520:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var r=n(12020),i=n(77356);t.reduce=function(e,t){return i.operate(r.scanInternals(e,t,arguments.length>=2,!1,!0))}},2479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var r=n(77356),i=n(17842);t.refCount=function(){return r.operate(function(e,t){var n=null;e._refCount++;var r=i.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()}});e.subscribe(r),r.closed||(n=e.connect())})}},39346:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var r=n(15514),i=n(77356),o=n(17842),a=n(63345),u=n(19220);t.repeat=function(e){var t,n,s=1/0;return null!=e&&("object"==typeof e?(s=void 0===(t=e.count)?1/0:t,n=e.delay):s=e),s<=0?function(){return r.EMPTY}:i.operate(function(e,t){var r,i=0,c=function(){if(null==r||r.unsubscribe(),r=null,null!=n){var e="number"==typeof n?u.timer(n):a.innerFrom(n(i)),s=o.createOperatorSubscriber(t,function(){s.unsubscribe(),l()});e.subscribe(s)}else l()},l=function(){var n=!1;r=e.subscribe(o.createOperatorSubscriber(t,void 0,function(){++i<s?r?c():n=!0:t.complete()})),n&&c()};l()})}},24397:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var r=n(63345),i=n(57159),o=n(77356),a=n(17842);t.repeatWhen=function(e){return o.operate(function(t,n){var o,u,s=!1,c=!1,l=!1,f=function(){return l&&c&&(n.complete(),!0)},h=function(){l=!1,o=t.subscribe(a.createOperatorSubscriber(n,void 0,function(){l=!0,!f()&&(u||(u=new i.Subject,r.innerFrom(e(u)).subscribe(a.createOperatorSubscriber(n,function(){o?h():s=!0},function(){c=!0,f()}))),u).next()})),s&&(o.unsubscribe(),o=null,s=!1,h())};h()})}},14165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var r=n(77356),i=n(17842),o=n(71973),a=n(19220),u=n(63345);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,s=void 0===n?1/0:n,c=t.delay,l=t.resetOnSuccess,f=void 0!==l&&l;return s<=0?o.identity:r.operate(function(e,t){var n,r=0,o=function(){var l=!1;n=e.subscribe(i.createOperatorSubscriber(t,function(e){f&&(r=0),t.next(e)},void 0,function(e){if(r++<s){var f=function(){n?(n.unsubscribe(),n=null,o()):l=!0};if(null!=c){var h="number"==typeof c?a.timer(c):u.innerFrom(c(e,r)),d=i.createOperatorSubscriber(t,function(){d.unsubscribe(),f()},function(){t.complete()});h.subscribe(d)}else f()}else t.error(e)})),l&&(n.unsubscribe(),n=null,o())};o()})}},53634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var r=n(63345),i=n(57159),o=n(77356),a=n(17842);t.retryWhen=function(e){return o.operate(function(t,n){var o,u,s=!1,c=function(){o=t.subscribe(a.createOperatorSubscriber(n,void 0,void 0,function(t){u||(u=new i.Subject,r.innerFrom(e(u)).subscribe(a.createOperatorSubscriber(n,function(){return o?c():s=!0}))),u&&u.next(t)})),s&&(o.unsubscribe(),o=null,s=!1,c())};c()})}},79200:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var r=n(63345),i=n(77356),o=n(78415),a=n(17842);t.sample=function(e){return i.operate(function(t,n){var i=!1,u=null;t.subscribe(a.createOperatorSubscriber(n,function(e){i=!0,u=e})),r.innerFrom(e).subscribe(a.createOperatorSubscriber(n,function(){if(i){i=!1;var e=u;u=null,n.next(e)}},o.noop))})}},54507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var r=n(87464),i=n(79200),o=n(56837);t.sampleTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.sample(o.interval(e,t))}},29771:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var r=n(77356),i=n(12020);t.scan=function(e,t){return r.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},12020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var r=n(17842);t.scanInternals=function(e,t,n,i,o){return function(a,u){var s=n,c=t,l=0;a.subscribe(r.createOperatorSubscriber(u,function(t){var n=l++;c=s?e(c,t,n):(s=!0,t),i&&u.next(c)},o&&function(){s&&u.next(c),u.complete()}))}}},53220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var r=n(77356),i=n(17842),o=n(63345);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),r.operate(function(n,r){var a={buffer:[],complete:!1},u={buffer:[],complete:!1},s=function(e){r.next(e),r.complete()},c=function(e,n){var o=i.createOperatorSubscriber(r,function(r){var i=n.buffer;0===i.length?n.complete?s(!1):e.buffer.push(r):!t(r,i.shift())&&s(!1)},function(){e.complete=!0,n.complete&&s(0===n.buffer.length),null==o||o.unsubscribe()});return o};n.subscribe(c(a,u)),o.innerFrom(e).subscribe(c(u,a))})}},57601:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var o=n(63345),a=n(57159),u=n(75583),s=n(77356);function c(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];if(!0!==t){if(!1!==t){var s=new u.SafeSubscriber({next:function(){s.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],r(n)))).subscribe(s)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new a.Subject}:t,r=e.resetOnError,i=void 0===r||r,l=e.resetOnComplete,f=void 0===l||l,h=e.resetOnRefCountZero,d=void 0===h||h;return function(e){var t,r,a,l=0,h=!1,p=!1,v=function(){null==r||r.unsubscribe(),r=void 0},y=function(){v(),t=a=void 0,h=p=!1},m=function(){var e=t;y(),null==e||e.unsubscribe()};return s.operate(function(e,s){l++,!p&&!h&&v();var g=a=null!=a?a:n();s.add(function(){0==--l&&!p&&!h&&(r=c(m,d))}),g.subscribe(s),!t&&l>0&&(t=new u.SafeSubscriber({next:function(e){return g.next(e)},error:function(e){p=!0,v(),r=c(y,i,e),g.error(e)},complete:function(){h=!0,v(),r=c(y,f),g.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}},81590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var r=n(25597),i=n(57601);t.shareReplay=function(e,t,n){var o,a,u,s,c=!1;return e&&"object"==typeof e?(s=void 0===(o=e.bufferSize)?1/0:o,t=void 0===(a=e.windowTime)?1/0:a,c=void 0!==(u=e.refCount)&&u,n=e.scheduler):s=null!=e?e:1/0,i.share({connector:function(){return new r.ReplaySubject(s,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},47437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var r=n(65682),i=n(96882),o=n(93384),a=n(77356),u=n(17842);t.single=function(e){return a.operate(function(t,n){var a,s=!1,c=!1,l=0;t.subscribe(u.createOperatorSubscriber(n,function(r){c=!0,(!e||e(r,l++,t))&&(s&&n.error(new i.SequenceError("Too many matching values")),s=!0,a=r)},function(){s?(n.next(a),n.complete()):n.error(c?new o.NotFoundError("No matching values"):new r.EmptyError)}))})}},44552:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var r=n(91158);t.skip=function(e){return r.filter(function(t,n){return e<=n})}},22586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var r=n(71973),i=n(77356),o=n(17842);t.skipLast=function(e){return e<=0?r.identity:i.operate(function(t,n){var r=new Array(e),i=0;return t.subscribe(o.createOperatorSubscriber(n,function(t){var o=i++;if(o<e)r[o]=t;else{var a=o%e,u=r[a];r[a]=t,n.next(u)}})),function(){r=null}})}},99182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var r=n(77356),i=n(17842),o=n(63345),a=n(78415);t.skipUntil=function(e){return r.operate(function(t,n){var r=!1,u=i.createOperatorSubscriber(n,function(){null==u||u.unsubscribe(),r=!0},a.noop);o.innerFrom(e).subscribe(u),t.subscribe(i.createOperatorSubscriber(n,function(e){return r&&n.next(e)}))})}},56806:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var r=n(77356),i=n(17842);t.skipWhile=function(e){return r.operate(function(t,n){var r=!1,o=0;t.subscribe(i.createOperatorSubscriber(n,function(t){return(r||(r=!e(t,o++)))&&n.next(t)}))})}},86143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var r=n(12478),i=n(54743),o=n(77356);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.popScheduler(e);return o.operate(function(t,i){(n?r.concat(e,t,n):r.concat(e,t)).subscribe(i)})}},88554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var r=n(77356);t.subscribeOn=function(e,t){return void 0===t&&(t=0),r.operate(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}},49381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var r=n(97660),i=n(71973);t.switchAll=function(){return r.switchMap(i.identity)}},97660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var r=n(63345),i=n(77356),o=n(17842);t.switchMap=function(e,t){return i.operate(function(n,i){var a=null,u=0,s=!1,c=function(){return s&&!a&&i.complete()};n.subscribe(o.createOperatorSubscriber(i,function(n){null==a||a.unsubscribe();var s=0,l=u++;r.innerFrom(e(n,l)).subscribe(a=o.createOperatorSubscriber(i,function(e){return i.next(t?t(n,e,l,s++):e)},function(){a=null,c()}))},function(){s=!0,c()}))})}},83738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var r=n(97660),i=n(60498);t.switchMapTo=function(e,t){return i.isFunction(t)?r.switchMap(function(){return e},t):r.switchMap(function(){return e})}},72834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var r=n(97660),i=n(77356);t.switchScan=function(e,t){return i.operate(function(n,i){var o=t;return r.switchMap(function(t,n){return e(o,t,n)},function(e,t){return o=t,t})(n).subscribe(i),function(){o=null}})}},74150:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var r=n(15514),i=n(77356),o=n(17842);t.take=function(e){return e<=0?function(){return r.EMPTY}:i.operate(function(t,n){var r=0;t.subscribe(o.createOperatorSubscriber(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}},96544:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=n(15514),o=n(77356),a=n(17842);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:o.operate(function(t,n){var i=[];t.subscribe(a.createOperatorSubscriber(n,function(t){i.push(t),e<i.length&&i.shift()},function(){var e,t;try{for(var o=r(i),a=o.next();!a.done;a=o.next())n.next(a.value)}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}n.complete()},void 0,function(){i=null}))})}},41281:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var r=n(77356),i=n(17842),o=n(63345),a=n(78415);t.takeUntil=function(e){return r.operate(function(t,n){o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,function(){return n.complete()},a.noop)),!n.closed&&t.subscribe(n)})}},64406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var r=n(77356),i=n(17842);t.takeWhile=function(e,t){return void 0===t&&(t=!1),r.operate(function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,function(n){var i=e(n,o++);(i||t)&&r.next(n),!i&&r.complete()}))})}},71139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var r=n(60498),i=n(77356),o=n(17842),a=n(71973);t.tap=function(e,t,n){var u=r.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return u?i.operate(function(e,t){var n;null===(n=u.subscribe)||void 0===n||n.call(u);var r=!0;e.subscribe(o.createOperatorSubscriber(t,function(e){var n;null===(n=u.next)||void 0===n||n.call(u,e),t.next(e)},function(){var e;r=!1,null===(e=u.complete)||void 0===e||e.call(u),t.complete()},function(e){var n;r=!1,null===(n=u.error)||void 0===n||n.call(u,e),t.error(e)},function(){var e,t;r&&(null===(e=u.unsubscribe)||void 0===e||e.call(u)),null===(t=u.finalize)||void 0===t||t.call(u)}))}):a.identity}},93095:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var r=n(77356),i=n(17842),o=n(63345);t.throttle=function(e,t){return r.operate(function(n,r){var a=null!=t?t:{},u=a.leading,s=void 0===u||u,c=a.trailing,l=void 0!==c&&c,f=!1,h=null,d=null,p=!1,v=function(){null==d||d.unsubscribe(),d=null,l&&(g(),p&&r.complete())},y=function(){d=null,p&&r.complete()},m=function(t){return d=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(r,v,y))},g=function(){if(f){f=!1;var e=h;h=null,r.next(e),!p&&m(e)}};n.subscribe(i.createOperatorSubscriber(r,function(e){f=!0,h=e,(!d||d.closed)&&(s?g():m(e))},function(){p=!0,(!(l&&f&&d)||d.closed)&&r.complete()}))})}},88098:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var r=n(87464),i=n(93095),o=n(19220);t.throttleTime=function(e,t,n){void 0===t&&(t=r.asyncScheduler);var a=o.timer(e,t);return i.throttle(function(){return a},n)}},45423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var r=n(65682),i=n(77356),o=n(17842);function a(){return new r.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=a),i.operate(function(t,n){var r=!1;t.subscribe(o.createOperatorSubscriber(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}},64938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var r=n(87464),i=n(77356),o=n(17842);t.timeInterval=function(e){return void 0===e&&(e=r.asyncScheduler),i.operate(function(t,n){var r=e.now();t.subscribe(o.createOperatorSubscriber(n,function(t){var i=e.now(),o=i-r;r=i,n.next(new a(t,o))}))})};var a=function(e,t){this.value=e,this.interval=t};t.TimeInterval=a},2883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var r=n(87464),i=n(9321),o=n(77356),a=n(63345),u=n(76157),s=n(17842),c=n(35488);function l(e){throw new t.TimeoutError(e)}t.TimeoutError=u.createErrorClass(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),t.timeout=function(e,t){var n=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,u=n.first,f=n.each,h=n.with,d=void 0===h?l:h,p=n.scheduler,v=void 0===p?null!=t?t:r.asyncScheduler:p,y=n.meta,m=void 0===y?null:y;if(null==u&&null==f)throw new TypeError("No timeout provided.");return o.operate(function(e,t){var n,r,i=null,o=0,l=function(e){r=c.executeSchedule(t,v,function(){try{n.unsubscribe(),a.innerFrom(d({meta:m,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(s.createOperatorSubscriber(t,function(e){null==r||r.unsubscribe(),o++,t.next(i=e),f>0&&l(f)},void 0,void 0,function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),i=null})),!o&&l(null!=u?"number"==typeof u?u:+u-v.now():f)})}},76917:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var r=n(87464),i=n(9321),o=n(2883);t.timeoutWith=function(e,t,n){var a,u,s;if(n=null!=n?n:r.async,i.isValidDate(e)?a=e:"number"==typeof e&&(u=e),!t)throw new TypeError("No observable provided to switch to");if(s=function(){return t},null==a&&null==u)throw new TypeError("No timeout provided.");return o.timeout({first:a,each:u,scheduler:n,with:s})}},51109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var r=n(63184),i=n(71905);t.timestamp=function(e){return void 0===e&&(e=r.dateTimestampProvider),i.map(function(t){return{value:t,timestamp:e.now()}})}},4773:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=n(58520),i=n(77356),o=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate(function(e,t){r.reduce(o,[])(e).subscribe(t)})}},6586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var r=n(57159),i=n(77356),o=n(17842),a=n(78415),u=n(63345);t.window=function(e){return i.operate(function(t,n){var i=new r.Subject;n.next(i.asObservable());var s=function(e){i.error(e),n.error(e)};return t.subscribe(o.createOperatorSubscriber(n,function(e){return null==i?void 0:i.next(e)},function(){i.complete(),n.complete()},s)),u.innerFrom(e).subscribe(o.createOperatorSubscriber(n,function(){i.complete(),n.next(i=new r.Subject)},a.noop,s)),function(){null==i||i.unsubscribe(),i=null}})}},1179:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=n(57159),o=n(77356),a=n(17842);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return o.operate(function(t,o){var u=[new i.Subject],s=0;o.next(u[0].asObservable()),t.subscribe(a.createOperatorSubscriber(o,function(t){var a,c;try{for(var l=r(u),f=l.next();!f.done;f=l.next())f.value.next(t)}catch(p){a={error:p}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(a)throw a.error}}var h=s-e+1;if(h>=0&&h%n==0&&u.shift().complete(),++s%n==0){var d=new i.Subject;u.push(d),o.next(d.asObservable())}},function(){for(;u.length>0;)u.shift().complete();o.complete()},function(e){for(;u.length>0;)u.shift().error(e);o.error(e)},function(){u=null}))})}},18138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var r=n(57159),i=n(87464),o=n(8818),a=n(77356),u=n(17842),s=n(66004),c=n(54743),l=n(35488);t.windowTime=function(e){for(var t,n,f=[],h=1;h<arguments.length;h++)f[h-1]=arguments[h];var d=null!==(t=c.popScheduler(f))&&void 0!==t?t:i.asyncScheduler,p=null!==(n=f[0])&&void 0!==n?n:null,v=f[1]||1/0;return a.operate(function(t,n){var i=[],a=!1,c=function(e){var t=e.subs;e.window.complete(),t.unsubscribe(),s.arrRemove(i,e),a&&f()},f=function(){if(i){var t=new o.Subscription;n.add(t);var a=new r.Subject,u={window:a,subs:t,seen:0};i.push(u),n.next(a.asObservable()),l.executeSchedule(t,d,function(){return c(u)},e)}};null!==p&&p>=0?l.executeSchedule(n,d,f,p,!0):a=!0,f();var h=function(e){return i.slice().forEach(e)},y=function(e){h(function(t){return e(t.window)}),e(n),n.unsubscribe()};return t.subscribe(u.createOperatorSubscriber(n,function(e){h(function(t){t.window.next(e),v<=++t.seen&&c(t)})},function(){return y(function(e){return e.complete()})},function(e){return y(function(t){return t.error(e)})})),function(){i=null}})}},38962:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};
1Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=n(57159),o=n(8818),a=n(77356),u=n(63345),s=n(17842),c=n(78415),l=n(66004);t.windowToggle=function(e,t){return a.operate(function(n,a){var f=[],h=function(e){for(;0<f.length;)f.shift().error(e);a.error(e)};u.innerFrom(e).subscribe(s.createOperatorSubscriber(a,function(e){var n=new i.Subject;f.push(n);var r,d=new o.Subscription;try{r=u.innerFrom(t(e))}catch(p){return void h(p)}a.next(n.asObservable()),d.add(r.subscribe(s.createOperatorSubscriber(a,function(){l.arrRemove(f,n),n.complete(),d.unsubscribe()},c.noop,h)))},c.noop)),n.subscribe(s.createOperatorSubscriber(a,function(e){var t,n,i=f.slice();try{for(var o=r(i),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;0<f.length;)f.shift().complete();a.complete()},h,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}},17444:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var r=n(57159),i=n(77356),o=n(17842),a=n(63345);t.windowWhen=function(e){return i.operate(function(t,n){var i,u,s=function(e){i.error(e),n.error(e)},c=function(){var t;null==u||u.unsubscribe(),null==i||i.complete(),i=new r.Subject,n.next(i.asObservable());try{t=a.innerFrom(e())}catch(l){return void s(l)}t.subscribe(u=o.createOperatorSubscriber(n,c,c,s))};c(),t.subscribe(o.createOperatorSubscriber(n,function(e){return i.next(e)},function(){i.complete(),n.complete()},s,function(){null==u||u.unsubscribe(),i=null}))})}},85952:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var o=n(77356),a=n(17842),u=n(63345),s=n(71973),c=n(78415),l=n(54743);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e);return o.operate(function(t,o){for(var l=e.length,f=new Array(l),h=e.map(function(){return!1}),d=!1,p=function(t){u.innerFrom(e[t]).subscribe(a.createOperatorSubscriber(o,function(e){f[t]=e,!d&&!h[t]&&(h[t]=!0,(d=h.every(s.identity))&&(h=null))},c.noop))},v=0;v<l;v++)p(v);t.subscribe(a.createOperatorSubscriber(o,function(e){if(d){var t=i([e],r(f));o.next(n?n.apply(void 0,i([],r(t))):t)}}))})}},70661:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=n(93973),a=n(77356);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.operate(function(t,n){o.zip.apply(void 0,i([t],r(e))).subscribe(n)})}},68150:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var r=n(93973),i=n(75247);t.zipAll=function(e){return i.joinAllInternals(r.zip,e)}},61779:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var o=n(70661);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.zip.apply(void 0,i([],r(e)))}},90396:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var r=n(37213);t.scheduleArray=function(e,t){return new r.Observable(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}},89728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var r=n(37213),i=n(35488);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable(function(n){i.executeSchedule(n,t,function(){var r=e[Symbol.asyncIterator]();i.executeSchedule(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}},2798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var r=n(37213),i=n(4867),o=n(60498),a=n(35488);t.scheduleIterable=function(e,t){return new r.Observable(function(n){var r;return a.executeSchedule(n,t,function(){r=e[i.iterator](),a.executeSchedule(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(o){return void n.error(o)}i?n.complete():n.next(t)},0,!0)}),function(){return o.isFunction(null==r?void 0:r.return)&&r.return()}})}},64574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var r=n(63345),i=n(20384),o=n(88554);t.scheduleObservable=function(e,t){return r.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},5869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var r=n(63345),i=n(20384),o=n(88554);t.schedulePromise=function(e,t){return r.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},93188:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var r=n(89728),i=n(43569);t.scheduleReadableStreamLike=function(e,t){return r.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},76156:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var r=n(64574),i=n(5869),o=n(90396),a=n(2798),u=n(89728),s=n(51253),c=n(80627),l=n(15730),f=n(91026),h=n(12492),d=n(19543),p=n(43569),v=n(93188);t.scheduled=function(e,t){if(null!=e){if(s.isInteropObservable(e))return r.scheduleObservable(e,t);if(l.isArrayLike(e))return o.scheduleArray(e,t);if(c.isPromise(e))return i.schedulePromise(e,t);if(h.isAsyncIterable(e))return u.scheduleAsyncIterable(e,t);if(f.isIterable(e))return a.scheduleIterable(e,t);if(p.isReadableStreamLike(e))return v.scheduleReadableStreamLike(e,t)}throw d.createInvalidObservableTypeError(e)}},6467:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var o=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(8818).Subscription);t.Action=o},52476:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var o=n(26483),a=n(71122),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=a.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var o=t.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(a.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},t}(o.AsyncAction);t.AnimationFrameAction=u},38906:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
vendor: 4,641 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(81283).AsyncScheduler);t.AnimationFrameScheduler=o},54673:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var o=n(26483),a=n(35037),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=a.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var o=t.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(a.immediateProvider.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(o.AsyncAction);t.AsapAction=u},8914:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(81283).AsyncScheduler);t.AsapScheduler=o},26483:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var o=n(6467),a=n(43),u=n(66004),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),a.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&a.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(i){r=!0,n=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;
1this.work=this.state=this.scheduler=null,this.pending=!1,u.arrRemove(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);t.AsyncAction=s},81283:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var o=n(67952),a=function(e){function t(t,n){void 0===n&&(n=o.Scheduler.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o.Scheduler);t.AsyncScheduler=a},4805:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},t}(n(26483).AsyncAction);t.QueueAction=o},21542:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n(81283).AsyncScheduler);t.QueueScheduler=o},48625:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}
vendor: 1,348 bytes, line 1
1),t.VirtualAction=t.VirtualTimeScheduler=void 0;var o=n(26483),a=n(8818),u=function(e){function t(t,n){void 0===t&&(t=s),void 0===n&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(n(81283).AsyncScheduler);t.VirtualTimeScheduler=u;var s=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return a.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>
1t.index?1:-1:e.delay>t.delay?1:-1},t}(o.AsyncAction);t.VirtualAction=s},16209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var r=n(52476),i=n(38906);t.animationFrameScheduler=new i.AnimationFrameScheduler(r.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},71122:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var o=n(8818);t.animationFrameProvider={schedule:function(e){var n=requestAnimationFrame,r=cancelAnimationFrame,i=t.animationFrameProvider.delegate;i&&(n=i.requestAnimationFrame,r=i.cancelAnimationFrame);var a=n(function(t){r=void 0,e(t)});return new o.Subscription(function(){return null==r?void 0:r(a)})},requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t.animationFrameProvider.delegate;return((null==o?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],r(e)))}),cancelAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t.animationFrameProvider.delegate;return((null==o?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],r(e)))}),delegate:void 0}},73442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var r=n(54673),i=n(8914);t.asapScheduler=new i.AsapScheduler(r.AsapAction),t.asap=t.asapScheduler},87464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var r=n(26483),i=n(81283);t.asyncScheduler=new i.AsyncScheduler(r.AsyncAction),t.async=t.asyncScheduler},63184:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},35037:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var o=n(28273),a=o.Immediate.setImmediate,u=o.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t.immediateProvider.delegate;return((null==o?void 0:o.setImmediate)||a).apply(void 0,i([],r(e)))},clearImmediate:function(e){var n=t.immediateProvider.delegate;return((null==n?void 0:n.clearImmediate)||u)(e)},delegate:void 0}},43:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var u=t.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([e,i],n(o))):setInterval.apply(void 0,r([e,i],n(o)))}),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var n=t.intervalProvider.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)}),delegate:void 0}},81153:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},99144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var r=n(4805),i=n(21542);t.queueScheduler=new i.QueueScheduler(r.QueueAction),t.queue=t.queueScheduler},9303:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var u=t.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([e,i],n(o))):setTimeout.apply(void 0,r([e,i],n(o)))}),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var n=t.timeoutProvider.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)}),delegate:void 0}},4867:function(e,t){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},29799:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},81970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},70163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var r=n(76157);t.ArgumentOutOfRangeError=r.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},65682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var r=n(76157);t.EmptyError=r.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},28273:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var n,r=1,i={};function o(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=r++;return i[t]=!0,n||(n=Promise.resolve()),n.then(function(){return o(t)&&e()}),t},clearImmediate:function(e){o(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},93384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var r=n(76157);t.NotFoundError=r.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})},6291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var r=n(76157);t.ObjectUnsubscribedError=r.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},96882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var r=n(76157);t.SequenceError=r.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})},87297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var r=n(76157);t.UnsubscriptionError=r.createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})},54743:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var r=n(60498),i=n(84509);function o(e){return e[e.length-1]}t.popResultSelector=function(e){return r.isFunction(o(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},89797:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var n=Array.isArray,r=Object.getPrototypeOf,i=Object.prototype,o=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if(function(e){return e&&"object"==typeof e&&r(e)===i}(t)){var a=o(t);return{args:a.map(function(e){return t[e]}),keys:a}}}return{args:e,keys:null}}},7321:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var n=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},66004:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},76157:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},60297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}},7410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var r=n(72289),i=null;t.errorContext=function(e){if(r.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i;if(i=null,n.errorThrown)throw n.error}}else e()},t.captureError=function(e){r.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},35488:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}},71973:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},15730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},12492:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var r=n(60498);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&r.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},9321:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},60498:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},51253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var r=n(29799),i=n(60498);t.isInteropObservable=function(e){return i.isFunction(e[r.observable])}},91026:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var r=n(4867),i=n(60498);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[r.iterator])}},29876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var r=n(37213),i=n(60498);t.isObservable=function(e){return!!e&&(e instanceof r.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},80627:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var r=n(60498);t.isPromise=function(e){return r.isFunction(null==e?void 0:e.then)}},43569:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},o=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{!function(e){e.value instanceof i?Promise.resolve(e.value.v).then(c,l):f(a[0][2],e)}(o[e](t))}catch(n){f(a[0][3],n)}}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var a=n(60498);t.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,i(t.read())];case 3:return n=r.sent(),o=n.value,n.done?[4,i(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,i(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},t.isReadableStreamLike=function(e){return a.isFunction(null==e?void 0:e.getReader)}},84509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var r=n(60498);t.isScheduler=function(e){return e&&r.isFunction(e.schedule)}},77356:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var r=n(60498);function i(e){return r.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}},1278:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var o=n(71905),a=Array.isArray;t.mapOneOrManyArgs=function(e){return o.map(function(t){return function(e,t){return a(t)?e.apply(void 0,i([],r(t))):e(t)}(e,t)})}},78415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},12885:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(n,r){return!e.call(t,n,r)}}},2265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var r=n(71973);function i(e){return 0===e.length?r.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},t.pipeFromArray=i},44242:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var r=n(72289),i=n(9303);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout(function(){var t=r.config.onUnhandledError;if(!t)throw e;t(e)})}},19543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},70013:function(t,n,r){"use strict";r.d(n,{Ip:function(){return Se},Fq:function(){return Vt},WR:function(){return Ft},v_:function(){return ut},fq:function(){return ft},Bt:function(){return lt},WF:function(){return ct},bg:function(){return ve},IR:function(){return _e},x3:function(){return ee},Hl:function(){return bt},oT:function(){return wt},VV:function(){return Et},Qt:function(){return kt},l0:function(){return Wt},oJ:function(){return k},QX:function(){return S},OW:function(){return x},t1:function(){return Bt},uI:function(){return jt},II:function(){return Ut},am:function(){return oe},lF:function(){return rt},zS:function(){return R},Qk:function(){return ue},E2:function(){return nt},io:function(){return fe},BP:function(){return Ce},NE:function(){return Tt},Gn:function(){return Pt},k7:function(){return W},bT:function(){return L},sF:function(){return et},tK:function(){return ke},zn:function(){return pt},xo:function(){return Ie},q8:function(){return He},nU:function(){return qe},rG:function(){return Ke},uA:function(){return Ye},Q6:function(){return Ge},Cx:function(){return Te},$s:function(){return Je},OL:function(){return De},_s:function(){return Be},rC:function(){return je},XB:function(){return Ve},zr:function(){return Xe},ei:function(){return Qe},vP:function(){return Ne},o_:function(){return Re},ZX:function(){return Fe},vt:function(){return We},Ag:function(){return Ue},P3:function(){return ze},FW:function(){return Le},R_:function(){return $e},aF:function(){return Ze},jT:function(){return Pe},J3:function(){return Me},bz:function(){return dt},Z2:function(){return ht},MF:function(){return vt}});var o,a=r(62415),u=r(13074),s=r(92674),l=r(47623),f=r(86243),d=r(91624),p=r(39417),v=r(16710),y=r(24521),g=r(31530),b=r(98293),w=r(17419),x=(o=function(){return C(function e(){E(this,e),this._registry=Object.create(null)},[{key:"add",value:function(){for(var e=this._registry,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.map(function(t){return e[t.name]=t.data})}},{key:"get",value:function(e){return this._registry[e]}}])}(),o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:o,factory:o.\u0275fac,providedIn:"root"}),o),k=function(){var e=function(){return C(function e(t,n){E(this,e),this.DomSanitizer=t,this.IconRegistryService=n,this.thorIcon=!0},[{key:"name",set:function(e){var t=this.DomSanitizer,n=this.IconRegistryService;this.data=t.bypassSecurityTrustHtml(n.get(e)||"?")}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(l.H7),(0,a.\u0275\u0275directiveInject)(x))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["icon"]],hostVars:1,hostBindings:function(e,t){2&e&&(0,a.\u0275\u0275attribute)("thor-icon",t.thorIcon)},inputs:{name:"name"},decls:1,vars:1,consts:[[3,"outerHTML"]],template:function(e,t){1&e&&(0,a.\u0275\u0275element)(0,"div",0),2&e&&(0,a.\u0275\u0275property)("outerHTML",t.data,a.\u0275\u0275sanitizeHtml)},styles:["icon[thor-icon]{display:inline-block;width:24px}icon[thor-icon] svg{vertical-align:top}"],encapsulation:2}),e}(),S=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({}),e}(),A={name:"forward",data:'\n \n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n\n <path d="M0 0h24v24H0z" fill="none"/>
1\n <path fill="currentColor" d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>\n \n </svg>\n \n '},O={name:"share-email",data:'\n \n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path fill="currentColor" d="M12 .02c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6.99 6.98l-6.99 5.666-6.991-5.666h13.981zm.01 10h-14v-8.505l7 5.673 7-5.672v8.504z"/>\n </svg>\n \n '},D={name:"share-facebook",data:'\n \n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path fill="currentColor" d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm3 8h-1.35c-.538 0-.65.221-.65.778v1.222h2l-.209 2h-1.791v7h-3v-7h-2v-2h2v-2.308c0-1.769.931-2.692 3.029-2.692h1.971v3z"/>\n </svg>\n \n '},I={name:"share-twitter",data:'\n \n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path fill="currentColor" d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6.066 9.645c.183 4.04-2.83 8.544-8.164 8.544-1.622 0-3.131-.476-4.402-1.291 1.524.18 3.045-.244 4.252-1.189-1.256-.023-2.317-.854-2.684
1-1.995.451.086.895.061 1.298-.049-1.381-.278-2.335-1.522-2.304-2.853.388.215.83.344 1.301.359-1.279-.855-1.641-2.544-.889-3.835 1.416 1.738 3.533 2.881 5.92 3.001-.419-1.796.944-3.527 2.799-3.527.825 0 1.572.349 2.096.907.654-.128 1.27-.368 1.824-.697-.215.671-.67 1.233-1.263 1.589.581-.07 1.135-.224 1.649-.453-.384.578-.87 1.084-1.433 1.489z"/>\n </svg>\n \n '},T=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["image"]],inputs:{src:"src",alt:"alt"},decls:1,vars:2,consts:[[3,"src","alt"]],template:function(e,t){1&e&&(0,a.\u0275\u0275element)(0,"img",0),2&e&&(0,a.\u0275\u0275property)("src",t.src,a.\u0275\u0275sanitizeUrl)("alt",t.alt)},encapsulation:2}),e}(),M=function(e){return{"--visible":e}},P=["*"],R=function(){var e=function(){return C(function e(){E(this,e),this._visible=!1,this.visibleChange=new a.EventEmitter},[{key:"visible",get:function(){return this._visible},set:function(e){this._visible=e,this.visibleChange.emit(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["modal"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},ngContentSelectors:P,decls:4,vars:3,consts:[[1,"modal",3,"ngClass"],[1,"modal__background",3,"click"],[1,"modal__content"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"div",0),(0,a.\u0275\u0275elementStart)(1,"div",1),(0,a.\u0275\u0275listener)("click",function(){return t.visible=!1}),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementStart)(2,"div",2),(0,a.\u0275\u0275projection)(3),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)()),2&e&&(0,a.\u0275\u0275property)("ngClass",(0,a.\u0275\u0275pureFunction1)(1,M,t.visible))},directives:[s.mk],styles:[".modal[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:none}.modal.--visible[_ngcontent-%COMP%]{display:block}.modal__background[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;background:rgba(0,0,0,.8)}.modal__content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff}"]}),e}(),F=function(){var e=C(function e(){E(this,e),this.size=1,this.margin=!1});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,inputs:{size:"size",margin:"margin"}}),e}(),N=function(e){return{"--margin":e}},j=["*"],L=function(){var e=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(F);return e.\u0275fac=function(t){return B(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["sub-text"]],features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:j,decls:2,vars:6,consts:[[3,"ngClass"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"h2",0),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)()),2&e&&((0,a.\u0275\u0275classMapInterpolate1)("--",t.size,""),(0,a.\u0275\u0275property)("ngClass",(0,a.\u0275\u0275pureFunction1)(4,N,t.margin)))},directives:[s.mk],styles:["h2[_ngcontent-%COMP%]{color:#000;margin:0}h2.--1[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:34px;font-weight:200;letter-spacing:.25px}h2.--1.--margin[_ngcontent-%COMP%]{margin:1em 0 .25em}h2.--2[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:24px}h2.--2.--margin[_ngcontent-%COMP%]{margin:1em 0 .25em}h2.--3[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:20px}h2.--3.--margin[_ngcontent-%COMP%]{margin:1em 0 .25em}"]}),e}(),B=(0,a.\u0275\u0275getInheritedFactory)(L);function V(e,t){if(1&e&&((0,a.\u0275\u0275elementStart)(0,"li"),(0,a.\u0275\u0275elementStart)(1,"a",3),(0,a.\u0275\u0275text)(2),(0,a.\u0275\u0275element)(3,"icon",4),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)()),2&e){var n=t.$implicit;(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275property)("routerLink",n[0]),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275textInterpolate1)(" ",n[1]," ")}}var W=function(){var e=function(){return C(function e(t){E(this,e),this.Router=t},[{key:"links",get:function(){return this._links}
1,set:function(e){var t=this.linkToText;this._links=e.map(function(e){return"string"==typeof e?[e,t(e)]:e})}},{key:"linkToText",value:function(e){return e.substr(e.lastIndexOf("/")+1).replace(/(^\w|-\w)/g,function(e){return e.replace(/-/," ").toUpperCase()})}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(u.F0))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["sidebar"]],inputs:{title:"title",links:"links"},decls:5,vars:2,consts:[[1,"sidebar"],["size","2"],[4,"ngFor","ngForOf"],["routerLinkActive","active",3,"routerLink"],["name","forward"]],template:function(e,t){1&e&&((0,a.\u0275\u0275elementStart)(0,"div",0),(0,a.\u0275\u0275elementStart)(1,"sub-text",1),(0,a.\u0275\u0275text)(2),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementStart)(3,"ul"),(0,a.\u0275\u0275template)(4,V,4,2,"li",2),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)()),2&e&&((0,a.\u0275\u0275advance)(2),(0,a.\u0275\u0275textInterpolate)(t.title),(0,a.\u0275\u0275advance)(2),(0,a.\u0275\u0275property)("ngForOf",t.links))},directives:[L,s.sg,u.yS,u.Od,k],styles:[".sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;box-sizing:border-box;border:0;border-left:8px solid #f4f4f4;padding:15px 24px;width:100%;font-family:Roboto,sans-serif;font-size:14px;text-transform:uppercase;text-decoration:none;color:#000;transition:border-left-color .2s,background .2s}.sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{border-left-color:#c1c1c1;background:#f4f4f4}.sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:#455a64;border-top:1px solid #455a64;font-weight:700}.sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{opacity:1}.sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:auto;opacity:0}
1"]}),e}(),U=new RegExp("^[a-z]+:","i");function z(e){return U.test(e)}function q(e,t){1&e&&(0,a.\u0275\u0275projection)(0)}function H(e,t){1&e&&(0,a.\u0275\u0275elementContainer)(0)}var G=function(e){return{"--disabled":e}};function K(e,t){if(1&e){var n=(0,a.\u0275\u0275getCurrentView)();(0,a.\u0275\u0275elementStart)(0,"a",3),(0,a.\u0275\u0275listener)("click",function(e){return(0,a.\u0275\u0275restoreView)(n),(0,a.\u0275\u0275nextContext)().click(e)}),(0,a.\u0275\u0275template)(1,H,1,0,"ng-container",4),(0,a.\u0275\u0275elementEnd)()}if(2&e){var r=(0,a.\u0275\u0275nextContext)(),i=(0,a.\u0275\u0275reference)(1);(0,a.\u0275\u0275classMapInterpolate1)("button --",r.theme,""),(0,a.\u0275\u0275property)("ngClass",(0,a.\u0275\u0275pureFunction1)(6,G,r.disabled))("href",r.link,a.\u0275\u0275sanitizeUrl),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275property)("ngTemplateOutlet",i)}}function Y(e,t){1&e&&(0,a.\u0275\u0275elementContainer)(0)}function $(e,t){if(1&e){var n=(0,a.\u0275\u0275getCurrentView)();(0,a.\u0275\u0275elementStart)(0,"button",5),(0,a.\u0275\u0275listener)("click",function(e){return(0,a.\u0275\u0275restoreView)(n),(0,a.\u0275\u0275nextContext)().click(e)}),(0,a.\u0275\u0275template)(1,Y,1,0,"ng-container",4),(0,a.\u0275\u0275elementEnd)()}if(2&e){var r=(0,a.\u0275\u0275nextContext)(),i=(0,a.\u0275\u0275reference)(1);(0,a.\u0275\u0275classMapInterpolate1)("button --",r.theme,""),(0,a.\u0275\u0275property)("ngClass",(0,a.\u0275\u0275pureFunction1)(6,G,r.disabled))("disabled",r.disabled),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275property)("ngTemplateOutlet",i)}}var Z=["*"],Q=function(){var e=function(){return C(function e(t){E(this,e),this.Router=t,this.theme=1,this.disabled=!1,this.onClick=new a.EventEmitter},[{key:"click",value:function(e){var t=this.disabled,n=this.onClick,r=this.id,i=this.link,o=this.Router;t||n.emit(r),i&&!z(i)&&(e.preventDefault(),e.stopPropagation(),t||o.navigate([i]))}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(u.F0))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["thor-button"]],inputs:{id:"id",theme:"theme",disabled:"disabled",link:"link"},outputs:{onClick:"onClick"},ngContentSelectors:Z,decls:4,vars:2,consts:[["content",""],[3,"class","ngClass","href","click",4,"ngIf"],[3,"class","ngClass","disabled","click",4,"ngIf"],[3,"ngClass","href","click"],[4,"ngTemplateOutlet"],[3,"ngClass","disabled","click"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275template)(0,q,1,0,"ng-template",null,0,a.\u0275\u0275templateRefExtractor),(0,a.\u0275\u0275template)(2,K,2,8,"a",1),(0,a.\u0275\u0275template)(3,$,2,8,"button",2)),2&e&&((0,a.\u0275\u0275advance)(2),(0,a.\u0275\u0275property)("ngIf",t.link),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275property)("ngIf",!t.link))},directives:[s.O5,s.mk,s.tP],styles:["a.button[_ngcontent-%COMP%]{display:inline-block;line-height:50px;text-align:center;text-decoration:none}.button[_ngcontent-%COMP%]{box-sizing:border-box;border:0;border-radius:4px;padding:0;height:50px;width:100%;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;background:none;cursor:pointer;outline:none}.button.--disabled[_ngcontent-%COMP%]{opacity:.2;cursor:default}.button.--1[_ngcontent-%COMP%]{background:#ff6900;color:#fff}.button.--2[_ngcontent-%COMP%]{background:#54678e;color:#fff}.button.--3[_ngcontent-%COMP%]{border:1px solid #ff6900;background:#fff;color:#ff6900}.button.--4[_ngcontent-%COMP%]{border:1px solid #000;color:#000}"]}),e}(),X=["thor-button",""],J=["*"],ee=function(){var e=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).theme=0,e}return _(t,e),C(t,[{key:"isDisabled",get:function(){return this.disabled||null}},{key:"href",get:function(){return this.link||null}},{key:"click",value:function(e){i(t,"click",this,3)([e])}}])}(Q);return e.\u0275fac=function(t){return te(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["","thor-button",""]],hostVars:3,hostBindings:function(e,t){1&e&&(0,a.\u0275\u0275listener)("click",function(e){return t.click(e)}),2&e&&(0,a.\u0275\u0275attribute)("theme",t.theme)("disabled",t.isDisabled)("href",t.href,a.\u0275\u0275sanitizeUrlOrResourceUrl)},inputs:{theme:"theme"}
1,features:[a.\u0275\u0275InheritDefinitionFeature],attrs:X,ngContentSelectors:J,decls:1,vars:0,template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275projection)(0))},styles:['a.button[_ngcontent-%COMP%]{display:inline-block;line-height:50px;text-align:center;text-decoration:none}.button[_ngcontent-%COMP%]{box-sizing:border-box;border:0;border-radius:4px;padding:0;height:50px;width:100%;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;background:none;cursor:pointer;outline:none}.button.--disabled[_ngcontent-%COMP%]{opacity:.2;cursor:default}.button.--1[_ngcontent-%COMP%]{background:#ff6900;color:#fff}.button.--2[_ngcontent-%COMP%]{background:#54678e;color:#fff}.button.--3[_ngcontent-%COMP%]{border:1px solid #ff6900;background:#fff;color:#ff6900}.button.--4[_ngcontent-%COMP%]{border:1px solid #000;color:#000}[disabled][_nghost-%COMP%]{opacity:.2;cursor:default}[theme="1"][_nghost-%COMP%]{background:#ff6900;color:#fff}[theme="2"][_nghost-%COMP%]{background:#54678e;color:#fff}[theme="3"][_nghost-%COMP%]{border:1px solid #ff6900;background:#fff;color:#ff6900}[theme="4"][_nghost-%COMP%]{border:1px solid #000;color:#000}button[_nghost-%COMP%]{border:0;padding:0;background:none;cursor:pointer;outline:none}']}),e}(),te=(0,a.\u0275\u0275getInheritedFactory)(ee),ne=function(){var e=function(){return C(function e(){E(this,e)},[{key:"invalid",get:function(){return!this.input.valid}},{key:"dirty",get:function(){return!this.input.clean}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,hostVars:4,hostBindings:function(e,t){2&e&&(0,a.\u0275\u0275classProp)("--invalid",t.invalid)("--dirty",t.dirty)}}),e}(),re=["thor-input",""],ie=["*"],oe=function(){var e=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).ElementRef=e,n}return _(t,e),C(t,[{key:"value",get:function(){return this.input.value||""}},{key:"required",get:function(){return this.input.required}},{key:"disabled",get:function(){return this.input.disabled}},{key:"onInput",value:function(e){this.input.value=e}},{key:"onBlur",value:function(){this.input.clean=!1}},{key:"ngOnInit",value:function(){var e=this.ElementRef.nativeElement.value;e&&e.trim().length>0&&(this.input.value=e,this.input.clean=!0)}}])}(ne);return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(a.ElementRef))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["","thor-input",""]],hostVars:3,hostBindings:function(e,t){1&e&&(0,a.\u0275\u0275listener)("input",function(e){return t.onInput(e.target.value)})("blur",function(){return t.onBlur()}),2&e&&(0,a.\u0275\u0275hostProperty)("value",t.value)("required",t.required)("disabled",t.disabled)},inputs:{input:["thor-input","input"]},features:[a.\u0275\u0275InheritDefinitionFeature],attrs:re,ngContentSelectors:ie,decls:1,vars:0,template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275projection)(0))},styles:["[_nghost-%COMP%]{box-sizing:border-box;border:1px solid #e6e6e6;width:100%;background:#fff;outline:none}.--dirty.--invalid[_nghost-%COMP%]{border-color:#ff6900}[_nghost-%COMP%]{font-family:Roboto,sans-serif;font-size:16px;border-radius:2px;padding:1em}textarea[_nghost-%COMP%]{resize:none}"]}),e}(),ae=["*"],ue=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["page"]],ngContentSelectors:ae,decls:2,vars:0,template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"div"),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)())},styles:["div[_ngcontent-%COMP%]{margin:0 auto;max-width:100%}@media only screen and (min-width:769px){div[_ngcontent-%COMP%]{max-width:749px}}@media only screen and (min-width:992px){div[_ngcontent-%COMP%]{max-width:972px}}@media only screen and (min-width:1200px){div[_ngcontent-%COMP%]{max-width:1180px}}"]}),e}(),se=function(){var e=function(){return C(function e(){E(this,e),this._gutter=0,this._style={"padding-right.%":0,"padding-left.%":0}},[{key:"gutter",get:function(){return this._gutter},set:function(e){var t=e/2,n=this._style;this._gutter=e,n["padding-right.%"]=t,n["padding-left.%"]=t}},{key:"style",get:function(){return this._style}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,inputs:{gutter:"gutter"}}),e}(),ce=function(e){return{"--content":e}},le=["*"],fe=function(){var e=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).content=!0,e}return _(t,e),C(t)}(se);return e.\u0275fac=function(t){return he(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["row"],["","row",""]],inputs:{content:"content"}
1,features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:le,decls:2,vars:4,consts:[[3,"ngStyle","ngClass"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"div",0),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)()),2&e&&(0,a.\u0275\u0275property)("ngStyle",t.style)("ngClass",(0,a.\u0275\u0275pureFunction1)(2,ce,t.content))},directives:[s.PC,s.mk],styles:['[row][_nghost-%COMP%], div[_ngcontent-%COMP%]{content:"";clear:both;display:table;box-sizing:border-box;width:100%}div.--content[_ngcontent-%COMP%]{margin:0 auto;max-width:100%}@media only screen and (min-width:769px){div.--content[_ngcontent-%COMP%]{max-width:749px}}@media only screen and (min-width:992px){div.--content[_ngcontent-%COMP%]{max-width:972px}}@media only screen and (min-width:1200px){div.--content[_ngcontent-%COMP%]{max-width:1180px}}']}),e}(),he=(0,a.\u0275\u0275getInheritedFactory)(fe),de=function(e,t,n){return[e,t,n]},pe=["*"],ve=function(){var e=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(se);return e.\u0275fac=function(t){return ye(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["column"]],inputs:{mobile:"mobile",tablet:"tablet",desktop:"desktop"},features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:pe,decls:2,vars:6,consts:[[3,"ngStyle","ngClass"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"div",0),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)()),2&e&&(0,a.\u0275\u0275property)("ngStyle",t.style)("ngClass",(0,a.\u0275\u0275pureFunction3)(2,de,t.mobile?"--mobile-"+t.mobile:"",t.tablet?"--tablet-"+t.tablet:"",t.desktop?"--desktop-"+t.desktop:""))},directives:[s.PC,s.mk],styles:["[column][_nghost-%COMP%], div[_ngcontent-%COMP%]{float:left;box-sizing:border-box;min-height:1px;width:100%}[column].--mobile-1[_nghost-%COMP%], div.--mobile-1[_ngcontent-%COMP%]{width:25%}[column].--mobile-2[_nghost-%COMP%], div.--mobile-2[_ngcontent-%COMP%]{width:50%}[column].--mobile-3[_nghost-%COMP%], div.--mobile-3[_ngcontent-%COMP%]{width:75%}[column].--mobile-4[_nghost-%COMP%], div.--mobile-4[_ngcontent-%COMP%]{width:100%}@media only screen and (min-width:769px){[column].--tablet-1[_nghost-%COMP%], div.--tablet-1[_ngcontent-%COMP%]{width:12.5%}[column].--tablet-2[_nghost-%COMP%], div.--tablet-2[_ngcontent-%COMP%]{width:25%}[column].--tablet-3[_nghost-%COMP%], div.--tablet-3[_ngcontent-%COMP%]{width:37.5%}[column].--tablet-4[_nghost-%COMP%], div.--tablet-4[_ngcontent-%COMP%]{width:50%}[column].--tablet-5[_nghost-%COMP%], div.--tablet-5[_ngcontent-%COMP%]{width:62.5%}[column].--tablet-6[_nghost-%COMP%], div.--tablet-6[_ngcontent-%COMP%]{width:75%}[column].--tablet-7[_nghost-%COMP%], div.--tablet-7[_ngcontent-%COMP%]{width:87.5%}[column].--tablet-8[_nghost-%COMP%], div.--tablet-8[_ngcontent-%COMP%]{width:100%}}@media only screen and (min-width:992px){[column].--desktop-1[_nghost-%COMP%], div.--desktop-1[_ngcontent-%COMP%]{width:8.3333333333%}[column].--desktop-2[_nghost-%COMP%], div.--desktop-2[_ngcontent-%COMP%]{width:16.6666666667%}[column].--desktop-3[_nghost-%COMP%], div.--desktop-3[_ngcontent-%COMP%]{width:25%}[column].--desktop-4[_nghost-%COMP%], div.--desktop-4[_ngcontent-%COMP%]{width:33.3333333333%}[column].--desktop-5[_nghost-%COMP%], div.--desktop-5[_ngcontent-%COMP%]{width:41.6666666667%}[column].--desktop-6[_nghost-%COMP%], div.--desktop-6[_ngcontent-%COMP%]{width:50%}[column].--desktop-7[_nghost-%COMP%], div.--desktop-7[_ngcontent-%COMP%]{width:58.3333333333%}[column].--desktop-8[_nghost-%COMP%], div.--desktop-8[_ngcontent-%COMP%]{width:66.6666666667%}[column].--desktop-9[_nghost-%COMP%], div.--desktop-9[_ngcontent-%COMP%]{width:75%}[column].--desktop-10[_nghost-%COMP%], div.--desktop-10[_ngcontent-%COMP%]{width:83.3333333333%}[column].--desktop-11[_nghost-%COMP%], div.--desktop-11[_ngcontent-%COMP%]{width:91.6666666667%}[column].--desktop-12[_nghost-%COMP%], div.--desktop-12[_ngcontent-%COMP%]{width:100%}}"]}),e}
1(),ye=(0,a.\u0275\u0275getInheritedFactory)(ve),me=function(e){return{"--margin":e}},ge=["*"],be=function(){var e=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(F);return e.\u0275fac=function(t){return we(t||e)},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["header-text"]],features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ge,decls:2,vars:6,consts:[[3,"ngClass"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"h1",0),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)()),2&e&&((0,a.\u0275\u0275classMapInterpolate1)("--",t.size,""),(0,a.\u0275\u0275property)("ngClass",(0,a.\u0275\u0275pureFunction1)(4,me,t.margin)))},directives:[s.mk],styles:["h1[_ngcontent-%COMP%]{color:#000;margin:0}h1.--1[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:96px;font-weight:200;letter-spacing:-1.5px}h1.--1.--margin[_ngcontent-%COMP%]{margin:.5em 0}h1.--2[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:60px;font-weight:200;letter-spacing:-.5px}h1.--2.--margin[_ngcontent-%COMP%]{margin:.5em 0}h1.--3[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:48px;font-weight:200}h1.--3.--margin[_ngcontent-%COMP%]{margin:.5em 0}"]}),e}(),we=(0,a.\u0275\u0275getInheritedFactory)(be),_e=function(){var e=C(function e(t){E(this,e),this.IconRegistryService=t,t.add(A)});return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(x))},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({imports:[[s.ez,u.Bz,S]]}),e}(),xe=new a.InjectionToken("analytics.segment-write-key"),ke={context:{ip:"0.0.0.0"}},Ce=function(){var e=function(){return C(function e(t,n){var r=this;E(this,e),this.writeKey=t,this.Router=n,this.page(),n.events.pipe((0,f.h)(function(e){return e instanceof u.m2}),(0,d.G)()).subscribe(function(e){var t=h(e,1)[0].urlAfterRedirects;r._referrer="".concat(window.location.origin).concat(t),r.page()})},[{key:"_analytics",get:function(){return window.analytics||function(e){var t="analytics",n=window[t]=window[t]||[];if(!n.initialize)if(n.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{n.invoked=!0,n.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],n.factory=function(e){return function(){if(window[t].initialized)return window[t][e].apply(window[t],arguments);var r=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var i=document.querySelector("link[rel='canonical']");r.push({__t:"bpc",c:i&&i.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}return r.unshift(e),n.push(r),n}};for(var r=0;r<n.methods.length;r++){var i=n.methods[r];n[i]=n.factory(i)}n.load=function(e,r){var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.setAttribute("data-global-segment-analytics-key",t),i.src="https://cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(i,o),n._loadOptions=r},n._writeKey=e,n.SNIPPET_VERSION="5.2.0",n.load(e)}return n}(this.writeKey)}},{key:"_track",value:function(e){var t=e.name,n=e.data,r=this._analytics,i=this._referrer,o=this.device,a=Object.assign(Object.assign({},n),{location:window.location.href,referrer:i,device:o});r.track(t,a,ke)}},{key:"page",value:function(){this._analytics.page(null,null,{},ke)}},{key:"track",value:function(e){this._track(e)}},{key:"identify",value:function(e){this._analytics.identify(e,ke)}},{key:"trackCustom",value:function(e){this._track(e)}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(xe),(0,a.\u0275\u0275inject)(u.F0))},e.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:e,factory:e.\u0275fac}),e}(),Se=function(){var e=function(){function e(){E(this,e)}return C(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[Ce,{provide:xe,useValue:t}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({providers:[Ce]}),e}(),Ee=[["product_id","card_id"],["product_url","card_id",{mod:function(e){return"".concat(window.location.origin,"/card/").concat(e)}}],["product_image","image.large"],["product_format","format",{def:"A5"}],["product_variation_id","item_options.0.card_variation_id"],["product_variation_option_id","item_options.0.id"],["product_exclusive_status","exclusive"]],Ae=[].concat(Ee,[["creator_id","owner.id"],["creator_name","owner.public_profile.nickname"],["creator_location","owner.public_profile.location"],["product_rude_status","classification.tags",{mod:function(e){return!(!e||!Array.isArray(e))&&e.indexOf("rude")>-1}}],["product_price","",{mod:function(e){var t,n=e.format,r=void 0===n?"A5":n,i=e.costs,o=void 0===i?[]:i;if(Array.isArray(o)){var a=o.find(function(e){return e.format===r});
1t=a&&a.cost&&a.cost.amount}return t}}]]),Oe=[[["checkout_id","orderId"],"id"],["payment_method","payment_method_type"],["shipping_cost","costs.delivery"],[["final_cost","revenue"],"final_cost"],[["basket_size","num_items"],"orders",{mod:function(e){return e?e.map(function(e){return e.cards.reduce(function(e,t){return e+t.quantity},0)}).reduce(function(e,t){return e+t},0):0}}],[["basket_value","value"],"costs.card_items"],["currency","costs.currency"],[["discount_code","promo"],"costs.discount_code",{def:""}],["discount_campaign","costs.discount_campaign_name"],["discount_amount","costs.discount_amount"],["productType","NULL",{def:""}],["items","orders",{loop:[["cards","cards",{loop:Ee}]],mod:function(e){return[].concat.apply([],e.map(function(e){return e.cards}))}}],["recipient_type","orders",{mod:function(e){var t=e[0].recipient_type;return e.find(function(e){return e.recipient_type!==t})&&(t="mixed"),t}}]];function De(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(t,n){var r=h(n,3),i=r[0],o=r[1],a=r[2],u=void 0===a?{}:a,s=u.loop,l=u.mod,f=u.def,d=void 0===f?null:f,p=""===o?e:o.split(".").reduce(function(e,t){return e&&e[t]},e);return s&&Array.isArray(p)&&(p=p.map(function(e){return Me(De.apply(void 0,[e].concat(c(s))))})),l&&p&&(p=l(p)),void 0===p&&(p=d),"string"==typeof i?t.push([i,p]):i.map(function(e){return t.push([e,p])}),t},[])}catch(i){}}function Ie(e){return De.apply(void 0,[e].concat(c(Ae)))}function Te(e){return De.apply(void 0,[e].concat(Oe))}function Me(e){return e.reduce(function(e,t){var n=h(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}function Pe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){return{name:e,data:Me(t)}}(e,n)}}Pe("Product List Searched");var Re=Pe("Product List Searched"),Fe=Pe("Product List Viewed"),Ne=Pe("Product List Filtered"),je=Pe("Product Clicked"),Le=Pe("Product Viewed"),Be=Pe("Product Added"),Ve=Pe("Product Customised"),We=Pe("Product Removed"),Ue=Pe("Product Saved"),ze=Pe("Product Unsaved"),qe=Pe("Checkout Basket"),He=Pe("Checkout Address"),Ge=Pe("Checkout Payment"),Ke=Pe("Checkout Confirm"),Ye=Pe("Checkout Done"),$e=Pe("Promo Code Applied"),Ze=Pe("Promo Code Removed"),Qe=Pe("Product Dropdown Opened"),Xe=Pe("Product Dropdown Closed");function Je(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}var et=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({imports:[[s.ez]]}),e}(),tt=["*"],nt=function(){var e=function(){return C(function e(t){E(this,e),this.Router=t},[{key:"click",value:function(e){var t=e.target;if("A"===t.nodeName){var n=t.getAttribute("href");z(n)||(e.preventDefault(),e.stopPropagation(),this.Router.navigate([n]))}}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(u.F0))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["rich-text"]],ngContentSelectors:tt,decls:2,vars:0,consts:[[1,"rich-text",3,"click"]],template:function(e,t){1&e&&((0,a.\u0275\u0275projectionDef)(),(0,a.\u0275\u0275elementStart)(0,"div",0),(0,a.\u0275\u0275listener)("click",function(e){return t.click(e)}),(0,a.\u0275\u0275projection)(1),(0,a.\u0275\u0275elementEnd)())},styles:[".rich-text a,.rich-text ol,.rich-text p,.rich-text table,.rich-text ul{font-family:Roboto,sans-serif;font-size:16px;color:#000}.rich-text p{margin:0 0 1em}.rich-text a{color:#ff4d4d;text-decoration:none}.rich-text h1{margin:.5em 0;font-size:96px;letter-spacing:-1.5px}.rich-text h1,.rich-text h4{font-family:Roboto,sans-serif;font-weight:200}.rich-text h4{margin:1em 0 .25em;font-size:34px;letter-spacing:.25px}.rich-text h2{margin:.5em 0;font-size:60px;font-weight:200;letter-spacing:-.5px}.rich-text h2,.rich-text h5{font-family:Roboto,sans-serif}.rich-text h5{margin:1em 0 .25em;font-size:24px}.rich-text h3{margin:.5em 0;font-size:48px;font-weight:200}.rich-text h3,.rich-text h6{font-family:Roboto,sans-serif}.rich-text h6{margin:1em 0 .25em;font-size:20px}"],encapsulation:2}),e}(),rt=function(){var e=function(){return C(function e(t){E(this,e),this.DomSanitizer=t,this.rawMarkdown=new g.X(""),this.parsedMarkdown=this.rawMarkdown.pipe((0,p.U)(b),(0,p.U)(this.DomSanitizer.bypassSecurityTrustHtml))},[{key:"raw",set:function(e){this.rawMarkdown.next(e)}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(l.H7))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["markdown"]],inputs:{raw:"raw"},decls:2,vars:3,consts:[[1,"markdown",3,"innerHTML"]],template:function(e,t){1&e&&((0,a.\u0275\u0275element)(0,"div",0),(0,a.\u0275\u0275pipe)(1,"async")),2&e&&(0,a.\u0275\u0275property)("innerHTML",(0,a.\u0275\u0275pipeBind1)(1,1,t.parsedMarkdown),a.\u
10275\u0275sanitizeHtml)},pipes:[s.Ov],styles:[".markdown a,.markdown ol,.markdown p,.markdown table,.markdown ul,.rich-text a,.rich-text ol,.rich-text p,.rich-text table,.rich-text ul{font-family:Roboto,sans-serif;font-size:16px;color:#000}.markdown p,.rich-text p{margin:0 0 1em}.markdown a,.rich-text a{color:#ff4d4d;text-decoration:none}.markdown h1,.rich-text h1{margin:.5em 0;font-family:Roboto,sans-serif;font-size:96px;font-weight:200;letter-spacing:-1.5px}.markdown h4,.rich-text h4{margin:1em 0 .25em;font-family:Roboto,sans-serif;font-size:34px;font-weight:200;letter-spacing:.25px}.markdown h2,.rich-text h2{margin:.5em 0;font-family:Roboto,sans-serif;font-size:60px;font-weight:200;letter-spacing:-.5px}.markdown h5,.rich-text h5{margin:1em 0 .25em;font-family:Roboto,sans-serif;font-size:24px}.markdown h3,.rich-text h3{margin:.5em 0;font-family:Roboto,sans-serif;font-size:48px;font-weight:200}.markdown h6,.rich-text h6{margin:1em 0 .25em;font-family:Roboto,sans-serif;font-size:20px}"],encapsulation:2}),e}(),it={page:ue,PAGE:ue,row:fe,BLOCK:fe,column:ve,header:be,sub:L,IMAGE:T,"rich-text":nt,MARKDOWN:rt},ot={page:{richText:!0},row:{richText:!0},column:{richText:!0},IMAGE:{childNodes:!1,alias:[["src","content"]]},MARKDOWN:{childNodes:!1,alias:[["raw","content"]]}},at=["container"],ut=function(){var e=function(){function e(t){E(this,e),this.ComponentFactoryResolver=t}return C(e,[{key:"config",set:function(e){this.render(e)}},{key:"ngOnDestroy",value:function(){this.container.clear()}},{key:"render",value:function(t){var n=this.ComponentFactoryResolver,r=this.container,i=t.content,o=t.type,a=t.data,u=ot[o]||{},s=u.childNodes,c=u.richText,l=u.alias;if(r.clear(),e.valid(t)){var f;!1!==s&&(f=((i=Array.isArray(i)?i:[i])||[]).reduce(function(t,i){if("string"==typeof i){var o=document.createElement("div");o.innerHTML=i;var a=Array.from(o.childNodes);if(c){var u,s=n.resolveComponentFactory(nt);u=r.createComponent(s,null,null,[a]),t.push(u.location.nativeElement)}else t.push.apply(t,a)}else if(e.valid(i)){var l,f=n.resolveComponentFactory(e);(l=r.createComponent(f)).instance.config=i,t.push(l.location.nativeElement)}return t},[]));var d=n.resolveComponentFactory(it[o]),p=r.createComponent(d,void 0,void 0,[f]).instance;for(var v in a)p[v]=a[v];l&&l.map(function(e){var n=h(e,2),r=n[0],i=n[1];p[r]=i.split(".").reduce(function(e,t){return e&&e[t]},t)})}}}],[{key:"valid",value:function(e){return!!it[e.type]}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(a.ComponentFactoryResolver))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["block"]],viewQuery:function(e,t){var n;(1&e&&(0,a.\u0275\u0275viewQuery)(at,3,a.ViewContainerRef),2&e)&&((0,a.\u0275\u0275queryRefresh)(n=(0,a.\u0275\u0275loadQuery)())&&(t.container=n.first))},inputs:{config:"config"},decls:2,vars:0,consts:[["container",""]],template:function(e,t){1&e&&(0,a.\u0275\u0275elementContainer)(0,null,0)},encapsulation:2}),e}();function st(e,t){if(1&e&&((0,a.\u0275\u0275element)(0,"block",1),(0,a.\u0275\u0275pipe)(1,"async")),2&e){var n=(0,a.\u0275\u0275nextContext)();(0,a.\u0275\u0275property)("config",(0,a.\u0275\u0275pipeBind1)(1,1,n.ActivatedRoute.data).content)}}var ct=function(){var e=C(function e(t){E(this,e),this.ActivatedRoute=t});return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(u.gz))},e.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:e,selectors:[["cms-page"]],decls:2,vars:3,consts:[[3,"config",4,"ngIf"],[3,"config"]],template:function(e,t){1&e&&((0,a.\u0275\u0275template)(0,st,2,3,"block",0),(0,a.\u0275\u0275pipe)(1,"async")),2&e&&(0,a.\u0275\u0275property)("ngIf",(0,a.\u0275\u0275pipeBind1)(1,1,t.ActivatedRoute.data).content)},directives:[s.O5,ut],pipes:[s.Ov],encapsulation:2}),e}(),lt=function(){var e=C(function e(){E(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({imports:[[s.ez,y.JF,_e]]}),e}(),ft=function(){var e=function(){return C(function e(t){E(this,e),this.HttpClient=t,this.cache=Object.create(null)},[{key:"get",value:function(e){var t=this.cache,n=t[e];return n||(n=t[e]=this.HttpClient.get(e).pipe((0,v.d)(1))),n}},{key:"resolve",value:function(e){return this.get(e.data.cms)}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(y.eN))},e.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ht=(0,w.PH)("feature-flag/setFeatureStatus",(0,w.Ky)()),dt=(0,w.PH)("feature-flag/setFeatureConfig",(0,w.Ky)()),pt=(0,w.PH)("feature-flag/blockFeatureFlagCanActivate"),vt=(0,w.PH)("feature-flag/unblockFeatureFlagCanActivate"),yt=(0,w.Lq)({},(0,w.on)(dt,function(e,t){return t.config}),(0,w.on)(ht,function(e,t){var n=t.name,r=t.value,i=Object.assign({},e);return i[n]=r,i})),mt=(0,w.Lq)(!1,(0,w.on)(pt,function(){return!0}),(0,w.on)(vt,function(){return!1}));function gt(e,t){return"string"==typeof e?t[e]:e.reduce(function(e,n){return e&&t[n]},!0)}var bt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.TemplateRef=t,this.ViewContainerRef
1=n,this.Store=r,this._exists=!1},[{key:"featureFlag",set:function(e){var t=this;this._subscription&&this._subscription.unsubscribe(),this._subscription=this.Store.select("featureFlag").pipe((0,f.h)(function(e){return!e.blockCanActivate}),(0,p.U)(function(t){var n=t.config;return gt(e,n)})).subscribe(function(e){return t.update(e)})}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}},{key:"update",value:function(e){var t=this._exists,n=this.ViewContainerRef,r=this.TemplateRef;e?t||(n.createEmbeddedView(r),this._exists=!0):t&&(n.clear(),this._exists=!1)}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(a.TemplateRef),(0,a.\u0275\u0275directiveInject)(a.ViewContainerRef),(0,a.\u0275\u0275directiveInject)(w.yh))},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,selectors:[["","featureFlag",""]],inputs:{featureFlag:"featureFlag"}}),e}(),wt=function(){var e=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"featureFlagDisabled",set:function(e){this.featureFlag=e}},{key:"update",value:function(e){i(t,"update",this,3)([!e])}}])}(bt);return e.\u0275fac=function(t){return _t(t||e)},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,selectors:[["","featureFlagDisabled",""]],inputs:{featureFlagDisabled:"featureFlagDisabled"},features:[a.\u0275\u0275InheritDefinitionFeature]}),e}(),_t=(0,a.\u0275\u0275getInheritedFactory)(wt),xt=new a.InjectionToken("feature-flag.404"),kt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.Store=t,this.Router=n,this._404=r,this._disabled=!!r&&n.createUrlTree(r)},[{key:"value",value:function(e,t){return gt(e,t)}},{key:"canActivate",value:function(e){var t=this,n=e.data,r=this.Store,i=this._disabled,o=n.featureFlag;return r.select("featureFlag").pipe((0,f.h)(function(e){return!e.blockCanActivate}),(0,p.U)(function(e){var n=e.config;return t.value(o,n)}),(0,p.U)(function(e){return e||i}))}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(w.yh),(0,a.\u0275\u0275inject)(u.F0),(0,a.\u0275\u0275inject)(xt))},e.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:e,factory:e.\u0275fac}),e}(),Ct=function(){var e=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"value",value:function(e,n){return!i(t,"value",this,3)([e,n])}}])}(kt);return e.\u0275fac=function(t){return St(t||e)},e.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:e,factory:e.\u0275fac}),e}(),St=(0,a.\u0275\u0275getInheritedFactory)(Ct),Et=function(){var e=function(){function e(t){E(this,e),this.Store=t,window.setFeatureStatus=function(e,n){return t.dispatch(ht({name:e,value:n}))}}return C(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:xt,useValue:t}]}}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(w.yh))},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({providers:[kt,Ct,{provide:xt,useValue:null}],imports:[[w.Aw.forFeature("featureFlag",{config:yt,blockCanActivate:mt})]]}),e}();(0,w.P1)(function(e){return e.featureFlag},function(e){return e.config});var At=[{name:"email",link:function(e){var t=e.url,n=e.title,r=e.text;return"mailto:?body=".concat(r||"").concat(encodeURIComponent("\n\n")).concat(t,"&subject=").concat(n||"")}},{name:"facebook",link:function(e){var t=e.url,n=e.title;return"https://www.facebook.com/sharer/sharer.php?u=".concat(t,""e=").concat(n||"")}},{name:"twitter",link:function(e){var t=e.url,n=e.text;return"http://twitter.com/share?text=".concat(n||"","&url=").concat(t)}}],Ot=["copy"];function Dt(e,t){if(1&e){var n=(0,a.\u0275\u0275getCurrentView)();(0,a.\u0275\u0275elementStart)(0,"button",11),(0,a.\u0275\u0275listener)("onClick",function(){(0,a.\u0275\u0275restoreView)(n);var e=t.$implicit,r=(0,a.\u0275\u0275nextContext)(2);return r.social(e.link(r.data))}),(0,a.\u0275\u0275element)(1,"icon",12),(0,a.\u0275\u0275elementEnd)()}if(2&e){var r=t.$implicit;(0,a.\u0275\u0275classMap)(r.name),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275propertyInterpolate1)("name","share-",r.name,"")}}function It(e,t){if(1&e){var n=(0,a.\u0275\u0275getCurrentView)();(0,a.\u0275\u0275elementStart)(0,"modal",1),(0,a.\u0275\u0275listener)("visibleChange",function(e){return(0,a.\u0275\u0275restoreView)(n),(0,a.\u0275\u0275nextContext)().visible=e}),(0,a.\u0275\u0275elementStart)(1,"div",2),(0,a.\u0275\u0275elementStart)(2,"div",3),(0,a.\u0275\u0275elementStart)(3,"sub-text",4),(0,a.\u0275\u0275text)(4,"Share"),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementStart)(5,"div",5),(0,a.\u0275\u0275template)(6,Dt,2,4,"button",6),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementStart)(7,"div",7),(0,a.\u0275\u0275element)(8,"input",8,9),(0,a.\u0275\u0275elementStart)(10,"span"),(0,a.\u0275\u0275text)(11),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementStart)(12,"button",10),(0,a.\u0275\u0275listener)("onClick",function(){return(0,a.\u0275\u0275restoreView)(n),(0,a.\u0275\u0275nextContext)().clipboard()}),(0,a.\u0275\u0275text)(13),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)(),(0,a.\u0275\u0275elementEnd)()}if(2&e){var r=(0,a.\u0275\u0275nextContext)();(0,a.\u0275\u0275property)("visible",r.visible),(0,a.\u0275\u0275advance)(6),(0,a.\u0275\u0275property)("ngForOf",r.SOCIALS),(0,a.\u0275\u0275advance)(2),(0,a.\u0275\u0275property)("value",r.data.url),(0,a.\u0275\u0275advance)(3),(0,a.\u0275\u0275textInterpolate)(r.data.url),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275property)("disabled",r.copied),(0,a.\u0275\u0275advance)(1),(0,a.\u0275\u0275textInterpolate)(r.copied?"Copied":"Copy")}}var Tt=function(){var t=function(t){function n(){var e;return E(this,n),(e=m(this,n,arguments)).SOCIALS=At,e.copied=!1,e.data={url:""},e}return _(n,t),C(n,[{key:"visible",get:function(){var e=this._visible,t=this.native;return e&&!t},set:function(t){var r=this,i=this.native,o=this.data;e(n,"visible",t,this,1,1),t?i&&navigator.share(o).finally(function(){return r.visible=!1}):this.copied=!1}},{key:"native",get:function(){return!!navigator.share}},{key:"social",value:function(e){window.open(e)}},{key:"clipboard",value:function(){var e=this.input.nativeElement;e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),this.copied=!0}}])}(R);return t.\u0275fac=function(e){return Mt(e||t)},t.\u0275cmp=(0,a.\u0275\u0275defineComponent)({type:t,selectors:[["share"]],viewQuery:function(e,t){var n;(1&e&&(0,a.\u0275\u0275viewQuery)(Ot,1),2&e)&&((0,a.\u0275\u0275queryRefresh)(n=(0,a.\u0275\u0275loadQuery)())&&(t.input=n.first))},inputs:{visible:"visible",data:"data"}
1,features:[a.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"visible","visibleChange",4,"ngIf"],[3,"visible","visibleChange"],[1,"share"],[1,"header"],["size","3"],[1,"icons"],["thor-button","",3,"class","onClick",4,"ngFor","ngForOf"],[1,"copy"],["type","text",3,"value"],["copy",""],["thor-button","",3,"disabled","onClick"],["thor-button","",3,"onClick"],[3,"name"]],template:function(e,t){1&e&&(0,a.\u0275\u0275template)(0,It,14,6,"modal",0),2&e&&(0,a.\u0275\u0275property)("ngIf",!t.native)},directives:[s.O5,R,L,s.sg,ee,k],styles:[".share[_ngcontent-%COMP%]{padding:24px;width:250px}.share[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-family:bold}.share[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{margin-bottom:24px;text-align:center}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 5px;border-radius:50%}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button.email[_ngcontent-%COMP%]{color:#4ba3f1}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button.facebook[_ngcontent-%COMP%]{color:#3b5998}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button.twitter[_ngcontent-%COMP%]{color:#1da1f2}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block;width:50px}.share[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid #000;padding:.75em 1em;font-family:Roboto,sans-serif;font-size:16px;background:#f4f4f4}.share[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;border:0;padding:0;background:none;opacity:0;outline:none;pointer-events:none}.share[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex-grow:1;padding-right:1em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.share[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:inherit;font-weight:700;color:#ff6900}.share[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] button[disabled][_ngcontent-%COMP%]{opacity:.5}@media only screen and (min-width:992px){.share[_ngcontent-%COMP%]{width:350px}.share[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{transform:scale(.95)}}"]}),t}(),Mt=(0,a.\u0275\u0275getInheritedFactory)(Tt),Pt=function(){var e=C(function e(t){E(this,e),this.IconRegistryService=t,t.add(O,D,I)});return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(x))},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({imports:[[s.ez,_e,S]]}),e}(),Rt=new a.InjectionToken("assets.store-domain"),Ft=function(){var e=function(){return C(function e(t){E(this,e),this.domain=t,this.modPath="/cdn-cgi/image/"},[{key:"getImageUrl",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{t=new URL(e)}catch(i){t=new URL(e,this.domain)}if(n){if(0==t.pathname.indexOf(this.modPath)){var r=t.pathname.split("/").slice(4).join("/");t.pathname="/".concat(r)}t=new URL((n?"".concat(this.modPath).concat(n):"")+t.pathname+t.search,t.origin)}return t.href}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275inject)(Rt))},e.\u0275prov=(0,a.\u0275\u0275defineInjectable)({token:e,factory:e.\u0275fac}),e}(),Nt=/null/,jt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.assetsStore=t,this.element=n,this.renderer=r},[{key:"imgSrcSet",get:function(){return this._imgSrcSet},set:function(e){this._imgSrcSet=this.minifyString(e),this.setSrcSet()}},{key:"imgSrcSetMod",get:function(){return this._imgSrcSetMod},set:function(e){this._imgSrcSetMod=this.minifyString(e),this.setSrcSet()}},{key:"minifyString",value:function(e){return null==e?void 0:e.replace(/\s\s+/g," ").trim()}},{key:"setSrcSet",value:function(){var e=this,t=this.renderer,n=this.image,r=this.imgSrcSet,i=this.imgSrcSetMod,o=i?i.split(" "):[];if(r){var a=r.split(" ").map(function(t,n){return e.updateSrcSetUrls(t,n,o)}).join(" ");a&&!a.match(Nt)&&t.setAttribute(n,"srcset",a)}}},{key:"updateSrcSetUrls",value:function(e,t,n){if(t%2==0){var r=Math.floor(t/2);return this.assetsStore.getImageUrl(e,n[r])}return e}},{key:"image",get:function(){return this.element.nativeElement}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(Ft),(0,a.\u0275\u0275directiveInject)(a.ElementRef),(0,a.\u0275\u0275directiveInject)(a.Renderer2))},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,selectors:[["","imgSrcSet",""]],inputs:{imgSrcSet:"imgSrcSet",imgSrcSetMod:"imgSrcSetMod"}}),e}(),Lt=/null/,Bt=function(){var e=function(){return C(function e(t,n,r){E(this,e),this.assetsStore=t,this.element=n,this.renderer=r},[{key:"imgSrc",get:function(){return this._imgSrc},set:function(e){this._imgSrc=e,this.setSrc()}},{key:"imgMod",get:function(){return this._imgMod},set:function(e){this._imgMod=e,this.setSrc()}},{key:"setSrc",value:function(){var e=this.image,t=this.imgSrc,n=this.imgMod,r
1=this.renderer,i=this.assetsStore;if(t){var o=i.getImageUrl(t,n);o&&!o.match(Lt)&&r.setAttribute(e,"src",o)}}},{key:"image",get:function(){return this.element.nativeElement}}])}();return e.\u0275fac=function(t){return new(t||e)((0,a.\u0275\u0275directiveInject)(Ft),(0,a.\u0275\u0275directiveInject)(a.ElementRef),(0,a.\u0275\u0275directiveInject)(a.Renderer2))},e.\u0275dir=(0,a.\u0275\u0275defineDirective)({type:e,selectors:[["","imgSrc",""]],inputs:{imgSrc:"imgSrc",imgMod:"imgMod"}}),e}(),Vt=function(){var e=function(){function e(){E(this,e)}return C(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[Ft,{provide:Rt,useValue:t}]}}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=(0,a.\u0275\u0275defineNgModule)({type:e}),e.\u0275inj=(0,a.\u0275\u0275defineInjector)({imports:[[s.ez]]}),e}(),Wt=function(){return C(function e(t){E(this,e),this._inputs=t;var n=[];for(var r in t)t[r].name=r,n.push(t[r]);this._array=n},[{key:"inputs",get:function(){return this._inputs}},{key:"array",get:function(){return this._array}},{key:"valid",get:function(){return this._array.reduce(function(e,t){var n=t.valid;return e&&n},!0)}},{key:"canSubmit",value:function(){return this._array.reduce(function(e,t){var n=t.canSubmit();return e&&n},!0)}},{key:"reset",value:function(){this._array.map(function(e){return e.reset()})}}])}(),Ut=function(){return C(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;E(this,e),this._value=t,this._required=n,this._validator=r,this._valid=!0,this.disabled=!1,this.clean=!0,this._initial=t,this._validate()},[{key:"value",get:function(){return this._value},set:function(e){this._value=e,this.clean=!1,this._validate()}},{key:"required",get:function(){return this._required},set:function(e){this._required=e,this._validate()}},{key:"valid",get:function(){return this._valid}},{key:"_validate",value:function(){var e=this._required,t=this._value,n=this._validator;this._valid=(!e||!!t)&&(!n||n(t))}},{key:"canSubmit",value:function(){return this.clean=!1,this._valid}},{key:"reset",value:function(){this._value=this._initial,this.clean=!0,this._validate()}}])}()},87511:function(e,t,n){"use strict";var r=n(58755),i=n(87380),o=n(90355),a=n(43504);e.exports=a||r.call(o,i)},86713:function(e,t,n){"use strict";var r=n(58755),i=n(87380),o=n(87511);e.exports=function(){return o(r,i,arguments)}},87380:function(e){"use strict";e.exports=Function.prototype.apply},90355:function(e){"use strict";e.exports=Function.prototype.call},88787:function(e,t,n){"use strict";var r=n(58755),i=n(56315),o=n(90355),a=n(87511);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},43504:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},65110:function(e,t,n){"use strict";var r=n(17958),i=n(11254),o=n(88787),a=n(86713);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},76124:function(e,t,n){"use strict";var r=n(87044),i=n(65110),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},71571:function(e,t,n){"use strict";var r=n(11254),i=n(64525),o=n(56315),a=n(36502);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);
1if(r)r(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===u&&f?f.enumerable:!u,value:n,writable:null===s&&f?f.writable:!s});else{if(!l&&(u||s||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},13562:function(e,t,n){"use strict";var r=n(88787),i=n(36502),o=[].__proto__===Array.prototype&&i&&i(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;e.exports=o&&"function"==typeof o.get?r([o.get]):"function"==typeof u&&function(e){return u(null==e?e:a(e))}},11254:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},41372:function(e){"use strict";e.exports=EvalError},80199:function(e){"use strict";e.exports=Error},91206:function(e){"use strict";e.exports=RangeError},28332:function(e){"use strict";e.exports=ReferenceError},64525:function(e){"use strict";e.exports=SyntaxError},56315:function(e){"use strict";e.exports=TypeError},7657:function(e){"use strict";e.exports=URIError},82746:function(e){"use strict";e.exports=Object},33997:function(e,t,n){"use strict";n.d(t,{d7:function(){return Qd},Qr:function(){return Kp},qB:function(){return Ap}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}var u=function(){function e(e){this.global=e,this.flags={},this.flagRegistry={},this.urlFlags={},this.populateURLFlags()}return e.prototype.setPlatform=function(e,t){null!=this.platform&&console.warn("Platform "+this.platformName+" has already been set. Overwriting the platform with "+t+"."),this.platformName=e,this.platform=t},e.prototype.registerFlag=function(e,t,n){if(this.flagRegistry[e]={evaluationFn:t,setHook:n},null!=this.urlFlags[e]){var r=this.urlFlags[e];console.warn("Setting feature override from URL "+e+": "+r+"."),this.set(e,r)}},e.prototype.get=function(e){return e in this.flags||(this.flags[e]=this.evaluateFlag(e)),this.flags[e]},e.prototype.getNumber=function(e){return this.get(e)},e.prototype.getBool=function(e){return this.get(e)},e.prototype.getFlags=function(){return this.flags},Object.defineProperty(e.prototype,"features",{get:function(){return this.flags},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){if(null==this.flagRegistry[e])throw new Error("Cannot set flag "+e+" as it has not been registered.");this.flags[e]=t,null!=this.flagRegistry[e].setHook&&this.flagRegistry[e].setHook(t)},e.prototype.evaluateFlag=function(e){if(null==this.flagRegistry[e])throw new Error("Cannot evaluate flag '"+e+"': no evaluation function found.");return this.flagRegistry[e].evaluationFn()},e.prototype.setFlags=function(e){this.flags=Object.assign({},e)},e.prototype.reset=function(){this.flags={},this.urlFlags={},this.populateURLFlags()},e.prototype.populateURLFlags=function(){var e=this;if(void 0!==this.global&&void 0!==this.global.location&&void 0!==this.global.location.search){var t,n=(t={},this.global.location.search.replace(/[?&]([^=?&]+)(?:=([^&]*))?/g,function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return s(t,n[0],n[1]),n.join("=")}),t);"tfjsflags"in n&&n.tfjsflags.split(",").forEach(function(t){var n=t.split(":"),r=n[0];e.urlFlags[r]=function(e,t){if("true"===(t=t.toLowerCase())||"false"===t)return"true"===t;if(""+ +t===t)return+t;throw new Error("Could not parse value flag value "+t+" for flag "+e+".")}(r,n[1])})}},e}();function s(e,t,n){e[decodeURIComponent(t)]=decodeURIComponent(n||"")}function c(){return l}var l=null,f=new Map,h=new Map;function d(e,t){var n=m(e,t);return f.get(n)}function p(e){for(var t=f.entries(),n=[];;){var r=t.next(),i=r.value;if(r.done)break;var o=i[1];i[0].split("_")[0]===e&&n.push(o)}return n}function v(e){var t=e.kernelName,n=e.backendName,r=m(t,n);if(f.has(r))throw new Error("The kernel '"+t+"' for backend '"+n+"' is already registered");f.set(r,e)}function y(e){var t=e.kernelName;
vendor: 66,165 bytes, line 1
1h.has(t)&&console.warn("Overriding the gradient for '"+t+"'"),h.set(t,e)}function m(e,t){return t+"_"+e}function g(e){for(var t=e.length,n=0,r=0;t>0;)r=Math.random()*t|0,n=e[--t],e[t]=e[r],e[r]=n}function b(e,t,n){return Math.max(e,Math.min(t,n))}function w(e){return e%2==0?e:e+1}function _(e){for(var t=0,n=0;n<e.length;n++)t+=e[n];return t}function x(e,t){if(!e)throw new Error("string"==typeof t?t:t())}function k(e,t,n){void 0===n&&(n=""),x(A(e,t),function(){return n+" Shapes "+e+" and "+t+" must match"})}function C(e){x(null!=e,function(){return"The input to the tensor constructor must be a non-null value."})}function S(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=!1),null==t&&(t=[]),Array.isArray(e)||W(e)&&!n)for(var r=0;r<e.length;++r)S(e[r],t,n);else t.push(e);return t}function E(e){if(0===e.length)return 1;for(var t=e[0],n=1;n<e.length;n++)t*=e[n];return t}function A(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function O(e){return e%1==0}function D(e){if(null!=Math.tanh)return Math.tanh(e);if(e===1/0)return 1;if(e===-1/0)return-1;var t=Math.exp(2*e);return(t-1)/(t+1)}function I(e){var t=Math.ceil(Math.sqrt(e));return[t,Math.ceil(e/t)]}function T(e,t){return t<=e.length?e:e+" ".repeat(t-e.length)}function M(e,t,n){return void 0===t&&(t=function(e){return 0}),new Promise(function(r,i){var o=0,a=function(){if(e())r();else{o++;var u=t(o);null!=n&&o>=n?i():setTimeout(a,u)}};a()})}function P(e,t){for(var n=1,r=-1,i=0;i<e.length;++i)if(e[i]>=0)n*=e[i];else if(-1===e[i]){if(-1!==r)throw Error("Shapes can only have 1 implicit size. Found -1 at dim "+r+" and dim "+i);r=i}else if(e[i]<0)throw Error("Shapes can not be < 0. Found "+e[i]+" at dim "+i);if(-1===r){if(t>0&&t!==n)throw Error("Size("+t+") must match the product of shape "+e);return e}if(0===n)throw Error("Cannot infer the missing size in ["+e+"] when there are 0 elements");if(t%n!=0)throw Error("The implicit shape can't be a fractional number. Got "+t+" / "+n);var o=e.slice();return o[r]=t/n,o}function R(e,t){var n=t.length;return x((e=null==e?t.map(function(e,t){return t}):[].concat(e)).every(function(e){return e>=-n&&e<n}),function(){return"All values in axis param must be in range [-"+n+", "+n+") but got axis "+e}),x(e.every(function(e){return O(e)}),function(){return"All values in axis param must be integers but got axis "+e}),e.map(function(e){return e<0?n+e:e})}function F(e,t){for(var n=[],r=[],i=null!=t&&Array.isArray(t)&&0===t.length,o=null==t||i?null:R(t,e).sort(),a=0,u=0;u<e.length;++u){if(null!=o){if(o[a]===u&&1!==e[u])throw new Error("Can't squeeze axis "+u+" since its dim '"+e[u]+"' is not 1");(null==o[a]||o[a]>u)&&1===e[u]&&(n.push(e[u]),r.push(u)),o[a]<=u&&a++}1!==e[u]&&(n.push(e[u]),r.push(u))}return{newShape:n,keptDims:r}}function N(e,t){var n=null;if(null==e||"float32"===e)n=new Float32Array(t);else if("int32"===e)n=new Int32Array(t);else{if("bool"!==e)throw new Error("Unknown data type "+e);n=new Uint8Array(t)}return n}function j(e,t){var n=null;if(null==e||"float32"===e)n=new Float32Array(t);else if("int32"===e)n=new Int32Array(t);else if("bool"===e)n=new Uint8Array(t);else{if("string"!==e)throw new Error("Unknown data type "+e);n=new Array(t)}return n}function L(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(isNaN(r)||!isFinite(r))throw Error("A tensor of type "+t+" being uploaded contains "+r+".")}}function B(e){return"bool"===e||"complex64"===e||"float32"===e||"int32"===e||"string"===e}function V(e,t){return!("complex64"===t||"float32"===t&&"complex64"!==e||"int32"===t&&"float32"!==e&&"complex64"!==e||"bool"===t&&"bool"===e)}function W(e){return e instanceof Float32Array||e instanceof Int32Array||e instanceof Uint8Array}function U(e){if("float32"===e||"int32"===e)return 4;if("complex64"===e)return 8;if("bool"===e)return 1;throw new Error("Unknown dtype "+e)}function z(e){if(null==e)return 0;var t=0;return e.forEach(function(e){return t+=e.length}),t}function q(e){return"string"==typeof e||e instanceof String}function H(e){return"boolean"==typeof e}function G(e){return"number"==typeof e}function K(e){return Array.isArray(e)?K(e[0]):e instanceof Float32Array?"float32":e instanceof Int32Array||e instanceof Uint8Array?"int32":G(e)?"float32":q(e)?"string":H(e)?"bool":"float32"}function Y(e){return!!(e&&e.constructor&&e.call&&e.apply)}function $(e,t){for(var n=t;n<e;++n)if(e%n==0)return n;return e}function Z(e){var t=e.length;if(t<2)return[];var n=new Array(t-1);n[t-2]=e[t-1];for(var r=t-3;r>=0;--r)n[r]=n[r+1]*e[r+1];return n}function Q(e,t,n){if("string"===t)throw new Error("Cannot convert a string[] to a TypedArray");if(Array.isArray(e)&&(e=S(e)),n&&L(e,t),i=t,(r=e)instanceof Float32Array&&"float32"===i||r instanceof Int32Array&&"int32"===i||r instanceof Uint8Array&&"bool"===i)return e;var r,i;if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t){for(var o=new Uint8Array(e.length),a=0;a<o.length;++a)0!==Math.round(e[a])&&(o[a]=1);return o}throw new Error("Unknown data type "+t)}function X(e,t){if(0===e.length)return t[0];var n=e.reduce(function(e,t){return e*t});if(0===n)return[];if(n!==t.length)throw new Error("["+e+"] does not match the input size.");return function e(t,n,r){var i=new Array;if(1===n.length)for(var o=n[0],a=0;a<o;a++)i[a]=r[t+a];else{o=n[0];var u=n.slice(1),s=u.reduce(function(e,t){return e*t});for(a=0;a<o;a++)i[a]=e(t+a*s,u,r)}return i}(0,e,t)}function J(e,t){for(var n=ee(e,t),r=0;r<n.length;r++)n[r]=1;return n}function ee(e,t){if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t)return new Uint8Array(e);throw new Error("Unknown data type "+t)}function te(){return c().platform.now()}function ne(e){e.forEach(function(t){x(Number.isInteger(t)&&t>=0,function(){return"Tensor must have a shape comprised of positive integers but got shape ["+e+"]."})})}function re(e,t){return void 0===t&&(t="utf-8"),t=t||"utf-8",c().platform.encode(e,t)}function ie(e,t){return void 0===t&&(t="utf-8"),t=t||"utf-8",c().platform.decode(e,t)}function oe(e,t,n){if(0===t)return 0;if(1===t)return e[0];for(var r=e[e.length-1],i=0;i<e.length-1;++i)r+=n[i]*e[i];return r}function ae(e,t,n){if(0===t)return[];if(1===t)return[e];for(var r=new Array(t),i=0;i<r.length-1;++i)r[i]=Math.floor(e/n[i]),e-=r[i]*n[i];return r[r.length-1]=e,r}Object.freeze({shuffle:g,clamp:b,nearestLargerEven:w,sum:_,randUniform:function(e,t){var n=Math.random();return t*n+(1-n)*e},distSquared:function(e,t){for(var n=0,r=0;r<e.length;r++){var i=Number(e[r])-Number(t[r]);n+=i*i}return n},assert:x,assertShapesMatch:k,assertNonNull:C,flatten:S,sizeFromShape:E,isScalarShape:function(e){return 0===e.length},arraysEqual:A,isInt:O,tanh:D,sizeToSquarishShape:I,createShuffledIndices:function(e){for(var t=new Uint32Array(e),n=0;n<e;++n)t[n]=n;return g(t),t},rightPad:T,repeatedTry:M,inferFromImplicitShape:P,parseAxisParam:R,squeezeShape:F,getTypedArrayFromDType:N,getArrayFromDType:j,checkConversionForErrors:L,isValidDtype:B,hasEncodingLoss:V,isTypedArray:W,bytesPerElement:U,bytesFromStringArray:z,isString:q,isBoolean:H,isNumber:G,inferDtype:K,isFunction:Y,nearestDivisor:$,computeStrides:Z,toTypedArray:Q,toNestedArray:X,makeOnesTypedArray:J,makeZerosTypedArray:ee,now:te,assertNonNegativeIntegerDimensions:ne,fetch:function(e,t){return c().platform.fetch(e,t)},encodeString:re,decodeString:ie,locToIndex:oe,indexToLoc:ae});var ue=function(){function e(e,t){this.backendTimer=e,this.logger=t,null==t&&(this.logger=new se)}return e.prototype.profileKernel=function(e,t,n){var r,i=this,o=this.backendTimer.time(function(){r=n()});return r.forEach(function(n){n.data().then(function(r){(function(e,t,n){if("float32"!==t)return!1;for(var r=0;r<e.length;r++){var i=e[r];if(isNaN(i)||!isFinite(i))return console.warn("Found "+i+" in the result of '"+n+"'"),!0}})(r,n.dtype,e),o.then(function(o){var a="";null!=o.getExtraProfileInfo&&(a=o.getExtraProfileInfo()),i.logger.logKernelProfile(e,n,r,o.kernelMs,t,a)})})}),r},e}(),se=function(){function e(){}return e.prototype.logKernelProfile=function(e,t,n,r,i,o){var a="number"==typeof r?T(r+"ms",9):r.error,u=T(e,25),s=t.rank,c=t.size,l=T(t.shape.toString(),14),f="";for(var h in i){var d=i[h].shape||t.shape,p=d.length;f+=h+": "+p+"D "+(p>0?d:"")+" "}console.log("%c"+u+"\t%c"+a+"\t%c"+s+"D "+l+"\t%c"+c+"\t%c"+f+"\t%c"+o,"font-weight:bold","color:red","color:blue","color: orange","color: green","color: steelblue")},e}();function ce(e,t,n){return T(Array.isArray(e)?parseFloat(e[0].toFixed(7))+" + "+parseFloat(e[1].toFixed(7))+"j":q(e)?"'"+e+"'":"bool"===n?le(e):parseFloat(e.toFixed(7)).toString(),t)}function le(e){return 0===e?"false":"true"}function fe(e){for(var t=[],n=0;n<e.length;n+=2)t.push([e[n],e[n+1]]);return t}var he=function(){function e(e,t,n){var r=this;if(this.dtype=t,this.shape=e.slice(),this.size=E(e),null!=n){var i=n.length;x(i===this.size,function(){return"Length of values '"+i+"' does not match the size inferred by the shape '"+r.size+"'."})}if("complex64"===t)throw new Error("complex64 dtype TensorBuffers are not supported. Please create a TensorBuffer for the real and imaginary parts separately and call tf.complex(real, imag).");this.values=n||j(t,this.size),this.strides=Z(e)}return e.prototype.set=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];0===n.length&&(n=[0]),x(n.length===this.rank,function(){return"The number of provided coordinates ("+n.length+") must match the rank ("+t.rank+")"});var i=this.locToIndex(n);this.values[i]=e},e.prototype.get=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];0===e.length&&(e=[0]);for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o<0||o>=this.shape[n]){var a="Requested out of range element at "+e+". Buffer shape="+this.shape;throw new Error(a)}n++}for(var u=e[e.length-1],s=0;s<e.length-1;++s)u+=this.strides[s]*e[s];return this.values[u]},e.prototype.locToIndex=function(e){if(0===this.rank)return 0;if(1===this.rank)return e[0];for(var t=e[e.length-1],n=0;n<e.length-1;++n)t+=this.strides[n]*e[n];return t},e.prototype.indexToLoc=function(e){if(0===this.rank)return[];if(1===this.rank)return[e];for(var t=new Array(this.shape.length),n=0;n<t.length-1;++n)t[n]=Math.floor(e/this.strides[n]),e-=t[n]*this.strides[n];return t[t.length-1]=e,t},Object.defineProperty(e.prototype,"rank",{get:function(){return this.shape.length},enumerable:!0,configurable:!0}),e.prototype.toTensor=function(){return de().makeTensor(this.values,this.shape,this.dtype)},e}(),de=null,pe=null,ve=null,ye=function(){function e(e,t,n,r){this.kept=!1,this.isDisposedInternal=!1,this.shape=e.slice(),this.dtype=t||"float32",this.size=E(e),this.strides=Z(e),this.dataId=n,this.id=r,this.rankType=this.rank<5?this.rank.toString():"higher"}return e.prototype.flatten=function(){return this.throwIfDisposed(),this.as1D()},e.prototype.asScalar=function(){return this.throwIfDisposed(),x(1===this.size,function(){return"The array must have only 1 element."}),this.reshape([])},e.prototype.as1D=function(){return this.throwIfDisposed(),this.reshape([this.size])},e.prototype.as2D=function(e,t){return this.throwIfDisposed(),this.reshape([e,t])},e.prototype.as3D=function(e,t,n){return this.throwIfDisposed(),this.reshape([e,t,n])},e.prototype.as4D=function(e,t,n,r){return this.throwIfDisposed(),this.reshape([e,t,n,r])},e.prototype.as5D=function(e,t,n,r,i){return this.throwIfDisposed(),this.reshape([e,t,n,r,i])},e.prototype.asType=function(e){return this.throwIfDisposed(),pe.cast(this,e)},Object.defineProperty(e.prototype,"rank",{get:function(){return this.shape.length},enumerable:!0,configurable:!0}),e.prototype.buffer=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,this.data()];case 1:return e=t.sent(),[2,pe.buffer(this.shape,this.dtype,e)]}})})},e.prototype.bufferSync=function(){return pe.buffer(this.shape,this.dtype,this.dataSync())},e.prototype.array=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,this.data()];case 1:return e=t.sent(),[2,X(this.shape,e)]}})})},e.prototype.arraySync=function(){return X(this.shape,this.dataSync())},e.prototype.data=function(){return o(this,void 0,void 0,function(){var e,t;return a(this,function(n){switch(n.label){case 0:return this.throwIfDisposed(),e=de().read(this.dataId),"string"!==this.dtype?[3,2]:[4,e];case 1:t=n.sent();try{return[2,t.map(function(e){return ie(e)})]}catch(r){throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}n.label=2;case 2:return[2,e]}})})},e.prototype.dataSync=function(){this.throwIfDisposed();var e=de().readSync(this.dataId);if("string"===this.dtype)try{return e.map(function(e){return ie(e)})}catch(t){throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}return e},e.prototype.bytes=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return this.throwIfDisposed(),[4,de().read(this.dataId)];case 1:return e=t.sent(),"string"===this.dtype?[2,e]:[2,new Uint8Array(e.buffer)]}})})},e.prototype.dispose=function(){this.isDisposed||(de().disposeTensor(this),this.isDisposedInternal=!0)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this.isDisposedInternal},enumerable:!0,configurable:!0}),e.prototype.throwIfDisposed=function(){if(this.isDisposed)throw new Error("Tensor is disposed.")},e.prototype.toFloat=function(){return this.asType("float32")},e.prototype.toInt=function(){return this.asType("int32")},e.prototype.toBool=function(){return this.asType("bool")},e.prototype.print=function(e){return void 0===e&&(e=!1),pe.print(this,e)},e.prototype.reshape=function(e){return this.throwIfDisposed(),pe.reshape(this,e)},e.prototype.reshapeAs=function(e){return this.throwIfDisposed(),this.reshape(e.shape)},e.prototype.expandDims=function(e){return void 0===e&&(e=0),pe.expandDims(this,e)},e.prototype.cumsum=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=!1),void 0===n&&(n=!1),pe.cumsum(this,e,t,n)},e.prototype.squeeze=function(e){return this.throwIfDisposed(),pe.squeeze(this,e)},e.prototype.clone=function(){return this.throwIfDisposed(),pe.clone(this)},e.prototype.oneHot=function(e,t,n){return this.throwIfDisposed(),pe.oneHot(this,e,t,n)},e.prototype.toString=function(e){return void 0===e&&(e=!1),function(e,t,n,r){var i=Z(t),o=function(e,t,n,r){var i=E(t),o=r[r.length-1],a=new Array(o).fill(0),u=t.length,s="complex64"===n?fe(e):e;if(u>1)for(var c=0;c<i/o;c++)for(var l=c*o,f=0;f<o;f++)a[f]=Math.max(a[f],ce(s[l+f],0,n).length);return a}(e,t,n,i),a=t.length,u=function e(t,n,r,i,o,a){void 0===a&&(a=!0);var u="complex64"===r?2:1,s=n[0],c=n.length;if(0===c)return"complex64"===r?[ce(fe(t)[0],0,r)]:"bool"===r?[le(t[0])]:[t[0].toString()];if(1===c){if(s>20){var l=Array.from(t.slice(0,3*u)),f=Array.from(t.slice((s-3)*u,s*u));return"complex64"===r&&(l=fe(l),f=fe(f)),["["+l.map(function(e,t){return ce(e,o[t],r)}).join(", ")+", ..., "+f.map(function(e,t){return ce(e,o[s-3+t],r)}).join(", ")+"]"]}return["["+("complex64"===r?fe(t):Array.from(t)).map(function(e,t){return ce(e,o[t],r)}).join(", ")+"]"]}var h=n.slice(1),d=i.slice(1),p=i[0]*u,v=[];if(s>20){for(var y=0;y<3;y++){var m=(g=y*p)+p;v.push.apply(v,e(t.slice(g,m),h,r,d,o,!1))}for(v.push("..."),y=s-3;y<s;y++)m=(g=y*p)+p,v.push.apply(v,e(t.slice(g,m),h,r,d,o,y===s-1))}else for(y=0;y<s;y++){var g;m=(g=y*p)+p,v.push.apply(v,e(t.slice(g,m),h,r,d,o,y===s-1))}var b=2===c?",":"";for(v[0]="["+v[0]+b,y=1;y<v.length-1;y++)v[y]=" "+v[y]+b;var w=",\n";for(y=2;y<c;y++)w+="\n";return v[v.length-1]=" "+v[v.length-1]+"]"+(a?"":w),v}(e,t,n,i,o),s=["Tensor"];return r&&(s.push(" dtype: "+n),s.push(" rank: "+a),s.push(" shape: ["+t+"]"),s.push(" values:")),s.push(u.map(function(e){return" "+e}).join("\n")),s.join("\n")}(this.dataSync(),this.shape,this.dtype,e)},e.prototype.tile=function(e){return this.throwIfDisposed(),pe.tile(this,e)},e.prototype.gather=function(e,t){return void 0===t&&(t=0),this.throwIfDisposed(),pe.gather(this,e,t)},e.prototype.matMul=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.throwIfDisposed(),pe.matMul(this,e,t,n)},e.prototype.dot=function(e){return this.throwIfDisposed(),pe.dot(this,e)},e.prototype.norm=function(e,t,n){return void 0===e&&(e="euclidean"),void 0===t&&(t=null),void 0===n&&(n=!1),this.throwIfDisposed(),pe.norm(this,e,t,n)},e.prototype.slice=function(e,t){return this.throwIfDisposed(),pe.slice(this,e,t)},e.prototype.reverse=function(e){return this.throwIfDisposed(),pe.reverse(this,e)},e.prototype.concat=function(t,n){return void 0===n&&(n=0),this.throwIfDisposed(),t instanceof e&&(t=[t]),pe.concat([this].concat(t),n)},e.prototype.split=function(e,t){return void 0===t&&(t=0),this.throwIfDisposed(),pe.split(this,e,t)},e.prototype.stack=function(e,t){return void 0===t&&(t=0),pe.stack([this,e],t)},e.prototype.unstack=function(e){return void 0===e&&(e=0),pe.unstack(this,e)},e.prototype.pad=function(e,t){return void 0===t&&(t=0),pe.pad(this,e,t)},e.prototype.batchNormalization=function(e,t,n,r,i){return void 0===n&&(n=.001),ve("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon"),this.batchNorm(e,t,i,r,n)},e.prototype.batchNorm=function(e,t,n,r,i){return void 0===i&&(i=.001),this.throwIfDisposed(),pe.batchNorm(this,e,t,n,r,i)},e.prototype.all=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.all(this,e,t)},e.prototype.any=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.any(this,e,t)},e.prototype.logSumExp=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.logSumExp(this,e,t)},e.prototype.sum=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.sum(this,e,t)},e.prototype.prod=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.prod(this,e,t)},e.prototype.mean=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.mean(this,e,t)},e.prototype.min=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.min(this,e,t)},e.prototype.max=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.throwIfDisposed(),pe.max(this,e,t)},e.prototype.argMin=function(e){return void 0===e&&(e=null),this.throwIfDisposed(),pe.argMin(this,e)},e.prototype.argMax=function(e){return void 0===e&&(e=null),this.throwIfDisposed(),pe.argMax(this,e)},e.prototype.cast=function(e){return this.throwIfDisposed(),pe.cast(this,e)},e.prototype.add=function(e){return this.throwIfDisposed(),pe.add(this,e)},e.prototype.addStrict=function(e){return this.throwIfDisposed(),pe.addStrict(this,e)},e.prototype.atan2=function(e){return this.throwIfDisposed(),pe.atan2(this,e)},e.prototype.sub=function(e){return this.throwIfDisposed(),pe.sub(this,e)},e.prototype.subStrict=function(e){return this.throwIfDisposed(),pe.subStrict(this,e)},e.prototype.pow=function(e){return this.throwIfDisposed(),pe.pow(this,e)},e.prototype.powStrict=function(e){return this.throwIfDisposed(),pe.powStrict(this,e)},e.prototype.mul=function(e){return this.throwIfDisposed(),pe.mul(this,e)},e.prototype.mulStrict=function(e){return this.throwIfDisposed(),pe.mulStrict(this,e)},e.prototype.div=function(e){return this.throwIfDisposed(),pe.div(this,e)},e.prototype.divNoNan=function(e){return this.throwIfDisposed(),pe.divNoNan(this,e)},e.prototype.floorDiv=function(e){return this.throwIfDisposed(),pe.floorDiv(this,e)},e.prototype.divStrict=function(e){return this.throwIfDisposed(),pe.divStrict(this,e)},e.prototype.minimum=function(e){return this.throwIfDisposed(),pe.minimum(this,e)},e.prototype.minimumStrict=function(e){return this.throwIfDisposed(),pe.minimumStrict(this,e)},e.prototype.maximum=function(e){return this.throwIfDisposed(),pe.maximum(this,e)},e.prototype.maximumStrict=function(e){return this.throwIfDisposed(),pe.maximumStrict(this,e)},e.prototype.mod=function(e){return this.throwIfDisposed(),pe.mod(this,e)},e.prototype.modStrict=function(e){return this.throwIfDisposed(),pe.modStrict(this,e)},e.prototype.squaredDifferenceStrict=function(e){return this.throwIfDisposed(),pe.squaredDifferenceStrict(this,e)},e.prototype.transpose=function(e){return this.throwIfDisposed(),pe.transpose(this,e)},e.prototype.notEqual=function(e){return this.throwIfDisposed(),pe.notEqual(this,e)},e.prototype.notEqualStrict=function(e){return this.throwIfDisposed(),pe.notEqualStrict(this,e)},e.prototype.less=function(e){return this.throwIfDisposed(),pe.less(this,e)},e.prototype.lessStrict=function(e){return this.throwIfDisposed(),pe.lessStrict(this,e)},e.prototype.equal=function(e){return this.throwIfDisposed(),pe.equal(this,e)},e.prototype.equalStrict=function(e){return this.throwIfDisposed(),pe.equalStrict(this,e)},e.prototype.lessEqual=function(e){return this.throwIfDisposed(),pe.lessEqual(this,e)},e.prototype.lessEqualStrict=function(e){return this.throwIfDisposed(),pe.lessEqualStrict(this,e)},e.prototype.greater=function(e){return this.throwIfDisposed(),pe.greater(this,e)},e.prototype.greaterStrict=function(e){return this.throwIfDisposed(),pe.greaterStrict(this,e)},e.prototype.greaterEqual=function(e){return this.throwIfDisposed(),pe.greaterEqual(this,e)},e.prototype.greaterEqualStrict=function(e){return this.throwIfDisposed(),pe.greaterEqualStrict(this,e)},e.prototype.logicalAnd=function(e){return this.throwIfDisposed(),pe.logicalAnd(this,e)},e.prototype.logicalOr=function(e){return this.throwIfDisposed(),pe.logicalOr(this,e)},e.prototype.logicalNot=function(){return this.throwIfDisposed(),pe.logicalNot(this)},e.prototype.logicalXor=function(e){return this.throwIfDisposed(),pe.logicalXor(this,e)},e.prototype.where=function(e,t){return this.throwIfDisposed(),pe.where(e,this,t)},e.prototype.neg=function(){return this.throwIfDisposed(),pe.neg(this)},e.prototype.ceil=function(){return this.throwIfDisposed(),pe.ceil(this)},e.prototype.floor=function(){return this.throwIfDisposed(),pe.floor(this)},e.prototype.sign=function(){return this.throwIfDisposed(),pe.sign(this)},e.prototype.isNaN=function(){return this.throwIfDisposed(),pe.isNaN(this)},e.prototype.isInf=function(){return this.throwIfDisposed(),pe.isInf(this)},e.prototype.isFinite=function(){return this.throwIfDisposed(),pe.isFinite(this)},e.prototype.exp=function(){return this.throwIfDisposed(),pe.exp(this)},e.prototype.expm1=function(){return this.throwIfDisposed(),pe.expm1(this)},e.prototype.log=function(){return this.throwIfDisposed(),pe.log(this)},e.prototype.log1p=function(){return this.throwIfDisposed(),pe.log1p(this)},e.prototype.sqrt=function(){return this.throwIfDisposed(),pe.sqrt(this)},e.prototype.rsqrt=function(){return this.throwIfDisposed(),pe.rsqrt(this)},e.prototype.square=function(){return this.throwIfDisposed(),pe.square(this)},e.prototype.reciprocal=function(){return this.throwIfDisposed(),pe.reciprocal(this)},e.prototype.abs=function(){return this.throwIfDisposed(),pe.abs(this)},e.prototype.clipByValue=function(e,t){return this.throwIfDisposed(),pe.clipByValue(this,e,t)},e.prototype.relu=function(){return this.throwIfDisposed(),pe.relu(this)},e.prototype.relu6=function(){return this.throwIfDisposed(),pe.relu6(this)},e.prototype.elu=function(){return this.throwIfDisposed(),pe.elu(this)},e.prototype.selu=function(){return this.throwIfDisposed(),pe.selu(this)},e.prototype.leakyRelu=function(e){return void 0===e&&(e=.2),this.throwIfDisposed(),pe.leakyRelu(this,e)},e.prototype.prelu=function(e){return this.throwIfDisposed(),pe.prelu(this,e)},e.prototype.sigmoid=function(){return this.throwIfDisposed(),pe.sigmoid(this)},e.prototype.logSigmoid=function(){return this.throwIfDisposed(),pe.logSigmoid(this)},e.prototype.softplus=function(){return this.throwIfDisposed(),pe.softplus(this)},e.prototype.zerosLike=function(){return this.throwIfDisposed(),pe.zerosLike(this)},e.prototype.onesLike=function(){return this.throwIfDisposed(),pe.onesLike(this)},e.prototype.sin=function(){return this.throwIfDisposed(),pe.sin(this)},e.prototype.cos=function(){return this.throwIfDisposed(),pe.cos(this)},e.prototype.tan=function(){return this.throwIfDisposed(),pe.tan(this)},e.prototype.asin=function(){return this.throwIfDisposed(),pe.asin(this)},e.prototype.acos=function(){return this.throwIfDisposed(),pe.acos(this)},e.prototype.atan=function(){return this.throwIfDisposed(),pe.atan(this)},e.prototype.sinh=function(){return this.throwIfDisposed(),pe.sinh(this)},e.prototype.cosh=function(){return this.throwIfDisposed(),pe.cosh(this)},e.prototype.tanh=function(){return this.throwIfDisposed(),pe.tanh(this)},e.prototype.asinh=function(){return this.throwIfDisposed(),pe.asinh(this)},e.prototype.acosh=function(){return this.throwIfDisposed(),pe.acosh(this)},e.prototype.atanh=function(){return this.throwIfDisposed(),pe.atanh(this)},e.prototype.erf=function(){return this.throwIfDisposed(),pe.erf(this)},e.prototype.round=function(){return this.throwIfDisposed(),pe.round(this)},e.prototype.step=function(e){return void 0===e&&(e=0),this.throwIfDisposed(),pe.step(this,e)},e.prototype.softmax=function(e){return void 0===e&&(e=-1),this.throwIfDisposed(),pe.softmax(this,e)},e.prototype.logSoftmax=function(e){return void 0===e&&(e=-1),this.throwIfDisposed(),pe.logSoftmax(this,e)},e.prototype.resizeBilinear=function(e,t){return void 0===t&&(t=!1),this.throwIfDisposed(),pe.image.resizeBilinear(this,e,t)},e.prototype.resizeNearestNeighbor=function(e,t){return void 0===t&&(t=!1),this.throwIfDisposed(),pe.image.resizeNearestNeighbor(this,e,t)},e.prototype.conv1d=function(e,t,n,r,i,o){return void 0===r&&(r="NWC"),void 0===i&&(i=1),this.throwIfDisposed(),pe.conv1d(this,e,t,n,r,i,o)},e.prototype.conv2d=function(e,t,n,r,i,o){return void 0===r&&(r="NHWC"),void 0===i&&(i=[1,1]),this.throwIfDisposed(),pe.conv2d(this,e,t,n,r,i,o)},e.prototype.conv2dTranspose=function(e,t,n,r,i){return this.throwIfDisposed(),pe.conv2dTranspose(this,e,t,n,r,i)},e.prototype.depthwiseConv2D=function(e,t,n,r,i,o){return void 0===r&&(r="NHWC"),void 0===i&&(i=[1,1]),this.throwIfDisposed(),pe.depthwiseConv2d(this,e,t,n,r,i,o)},e.prototype.separableConv2d=function(e,t,n,r,i,o){return void 0===i&&(i=[1,1]),void 0===o&&(o="NHWC"),this.throwIfDisposed(),pe.separableConv2d(this,e,t,n,r,i,o)},e.prototype.avgPool=function(e,t,n,r){return this.throwIfDisposed(),pe.avgPool(this,e,t,n,r)},e.prototype.maxPool=function(e,t,n,r){return this.throwIfDisposed(),pe.maxPool(this,e,t,n,r)},e.prototype.localResponseNormalization=function(e,t,n,r){return void 0===e&&(e=5),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=.5),pe.localResponseNormalization(this,e,t,n,r)},e.prototype.pool=function(e,t,n,r,i){return this.throwIfDisposed(),pe.pool(this,e,t,n,r,i)},e.prototype.variable=function(e,t,n){return void 0===e&&(e=!0),this.throwIfDisposed(),de().makeVariable(this,e,t,n)},e.prototype.unsortedSegmentSum=function(e,t){return this.throwIfDisposed(),pe.unsortedSegmentSum(this,e,t)},e.prototype.batchToSpaceND=function(e,t){return this.throwIfDisposed(),pe.batchToSpaceND(this,e,t)},e.prototype.spaceToBatchND=function(e,t){return this.throwIfDisposed(),pe.spaceToBatchND(this,e,t)},e.prototype.topk=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=!0),this.throwIfDisposed(),pe.topk(this,e,t)},e.prototype.stridedSlice=function(e,t,n,r,i,o,a,u){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===u&&(u=0),this.throwIfDisposed(),pe.stridedSlice(this,e,t,n,r,i,o,a,u)},e.prototype.depthToSpace=function(e,t){return this.throwIfDisposed(),pe.depthToSpace(this,e,t)},e.prototype.fft=function(){return this.throwIfDisposed(),pe.spectral.fft(this)},e.prototype.ifft=function(){return this.throwIfDisposed(),pe.spectral.ifft(this)},e.prototype.rfft=function(){return this.throwIfDisposed(),pe.spectral.rfft(this)},e.prototype.irfft=function(){return this.throwIfDisposed(),pe.spectral.irfft(this)},e}();Object.defineProperty(ye,Symbol.hasInstance,{value:function(e){return!!e&&null!=e.dataId&&null!=e.shape&&null!=e.dtype}});var me,ge,be,we,_e,xe,ke=function(e){function t(t,n,r,i){var o=e.call(this,t.shape,t.dtype,t.dataId,i)||this;return o.trainable=n,o.name=r,o}return i(t,e),t.prototype.assign=function(e){if(e.dtype!==this.dtype)throw new Error("dtype of the new value ("+e.dtype+") and previous value ("+this.dtype+") must match");if(!A(e.shape,this.shape))throw new Error("shape of the new value ("+e.shape+") and previous value ("+this.shape+") must match");de().disposeTensor(this),this.dataId=e.dataId,de().incRef(this,null)},t.prototype.dispose=function(){de().disposeVariable(this),this.isDisposedInternal=!0},t}(ye);Object.defineProperty(ke,Symbol.hasInstance,{value:function(e){return e instanceof ye&&null!=e.assign&&e.assign instanceof Function}}),(xe=me||(me={})).R0="R0",xe.R1="R1",xe.R2="R2",xe.R3="R3",xe.R4="R4",xe.R5="R5",xe.R6="R6",function(e){e.float32="float32",e.int32="int32",e.bool="int32",e.complex64="complex64"}(ge||(ge={})),function(e){e.float32="float32",e.int32="int32",e.bool="bool",e.complex64="complex64"}(be||(be={})),function(e){e.float32="float32",e.int32="float32",e.bool="float32",e.complex64="complex64"}(we||(we={})),function(e){e.float32="complex64",e.int32="complex64",e.bool="complex64",e.complex64="complex64"}(_e||(_e={}));var Ce={float32:we,int32:ge,bool:be,complex64:_e};function Se(e,t){if("string"===e||"string"===t){if("string"===e&&"string"===t)return"string";throw new Error("Can not upcast "+e+" with "+t)}return Ce[e][t]}function Ee(e){return Se(e,"int32")}function Ae(e,t){if(e.dtype===t.dtype)return[e,t];var n=Se(e.dtype,t.dtype);return[e.cast(n),t.cast(n)]}function Oe(e,t){x(e.dtype===t.dtype,function(){return"The dtypes of the first("+e.dtype+") and second("+t.dtype+") input must match"})}function De(e){var t=[];return function e(t,n,r){if(null!=t){if(t instanceof ye)return void n.push(t);if(i=t,Array.isArray(i)||"object"==typeof i){var i,o=t;for(var a in o){var u=o[a];r.has(u)||(r.add(u),e(u,n,r))}}}}(e,t,new Set),t}Object.freeze({makeTypesMatch:Ae,assertTypesMatch:Oe,isTensorInList:function(e,t){return t.some(function(t){return t.id===e.id})},getTensorsInContainer:De});var Ie,Te=function(){function e(){this.registeredVariables={},this.nextTapeNodeId=0,this.numBytes=0,this.numTensors=0,this.numStringTensors=0,this.numDataBuffers=0,this.gradientDepth=0,this.kernelDepth=0,this.scopeStack=[],this.numDataMovesStack=[],this.nextScopeId=0,this.tensorInfo=new WeakMap,this.profiling=!1,this.activeProfile={newBytes:0,newTensors:0,peakBytes:0,kernels:[],result:null}}return e.prototype.dispose=function(){for(var e in this.registeredVariables)this.registeredVariables[e].dispose()},e}(),Me=function(){function e(e){this.ENV=e,this.registry={},this.registryFactory={},this.pendingBackendInitId=0,this.state=new Te}return e.prototype.ready=function(){return o(this,void 0,void 0,function(){var e,t,n;return a(this,function(r){switch(r.label){case 0:if(null!=this.pendingBackendInit)return[2,this.pendingBackendInit.then(function(){})];if(null!=this.backendInstance)return[2];e=this.getSortedBackends(),t=0,r.label=1;case 1:return t<e.length?[4,this.initializeBackend(n=e[t]).success]:[3,5];case 2:return r.sent()?[4,this.setBackend(n)]:[3,4];case 3:return r.sent(),[2];case 4:return t++,[3,1];case 5:throw new Error("Could not initialize any backends, all backend initializations failed.")}})})},Object.defineProperty(e.prototype,"backend",{get:function(){if(null!=this.pendingBackendInit)throw new Error("Backend '"+this.backendName+"' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods");if(null==this.backendInstance){var e=this.initializeBackendsAndReturnBest(),t=e.name;if(e.asyncInit)throw new Error("The highest priority backend '"+t+"' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods");this.setBackend(t)}return this.backendInstance},enumerable:!0,configurable:!0}),e.prototype.backendNames=function(){return Object.keys(this.registryFactory)},e.prototype.findBackend=function(e){return e in this.registry||e in this.registryFactory&&!this.initializeBackend(e).asyncInit?this.registry[e]:null},e.prototype.findBackendFactory=function(e){return e in this.registryFactory?this.registryFactory[e].factory:null},e.prototype.registerBackend=function(e,t,n){return void 0===n&&(n=1),e in this.registryFactory?(console.warn(e+" backend was already registered. Reusing existing backend factory."),!1):(this.registryFactory[e]={factory:t,priority:n},!0)},e.prototype.setBackend=function(e){return o(this,void 0,void 0,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:if(null==this.registryFactory[e])throw new Error("Backend name '"+e+"' not found in registry");return this.backendName=e,null!=this.registry[e]?[3,4]:(this.backendInstance=null,t=this.initializeBackend(e),n=t.success,t.asyncInit?[4,n]:[3,2]);case 1:return r=i.sent(),[3,3];case 2:r=n,i.label=3;case 3:if(!r)return[2,!1];i.label=4;case 4:return this.backendInstance=this.registry[e],this.setupRegisteredKernels(),this.profiler=new ue(this.backendInstance),[2,!0]}})})},e.prototype.setupRegisteredKernels=function(){var e=this;p(this.backendName).forEach(function(t){null!=t.setupFunc&&t.setupFunc(e.backendInstance)})},e.prototype.disposeRegisteredKernels=function(e){var t=this;p(e).forEach(function(n){null!=n.disposeFunc&&n.disposeFunc(t.registry[e])})},e.prototype.initializeBackend=function(e){var t=this,n=this.registryFactory[e];if(null==n)throw new Error("Cannot initialize backend "+e+", no registration found.");try{var r=n.factory();if(Promise.resolve(r)===r){var i=++this.pendingBackendInitId,o=r.then(function(n){return!(i<t.pendingBackendInitId||(t.registry[e]=n,t.pendingBackendInit=null,0))}).catch(function(n){return!(i<t.pendingBackendInitId||(t.pendingBackendInit=null,console.warn("Initialization of backend "+e+" failed"),console.warn(n.stack||n.message),1))});return this.pendingBackendInit=o,{success:o,asyncInit:!0}}return this.registry[e]=r,{success:!0,asyncInit:!1}}catch(a){return console.warn("Initialization of backend "+e+" failed"),console.warn(a.stack||a.message),{success:!1,asyncInit:!1}}},e.prototype.removeBackend=function(e){if(!(e in this.registryFactory))throw new Error(e+" backend not found in registry");this.backendName===e&&null!=this.pendingBackendInit&&this.pendingBackendInitId++,e in this.registry&&(this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e]),delete this.registryFactory[e],this.backendName===e&&(this.pendingBackendInit=null,this.backendName=null,this.backendInstance=null)},e.prototype.getSortedBackends=function(){var e=this;if(0===Object.keys(this.registryFactory).length)throw new Error("No backend found in registry.");return Object.keys(this.registryFactory).sort(function(t,n){return e.registryFactory[n].priority-e.registryFactory[t].priority})},e.prototype.initializeBackendsAndReturnBest=function(){for(var e=this.getSortedBackends(),t=0;t<e.length;t++){var n=e[t],r=this.initializeBackend(n),i=r.asyncInit;if(i||r.success)return{name:n,asyncInit:i}}throw new Error("Could not initialize any backends, all backend initializations failed.")},e.prototype.moveData=function(e,t){var n=this.state.tensorInfo.get(t),r=n.backend,i=this.readSync(t);r.disposeData(t),n.backend=e,e.move(t,i,n.shape,n.dtype),this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack[this.state.numDataMovesStack.length-1]++},e.prototype.tidy=function(e,t){var n,r=this,i=null;if(null==t){if("function"!=typeof e)throw new Error("Please provide a function to tidy()");t=e}else{if("string"!=typeof e&&!(e instanceof String))throw new Error("When calling with two arguments, the first argument to tidy() must be a string");if("function"!=typeof t)throw new Error("When calling with two arguments, the 2nd argument to tidy() must be a function");i=e}return this.scopedRun(function(){return r.startScope(i)},function(){return r.endScope(n)},function(){return(n=t())instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),n})},e.prototype.scopedRun=function(e,t,n){e();try{var r=n();return t(),r}catch(i){throw t(),i}},e.prototype.nextTensorId=function(){return e.nextTensorId++},e.prototype.nextVariableId=function(){return e.nextVariableId++},e.prototype.clone=function(e){var t=this.makeTensorFromDataId(e.dataId,e.shape,e.dtype);return this.addTapeNode(this.state.activeScope.name,{x:e},[t],function(e){return{x:function(){return e.toFloat()}}},[]),t},e.prototype.runKernel=function(e,t,n,r,i){return this.runKernelFunc(null,t,null,e,n,r,i)},e.prototype.shouldCheckForMemLeaks=function(){return this.ENV.getBool("IS_TEST")},e.prototype.checkKernelForMemLeak=function(e,t,n){var r=this.backend.numDataIds(),i=0;n.forEach(function(e){i+="complex64"===e.dtype?3:1});var o=r-t-i-this.state.numDataMovesStack[this.state.numDataMovesStack.length-1];if(o>0)throw new Error("Backend '"+this.backendName+"' has an internal memory leak ("+o+" data ids) after running '"+e+"'")},e.prototype.runKernelFunc=function(e,t,n,r,i,o,a){var u,s=this;void 0===o&&(o=[]),void 0===a&&(a=[]);var c=[],l=this.isTapeOn();null==r&&(r=null!=this.state.activeScope?this.state.activeScope.name:"");var f,h=function(e){l&&(c=e.map(function(e){return s.keep(s.clone(e))}))},p=this.state.numBytes,v=this.state.numTensors;this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack.push(0);var y,m=d(r,this.backendName);return f=null!=m?function(){var e=s.backend.numDataIds();y=m.kernelFunc({inputs:t,attrs:i,backend:s.backend});var n=Array.isArray(y)?y:[y];s.shouldCheckForMemLeaks()&&s.checkKernelForMemLeak(r,e,n);var u=n.map(function(e){return s.makeTensorFromDataId(e.dataId,e.shape,e.dtype)}),c=u.filter(function(e,t){return a[t]});return h((o||[]).slice().concat(c)),u}:function(){var t=s.backend.numDataIds();y=s.tidy(function(){return e(s.backend,h)});var n=Array.isArray(y)?y:[y];return s.shouldCheckForMemLeaks()&&s.checkKernelForMemLeak(r,t,n),n},this.scopedRun(function(){return s.state.kernelDepth++},function(){return s.state.kernelDepth--},function(){u=s.ENV.getBool("DEBUG")?s.profiler.profileKernel(r,t,function(){return f()}):f()}),l&&this.addTapeNode(r,t,u,n,c),this.state.profiling&&this.state.activeProfile.kernels.push({name:r,bytesAdded:this.state.numBytes-p,totalBytesSnapshot:this.state.numBytes,tensorsAdded:this.state.numTensors-v,totalTensorsSnapshot:this.state.numTensors,inputShapes:Object.keys(t).map(function(e){return t[e].shape}),outputShapes:u.map(function(e){return e.shape})}),Array.isArray(y)?u:u[0]},e.prototype.makeTensor=function(e,t,n,r){if(null==e)throw new Error("Values passed to engine.makeTensor() are null");r=r||this.backend;var i=e;"string"===(n=n||"float32")&&q(e[0])&&(i=e.map(function(e){return re(e)}));var o=r.write(i,t,n),a=new ye(t,n,o,this.nextTensorId());if(this.incRef(a,r),"string"===n){var u=this.state.tensorInfo.get(o),s=z(i);this.state.numBytes+=s-u.bytes,u.bytes=s}return a},e.prototype.makeTensorFromDataId=function(e,t,n,r){var i=new ye(t,n=n||"float32",e,this.nextTensorId());return this.incRef(i,r),i},e.prototype.makeVariable=function(e,t,n,r){void 0===t&&(t=!0),n=n||this.nextVariableId().toString(),null!=r&&r!==e.dtype&&(e=e.asType(r));var i=new ke(e,t,n,this.nextTensorId());if(null!=this.state.registeredVariables[i.name])throw new Error("Variable with name "+i.name+" was already registered");return this.state.registeredVariables[i.name]=i,this.incRef(i,this.backend),i},e.prototype.incRef=function(e,t){var n=this.state.tensorInfo.has(e.dataId)?this.state.tensorInfo.get(e.dataId).refCount:0;if(this.state.numTensors++,"string"===e.dtype&&this.state.numStringTensors++,0===n){this.state.numDataBuffers++;var r=0;"complex64"!==e.dtype&&"string"!==e.dtype&&(r=e.size*U(e.dtype)),this.state.tensorInfo.set(e.dataId,{backend:t||this.backend,dtype:e.dtype,shape:e.shape,bytes:r,refCount:0}),this.state.numBytes+=r}this.state.tensorInfo.get(e.dataId).refCount++,e instanceof ke||this.track(e)},e.prototype.disposeTensor=function(e){if(this.state.tensorInfo.has(e.dataId)){this.state.numTensors--,"string"===e.dtype&&this.state.numStringTensors--;var t=this.state.tensorInfo.get(e.dataId);t.refCount<=1?("complex64"!==e.dtype&&(this.state.numBytes-=t.bytes),this.state.numDataBuffers--,t.backend.disposeData(e.dataId),this.state.tensorInfo.delete(e.dataId)):this.state.tensorInfo.get(e.dataId).refCount--}},e.prototype.disposeVariables=function(){for(var e in this.state.registeredVariables)this.disposeVariable(this.state.registeredVariables[e])},e.prototype.disposeVariable=function(e){this.disposeTensor(e),null!=this.state.registeredVariables[e.name]&&delete this.state.registeredVariables[e.name]},e.prototype.memory=function(){var e=this.backend.memory();return e.numTensors=this.state.numTensors,e.numDataBuffers=this.state.numDataBuffers,e.numBytes=this.state.numBytes,this.state.numStringTensors>0&&(e.unreliable=!0,null==e.reasons&&(e.reasons=[]),e.reasons.push("Memory usage by string tensors is approximate (2 bytes per character)")),e},e.prototype.profile=function(e){return o(this,void 0,void 0,function(){var t,n;return a(this,function(r){return this.state.profiling=!0,t=this.state.numBytes,n=this.state.numTensors,this.state.activeProfile.kernels=[],this.state.activeProfile.result=e(),this.state.profiling=!1,this.state.activeProfile.peakBytes=Math.max.apply(Math,this.state.activeProfile.kernels.map(function(e){return e.totalBytesSnapshot})),this.state.activeProfile.newBytes=this.state.numBytes-t,this.state.activeProfile.newTensors=this.state.numTensors-n,[2,this.state.activeProfile]})})},e.prototype.isTapeOn=function(){return this.state.gradientDepth>0&&0===this.state.kernelDepth},e.prototype.addTapeNode=function(e,t,n,r,i){var o=this,a={id:this.state.nextTapeNodeId++,kernelName:e,inputs:t,outputs:n,saved:i},u=function(e){return h.get(e)}(e);null!=u&&(r=u.gradFunc),null!=r&&(a.gradient=function(e){return e=e.map(function(e,t){if(null==e){var r=n[t],i=ee(r.size,r.dtype);return o.makeTensor(i,r.shape,r.dtype)}return e}),r(e.length>1?e:e[0],i)}),this.state.activeTape.push(a)},e.prototype.keep=function(e){return e.kept=!0,e},e.prototype.startTape=function(){0===this.state.gradientDepth&&(this.state.activeTape=[]),this.state.gradientDepth++},e.prototype.endTape=function(){this.state.gradientDepth--},e.prototype.startScope=function(e){var t={track:[],name:"unnamed scope",id:this.state.nextScopeId++};e&&(t.name=e),this.state.scopeStack.push(t),this.state.activeScope=t},e.prototype.endScope=function(e){for(var t=this,n=De(e),r=new Set(n.map(function(e){return e.id})),i=0;i<this.state.activeScope.track.length;i++){var o=this.state.activeScope.track[i];o.kept||r.has(o.id)||o.dispose()}var a=this.state.scopeStack.pop();this.state.activeScope=0===this.state.scopeStack.length?null:this.state.scopeStack[this.state.scopeStack.length-1],n.forEach(function(e){e.kept||e.scopeId!==a.id||t.track(e)})},e.prototype.gradients=function(e,t,n,r){var i=this;if(void 0===r&&(r=!1),x(t.length>0,function(){return"gradients() received an empty list of xs."}),null!=n&&"float32"!==n.dtype)throw new Error("dy must have 'float32' dtype, but has '"+n.dtype+"'");var o=this.scopedRun(function(){return i.startTape()},function(){return i.endTape()},function(){return i.tidy("forward",e)});x(o instanceof ye,function(){return"The result y returned by f() must be a tensor."});var a=function(e,t,n){for(var r={},i={},o=0;o<t.length;o++)r[t[o].id]=!0;for(o=0;o<e.length;o++){var a=(p=e[o]).inputs;for(var u in a){for(var s=a[u],c=!1,l=0;l<t.length;l++)if(r[s.id]){p.outputs.forEach(function(e){return r[e.id]=!0}),c=!0,i[p.id]=!0;break}if(c)break}}var f={};f[n.id]=!0;var h={};for(o=e.length-1;o>=0;o--)for(a=(p=e[o]).inputs,l=0;l<p.outputs.length;l++)if(f[p.outputs[l].id]){for(var u in a)f[a[u].id]=!0,h[p.id]=!0;break}var d=[];for(o=0;o<e.length;o++){var p;if(i[(p=e[o]).id]&&h[p.id]){var v={};for(var u in p.inputs){var y=p.inputs[u];r[y.id]&&(v[u]=y)}var m=Object.assign({},p);m.inputs=v,m.outputs=p.outputs,d.push(m)}}return d}(this.state.activeTape,t,o);if(!r&&0===a.length&&t.length>0)throw new Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that the f you passed encloses all operations that lead from x to y.");return this.tidy("backward",function(){var e,r,u={};u[o.id]=null==n?(r=J(E(e=o.shape),"float32"),Pe.makeTensor(r,e,"float32")):n,function(e,t,n){for(var r=function(n){var r=t[n],o=[];if(r.outputs.forEach(function(t){var n=e[t.id];o.push(null!=n?n:null)}),null==r.gradient)throw new Error("Cannot compute gradient: gradient function not found for "+r.kernelName+".");var a=r.gradient(o),u=function(t){if(!(t in a))throw new Error("Cannot backprop through input "+t+". Available gradients found: "+Object.keys(a)+".");var n=i.tidy(function(){return a[t]()});if("float32"!==n.dtype)throw new Error("Error in gradient for op "+r.kernelName+". The gradient of input "+t+" must have 'float32' dtype, but has '"+n.dtype+"'");var o=r.inputs[t];if(!A(n.shape,o.shape))throw new Error("Error in gradient for op "+r.kernelName+". The gradient of input '"+t+"' has shape '"+n.shape+"', which does not match the shape of the input '"+o.shape+"'");if(null==e[o.id])e[o.id]=n;else{var u=e[o.id];e[o.id]=u.add(n),u.dispose()}};for(var s in r.inputs)u(s)},o=t.length-1;o>=0;o--)r(o)}(u,a);var s=t.map(function(e){return u[e.id]});return 0===i.state.gradientDepth&&(i.state.activeTape.forEach(function(e){for(var t=0,n=e.saved;t<n.length;t++)n[t].dispose()}),i.state.activeTape=null),{value:o,grads:s}})},e.prototype.customGrad=function(e){var t=this;return x(Y(e),function(){return"The f passed in customGrad(f) must be a function."}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];x(r.every(function(e){return e instanceof ye}),function(){return"The args passed in customGrad(f)(x1, x2,...) must all be tensors"});var o={};return r.forEach(function(e,t){o[t]=e}),t.runKernelFunc(function(t,i){return x((n=e.apply(void 0,r.concat([i]))).value instanceof ye,function(){return"The function f passed in customGrad(f) must return an object where `obj.value` is a tensor"}),x(Y(n.gradFunc),function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function."}),n.value},o,function(e,t){var i=n.gradFunc(e,t),o=Array.isArray(i)?i:[i];x(o.length===r.length,function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns the same number of tensors as inputs passed to f(...)."}),x(o.every(function(e){return e instanceof ye}),function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns a list of only tensors."});var a={};return o.forEach(function(e,t){a[t]=function(){return e}}),a})}},e.prototype.readSync=function(e){return this.state.tensorInfo.get(e).backend.readSync(e)},e.prototype.read=function(e){return this.state.tensorInfo.get(e).backend.read(e)},e.prototype.time=function(e){return o(this,void 0,void 0,function(){var t,n;return a(this,function(r){switch(r.label){case 0:return t=te(),[4,this.backend.time(e)];case 1:return(n=r.sent()).wallMs=te()-t,[2,n]}})})},e.prototype.track=function(e){return null!=this.state.activeScope&&(e.scopeId=this.state.activeScope.id,this.state.activeScope.track.push(e)),e},Object.defineProperty(e.prototype,"registeredVariables",{get:function(){return this.state.registeredVariables},enumerable:!0,configurable:!0}),e.prototype.reset=function(){for(var e in this.pendingBackendInitId++,this.state.dispose(),this.ENV.reset(),this.state=new Te,this.registry)this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e];this.backendName=null,this.backendInstance=null,this.pendingBackendInit=null},e.nextTensorId=0,e.nextVariableId=0,e}(),Pe=function(){var e=function(){if(null==Ie){var e=void 0;if("undefined"!=typeof window)e=window;else if("undefined"!=typeof global)e=global;else if("undefined"!=typeof process)e=process;else{if("undefined"==typeof self)throw new Error("Could not find a global object");e=self}Ie=e}return Ie}();if(null==e._tfengine){var t=new u(e);e._tfengine=new Me(t)}return l=e._tfengine.ENV,de=function(){return e._tfengine},e._tfengine}();function Re(){return"undefined"!=typeof window&&null!=window.document||"undefined"!=typeof WorkerGlobalScope}var Fe=c();Fe.registerFlag("DEBUG",function(){return!1},function(e){e&&console.warn("Debugging mode is ON. The output of every math call will be downloaded to CPU and checked for NaNs. This significantly impacts performance.")}),Fe.registerFlag("IS_BROWSER",function(){return Re()}),Fe.registerFlag("IS_NODE",function(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}),Fe.registerFlag("IS_CHROME",function(){return"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}),Fe.registerFlag("PROD",function(){return!1}),Fe.registerFlag("TENSORLIKE_CHECK_SHAPE_CONSISTENCY",function(){return Fe.getBool("DEBUG")}),Fe.registerFlag("DEPRECATION_WARNINGS_ENABLED",function(){return!0}),Fe.registerFlag("IS_TEST",function(){return!1});var Ne,je,Le,Be={},Ve={alpha:!1,antialias:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!1,depth:!1,stencil:!1,failIfMajorPerformanceCaveat:!0};function We(e,t){Be[e]=t}function Ue(e){e in Be||(Be[e]=function(e){if(1!==e&&2!==e)throw new Error("Cannot get WebGL rendering context, WebGL is disabled.");var t=function(e){if("undefined"!=typeof OffscreenCanvas&&2===e)return new OffscreenCanvas(300,150);if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}(e);return t.addEventListener("webglcontextlost",function(t){t.preventDefault(),delete Be[e]},!1),1===e?t.getContext("webgl",Ve)||t.getContext("experimental-webgl",Ve):t.getContext("webgl2",Ve)}(e));var t=Be[e];return t.isContextLost()?(delete Be[e],Ue(e)):(t.disable(t.DEPTH_TEST),t.disable(t.STENCIL_TEST),t.disable(t.BLEND),t.disable(t.DITHER),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SAMPLE_COVERAGE),t.enable(t.SCISSOR_TEST),t.enable(t.CULL_FACE),t.cullFace(t.BACK),Be[e])}function ze(e,t){return[t,e]}function qe(e){var t=E(e);return I(Math.ceil(t/4))}function He(e,t){return[Math.max(1,Math.ceil(t/2)),Math.max(1,Math.ceil(e/2))]}function Ge(e,t){var n,r,i,o,a,u,s,l,f,h=e;return 2===c().getNumber("WEBGL_VERSION")?(n=h.R32F,r=h.R16F,i=h.RGBA16F,o=h.RGBA32F,a=h.RED,u=4,s=1,l=h.HALF_FLOAT,f=h.FLOAT):(n=e.RGBA,r=e.RGBA,i=e.RGBA,o=h.RGBA,a=e.RGBA,u=4,s=4,l=null!=t?t.HALF_FLOAT_OES:null,f=e.FLOAT),{internalFormatFloat:n,internalFormatHalfFloat:r,internalFormatPackedHalfFloat:i,internalFormatPackedFloat:o,textureFormatFloat:a,downloadTextureFormat:e.RGBA,downloadUnpackNumChannels:u,defaultNumChannels:s,textureTypeHalfFloat:l,textureTypeFloat:f}}function Ke(e,t,n){var r=n();return t&&function(e){var t=e.getError();if(t!==e.NO_ERROR)throw new Error("WebGL Error: "+$e(e,t))}(e),r}function Ye(e){return!!(c().getBool("WEBGL_RENDER_FLOAT32_ENABLED")||0===e||5.96e-8<Math.abs(e)&&Math.abs(e)<65504)}function $e(e,t){switch(t){case e.NO_ERROR:return"NO_ERROR";case e.INVALID_ENUM:return"INVALID_ENUM";case e.INVALID_VALUE:return"INVALID_VALUE";case e.INVALID_OPERATION:return"INVALID_OPERATION";case e.INVALID_FRAMEBUFFER_OPERATION:return"INVALID_FRAMEBUFFER_OPERATION";case e.OUT_OF_MEMORY:return"OUT_OF_MEMORY";case e.CONTEXT_LOST_WEBGL:return"CONTEXT_LOST_WEBGL";default:return"Unknown error code "+t}}function Ze(e,t,n){return bt(e,t,function(){return e.getExtension(n)},'Extension "'+n+'" not supported on this browser.')}function Qe(e,t,n){var r=bt(e,t,function(){return e.createShader(e.VERTEX_SHADER)},"Unable to create vertex WebGLShader.");if(Ke(e,t,function(){return e.shaderSource(r,n)}),Ke(e,t,function(){return e.compileShader(r)}),!1===e.getShaderParameter(r,e.COMPILE_STATUS))throw console.log(e.getShaderInfoLog(r)),new Error("Failed to compile vertex shader.");return r}function Xe(e,t,n){var r=bt(e,t,function(){return e.createShader(e.FRAGMENT_SHADER)},"Unable to create fragment WebGLShader.");if(Ke(e,t,function(){return e.shaderSource(r,n)}),Ke(e,t,function(){return e.compileShader(r)}),!1===e.getShaderParameter(r,e.COMPILE_STATUS))throw function(e,t){var n=tt.exec(t);if(null==n)return console.log("Couldn't parse line number in error: "+t),void console.log(e);for(var r=+n[1],i=e.split("\n"),o=i.length.toString().length+2,a=i.map(function(e,t){return T((t+1).toString(),o)+e}),u=0,s=0;s<a.length;s++)u=Math.max(a[s].length,u);var c=a.slice(0,r-1),l=a.slice(r-1,r),f=a.slice(r);console.log(c.join("\n")),console.log(t.split("\n")[0]),console.log("%c "+T(l[0],u),"border:1px solid red; background-color:#e3d2d2; color:#a61717"),console.log(f.join("\n"))}(n,e.getShaderInfoLog(r)),new Error("Failed to compile fragment shader.");return r}(function(e){e[e.DENSE=0]="DENSE",e[e.SHARED_BATCH=1]="SHARED_BATCH"})(Ne||(Ne={})),function(e){e[e.RENDER=0]="RENDER",e[e.UPLOAD=1]="UPLOAD",e[e.PIXELS=2]="PIXELS",e[e.DOWNLOAD=3]="DOWNLOAD"}(je||(je={})),function(e){e[e.UNPACKED_FLOAT16=0]="UNPACKED_FLOAT16",e[e.UNPACKED_FLOAT32=1]="UNPACKED_FLOAT32",e[e.PACKED_4X1_UNSIGNED_BYTE=2]="PACKED_4X1_UNSIGNED_BYTE",e[e.PACKED_2X2_FLOAT32=3]="PACKED_2X2_FLOAT32",e[e.PACKED_2X2_FLOAT16=4]="PACKED_2X2_FLOAT16"}(Le||(Le={}));var Je,et,tt=/ERROR: [0-9]+:([0-9]+):/g;function nt(e,t){return bt(e,t,function(){return e.createProgram()},"Unable to create WebGLProgram.")}function rt(e,t,n){if(Ke(e,t,function(){return e.linkProgram(n)}),!1===e.getProgramParameter(n,e.LINK_STATUS))throw console.log(e.getProgramInfoLog(n)),new Error("Failed to link vertex and fragment shaders.")}function it(e,t,n){if(Ke(e,t,function(){return e.validateProgram(n)}),!1===e.getProgramParameter(n,e.VALIDATE_STATUS))throw console.log(e.getProgramInfoLog(n)),new Error("Shader program validation failed.")}function ot(e,t,n){var r=bt(e,t,function(){return e.createBuffer()},"Unable to create WebGLBuffer");return Ke(e,t,function(){return e.bindBuffer(e.ARRAY_BUFFER,r)}),Ke(e,t,function(){return e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW)}),r}function at(e,t,n){var r=bt(e,t,function(){return e.createBuffer()},"Unable to create WebGLBuffer");return Ke(e,t,function(){return e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,r)}),Ke(e,t,function(){return e.bufferData(e.ELEMENT_ARRAY_BUFFER,n,e.STATIC_DRAW)}),r}function ut(e,t){return bt(e,t,function(){return e.createTexture()},"Unable to create WebGLTexture.")}function st(e,t){var n=c().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(e<=0||t<=0){var r="["+e+"x"+t+"]";throw new Error("Requested texture size "+r+" is invalid.")}if(e>n||t>n)throw r="["+e+"x"+t+"]",new Error("Requested texture size "+r+" greater than WebGL maximum on this browser / GPU ["+n+"x"+n+"].")}function ct(e,t){return bt(e,t,function(){return e.createFramebuffer()},"Unable to create WebGLFramebuffer.")}function lt(e,t,n,r,i,o,a,u){var s=e.getAttribLocation(n,r);return-1!==s&&(Ke(e,t,function(){return e.bindBuffer(e.ARRAY_BUFFER,i)}),Ke(e,t,function(){return e.vertexAttribPointer(s,o,e.FLOAT,!1,a,u)}),Ke(e,t,function(){return e.enableVertexAttribArray(s)}),!0)}function ft(e,t,n,r){wt(e,r),Ke(e,t,function(){return e.activeTexture(e.TEXTURE0+r)}),Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,n)})}function ht(e,t,n,r){return bt(e,t,function(){return e.getUniformLocation(n,r)},'uniform "'+r+'" not present in program.')}function dt(e,t,n){return e.getUniformLocation(t,n)}function pt(e,t,n,r,i,o){Ke(e,t,function(){return ft(e,t,r,o)}),Ke(e,t,function(){return e.uniform1i(i,o)})}function vt(e,t,n,r){Ke(e,t,function(){return e.bindFramebuffer(e.FRAMEBUFFER,r)}),Ke(e,t,function(){return e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0)})}function yt(e,t,n){Ke(e,t,function(){return e.bindFramebuffer(e.FRAMEBUFFER,n)}),Ke(e,t,function(){return e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,null,0)})}function mt(e){var t=e.checkFramebufferStatus(e.FRAMEBUFFER);if(t!==e.FRAMEBUFFER_COMPLETE)throw new Error("Error binding framebuffer: "+gt(e,t))}function gt(e,t){switch(t){case e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:return"FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case e.FRAMEBUFFER_UNSUPPORTED:return"FRAMEBUFFER_UNSUPPORTED";default:return"unknown error "+t}}function bt(e,t,n,r){var i=Ke(e,t,function(){return n()});if(null==i)throw new Error(r);return i}function wt(e,t){var n=e.MAX_COMBINED_TEXTURE_IMAGE_UNITS-1,r=t+e.TEXTURE0;if(r<e.TEXTURE0||r>n)throw new Error("textureUnit must be in [gl.TEXTURE0, gl.TEXTURE"+n+"].")}function _t(e,t){return void 0===t&&(t=2),E(e.slice(0,e.length-t))}function xt(e){if(0===e.length)throw Error("Cannot get rows and columns of an empty shape array.");return[e.length>1?e[e.length-2]:1,e[e.length-1]]}function kt(e){var t=[1,1,1];return 0===e.length||1===e.length&&1===e[0]||(t=[_t(e)].concat(xt(e))),t}function Ct(e,t){var n;void 0===t&&(t=!1);var r=c().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(t&&(r*=2,1===(e=e.map(function(t,n){return n>=e.length-2?w(e[n]):e[n]})).length&&(e=[2,e[0]])),2!==e.length){var i=F(e);e=i.newShape}var o=E(e);if(e.length<=1&&o<=r)return[1,o];if(2===e.length&&e[0]<=r&&e[1]<=r)return e;if(3===e.length&&e[0]*e[1]<=r&&e[2]<=r)return[e[0]*e[1],e[2]];if(3===e.length&&e[0]<=r&&e[1]*e[2]<=r)return[e[0],e[1]*e[2]];if(4===e.length&&e[0]*e[1]*e[2]<=r&&e[3]<=r)return[e[0]*e[1]*e[2],e[3]];if(4===e.length&&e[0]<=r&&e[1]*e[2]*e[3]<=r)return[e[0],e[1]*e[2]*e[3]];if(t){var a=_t(e),u=2,s=2;return e.length&&(u=(n=xt(e))[0],s=n[1]),I(o=a*(u/2)*(s/2)).map(function(e){return 2*e})}return I(o)}function St(e){return e%2==0}function Et(e,t){if(A(e=e.slice(-2),t=t.slice(-2))||!e.length||!t.length||0===e[0]||0===e[1]||0===t[0]||0===t[1])return!0;if(e.length!==t.length){var n=e.slice(-1)[0],r=t.slice(-1)[0];if(n===r||St(n)&&St(r)&&(1===e[0]||1===t[0]))return!0}return e[1]===t[1]&&St(e[0])&&St(t[0])}function At(e){if(null==Je){var t=Ue(e);Je=t.getParameter(t.MAX_TEXTURE_SIZE)}return Je}function Ot(e){if(null==et){var t=Ue(e);et=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS)}return Math.min(16,et)}function Dt(e){if(0===e)return 0;var t=Ue(e);return It(t,"EXT_disjoint_timer_query_webgl2")&&2===e?2:It(t,"EXT_disjoint_timer_query")?1:0}function It(e,t){return null!=e.getExtension(t)}function Tt(e){try{if(null!=Ue(e))return!0}catch(t){return!1}return!1}function Mt(e){if(0===e)return!1;var t=Ue(e);if(1===e){if(!It(t,"OES_texture_float"))return!1}else if(!It(t,"EXT_color_buffer_float"))return!1;return Rt(t)}function Pt(e){if(0===e)return!1;var t=Ue(e);if(1!==e){if(It(t,"EXT_color_buffer_float"))return Rt(t);if(It(t,"EXT_color_buffer_half_float")){var n=t.getExtension("EXT_color_buffer_half_float");return function(e,t){var n=Ge(e,t),r=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,n.internalFormatHalfFloat,1,1,0,n.textureFormatFloat,n.textureTypeHalfFloat,null);var i=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,i),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0);var o=e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE;return e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),e.deleteTexture(r),e.deleteFramebuffer(i),o}(t,n)}return!1}return!!It(t,"OES_texture_float")&&!!It(t,"WEBGL_color_buffer_float")&&Rt(t)}function Rt(e){var t=Ge(e),n=e.createTexture();e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,t.internalFormatFloat,1,1,0,t.textureFormatFloat,t.textureTypeFloat,null);var r=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);var i=e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE;return e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),e.deleteTexture(n),e.deleteFramebuffer(r),i}function Ft(e){return 2===e&&null!=Ue(e).fenceSync}var Nt=Object.freeze({callAndCheck:Ke,canBeRepresented:Ye,getWebGLErrorMessage:$e,getExtensionOrThrow:Ze,createVertexShader:Qe,createFragmentShader:Xe,createProgram:nt,linkProgram:rt,validateProgram:it,createStaticVertexBuffer:ot,createStaticIndexBuffer:at,getNumChannels:function(){return 2===c().getNumber("WEBGL_VERSION")?1:4},createTexture:ut,validateTextureSize:st,createFramebuffer:ct,bindVertexBufferToProgramAttribute:lt,bindTextureUnit:ft,unbindTextureUnit:function(e,t,n){wt(e,n),Ke(e,t,function(){return e.activeTexture(e.TEXTURE0+n)}),Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,null)})},getProgramUniformLocationOrThrow:ht,getProgramUniformLocation:dt,bindTextureToProgramUniformSampler:pt,bindCanvasToFramebuffer:function(e,t){Ke(e,t,function(){return e.bindFramebuffer(e.FRAMEBUFFER,null)}),Ke(e,t,function(){return e.viewport(0,0,e.canvas.width,e.canvas.height)}),Ke(e,t,function(){return e.scissor(0,0,e.canvas.width,e.canvas.height)})},bindColorTextureToFramebuffer:vt,unbindColorTextureFromFramebuffer:yt,validateFramebuffer:mt,getFramebufferErrorMessage:gt,getBatchDim:_t,getRowsCols:xt,getShapeAs3D:kt,getTextureShapeFromLogicalShape:Ct,isReshapeFree:Et,getWebGLMaxTextureSize:At,resetMaxTextureSize:function(){Je=null},resetMaxTexturesInShader:function(){et=null},getMaxTexturesInShader:Ot,getWebGLDisjointQueryTimerVersion:Dt,hasExtension:It,isWebGLVersionEnabled:Tt,isCapableOfRenderingToFloatTexture:Mt,isDownloadFloatTextureEnabled:Pt,isWebGLFenceEnabled:Ft}),jt=c();function Lt(e){c().getBool("DEPRECATION_WARNINGS_ENABLED")&&console.warn(e+" You can disable deprecation warnings with tf.disableDeprecationWarnings().")}function Bt(e,t){return Pe.tidy(e,t)}function Vt(e){De(e).forEach(function(e){return e.dispose()})}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];c().getBool("IS_TEST")||console.warn.apply(console,e)}function Ut(e,t){var n=e;if(W(e))return"string"===t?[]:[e.length];if(!Array.isArray(e))return[];for(var r=[];Array.isArray(n)||W(n)&&"string"!==t;)r.push(n.length),n=n[0];return Array.isArray(e)&&c().getBool("TENSORLIKE_CHECK_SHAPE_CONSISTENCY")&&function e(t,n,r){if(r=r||[],Array.isArray(t)||W(t)){x(n.length>0,function(){return"Element arr["+r.join("][")+"] should be a primitive, but is an array of "+t.length+" elements"}),x(t.length===n[0],function(){return"Element arr["+r.join("][")+"] should have "+n[0]+" elements, but has "+t.length+" elements"});for(var i=n.slice(1),o=0;o<t.length;++o)e(t[o],i,r.concat(o))}else x(0===n.length,function(){return"Element arr["+r.join("][")+"] is a primitive, but should be an array/TypedArray of "+n[0]+" elements"})}(e,r,[]),r}function zt(e,t,n,r){if(null!=e&&("numeric"!==e&&e!==t||"numeric"===e&&"string"===t))throw new Error("Argument '"+n+"' passed to '"+r+"' must be "+e+" tensor, but got "+t+" tensor")}function qt(e,t,n,r){if(void 0===r&&(r="numeric"),e instanceof ye)return zt(r,e.dtype,t,n),e;var i=K(e);if("string"!==i&&["bool","int32","float32"].indexOf(r)>=0&&(i=r),zt(r,i,t,n),null==e||!W(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e)throw new Error("Argument '"+t+"' passed to '"+n+"' must be a Tensor or TensorLike, but got '"+(null==e?"null":e.constructor.name)+"'");var o=Ut(e,i);W(e)||Array.isArray(e)||(e=[e]);var a="string"!==i?Q(e,i,c().getBool("DEBUG")):S(e,[],!0);return Pe.makeTensor(a,o,i)}function Ht(e,t,n,r){if(void 0===r&&(r="numeric"),!Array.isArray(e))throw new Error("Argument "+t+" passed to "+n+" must be a `Tensor[]` or `TensorLike[]`");return e.map(function(e,r){return qt(e,t+"["+r+"]",n)},r)}function Gt(e,t){for(var n=0;n<e.length;++n)if(e[e.length-n-1]!==t-1-n)return!1;return!0}function Kt(e,t,n){for(var r=e.length+t.length,i=[],o=0,a=0,u=0;u<r;u++)-1===n.indexOf(u)?i.push(e[o++]):i.push(t[a++]);return i}function Yt(e,t){for(var n=[],r=e.length,i=0;i<r;i++)-1===t.indexOf(i)&&n.push(e[i]);return[n,t.map(function(t){return e[t]})]}function $t(e,t){return Kt(e,t.map(function(e){return 1}),t)}function Zt(e,t,n){x(Gt(t,n),function(){return e+" supports only inner-most axes for now. Got axes "+t+" and rank-"+n+" input."})}function Qt(e,t){if(Gt(e,t))return null;for(var n=[],r=0;r<t;++r)-1===e.indexOf(r)&&n.push(r);return e.forEach(function(e){return n.push(e)}),n}function Xt(e){return e.map(function(e,t){return[t,e]}).sort(function(e,t){return e[1]-t[1]}).map(function(e){return e[0]})}function Jt(e,t){for(var n=[],r=t-e;r<t;++r)n.push(r);return n}function en(e,t){var n=e[0].length;e.forEach(function(e,t){x(e.length===n,function(){return"Error in concat"+n+"D: rank of tensors["+t+"] must be the same as the rank of the rest ("+n+")"})}),x(t>=0&&t<n,function(){return"Error in concat"+n+"D: axis must be between 0 and "+(n-1)+"."});var r=e[0];e.forEach(function(e,i){for(var o=0;o<n;o++)x(o===t||e[o]===r[o],function(){return"Error in concat"+n+"D: Shape of tensors["+i+"] ("+e+") does not match the shape of the rest ("+r+") along the non-concatenated axis "+i+"."})})}function tn(e,t){for(var n=e[0].slice(),r=1;r<e.length;r++)n[t]+=e[r][t];return n}function nn(e){var t=Object.keys(e);if(1!==t.length)throw new Error("Please provide an object with a single key (operation name) mapping to a function. Got an object with "+t.length+" keys.");var n=t[0],r=e[n];n.endsWith("_")&&(n=n.substring(0,n.length-1));var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Pe.startScope(n);try{var i=r.apply(void 0,e);return i instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),Pe.endScope(i),i}catch(o){throw Pe.endScope(null),o}};return Object.defineProperty(i,"name",{value:n,configurable:!0}),i}
vendor: 4,841 bytes, line 1
1jt.registerFlag("HAS_WEBGL",function(){return jt.getNumber("WEBGL_VERSION")>0}),jt.registerFlag("WEBGL_VERSION",function(){return Tt(2)?2:Tt(1)?1:0}),jt.registerFlag("WEBGL_BUFFER_SUPPORTED",function(){return 2===jt.get("WEBGL_VERSION")}),jt.registerFlag("WEBGL_CPU_FORWARD",function(){return!0}),jt.registerFlag("WEBGL_FORCE_F16_TEXTURES",function(){return!1}),jt.registerFlag("WEBGL_PACK",function(){return jt.getBool("HAS_WEBGL")}),jt.registerFlag("WEBGL_PACK_NORMALIZATION",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_CLIP",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_DEPTHWISECONV",function(){return!1}),jt.registerFlag("WEBGL_PACK_BINARY_OPERATIONS",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_UNARY_OPERATIONS",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_ARRAY_OPERATIONS",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_IMAGE_OPERATIONS",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_PACK_REDUCE",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_LAZILY_UNPACK",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_CONV_IM2COL",function(){return jt.getBool("WEBGL_PACK")}),jt.registerFlag("WEBGL_MAX_TEXTURE_SIZE",function(){return At(jt.getNumber("WEBGL_VERSION"))}),jt.registerFlag("WEBGL_MAX_TEXTURES_IN_SHADER",function(){return Ot(jt.getNumber("WEBGL_VERSION"))}),jt.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION",function(){var e=jt.getNumber("WEBGL_VERSION");return 0===e?0:Dt(e)}),jt.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE",function(){return jt.getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0&&(e=navigator.userAgent||navigator.vendor||window.opera,!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))));var e}),jt.registerFlag("WEBGL_RENDER_FLOAT32_CAPABLE",function(){return Mt(jt.getNumber("WEBGL_VERSION"))}),jt.registerFlag("WEBGL_RENDER_FLOAT32_ENABLED",function(){return!jt.getBool("WEBGL_FORCE_F16_TEXTURES")&&jt.getBool("WEBGL_RENDER_FLOAT32_CAPABLE")}),jt.registerFlag("WEBGL_DOWNLOAD_FLOAT_ENABLED",function(){return Pt(jt.getNumber("WEBGL_VERSION"))}),jt.registerFlag("WEBGL_FENCE_API_ENABLED",function(){return Ft(jt.getNumber("WEBGL_VERSION"))}),jt.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM",function(){return jt.getBool("WEBGL_RENDER_FLOAT32_ENABLED")?4:0}),ve=Lt;var rn=nn({complex_:function(e,t){var n=qt(e,"real","complex"),r=qt(t,"imag","complex");return k(n.shape,r.shape,"real and imag shapes, "+n.shape+" and "+r.shape+", must match in call to tf.complex()."),Pe.runKernelFunc(function(e){return e.complex(n,r)},{$real:n,$imag:r})}}),on=nn({real_:function(e){var t=qt(e,"input","real");return Pe.runKernelFunc(function(e){return e.real(t)},{$input:t})}}),an=nn({imag_:function(e){var t=qt(e,"input","imag");return Pe.runKernelFunc(function(e){return e.imag(t)}
vendor: 6,355 bytes, line 1
1,{$input:t})}});function un(e,t,n){return sn(e,t,Ut(e,n),n)}function sn(e,t,n,r){if(null==r&&(r=K(e)),"complex64"===r)throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");if(!W(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e)throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");if(null!=t){ne(t);var i=E(t),o=E(n);x(i===o,function(){return"Based on the provided shape, ["+t+"], the tensor should have "+i+" values but has "+o});for(var a=0;a<n.length;++a){var u=a!==n.length-1||n[a]!==E(t.slice(a));x(n[a]===t[a]||!u,function(){return"Error creating a new Tensor. Inferred shape ("+n+") does not match the provided shape ("+t+"). "})}}return W(e)||Array.isArray(e)||(e=[e]),t=t||n,e="string"!==r?Q(e,r,c().getBool("DEBUG")):S(e,[],!0),Pe.makeTensor(e,t,r)}function cn(e,t){if((W(e)&&"string"!==t||Array.isArray(e))&&"complex64"!==t)throw new Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");if("string"===t&&W(e)&&!(e instanceof Uint8Array))throw new Error("When making a scalar from encoded string, the value must be `Uint8Array`.");return sn(e,[],[],t)}function ln(e,t){C(e);var n=Ut(e,t);if(1!==n.length)throw new Error("tensor1d() requires values to be a flat/TypedArray");return sn(e,null,n,t)}function fn(e,t,n){if(C(e),null!=t&&2!==t.length)throw new Error("tensor2d() requires shape to have two numbers");var r=Ut(e,n);if(2!==r.length&&1!==r.length)throw new Error("tensor2d() requires values to be number[][] or flat/TypedArray");if(1===r.length&&null==t)throw new Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");return sn(e,t,r,n)}function hn(e,t,n){if(C(e),null!=t&&3!==t.length)throw new Error("tensor3d() requires shape to have three numbers");var r=Ut(e,n);if(3!==r.length&&1!==r.length)throw new Error("tensor3d() requires values to be number[][][] or flat/TypedArray");if(1===r.length&&null==t)throw new Error("tensor3d() requires shape to be provided when `values` are a flat array");return sn(e,t,r,n)}function dn(e,t,n){if(C(e),null!=t&&4!==t.length)throw new Error("tensor4d() requires shape to have four numbers");var r=Ut(e,n);if(4!==r.length&&1!==r.length)throw new Error("tensor4d() requires values to be number[][][][] or flat/TypedArray");if(1===r.length&&null==t)throw new Error("tensor4d() requires shape to be provided when `values` are a flat array");return sn(e,t,r,n)}function pn(e,t){if(void 0===t&&(t="float32"),"complex64"===t){var n=pn(e,"float32"),r=vn(e,"float32");return rn(n,r)}var i=J(E(e),t);return Pe.makeTensor(i,e,t)}function vn(e,t){if(void 0===t&&(t="float32"),"complex64"===t){var n=vn(e,"float32"),r=vn(e,"float32");return rn(n,r)}var i=ee(E(e),t);return Pe.makeTensor(i,e,t)}function yn(e,t,n){return Pe.runKernelFunc(function(r){return r.fill(e,t,n)},{})}function mn(e,t,n,r){if(void 0===n&&(n=1),void 0===r&&(r="float32"),0===n)throw new Error("Cannot have a step of zero");if(e===t||e<t&&n<0||t<e&&n>1)return vn([0],r);var i=ee(Math.abs(Math.ceil((t-e)/n)),r);t<e&&1===n&&(n=-1),i[0]=e;for(var o=1;o<i.length;o++)i[o]=i[o-1]+n;return ln(i,r)}var gn=nn({onesLike_:function(e){var t=qt(e,"x","onesLike");if("complex64"===t.dtype){var n=gn(on(t)),r=bn(an(t));return rn(n,r)}return Pe.runKernelFunc(function(e){return e.onesLike(t)},{$x:t},function(e,t){return{$x:function(){return bn(e)}}})}}),bn=nn({zerosLike_:function(e){var t=qt(e,"x","zerosLike");return Pe.runKernelFunc(function(e){return e.zerosLike(t)},{$x:t},function(e,t){return{$x:function(){return bn(e)}}})}}),wn=nn({concat_:function(e,t){void 0===t&&(t=0),x(e.length>=1,function(){return"Pass at least one tensor to concat"});var n=Ht(e,"tensors","concat");"complex64"===n[0].dtype&&n.forEach(function(e){if("complex64"!==e.dtype)throw new Error("Cannot concatenate complex64 tensors with a tensor\n with dtype "+e.dtype+". ")}),t=R(t,n[0].shape)[0];var r=tn(n.map(function(e){return e.shape}),t);if(0===E(r))return un([],r);if(1===(n=n.filter(function(e){return e.size>0})).length)return n[0];var i=n.map(function(e){return e.shape});return en(i,t),Pe.runKernelFunc(function(e){return e.concat(n,t)},n,function(e){var n=i.map(function(e){return e[t]});return Sn(e,n,t).map(function(e){return function(){return e}})},"Concat",{axis:t})}}),_n=nn({concat1d_:function(e){return wn(e,0)}}),xn=nn({concat2d_:function(e,t){return wn(e,t)}}),kn=nn({concat3d_:function(e,t){return wn(e,t)}}),Cn=nn({concat4d_:function(e,t){return wn(e,t)}}),Sn=nn({split_:function(e,t,n){void 0===n&&(n=0);var r,i=qt(e,"x","split");return n=R(n,i.shape)[0],"number"==typeof t?(x(i.shape[n]%t==0,function(){return"Number of splits must evenly divide the axis."}),r=new Array(t).fill(i.shape[n]/t)):(x(i.shape[n]===t.reduce(function(e,t){return e+t}),function(){return"The sum of sizes must match the size of the axis dimension."}),r=t),Pe.runKernelFunc(function(e){return e.split(i,r,n)},{$x:i},function(e){return{$x:function(){return wn(e,n)}}})}});function En(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis||"undefined"!=typeof window||"undefined"!=typeof global&&global;var An=En(function(e){!function(e,t,n){function r(e){var t,n=this,r=(t=4022871197,function(e){e=e.toString();for(var n=0;n<e.length;n++){var r=.02519603282416938*(t+=e.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1),r=null}function i(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function o(e,t){var n=new r(e),o=t&&t.state,a=n.next;return a.int32=function(){return 4294967296*n.next()|0},a.double=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.quick=a,o&&("object"==typeof o&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.alea=o}(0,e)}),On=En(function(e){!function(e,t,n){function r(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;
vendor: 7,474 bytes, line 1
1r++)t.x^=0|n.charCodeAt(r),t.next()}function i(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function o(e,t){var n=new r(e),o=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,o&&("object"==typeof o&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.xor128=o}(0,e)}),Dn=En(function(e){!function(e,t,n){function r(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=0|n.charCodeAt(r),r==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function i(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function o(e,t){var n=new r(e),o=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,o&&("object"==typeof o&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.xorwow=o}(0,e)}),In=En(function(e){!function(e,t,n){function r(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],n=(e^=e>>>7)^e<<24,n^=(e=r[i+1&7])^e>>>10,n^=(e=r[i+3&7])^e>>>3,n^=(e=r[i+4&7])^e<<7,e=r[i+7&7],n^=(e^=e<<13)^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n<t.length;++n)r[7&n]=r[7&n]<<15^t.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n&&(r[7]=-1),e.x=r,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function i(e,t){return t.x=e.x.slice(),t.i=e.i,t}function o(e,t){null==e&&(e=+new Date);var n=new r(e),o=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,o&&(o.x&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.xorshift7=o}(0,e)}),Tn=En(function(e){!function(e,t,n){function r(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+1640531527|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n=i[o]=(n^=n>>>15)^(e^=e>>>12),t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,u=[],s=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,s=Math.max(s,t.length)),i=0,o=-32;o<s;++o)t&&(r^=t.charCodeAt((o+32)%t.length)),0===o&&(a=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,o>=0&&(i=0==(n=u[127&o]^=r+(a=a+1640531527|0))?i+1:0);for(i>=128&&(u[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=u[i+34&127],n=u[i=i+1&127],r^=r<<13,n^=n<<17,u[i]=(r^=r>>>15)^(n^=n>>>12);e.w=a,e.X=u,e.i=i}(t,e)}function i(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function o(e,t){null==e&&(e=+new Date);var n=new r(e),o=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,o&&(o.X&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.xor4096=o}(0,e)}),Mn=En(function(e){!function(e,t,n){function r(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r<n.length+20;r++)t.b^=0|n.charCodeAt(r),t.next()}function i(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function o(e,t){var n=new r(e),o=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,o&&("object"==typeof o&&i(o,n),a.state=function(){return i(n,{})}),a}t&&t.exports?t.exports=o:this.tychei=o}(0,e)}),Pn=En(function(e){!function(t,r){var i,o=this,a=256,u="random",s=r.pow(a,6),c=r.pow(2,52),l=2*c,f=255;function h(e,n,f){var h=[],m=v(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(a){}return i.length?i:"string"==o?t:t+"\0"}((n=1==n?{entropy:!0}:n||{}).entropy?[e,y(t)]:null==e?function(){try{var e;return i&&(e=i.randomBytes)?e=e(a):(e=new Uint8Array(a),(o.crypto||o.msCrypto).getRandomValues(e)),y(e)}catch(u){var n=o.navigator,r=n&&n.plugins;return[+new Date,o,r,o.screen,y(t)]}}():e,3),h),g=new d(h),b=function(){for(var e=g.g(6),t=s,n=0;e<c;)e=(e+n)*a,t*=a,n=g.g(1);for(;e>=l;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|g.g(4)},b.quick=function(){return g.g(4)/4294967296},b.double=b,v(y(g.S),t),(n.pass||f||function(e,t,n,i){return i&&(i.S&&p(i,g),e.state=function(){return p(g,{})}),n?(r[u]=e,t):e})(b,m,"global"in n?n.global:this==r,n.state)}function d(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,u=r.S=[];for(n||(e=[n++]);i<a;)u[i]=i++;for(i=0;i<a;i++)u[i]=u[o=f&o+e[i%n]+(t=u[i])],u[o]=t;(r.g=function(e){for(var t,n=0,i=r.i,o=r.j,u=r.S;e--;)t=u[i=f&i+1],n=n*a+u[f&(u[i]=u[o=f&o+t])+(u[o]=t)];return r.i=i,r.j=o,n})(a)}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function v(e,t){for(var n,r=e+"",i=0;i<r.length;)t[f&i]=f&(n^=19*t[f&i])+r.charCodeAt(i++);return y(t)}function y(e){return String.fromCharCode.apply(0,e)}if(r["seed"+u]=h,v(r.random(),t),e.exports){e.exports=h;try{i=n(28369)}catch(m){}}}([],Math)});Pn.alea=An,Pn.xor128=On,Pn.xorwow=Dn,Pn.xorshift7=In,Pn.xor4096=Tn,Pn.tychei=Mn;var Rn=Pn.alea,Fn=function(){function e(e,t,n,r,i){this.mean=e,this.stdDev=t,this.dtype=n,this.nextVal=NaN,this.truncated=r,this.truncated&&(this.upper=this.mean+2*this.stdDev,this.lower=this.mean-2*this.stdDev);var o=i||Math.random();this.random=Rn(o.toString())}return e.prototype.nextValue=function(){if(!isNaN(this.nextVal)){var e=this.nextVal;return this.nextVal=NaN,e}for(var t,n,r=!1;!r;){var i=void 0,o=void 0,a=void 0;do{a=(i=2*this.random()-1)*i+(o=2*this.random()-1)*o}while(a>=1||0===a);var u=Math.sqrt(-2*Math.log(a)/a);t=this.mean+this.stdDev*i*u,n=this.mean+this.stdDev*o*u,this.truncated&&!this.isValidTruncated(t)||(r=!0)}return this.truncated&&!this.isValidTruncated(n)||(this.nextVal=this.convertValue(n)),this.convertValue(t)},e.prototype.convertValue=function(e){return null==this.dtype||"float32"===this.dtype?e:Math.round(e)},e.prototype.isValidTruncated=function(e){return e<=this.upper&&e>=this.lower},e}(),Nn=function(){function e(e,t,n,r){this.alpha=e,this.beta=1/t,this.dtype=n;var i=r||Math.random();this.randu=Rn(i.toString()),this.randn=new Fn(0,1,n,!1,this.randu()),this.d=e<1?e+2/3:e-1/3,this.c=1/Math.sqrt(9*this.d)}return e.prototype.nextValue=function(){for(var e,t,n,r,i,o;;){do{r=this.randn.nextValue(),o=1+this.c*r}while(o<=0);if(t=1-.331*(e=r*r)*e,n=.5*e+this.d*(1-(o*=o*o)+Math.log(o)),(i=this.randu())<t||Math.log(i)<n)break}return o*=1/this.beta*this.d,this.alpha<1&&(o*=Math.pow(this.randu(),1/this.alpha)),this.convertValue(o)},e.prototype.convertValue=function(e){return"float32"===this.dtype?e:Math.round(e)},e}(),jn=function(){function e(e,t,n,r){var i=this;if(void 0===e&&(e=0),void 0===t&&(t=1),this.canReturnFloat=function(){return null==i.dtype||"float32"===i.dtype},this.min=e,this.range=t-e,this.dtype=n,null==r&&(r=Math.random()),"number"==typeof r&&(r=r.toString()),!this.canReturnFloat()&&this.range<=1)throw new Error("The difference between "+e+" - "+t+" <= 1 and dtype is not float");this.random=Rn(r)}
vendor: 14,353 bytes, line 1
1return e.prototype.convertValue=function(e){return this.canReturnFloat()?e:Math.round(e)},e.prototype.nextValue=function(){return this.convertValue(this.min+this.range*this.random())},e}();function Ln(e,t,n){return void 0===t&&(t="float32"),t=t||"float32",ne(e),new he(e,t,n)}var Bn=nn({batchToSpaceND_:function(e,t,n){var r=qt(e,"x","batchToSpaceND"),i=t.reduce(function(e,t){return e*t});return x(r.rank>=1+t.length,function(){return"input rank is "+r.rank+" but should be > than blockShape.length "+t.length}),x(n.length===t.length,function(){return"crops.length is "+n.length+" but should be equal to blockShape.length "+t.length}),x(r.shape[0]%i==0,function(){return"input tensor batch is "+r.shape[0]+" but is not divisible by the product of the elements of blockShape "+t.join(" * ")+" === "+i}),Pe.runKernelFunc(function(e){return e.batchToSpaceND(r,t,n)},{$x:r},function(e){return{$x:function(){return e.spaceToBatchND(t,n)}}})}}),Vn=nn({broadcastTo_:function(e,t){var n=qt(e,"broadcastTo","x"),r=n.shape;if(t.some(function(e){return!(e>0)||e%1!=0}))throw new Error("broadcastTo(): Invalid broadcast shape ["+t+"].");if(t.length<n.rank)throw new Error("broadcastTo(): shape.length="+t.length+" < input.rank="+n.rank+".");if(t.length>n.rank){for(var i=n.shape.slice();i.length<t.length;)i.unshift(1);n=n.reshape(i)}for(var o=Array.from(t),a=t.length-1;a>=0;a--)if(n.shape[a]===t[a])o[a]=1;else if(1!==n.shape[a])throw new Error("broadcastTo(): ["+r+"] cannot be broadcast to ["+t+"].");var u=o.map(function(e,t){return e>1?t:-1}).filter(function(e){return e>=0});return 0===u.length?n.clone():Pe.runKernelFunc(function(e){return e.tile(n,o)},{input:n},function(e){return{input:function(){return e.sum(u,!0)}}})}}),Wn=nn({cast_:function(e,t){var n=qt(e,"x","cast");if(!B(t))throw new Error("Failed to cast to unknown dtype "+t);if("string"===t&&"string"!==n.dtype||"string"!==t&&"string"===n.dtype)throw new Error("Only strings can be casted to strings");return Pe.runKernelFunc(function(e){return e.cast(n,t)},{x:n},function(e){return{x:function(){return e.clone()}}},"Cast",{dtype:t})}}),Un=nn({clone_:function(e){var t=qt(e,"x","clone",null);return Pe.runKernelFunc(function(){return Pe.makeTensorFromDataId(t.dataId,t.shape,t.dtype)},{$x:t},function(e){return{$x:function(){return e.toFloat()}}})}}),zn=nn({cumsum_:function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===r&&(r=!1);var i=qt(e,"x","cumsum"),o=Qt([t|=0],i.rank),a=i;null!=o&&(a=i.transpose(o));var u=Jt(1,i.rank)[0],s=Pe.runKernelFunc(function(e){return e.cumsum(a,u,n,r)},{permutedX:a},function(e){return{permutedX:function(){return e.cumsum(t,n,!r)}}});return null!=o&&(s=s.transpose(o)),s}}),qn=nn({depthToSpace_:function(e,t,n){void 0===n&&(n="NHWC");var r=qt(e,"x","depthToSpace"),i="NHWC"===n?r.shape[1]:r.shape[2],o="NHWC"===n?r.shape[2]:r.shape[3],a="NHWC"===n?r.shape[3]:r.shape[1];return x(i*t>=0,function(){return"Negative dimension size caused by overflow when multiplying\n "+i+" and "+t+" for depthToSpace with input shape\n "+r.shape}),x(o*t>=0,function(){return"Negative dimension size caused by overflow when multiplying\n "+o+" and "+t+" for depthToSpace with input shape\n "+r.shape}),x(a%(t*t)==0,function(){return"Dimension size must be evenly divisible by "+t*t+" but is "+a+" for depthToSpace with input shape "+r.shape}),Pe.runKernelFunc(function(e){return e.depthToSpace(r,t,n)},{$x:r})}}),Hn=nn({expandDims_:function(e,t){void 0===t&&(t=0);var n=qt(e,"x","expandDims",null);x(t<=n.rank,function(){return"Axis must be <= rank of the tensor"});var r=n.shape.slice();return t<0&&(x(-(n.rank+1)<=t,function(){return"Axis must be in the interval ["+-(n.rank+1)+", "+n.rank+"]"}),t=n.rank+t+1),r.splice(t,0,1),ir(n,r)}}),Gn=nn({eye_:function(e,t,n,r){void 0===r&&(r="float32"),null==t&&(t=e);for(var i=Ln([e,t],r),o=e<=t?e:t,a=0;a<o;++a)i.set(1,a,a);var u=i.toTensor().as2D(e,t);if(null==n)return u;if(1===n.length)return sr(Hn(u,0),[n[0],1,1]);if(2===n.length)return sr(Hn(Hn(u,0),0),[n[0],n[1],1,1]);if(3===n.length)return sr(Hn(Hn(Hn(u,0),0),0),[n[0],n[1],n[2],1,1]);throw new Error("eye() currently supports only 1D and 2D batchShapes, but received "+n.length+"D.")}}),Kn=nn({multinomial_:function(e,t,n,r){void 0===r&&(r=!1);var i=qt(e,"logits","multinomial"),o=i.size,a=i.rank;if(o<2)throw new Error("Error in multinomial: you need at least 2 outcomes, but got "+o+".");if(a>2)throw new Error("Rank of probabilities must be 1 or 2, but is "+a);n=n||Math.random();var u=1===a?i.as2D(1,-1):i,s=Pe.runKernelFunc(function(e){return e.multinomial(u,r,t,n)},{logits2D:u});return 1===a?s.as1D():s}}),Yn=nn({oneHot_:function(e,t,n,r){if(void 0===n&&(n=1),void 0===r&&(r=0),t<2)throw new Error("Error in oneHot: depth must be >=2, but it is "+t);var i=qt(e,"indices","oneHot","int32"),o=i.shape.concat([t]);return i=i.flatten(),Pe.runKernelFunc(function(e){return e.oneHot(i,t,n,r)},{$indices:i},function(e){return{$indices:function(){return vn(i.shape,"float32")}}}).reshape(o)}}),$n=nn({pad_:function(e,t,n){void 0===n&&(n=0);var r=qt(e,"x","pad");if(0===r.rank)throw new Error("pad(scalar) is not defined. Pass non-scalar to pad");return Pe.runKernelFunc(function(e){return e.pad(r,t,n)},{x:r},function(e){var n=t.map(function(e){return e[0]});return{x:function(){return e.slice(n,r.shape)}}},"PadV2",{paddings:t,constantValue:n})}}),Zn=nn({pad1d_:function(e,t,n){return void 0===n&&(n=0),x(2===t.length,function(){return"Invalid number of paddings. Must be length of 2."}),$n(e,[t],n)}}),Qn=nn({pad2d_:function(e,t,n){return void 0===n&&(n=0),x(2===t.length&&2===t[0].length&&2===t[1].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$n(e,t,n)}}),Xn=nn({pad3d_:function(e,t,n){return void 0===n&&(n=0),x(3===t.length&&2===t[0].length&&2===t[1].length&&2===t[2].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$n(e,t,n)}}),Jn=nn({pad4d_:function(e,t,n){return void 0===n&&(n=0),x(4===t.length&&2===t[0].length&&2===t[1].length&&2===t[2].length&&2===t[3].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$n(e,t,n)}}),er=nn({rand_:function(e,t,n){var r=E(e),i=null;if(null==n||"float32"===n)i=new Float32Array(r);else if("int32"===n)i=new Int32Array(r);else{if("bool"!==n)throw new Error("Unknown data type "+n);i=new Uint8Array(r)}for(var o=0;o<r;o++)i[o]=t();return Pe.makeTensor(i,e,n)}}),tr=nn({randomNormal_:function(e,t,n,r,i){if(void 0===t&&(t=0),void 0===n&&(n=1),null!=r&&"bool"===r)throw new Error("Unsupported data type "+r);for(var o=new Fn(t,n,r,!1,i),a=Ln(e,r),u=0;u<a.values.length;u++)a.values[u]=o.nextValue();return a.toTensor()}}),nr=nn({randomGamma_:function(e,t,n,r,i){if(void 0===n&&(n=1),void 0===r&&(r="float32"),null==n&&(n=1),null==r&&(r="float32"),"float32"!==r&&"int32"!==r)throw new Error("Unsupported data type "+r);for(var o=new Nn(t,n,r,i),a=Ln(e,r),u=0;u<a.values.length;u++)a.values[u]=o.nextValue();return a.toTensor()}}),rr=nn({randomUniform_:function(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r="float32");for(var o=Ln(e,r),a=new jn(t,n,null,i),u=0;u<o.values.length;u++)o.values[u]=a.nextValue();return o.toTensor()}}),ir=nn({reshape_:function(e,t){var n=qt(e,"x","reshape",null);return t=P(t,n.size),x(n.size===E(t),function(){return"new shape and old shape must have the same number of elements."}),Pe.runKernelFunc(function(e){return e.reshape(n,t)},{x:n},function(e){return{x:function(){return e.reshape(n.shape)}}},"Reshape",{shape:t})}}),or=nn({spaceToBatchND_:function(e,t,n){var r=qt(e,"x","spaceToBatchND");return x(r.rank>=1+t.length,function(){return"input rank "+r.rank+" should be > than [blockShape] "+t.length}),x(n.length===t.length,function(){return"paddings.shape[0] "+n.length+" must be equal to [blockShape] "+t.length}),x(r.shape.reduce(function(e,r,i){return i>0&&i<=t.length?e&&(r+n[i-1][0]+n[i-1][1])%t[i-1]==0:e},!0),function(){return"input spatial dimensions "+r.shape.slice(1)+" with paddings "+n.toString()+" must be divisible by blockShapes "+t.toString()}),Pe.runKernelFunc(function(e){return e.spaceToBatchND(r,t,n)},{$x:r},function(e){return{$x:function(){return e.batchToSpaceND(t,n)}}})}}),ar=nn({squeeze_:function(e,t){var n=qt(e,"x","squeeze");return ir(n,F(n.shape,t).newShape)}}),ur=nn({stack_:function(e,t){void 0===t&&(t=0);var n=Ht(e,"tensors","stack");if(x(n.length>=1,function(){return"Pass at least one tensor to tf.stack"}),1===n.length)return n[0].expandDims(t);var r=n[0].shape,i=n[0].dtype;x(t<=n[0].rank,function(){return"Axis must be <= rank of the tensor"}),n.forEach(function(e){k(r,e.shape,"All tensors passed to stack must have matching shapes")}),n.forEach(function(e){x(i===e.dtype,function(){return"All tensors passed to stack must have matching dtypes"})});var o=n.map(function(e){return e.expandDims(t)});return wn(o,t)}}),sr=nn({tile_:function(e,t){var n=qt(e,"x","tile",null);return x(n.rank===t.length,function(){return"Error in transpose: rank of input "+n.rank+" must match length of reps "+t+"."}),Pe.runKernelFunc(function(e,r){var i=e.tile(n,t);return r([n]),i},{x:n},function(e,n){var r=n[0];return{x:function(){var n=bn(r);if(1===r.rank)for(var i=0;i<t[0];++i)n=n.add(e.slice([i*r.shape[0]],[r.shape[0]]));else if(2===r.rank)for(i=0;i<t[0];++i)for(var o=0;o<t[1];++o)n=n.add(e.slice([i*r.shape[0],o*r.shape[1]],[r.shape[0],r.shape[1]]));else if(3===r.rank)for(i=0;i<t[0];++i)for(o=0;o<t[1];++o)for(var a=0;a<t[2];++a)n=n.add(e.slice([i*r.shape[0],o*r.shape[1],a*r.shape[2]],[r.shape[0],r.shape[1],r.shape[2]]));else{if(4!==r.rank)throw new Error("Gradient for tile operation is not implemented for rank-"+r.rank+" tensors yet.");for(i=0;i<t[0];++i)for(o=0;o<t[1];++o)for(a=0;a<t[2];++a)for(var u=0;u<t[3];++u)n=n.add(e.slice([i*r.shape[0],o*r.shape[1],a*r.shape[2],u*r.shape[3]],[r.shape[0],r.shape[1],r.shape[2],r.shape[3]]))}return n}}},"Tile",{reps:t},[n])}}),cr=nn({truncatedNormal_:function(e,t,n,r,i){if(void 0===t&&(t=0),void 0===n&&(n=1),null!=r&&"bool"===r)throw new Error("Unsupported data type "+r);for(var o=new Fn(t,n,r,!0,i),a=Ln(e,r),u=0;u<a.values.length;u++)a.values[u]=o.nextValue();return a.toTensor()}}),lr=nn({unstack_:function(e,t){void 0===t&&(t=0),t=t||0;var n=qt(e,"x","unstack");return x(t>=-n.shape.length&&t<n.shape.length,function(){return"Axis = "+t+" is not in [-"+n.shape.length+", "+n.shape.length+")"}),t<0&&(t+=n.shape.length),Pe.runKernelFunc(function(e){return e.unstack(n,t)},{x:n},function(e){return{x:function(){return ur(e,t)}}},"Unpack",{axis:t})}});function fr(e,t,n,r){void 0===r&&(r=!0);var i=[];if(r)(i=i.concat(t.slice(0))).push(e[0]/n),i=i.concat(e.slice(1));else{i=i.concat(e[0]);for(var o=t.length,a=0;a<o;++a)i=i.concat([e[a+1]/t[a],t[a]]);i=i.concat(e.slice(o+1))}return i}function hr(e,t,n){void 0===n&&(n=!0);var r=[];if(n){r.push(t);for(var i=t+1;i<e;++i)i<=2*t?(r.push(i),r.push(i-(t+1))):r.push(i)}else{var o=[],a=[];for(i=1;i<e;++i)i>=2*t+1||i%2==1?a.push(i):o.push(i);r.push.apply(r,o),r.push(0),r.push.apply(r,a)}return r}function dr(e,t,n,r){void 0===r&&(r=!0);var i=[];i.push(r?e[0]/n:e[0]*n);for(var o=1;o<e.length;++o)i.push(o<=t.length?r?t[o-1]*e[o]:e[o]/t[o-1]:e[o]);return i}function pr(e,t){for(var n=[0],r=0;r<t;++r)n.push(e[r][0]);return n}function vr(e,t,n){for(var r=e.slice(0,1),i=0;i<n;++i)r.push(e[i+1]-t[i][0]-t[i][1]);return r}function yr(e,t){if(e.rank<1)throw new Error("tf.gatherND() expects the input to be rank 1 or higher, but the rank was "+e.rank+".");if(t.rank<1)throw new Error("tf.gatherND() expects the indices to be rank 1 or higher, but the rank was "+t.rank+".");if("int32"!==t.dtype)throw new Error("tf.gatherND() expects the indices to be int32 type, but the dtype was "+t.dtype+".");if(t.shape[t.rank-1]>e.rank)throw new Error("index innermost dimension length must be <= tensor rank; saw: "+t.shape[t.rank-1]+" vs. "+e.rank);if(0===e.size)throw new Error("Requested more than 0 entries, but input is empty. Input shape: "+e.shape+".");for(var n=t.shape,r=n[n.length-1],i=1,o=0;o<n.length-1;++o)i*=n[o];var a=e.shape,u=n.slice();u.pop();var s=1;for(o=r;o<e.rank;++o)s*=a[o],u.push(a[o]);var c=Z(e.shape).map(function(e){return e/s}).concat([1]).slice(0,r);return[u,i,s,c]}function mr(e){return e<=30?e:$(e,Math.floor(Math.sqrt(e)))}function gr(e,t,n){var r=t.rank>1?t.shape[t.rank-1]:1,i=t.rank>1?t.rank-1:1,o="Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: "+n.shape+", indices.shape: "+t.shape+", shape: "+e+", sliceDim: "+r+", and batchDim: "+i+".";if(n.rank<i)throw new Error(o+" update.rank < "+i+". ");if(e.length<r+(n.rank-i))throw new Error(o+" Output shape length < "+(r+(n.rank-i)));if(n.rank!==i+e.length-r)throw new Error(o+" update.rank != "+(i+e.length-r));for(var a=0;a<i;++a)if(n.shape[a]!==t.shape[a])throw new Error(o+" updates.shape["+a+"] ("+n.shape[a]+") != indices.shape["+a+"] ("+t.shape[a]+").");for(a=0;a<n.rank-i;++a)if(n.shape[a+i]!==e[a+r])throw new Error(o+" updates.shape["+(a+i)+"] ("+n.shape[a+i]+") != shape["+(a+i)+"] ("+e[a+i]+")")}function br(e,t,n){if(t.rank<1)throw new Error("tf.scatterND() expects the indices to be rank 1 or higher, but the rank was "+t.rank+".");if(e.rank<1)throw new Error("tf.scatterND() expects the updates to be rank 1 or higher, but the rank was "+e.rank+".");if("int32"!==t.dtype)throw new Error("The dtype of 'indices' should be int32, but got dtype: "+t.dtype);if(n.length<1)throw new Error("Output rank must be greater or equal to 1, but got shape: "+n);if(0===n.length){if(0===t.size)throw new Error("Indices specified for empty output. indices shape: "+t.shape);if(0===e.size)throw new Error("Updates specified for empty output. updates shape: "+e.shape)}gr(n,t,e)}function wr(e,t,n){for(var r=t.shape.length,i=r>1?t.shape[r-1]:1,o=n.length,a=1,u=i;u<o;++u)a*=n[u];var s=i<1?1:i;return{sliceRank:i,numUpdates:E(t.shape)/s,sliceSize:a,strides:Z(n.slice(0,i)).concat([1]),outputSize:E(n)}}function _r(e,t,n){x(e.rank===t.length,function(){return"Error in slice"+e.rank+"D: Length of begin "+t+" must match the rank of the array ("+e.rank+")."}),x(e.rank===n.length,function(){return"Error in slice"+e.rank+"D: Length of size "+n+" must match the rank of the array ("+e.rank+")."});for(var r=function(r){x(t[r]+n[r]<=e.shape[r],function(){return"Error in slice"+e.rank+"D: begin["+r+"] + size["+r
1+"] ("+(t[r]+n[r])+") would overflow input.shape["+r+"] ("+e.shape[r]+")"})},i=0;i<e.rank;++i)r(i)}function xr(e){for(var t=[],n=0;e>0;)1&e&&t.push(n),e/=2,n++;return t}function kr(e,t,n){for(var r=[],i=0;i<e.length;i++)r[i]=Math.ceil((t[i]-e[i])/n[i]);return r}function Cr(e,t,n,r,i){var o=t[i];(e&1<<i||null==o)&&(o=(n[i]||1)>0?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER);var a=r[i];return o<0&&(o+=a),b(0,o,a-1)}function Sr(e,t,n,r,i){var o=t[i],a=n[i]||1;(e&1<<i||null==o)&&(o=a>0?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER);var u=r[i];return o<0&&(o+=u),a>0?b(0,o,u):b(-1,o,u-1)}function Er(e,t,n){for(var r=n.length,i=0;i<n.length;i++)if(n[i]>1){r=i;break}for(i=r+1;i<n.length;i++)if(t[i]>0||n[i]!==e[i])return!1;return!0}function Ar(e,t){for(var n=e.length>0?e[e.length-1]:1,r=0;r<e.length-1;r++)n+=e[r]*t[r];return n}function Or(e){return Pe.customGrad(e)}Object.freeze({prepareAndValidate:yr}),Object.freeze({validateUpdateShape:gr,validateInput:br,calculateShapes:wr}),Object.freeze({assertParamsValid:_r,maskToAxes:xr,computeOutShape:kr,startForAxis:Cr,stopForAxis:Sr,isSliceContinous:Er,computeFlatOffset:Ar});var Dr=nn({softmax_:function(e,t){void 0===t&&(t=-1);var n=qt(e,"logits","softmax","float32");if(-1===t&&(t=n.rank-1),t!==n.rank-1)throw Error("Softmax along a non-last dimension is not yet supported. Logits was rank "+n.rank+" and dim was "+t);return Pe.runKernelFunc(function(e,r){var i=e.softmax(n,t);return r([i]),i},{logits:n},function(e,n){var r=n[0],i=e.mul(r);return{logits:function(){return i.sub(i.sum([t],!0).mul(r))}}},"Softmax",{dim:t},[],[!0])}}),Ir=nn({logSoftmax_:function(e,t){void 0===t&&(t=-1);var n=qt(e,"logits","logSoftmax");if(-1===t&&(t=n.rank-1),t!==n.rank-1)throw Error("Log Softmax along a non-last dimension is not yet supported. Logits was rank "+n.rank+" and axis was "+t);return Or(function(e,n){var r=e.max(t,!0),i=e.sub(r),o=i.toFloat().sub(i.exp().sum(t,!0).log());return n([o]),{value:o,gradFunc:function(e,n){var r=n[0].exp();return e.sub(e.sum(t,!0).mul(r))}}})(n)}}),Tr=function(){function e(e,t){this.backend=e,this.dataMover=t,this.data=new WeakMap,this.dataIdsCount=0}return e.prototype.get=function(e){return this.data.has(e)||this.dataMover.moveData(this.backend,e),this.data.get(e)},e.prototype.set=function(e,t){this.dataIdsCount++,this.data.set(e,t)},e.prototype.has=function(e){return this.data.has(e)},e.prototype.delete=function(e){return this.dataIdsCount--,this.data.delete(e)},e.prototype.numDataIds=function(){return this.dataIdsCount},e}(),Mr=function(){function e(){}return e.prototype.time=function(e){return Pr("time")},e.prototype.read=function(e){return Pr("read")},e.prototype.readSync=function(e){return Pr("readSync")},e.prototype.numDataIds=function(){return Pr("numDataIds")},e.prototype.disposeData=function(e){return Pr("disposeData")},e.prototype.write=function(e,t,n){return Pr("write")},e.prototype.move=function(e,t,n,r){return Pr("move")},e.prototype.memory=function(){return Pr("memory")},e.prototype.floatPrecision=function(){return Pr("floatPrecision")},e.prototype.epsilon=function(){return 32===this.floatPrecision()?1e-7:1e-4},e.prototype.batchMatMul=function(e,t,n,r){return Pr("batchMatMul")},e.prototype.fusedBatchMatMul=function(e){return Pr("fusedBatchMatMul")},e.prototype.slice=function(e,t,n){return Pr("slice")},e.prototype.stridedSlice=function(e,t,n,r){return Pr("stridedSlice")},e.prototype.unstack=function(e,t){return Pr("unstack")},e.prototype.reverse=function(e,t){return Pr("reverse")},e.prototype.concat=function(e,t){return Pr("concat")},e.prototype.neg=function(e){return Pr("neg")},e.prototype.add=function(e,t){return Pr("add")},e.prototype.addN=function(e){return Pr("addN")},e.prototype.subtract=function(e,t){return Pr("subtract")},e.prototype.multiply=function(e,t){return Pr("multiply")},e.prototype.realDivide=function(e,t){return Pr("realDivide")},e.prototype.floorDiv=function(e,t){return Pr("floorDiv")},e.prototype.sum=function(e,t){return Pr("sum")},e.prototype.prod=function(e,t){return Pr("prod")},e.prototype.unsortedSegmentSum=function(e,t,n){return Pr("unsortedSegmentSum")},e.prototype.argMin=function(e,t){return Pr("argMin")},e.prototype.argMax=function(e,t){return Pr("argMax")},e.prototype.equal=function(e,t){return Pr("equal")},e.prototype.notEqual=function(e,t){return Pr("notEqual")},e.prototype.less=function(e,t){return Pr("less")},e.prototype.lessEqual=function(e,t){return Pr("lessEqual")},e.prototype.greater=function(e,t){return Pr("greater")},e.prototype.greaterEqual=function(e,t){return Pr("greaterEqual")},e.prototype.logicalNot=function(e){return Pr("logicalNot")},e.prototype.logicalAnd=function(e,t){return Pr("logicalAnd")},e.prototype.logicalOr=function(e,t){return Pr("logicalOr")},e.prototype.where=function(e){return Pr("where")},e.prototype.select=function(e,t,n){return Pr("select")},e.prototype.topk=function(e,t,n){return Pr("topk")},e.prototype.min=function(e,t){return Pr("min")},e.prototype.minimum=function(e,t){return Pr("minimum")},e.prototype.mod=function(e,t){return Pr("mod")},e.prototype.max=function(e,t){return Pr("max")}
1,e.prototype.maximum=function(e,t){return Pr("maximum")},e.prototype.all=function(e,t){return Pr("all")},e.prototype.any=function(e,t){return Pr("any")},e.prototype.squaredDifference=function(e,t){return Pr("squaredDifference")},e.prototype.ceil=function(e){return Pr("ceil")},e.prototype.floor=function(e){return Pr("floor")},e.prototype.round=function(e){return Pr("round")},e.prototype.sign=function(e){return Pr("sign")},e.prototype.isNaN=function(e){return Pr("isNaN")},e.prototype.isInf=function(e){return Pr("isInf")},e.prototype.isFinite=function(e){return Pr("isFinite")},e.prototype.pow=function(e,t){return Pr("pow")},e.prototype.exp=function(e){return Pr("exp")},e.prototype.expm1=function(e){return Pr("expm1")},e.prototype.softmax=function(e,t){return Pr("softmax")},e.prototype.log=function(e){return Pr("log")},e.prototype.log1p=function(e){return Pr("log1p")},e.prototype.sqrt=function(e){return Pr("sqrt")},e.prototype.rsqrt=function(e){return Pr("rsqrt")},e.prototype.square=function(e){return Pr("square")},e.prototype.reciprocal=function(e){return Pr("reciprocal")},e.prototype.relu=function(e){return Pr("relu")},e.prototype.relu6=function(e){return Pr("relu6")},e.prototype.prelu=function(e,t){return Pr("prelu")},e.prototype.elu=function(e){return Pr("elu")},e.prototype.eluDer=function(e,t){return Pr("eluDer")},e.prototype.selu=function(e){return Pr("selu")},e.prototype.int=function(e){return Pr("int")},e.prototype.clip=function(e,t,n){return Pr("clip")},e.prototype.abs=function(e){return Pr("abs")},e.prototype.complexAbs=function(e){return Pr("complexAbs")},e.prototype.sigmoid=function(e){return Pr("sigmoid")},e.prototype.softplus=function(e){return Pr("softplus")},e.prototype.sin=function(e){return Pr("sin")},e.prototype.cos=function(e){return Pr("cos")},e.prototype.tan=function(e){return Pr("tan")},e.prototype.asin=function(e){return Pr("asin")},e.prototype.acos=function(e){return Pr("acos")},e.prototype.atan=function(e){return Pr("atan")},e.prototype.atan2=function(e,t){return Pr("atan2")},e.prototype.sinh=function(e){return Pr("sinh")},e.prototype.cosh=function(e){return Pr("cosh")},e.prototype.tanh=function(e){return Pr("tanh")},e.prototype.asinh=function(e){return Pr("asinh")},e.prototype.acosh=function(e){return Pr("acosh")},e.prototype.atanh=function(e){return Pr("atanh")},e.prototype.erf=function(e){return Pr("erf")},e.prototype.step=function(e,t){return Pr("step")},e.prototype.fusedConv2d=function(e){return Pr("fusedConv2d")},e.prototype.conv2d=function(e,t,n){return Pr("conv2d")},e.prototype.conv2dDerInput=function(e,t,n){return Pr("conv2dDerInput")},e.prototype.conv2dDerFilter=function(e,t,n){return Pr("conv2dDerFilter")},e.prototype.fusedDepthwiseConv2D=function(e){return Pr("fusedDepthwiseConv2D")},e.prototype.depthwiseConv2D=function(e,t,n){return Pr("depthwiseConv2D")},e.prototype.depthwiseConv2DDerInput=function(e,t,n){return Pr("depthwiseConv2DDerInput")},e.prototype.depthwiseConv2DDerFilter=function(e,t,n){return Pr("depthwiseConv2DDerFilter")},e.prototype.conv3d=function(e,t,n){return Pr("conv3d")},e.prototype.conv3dDerInput=function(e,t,n){return Pr("conv3dDerInput")},e.prototype.conv3dDerFilter=function(e,t,n){return Pr("conv3dDerFilter")},e.prototype.maxPool=function(e,t){return Pr("maxPool")},e.prototype.maxPoolBackprop=function(e,t,n,r){return Pr("maxPoolBackprop")},e.prototype.avgPool=function(e,t){return Pr("avgPool")},e.prototype.avgPoolBackprop=function(e,t,n){return Pr("avgPoolBackprop")},e.prototype.avgPool3d=function(e,t){return Pr("avgPool3d")},e.prototype.avgPool3dBackprop=function(e,t,n){return Pr("avgPool3dBackprop")},e.prototype.maxPool3d=function(e,t){return Pr("maxPool3d")},e.prototype.maxPool3dBackprop=function(e,t,n,r){return Pr("maxPool3dBackprop")},e.prototype.reshape=function(e,t){return Pr("reshape")},e.prototype.cast=function(e,t){return Pr("cast")},e.prototype.tile=function(e,t){return Pr("tile")},e.prototype.pad=function(e,t,n){return Pr("pad")},e.prototype.transpose=function(e,t){return Pr("transpose")},e.prototype.gather=function(e,t,n){return Pr("gather")},e.prototype.gatherND=function(e,t){return Pr("gatherND")},e.prototype.scatterND=function(e,t,n){return Pr("scatterND")},e.prototype.batchToSpaceND=function(e,t,n){return Pr("batchToSpaceND")},e.prototype.spaceToBatchND=function(e,t,n){return Pr("spaceToBatchND")}
vendor: 9,477 bytes, line 1
1,e.prototype.resizeBilinear=function(e,t,n,r){return Pr("resizeBilinear")},e.prototype.resizeBilinearBackprop=function(e,t,n){return Pr("resizeBilinearBackprop")},e.prototype.resizeNearestNeighbor=function(e,t,n,r){return Pr("resizeNearestNeighbor")},e.prototype.resizeNearestNeighborBackprop=function(e,t,n){return Pr("resizeNearestNeighborBackprop")},e.prototype.batchNormalization=function(e,t,n,r,i,o){return Pr("batchNormalization")},e.prototype.localResponseNormalization4D=function(e,t,n,r,i){return Pr("localResponseNormalization4D")},e.prototype.LRNGrad=function(e,t,n,r,i,o,a){return Pr("LRNGrad")},e.prototype.multinomial=function(e,t,n,r){return Pr("multinomial")},e.prototype.oneHot=function(e,t,n,r){return Pr("oneHot")},e.prototype.cumsum=function(e,t,n,r){return Pr("cumsum")},e.prototype.nonMaxSuppression=function(e,t,n,r,i){return Pr("nonMaxSuppression")},e.prototype.fft=function(e){return Pr("fft")},e.prototype.ifft=function(e){return Pr("ifft")},e.prototype.complex=function(e,t){return Pr("complex")},e.prototype.real=function(e){return Pr("real")},e.prototype.imag=function(e){return Pr("imag")},e.prototype.cropAndResize=function(e,t,n,r,i,o){return Pr("cropAndResize")},e.prototype.depthToSpace=function(e,t,n){return Pr("depthToSpace")},e.prototype.split=function(e,t,n){return Pr("split")},e.prototype.sparseToDense=function(e,t,n,r){return Pr("sparseToDense")},e.prototype.diag=function(e){return Pr("diag")},e.prototype.fill=function(e,t,n){return Pr("fill")},e.prototype.onesLike=function(e){return Pr("onesLike")},e.prototype.zerosLike=function(e){return Pr("zerosLike")},e.prototype.linspace=function(e,t,n){return Pr("linspace")},e.prototype.dispose=function(){return Pr("dispose")},e}();function Pr(e){throw new Error("'"+e+"' not yet implemented or not found in the registry. Did you forget to import the kernel?")}function Rr(e,t){for(var n=e.length,r=[],i=0;i<n;i++){var o=n-1-i;(t[t.length-1-i]||1)>1&&1===(e[o]||1)&&r.unshift(o)}return r}function Fr(e,t){for(var n=[],r=0;r<t.length;r++){var i=e[e.length-r-1],o=t.length-r-1;(null==i||1===i&&t[o]>1)&&n.unshift(o)}return n}function Nr(e,t){for(var n=[],r=Math.max(e.length,t.length),i=0;i<r;i++){var o=e[e.length-i-1];null==o&&(o=1);var a=t[t.length-i-1];if(null==a&&(a=1),1===o)n.unshift(a);else if(1===a)n.unshift(o);else{if(o!==a)throw Error("Operands could not be broadcast together with shapes "+e+" and "+t+".");n.unshift(o)}}return n}function jr(e,t,n,r,i,o,a){void 0===a&&(a="channelsLast");var u,s=Ur(t),c=s[0],l=s[1];if("channelsLast"===a)u=[c,l,e[3],e[3]];else{if("channelsFirst"!==a)throw new Error("Unknown dataFormat "+a);u=[c,l,e[1],e[1]]}return Br(e,u,n,r,i,o,!1,a)}function Lr(e,t,n,r,i,o,a){void 0===a&&(a="NDHWC");var u,s,c=zr(t),l=c[0],f=c[1],h=c[2];if("NDHWC"===a)s="channelsLast",u=[l,f,h,e[4],e[4]];else{if("NCDHW"!==a)throw new Error("Unknown dataFormat "+a);s="channelsFirst",u=[l,f,h,e[1],e[1]]}return Vr(e,u,n,r,i,!1,s,o)}function Br(e,t,n,r,i,o,a,u){void 0===a&&(a=!1),void 0===u&&(u="channelsLast");var s=[-1,-1,-1,-1],c=s[0],l=s[1],f=s[2],h=s[3];if("channelsLast"===u)c=e[0],l=e[1],f=e[2],h=e[3];else{if("channelsFirst"!==u)throw new Error("Unknown dataFormat "+u);c=e[0],h=e[1],l=e[2],f=e[3]}var d,p=t[0],v=t[1],y=t[3],m=Ur(n),g=m[0],b=m[1],w=Ur(r),_=w[0],k=w[1],C=qr(p,_),S=qr(v,k),E=function(e,t,n,r,i,o,a,u){var s,c,l;if("number"==typeof e){s={top:e,bottom:e,left:e,right:e,type:0===e?"VALID":"NUMBER"};var f=function(e,t,n,r,i){null==r&&(r=Wr(e,t,n));var o=e[1],a=Hr((e[0]-t+2*r)/n+1,i);x(O(a),function(){return"The output # of rows ("+a+") must be an integer. Change the stride and/or zero pad parameters"});var u=Hr((o-t+2*r)/n+1,i);return x(O(u),function(){return"The output # of columns ("+u+") must be an integer. Change the stride and/or zero pad parameters"}),[a,u]}([t,n],o,r,e,u);c=f[0],l=f[1]}else if("same"===e){c=Math.ceil(t/r),l=Math.ceil(n/i);var h=Math.max(0,(c-1)*r+o-t),d=Math.max(0,(l-1)*i+a-n),p=Math.floor(h/2),v=h-p,y=Math.floor(d/2);s={top:p,bottom:v,left:y,right:d-y,type:"SAME"}}else{if("valid"!==e)throw Error("Unknown padding parameter: "+e);s={top:0,bottom:0,left:0,right:0,type:"VALID"},c=Math.ceil((t-o+1)/r),l=Math.ceil((n-a+1)/i)}return{padInfo:s,outHeight:c,outWidth:l}}(i,l,f,g,b,C,S,o),A=E.outHeight,D=E.outWidth,I=a?y*h:y;return"channelsFirst"===u?d=[c,I,A,D]:"channelsLast"===u&&(d=[c,A,D,I]),{batchSize:c,dataFormat:u,inHeight:l,inWidth:f,inChannels:h,outHeight:A,outWidth:D,outChannels:I,padInfo:E.padInfo,strideHeight:g,strideWidth:b,filterHeight:p,filterWidth:v,effectiveFilterHeight:C,effectiveFilterWidth:S,dilationHeight:_,dilationWidth:k,inShape:e,outShape:d,filterShape:t}}function Vr(e,t,n,r,i,o,a,u){void 0===o&&(o=!1),void 0===a&&(a="channelsLast");var s=[-1,-1,-1,-1,-1],c=s[0],l=s[1],f=s[2],h=s[3],d=s[4];if("channelsLast"===a)c=e[0],l=e[1],f=e[2],h=e[3],d=e[4];else{if("channelsFirst"!==a)throw new Error("Unknown dataFormat "+a);c=e[0],d=e[1],l=e[2],f=e[3],h=e[4]}var p,v=t[0],y=t[1],m=t[2],g=t[4],b=zr(n),w=b[0],_=b[1],k=b[2],C=zr(r),S=C[0],E=C[1],A=C[2],D=qr(v,S),I=qr(y,E),T=qr(m,A),M=function(e,t,n,r,i,o,a,u,s,c,l){var f,h,d,p;if("number"==typeof e){f={top:e,bottom:e,left:e,right:e,front:e,back:e,type:0===e?"VALID":"NUMBER"};var v=function(e,t,n,r,i,o){null==i&&(i=Wr(e,t,r));var a=e[1],u=e[2],s=Hr((e[0]-t+2*i)/r+1,o);x(O(s),function(){return"The output # of depths ("+s+") must be an integer. Change the stride and/or zero pad parameters"});var c=Hr((a-t+2*i)/r+1,o);x(O(c),function(){return"The output # of rows ("+c+") must be an integer. Change the stride and/or zero pad parameters"});var l=Hr((u-t+2*i)/r+1,o);return x(O(l),function(){return"The output # of columns ("+l+") must be an integer. Change the stride and/or zero pad parameters"}),[s,c,l,1]}([t,n,r,1],u,0,i,e,l);h=v[0],d=v[1],p=v[2]}else if("same"===e){var y=((h=Math.ceil(t/i))-1)*i+u-t,m=((d=Math.ceil(n/o))-1)*o+s-n,g=((p=Math.ceil(r/a))-1)*a+c-r,b=Math.floor(y/2),w=y-b,_=Math.floor(m/2),k=m-_,C=Math.floor(g/2);f={top:_,bottom:k,left:C,right:g-C,front:b,back:w,type:"SAME"}}else{if("valid"!==e)throw Error("Unknown padding parameter: "+e);f={top:0,bottom:0,left:0,right:0,front:0,back:0,type:"VALID"},h=Math.ceil((t-u+1)/i),d=Math.ceil((n-s+1)/o),p=Math.ceil((r-c+1)/a)}return{padInfo:f,outDepth:h,outHeight:d,outWidth:p}}(i,l,f,h,w,_,k,D,I,T,u),P=M.outDepth,R=M.outHeight,F=M.outWidth,N=o?g*d:g;return"channelsFirst"===a?p=[c,N,P,R,F]:"channelsLast"===a&&(p=[c,P,R,F,N]),{batchSize:c,dataFormat:a,inDepth:l,inHeight:f,inWidth:h,inChannels:d,outDepth:P,outHeight:R,outWidth:F,outChannels:N,padInfo:M.padInfo,strideDepth:w,strideHeight:_,strideWidth:k,filterDepth:v,filterHeight:y,filterWidth:m,effectiveFilterDepth:D,effectiveFilterHeight:I,effectiveFilterWidth:T,dilationDepth:S,dilationHeight:E,dilationWidth:A,inShape:e,outShape:p,filterShape:t}}function Wr(e,t,n,r){void 0===r&&(r=1);var i=qr(t,r);return Math.floor((e[0]*(n-1)-n+i)/2)}function Ur(e){return"number"==typeof e?[e,e,e]:2===e.length?[e[0],e[1],1]:e}function zr(e){return"number"==typeof e?[e,e,e]:e}function qr(e,t){return t<=1?e:e+(e-1)*(t-1)}function Hr(e,t){if(!t)return e;switch(t){case"round":return Math.round(e);case"ceil":return Math.ceil(e);case"floor":return Math.floor(e);default:throw new Error("Unknown roundingMode "+t)}}function Gr(e){var t=Ur(e);return 1===t[0]&&1===t[1]&&1===t[2]}function Kr(e,t){return Gr(e)||Gr(t)}function Yr(e){if("NHWC"===e)return"channelsLast";if("NCHW"===e)return"channelsFirst";throw new Error("Unknown dataFormat "+e)}function $r(e,t,n){if("complex64"===t){if("complex64"===e.dtype)return e.clone();var r=vn(e.shape),i=e.toFloat(),o=n.complex(i,r);return r.dispose(),i.dispose(),o}if(!V(e.dtype,t))return Pe.makeTensorFromDataId(e.dataId,e.shape,t);if("complex64"===e.dtype){var a=n.real(e);return o=a.cast(t),a.dispose(),o}if("int32"===t)return n.int(e);if("bool"===t){var u=cn(0,e.dtype);return o=n.notEqual(e,u),u.dispose(),o}throw new Error("Error in Cast: failed to cast "+e.dtype+" to "+t)}function Zr(e,t){return Pe.makeTensorFromDataId(e.dataId,t,e.dtype)}function Qr(e,t,n){var r=(t-e)/(n-1),i=ee(n,"float32");i[0]=e;for(var o=1;o<i.length;o++)i[o]=i[o-1]+r;return ln(i,"float32")}function Xr(e,t){if(e.length!==t.length)throw new Error("Cannot merge real and imag arrays of different lengths. real:"+e.length+", imag: "+t.length+".");for(var n=new Float32Array(2*e.length),r=0;r<n.length;r+=2)n[r]=e[r/2],n[r+1]=t[r/2];return n}function Jr(e,t){return{real:e[2*t],imag:e[2*t+1]}}function ei(e,t,n,r){e[2*r]=t,e[2*r+1]=n}function ti(e,t,n){var r=(n?2:-2)*Math.PI*(e/t);return{real:Math.cos(r),imag:Math.sin(r)}}function ni(e,t,n){var r=function(e,t,n){for(var r=0,i=e.length,o=0,a=!1;r<i;){var u=n(t,e[o=r+(i-r>>>1)]);u>0?r=o+1:(i=o,a=!u)}return a?r:-r-1}(e,t,n||ri);e.splice(r<0?-(r+1):r,0,t)}function ri(e,t){return e>t?1:e<t?-1:0}function ii(e,t,n,r,i){return ai(e,t,n,r,i,0).selectedIndices}function oi(e,t,n,r,i,o){var a=ai(e,t,n,r,i,o,!0);return a.numValidOutputs.dispose(),{selectedIndices:a.selectedIndices,selectedScores:a.selectedScores}}function ai(e,t,n,r,i,o,a,u){void 0===a&&(a=!1),void 0===u&&(u=!1);for(var s=Array.from(t).map(function(e,t){return{score:e,boxIndex:t,suppressBeginIndex:0}}).filter(function(e){return e.score>i}).sort(ci),c=o>0?-.5/o:0,l=[],f=[];l.length<n&&s.length>0;){var h=s.pop(),d=h.score,p=h.boxIndex,v=h.suppressBeginIndex;if(d<i)break;for(var y=!1,m=l.length-1;m>=v;--m){var g=ui(e,p,l[m]);if(g>=r){y=!0;break}if(h.score=h.score*si(r,c,g),h.score<=i)break}
vendor: 8,886 bytes, line 1
1h.suppressBeginIndex=l.length,y||(h.score===d?(l.push(p),f.push(h.score)):h.score>i&&ni(s,h,ci))}var b=l.length;return u&&(l.fill(0,b),f.fill(0,b)),{selectedIndices:ln(l,"int32"),selectedScores:ln(f,"float32"),numValidOutputs:cn(b,"int32")}}function ui(e,t,n){var r=e.subarray(4*t,4*t+4),i=e.subarray(4*n,4*n+4),o=Math.min(r[0],r[2]),a=Math.min(r[1],r[3]),u=Math.max(r[0],r[2]),s=Math.max(r[1],r[3]),c=Math.min(i[0],i[2]),l=Math.min(i[1],i[3]),f=Math.max(i[0],i[2]),h=Math.max(i[1],i[3]),d=(u-o)*(s-a),p=(f-c)*(h-l);if(d<=0||p<=0)return 0;var v=Math.max(o,c),y=Math.max(a,l),m=Math.min(u,f),g=Math.min(s,h),b=Math.max(m-v,0)*Math.max(g-y,0);return b/(d+p-b)}function si(e,t,n){var r=Math.exp(t*n*n);return n<=e?r:0}function ci(e,t){return e.score-t.score||e.score===t.score&&t.boxIndex-e.boxIndex}function li(e,t,n){var r=new Array(e.rank).fill(0),i=e.shape.slice();return t.map(function(t){i[n]=t;var o=e.slice(r,i);return r[n]+=t,o})}function fi(e,t){for(var n=new Array(e.rank),r=0;r<n.length;r++)n[r]=e.shape[r]*t[r];var i=Ln(n,e.dtype);for(r=0;r<i.values.length;++r){for(var o=i.indexToLoc(r),a=new Array(e.rank),u=0;u<a.length;u++)a[u]=o[u]%e.shape[u];var s=e.locToIndex(a);i.values[r]=e.values[s]}return i.toTensor()}function hi(e,t,n,r,i){for(var o=t[t.length-1],a=[e.length/o,o],u=a[0],s=a[1],c=N(n,u*r),l=N("int32",u*r),f=0;f<u;f++){for(var h=f*s,d=e.subarray(h,h+s),p=[],v=0;v<d.length;v++)p.push({value:d[v],index:v});p.sort(function(e,t){return t.value-e.value});var y=f*r,m=c.subarray(y,y+r),g=l.subarray(y,y+r);for(v=0;v<r;v++)m[v]=p[v].value,g[v]=p[v].index}var b=t.slice();return b[b.length-1]=r,[un(c,b,n),un(l,b,"int32")]}function di(e,t){for(var n=[],r=0;r<t.length;r++)t[r]&&n.push(r);var i=Ln(e,"int32"),o=Ln([n.length,e.length],"int32");for(r=0;r<n.length;r++){var a=i.indexToLoc(n[r]);o.values.set(a,r*e.length)}return o.toTensor()}Object.freeze({castTensor:$r,reshapeTensor:Zr,linspaceImpl:Qr,upcastType:Se,axesAreInnerMostDims:Gt,combineLocations:Kt,computeOutAndReduceShapes:Yt,expandShapeToKeepDim:$t,assertAxesAreInnerMostDims:Zt,getAxesPermutation:Qt,getUndoAxesPermutation:Xt,getInnerMostAxes:Jt,getBroadcastDims:Rr,getReductionAxes:Fr,assertAndGetBroadcastShape:Nr,assertParamsConsistent:en,computeOutShape:tn,computePool2DInfo:jr,computePool3DInfo:Lr,computeConv2DInfo:Br,computeConv3DInfo:Vr,computeDefaultPad:Wr,tupleValuesAreOne:Gr,eitherStridesOrDilationsAreOne:Kr,convertConv2DDataFormat:Yr,PARALLELIZE_THRESHOLD:30,computeOptimalWindowSize:mr});var pi=function(e,t){this.outputShape=[],this.outputShape=e,this.variableNames=t.map(function(e,t){return"T"+t});var n=[];this.variableNames.forEach(function(e){n.push("float v"+e+" = get"+e+"AtOutCoords();")});var r=this.variableNames.map(function(e){return"v"+e}).join(" + ");this.userCode="\n void main() {\n "+n.join("\n ")+"\n\n float result = "+r+";\n setOutput(result);\n }\n "},vi=function(e,t){this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.variableNames=t.map(function(e,t){return"T"+t});var n=[];this.variableNames.forEach(function(e){n.push("vec4 v"+e+" = get"+e+"AtOutCoords();")});var r=this.variableNames.map(function(e){return"v"+e}).join(" + ");this.userCode="\n void main() {\n "+n.join("\n ")+"\n\n vec4 result = "+r+";\n setOutput(result);\n }\n "},yi=function(e,t,n){this.variableNames=["A"];var r=e.windowSize,i=e.batchSize,o=Math.ceil(e.inSize/r);n||this.variableNames.push("bestIndicesA"),this.outputShape=[i,o],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * "+r+";\n\n int bestIndex = inOffset;\n float bestValue = getA(batch, bestIndex);\n\n for (int i = 0; i < "+r+"; i++) {\n int inIdx = "+(n?"inOffset + i;":"round(getBestIndicesA(batch, inOffset + i));")+";\n float candidate = getA(batch, inIdx);\n if (candidate "+("max"===t?">":"<")+" bestValue) {\n bestValue = candidate;\n bestIndex = inIdx;\n }\n }\n setOutput(float(bestIndex));\n }\n "};function mi(e,t){return["x","y","z","w","u","v"].slice(0,t).map(function(t){return e+"."+t})}function gi(e,t){return 1===t?[e]:mi(e,t)}function bi(){var e,t,n,r,i,o,a,u,s,l;return 2===c().getNumber("WEBGL_VERSION")?(e="#version 300 es",t="in",n="out",r="in",i="texture",o="outputColor",a="out vec4 outputColor;",u="\n bool isnan_custom(float val) {\n return (val > 0.0 || val < 0.0) ? false : val != 0.0;\n }\n\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan_custom(val.x),\n isnan_custom(val.y), isnan_custom(val.z), isnan_custom(val.w));\n }\n\n #define isnan(value) isnan_custom(value)\n ",s="",l="\n #define round(value) newRound(value)\n int newRound(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 newRound(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "):(e="",t="attribute",n="varying",r="varying",i="texture2D",o="gl_FragColor",a="",u="\n #define isnan(value) isnan_custom(value)\n bool isnan_custom(float val) {\n return (val > 0. || val < 1. || val == 0.) ? false : true;\n }\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan(val.x), isnan(val.y), isnan(val.z), isnan(val.w));\n }\n ",s="\n uniform float INFINITY;\n\n bool isinf(float val) {\n return abs(val) == INFINITY;\n }\n bvec4 isinf(vec4 val) {\n return equal(abs(val), vec4(INFINITY));\n }\n ",l="\n int round(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 round(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "),{version:e,attribute:t,varyingVs:n,varyingFs:r,texture2D:i,output:o,defineOutput:a,defineSpecialNaN:u,defineSpecialInf:s,defineRound:l}}function wi(e,t,n){void 0===n&&(n="index");var r=Z(t);return r.map(function(t,i){return"int "+e[i]+" = "+n+" / "+t+"; "+(i===r.length-1?"int "+e[i+1]+" = "+n+" - "+e[i]+" * "+t:"index -= "+e[i]+" * "+t)+";"}).join("")}function _i(e){var t=Z(e).map(function(e){return e.toString()});return"\n int getFlatIndex(ivec3 coords) {\n return coords.x * "+t[0]+" + coords.y * "+t[1]+" + coords.z;\n }\n"}var xi="\n const float FLOAT_MAX = 1.70141184e38;\n const float FLOAT_MIN = 1.17549435e-38;\n\n lowp vec4 encode_float(highp float v) {\n if (isnan(v)) {\n return vec4(255, 255, 255, 255);\n }\n\n highp float av = abs(v);\n\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n highp float e = floor(log2(av));\n highp float m = exp2(fract(log2(av))) - 1.0;\n\n c[2] = floor(128.0 * m);\n m -= c[2] / 128.0;\n c[1] = floor(32768.0 * m);\n m -= c[1] / 32768.0;\n c[0] = floor(8388608.0 * m);\n\n highp float ebias = e + 127.0;\n c[3] = floor(ebias / 2.0);\n ebias -= c[3] * 2.0;\n c[2] += floor(ebias) * 128.0;\n\n c[3] += 128.0 * step(0.0, -v);\n\n return c / 255.0;\n }\n";function ki(e,t,n,r){var i=[];e.forEach(function(e){var t=E(e.shapeInfo.logicalShape);e.shapeInfo.isUniform?i.push("uniform float "+e.name+(t>1?"["+t+"]":"")+";"):(i.push("uniform sampler2D "+e.name+";"),i.push("uniform int offset"+e.name+";"))});var o,a,u,s=i.join("\n"),c=e.map(function(e){return function(e,t,n){void 0===n&&(n=!1);var r="";return r+=n?Si(e):Ci(e),e.shapeInfo.logicalShape.length<=t.logicalShape.length&&(r+=n?function(e,t){var n,r,i=e.name,o=i.charAt(0).toUpperCase()+i.slice(1),a="get"+o+"AtOutCoords",u=e.shapeInfo.logicalShape.length,s=t.logicalShape.length,c=Rr(e.shapeInfo.logicalShape,t.logicalShape),l=Mi(s),f=s-u,h=["x","y","z","w","u","v"];n=0===u?"":s<2&&c.length>=1?"coords = 0;":c.map(function(e){return"coords."+h[e+f]+" = 0;"}).join("\n"),r=s<2&&u>0?"coords":e.shapeInfo.logicalShape.map(function(e,t){return"coords."+h[t+f]}).join(", ");var d="return outputValue;",p=1===E(e.shapeInfo.logicalShape),v=1===E(t.logicalShape);if(1!==u||p||v){if(p&&!v)d=1===s?"\n return vec4(outputValue.x, outputValue.x, 0., 0.);\n ":"\n return vec4(outputValue.x);\n ";else if(c.length){var y=u-2,m=u-1;c.indexOf(y)>-1&&c.indexOf(m)>-1?d="return vec4(outputValue.x);":c.indexOf(y)>-1?d="return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);":c.indexOf(m)>-1&&(d="return vec4(outputValue.xx, outputValue.zz);")}}else d="\n return vec4(outputValue.xy, outputValue.xy);\n ";return"\n vec4 "+a+"() {\n "+l+" coords = getOutputCoords();
1\n "+n+"\n vec4 outputValue = get"+o+"("+r+");\n "+d+"\n }\n "}(e,t):function(e,t){var n=e.name,r=n.charAt(0).toUpperCase()+n.slice(1),i="get"+r+"AtOutCoords",o=e.shapeInfo.logicalShape.length,a=t.logicalShape.length;if(!e.shapeInfo.isUniform&&o===a&&null==e.shapeInfo.flatOffset&&A(e.shapeInfo.texShape,t.texShape))return"\n float "+i+"() {\n return sampleTexture("+n+", resultUV);\n }\n ";var u=Mi(a),s=Rr(e.shapeInfo.logicalShape,t.logicalShape),c=a-o,l=["x","y","z","w","u","v"];return"\n float "+i+"() {\n "+u+" coords = getOutputCoords();\n "+(0===o?"":a<2&&s.length>=1?"coords = 0;":s.map(function(e){return"coords."+l[e+c]+" = 0;"}).join("\n"))+"\n return get"+r+"("+(a<2&&o>0?"coords":e.shapeInfo.logicalShape.map(function(e,t){return"coords."+l[t+c]}).join(", "))+");\n }\n "}(e,t)),r}(e,t,r)}).join("\n"),l=t.texShape,f=bi(),h="\n float sampleTexture(sampler2D textureSampler, vec2 uv) {\n return "+f.texture2D+"(textureSampler, uv).r;\n }\n ",d=(u=f).version+"\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n "+u.varyingFs+" vec2 resultUV;\n "+u.defineOutput+"\n const vec2 halfCR = vec2(0.5, 0.5);\n\n struct ivec5\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n };\n\n struct ivec6\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n int v;\n };\n\n uniform float NAN;\n "+u.defineSpecialNaN+"\n "+u.defineSpecialInf+"\n "+u.defineRound+"\n\n int imod(int x, int y) {\n return x - y * (x / y);\n }\n\n int idiv(int a, int b, float sign) {\n int res = a / b;\n int mod = imod(a, b);\n if (sign < 0. && mod != 0) {\n res -= 1;\n }\n return res;\n }\n\n //Based on the work of Dave Hoskins\n //https://www.shadertoy.com/view/4djSRW\n #define HASHSCALE1 443.8975\n float random(float seed){\n vec2 p = resultUV * seed;\n vec3 p3 = fract(vec3(p.xyx) * HASHSCALE1);\n p3 += dot(p3, p3.yzx + 19.19);\n return fract((p3.x + p3.y) * p3.z);\n }\n\n "+Ei+"\n "+Ai+"\n "+Oi+"\n ";return t.isPacked?(o=function(e,t){switch(e.length){case 0:return"\n int getOutputCoords() {\n return 0;\n }\n ";case 1:return n=t,1===(r=[Math.ceil(n[0]/2),Math.ceil(n[1]/2)])[0]?"\n int getOutputCoords() {\n return 2 * int(resultUV.x * "+r[1]+".0);\n }\n ":1===r[1]?"\n int getOutputCoords() {\n return 2 * int(resultUV.y * "+r[0]+".0);\n }\n ":"\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+r[0]+", "+r[1]+"));\n return 2 * (resTexRC.x * "+r[1]+" + resTexRC.y);\n }\n ";case 2:return function(e,t){var n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)];if(A(e,t))return"\n ivec2 getOutputCoords() {\n return 2 * ivec2(resultUV.yx * vec2("+n[0]+", "+n[1]+"));\n }\n ";var r=Math.ceil(e[1]/2);return"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+n[0]+", "+n[1]+"));\n\n int index = resTexRC.x * "+n[1]+" + resTexRC.y;\n int r = 2 * (index / "+r+");\n int c = imod(index, "+r+") * 2;\n\n return ivec2(r, c);\n }\n "}(e,t);case 3:return i=e,o=t,a=[Math.ceil(o[0]/2),Math.ceil(o[1]/2)],s=(u=Math.ceil(i[2]/2))*Math.ceil(i[1]/2),"\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+a[0]+", "+a[1]+"));\n int index = resTexRC.x * "+a[1]+" + resTexRC.y;\n\n int b = index / "+s+";\n index -= b * "+s+";\n\n int r = 2 * (index / "+u+");\n int c = imod(index, "+u+") * 2;\n\n return ivec3(b, r, c);\n }\n ";default:return function(e,t){for(var n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)],r=Math.ceil(e[e.length-1]/2),i=r*Math.ceil(e[e.length-2]/2),o=i,a="",u="b, r, c",s=2;s<e.length-1;s++)a="\n int b"+s+" = index / "+(o*=e[e.length-s-1])+";\n index -= b"+s+" * "+o+";\n "+a,u="b"+s+", "+u;return"\n ivec"+e.length+" getOutputCoords() {\n ivec2 resTexRC = ive
1c2(resultUV.yx *\n vec2("+n[0]+", "+n[1]+"));\n int index = resTexRC.x * "+n[1]+" + resTexRC.y;\n\n "+a+"\n\n int b = index / "+i+";\n index -= b * "+i+";\n\n int r = 2 * (index / "+r+");\n int c = imod(index, "+r+") * 2;\n\n return ivec"+e.length+"("+u+");\n }\n "}(e,t)}var n,r,i,o,a,u,s}(t.logicalShape,l),a=function(e){return"\n void setOutput(vec4 val) {\n "+e.output+" = val;\n }\n "}(f)):(o=function(e,t){switch(e.length){case 0:return"\n int getOutputCoords() {\n return 0;\n }\n ";case 1:return 1===(n=t)[0]?"\n int getOutputCoords() {\n return int(resultUV.x * "+n[1]+".0);\n }\n ":1===n[1]?"\n int getOutputCoords() {\n return int(resultUV.y * "+n[0]+".0);\n }\n ":"\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+n[0]+", "+n[1]+"));\n return resTexRC.x * "+n[1]+" + resTexRC.y;\n }\n ";case 2:return function(e,t){return A(e,t)?"\n ivec2 getOutputCoords() {\n return ivec2(resultUV.yx * vec2("+t[0]+", "+t[1]+"));\n }\n ":1===e[1]?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n return ivec2(index, 0);\n }\n ":1===e[0]?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n return ivec2(0, index);\n }\n ":"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n int r = index / "+e[1]+";\n int c = index - r * "+e[1]+";\n return ivec2(r, c);\n }\n "}(e,t);case 3:return r=t,i=wi(["r","c","d"],e),"\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+r[0]+", "+r[1]+"));\n int index = resTexRC.x * "+r[1]+" + resTexRC.y;\n "+i+"\n return ivec3(r, c, d);\n }\n ";case 4:return function(e,t){var n=wi(["r","c","d","d2"],e);return"\n ivec4 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n "+n+"\n return ivec4(r, c, d, d2);\n }\n "}(e,t);case 5:return function(e,t){var n=wi(["r","c","d","d2","d3"],e);return"\n ivec5 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx * vec2("+t[0]+",\n "+t[1]+"));\n\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n\n "+n+"\n\n ivec5 outShape = ivec5(r, c, d, d2, d3);\n return outShape;\n }\n "}(e,t);case 6:return function(e,t){var n=wi(["r","c","d","d2","d3","d4"],e);return"\n ivec6 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = resTexRC.x * "+t[1]+" + resTexRC.y;\n\n "+n+"\n\n ivec6 result = ivec6(r, c, d, d2, d3, d4);\n return result;\n }\n "}(e,t);default:throw new Error(e.length+"-D output sampling is not yet supported")}var n,r,i}(t.logicalShape,l),a=function(e){return"\n void setOutput(float val) {\n "+e.output+" = vec4(val, 0, 0, 0);\n }\n "}(f)),r&&(d+=Di),[d,h,a,s,o,c,n].join("\n")}function Ci(e){var t=e.shapeInfo.logicalShape;switch(t.length){case 0:return function(e){var t=e.name,n="get"+t.charAt(0).toUpperCase()+t.slice(1);if(e.shapeInfo.isUniform)return"float "+n+"() {return "+t+";}";var r=e.shapeInfo.texShape;if(1===r[0]&&1===r[1])return"\n float "+n+"() {\n return sampleTexture("+t+", halfCR);\n }\n ";var i=e.shapeInfo.texShape;return"\n float "+n+"() {\n vec2 uv = uvFromFlat("+i[0]+", "+i[1]+", "+Ii(t)+");\n return sampleTexture("+t+", uv);\n }\n "}(e);case 1:return function(e){var t=e.name,n="get"+t.charAt(0).toUpperCase()+t.slice(1);if(e.shapeInfo.isUniform)return"\n float "+n+"(int index) {\n "+Ti(e)+"\n }\n ";var r=e.shapeInfo.texShape,i=r[0],o=r[1];if(1===o&&1===i)return"\n float "+n+"(int index) {\n return sampleTexture("+t+", halfCR
1);\n }\n ";var a=Ii(t);return 1===o?"\n float "+n+"(int index) {\n vec2 uv = vec2(0.5, (float(index + "+a+") + 0.5) / "+i+".0);\n return sampleTexture("+t+", uv);\n }\n ":1===i?"\n float "+n+"(int index) {\n vec2 uv = vec2((float(index + "+a+") + 0.5) / "+o+".0, 0.5);\n return sampleTexture("+t+", uv);\n }\n ":"\n float "+n+"(int index) {\n vec2 uv = uvFromFlat("+i+", "+o+", index + "+a+");\n return sampleTexture("+t+", uv);\n }\n "}(e);case 2:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=e.shapeInfo.texShape;if(null!=i&&A(t,i))return"\n float "+r+"(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2("+i[1]+".0, "+i[0]+".0);\n return sampleTexture("+n+", uv);\n }\n ";var o=F(t),a=o.newShape,u=o.keptDims;if(a.length<t.length)return"\n "+Ci(Pi(e,a))+"\n float "+r+"(int row, int col) {\n return "+r+"("+Ri(["row","col"],u)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+r+"(int row, int col) {\n int index = round(dot(vec2(row, col), vec2("+t[1]+", 1)));\n "+Ti(e)+"\n }\n ";var s=i[0],c=i[1],l=Ii(n);return 1===c?"\n float "+r+"(int row, int col) {\n float index = dot(vec3(row, col, "+l+"), vec3("+t[1]+", 1, 1));\n vec2 uv = vec2(0.5, (index + 0.5) / "+s+".0);\n return sampleTexture("+n+", uv);\n }\n ":1===s?"\n float "+r+"(int row, int col) {\n float index = dot(vec3(row, col, "+l+"), vec3("+t[1]+", 1, 1));\n vec2 uv = vec2((index + 0.5) / "+c+".0, 0.5);\n return sampleTexture("+n+", uv);\n }\n ":"\n float "+r+"(int row, int col) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+t[1]+" + col + "+l+";\n vec2 uv = uvFromFlat("+s+", "+c+", index);\n return sampleTexture("+n+", uv);\n }\n"}(e);case 3:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=t[1]*t[2],o=t[2],a=F(t),u=a.newShape,s=a.keptDims;if(u.length<t.length)return"\n "+Ci(Pi(e,u))+"\n float "+r+"(int row, int col, int depth) {\n return "+r+"("+Ri(["row","col","depth"],s)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+r+"(int row, int col, int depth) {\n int index = round(dot(vec3(row, col, depth),\n vec3("+i+", "+o+", 1)));\n "+Ti(e)+"\n }\n ";var c=e.shapeInfo.texShape,l=c[0],f=c[1],h=e.shapeInfo.flatOffset;return f===i&&null==h?"\n float "+r+"(int row, int col, int depth) {\n float texR = float(row);\n float texC = dot(vec2(col, depth), vec2("+o+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+f+".0, "+l+".0);\n return sampleTexture("+n+", uv);\n }\n ":f===o&&null==h?"\n float "+r+"(int row, int col, int depth) {\n float texR = dot(vec2(row, col), vec2("+t[1]+", 1));\n float texC = float(depth);\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+f+".0, "+l+".0);\n return sampleTexture("+n+", uv);\n }\n ":"\n float "+r+"(int row, int col, int depth) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+i+" + col * "+o+" + depth + "+Ii(n)+";\n vec2 uv = uvFromFlat("+l+", "+f+", index);\n return sampleTexture("+n+", uv);\n }\n "}(e);case 4:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=t[3],o=t[2]*i,a=t[1]*o,u=F(t),s=u.newShape,c=u.keptDims;if(s.length<t.length)return"\n "+Ci(Pi(e,s))+"\n float "+r+"(int row, int col, int depth, int depth2) {\n return "+r+"("+Ri(["row","col","depth","depth2"],c)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+r+"(int row, int col, int depth, int depth2) {\n int index = round(dot(vec4(row, col, depth, depth2),\n vec4("+a+", "+o+", "+i+", 1)));\n "+Ti(e)+"\n }\n ";var l=e.shapeInfo.flatOffset,f=e.shapeInfo.texShape,h=f[0],d=f[1];return d===a&&null==l?"\n float "+r+"(int row, int col, int depth, int depth2) {\n float texR = float(row);\n float texC =\n dot(vec3(col, depth, depth2),\n vec3("+o+", "+i+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+d+".0, "+h+".0);\n return sampleTexture("+n+", uv);\n }\n ":d===i&&null==l?"\n float "+r+"(int row, int col, int depth, int depth2) {\n float texR = dot
1(vec3(row, col, depth),\n vec3("+t[1]*t[2]+", "+t[2]+", 1));\n float texC = float(depth2);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+d+".0, "+h+".0);\n return sampleTexture("+n+", uv);\n }\n ":"\n float "+r+"(int row, int col, int depth, int depth2) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+a+" + col * "+o+" +\n depth * "+i+" + depth2;\n vec2 uv = uvFromFlat("+h+", "+d+", index + "+Ii(n)+");\n return sampleTexture("+n+", uv);\n }\n "}(e);case 5:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=t[4],o=t[3]*i,a=t[2]*o,u=t[1]*a,s=F(t),c=s.newShape,l=s.keptDims;if(c.length<t.length)return"\n "+Ci(Pi(e,c))+"\n float "+r+"(int row, int col, int depth, int depth2, int depth3) {\n return "+r+"("+Ri(["row","col","depth","depth2","depth3"],l)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+r+"(int row, int col, int depth, int depth2, int depth3) {\n float index = dot(\n vec4(row, col, depth, depth2),\n vec4("+u+", "+a+", "+o+", "+i+")) +\n depth3;\n "+Ti(e)+"\n }\n ";var f=e.shapeInfo.flatOffset,h=e.shapeInfo.texShape,d=h[0],p=h[1];return p===u&&null==f?"\n float "+r+"(int row, int col, int depth, int depth2, int depth3) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4("+a+", "+o+", "+i+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+p+".0, "+d+".0);\n return sampleTexture("+n+", uv);\n }\n ":p===i&&null==f?"\n float "+r+"(int row, int col, int depth, int depth2, int depth3) {\n float texR = dot(\n vec4(row, col, depth, depth2),\n vec4("+t[1]*t[2]*t[3]+",\n "+t[2]*t[3]+", "+t[3]+", 1));\n int texC = depth3;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+p+".0, "+d+".0);\n return sampleTexture("+n+", uv);\n }\n ":"\n float "+r+"(int row, int col, int depth, int depth2, int depth3) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+u+" + col * "+a+" + depth * "+o+" +\n depth2 * "+i+" + depth3 + "+Ii(n)+";\n vec2 uv = uvFromFlat("+d+", "+p+", index);\n return sampleTexture("+n+", uv);\n }\n "}(e);case 6:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=F(t),o=i.newShape,a=i.keptDims;if(o.length<t.length)return"\n "+Ci(Pi(e,o))+"\n float "+r+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n return "+r+"("+Ri(["row","col","depth","depth2","depth3","depth4"],a)+");\n }\n ";var u=t[5],s=t[4]*u,c=t[3]*s,l=t[2]*c,f=t[1]*l;if(e.shapeInfo.isUniform)return"\n float "+r+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int index = round(dot(\n vec4(row, col, depth, depth2),\n vec4("+f+", "+l+", "+c+", "+s+")) +\n dot(\n vec2(depth3, depth4),\n vec2("+u+", 1)));\n "+Ti(e)+"\n }\n ";var h=e.shapeInfo.flatOffset,d=e.shapeInfo.texShape,p=d[0],v=d[1];return v===f&&null==h?"\n float "+r+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4("+l+", "+c+", "+s+", "+u+")) +\n float(depth4);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+v+".0, "+p+".0);\n return sampleTexture("+n+", uv);\n }\n ":v===u&&null==h?"\n float "+r+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n float texR = dot(vec4(row, col, depth, depth2),\n vec4("+t[1]*t[2]*t[3]*t[4]+",\n "+t[2]*t[3]*t[4]+",\n "+t[3]*t[4]+",\n "+t[4]+")) + float(depth3);\n int texC = depth4;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+v+".0, "+p+".0);\n return sampleTexture("+n+", uv);\n }\n ":"\n float "+r+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n // Explicitly use integer operations as dot() only w
1orks on floats.\n int index = row * "+f+" + col * "+l+" + depth * "+c+" +\n depth2 * "+s+" + depth3 * "+u+" + depth4 + "+Ii(n)+";\n vec2 uv = uvFromFlat("+p+", "+v+", index);\n return sampleTexture("+n+", uv);\n }\n "}(e);default:throw new Error(t.length+"-D input sampling is not yet supported")}}function Si(e){var t,n,r,i,o,a,u;switch(e.shapeInfo.logicalShape.length){case 0:return"\n vec4 get"+(t=e.name).charAt(0).toUpperCase()+t.slice(1)+"() {\n return "+bi().texture2D+"("+t+", halfCR);\n }\n ";case 1:return i="get"+(r=(n=e).name).charAt(0).toUpperCase()+r.slice(1),o=n.shapeInfo.texShape,a=[Math.ceil(o[0]/2),Math.ceil(o[1]/2)],u=bi(),"\n vec4 "+i+"(int index) {\n vec2 uv = packedUVfrom1D(\n "+a[0]+", "+a[1]+", index);\n return "+u.texture2D+"("+r+", uv);\n }\n ";case 2:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=e.shapeInfo.texShape,o=i[0],a=i[1],u=bi();if(null!=i&&A(t,i))return"\n vec4 "+r+"(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2("+a+".0, "+o+".0);\n\n return "+u.texture2D+"("+n+", uv);\n }\n ";var s=[Math.ceil(i[0]/2),Math.ceil(i[1]/2)];return"\n vec4 "+r+"(int row, int col) {\n vec2 uv = packedUVfrom2D("+Math.ceil(t[1]/2)+", "+s[0]+", "+s[1]+", row, col);\n return "+u.texture2D+"("+n+", uv);\n }\n "}(e);case 3:return function(e){var t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=e.shapeInfo.texShape,o=[Math.ceil(i[0]/2),Math.ceil(i[1]/2)];if(1===t[0])return"\n "+Si(Pi(e,t.slice(1)))+"\n vec4 "+r+"(int b, int row, int col) {\n return "+r+"("+Ri(["b","row","col"],[1,2])+");\n }\n ";var a=o[0],u=o[1],s=Math.ceil(t[2]/2);return"\n vec4 "+r+"(int b, int row, int col) {\n vec2 uv = packedUVfrom3D(\n "+a+", "+u+", "+s*Math.ceil(t[1]/2)+", "+s+", b, row, col);\n return "+bi().texture2D+"("+n+", uv);\n }\n "}(e);default:return function(e){for(var t=e.shapeInfo.logicalShape,n=t.length,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),o=e.shapeInfo.texShape,a=[Math.ceil(o[0]/2),Math.ceil(o[1]/2)],u=a[0],s=a[1],c=Math.ceil(t[n-1]/2),l=c*Math.ceil(t[n-2]/2),f="int b, int row, int col",h="b * "+l+" + (row / 2) * "+c+" + (col / 2)",d=2;d<n-1;d++)f="int b"+d+", "+f,h="b"+d+" * "+(l*=t[n-d-1])+" + "+h;return"\n vec4 "+i+"("+f+") {\n int index = "+h+";\n int texR = index / "+s+";\n int texC = index - texR * "+s+";\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+s+", "+u+");\n return "+bi().texture2D+"("+r+", uv);\n }\n "}(e)}}var Ei="\nvec2 uvFromFlat(int texNumR, int texNumC, int index) {\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\nvec2 packedUVfrom1D(int texNumR, int texNumC, int index) {\n int texelIndex = index / 2;\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",Ai="\nvec2 packedUVfrom2D(int texelsInLogicalRow, int texNumR,\n int texNumC, int row, int col) {\n int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",Oi="\nvec2 packedUVfrom3D(int texNumR, int texNumC,\n int texelsInBatch, int texelsInLogicalRow, int b,\n int row, int col) {\n int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",Di="\n float getChannel(vec4 frag, vec2 innerDims) {\n vec2 modCoord = mod(innerDims, 2.);\n return modCoord.x == 0. ?\n (modCoord.y == 0. ? frag.r : frag.g) :\n (modCoord.y == 0. ? frag.b : frag.a);\n }\n float getChannel(vec4 frag, int dim) {\n float modCoord = mod(float(dim), 2.);\n return modCoord == 0. ? frag.r : frag.g;\n }\n";function Ii(e){return"offset"+e}function Ti(e){var t=e.name,n=E(e.shapeInfo.logicalShape);return n<2?"return "+t+";":"\n for (int i = 0; i < "+n+";
1 i++) {\n if (i == index) {\n return "+t+"[i];\n }\n }\n "}function Mi(e){if(e<=1)return"int";if(2===e)return"ivec2";if(3===e)return"ivec3";if(4===e)return"ivec4";if(5===e)return"ivec5";if(6===e)return"ivec6";throw Error("GPU for rank "+e+" is not yet supported")}function Pi(e,t){var n=JSON.parse(JSON.stringify(e));return n.shapeInfo.logicalShape=t,n}function Ri(e,t){return t.map(function(t){return e[t]}).join(", ")}var Fi=function(e,t,n,r){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,x(e.length>2,function(){return"Packed arg"+(n.charAt(0).toUpperCase()+n.slice(1))+" supports only inputs with rank above 2."});var i=Math.ceil(e[e.length-1]/t);this.outputShape=e.slice(0,-1),i>1&&this.outputShape.push(i),r||this.variableNames.push("bestIndicesA");var o,a,u=this.outputShape,s=u.length,c=Mi(s),l=gi("coords",s);if(1===i){var f=Mi(a=s+1);o="\n "+f+" sourceLocR = "+f+"("+l.join()+", 0);\n ++"+l[s-1]+";\n "+f+" sourceLocG = "+f+"("+l.join()+", 0);\n ++"+l[s-2]+";\n "+f+" sourceLocA = "+f+"("+l.join()+", 0);\n --"+l[s-1]+";\n "+f+" sourceLocB = "+f+"("+l.join()+", 0);\n --"+l[s-2]+";"}else a=s,o="\n "+c+" sourceLocR = coords;\n ++"+l[s-1]+";\n "+c+" sourceLocG = coords;\n ++"+l[s-2]+";\n "+c+" sourceLocA = coords;\n --"+l[s-1]+";\n "+c+" sourceLocB = coords;\n --"+l[s-2]+";";var h=["x","y","z","w","u","v"].slice(0,a),d="."+h[a-1],p=h.map(function(e){return"int "+e}),v=gi("sourceLocR",a-1).concat("inIdx.r"),y=gi("sourceLocG",a-1).concat("inIdx.g"),m=gi("sourceLocB",a-1).concat("inIdx.b"),g=gi("sourceLocA",a-1).concat("inIdx.a"),b="max"===n?"greaterThan":"lessThan",w=r?"":"\n inIdx = round(vec4(getBestIndicesAChannel("+v.join()+"),\n getBestIndicesAChannel("+y.join()+"),\n getBestIndicesAChannel("+m.join()+"),\n getBestIndicesAChannel("+g.join()+")));",_="vec4(\n getAChannel("+v.join()+"),\n hasNextCol ? getAChannel("+y.join()+") : 0.,\n hasNextRow ? getAChannel("+m.join()+") : 0.,\n hasNextRow && hasNextCol ? getAChannel("+g.join()+") : 0.)",k=r?"":"\n float getBestIndicesAChannel("+p.join()+") {\n return getChannel(getBestIndicesA("+h.join()+"),\n vec2("+h.slice(-2).join()+"));\n }";this.userCode="\n float getAChannel("+p.join()+") {\n return getChannel(getA("+h.join()+"),\n vec2("+h.slice(-2).join()+"));\n }\n "+k+"\n void main() {\n "+c+" coords = getOutputCoords();\n bool hasNextCol = "+l[s-1]+" < "+(u[s-1]-1)+";\n bool hasNextRow = "+l[s-2]+" < "+(u[s-2]-1)+";\n "+o+"\n ivec4 srcIdx = ivec4(sourceLocR"+d+", sourceLocG"+d+",\n sourceLocB"+d+", sourceLocA"+d+") * "+t+";\n ivec4 inIdx = srcIdx;\n vec4 bestIndex = vec4(inIdx);\n vec4 bestValue = "+_+";\n\n for (int i = 0; i < "+t+"; i++) {\n inIdx = srcIdx;\n "+w+"\n vec4 candidate = "+_+";\n bvec4 nan = isnan(candidate);\n bvec4 replace = bvec4(\n vec4("+b+"(candidate, bestValue)) * (vec4(1.0) - vec4(nan)));\n\n bestValue = vec4(replace.x ? candidate.x : bestValue.x,\n replace.y ? candidate.y : bestValue.y,\n replace.z ? candidate.z : bestValue.z,\n replace.w ? candidate.w : bestValue.w);\n bestIndex = mix(bestIndex, vec4(inIdx), vec4(replace));\n srcIdx++;\n }\n setOutput(bestIndex);\n }\n "},Ni=function(e){this.variableNames=["dy"],this.outputShape=e.inShape;var t=e.effectiveFilterHeight,n=e.effectiveFilterWidth;this.userCode="\n const ivec2 pads = ivec2("+(t-1-e.padInfo.top)+", "+(n-1-e.padInfo.left)+");\n const float avgMultiplier = float("+1/(e.filterHeight*e.filterWidth)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+t+";\n wR += "+e.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+n+";\n wC+= "+e.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n setOutput(dotProd);\n }\n "},ji=function(e){this.variableNames=["dy"],this.outputShape=e.inShape;var t=e.effectiveFilterDepth,n=e.effectiveFilterHeight,r=e.effectiveFilterWidth;this.userCode="\n const ivec3 pads = ivec3("+(t-1-e.padInfo.front)+", "+(n-1-e.padInfo.top)+", "+(r-1-e.padInfo.left)+");\n const float avgMultiplier = float("+1/(e.filterDepth*e.filterHeight*e.filterWidth)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, d) with pos mask(:, :, :, ch) to get\n // dx(x
1D, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < "+t+";\n wD += "+e.dilationDepth+") {\n float dyD = float(dyDCorner + wD) / "+e.strideDepth+".0;\n\n if (dyD < 0.0 || dyD >= "+e.outDepth+".0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < "+n+";\n wR += "+e.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+r+";\n wC += "+e.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n }\n setOutput(dotProd);\n }\n "},Li=function(e,t,n,r,i,o){this.outputShape=[],this.variableNames=["x","mean","variance"],Nr(e,t),Nr(e,n);var a="0.0";null!=r&&(Nr(e,r),this.variableNames.push("offset"),a="getOffsetAtOutCoords()");var u="1.0";null!=i&&(Nr(e,i),this.variableNames.push("scale"),u="getScaleAtOutCoords()"),this.outputShape=e,this.userCode="\n void main() {\n float x = getXAtOutCoords();\n float mean = getMeanAtOutCoords();\n float variance = getVarianceAtOutCoords();\n float offset = "+a+";\n float scale = "+u+";\n float inv = scale * inversesqrt(variance + float("+o+"));\n setOutput(dot(vec3(x, -mean, offset), vec3(inv, inv, 1)));\n }\n "},Bi=function(e,t,n,r,i,o){this.packedInputs=!0,this.packedOutput=!0,this.variableNames=["x","mean","variance"],Nr(e,t),Nr(e,n);var a="vec4(0.0)";null!=r&&(Nr(e,r),this.variableNames.push("offset"),a="getOffsetAtOutCoords()");var u="vec4(1.0)";null!=i&&(Nr(e,i),this.variableNames.push("scale"),u="getScaleAtOutCoords()"),this.outputShape=e,this.userCode="\n void main() {\n vec4 offset = "+a+";\n vec4 scale = "+u+";\n\n vec4 x = getXAtOutCoords();\n vec4 mean = getMeanAtOutCoords();\n vec4 variance = getVarianceAtOutCoords();\n\n vec4 inv = scale * inversesqrt(variance + vec4("+o+"));\n\n setOutput((x - mean) * inv + offset);\n }\n "},Vi=function(e,t,n){this.variableNames=["AReal","AImag","BReal","BImag"],this.outputShape=Nr(t,n),this.userCode="\n float binaryOpComplex(\n float areal, float aimag, float breal, float bimag) {\n "+e+"\n }\n\n void main() {\n float areal = getARealAtOutCoords();\n float aimag = getAImagAtOutCoords();\n float breal = getBRealAtOutCoords();\n float bimag = getBImagAtOutCoords();\n setOutput(binaryOpComplex(areal, aimag, breal, bimag));\n }\n "},Wi="return a + b;",Ui="return a - b;",zi="return a * b;",qi="return (a < 0.) ? b * a : a;",Hi=function(e,t,n){this.variableNames=["A","B"],this.outputShape=Nr(t,n),this.userCode="\n float binaryOperation(float a, float b) {\n "+e+"\n }\n\n void main() {\n float a = getAAtOutCoords();\n float b = getBAtOutCoords();\n setOutput(binaryOperation(a, b));\n }\n "},Gi="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));
1\n return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);\n",Ki=function(e,t,n,r){void 0===r&&(r=!1),this.variableNames=["A","B"],this.supportsBroadcasting=!0,this.packedInputs=!0,this.packedOutput=!0,this.outputShape=Nr(t,n);var i=this.outputShape.length,o="";if(r)if(0===i||1===E(this.outputShape))o="\n result.y = 0.;\n result.z = 0.;\n result.w = 0.;\n ";else if(o="\n "+Mi(i)+" coords = getOutputCoords();\n ",1===i)o+="\n result.y = (coords + 1) >= "+this.outputShape[0]+" ? 0. : result.y;\n result.z = 0.;\n result.w = 0.;\n ";else{var a=gi("coords",i);o+="\n bool nextRowOutOfBounds =\n ("+a[i-2]+" + 1) >= "+this.outputShape[i-2]+";\n bool nextColOutOfBounds =\n ("+a[i-1]+" + 1) >= "+this.outputShape[i-1]+";\n result.y = nextColOutOfBounds ? 0. : result.y;\n result.z = nextRowOutOfBounds ? 0. : result.z;\n result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w;\n "}this.userCode="\n vec4 binaryOperation(vec4 a, vec4 b) {\n "+e+"\n }\n\n void main() {\n vec4 a = getAAtOutCoords();\n vec4 b = getBAtOutCoords();\n\n vec4 result = binaryOperation(a, b);\n "+o+"\n\n setOutput(result);\n }\n "},Yi=function(){function e(e){this.variableNames=["A"],this.outputShape=e,this.userCode="\n uniform float minVal;\n uniform float maxVal;\n\n void main() {\n float value = getAAtOutCoords();\n if (isnan(value)) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, minVal, maxVal));\n }\n "}return e.prototype.getCustomSetupFunc=function(e,t){var n=this;return function(r,i){null==n.minLoc&&(n.minLoc=r.getUniformLocationNoThrow(i,"minVal"),n.maxLoc=r.getUniformLocationNoThrow(i,"maxVal")),r.gl.uniform1f(n.minLoc,e),r.gl.uniform1f(n.maxLoc,t)}},e}(),$i=function(){function e(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.userCode="\n uniform float minVal;\n uniform float maxVal;\n\n void main() {\n vec4 value = getAAtOutCoords();\n\n if (any(isnan(value))) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, vec4(minVal), vec4(maxVal)));\n }\n "}return e.prototype.getCustomSetupFunc=function(e,t){var n=this;return function(r,i){null==n.minLoc&&(n.minLoc=r.getUniformLocationNoThrow(i,"minVal"),n.maxLoc=r.getUniformLocationNoThrow(i,"maxVal")),r.gl.uniform1f(n.minLoc,e),r.gl.uniform1f(n.maxLoc,t)}},e}(),Zi=function(e){this.variableNames=["real","imag"],this.outputShape=e,this.userCode="\n void main() {\n float re = abs(getRealAtOutCoords());\n float im = abs(getImagAtOutCoords());\n float mx = max(re, im);\n\n // sadly the length function in glsl is not underflow-safe\n // (at least not on Intel GPUs). So the safe solution is\n // to ensure underflow-safety in all cases.\n setOutput(\n mx == 0.0 ? 0.0 : mx * length(vec2(1, min(re, im)/mx))\n );\n }\n "},Qi=function(e){this.outputShape=[],this.outputShape=tn(e,1),this.variableNames=e.map(function(e,t){return"T"+t});var t=new Array(e.length-1);t[0]=e[0][1];for(var n=1;n<t.length;n++)t[n]=t[n-1]+e[n][1];var r=["if (yC < "+t[0]+") setOutput(getT0(yR, yC));"];for(n=1;n<t.length;n++)r.push("else if (yC < "+t[n]+") setOutput(getT"+n+"(yR, yC-"+t[n-1]+"));");r.push("else setOutput(getT"+t.length+"(yR, yC-"+t[t.length-1]+"));"),this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int yR = coords.x;\n int yC = coords.y;\n\n "+r.join("\n ")+"\n }\n "},Xi=function(e,t){this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[],this.outputShape=tn(e,t);var n=this.outputShape,r=n.length,i=Mi(r),o=gi("coords",r),a=["x","y","z","w","u","v"].slice(0,r);this.variableNames=e.map(function(e,t){return"T"+t});var u=new Array(e.length-1);u[0]=e[0][t];for(var s=1;s<u.length;s++)u[s]=u[s-1]+e[s][t];var c=a[t],l=a.slice(-2),f=a.join(),h="if ("+c+" < "+u[0]+") {\n return getChannel(\n getT0("+f+"), vec2("+l.join()+"));\n }";
1for(s=1;s<u.length;s++){var d=u[s-1];h+="\n if ("+c+" < "+u[s]+" && "+c+" >= "+u[s-1]+") {\n return getChannel(\n getT"+s+"("+Ji(a,c,d)+"),\n vec2("+Ji(l,c,d)+"));\n }"}var p=u[u.length-1];h+="\n return getChannel(\n getT"+u.length+"("+Ji(a,c,p)+"),\n vec2("+Ji(l,c,p)+"));",this.userCode="\n float getValue("+a.map(function(e){return"int "+e})+") {\n "+h+"\n }\n\n void main() {\n "+i+" coords = getOutputCoords();\n vec4 result = vec4(getValue("+o+"), 0., 0., 0.);\n\n "+o[r-1]+" = "+o[r-1]+" + 1;\n if ("+o[r-1]+" < "+n[r-1]+") {\n result.g = getValue("+o+");\n }\n\n "+o[r-2]+" = "+o[r-2]+" + 1;\n if ("+o[r-2]+" < "+n[r-2]+") {\n result.a = getValue("+o+");\n }\n\n "+o[r-1]+" = "+o[r-1]+" - 1;\n if ("+o[r-2]+" < "+n[r-2]+" &&\n "+o[r-1]+" < "+n[r-1]+") {\n result.b = getValue("+o+");\n }\n setOutput(result);\n }\n "};function Ji(e,t,n){var r=e.indexOf(t);return e.map(function(e,t){return t===r?e+" - "+n:e}).join()}var eo=function(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int d2 = coords.w;\n\n // Convolve x(?, ?, d1) with dy(:, :, d2) to get dw(wR, wC, d1, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int b = 0; b < "+e.batchSize+"; b++) {\n for (int yR = 0; yR < "+e.outHeight+"; yR++) {\n int xR = wR + yR * "+e.strideHeight+" - "+e.padInfo.top+";\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+e.outWidth+"; yC++) {\n int xC = wC + yC * "+e.strideWidth+" - "+e.padInfo.left+";\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n if ("+("channelsLast"===e.dataFormat)+") {\n float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);\n } else {\n float dyValue = getDy(b, d2, yR, yC);\n float xValue = getX(b, d1, xR, xC);\n dotProd += (xValue * dyValue);\n }\n\n }\n }\n }\n setOutput(dotProd);\n }\n "},to=function(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;var t=e.filterHeight,n=e.filterWidth,r="channelsLast"===e.dataFormat;this.userCode="\n const ivec2 pads = ivec2("+(t-1-e.padInfo.top)+", "+(n-1-e.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords["+(r?3:1)+"];\n\n ivec2 dyCorner = ivec2(coords["+(r?1:2)+"], coords["+(r?2:3)+"]) - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n // Convolve dy(?, ?, d2) with w(:, :, d1, d2) to compute dx(xR, xC, d1).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+t+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+t+" - 1 - wR;\n\n for (int wC = 0; wC < "+n+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+n+" - 1 - wC;\n\n for (int d2 = 0; d2 < "+e.outChannels+"; d2++) {\n\n if ("+r+") {\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n } else {\n float xValue = getDy(batch, d2, idyR, idyC);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n\n }\n }\n }\n setOutput(dotProd);\n }\n "},no=function(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape,this.userCode="\n void main() {\n ivec5 coords = getOutputCoords();\n int wF = coords.x;\n int wR = coords.y;\n int wC = coords.z;\n int d1 = coords.w;\n int d2 = coords.u;\n\n float dotProd = 0.0;\n\n for (int b = 0; b < "+e.batchSize+"; b++) {\n for (int yF = 0; yF < "+e.outDepth+";
1 yF++) {\n int xF = wF + yF * "+e.strideDepth+" - "+e.padInfo.front+";\n\n if (xF < 0 || xF >= "+e.inDepth+") {\n continue;\n }\n\n for (int yR = 0; yR < "+e.outHeight+"; yR++) {\n int xR = wR + yR * "+e.strideHeight+" - "+e.padInfo.top+";\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+e.outWidth+"; yC++) {\n int xC = wC + yC * "+e.strideWidth+" - "+e.padInfo.left+";\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n float dyValue = getDy(b, yF, yR, yC, d2);\n float xValue = getX(b, xF, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},ro=function(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;var t=e.filterDepth,n=e.filterHeight,r=e.filterWidth;this.userCode="\n const ivec3 pads = ivec3("+(t-1-e.padInfo.front)+", "+(n-1-e.padInfo.top)+", "+(r-1-e.padInfo.left)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d1 = coords.u;\n\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyFCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n float dotProd = 0.0;\n for (int wF = 0; wF < "+t+"; wF++) {\n float dyF = float(dyFCorner + wF) / "+e.strideDepth+".0;\n\n if (dyF < 0.0 || dyF >= "+e.outDepth+".0 || fract(dyF) > 0.0) {\n continue;\n }\n int idyF = int(dyF);\n\n int wFPerm = "+t+" - 1 - wF;\n\n for (int wR = 0; wR < "+n+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+n+" - 1 - wR;\n\n for (int wC = 0; wC < "+r+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+r+" - 1 - wC;\n\n for (int d2 = 0; d2 < "+e.outChannels+"; d2++) {\n float xValue = getDy(batch, idyF, idyR, idyC, d2);\n float wValue = getW(wFPerm, wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},io=function(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int dm = coords.w;\n int d2 = d1 * "+e.outChannels/e.inChannels+" + dm;\n\n float dotProd = 0.0;\n\n // TO DO: Vec4 over the batch size\n for (int b = 0; b < "+e.batchSize+"; b++) {\n for (int yR = 0; yR < "+e.outHeight+"; yR++) {\n int xR = wR + yR * "+e.strideHeight+" - "+e.padInfo.top+";\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+e.outWidth+"; yC++) {\n int xC = wC + yC * "+e.strideWidth+" - "+e.padInfo.left+";\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n setOutput(dotProd);\n }\n "},oo=function(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;var t=e.filterHeight,n=e.filterWidth,r=e.outChannels/e.inChannels;this.userCode="\n const ivec2 pads = ivec2("+(t-1-e.padInfo.top)+", "+(n-1-e.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords[3];\n ivec2 dyCorner = coords.yz - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n float dotProd = 0.0;\n\n for (int wR = 0; wR < "+t+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+t+" - 1 - wR;\n\n for (int wC = 0; wC < "+n+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+n+" - 1 - wC;\n\n // TO DO: Vec4 over the channelMul\n for (int dm = 0; dm < "+r+"; dm++) {\n int d2 = d1 * "+r+" + dm;\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, dm);\n dotProd += xValue * wValue;\n }\n }\n }\n setOutput(dotProd);\n }\n "},ao=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.outputShape=e.outShape;var i=e.padInfo.top,o=e.padInfo.left,a=e.strideHeight,u=e.strideWidth,s=e.dilationHeight,c=e.dilationWidth,l=e.filterHeight,f=e.filterWidth,h=4*Math.floor(e.inChannels/4),d=e.inChannels%4,p="channelsLast"===e.dataFormat,v=p?1:2,y=p?2:3,m=p?3:1,g="",b="";n&&(g=r?"float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();
1\n "+n+"\n }":"\n float activation(float x) {\n "+n+"\n }\n ",b="result = activation(result);");var w=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+g+"\n\n const ivec2 strides = ivec2("+a+", "+u+");\n const ivec2 pads = ivec2("+i+", "+o+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d2 = coords["+m+"];\n\n ivec2 xRCCorner =\n ivec2(coords["+v+"], coords["+y+"]) * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, d2) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+l+"; wR++) {\n int xR = xRCorner + wR * "+s+";\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+f+"; wC++) {\n int xC = xCCorner + wC * "+c+";\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n for (int d1 = 0; d1 < "+h+"; d1 += 4) {\n vec4 wValues = vec4(\n getW(wR, wC, d1, d2),\n getW(wR, wC, d1 + 1, d2),\n getW(wR, wC, d1 + 2, d2),\n getW(wR, wC, d1 + 3, d2)\n );\n\n if ("+p+") {\n vec4 xValues = vec4(\n getX(batch, xR, xC, d1),\n getX(batch, xR, xC, d1 + 1),\n getX(batch, xR, xC, d1 + 2),\n getX(batch, xR, xC, d1 + 3)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec4 xValues = vec4(\n getX(batch, d1, xR, xC),\n getX(batch, d1 + 1, xR, xC),\n getX(batch, d1 + 2, xR, xC),\n getX(batch, d1 + 3, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n\n if ("+(1===d)+") {\n\n if ("+p+") {\n dotProd +=\n getX(batch, xR, xC, "+h+") *\n getW(wR, wC, "+h+", d2);\n } else {\n dotProd +=\n getX(batch, "+h+", xR, xC) *\n getW(wR, wC, "+h+", d2);\n }\n\n } else if ("+(2===d)+") {\n vec2 wValues = vec2(\n getW(wR, wC, "+h+", d2),\n getW(wR, wC, "+h+" + 1, d2)\n );\n\n if ("+p+") {\n vec2 xValues = vec2(\n getX(batch, xR, xC, "+h+"),\n getX(batch, xR, xC, "+h+" + 1)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec2 xValues = vec2(\n getX(batch, "+h+", xR, xC),\n getX(batch, "+h+" + 1, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n } else if ("+(3===d)+") {\n vec3 wValues = vec3(\n getW(wR, wC, "+h+", d2),\n getW(wR, wC, "+h+" + 1, d2),\n getW(wR, wC, "+h+" + 2, d2)\n );\n\n if ("+p+") {\n vec3 xValues = vec3(\n getX(batch, xR, xC, "+h+"),\n getX(batch, xR, xC, "+h+" + 1),\n getX(batch, xR, xC, "+h+" + 2)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec3 xValues = vec3(\n getX(batch, "+h+", xR, xC),\n getX(batch, "+h+" + 1, xR, xC),\n getX(batch, "+h+" + 2, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n }\n }\n }\n\n float result = dotProd;\n "+w+"\n "+b+"\n setOutput(result);\n }\n "},uo=function(e){this.variableNames=["x","W"],this.outputShape=e.outShape;var t=e.padInfo.front,n=e.padInfo.top,r=e.padInfo.left,i=e.strideDepth,o=e.strideHeight,a=e.strideWidth,u=e.dilationDepth,s=e.dilationHeight,c=e.dilationWidth,l=e.filterDepth,f=e.filterHeight,h=e.filterWidth,d=4*Math.floor(e.inChannels/4),p=e.inChannels%4;this.userCode="\n const ivec3 strides = ivec3("+i+", "+o+", "+a+");\n const ivec3 pads = ivec3("+t+", "+n+", "+r+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d2 = coords.u;\n\n ivec3 xFRCCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xFCorner = xFRCCorner.x;\n int xRCorner = xFRCCorner.y;\n int xCCorner = xFRCCorner.z;\n\n // Convolve x(?, ?, ?, d1) with w(:, :, :, d1, d2) to get\n // y(yF, yR, yC, d2). ? = to be determined. : = across all\n // values in that axis.\n float dotProd = 0.0;\n for (int wF = 0; wF < "+l+";
1 wF++) {\n int xF = xFCorner + wF * "+u+";\n\n if (xF < 0 || xF >= "+e.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+f+"; wR++) {\n int xR = xRCorner + wR * "+s+";\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+h+"; wC++) {\n int xC = xCCorner + wC * "+c+";\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n for (int d1 = 0; d1 < "+d+"; d1 += 4) {\n vec4 xValues = vec4(\n getX(batch, xF, xR, xC, d1),\n getX(batch, xF, xR, xC, d1 + 1),\n getX(batch, xF, xR, xC, d1 + 2),\n getX(batch, xF, xR, xC, d1 + 3)\n );\n vec4 wValues = vec4(\n getW(wF, wR, wC, d1, d2),\n getW(wF, wR, wC, d1 + 1, d2),\n getW(wF, wR, wC, d1 + 2, d2),\n getW(wF, wR, wC, d1 + 3, d2)\n );\n\n dotProd += dot(xValues, wValues);\n }\n\n if ("+(1===p)+") {\n dotProd +=\n getX(batch, xF, xR, xC, "+d+") *\n getW(wF, wR, wC, "+d+", d2);\n } else if ("+(2===p)+") {\n vec2 xValues = vec2(\n getX(batch, xF, xR, xC, "+d+"),\n getX(batch, xF, xR, xC, "+d+" + 1)\n );\n vec2 wValues = vec2(\n getW(wF, wR, wC, "+d+", d2),\n getW(wF, wR, wC, "+d+" + 1, d2)\n );\n dotProd += dot(xValues, wValues);\n } else if ("+(3===p)+") {\n vec3 xValues = vec3(\n getX(batch, xF, xR, xC, "+d+"),\n getX(batch, xF, xR, xC, "+d+" + 1),\n getX(batch, xF, xR, xC, "+d+" + 2)\n );\n vec3 wValues = vec3(\n getW(wF, wR, wC, "+d+", d2),\n getW(wF, wR, wC, "+d+" + 1, d2),\n getW(wF, wR, wC, "+d+" + 2, d2)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},so=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.outputShape=e.outShape;var i=e.inHeight,o=e.inWidth,a=e.padInfo.top,u=e.padInfo.left,s=e.strideHeight,c=e.strideWidth,l=e.dilationHeight,f=e.dilationWidth,h=e.filterHeight,d=e.filterWidth,p=e.outChannels/e.inChannels,v="",y="";n&&(v=r?"float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();
1\n "+n+"\n }":"\n float activation(float x) {\n "+n+"\n }\n ",y="result = activation(result);");var m=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+v+"\n\n const ivec2 strides = ivec2("+s+", "+c+");\n const ivec2 pads = ivec2("+a+", "+u+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2 / "+p+";\n int q = d2 - d1 * "+p+";\n\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, q) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n // TO DO(dsmilkov): Flatten the two for loops and vec4 the operations.\n for (int wR = 0; wR < "+h+"; wR++) {\n int xR = xRCorner + wR * "+l+";\n\n if (xR < 0 || xR >= "+i+") {\n continue;\n }\n\n for (int wC = 0; wC < "+d+"; wC++) {\n int xC = xCCorner + wC * "+f+";\n\n if (xC < 0 || xC >= "+o+") {\n continue;\n }\n\n float xVal = getX(batch, xR, xC, d1);\n float wVal = getW(wR, wC, d1, q);\n dotProd += xVal * wVal;\n }\n }\n\n float result = dotProd;\n "+m+"\n "+y+"\n setOutput(result);\n }\n "},co=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e.outShape;for(var i=e.inHeight,o=e.inWidth,a=e.padInfo.top,u=e.padInfo.left,s=e.strideHeight,c=e.strideWidth,l=e.dilationHeight,f=e.dilationWidth,h=e.filterHeight,d=e.filterWidth,p=d,v="int xR; int xC; int xCOffset;",y=0;y<h;y++)for(var m=0;m<d;m++)v+="\n vec4 xTexelR"+y+"C"+2*m+" = vec4(0.);\n vec4 wR"+y+"C"+m+" = vec4(0.);\n vec4 xR"+y+"C"+m+" = vec4(0.);";for(y=0;y<h;y++)for(var g=0;g<p;g++){if(v+="\n xR = xRCorner + "+y*l+";\n xC = xCCorner + "+(m=2*g)*f+";\n ",1===c){if(m<d&&(v+=u%2==1?"\n xCOffset = xC + 1;\n if(xR >= 0 && xR < "+i+" && xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+m+" = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if(xCOffset + 1 >= "+o+") {\n xTexelR"+y+"C"+m+".zw = vec2(0.);\n }\n } else {\n xTexelR"+y+"C"+m+" = vec4(0.);\n }\n\n xCOffset = xC + 1 - 2;\n if(xR >= 0 && xR < "+i+" && xCOffset >= 0 && xCOffset < "+o+") {\n vec4 previous = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if(xCOffset + 1 >= "+o+") {\n previous.zw = vec2(0.);\n }\n\n xR"+y+"C"+m+" = vec4(previous.zw, xTexelR"+y+"C"+m+".xy);\n } else {\n xR"+y+"C"+m+" = vec4(0, 0, xTexelR"+y+"C"+m+".xy);\n }\n ":"\n if(xR >= 0 && xR < "+i+" && xC >= 0 && xC < "+o+") {\n xTexelR"+y+"C"+m+" = getX(batch, xR, xC, d1);\n } else {\n xTexelR"+y+"C"+m+" = vec4(0.);\n }\n\n xR"+y+"C"+m+" = xTexelR"+y+"C"+m+";\n ",m+1<d)){var b=u%2==0?w(f):f;
vendor: 3,538 bytes, line 1
1f%2==0&&u%2==1||f%2!=0&&u%2!=1?(v+="\n xCOffset = xC + "+u%2+" + "+b+";\n\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+(m+2)+" = getX(batch, xR, xCOffset, d1);\n }\n ",f>1&&(v+="\n xCOffset -= 2;\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+m+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+y+"C"+m+" = vec4(0.);\n }\n "),v+="\n xR"+y+"C"+(m+1)+" = vec4(\n xTexelR"+y+"C"+m+".zw, xTexelR"+y+"C"+(m+2)+".xy);\n "):v+="\n xCOffset = xC + "+b+";\n\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+(m+2)+" = getX(batch, xR, xCOffset, d1);\n }\n\n xR"+y+"C"+(m+1)+" = xTexelR"+y+"C"+(m+2)+";\n "}}else m<d&&(v+="\n if(xR >= 0 && xR < "+i+") {\n ",u%2==1?(v+="\n xCOffset = xC + 1 - "+c+";\n if(xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+m+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+y+"C"+m+" = vec4(0.);\n }\n\n if(xC + 1 >= 0 && xC + 1 < "+o+") {\n xTexelR"+y+"C"+(m+2)+" = getX(batch, xR, xC + 1, d1);\n } else {\n xTexelR"+y+"C"+(m+2)+" = vec4(0.);\n }\n\n xR"+y+"C"+m+" = vec4(\n xTexelR"+y+"C"+m+".zw, xTexelR"+y+"C"+(m+2)+".zw);\n ",m+1<d&&(v+="\n vec4 final = vec4(0.);\n xCOffset = xC + 1 + "+c+";\n if(xCOffset >= 0 && xCOffset < "+o+") {\n final = getX(batch, xR, xCOffset, d1);\n }\n xR"+y+"C"+(m+1)+" = vec4(xTexelR"+y+"C"+(m+2)+".xy, final.xy);\n ")):(v+="\n if(xC >= 0 && xC < "+o+") {\n xTexelR"+y+"C"+m+" = getX(batch, xR, xC, d1);\n } else {\n xTexelR"+y+"C"+m+" = vec4(0.);\n }\n\n xCOffset = xC + "+c+";\n if(xCOffset >= 0 && xCOffset < "+o+") {\n xTexelR"+y+"C"+(m+2)+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+y+"C"+(m+2)+" = vec4(0.);\n }\n\n xR"+y+"C"+m+" = vec4(\n xTexelR"+y+"C"+m+".xy, xTexelR"+y+"C"+(m+2)+".xy);\n ",m+1<d&&(v+="\n xR"+y+"C"+(m+1)+" = vec4(\n xTexelR"+y+"C"+m+".zw, xTexelR"+y+"C"+(m+2)+".zw);\n ")),v+="}");m<d&&(v+="\n vec4 wTexelR"+y+"C"+m+" = getW("+y+", "+m+", d1, q);\n wR"+y+"C"+m+" = vec4(wTexelR"+y+"C"+m+".xz, wTexelR"+y+"C"+m+".xz);\n ",m+1<d&&(v+="\n vec4 wTexelR"+y+"C"+(m+1)+" = getW("+y+", "+(m+1)+", d1, q);\n wR"+y+"C"+(m+1)+" =\n vec4(wTexelR"+y+"C"+(m+1)+".xz, wTexelR"+y+"C"+(m+1)+".xz);"))}for(y=0;y<h;y++)for(m=0;m<d;m++)v+="dotProd += xR"+y+"C"+m+" * wR"+y+"C"+m+";";var _="",x="";n&&(_=r?"vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();
1\n "+n+"\n }":"vec4 activation(vec4 x) {\n "+n+"\n }",x="result = activation(result);");var k=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+_+"\n\n const ivec2 strides = ivec2("+s+", "+c+");\n const ivec2 pads = ivec2("+a+", "+u+");\n\n void main() {\n\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2;\n int q = 0;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n vec4 dotProd = vec4(0.);\n\n "+v+"\n\n vec4 result = dotProd;\n "+k+"\n "+x+"\n setOutput(result);\n }\n "},lo=function(e,t,n,r,i){this.variableNames=["Image","Boxes","BoxInd"],this.outputShape=[];var o=e[0],a=e[1],u=e[2],s=n[0],c=n[1];this.outputShape=[t[0],s,c,e[3]];var l=[a-1+".0",u-1+".0"],f=l[0],h=l[1],d=s>1?[""+(a-1)/(s-1),"(y2-y1) * height_ratio","y1*"+f+" + float(y)*(height_scale)"]:["0.0","0.0","0.5 * (y1+y2) * "+f],p=c>1?[""+(u-1)/(c-1),"(x2-x1) * width_ratio","x1*"+h+" + float(x)*(width_scale)"]:["0.0","0.0","0.5 * (x1+x2) * "+h];this.userCode="\n const float height_ratio = float("+d[0]+");\n const float width_ratio = float("+p[0]+");\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int y = coords[1];\n int x = coords[2];\n int d = coords[3];\n\n // get box vals\n float y1 = getBoxes(b,0);\n float x1 = getBoxes(b,1);\n float y2 = getBoxes(b,2);\n float x2 = getBoxes(b,3);\n\n // get image in batch index\n int bInd = round(getBoxInd(b));\n if(bInd < 0 || bInd >= "+o+") {\n return;\n }\n\n float height_scale = "+d[1]+";\n float width_scale = "+p[1]+";\n\n float in_y = "+d[2]+";\n if( in_y < 0.0 || in_y > "+f+" ) {\n setOutput(float("+i+"));\n return;\n }\n float in_x = "+p[2]+";\n if( in_x < 0.0 || in_x > "+h+" ) {\n setOutput(float("+i+"));\n return;\n }\n\n vec2 sourceFracIndexCR = vec2(in_x,in_y);\n if("+("bilinear"===r?1:0)+" == 1) {\n // Compute the four integer indices.\n ivec2 sourceFloorCR = ivec2(sourceFracIndexCR);\n ivec2 sourceCeilCR = ivec2(ceil(sourceFracIndexCR));\n\n float topLeft = getImage(b, sourceFloorCR.y, sourceFloorCR.x, d);\n float bottomLeft = getImage(b, sourceCeilCR.y, sourceFloorCR.x, d);\n float topRight = getImage(b, sourceFloorCR.y, sourceCeilCR.x, d);\n float bottomRight = getImage(b, sourceCeilCR.y, sourceCeilCR.x, d);\n\n vec2 fracCR = sourceFracIndexCR - vec2(sourceFloorCR);\n\n float top = topLeft + (topRight - topLeft) * fracCR.x;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracCR.x;\n float newValue = top + (bottom - top) * fracCR.y;\n setOutput(newValue);\n } else {\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestCR = ivec2(floor(\n sourceFracIndexCR + vec2(0.5,0.5)));\n float newValue = getImage(b, sourceNearestCR.y, sourceNearestCR.x, d);\n setOutput(newValue);\n }\n }\n "},fo=function(e,t,n){this.variableNames=["x"],this.outputShape=e;var r=e.length,i=e[e.length-1],o=n?"<":">";this.userCode="\n int getIndex(int i) {\n "+(n?"return "+i+" -i - 1;":"return i;")+"\n }\n\n void main() {\n "+Mi(r)+" coords = getOutputCoords();\n int end = "+ho(r,"coords")+";\n float val = 0.0;\n for (int i = "+i+" - 1; i >= 0; i -= 1) {\n int idx = getIndex(i);\n if (idx "+o+" end) {\n continue;\n }\n if (idx == end && "+t+") {\n continue;\n }\n "+ho(r,"coords")+" = idx;\n val += getX("+function(e,t){if(1===e)return""+t;if(2===e)return t+".x, "+t+".y";if(3===e)return t+".x, "+t+".y, "+t+".z";if(4===e)return t+".x, "+t+".y, "+t+".z, "+t+".w";throw Error("Cumulative sum for rank "+e+" is not yet supported")}(r,"coords")+");\n }\n setOutput(val);\n }\n "};function ho(e,t){if(1===e)return""+t;if(2===e)return t+".y";if(3===e)return t+".z";if(4===e)return t+".w";throw Error("Cumulative sum for rank "+e+" is not yet supported")}var po=function(e){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outPackingScheme=Ne.DENSE;var t=qe(e),n=bi();this.outputShape=e,this.userCode="\n ivec3 outCoordsFromFlatIndex(int index) {\n "+wi(["r","c","d"],e)+"\
1n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = 4 * (resTexRC.x * "+t[1]+" + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getA(rc.x, rc.y, rc.z);\n }\n\n "+n.output+" = result;\n }\n "},vo=function(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outPackingScheme=Ne.DENSE;var t=qe(e),n=bi();this.outputShape=e,this.userCode="\n ivec3 outCoordsFromFlatIndex(int index) {\n "+wi(["r","c","d"],e)+"\n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+t[0]+", "+t[1]+"));\n int index = 4 * (resTexRC.x * "+t[1]+" + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getChannel(getA(rc.x, rc.y, rc.z), vec2(rc.y, rc.z));\n }\n\n "+n.output+" = result;\n }\n "},yo=function(){function e(e,t,n){this.variableNames=["x"],this.outputShape=[],this.outputShape=e,this.blockSize=t,this.dataFormat=n,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int h = "+this.getHeightCoordString()+";\n int w = "+this.getWidthCoordString()+";\n int d = "+this.getDepthCoordString()+";\n\n int in_h = h / "+t+";\n int offset_h = imod(h, "+t+");\n int in_w = w / "+t+";\n int offset_w = imod(w, "+t+");\n int offset_d = (offset_h * "+t+" + offset_w) *\n "+this.getOutputDepthSize()+";\n int in_d = d + offset_d;\n\n float result = "+this.getInputSamplingString()+";\n setOutput(result);\n }\n "}return e.prototype.getHeightCoordString=function(){return"NHWC"===this.dataFormat?"coords[1]":"coords[2]"},e.prototype.getWidthCoordString=function(){return"NHWC"===this.dataFormat?"coords[2]":"coords[3]"},e.prototype.getDepthCoordString=function(){return"NHWC"===this.dataFormat?"coords[3]":"coords[1]"},e.prototype.getOutputDepthSize=function(){return"NHWC"===this.dataFormat?this.outputShape[3]:this.outputShape[1]},e.prototype.getInputSamplingString=function(){return"NHWC"===this.dataFormat?"getX(b, in_h, in_w, in_d)":"getX(b, in_d, in_h, in_w)"},e}(),mo=function(e){this.variableNames=["X"],this.outputShape=[e,e],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n float val = coords[0] == coords[1] ? getX(coords[0]) : 0.0;\n setOutput(val);\n }\n "},go=function(e){this.variableNames=["A"],this.outTexUsage=je.DOWNLOAD;var t=bi();this.outputShape=e,this.userCode="\n "+xi+"\n\n void main() {\n float x = getAAtOutCoords();\n "+t.output+" = encode_float(x);\n }\n "},bo=function(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outTexUsage=je.DOWNLOAD;var t=bi();this.outputShape=e,this.userCode="\n "+xi+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n float x = getChannel(getAAtOutCoords(), vec2(coords.y, coords.z));\n "+t.output+" = encode_float(x);\n }\n "},wo=function(e,t,n){void 0===n&&(n=!1),this.variableNames=["A"];var r=bi(),i=t[0],o=t[1];this.outputShape=e;var a="result";n&&(a="floor(result * 255. + 0.5)"),this.userCode="\n "+_i(e)+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n\n int flatIndex = getFlatIndex(coords);\n int offset = imod(flatIndex, 4);\n\n flatIndex = idiv(flatIndex, 4, 1.);\n \n int r = flatIndex / "+o+";\n int c = imod(flatIndex, "+o+");\n vec2 uv = (vec2(c, r) + halfCR) / vec2("+o+".0, "+i+".0);\n vec4 values = "+r.texture2D+"(A, uv);\n\n float result;\n\n if(offset == 0) {\n result = values[0];\n } else if(offset == 1) {\n result = values[1];\n } else if(offset == 2) {\n result = values[2];\n } else {\n result = values[3];\n }\n\n "+r.output+" = vec4("+a+", 0., 0., 0.);\n }\n "},_o=function(e,t,n){void 0===n&&(n=!1),this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0;var r=bi(),i=t[0],o=t[1];this.outputShape=e;var a="",u="result";n&&(u="floor(result * 255. + 0.5)");for(var s=0;s<=1;s++)for(var c=0;c<=1;c++){var l=2*s+c;a+="\n localCoords = coords;\n if(localCoords[2] + "+c+" < "+e[2]+") {\n localCoords[2] += "+c+";\n if(localCoords[1] + "+s+" < "+e[1]+") {\n localCoords[1] += "+s+";\n\n flatIndex = getFlatIndex(localCoords);\n offset = imod(flatIndex, 4);\n\n flatIndex = idiv(flatIndex, 4, 1.);\n\n r = flatIndex / "+o+";\n c = imod(flatIndex, "+o+");\n uv = (vec2(c, r) + halfCR) / vec2("+o+".0, "+i+".0);\n values = "+r.texture2D+"(A, uv);\n\n if(offset == 0) {\n result["+l+"] = values[0];\n } else if(offset == 1) {\n result["+l+"] = values[1];\n } else if(offset == 2) {\n result["+l+"] = values[2];\n } else {\n result["+l+"] = values[3];\n }\n }\n }\n "}this.userCode="\n "+_i(e)+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n\n vec4 result = vec4(0.);\n int flatIndex, r, c, offset;\n ivec3 localCoords;\n vec2 uv;\n vec4 values;\n\n "+a+"\n\n "+r.output+" = "+u+";\n }\n "},xo=function(e,t,n){this.variableNames=["real","imag"];var r=t[1];this.outputShape=t;var i=n?"2.0 * "+Math.PI:"-2.0 * "+Math.PI;this.userCode="\n const float exponentMultiplier = "+i+";\n\n float unaryOpComplex(float real, float expR, float imag, float expI) {\n "+e+"\n }\n\n float mulMatDFT(int batch, int index) {\n float indexRatio = float(index) / float("+r+");\n float exponentMultiplierTimesIndexRatio =\n exponentMultiplier * indexRatio;\n\n float result = 0.0;\n\n for (int i = 0; i < "+r+";
1 i++) {\n // x = (-2|2 * PI / N) * index * i;\n float x = exponentMultiplierTimesIndexRatio * float(i);\n float expR = cos(x);\n float expI = sin(x);\n float real = getReal(batch, i);\n float imag = getImag(batch, i);\n\n result +=\n unaryOpComplex(real, expR, imag, expI) / "+(n?r+".0":"1.0")+";\n }\n\n return result;\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n setOutput(mulMatDFT(coords[0], coords[1]));\n }\n "},ko=function(){function e(e,t){this.outputShape=[],this.variableNames=["x"],this.outputShape=e,this.userCode="\n uniform float value;\n void main() {\n // Input can be obtained from uniform value.\n setOutput(value);\n }\n "}return e.prototype.getCustomSetupFunc=function(e){var t=this;return function(n,r){null==t.valueLoc&&(t.valueLoc=n.getUniformLocationNoThrow(r,"value")),n.gl.uniform1f(t.valueLoc,e)}},e}(),Co=function(e,t,n){this.variableNames=["A","indices"];var r=e.slice();r[n]=t,this.outputShape=r,this.rank=r.length;var i=Mi(this.rank),o=function(e,t){var n=e.length;if(n>4)throw Error("Gather for rank "+n+" is not yet supported");if(1===n)return"int(getIndices(resRC))";for(var r=["resRC.x","resRC.y","resRC.z","resRC.w"],i=[],o=0;o<e.length;o++)i.push(o===t?"int(getIndices("+r[o]+"))":""+r[o]);return i.join()}(e,n);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+o+"));\n }\n "},So=function(e,t,n){this.sliceDim=e,this.strides=t,this.variableNames=["x","indices"],this.outputShape=n;var r=Mi(t.length),i=Mi(n.length);this.userCode="\n "+r+" strides = "+r+"("+this.strides+");\n void main() {\n "+i+" coords = getOutputCoords();\n int flattenIndex = 0;\n for (int j = 0; j < "+this.sliceDim+";
1 j++) {\n int index = round(getIndices(coords[0], j));\n flattenIndex += index * "+(this.sliceDim>1?"strides[j]":"strides")+";\n }\n setOutput(getX(flattenIndex, coords[1]));\n }\n "};function Eo(e,t){var n=bi();return Qe(e,t,n.version+"\n precision highp float;\n "+n.attribute+" vec3 clipSpacePos;\n "+n.attribute+" vec2 uv;\n "+n.varyingVs+" vec2 resultUV;\n\n void main() {\n gl_Position = vec4(clipSpacePos, 1);\n resultUV = uv;\n }")}function Ao(e,t){return ot(e,t,new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0]))}function Oo(e,t){return at(e,t,new Uint16Array([0,1,2,2,1,3]))}function Do(e,t,n,r,i,o,a){st(n,r);var u=ut(e,t),s=e.TEXTURE_2D;return Ke(e,t,function(){return e.bindTexture(s,u)}),Ke(e,t,function(){return e.texParameteri(s,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE)}),Ke(e,t,function(){return e.texParameteri(s,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}),Ke(e,t,function(){return e.texParameteri(s,e.TEXTURE_MIN_FILTER,e.NEAREST)}),Ke(e,t,function(){return e.texParameteri(s,e.TEXTURE_MAG_FILTER,e.NEAREST)}),Ke(e,t,function(){return e.texImage2D(s,0,i,n,r,0,o,a,null)}),Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,null)}),u}function Io(e,t,n,r,i){var o=ze(n,r);return Do(e,t,o[0],o[1],i.internalFormatFloat,i.textureFormatFloat,e.FLOAT)}function To(e,t,n,r,i){var o=ze(n,r);return Do(e,t,o[0],o[1],i.internalFormatHalfFloat,i.textureFormatFloat,i.textureTypeHalfFloat)}function Mo(e,t,n,r,i){var o=ze(n,r);return Do(e,t,o[0],o[1],e.RGBA,e.RGBA,e.UNSIGNED_BYTE)}function Po(e,t,n,r,i){var o=He(n,r);return Do(e,t,o[0],o[1],i.internalFormatPackedFloat,e.RGBA,e.FLOAT)}function Ro(e,t,n,r,i){var o=He(n,r);return Do(e,t,o[0],o[1],i.internalFormatPackedHalfFloat,e.RGBA,i.textureTypeHalfFloat)}function Fo(e,t,n,r){return Ke(e,t,function(){return e.bindBuffer(e.ARRAY_BUFFER,r)}),lt(e,t,n,"clipSpacePos",r,3,20,0)&<(e,t,n,"uv",r,2,20,12)}function No(e,t,n,r,i,o,a){var u,s,c;Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,n)}),o instanceof Uint8Array?(u=new Uint8Array(r*i*4),s=e.UNSIGNED_BYTE,c=e.RGBA):(u=new Float32Array(r*i*4),s=e.FLOAT,c=a.internalFormatPackedFloat),u.set(o),Ke(e,t,function(){return e.texImage2D(e.TEXTURE_2D,0,c,r,i,0,e.RGBA,s,u)}),Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,null)})}function jo(e,t,n,r){Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,n)}),r.data instanceof Uint8Array?Ke(e,t,function(){return e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r.width,r.height,0,e.RGBA,e.UNSIGNED_BYTE,r.data)}):Ke(e,t,function(){return e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r)}),Ke(e,t,function(){return e.bindTexture(e.TEXTURE_2D,null)})}function Lo(e,t,n,r,i){var o=e.createBuffer();Ke(e,t,function(){return e.bindBuffer(e.PIXEL_PACK_BUFFER,o)});var a=16*n*r;return Ke(e,t,function(){return e.bufferData(e.PIXEL_PACK_BUFFER,a,e.STREAM_READ)}),Ke(e,t,function(){return e.readPixels(0,0,r,n,e.RGBA,e.FLOAT,0)}),Ke(e,t,function(){return e.bindBuffer(e.PIXEL_PACK_BUFFER,null)}),o}function Bo(e,t,n){var r=e,i=new Float32Array(n);return r.bindBuffer(r.PIXEL_PACK_BUFFER,t),r.getBufferSubData(r.PIXEL_PACK_BUFFER,0,i),r.bindBuffer(r.PIXEL_PACK_BUFFER,null),i}function Vo(e,t,n,r,i){var o=ze(n,r),a=o[0],u=o[1],s=new Uint8Array(n*r*4);return Ke(e,t,function(){return e.readPixels(0,0,a,u,i.downloadTextureFormat,e.UNSIGNED_BYTE,s)}),new Float32Array(s.buffer)}function Wo(e,t,n,r,i,o,a,u){var s,c=e,l=new Float32Array((s=He(o,a))[0]*s[1]*4);return c.bindBuffer(c.PIXEL_PACK_BUFFER,t),c.getBufferSubData(c.PIXEL_PACK_BUFFER,0,l),c.bindBuffer(c.PIXEL_PACK_BUFFER,null),l}function Uo(e,t,n,r){var i=new Float32Array(n*r*4);return Ke(e,t,function(){return e.readPixels(0,0,r,n,e.RGBA,e.FLOAT,i)}),i}var zo=Object.freeze({createVertexShader:Eo,createVertexBuffer:Ao,createIndexBuffer:Oo,createFloat32MatrixTexture:Io,createFloat16MatrixTexture:To,createUnsignedBytesMatrixTexture:Mo,createPackedMatrixTexture:Po,createFloat16PackedMatrixTexture:Ro,bindVertexProgramAttributeStreams:Fo,uploadDenseMatrixToTexture:No,uploadPixelDataToTexture:jo,createBufferFromOutputTexture:Lo,downloadFloat32MatrixFromBuffer:Bo,downloadByteEncodedFloatMatrixFromOutputTexture:Vo,downloadPackedMatrixFromBuffer:Wo,downloadMatrixFromPackedOutputTexture:Uo}),qo=function(){function e(e){this.outputTexture=null,this.program=null,this.disposed=!1,this.vertexAttrsAreBound=!1,this.itemsToPoll=[];var t=c().getNumber("WEBGL_VERSION");null!=e?(this.gl=e,We(t,e)):this.gl=Ue(t);var n="WEBGL_color_buffer_float";if(1===c().getNumber("WEBGL_VERSION")){if(this.textureFloatExtension=Ze(this.gl,this.debug,"OES_texture_float"),It(this.gl,"OES_texture_half_float"))this.textureHalfFloatExtension=Ze(this.gl,this.debug,"OES_texture_half_float");else if(c().get("WEBGL_FORCE_F16_TEXTURES"))throw new Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");if(this.colorBufferFloatExtension=this.gl.getExtension(n),It(this.gl,"EXT_color_buffer_half_float"))this.colorBufferHalfFloatExtension=Ze(this.gl,this.debug,"EXT_color_buffer_half_float");else if(c().get("WEBGL_FORCE_F16_TEXTURES"))throw new Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.")}else if(It(this.gl,n="EXT_color_buffer_float"))this.colorBufferFloatExtension=this.gl.getExtension(n);else{if(!It(this.gl,"EXT_color_buffer_half_float"))throw new Error("GL context does not support color renderable floats");this.colorBufferHalfFloatExtension=this.gl.getExtension("EXT_color_buffer_half_float")}this.vertexBuffer=Ao(this.gl,this.debug),this.indexBuffer=Oo(this.gl,this.debug),this.framebuffer=ct(this.gl,this.debug),this.textureConfig=Ge(this.gl,this.textureHalfFloatExtension)}return Object.defineProperty(e.prototype,"debug",{get:function(){return c().getBool("DEBUG")},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){var e=this;if(!this.disposed){null!=this.program&&console.warn("Disposing a GPGPUContext that still has a bound WebGLProgram. This is probably a resource leak, delete the program with GPGPUContext.deleteProgram before disposing."),null!=this.outputTexture&&console.warn("Disposing a GPGPUContext that still has a bound output matrix texture. This is probably a resource leak, delete the output matrix texture with GPGPUContext.deleteMatrixTexture before disposing.");var t=this.gl;Ke(t,this.debug,function(){return t.finish()}),Ke(t,this.debug,function(){return t.bindFramebuffer(t.FRAMEBUFFER,null)}),Ke(t,this.debug,function(){return t.deleteFramebuffer(e.framebuffer)}),Ke(t,this.debug,function(){return t.bindBuffer(t.ARRAY_BUFFER,null)}),Ke(t,this.debug,function(){return t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null)}),Ke(t,this.debug,function(){return t.deleteBuffer(e.indexBuffer)}),this.disposed=!0}},e.prototype.createFloat32MatrixTexture=function(e,t){return this.throwIfDisposed(),Io(this.gl,this.debug,e,t,this.textureConfig)},e.prototype.createFloat16MatrixTexture=function(e,t){return this.throwIfDisposed(),To(this.gl,this.debug,e,t,this.textureConfig)},e.prototype.createUnsignedBytesMatrixTexture=function(e,t){return this.throwIfDisposed(),Mo(this.gl,this.debug,e,t)},e.prototype.uploadPixelDataToTexture=function(e,t){this.throwIfDisposed(),jo(this.gl,this.debug,e,t)},e.prototype.uploadDenseMatrixToTexture=function(e,t,n,r){this.throwIfDisposed(),No(this.gl,this.debug,e,t,n,r,this.textureConfig)},e.prototype.createFloat16PackedMatrixTexture=function(e,t){return this.throwIfDisposed(),Ro(this.gl,this.debug,e,t,this.textureConfig)},e.prototype.createPackedMatrixTexture=function(e,t){return this.throwIfDisposed(),Po(this.gl,this.debug,e,t,this.textureConfig)},e.prototype.deleteMatrixTexture=function(e){var t=this;this.throwIfDisposed(),this.outputTexture===e&&(yt(this.gl,this.debug,this.framebuffer),this.outputTexture=null),Ke(this.gl,this.debug,function(){return t.gl.deleteTexture(e)})},e.prototype.downloadByteEncodedFloatMatrixFromOutputTexture=function(e,t,n){var r=this;return this.downloadMatrixDriver(e,function(){return Vo(r.gl,r.debug,t,n,r.textureConfig)})},e.prototype.downloadPackedMatrixFromBuffer=function(e,t,n,r,i,o){return Wo(this.gl,e,0,0,0,i,o)},e.prototype.downloadFloat32MatrixFromBuffer=function(e,t){return Bo(this.gl,e,t)},e.prototype.createBufferFromTexture=function(e,t,n){this.bindTextureToFrameBuffer(e);var r=Lo(this.gl,this.debug,t,n);return this.unbindTextureToFrameBuffer(),r},e.prototype.createAndWaitForFence=function(){var e=this.createFence(this.gl);
vendor: 9,609 bytes, line 1
1return this.pollFence(e)},e.prototype.createFence=function(e){var t,n,r=this;if(c().getBool("WEBGL_FENCE_API_ENABLED")){var i=e,o=i.fenceSync(i.SYNC_GPU_COMMANDS_COMPLETE,0);e.flush(),n=function(){var e=i.clientWaitSync(o,0,0);return e===i.ALREADY_SIGNALED||e===i.CONDITION_SATISFIED},t=o}else c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0?(t=this.beginQuery(),this.endQuery(),n=function(){return r.isQueryAvailable(t,c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))}):n=function(){return!0};return{query:t,isFencePassed:n}},e.prototype.downloadMatrixFromPackedTexture=function(e,t,n){var r=this;return this.downloadMatrixDriver(e,function(){return Uo(r.gl,r.debug,t,n)})},e.prototype.createProgram=function(e){this.throwIfDisposed();var t=this.gl,n=Xe(t,this.debug,e),r=Eo(t,this.debug),i=nt(t,this.debug);return Ke(t,this.debug,function(){return t.attachShader(i,r)}),Ke(t,this.debug,function(){return t.attachShader(i,n)}),rt(t,this.debug,i),this.debug&&it(t,this.debug,i),this.vertexAttrsAreBound||(this.setProgram(i),this.vertexAttrsAreBound=Fo(t,this.debug,this.program,this.vertexBuffer)),i},e.prototype.deleteProgram=function(e){var t=this;this.throwIfDisposed(),e===this.program&&(this.program=null),null!=e&&Ke(this.gl,this.debug,function(){return t.gl.deleteProgram(e)})},e.prototype.setProgram=function(e){var t=this;this.throwIfDisposed(),this.program=e,null!=this.program&&this.debug&&it(this.gl,this.debug,this.program),Ke(this.gl,this.debug,function(){return t.gl.useProgram(e)})},e.prototype.getUniformLocation=function(e,t,n){return void 0===n&&(n=!0),this.throwIfDisposed(),n?ht(this.gl,this.debug,e,t):dt(this.gl,e,t)},e.prototype.getAttributeLocation=function(e,t){var n=this;return this.throwIfDisposed(),Ke(this.gl,this.debug,function(){return n.gl.getAttribLocation(e,t)})},e.prototype.getUniformLocationNoThrow=function(e,t){return this.throwIfDisposed(),this.gl.getUniformLocation(e,t)},e.prototype.setInputMatrixTexture=function(e,t,n){this.throwIfDisposed(),this.throwIfNoProgram(),pt(this.gl,this.debug,0,e,t,n)},e.prototype.setOutputMatrixTexture=function(e,t,n){this.setOutputMatrixTextureDriver(e,n,t)},e.prototype.setOutputPackedMatrixTexture=function(e,t,n){this.throwIfDisposed();var r=He(t,n);this.setOutputMatrixTextureDriver(e,r[0],r[1])},e.prototype.setOutputMatrixWriteRegion=function(e,t,n,r){this.setOutputMatrixWriteRegionDriver(n,e,r,t)},e.prototype.setOutputPackedMatrixWriteRegion=function(e,t,n,r){throw new Error("setOutputPackedMatrixWriteRegion not implemented.")},e.prototype.debugValidate=function(){null!=this.program&&it(this.gl,this.debug,this.program),mt(this.gl)},e.prototype.executeProgram=function(){this.throwIfDisposed(),this.throwIfNoProgram();var e=this.gl;this.debug&&this.debugValidate(),Ke(e,this.debug,function(){return e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0)})},e.prototype.blockUntilAllProgramsCompleted=function(){var e=this;this.throwIfDisposed(),Ke(this.gl,this.debug,function(){return e.gl.finish()})},e.prototype.getQueryTimerExtension=function(){return null==this.disjointQueryTimerExtension&&(this.disjointQueryTimerExtension=Ze(this.gl,this.debug,2===c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")?"EXT_disjoint_timer_query_webgl2":"EXT_disjoint_timer_query")),this.disjointQueryTimerExtension},e.prototype.getQueryTimerExtensionWebGL2=function(){return this.getQueryTimerExtension()},e.prototype.getQueryTimerExtensionWebGL1=function(){return this.getQueryTimerExtension()},e.prototype.beginQuery=function(){if(2===c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){var e=this.gl,t=this.getQueryTimerExtensionWebGL2(),n=e.createQuery();return e.beginQuery(t.TIME_ELAPSED_EXT,n),n}var r=this.getQueryTimerExtensionWebGL1(),i=r.createQueryEXT();return r.beginQueryEXT(r.TIME_ELAPSED_EXT,i),i},e.prototype.endQuery=function(){if(2!==c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){var e=this.getQueryTimerExtensionWebGL1();e.endQueryEXT(e.TIME_ELAPSED_EXT)}else{var t=this.gl,n=this.getQueryTimerExtensionWebGL2();t.endQuery(n.TIME_ELAPSED_EXT)}},e.prototype.waitForQueryAndGetTime=function(e){return o(this,void 0,void 0,function(){var t=this;return a(this,function(n){switch(n.label){case 0:return[4,M(function(){return t.disposed||t.isQueryAvailable(e,c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))})];case 1:return n.sent(),[2,this.getQueryTime(e,c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))]}})})},e.prototype.getQueryTime=function(e,t){if(0===t)return null;if(2===t){var n=this.gl;return n.getQueryParameter(e,n.QUERY_RESULT)/1e6}var r=this.getQueryTimerExtensionWebGL1();return r.getQueryObjectEXT(e,r.QUERY_RESULT_EXT)/1e6},e.prototype.isQueryAvailable=function(e,t){if(0===t)return!0;if(2===t){var n=this.gl,r=this.getQueryTimerExtensionWebGL2(),i=n.getQueryParameter(e,n.QUERY_RESULT_AVAILABLE);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(r.GPU_DISJOINT_EXT)),i&&!this.disjoint}return i=(r=this.getQueryTimerExtensionWebGL1()).getQueryObjectEXT(e,r.QUERY_RESULT_AVAILABLE_EXT),null==this.disjoint&&(this.disjoint=this.gl.getParameter(r.GPU_DISJOINT_EXT)),i&&!this.disjoint},e.prototype.pollFence=function(e){var t=this;return new Promise(function(n){t.addItemToPoll(function(){return e.isFencePassed()},function(){return n()})})},e.prototype.pollItems=function(){for(var e=function(e){for(var t=0;t<e.length&&e[t]();++t);return t-1}(this.itemsToPoll.map(function(e){return e.isDoneFn})),t=0;t<=e;++t)(0,this.itemsToPoll[t].resolveFn)();this.itemsToPoll=this.itemsToPoll.slice(e+1)},e.prototype.addItemToPoll=function(e,t){var n=this;this.itemsToPoll.push({isDoneFn:e,resolveFn:t}),this.itemsToPoll.length>1||M(function(){return n.pollItems(),0===n.itemsToPoll.length})},e.prototype.bindTextureToFrameBuffer=function(e){this.throwIfDisposed(),vt(this.gl,this.debug,e,this.framebuffer),this.debug&&mt(this.gl)},e.prototype.unbindTextureToFrameBuffer=function(){null!=this.outputTexture?(vt(this.gl,this.debug,this.outputTexture,this.framebuffer),this.debug&&mt(this.gl)):yt(this.gl,this.debug,this.framebuffer)},e.prototype.downloadMatrixDriver=function(e,t){this.bindTextureToFrameBuffer(e);var n=t();return this.unbindTextureToFrameBuffer(),n},e.prototype.setOutputMatrixTextureDriver=function(e,t,n){this.throwIfDisposed();var r=this.gl;vt(r,this.debug,e,this.framebuffer),this.debug&&mt(r),this.outputTexture=e,Ke(r,this.debug,function(){return r.viewport(0,0,t,n)}),Ke(r,this.debug,function(){return r.scissor(0,0,t,n)})},e.prototype.setOutputMatrixWriteRegionDriver=function(e,t,n,r){var i=this;this.throwIfDisposed(),Ke(this.gl,this.debug,function(){return i.gl.scissor(e,t,n,r)})},e.prototype.throwIfDisposed=function(){if(this.disposed)throw new Error("Attempted to use disposed GPGPUContext.")},e.prototype.throwIfNoProgram=function(){if(null==this.program)throw new Error("No GPU program is currently set.")},e}();function Ho(e,t){if(e.length!==t.length)throw Error("Binary was compiled with "+e.length+" inputs, but was executed with "+t.length+" inputs");e.forEach(function(e,n){var r=e.logicalShape,i=t[n],o=i.shape;if(!A(r,o))throw Error("Binary was compiled with different shapes than the current args. Shapes "+r+" and "+o+" must match");if(!e.isUniform||!i.isUniform){var a=e.texShape,u=i.isUniform?null:i.texData.texShape;if(!A(a,u))throw Error("Binary was compiled with different texture shapes than the current args. Shape "+a+" and "+u+" must match")}})}var Go=function(e,t,n){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e;for(var r=n.inChannels,i=n.strideWidth,o=n.strideHeight,a=n.padInfo,u=n.outWidth,s=n.dilationWidth,c=n.dilationHeight,l=n.dataFormat,f=a.left,h=a.top,d=r*n.filterWidth,p=bi(),v="channelsLast"===l,y=v?0:1,m=v?1:2,g="",b=0;b<=1;b++)for(var w=0;w<=1;w++)g+="\n blockIndex = rc.y + "+w+";\n pos = rc.x + "+b+";\n\n if(blockIndex < "+e[1]+" && pos < "+e[0]+") {\n offsetY = int(blockIndex / ("+u+")) * "+o+" - "+h+";\n d0 = offsetY + "+c+" * (pos / "+d+");\n\n if(d0 < "+t[y]+" && d0 >= 0) {\n\n offsetX = int(mod(float(blockIndex), "+u+".) * "+i+". - "+f+".);\n d1 = offsetX + "+s+" * (int(mod(float(pos), "+d+".) / "+r+".));\n\n if(d1 < "+t[m]+" && d1 >= 0) {\n\n ch = int(mod(float(pos), "+r+".));\n\n if ("+v+") {\n innerDims = vec2(d1, ch);\n result["+(2*b+w)+"] = getChannel(\n getA(d0, int(innerDims.x),\n int(innerDims.y)), innerDims);\n } else {\n innerDims = vec2(d0, d1);\n result["+(2*b+w)+"] = getChannel(\n getA(ch, int(innerDims.x),\n int(innerDims.y)), innerDims);\n }\n }\n }\n }\n ";this.userCode="\n void main() {\n ivec2 rc = getOutputCoords();\n\n vec4 result = vec4(0);\n\n int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\n vec2 innerDims;\n\n "+g+"\n\n "+p.output+" = result;\n }\n "},Ko=function(e,t,n,r,i){this.variableNames=["x"],this.outputShape=[];var o=t,a=e[3]-1;this.outputShape=e;var u="float("+n+") + float("+r+") * sum";this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n int d = coords[3];\n float x = getX(b, r, c, d);\n float sum = 0.0;
1\n for (int j = -"+o+"; j <= "+o+"; j++) {\n int idx = d + j;\n if (idx >= 0 && idx <= "+a+") {\n float z = getX(b, r, c, idx);\n sum += z * z;\n }\n }\n float val = x * "+(.5===i?"inversesqrt("+u+")":1===i?"1.0/("+u+")":"exp(log("+u+") * float(-"+i+"));")+";\n setOutput(val);\n }\n "},Yo=function(e,t,n,r,i){this.variableNames=["inputImage","outputImage","dy"],this.outputShape=[],this.outputShape=e,this.depth=e[3],this.depthRadius=t,this.bias=n,this.alpha=r,this.beta=i,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n\n float result = 0.0;\n for (int d = 0; d < "+this.depth+"; ++d) {\n int depthBegin = int(max(0.0, float(d - "+t+")));\n int depthEnd = int(min(float("+this.depth+"),\n float(d + "+t+" + 1)));\n\n const int MIN_DEPTH_BEGIN = 0;\n const int MAX_DEPTH_END = "+this.depth+";\n\n float norm = 0.0;\n for (int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k) {\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd) {\n norm += getInputImage(b, r, c, k) * getInputImage(b, r, c, k);\n }\n else {\n break;\n }\n }\n\n norm = float("+r+") * norm + float("+n+");\n\n for(int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k){\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd){\n float dyi = -2.0 * float("+r+")\n * float("+i+")\n * getInputImage(b ,r ,c, k) * getOutputImage(b, r, c, d)\n / norm;\n if (k == d) {\n dyi += pow(norm, -1.0 * "+i+");\n }\n if (k == coords[3]) {\n dyi *= getDy(b, r, c, d);\n result += dyi;\n }\n }\n else {\n break;\n }\n }\n }\n setOutput(result);\n }\n "},$o=function(e,t,n,r,i){this.variableNames=["x"],this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0;var o=t,a=e[3]-1;this.outputShape=e;var u="float("+n+") + float("+r+") * sum";this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords.x;\n int r = coords.y;\n int c = coords.z;\n int d = coords.w;\n\n bool hasNextCol = d < "+this.outputShape[3]+";\n bool hasNextRow = c < "+this.outputShape[2]+";\n\n vec4 sum = vec4(0.);\n vec4 xFragAtOutputCoords = getX(b, r, c, d);\n\n vec4 xAtOutputCoords = vec4(\n getChannel(xFragAtOutputCoords, vec2(c, d)),\n hasNextCol ?\n getChannel(xFragAtOutputCoords, vec2(c, d + 1)) : 0.0,\n hasNextRow ?\n getChannel(xFragAtOutputCoords , vec2(c + 1, d)) : 0.0,\n (hasNextRow && hasNextCol) ?\n getChannel(xFragAtOutputCoords, vec2(c + 1, d + 1)) : 0.0\n );\n\n int firstChannel = d - "+o+";\n vec2 cache = vec2(0.);\n if(firstChannel >= 0){\n vec4 firstChannelFrag = getX(b, r, c, firstChannel);\n cache.x = getChannel(firstChannelFrag, vec2(c, firstChannel));\n if(hasNextRow){\n cache.y = getChannel(firstChannelFrag, vec2(c + 1, firstChannel));\n }\n }\n\n ivec2 depth = ivec2(d, d + 1);\n for (int j = - "+o+"; j <= "+o+"; j++) {\n ivec2 idx = depth + j;\n bvec2 aboveLowerBound = greaterThanEqual(idx, ivec2(0));\n bvec2 belowUpperBound = lessThanEqual(idx, ivec2("+a+"));\n\n bool depthInRange = aboveLowerBound.x && belowUpperBound.x;\n bool depthPlusOneInRange = aboveLowerBound.y && belowUpperBound.y;\n\n if(depthInRange || depthPlusOneInRange){\n vec4 z = vec4(0.);\n vec4 xFragAtCurrentDepth;\n z.xz = cache.xy;\n if(depthPlusOneInRange && hasNextCol){\n xFragAtCurrentDepth = idx.y != d ?\n getX(b, r, c, idx.y) : xFragAtOutputCoords;\n z.y = getChannel(xFragAtCurrentDepth, vec2(c, idx.y));\n if(hasNextRow){\n z.w = getChannel(xFragAtCurrentDepth, vec2(c + 1, idx.y));\n }\n }\n cache.xy = z.yw;\n sum += z * z;\n }\n }\n vec4 result = xAtOutputCoords * "+(.5===i?"inversesqrt("+u+")":1===i?"1.0/("+u+")":"exp(log("+u+") * float(-"+i+"));")+";\n setOutput(result);\n }\n "},Zo=function(e){this.variableNames=["dy","maxPos"],this.outputShape=e.inShape;var t=e.effectiveFilterHeight,n=e.effectiveFilterWidth;this.userCode="\n const ivec2 pads = ivec2("+(t-1-e.padInfo.top)+", "+(n-1-e.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+t+";\n wR += "+e.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+n+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n int maxPosValue = "+(t*n-1)+" - int(getMaxPos(b, idyR, idyC, d));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue = wR * "+n+" + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n setOutput(dotProd);\n }\n "},Qo=function(e){this.variableNames=["dy","maxPos"],this.outputShape=e.inShape;var t=e.effectiveFilterDepth,n=e.effectiveFilterHeight,r=e.effectiveFilterWidth;this.userCode="\n const ivec3 pads = ivec3("+(t-1-e.padInfo.front)+", "+(n-1-e.padInfo.top)+", "+(r-1-e.padInfo.left)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, ch) with pos mask(:, :, :, d) to get\n // dx(x
1D, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < "+t+";\n wD += "+e.dilationDepth+") {\n float dyD = float(dyDCorner + wD) / "+e.strideDepth+".0;\n\n if (dyD < 0.0 || dyD >= "+e.outDepth+".0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < "+n+";\n wR += "+e.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+e.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+e.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+r+";\n wC += "+e.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+e.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+e.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n int maxPosValue = "+(t*n*r-1)+" -\n int(getMaxPos(batch, idyD, idyR, idyC, ch));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue =\n wD * "+n+" * "+r+" +\n wR * "+r+" + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n }\n setOutput(dotProd);\n }\n "},Xo=function(e,t,n,r,i,o,a){void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===o&&(o=null),void 0===a&&(a=!1),this.variableNames=["matrixA","matrixB"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t;var u=Math.ceil((n?e[1]:e[2])/2),s=n?"i * 2, rc.y":"rc.y, i * 2",c=r?"rc.z, i * 2":"i * 2, rc.z",l=n?["a.xxyy","a.zzww"]:["a.xxzz","a.yyww"],f=r?["b.xzxz","b.ywyw"]:["b.xyxy","b.zwzw"],h="",d="";o&&(h=a?"vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n "+o+"\n }":"vec4 activation(vec4 x) {\n "+o+"\n }",d="result = activation(result);");var p=i?"result += getBiasAtOutCoords();":"";i&&this.variableNames.push("bias"),a&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+h+"\n\n const float sharedDimension = "+u+".0;\n\n vec4 dot2x2ARowBCol(ivec3 rc) {\n vec4 result = vec4(0);\n for (int i = 0; i < "+u+"; i++) {\n vec4 a = getMatrixA(rc.x, "+s+");\n vec4 b = getMatrixB(rc.x, "+c+");\n\n // These swizzled products need to be separately added.\n // See: https://github.com/tensorflow/tfjs/issues/1735\n result += ("+l[0]+" * "+f[0]+");\n result += ("+l[1]+" * "+f[1]+");\n }\n return result;\n }\n\n void main() {\n ivec3 rc = getOutputCoords();\n vec4 result = dot2x2ARowBCol(rc);\n\n "+p+"\n\n "+d+"\n\n setOutput(result);\n }\n "},Jo=function(){function e(e,t,n){this.variableNames=["probs"],this.outputShape=[e,n],this.userCode="\n uniform float seed;\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n\n float r = random(seed);\n float cdf = 0.0;\n\n for (int i = 0; i < "+(t-1)+"; i++) {\n cdf += getProbs(batch, i);\n\n if (r < cdf) {\n setOutput(float(i));\n return;\n }\n }\n\n // If no other event happened, last event happened.\n setOutput(float("+(t-1)+"));\n }\n "}return e.prototype.getCustomSetupFunc=function(e){var t=this;return function(n,r){null==t.seedLoc&&(t.seedLoc=n.getUniformLocation(r,"seed")),n.gl.uniform1f(t.seedLoc,e)}},e}(),ea=function(e,t,n,r){this.variableNames=["indices"],this.outputShape=[e,t],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int index = round(getIndices(coords.x));\n setOutput(mix(float("+r+"), float("+n+"),\n float(index == coords.y)));\n }\n "},ta=function(e){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outputShape=e;var t,n,r,i=e.length;if(0===i)this.userCode="\n void main() {\n setOutput(vec4(getA(), 0., 0., 0.));\n }\n ";else{var o=gi("rc",i),a=Mi(i),u=function(e,t,n){if(1===e)return"rc > "+t[0];for(var r="",i=e-2;i<e;i++)r+=n[i]+" >= "+t[i],i<e-1&&(r+="||");return r}(i,e,o),s=function(e,t,n,r){if(1===e)return"";var i=r.slice(-2);return"\n int r = "+i[0]+";\n int c = "+i[1]+";\n int rp1 = r + 1;\n int cp1 = c + 1;\n\n bool cEdge = cp1 >= "+t+";\n bool rEdge = rp1 >= "+n+";\n "}(i,e[e.length-1],e[e.length-2],o),c=(r=function(e,t){for(var n=[],r=0;r<=1;r++)for(var i=0;i<=1;i++){for(var o=(0===r?"r":"rp1")+", "+(0===i?"c":"cp1"),a=2;a<e;a++)o=t[t.length-1-a]+","+o;n.push(o)}return n}(n=(t=e).length,o),1===n?"getA(rc),\n rc + 1 >= "+t[0]+" ? 0. : getA(rc + 1),\n 0, 0":"getA("+r[0]+"),\n cEdge ? 0. : getA("+r[1]+"),\n rE
1dge ? 0. : getA("+r[2]+"),\n rEdge || cEdge ? 0. : getA("+r[3]+")");this.userCode="\n void main() {\n "+a+" rc = getOutputCoords();\n\n if("+u+") {\n setOutput(vec4(0));\n } else {\n "+s+"\n\n setOutput(vec4("+c+"));\n }\n }\n "}},na=function(e,t,n){this.variableNames=["x"],this.outputShape=t.map(function(t,n){return t[0]+e[n]+t[1]});var r=e.length,i=Mi(r),o=t.map(function(e){return e[0]}).join(","),a=t.map(function(t,n){return t[0]+e[n]}).join(","),u=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,r);this.userCode=1!==r?"\n "+i+" start = "+i+"("+o+");\n "+i+" end = "+i+"("+a+");\n\n void main() {\n "+i+" outC = getOutputCoords();\n if (any(lessThan(outC, start)) || any(greaterThanEqual(outC, end))) {\n setOutput(float("+n+"));\n } else {\n "+i+" coords = outC - start;\n setOutput(getX("+u+"));\n }\n }\n ":"\n int start = "+o+";\n int end = "+a+";\n\n void main() {\n int outC = getOutputCoords();\n if (outC < start || outC >= end) {\n setOutput(float("+n+"));\n } else {\n setOutput(getX(outC - start));\n }\n }\n "},ra=function(e,t,n){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t.map(function(t,n){return t[0]+e[n]+t[1]});for(var r=e.length,i=Mi(r),o=t.map(function(e){return e[0]}).join(","),a=t.map(function(t,n){return t[0]+e[n]}).join(","),u=gi("rc",r),s=gi("source",r),c=u[r-1]+" < "+this.outputShape[r-1],l=1===r?"source":"vec2("+s.slice(-2).join()+")",f=[i+" rc = outputLoc;",u[r-1]+" += 1;\n if("+c+") {\n ",1===r?"":"}\n rc = outputLoc;\n "+u[r-2]+" += 1;\n if("+u[r-2]+" < "+this.outputShape[r-2]+") {",1===r?"":" "+u[r-1]+" += 1;\n if("+c+") {"],h=1===r?"rc < start || rc >= end":"any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))",d="",p=0,v=1===r?2:4;p<v;p++)d+="\n "+f[p]+"\n if ("+h+") {\n result["+p+"] = float("+n+");\n } else {\n "+i+" source = rc - start;\n result["+p+"] = getChannel(getX("+s.join()+"), "+l+");\n }\n ";this.userCode="\n const "+i+" start = "+i+"("+o+");\n const "+i+" end = "+i+"("+a+");\n\n void main() {\n "+i+" outputLoc = getOutputCoords();\n vec4 result = vec4(0.);\n "+(d+=1===r?"} ":"}}")+"\n setOutput(result);\n }\n "},ia=function(e,t,n){if(this.variableNames=["x"],"avg"===t&&n)throw new Error("Cannot compute positions for average pool.");var r=e.filterWidth,i=e.strideHeight,o=e.strideWidth,a=e.dilationHeight,u=e.dilationWidth,s=e.effectiveFilterHeight,c=e.effectiveFilterWidth,l=e.padInfo.top,f=e.padInfo.left;this.outputShape=e.outShape;var h="avg"===t,d="0.0";if(h||(d="-1.0 / 1e-20"),n)this.userCode="\n const ivec2 strides = ivec2("+i+", "+o+");\n const ivec2 pads = ivec2("+l+", "+f+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n float avgValue = 0.0;\n\n for (int wR = 0; wR < "+s+";\n wR += "+a+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+c+";\n wC += "+u+") {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n float value = getX(batch, xR, xC, d);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value >= currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition = wR * "+c+" + wC;\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n ";else{var p=t+"("+t+"("+t+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"avg"===t&&(p="avgValue / count");var v=4*Math.floor(r/4),y=r%4,m="\n if ("+h+") {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n ";this.userCode="\n const ivec2 strides = ivec2("+i+", "+o+");\n const ivec2 pads = ivec2("+l+", "+f+");\n const float initializationValue = "+d+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xR, int xC, int d) {\n if (xC < 0 || xC >= "+e.inWidth+") {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xR, xC, d);\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n vec4 minMaxValue = vec4("+d+");\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wR = 0; wR < "+s+";\n wR += "+a+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+v+"; wC += 4) {\n int xC = xCCorner + wC * "+u+";\n\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+u+", d),\n getValue(batch, xR, xC + 2 * "+u+", d),\n getValue(batch, xR, xC + 3 * "+u+", d)\n );\n\n "+m+"\n }\n\n int xC = xCCorner + "+v+";\n if ("+(1===y)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+m+"\n } else if ("+(2===y)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+u+", d),\n initializationValue,\n initializationValue\n );\n\n "+m+"\n } else if ("+(3===y)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+u+", d),\n getValue(batch, xR, xC + 2 * "+u+", d),\n initializationValue\n );\n\n "+m+"\n }\n }\n setOutput("+p+");\n }\n "}},oa=function(e,t,n){if(this.variableNames=["x"],"avg"===t&&n)throw new Error("Cannot compute positions for average pool.");var r=e.filterWidth,i=e.strideDepth,o=e.strideHeight,a=e.strideWidth,u=e.dilationDepth,s=e.dilationHeight,c=e.dilationWidth,l=e.effectiveFilterDepth,f=e.effectiveFilterHeight,h=e.effectiveFilterWidth,d=e.padInfo.front,p=e.padInfo.top,v=e.padInfo.left;this.outputShape=e.outShape;var y="avg"===t,m="0.0";if(y||(m="-1.0 / 1e-20"),n)this.userCode="\n const ivec3 strides =\n ivec3("+i+", "+o+", "+a+");\n const ivec3 pads = ivec3("+d+", "+p+", "+v+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, ch) to get y(yD, yR, yC, ch).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n\n for (int wD = 0; wD < "+l+";\n wD += "+u+") {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= "+e.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+f+";\n wR += "+s+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+h+";\n wC += "+c+") {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= "+e.inWidth+") {\n continue;\n }\n\n float value = getX(batch, xD, xR, xC, ch);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value >= currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition =\n wD * "+f+" * "+h+" +\n wR * "+h+" + wC;;\n }\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n ";else{var g=t+"("+t+"("+t+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"avg"===t&&(g="avgValue / count");var b=4*Math.floor(r/4),w=r%4,_="\n if ("+y+") {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n ";this.userCode="\n const ivec3 strides =\n ivec3("+i+", "+o+", "+a+");\n const ivec3 pads = ivec3("+d+", "+p+", "+v+");\n const float initializationValue = "+m+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xD, int xR, int xC, int ch) {\n if (xC < 0 || xC >= "+e.inWidth+") {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xD, xR, xC, ch);\n }\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, d) to get y(yD, yR, yC, ch).\n // ? = to be determined\n vec4 minMaxValue = vec4("+m+");\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wD = 0; wD < "+l+";\n wD += "+u+") {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= "+e.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+f+";\n wR += "+s+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+e.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+b+"; wC += 4) {\n int xC = xCCorner + wC * "+c+";\n\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+c+", ch),\n getValue(batch, xD, xR, xC + 2 * "+c+", ch),\n getValue(batch, xD, xR, xC + 3 * "+c+", ch)\n );\n\n "+_+"\n }\n\n int xC = xCCorner + "+b+";\n if ("+(1===w)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+_+"\n } else if ("+(2===w)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+c+", ch),\n initializationValue,\n initializationValue\n );\n\n "+_+"\n } else if ("+(3===w)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+c+", ch),\n getValue(batch, xD, xR, xC + 2 * "+c+", ch),\n initializationValue\n );\n\n "+_+"\n }\n }\n setOutput("+g+");\n }\n }\n "}},aa=function(e,t){this.variableNames=["x"];var n=e.windowSize,r=e.batchSize,i=e.inSize,o=Math.ceil(i/n);this.outputShape=[r,o];var a="0.0",u="";"prod"===t?a="1.0":"min"===t?(a="1.0 / 1e-20",u="min"):"max"===t&&(
vendor: 3,843 bytes, line 1
1a="-1.0 / 1e-20",u="max");var s=t+"("+t+"("+t+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"sum"===t?s="sumValue":"prod"===t?s="prodValue":"all"===t?s="allValue":"any"===t&&(s="anyValue");var c=4*Math.floor(n/4),l=n%4,f="\n if ("+("sum"===t)+") {\n sumValue += dot(values, ones);\n } else if ("+("prod"===t)+") {\n vec2 tmp = vec2(values[0], values[1]) * vec2(values[2], values[3]);\n prodValue *= tmp[0] * tmp[1];\n } else {\n minMaxValue = "+u+"(values, minMaxValue);\n }\n ",h="vec4";"all"===t?(a="1.0",f="\n bool reducedAllValue = all(values);\n float floatedReducedAllValue = float(reducedAllValue);\n allValue = float(allValue >= 1.0 && floatedReducedAllValue >= 1.0);\n ",h="bvec4"):"any"===t&&(a="0.0",f="\n bool reducedAnyValue = any(values);\n float floatedReducedAnyValue = float(reducedAnyValue);\n anyValue = float(anyValue >= 1.0 || floatedReducedAnyValue >= 1.0);\n ",h="bvec4");var d="";i%n>0&&(d="\n if (inIdx < 0 || inIdx >= "+i+") {\n return initializationValue;\n }\n "),this.userCode="\n const float initializationValue = "+a+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float getValue(int batch, int inIdx) {\n "+d+"\n return getX(batch, inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * "+n+";\n\n vec4 minMaxValue = vec4("+a+");\n float prodValue = 1.0;\n float sumValue = 0.0;\n float allValue = 1.0;\n float anyValue = 0.0;\n\n for (int i = 0; i < "+c+"; i += 4) {\n int inIdx = inOffset + i;\n "+h+" values = "+h+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n "+f+"\n }\n\n int inIdx = inOffset + "+c+";\n if ("+(1===l)+") {\n "+h+" values = "+h+"(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+f+"\n } else if ("+(2===l)+") {\n "+h+" values = "+h+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n "+f+"\n } else if ("+(3===l)+") {\n "+h+" values = "+h+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n "+f+"\n }\n setOutput("+s+");\n }\n "},ua=function(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e;for(var n="",r=0;r<4;r++){var i="thisRC = rc;";r%2==1&&(i+="thisRC.z += 1;"),r>1&&(i+="thisRC.y += 1;"),n+="\n "+i+"\n "+(r>0?"if(thisRC.y < rows && thisRC.z < cols){":"")+"\n int flatIndex = getFlatIndex(thisRC);\n\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flatIndex);\n vec2 inputRCInnerDims = vec2(float(inputRC.y),float(inputRC.z));\n\n result["+r+"] =\n getChannel(getA(inputRC.x, inputRC.y, inputRC.z), inputRCInnerDims);\n "+(r>0?"}":"")+"\n "}this.userCode="\n \n ivec3 inputCoordsFromReshapedOutCoords(int index) {\n "+wi(["r","c","d"],t)+"\n return ivec3(r, c, d);\n }\n \n "+_i(e)+"\n\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0.);\n\n ivec3 thisRC;\n int rows = "+e[1]+";\n int cols = "+e[2]+";
1\n\n "+n+"\n\n setOutput(result);\n }\n "},sa=function(e,t,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=t.shape;var r=t.shape,i=r[1],o=r[2],a=e.shape,u=a[1],s=a[2],c=[n&&u>1?i-1:i,n&&s>1?o-1:o],l=[n&&u>1?u-1:u,n&&s>1?s-1:s],f=c[0]/l[0],h=c[1]/l[1],d=1/f,p=1/h,v=2*Math.ceil(d)+2,y=2*Math.ceil(p)+2;this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float("+f+");\n const float widthScale = float("+h+");\n\n const float invHeightScale = float("+d+");\n const float invWidthScale = float("+p+");\n\n const int winHeight = int("+v+");\n const int winWidth = int("+y+");\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(startRLerp - float(winHeight / 2));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(startCLerp - float(winWidth / 2));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= "+u+") {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= "+s+") {\n continue;\n }\n\n float dxR = float(dyR) * heightScale;\n int topDxRIndex = int(floor(dxR));\n int bottomDxRIndex = int(min(ceil(dxR), "+(i-1)+".0));\n float dxRLerp = dxR - float(topDxRIndex);\n float inverseDxRLerp = 1.0 - dxRLerp;\n\n float dxC = float(dyC) * widthScale;\n int leftDxCIndex = int(floor(dxC));\n int rightDxCIndex = int(min(ceil(dxC), "+(o-1)+".0));\n float dxCLerp = dxC - float(leftDxCIndex);\n float inverseDxCLerp = 1.0 - dxCLerp;\n\n if (r == topDxRIndex && c == leftDxCIndex) {\n // topLeft\n accumulator +=\n getDy(b, dyR, dyC, d) * inverseDxRLerp * inverseDxCLerp;\n }\n\n if (r == topDxRIndex && c == rightDxCIndex) {\n // topRight\n accumulator += getDy(b, dyR, dyC, d) * inverseDxRLerp * dxCLerp;\n }\n\n if (r == bottomDxRIndex && c == leftDxCIndex) {\n // bottomLeft\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * inverseDxCLerp;\n }\n\n if (r == bottomDxRIndex && c == rightDxCIndex) {\n // bottomRight\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * dxCLerp;\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n "},ca=function(e,t,n,r){this.variableNames=["A"],this.outputShape=[];var i=e[1],o=e[2];this.outputShape=[e[0],t,n,e[3]];var a=[r&&t>1?i-1:i,r&&n>1?o-1:o],u=[r&&t>1?t-1:t,r&&n>1?n-1:n];this.userCode="\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n "+a[0]/u[0]+",\n "+a[1]/u[1]+");\n const vec2 inputShapeRC = vec2("+i+".0, "+o+".0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = vec2(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the four integer indices.\n ivec2 sourceFloorRC = ivec2(sourceFracIndexRC);\n ivec2 sourceCeilRC = ivec2(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n float topLeft = getA(b, sourceFloorRC.x, sourceFloorRC.y, d);\n float bottomLeft = getA(b, sourceCeilRC.x, sourceFloorRC.y, d);\n float topRight = getA(b, sourceFloorRC.x, sourceCeilRC.y, d);\n float bottomRight = getA(b, sourceCeilRC.x, sourceCeilRC.y, d);\n\n vec2 fracRC = sourceFracIndexRC - vec2(sourceFloorRC);\n\n float top = topLeft + (topRight - topLeft) * fracRC.y;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracRC.y;\n float newValue = top + (bottom - top) * fracRC.x;\n\n setOutput(newValue);\n }\n "},la=function(e,t,n,r){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[];var i=e[1],o=e[2],a=e[3];this.outputShape=[e[0],t,n,a];var u=[r&&t>1?i-1:i,r&&n>1?o-1:o],s=[r&&t>1?t-1:t,r&&n>1?n-1:n];this.userCode="\n const vec3 effectiveInputOverOutputRatioRC = vec3(\n "+u[0]/s[0]+",\n "+u[1]/s[1]+",\n "+u[1]/s[1]+");\n const vec3 inputShapeRC = vec3("+i+".0, "+o+".0,\n "+o+".0);\n\n float getAValue(int b, int r, int c, int d) {\n return getChannel(getA(b, r, c, d), vec2(c, d));\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n // Calculate values for next column in yRC.z.\n ivec3 yRC = coords.yzz + ivec3(0, 0, 1);\n\n // Fractional source index.\n vec3 sourceFracIndexRC = vec3(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the four integer indices.\n ivec3 sourceFloorRC = ivec3(sourceFracIndexRC);\n ivec3 sourceCeilRC = ivec3(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n // Should we calculate next column and row elements in 2x2 packed cell.\n bool hasNextCol = d < "+(a-1)+";\n bool hasNextRow = coords.z < "+(n-1)+"
vendor: 2,064 bytes, line 1
1;\n\n // In parallel, construct four corners for all four components in\n // packed 2x2 cell.\n vec4 topLeft = vec4(\n getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 bottomLeft = vec4(\n getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 topRight = vec4(\n getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec4 bottomRight = vec4(\n getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec3 fracRC = sourceFracIndexRC - vec3(sourceFloorRC);\n\n vec4 top = mix(topLeft, topRight, fracRC.yyzz);\n vec4 bottom = mix(bottomLeft, bottomRight, fracRC.yyzz);\n vec4 newValue = mix(top, bottom, fracRC.x);\n\n setOutput(newValue);\n }\n
1"},fa=function(e,t,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=t.shape;var r=t.shape,i=r[1],o=r[2],a=e.shape,u=a[1],s=a[2],c=[n&&u>1?i-1:i,n&&s>1?o-1:o],l=[n&&u>1?u-1:u,n&&s>1?s-1:s],f=c[0]/l[0],h=c[1]/l[1],d=1/f,p=1/h,v=2*Math.ceil(d)+2,y=2*Math.ceil(p)+2;this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float("+f+");\n const float widthScale = float("+h+");\n\n const float invHeightScale = float("+d+");\n const float invWidthScale = float("+p+");\n\n const int winHeight = int("+v+");\n const int winWidth = int("+y+");\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(floor(startRLerp - float(winHeight / 2)));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(floor(startCLerp - float(winWidth / 2)));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= "+u+") {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= "+s+") {\n continue;\n }\n\n float sourceFracRow =\n float("+c[0]+") *\n (float(dyR) / float("+l[0]+"));\n\n float sourceFracCol =\n float("+c[1]+") *\n (float(dyC) / float("+l[1]+"));\n\n int sourceNearestRow = int(min(\n float(int("+i+") - 1),\n "+n+" ? float(round(sourceFracRow)) :\n float(floor(sourceFracRow))));\n\n int sourceNearestCol = int(min(\n float(int("+o+") - 1),\n "+n+" ? float(round(sourceFracCol)) :\n float(floor(sourceFracCol))));\n\n if (r == sourceNearestRow && c == sourceNearestCol) {\n accumulator += getDy(b, dyR, dyC, d);\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n "},ha=function(e,t,n,r){this.variableNames=["A"],this.outputShape=[];var i=e[1],o=e[2];this.outputShape=[e[0],t,n,e[3]];var a=[r&&t>1?i-1:i,r&&n>1?o-1:o],u=[r&&t>1?t-1:t,r&&n>1?n-1:n];this.userCode="\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n "+a[0]/u[0]+",\n "+a[1]/u[1]+");\n const vec2 inputShapeRC = vec2("+i+".0, "+o+".0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = vec2(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestRC = ivec2(\n min(inputShapeRC - 1.0, floor(sourceFracIndexRC + "+(r?"0.5":"0.0")+")));\n\n float newValue = getA(b, sourceNearestRC.x, sourceNearestRC.y, d);\n\n setOutput(newValue);\n }\n "},da=function(e,t){this.variableNames=["x"];var n=e.length;if(n>4)throw new Error("WebGL backend: Reverse of rank-"+n+" tensor is not yet supported");if(this.outputShape=e,1!==n){var r=e.map(function(n,r){return-1!==t.indexOf(i=r)&&1!==e[i]?e[i]+" - coords["+i+"] - 1":"coords["+i+"]";var i}).join(","),i=Mi(n);this.userCode="\n void main() {\n "+i+" coords = getOutputCoords();\n setOutput(getX("+r+"));\n }\n "}else this.userCode="\n void main() {\n int coord = getOutputCoords();\n setOutput(getX("+e[0]+" - coord - 1));\n }\n "},pa=function(e,t){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0;var n=e.length;if(n>4)throw new Error("WebGL backend: Reverse of rank-"+n+" tensor is not yet supported");this.outputShape=e;var r,i=gi("rc",n),o=i[n-1]+" + 1 < "+this.outputShape[n-1],a=i[n-2]+" + 1 < "+this.outputShape[n-2],u=Mi(n);function s(n){var r=e.map(function(r,i){return a=n,-1!==t.indexOf(o=i)&&1!==e[o]?e[o]+" - "+a[o]+" - 1":""+a[o];var o,a});return"getChannel(getX("+r.join(",")+"), vec2("+r.slice(-2).join(",")+"))"}this.userCode=1===n?"\n void main(){\n int rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = getChannel(getX("+e[0]+" - rc - 1),\n "+e[0]+" - rc - 1);\n if("+o+"){\n result.g = getChannel(getX("+e[0]+" - (rc + 1) - 1),\n "+e[0]+" - (rc + 1) - 1);\n }\n setOutput(result);\n }\n ":"\n void main() {\n "+u+" rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = "+s(i.slice())+";\n if("+o+"){\n result.g = "+((r=i.slice())[n-1]="("+r[n-1]+" + 1)",s(r)+";\n }\n if(")+a+") {\n result.b = "+function(e){return e[n-2]="("+e[n-2]+" + 1)",s(e)}(i.slice())+";\n if("+o+") {\n result.a = "+function(e){return e[n-1]="("+e[n-1]+" + 1)",e[n-2]="("+e[n-2]+" + 1)",s(e)}(i.slice())+";\n }\n }\n setOutput(result);\n }\n "},va=function(e,t,n,r,i,o,a){void 0===a&&(a=!0),this.variableNames=["updates","indices","defaultValue"],this.outputShape=o;var u=Mi(i.length),s=Mi(o.length),c="";1===n?c="i":2===n&&(c="i, j");var l="";1===r?l="i":2===r&&(l="i, coords[1]"),this.userCode="\n "+u+" strides = "+u+"("+i+");\n\n void main() {\n "+s+" coords = getOutputCoords();\n float sum = 0.0;\n bool found = false;\n for (int i = 0; i < "+e+";
1 i++) {\n int flattenedIndex = 0;\n for (int j = 0; j < "+t+"; j++) {\n int index = round(getIndices("+c+"));\n flattenedIndex += index * "+(t>1?"strides[j]":"strides")+";\n }\n if (flattenedIndex == coords[0]) {\n sum += getUpdates("+l+");\n found = true;\n }\n }\n setOutput(mix(getDefaultValue(), sum, float(found)));\n }\n "},ya=function(e,t){this.variableNames=["x","segmentIds"];var n=e.windowSize,r=e.batchSize,i=e.inSize,o=e.numSegments,a=o*Math.ceil(i/n);this.outputShape=[r,a];var u=4*Math.floor(n/4),s=n%4,c="\n sumValue += dot(values, segFilter);\n ",l="";i%n>0&&(l="\n if (inIdx < 0 || inIdx >= "+i+") {\n return initializationValue;\n }\n ");var f="";i%n>0&&(f="\n if (inIdx < 0 || inIdx >= "+i+") {\n return -1.0;\n }\n "),this.userCode="\n const float initializationValue = 0.0;\n\n float getValue(int batch, int inIdx) {\n "+l+"\n return getX(batch, inIdx);\n }\n\n float getSegmentIdAtIndex(int inIdx) {\n "+f+"\n return getSegmentIds(inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = int(floor(float(outIdx) / float(\n "+o+")) * float("+n+"));\n int currentSeg = int(mod(float(outIdx), float("+o+")));\n\n float sumValue = 0.0;\n\n for (int i = 0; i < "+u+"; i += 4) {\n int inIdx = inOffset + i;\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 3)) == currentSeg ? 1 : 0\n );\n\n "+c+"\n }\n\n int inIdx = inOffset + "+u+";\n if ("+(1===s)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n int inIdxSeg = int(getSegmentIdAtIndex(inIdx));\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n 0,\n 0,\n 0\n );\n\n "+c+"\n } else if ("+(2===s)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n 0,\n 0\n );\n\n "+c+"\n } else if ("+(3===s)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n 0\n );\n\n "+c+"\n }\n setOutput(sumValue);\n }\n "},ma=function(e,t,n){var r,i;if(this.variableNames=["c","a","b"],this.outputShape=t,n>4)throw Error("Where for rank "+n+" is not yet supported");if(1===n)i="resRC",r="resRC";else{for(var o=["resRC.x","resRC.y","resRC.z","resRC.w"],a=[],u=[],s=0;s<t.length;s++)u.push(""+o[s]),s<e&&a.push(""+o[s]);r=a.join(),i=u.join()}var c=Mi(n);this.userCode="\n void main() {\n "+c+" resRC = getOutputCoords();\n float cVal = getC("+r+");\n if (cVal >= 1.0) {\n setOutput(getA("+i+"));\n } else {\n setOutput(getB("+i+"));\n }\n }\n "},ga=function(){function e(e){this.variableNames=["source"],this.outputShape=e,this.rank=e.length;var t,n=Mi(this.rank),r="uniform int start["+this.rank+"];",i=function(e){if(1===e)return"sourceLoc";if(e<=6)return ba.slice(0,e).map(function(e){return"sourceLoc."+e}).join(",");throw Error("Slicing for rank "+e+" is not yet supported")}(this.rank);t="\n "+n+" sourceLoc;\n "+n+" coords = getOutputCoords();\n "+e.map(function(e,t){return"sourceLoc."+ba[t]+" = start["+t+"] + coords."+ba[t]+";"}).join("\n")+"\n ",this.userCode="\n "+r+"\n void main() {\n "+t+"\n setOutput(getSource("+i+"));\n }\n "}return e.prototype.getCustomSetupFunc=function(e){var t=this;if(e.length!==this.rank)throw Error("The rank ("+this.rank+") of the program must match the length of start ("+e.length+")");return function(n,r){null==t.startLoc&&(t.startLoc=n.getUniformLocationNoThrow(r,"start"),null==t.startLoc)||n.gl.uniform1iv(t.startLoc,e)}},e}(),ba=["x","y","z","w","u","v"],wa=function(){function e(e){this.variableNames=["source"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.rank=e.length;var t=Mi(this.rank),n=gi("coords",this.rank),r=gi("sourceLoc",this.rank),i=1===this.rank?"sourceLoc":"vec2("+r.slice(-2).join()+")",o="getChannel(getSource("+r.join()+"), "+i+")",a="\n result.x = "+o+";\n if (++"+n[this.rank-1]+" < "+e[this.rank-1]+") {\n ++"+r[this.rank-1]+";\n result.y = "+o+";\n --"+r[this.rank-1]+";\n }\n ",u=1===this.rank?"":"\n --"+n[this.rank-1]+";\n if (++"+n[this.rank-2]+" < "+e[this.rank-2]+") {\n ++"+r[this.rank-2]+";\n result.z = "+o+";\n if (++"+n[this.rank-1]+" < "+e[this.rank-1]+") {\n ++"+r[this.rank-1]+";\n result.w = "+o+";\n }\n }
1\n ",s=this.rank<=4?"sourceLoc = coords +\n "+t+"("+e.map(function(e,t){return"start["+t+"]"}).join()+");":e.map(function(e,t){return r[t]+" = "+n[t]+" + start["+t+"];"}).join("\n");this.userCode="\n uniform int start["+this.rank+"];\n void main() {\n "+t+" coords = getOutputCoords();\n "+t+" sourceLoc;\n "+s+"\n vec4 result = vec4(0.);\n "+a+"\n "+u+"\n setOutput(result);\n }\n "}return e.prototype.getCustomSetupFunc=function(e){var t=this;if(e.length!==this.rank)throw Error("The rank ("+this.rank+") of the program must match the length of start ("+e.length+")");return function(n,r){null==t.startLoc&&(t.startLoc=n.getUniformLocationNoThrow(r,"start"),null==t.startLoc)||n.gl.uniform1iv(t.startLoc,e)}},e}(),_a=function(e,t,n){this.variableNames=["x"],this.outputShape=n;var r=n.length,i=Mi(n.length),o=Mi(n.length),a="";if(1===r)a="coords * strides + begin";else{var u=0;a=n.map(function(e,t){return u++,1===n.length?"coords * strides["+t+"] + begin["+t+"]":"coords["+(u-1)+"] * strides["+t+"] + begin["+t+"]"}).join(",")}this.userCode="\n "+i+" begin = "+i+"("+e+");\n "+i+" strides = "+i+"("+t+");\n\n void main() {\n "+o+" coords = getOutputCoords();\n setOutput(getX("+a+"));\n }\n "},xa=function(){function e(e){this.gpgpu=e,this.numUsedTextures=0,this.numFreeTextures=0,this.freeTextures={},this.logEnabled=!1,this.usedTextures={}}return e.prototype.acquireTexture=function(e,t,n){var r,i=ka(t,n),o=Ca(e,i,n);if(o in this.freeTextures||(this.freeTextures[o]=[]),o in this.usedTextures||(this.usedTextures[o]=[]),this.freeTextures[o].length>0){this.numFreeTextures--,this.numUsedTextures++,this.log();var a=this.freeTextures[o].shift();return this.usedTextures[o].push(a),a}return this.numUsedTextures++,this.log(),i===Le.PACKED_2X2_FLOAT32?r=this.gpgpu.createPackedMatrixTexture(e[0],e[1]):i===Le.PACKED_2X2_FLOAT16?r=this.gpgpu.createFloat16PackedMatrixTexture(e[0],e[1]):i===Le.UNPACKED_FLOAT32?r=this.gpgpu.createFloat32MatrixTexture(e[0],e[1]):i===Le.UNPACKED_FLOAT16?r=this.gpgpu.createFloat16MatrixTexture(e[0],e[1]):i===Le.PACKED_4X1_UNSIGNED_BYTE&&(r=this.gpgpu.createUnsignedBytesMatrixTexture(e[0],e[1])),this.usedTextures[o].push(r),r},e.prototype.releaseTexture=function(e,t,n,r){if(null!=this.freeTextures){var i=Ca(t,ka(n,r),r);i in this.freeTextures||(this.freeTextures[i]=[]),this.freeTextures[i].push(e),this.numFreeTextures++,this.numUsedTextures--;var o=this.usedTextures[i],a=o.indexOf(e);if(a<0)throw new Error("Cannot release a texture that was never provided by this texture manager");o.splice(a,1),this.log()}},e.prototype.log=function(){this.logEnabled&&console.log("Free/Used",this.numFreeTextures+" / "+this.numUsedTextures,"("+(this.numFreeTextures+this.numUsedTextures)+")")},e.prototype.getNumUsedTextures=function(){return this.numUsedTextures},e.prototype.getNumFreeTextures=function(){return this.numFreeTextures},e.prototype.dispose=function(){var e=this;if(null!=this.freeTextures){for(var t in this.freeTextures)this.freeTextures[t].forEach(function(t){e.gpgpu.deleteMatrixTexture(t)});for(var t in this.usedTextures)this.usedTextures[t].forEach(function(t){e.gpgpu.deleteMatrixTexture(t)});this.freeTextures=null,this.usedTextures=null,this.numUsedTextures=0,this.numFreeTextures=0}},e}();function ka(e,t){if(e===je.UPLOAD)return Le.PACKED_2X2_FLOAT32;if(e===je.RENDER||null==e)return n=t,c().getBool("WEBGL_RENDER_FLOAT32_ENABLED")?n?Le.PACKED_2X2_FLOAT32:Le.UNPACKED_FLOAT32:n?Le.PACKED_2X2_FLOAT16:Le.UNPACKED_FLOAT16;var n;if(e===je.DOWNLOAD||e===je.PIXELS)return Le.PACKED_4X1_UNSIGNED_BYTE;throw new Error("Unknown logical texture type "+e)}function Ca(e,t,n){return e[0]+"_"+e[1]+"_"+t+"_"+n}var Sa=function(e,t){this.variableNames=["A"];for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e[r]*t[r];this.outputShape=n,this.rank=n.length;var i=Mi(this.rank),o=function(e){var t=e.length;if(t>5)throw Error("Tile for rank "+t+" is not yet supported");if(1===t)return"imod(resRC, "+e[0]+")";for(var n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u"],r=[],i=0;i<e.length;i++)r.push("imod("+n[i]+", "+e[i]+")");return r.join()}(e);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+o+"));\n }\n "},Ea=function(e,t){this.variableNames=["A"];for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e[t[r]];this.outputShape=n,this.rank=n.length;var i=Mi(this.rank),o=function(e){var t=e.length;if(t>6)throw Error("Transpose for rank "+t+" is not yet supported");for(var n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u","resRC.v"],r=new Array(t),i=0;i<e.length;i++)r[e[i]]=n[i];return r.join()}(t);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+o+"));\n }\n "},Aa=function(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0;for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e[t[r]];if(this.outputShape=n,this.rank=n.length,this.rank>6)throw Error("Packed transpose for rank "+this.rank+" is not yet supported.");var i=Mi(this.rank),o=mi("rc",this.rank),a=new Array(this.rank);for(r=0;r<t.length;r++)a[t[r]]=o[r];var u="vec2("+a.slice(-2).join()+")",s="++"+o[this.rank-1]+" < "+n[this.rank-1],c="getChannel(getA("+a.join()+"), "+u+")";this.userCode="\n void main() {\n "+i+" rc = getOutputCoords();\n vec4 result = vec4(0.);\n result[0] = "+c+";\n if("+s+") {\n result[1] = "+c+";\n }\n --"+o[this.rank-1]+";\n if(++"+o[this.rank-2]+" < "+n[this.rank-2]+") {\n result[2] = "+c+";\n if("+s+") {\n result[3] = "+c+";\n }\n }\n setOutput(result);\n }\n "},Oa=function(e,t){this.variableNames=["A"],this.outputShape=e,this.userCode="\n float unaryOperation(float x) {\n "+t+"\n }\n\n void main() {\n float x = getAAtOutCoords();\n float y = unaryOperation(x);\n\n setOutput(y);\n }\n "},Da="if (isnan(x)) return x;",Ia="return abs(x);",Ta=Da+"\n return (x < 0.0) ? 0.0 : x;\n",Ma=Da+"\n return (x < 0.0) ? 0.0 : min(6.0, x);\n",Pa="return (x >= 0.0) ? x : (exp(x) - 1.0);",Ra="return -x;",Fa="return ceil(x);",Na="return floor(x);",ja="return exp(x);",La="return exp(x) - 1.0;",Ba="return x;",Va="\n vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",Wa="\n vec4 result = min(x, vec4(6.)) * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",Ua="\n vec4 result;\n\n result.r = (x.r >= 0.0) ? x.r : (exp(x.r) - 1.0);\n result.g = (x.g >= 0.0) ? x.g : (exp(x.g) - 1.0);\n result.b = (x.b >= 0.0) ? x.b : (exp(x.b) - 1.0);\n result.a = (x.a >= 0.0) ? x.a : (exp(x.a) - 1.0);\n\n return result;\n",za=function(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.userCode="\n vec4 unaryOperation(vec4 x) {\
1n "+t+"\n }\n\n void main() {\n vec4 x = getAAtOutCoords();\n vec4 y = unaryOperation(x);\n\n setOutput(y);\n }\n "},qa=function(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outputShape=e;var t=e.length,n=gi("rc",t),r=Mi(t),i=function(e,t){if(1===e)return"rc";for(var n="",r=0;r<e;r++)n+=t[r],r<e-1&&(n+=",");return n}(t,n),o=n.slice(-2),a=t<=1?"rc":"vec2("+o.join(",")+")";this.userCode="\n void main() {\n "+r+" rc = getOutputCoords();\n vec4 packedInput = getA("+i+");\n\n setOutput(getChannel(packedInput, "+a+"));\n }\n "},Ha={};function Ga(e,t){if(void 0===t&&(t=!1),"linear"===e)return"return x;";if("relu"===e)return t?Va:Ta;if("elu"===e)return t?Ua:Pa;if("relu6"===e)return t?Wa:Ma;if("prelu"===e)return t?Gi:qi;throw new Error("Activation "+e+" has not been implemented for the WebGL backend.")}var Ka=function(e){function t(t){var n,r=e.call(this)||this;if(r.pendingRead=new WeakMap,r.pendingDisposal=new WeakSet,r.dataRefCount=new WeakMap,r.numBytesInGPU=0,r.uploadWaitMs=0,r.downloadWaitMs=0,r.warnedAboutMemory=!1,r.pendingDeletes=0,r.disposed=!1,!c().getBool("HAS_WEBGL"))throw new Error("WebGL is not supported on this device");if(null==t){var i=Ue(c().getNumber("WEBGL_VERSION"));r.binaryCache=((n=c().getNumber("WEBGL_VERSION"))in Ha||(Ha[n]={}),Ha[n]),r.gpgpu=new qo(i),r.canvas=i.canvas,r.gpgpuCreatedLocally=!0}else r.gpgpu=t,r.binaryCache={},r.gpgpuCreatedLocally=!1,r.canvas=t.gl.canvas;return r.textureManager=new xa(r.gpgpu),r.numMBBeforeWarning=null==c().global.screen?1024:c().global.screen.height*c().global.screen.width*window.devicePixelRatio*600/1024/1024,r.texData=new Tr(r,Pe),r}return i(t,e),t.prototype.numDataIds=function(){return this.texData.numDataIds()+(this.cpuBackend?this.cpuBackend.numDataIds():0)-this.pendingDeletes},t.prototype.write=function(e,t,n){if(c().getBool("DEBUG")&&this.checkNumericalProblems(e),"complex64"===n&&null!=e)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");var r={};return this.texData.set(r,{shape:t,dtype:n,values:e,usage:je.UPLOAD}),r},t.prototype.move=function(e,t,n,r){if(c().getBool("DEBUG")&&this.checkNumericalProblems(t),"complex64"===r)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");this.texData.set(e,{shape:n,dtype:r,values:t,usage:je.UPLOAD})},t.prototype.readSync=function(e){var t=this.texData.get(e),n=t.values,r=t.dtype,i=t.complexTensors,o=t.shape;if(null!=t.slice){var a;a=t.isPacked?new za(o,Ba):new Oa(o,Ba);var u=this.runWebGLProgram(a,[{dataId:e,shape:o,dtype:r}],r),s=this.readSync(u.dataId);return this.disposeData(u.dataId),s}if(null!=n)return this.convertAndCacheOnCPU(e);if("string"===r)return n;var c,l,f=null!=this.activeTimers;return f&&(c=te()),l="complex64"===r?Xr(i.real.dataSync(),i.imag.dataSync()):this.getValuesFromTexture(e),f&&(this.downloadWaitMs+=te()-c),this.convertAndCacheOnCPU(e,l)},t.prototype.read=function(e){return o(this,void 0,void 0,function(){var t,n,r,i,o,u,s,l,f,h,d,p,v,y,m,g,b,w,_;return a(this,function(a){switch(a.label){case 0:if(this.pendingRead.has(e))return t=this.pendingRead.get(e),[2,new Promise(function(e){return t.push(e)})];if(n=this.texData.get(e),r=n.values,i=n.shape,o=n.dtype,u=n.complexTensors,s=n.isPacked,null!=n.slice)return l=s?new za(i,Ba):new Oa(i,Ba),f=this.runWebGLProgram(l,[{dataId:e,shape:i,dtype:o}],o),h=this.read(f.dataId),this.disposeData(f.dataId),[2,h];if(null!=r)return[2,this.convertAndCacheOnCPU(e)];if(!c().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")&&2===c().getNumber("WEBGL_VERSION"))throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");return d=null,"complex64"!==o&&c().get("WEBGL_BUFFER_SUPPORTED")&&(p=this.decode(e),v=this.texData.get(p.dataId),d=(_=this.gpgpu).createBufferFromTexture.apply(_,[v.texture].concat(qe(i)))),this.pendingRead.set(e,[]),"complex64"===o?[3,2]:[4,this.gpgpu.createAndWaitForFence()];case 1:a.sent(),a.label=2;case 2:return"complex64"!==o?[3,4]:[4,Promise.all([u.real.data(),u.imag.data()])];case 3:return m=a.sent(),y=Xr(m[0],m[1]),[3,5];case 4:null==d?y=this.getValuesFromTexture(e):(g=E(i),y=this.gpgpu.downloadFloat32MatrixFromBuffer(d,g)),a.label=5;case 5:return null!=p&&this.disposeData(p.dataId),b=this.convertAndCacheOnCPU(e,y),w=this.pendingRead.get(e),this.pendingRead.delete(e),w.forEac
vendor: 21,559 bytes, line 1
1h(function(e){return e(b)}),this.pendingDisposal.has(e)&&(this.pendingDisposal.delete(e),this.disposeData(e),this.pendingDeletes--),[2,b]}})})},t.prototype.checkNumericalProblems=function(e){if(null!=e)for(var t=0;t<e.length;t++){var n=e[t];if(!Ye(n))throw c().getBool("WEBGL_RENDER_FLOAT32_CAPABLE")?Error("The value "+n+" cannot be represented with your current settings. Consider enabling float32 rendering: 'tf.env().set('WEBGL_RENDER_FLOAT32_ENABLED', true);'"):Error("The value "+n+" cannot be represented on this device.")}},t.prototype.getValuesFromTexture=function(e){var t,n=this.texData.get(e),r=n.shape,i=n.dtype,o=n.isPacked,a=E(r);if(c().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")){var u=this.decode(e),s=this.texData.get(u.dataId),l=(t=this.gpgpu).downloadMatrixFromPackedTexture.apply(t,[s.texture].concat(qe(r))).subarray(0,a);return this.disposeData(u.dataId),l}var f=c().getBool("WEBGL_PACK")&&!0===o,h=f?kt(r):r,d=f?new bo(h):new go(h),p=this.runWebGLProgram(d,[{shape:h,dtype:i,dataId:e}],"float32"),v=this.texData.get(p.dataId),y=this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(v.texture,v.texShape[0],v.texShape[1]).subarray(0,a);return this.disposeData(p.dataId),y},t.prototype.time=function(e){return o(this,void 0,void 0,function(){var t,n,r,i,o,u,s;return a(this,function(a){switch(a.label){case 0:return t=this.activeTimers,n=[],r=!1,null==this.programTimersStack?(this.programTimersStack=n,r=!0):this.activeTimers.push(n),this.activeTimers=n,e(),i=S(this.activeTimers.map(function(e){return e.query})).filter(function(e){return null!=e}),o=S(this.activeTimers.map(function(e){return e.name})).filter(function(e){return null!=e}),this.activeTimers=t,r&&(this.programTimersStack=null),u={uploadWaitMs:this.uploadWaitMs,downloadWaitMs:this.downloadWaitMs,kernelMs:null,wallMs:null},c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?[4,Promise.all(i)]:[3,2];case 1:return s=a.sent(),u.kernelMs=_(s),u.getExtraProfileInfo=function(){return s.map(function(e,t){return{name:o[t],ms:e}}).map(function(e){return e.name+": "+e.ms}).join(", ")},[3,3];case 2:u.kernelMs={error:"WebGL query timers are not supported in this environment."},a.label=3;case 3:return this.uploadWaitMs=0,this.downloadWaitMs=0,[2,u]}})})},t.prototype.memory=function(){return{unreliable:!1,numBytesInGPU:this.numBytesInGPU}},t.prototype.startTimer=function(){return c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?this.gpgpu.beginQuery():{startMs:te(),endMs:null}},t.prototype.endTimer=function(e){return c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?(this.gpgpu.endQuery(),e):(e.endMs=te(),e)},t.prototype.getQueryTime=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){return c().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?[2,this.gpgpu.waitForQueryAndGetTime(e)]:[2,(t=e).endMs-t.startMs]})})},t.prototype.disposeData=function(e){if(!this.pendingDisposal.has(e)){if(this.pendingRead.has(e))return this.pendingDisposal.add(e),void this.pendingDeletes++;if(this.texData.has(e)){this.releaseGPUData(e);var t=this.texData.get(e).complexTensors;null!=t&&(t.real.dispose(),t.imag.dispose()),this.texData.delete(e)}}},t.prototype.releaseGPUData=function(e){var t=this.texData.get(e),n=t.texture,r=t.dtype,i=t.texShape,o=t.usage,a=t.isPacked,u=t.slice,s=u&&u.origDataId||e,c=this.dataRefCount.get(s);c>1?this.dataRefCount.set(s,c-1):(this.dataRefCount.delete(s),null!=n&&(this.numBytesInGPU-=this.computeBytes(i,r),this.textureManager.releaseTexture(n,i,o,a)));var l=this.texData.get(e);l.texture=null,l.texShape=null,l.isPacked=!1,l.slice=null},t.prototype.getTexture=function(e){return this.uploadToGPU(e),this.texData.get(e).texture},t.prototype.getDataInfo=function(e){return this.texData.get(e)},t.prototype.getCPUBackend=function(){return c().getBool("WEBGL_CPU_FORWARD")?(null==this.cpuBackend&&(this.cpuBackend=Pe.findBackend("cpu")),this.cpuBackend):null},t.prototype.shouldExecuteOnCPU=function(e,t){var n=this;return void 0===t&&(t=128),null!=this.getCPUBackend()&&e.every(function(e){return null==n.texData.get(e.dataId).texture&&e.size<t})},t.prototype.getGPGPUContext=function(){return this.gpgpu},t.prototype.complex=function(e,t){var n=this.makeOutput(e.shape,"complex64");return this.texData.get(n.dataId).complexTensors={real:Pe.keep(e.clone()),imag:Pe.keep(t.clone())},n},t.prototype.real=function(e){return this.texData.get(e.dataId).complexTensors.real.clone()},t.prototype.imag=function(e){return this.texData.get(e.dataId).complexTensors.imag.clone()},t.prototype.slice=function(e,t,n){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.slice(e,t,n);if(0===E(n))return un([],n,e.dtype);var r=this.texData.get(e.dataId).isPacked,i=Er(e.shape,t,n);if(r||!i){var o=c().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new wa(n):new ga(n),a=o.getCustomSetupFunc(t);return this.compileAndRun(o,[e],null,a)}return this.uploadToGPU(e.dataId),this.shallowSlice(e,t,n)},t.prototype.shallowSlice=function(e,t,n){var r=this.texData.get(e.dataId),i=this.makeOutput(n,e.dtype),o=this.texData.get(i.dataId);Object.assign(o,r),o.shape=n,o.dtype=e.dtype;var a=Ar(t,e.strides);r.slice&&(a+=r.slice.flatOffset),o.slice={flatOffset:a,origDataId:r.slice&&r.slice.origDataId||e.dataId};var u=this.dataRefCount.get(o.slice.origDataId)||1;return this.dataRefCount.set(o.slice.origDataId,u+1),i},t.prototype.stridedSlice=function(e,t,n,r){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.stridedSlice(e,t,n,r);var i=kr(t,n,r);if(i.some(function(e){return 0===e}))return un([],i);var o=new _a(t,r,i);return this.compileAndRun(o,[e])},t.prototype.reverse=function(e,t){var n=c().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new pa(e.shape,t):new da(e.shape,t);return this.compileAndRun(n,[e])},t.prototype.concat=function(e,t){if("complex64"===e[0].dtype){var n=e.map(function(e){return on(e)}),r=e.map(function(e){return an(e)});return rn(this.concat(n,t),this.concat(r,t))}if(this.shouldExecuteOnCPU(e))return this.cpuBackend.concat(e,t);if(1===e.length)return e[0];if(e.length>c().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER")){var i=Math.floor(e.length/2),o=this.concat(e.slice(0,i),t),a=this.concat(e.slice(i),t);return this.concat([o,a],t)}if(c().getBool("WEBGL_PACK_ARRAY_OPERATIONS")&&e[0].rank>1){var u=new Xi(e.map(function(e){return e.shape}),t);return this.compileAndRun(u,e)}var s=tn(e.map(function(e){return e.shape}),t),l=e.map(function(e){return e.as2D(-1,E(e.shape.slice(t)))}),f=new Qi(l.map(function(e){return e.shape}));return this.compileAndRun(f,l).reshape(s)},t.prototype.neg=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.neg(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Ra,e.dtype);var t=new Oa(e.shape,Ra);return this.compileAndRun(t,[e])},t.prototype.batchMatMul=function(e,t,n,r){var i=n?e.shape[2]:e.shape[1],o=r?t.shape[1]:t.shape[2],a=n?e.shape[1]:e.shape[2],u=e.shape[0];if((1===i||1===o)&&a>1e3){n&&(e=e.transpose([0,2,1])),r&&(t=t.transpose([0,2,1]));var s=1===o?e:e.as3D(u,a,1),c=1===o?2:1,l=1===o?t.as3D(u,1,a):t;return this.multiply(s,l).sum(c,!0)}var f=Se(e.dtype,t.dtype),h=new Xo(e.shape,[u,i,o],n,r);return this.compileAndRun(h,[e,t],f)},t.prototype.fusedBatchMatMul=function(e){var t=e.a,n=e.b,r=e.transposeA,i=e.transposeB,o=e.bias,a=e.activation,u=e.preluActivationWeights,s=r?t.shape[2]:t.shape[1],c=i?n.shape[1]:n.shape[2],l=t.shape[0],f=Se(t.dtype,n.dtype),h=null!=o,d=null!=u,p=a?Ga(a,!0):null,v=new Xo(t.shape,[l,s,c],r,i,h,p,d),y=[t,n];return o&&y.push(o),u&&y.push(u),this.compileAndRun(v,y,f)},t.prototype.multiply=function(e,t){if("complex64"===e.dtype){var n=this.texData.get(e.dataId),r=this.texData.get(t.dataId),i=new Vi("return areal * breal - aimag * bimag;",e.shape,t.shape),o=new Vi("return areal * bimag + aimag * breal;",e.shape,t.shape),a=[this.makeComplexComponentTensorInfo(e,n.complexTensors.real),this.makeComplexComponentTensorInfo(e,n.complexTensors.imag),this.makeComplexComponentTensorInfo(t,r.complexTensors.real),this.makeComplexComponentTensorInfo(t,r.complexTensors.imag)],u=this.compileAndRun(i,a),s=this.compileAndRun(o,a),l=this.complex(u,s);return u.dispose(),s.dispose(),l}if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.multiply(e,t);if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,zi,e.dtype);var f=new Hi(zi,e.shape,t.shape);return this.compileAndRun(f,[e,t],e.dtype)},t.prototype.batchNormalization=function(e,t,n,r,i,o){var a=[e,t,n],u=null;null!=o&&(u=o.shape,a.push(o));var s=null;if(null!=i&&(s=i.shape,a.push(i)),c().getBool("WEBGL_PACK_NORMALIZATION")){var l=new Bi(e.shape,t.shape,n.shape,u,s,r);return this.compileAndRun(l,a)}var f=new Li(e.shape,t.shape,n.shape,u,s,r);return this.compileAndRun(f,a)},t.prototype.localResponseNormalization4D=function(e,t,n,r,i){var o=c().getBool("WEBGL_PACK_NORMALIZATION")?new $o(e.shape,t,n,r,i):new Ko(e.shape,t,n,r,i);return this.compileAndRun(o,[e])},t.prototype.LRNGrad=function(e,t,n,r,i,o,a){var u=new Yo(t.shape,r,i,o,a);return this.compileAndRun(u,[t,n,e])},t.prototype.tile=function(e,t){if("string"===e.dtype){var n=this.readSync(e.dataId).map(function(e){return ie(e)});return fi(Ln(e.shape,e.dtype,n),t)}var r=new Sa(e.shape,t);return this.compileAndRun(r,[e])},t.prototype.pad=function(e,t,n){var r=c().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new ra(e.shape,t,n):new na(e.shape,t,n);return this.compileAndRun(r,[e])},t.prototype.transpose=function(e,t){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.transpose(e,t);var n=c().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new Aa(e.shape,t):new Ea(e.shape,t);return this.compileAndRun(n,[e])},t.prototype.gather=function(e,t,n){if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.gather(e,t,n);var r=new Co(e.shape,t.size,n);return this.compileAndRun(r,[e,t])},t.prototype.batchToSpaceND=function(e,t,n){x(e.rank<=4,function(){return"batchToSpaceND for rank > 4 with a WebGL backend not implemented yet"});var r=t.reduce(function(e,t){return e*t}),i=fr(e.shape,t,r),o=hr(i.length,t.length),a=dr(e.shape,t,r),u=pr(n,t.length),s=vr(a,n,t.length);return e.reshape(i).transpose(o).reshape(a).slice(u,s)},t.prototype.spaceToBatchND=function(e,t,n){x(e.rank<=4,function(){return"spaceToBatchND for rank > 4 with a WebGL backend not implemented yet"});var r=t.reduce(function(e,t){return e*t}),i=[[0,0]];i.push.apply(i,n);for(var o=1+t.length;o<e.shape.length;++o)i.push([0,0]);var a=e.pad(i),u=fr(a.shape,t,r,!1),s=hr(u.length,t.length,!1),c=dr(a.shape,t,r,!1);return a.reshape(u).transpose(s).reshape(c)},t.prototype.reduce=function(e,t,n){var r=e.shape[0],i=e.shape[1],o=mr(i),a=new aa({windowSize:o,inSize:i,batchSize:r},t),u=this.compileAndRun(a,[e],n);return 1===u.shape[1]?u:this.reduce(u,t,n)},t.prototype.argReduce=function(e,t,n){void 0===n&&(n=null);var r=e.shape[0],i=e.shape[1];null!=n&&(r=n.shape[0],i=n.shape[1]);var o=mr(i),a=new yi({windowSize:o,inSize:i,batchSize:r},t,null==n),u=[e];null!=n&&u.push(n);var s=this.compileAndRun(a,u,"int32");return 1===s.shape[1]?s:this.argReduce(e,t,s)},t.prototype.argReducePacked=function(e,t,n){void 0===n&&(n=null);var r=null!=n?n.shape:e.shape,i=mr(r[r.length-1]),o=new Fi(r,i,t,null==n),a=this.compileAndRun(o,null==n?[e]:[e,n],"int32");return a.rank===e.rank?this.argReducePacked(e,t,a):a},t.prototype.sum=function(e,t){Zt("sum",t,e.rank);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i),a=Ee(e.dtype);return this.reduce(o,"sum",a).reshape(r)},t.prototype.prod=function(e,t){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.prod(e,t);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i),a=Ee(e.dtype);return this.reduce(o,"prod",a).reshape(r)},t.prototype.unsortedSegmentSum=function(e,t,n){var r=0,i=Qt([r],e.rank),o=e;null!=i&&(o=e.transpose(i),r=Jt(1,e.rank)[0]);var a=function(e,t,n){for(var r=[],i=e.length,o=0;o<i;o++)r.push(o!==t?e[o]:n);return r}(o.shape,r,n),u=E([o.shape[r]]),s=o.as2D(-1,u),c=Ee(e.dtype),l=this.segOpCompute(s,"unsortedSegmentSum",t,c,n).reshape(a);return null!=i&&(l=l.transpose(Xt(i))),l},t.prototype.segOpCompute=function(e,t,n,r,i){var o=e.shape[0],a=e.shape[1],u=function(e,t){var n,r=!1;for(e<=30?(n=e,r=!0):n=$(e,Math.floor(Math.sqrt(e)));!r;)n>t||n===e?r=!0:n=$(e,n+1);return n}(a,i),s=new ya({windowSize:u,inSize:a,batchSize:o,numSegments:i},t),c=this.compileAndRun(s,[e,n],r);return c.shape[1]===i?c:(n=mn(0,i).tile([a/u]),this.segOpCompute(c,t,n,r,i))},t.prototype.argMinMaxReduce=function(e,t,n){var r=[t];if(Zt("arg"+n.charAt(0).toUpperCase()+n.slice(1),r,e.rank),!c().getBool("WEBGL_PACK_REDUCE")||e.rank<=2){var i=Yt(e.shape,r),o=i[0],a=E(i[1]),u=e.as2D(-1,a);return this.argReduce(u,n).reshape(o)}return this.argReducePacked(e,n)},t.prototype.argMin=function(e,t){return this.argMinMaxReduce(e,t,"min")},t.prototype.argMax=function(e,t){return this.argMinMaxReduce(e,t,"max")},t.prototype.cumsum=function(e,t,n,r){if(t!==e.rank-1)throw new Error("WebGL cumsum shader expects an inner-most axis="+(e.rank-1)+" but got axis="+t);var i=new fo(e.shape,n,r);return this.compileAndRun(i,[e])},t.prototype.equal=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(equal(a, b));\n","bool");var n=new Hi("return float(a == b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.notEqual=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(notEqual(a, b));\n","bool");var n=new Hi("return float(a != b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.less=function(e,t){if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.less(e,t);if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(lessThan(a, b));\n","bool");var n=new Hi("return float(a < b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.lessEqual=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(lessThanEqual(a, b));\n","bool");var n=new Hi("return float(a <= b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.greater=function(e,t){if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.greater(e,t);if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(greaterThan(a, b));\n","bool");var n=new Hi("return float(a > b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.greaterEqual=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(greaterThanEqual(a, b));\n","bool");var n=new Hi("return float(a >= b);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.logicalNot=function(e){var t=new Oa(e.shape,"return float(!(x >= 1.0));");return this.compileAndRun(t,[e])},t.prototype.logicalAnd=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return vec4(\n vec4(greaterThanEqual(a, vec4(1.0))) *\n vec4(greaterThanEqual(b, vec4(1.0))));\n","bool");var n=new Hi("return float(a >= 1.0 && b >= 1.0);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.logicalOr=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n return min(\n vec4(greaterThanEqual(a, vec4(1.0))) +\n vec4(greaterThanEqual(b, vec4(1.0))),\n vec4(1.0));\n","bool");var n=new Hi("return float(a >= 1.0 || b >= 1.0);",e.shape,t.shape);return this.compileAndRun(n,[e,t],"bool")},t.prototype.select=function(e,t,n){var r=new ma(e.rank,t.shape,t.rank);return this.compileAndRun(r,[e,t,n],Se(t.dtype,n.dtype))},t.prototype.where=function(e){Wt("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");var t=e.dataSync();return di(e.shape,t)},t.prototype.topk=function(e,t,n){return hi(e.dataSync(),e.shape,e.dtype,t)},t.prototype.min=function(e,t){Zt("min",t,e.rank);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i);return this.reduce(o,"min",o.dtype).reshape(r)},t.prototype.minimum=function(e,t){if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.minimum(e,t);var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n vec4 result = vec4(min(a, b));\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,t.shape):new Hi("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return min(a, b);\n",e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.mod=function(e,t){var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n vec4 result = mod(a, b);\n vec4 isNaN = vec4(equal(b, vec4(0.0)));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,t.shape):new Hi("if (b == 0.0) return NAN;\n return mod(a, b);",e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.max=function(e,t){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.max(e,t);Zt("max",t,e.rank);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i);return this.reduce(o,"max",o.dtype).reshape(r)},t.prototype.maximum=function(e,t){if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.maximum(e,t);var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n vec4 result = vec4(max(a, b));\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,t.shape):new Hi("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return max(a, b);\n",e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.all=function(e,t){Zt("all",t,e.rank);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i);return this.reduce(o,"all",o.dtype).reshape(r)},t.prototype.any=function(e,t){Zt("any",t,e.rank);var n=Yt(e.shape,t),r=n[0],i=E(n[1]),o=e.as2D(-1,i);return this.reduce(o,"any",o.dtype).reshape(r)},t.prototype.realDivide=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n // vec4 one = vec4(equal(a, b));\n // return one + (vec4(1.0) - one) * a / b;\n vec4 result = a / b;\n if(a.x == b.x) {\n result.x = 1.;\n }\n if(a.y == b.y) {\n result.y = 1.;\n }\n if(a.z == b.z) {\n result.z = 1.;\n }\n if(a.w == b.w) {\n result.w = 1.;\n }\n\n return result;\n","float32",!0);var n=new Hi("\nif (a == b) {\n return 1.0;\n};\nreturn a / b;",e.shape,t.shape);return this.compileAndRun(n,[e,t],"float32")},t.prototype.floorDiv=function(e,t){if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,"\n ivec4 ia = round(a);\n ivec4 ib = round(b);\n bvec4 cond = notEqual(ib, ivec4(0));\n ivec4 result = ivec4(0);\n vec4 s = sign(a) * sign(b);\n\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n if (cond[0]) {\n result[0] = idiv(ia[0], ib[0], s[0]);\n }\n if (cond[1]) {\n result[1] = idiv(ia[1], ib[1], s[1]);\n }\n if (cond[2]) {\n result[2] = idiv(ia[2], ib[2], s[2]);\n }\n if (cond[3]) {\n result[3] = idiv(ia[3], ib[3], s[3]);\n }\n return vec4(result);\n","int32");var n=new Hi("\n float s = sign(a) * sign(b);\n int ia = round(a);\n int ib = round(b);\n if (ib != 0) {\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n return float(idiv(ia, ib, s));\n } else {\n return NAN;\n }\n",e.shape,t.shape);return this.compileAndRun(n,[e,t],"int32")},t.prototype.add=function(e,t){if("complex64"===e.dtype&&"complex64"===t.dtype)return this.complexSeparableBinaryOp(e,t,Wi);if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.add(e,t);var n=Se(e.dtype,t.dtype);if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,Wi,n);var r=new Hi(Wi,e.shape,t.shape);return this.compileAndRun(r,[e,t],n)},t.prototype.packedUnaryOp=function(e,t,n){var r=new za(e.shape,t);return this.compileAndRun(r,[e],n)},t.prototype.packedBinaryOp=function(e,t,n,r,i){void 0===i&&(i=!1);var o=new Ki(n,e.shape,t.shape,i);return this.compileAndRun(o,[e,t],r)},t.prototype.complexSeparableBinaryOp=function(e,t,n){var r=this,i=this.texData.get(e.dataId),o=this.texData.get(t.dataId),a=[[i.complexTensors.real,o.complexTensors.real],[i.complexTensors.imag,o.complexTensors.imag]].map(function(i){var o=i[0],a=i[1],u=r.makeComplexComponentTensorInfo(e,o),s=r.makeComplexComponentTensorInfo(t,a),c=new Hi(n,e.shape,t.shape);return r.compileAndRun(c,[u,s],Se(o.dtype,a.dtype))}),u=a[0],s=a[1],c=this.complex(u,s);return u.dispose(),s.dispose(),c},t.prototype.makeComplexComponentTensorInfo=function(e,t){return{dataId:t.dataId,dtype:t.dtype,shape:e.shape}},t.prototype.addN=function(e){if(1===e.length)return e[0];if(e.length>c().get("WEBGL_MAX_TEXTURES_IN_SHADER")){var t=Math.floor(e.length/2),n=this.addN(e.slice(0,t)),r=this.addN(e.slice(t));return this.addN([n,r])}var i=e.map(function(e){return e.dtype}).reduce(function(e,t){return Se(e,t)}),o=e.map(function(e){return e.shape}),a=c().getBool("WEBGL_PACK")?new vi(e[0].shape,o):new pi(e[0].shape,o);return this.compileAndRun(a,e,i)},t.prototype.subtract=function(e,t){if("complex64"===e.dtype&&"complex64"===t.
vendor: 9,630 bytes, line 1
1dtype)return this.complexSeparableBinaryOp(e,t,Ui);if(this.shouldExecuteOnCPU([e,t]))return this.cpuBackend.subtract(e,t);var n=Se(e.dtype,t.dtype);if(c().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,t,Ui,e.dtype);var r=new Hi(Ui,e.shape,t.shape);return this.compileAndRun(r,[e,t],n)},t.prototype.pow=function(e,t){var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n // isModRound1 has 1 for components with round(mod(b, 2.0)) == 1, 0 otherwise.\n vec4 isModRound1 = vec4(equal(round(mod(b, 2.0)), ivec4(1)));\n vec4 multiplier = sign(a) * isModRound1 + (vec4(1.0) - isModRound1);\n vec4 result = multiplier * pow(abs(a), b);\n\n // Ensure that a^0 = 1, including 0^0 = 1 as this correspond to TF and JS\n bvec4 isExpZero = equal(b, vec4(0.0));\n result.r = isExpZero.r ? 1.0 : result.r;\n result.g = isExpZero.g ? 1.0 : result.g;\n result.b = isExpZero.b ? 1.0 : result.b;\n result.a = isExpZero.a ? 1.0 : result.a;\n\n vec4 isNaN = vec4(lessThan(a, vec4(0.0))) * vec4(lessThan(floor(b), b));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,t.shape):new Hi("\nif(a < 0.0 && floor(b) < b){\n return NAN;\n}\nif (b == 0.0) {\n return 1.0;\n}\nreturn (round(mod(b, 2.0)) != 1) ?\n pow(abs(a), b) : sign(a) * pow(abs(a), b);\n",e.shape,t.shape),r=Se(e.dtype,t.dtype);return this.compileAndRun(n,[e,t],r)},t.prototype.ceil=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.ceil(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Fa,e.dtype);var t=new Oa(e.shape,Fa);return this.compileAndRun(t,[e])},t.prototype.floor=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.floor(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Na,e.dtype);var t=new Oa(e.shape,Na);return this.compileAndRun(t,[e])},t.prototype.sign=function(e){var t=new Oa(e.shape,"\n if (isnan(x)) { return 0.0; }\n return sign(x);\n");return this.compileAndRun(t,[e])},t.prototype.isNaN=function(e){var t=new Oa(e.shape,"return float(isnan(x));");return this.compileAndRun(t,[e],"bool")},t.prototype.isInf=function(e){var t=new Oa(e.shape,"return float(isinf(x));");return this.compileAndRun(t,[e],"bool")},t.prototype.isFinite=function(e){var t=new Oa(e.shape,"return float(!isnan(x) && !isinf(x));");return this.compileAndRun(t,[e],"bool")},t.prototype.round=function(e){var t=new Oa(e.shape,"\n // OpenGL ES does not support round function.\n // The algorithm is based on banker's rounding.\n float base = floor(x);\n if ((x - base) < 0.5) {\n return floor(x);\n } else if ((x - base) > 0.5) {\n return ceil(x);\n } else {\n if (mod(base, 2.0) == 0.0) {\n return base;\n } else {\n return base + 1.0;\n }\n }\n");return this.compileAndRun(t,[e])},t.prototype.exp=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.exp(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,ja,e.dtype);var t=new Oa(e.shape,ja);return this.compileAndRun(t,[e])},t.prototype.expm1=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.expm1(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,La,e.dtype);var t=new Oa(e.shape,La);return this.compileAndRun(t,[e])},t.prototype.softmax=function(e,t){var n=R([t],e.shape),r=this.max(e,n),i=$t(r.shape,n),o=this.subtract(e,r.reshape(i)),a=this.exp(o),u=this.sum(a,n).reshape(i);return this.realDivide(a,u)},t.prototype.log=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.log(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,"\n vec4 result = log(x);\n vec4 isNaN = vec4(lessThan(x, vec4(0.0)));\n result.r = isNaN.r == 1.0 ? NAN : result.r;\n result.g = isNaN.g == 1.0 ? NAN : result.g;\n result.b = isNaN.b == 1.0 ? NAN : result.b;\n result.a = isNaN.a == 1.0 ? NAN : result.a;\n\n return result;\n",e.dtype);var t=new Oa(e.shape,"if (x < 0.0) return NAN;\n return log(x);");return this.compileAndRun(t,[e])},t.prototype.log1p=function(e){var t=new Oa(e.shape,"return log(1.0 + x);");return this.compileAndRun(t,[e])},t.prototype.sqrt=function(e){var t=new Oa(e.shape,"return sqrt(x);");return this.compileAndRun(t,[e])},t.prototype.rsqrt=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.rsqrt(e);var t=new Oa(e.shape,"return inversesqrt(x);");return this.compileAndRun(t,[e])},t.prototype.reciprocal=function(e){var t=new Oa(e.shape,"return 1.0 / x;");return this.compileAndRun(t,[e])},t.prototype.relu=function(e){var t;return t=c().getBool("WEBGL_PACK")?new za(e.shape,Va):new Oa(e.shape,Ta),this.compileAndRun(t,[e])},t.prototype.relu6=function(e){var t;return t=c().getBool("WEBGL_PACK")?new za(e.shape,Wa):new Oa(e.shape,Ma),this.compileAndRun(t,[e])},t.prototype.prelu=function(e,t){var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki(Gi,e.shape,t.shape):new Hi(qi,e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.elu=function(e){if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Ua,e.dtype);var t=new Oa(e.shape,Pa);return this.compileAndRun(t,[e])},t.prototype.eluDer=function(e,t){var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));\n return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));\n",e.shape,t.shape):new Hi("return (b >= 1.0) ? a : a * (b + 1.0);",e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.selu=function(e){var t=new Oa(e.shape,"\n // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.\n // see: https://arxiv.org/abs/1706.02515\n float scaleAlpha = 1.7580993408473768;\n float scale = 1.0507009873554805;\n return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);\n");return this.compileAndRun(t,[e])},t.prototype.int=function(e){var t=new Oa(e.shape,"return float(int(x));");return this.compileAndRun(t,[e],"int32")},t.prototype.clip=function(e,t,n){var r,i=(r=c().getBool("WEBGL_PACK_CLIP")?new $i(e.shape):new Yi(e.shape)).getCustomSetupFunc(t,n);return this.compileAndRun(r,[e],null,i)},t.prototype.abs=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.abs(e);if(c().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Ia,e.dtype);var t=new Oa(e.shape,Ia);return this.compileAndRun(t,[e])},t.prototype.complexAbs=function(e){var t=this.texData.get(e.dataId),n=new Zi(e.shape),r=[this.makeComplexComponentTensorInfo(e,t.complexTensors.real),this.makeComplexComponentTensorInfo(e,t.complexTensors.imag)];return this.compileAndRun(n,r)},t.prototype.sigmoid=function(e){var t=new Oa(e.shape,"return 1.0 / (1.0 + exp(-1.0 * x));");return this.compileAndRun(t,[e])},t.prototype.softplus=function(e){var t=new Oa(e.shape,"\n float epsilon = 1.1920928955078125e-7;\n float threshold = log(epsilon) + 2.0;\n\n bool too_large = x > -threshold;\n bool too_small = x < threshold;\n\n float result;\n float exp_x = exp(x);\n\n if (too_large){\n result = x;\n }\n else if (too_small){\n result = exp_x;\n }\n else{\n result = log(exp_x + 1.0);\n }\n return result;\n");return this.compileAndRun(t,[e])},t.prototype.sin=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n return sin(x);\n");return this.compileAndRun(t,[e])},t.prototype.cos=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n return cos(x);\n");return this.compileAndRun(t,[e])},t.prototype.tan=function(e){var t=new Oa(e.shape,"return tan(x);");return this.compileAndRun(t,[e])},t.prototype.asin=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return asin(x);\n");return this.compileAndRun(t,[e])},t.prototype.acos=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return acos(x);\n");return this.compileAndRun(t,[e])},t.prototype.atan=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n return atan(x);\n");return this.compileAndRun(t,[e])},t.prototype.atan2=function(e,t){var n=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("\n vec4 result = atan(a, b);\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,t.shape):new Hi("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return atan(a, b);\n",e.shape,t.shape);return this.compileAndRun(n,[e,t])},t.prototype.sinh=function(e){var t=new Oa(e.shape,"\n float e2x = exp(x);\n return (e2x - 1.0 / e2x) / 2.0;\n");return this.compileAndRun(t,[e])},t.prototype.cosh=function(e){var t=new Oa(e.shape,"\n float e2x = exp(-x);\n return (e2x + 1.0 / e2x) / 2.0;\n");return this.compileAndRun(t,[e])},t.prototype.tanh=function(e){var t=new Oa(e.shape,"\n float e2x = exp(-2.0 * abs(x));\n return sign(x) * (1.0 - e2x) / (1.0 + e2x);\n");return this.compileAndRun(t,[e])},t.prototype.asinh=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;return log(x + sqrt(x * x + 1.0));");return this.compileAndRun(t,[e])},t.prototype.acosh=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n if (x < 1.0) return NAN;\n return log(x + sqrt(x * x - 1.0));");return this.compileAndRun(t,[e])},t.prototype.atanh=function(e){var t=new Oa(e.shape,"if (isnan(x)) return x;\n if ((x < -1.0) || (x > 1.0)) return NAN;
1\n return (log(1.0 + x) - log(1.0 - x)) / 2.0;");return this.compileAndRun(t,[e])},t.prototype.erf=function(e){var t=new Oa(e.shape,'\n // Error function is calculated approximately with elementary function.\n // See "Handbook of Mathematical Functions with Formulas,\n // Graphs, and Mathematical Tables", Abramowitz and Stegun.\n float p = 0.3275911;\n float a1 = 0.254829592;\n float a2 = -0.284496736;\n float a3 = 1.421413741;\n float a4 = -1.453152027;\n float a5 = 1.061405429;\n\n float sign = sign(x);\n x = abs(x);\n float t = 1.0 / (1.0 + p * x);\n return sign * (1.0 - (((((a5*t + a4)*t) + a3)*t + a2)*t + a1)*t*exp(-x*x));\n');return this.compileAndRun(t,[e])},t.prototype.step=function(e,t){var n,r=new Oa(e.shape,(void 0===(n=t)&&(n=0),Da+"\n return x > 0.0 ? 1.0 : float("+n+");\n "));return this.compileAndRun(r,[e])},t.prototype.conv2dByMatMul=function(e,t,n,r,i,o){var a=e.shape,u=this.texData.get(e.dataId),s="channelsLast"===n.dataFormat,l=a[2]%2!=0&&!!u.isPacked;if((1==a[0]*a[1]*a[2]||1===n.outChannels)&&n.inChannels>1e3||!c().getBool("WEBGL_LAZILY_UNPACK")||!c().getBool("WEBGL_PACK_BINARY_OPERATIONS")||!l){var f=this.reshape(e,[1,s?a[0]*a[1]*a[2]:a[0]*a[2]*a[3],n.inChannels]),h=this.reshape(t,[1,n.inChannels,n.outChannels]);return this.reshape(this.fusedBatchMatMul({a:f,b:h,transposeA:!1,transposeB:!1,bias:r,activation:i,preluActivationWeights:o}),n.outShape)}var d={dataId:e.dataId,shape:[1,s?a[0]*a[1]*(a[2]+1):a[0]*a[2]*(a[3]+1),n.inChannels],dtype:e.dtype},p=u.shape;u.shape=u.shape.slice(),u.shape[u.shape.length-2]++,x(Et(u.shape,d.shape),function(){return"packed reshape "+u.shape+" to "+d.shape+" isn't free"});var v=this.reshape(t,[1,n.inChannels,n.outChannels]),y=this.fusedBatchMatMul({a:d,b:v,transposeA:!1,transposeB:!1,bias:r,activation:i,preluActivationWeights:o}),m=this.texData.get(y.dataId);return x(m.isPacked,function(){return"batchMatMul result is expected to be packed"}),u.shape=p,m.shape=n.outShape,Pe.makeTensorFromDataId(y.dataId,n.outShape,y.dtype)},t.prototype.conv2dWithIm2Row=function(e,t,n,r,i,o){var a=n.outWidth,u=n.outHeight,s="channelsLast"===n.dataFormat,c=n.filterWidth*n.filterHeight*n.inChannels,l=u*a,f=[c,l],h=e.squeeze([0]),d=t.reshape([1,c,-1]),p=new Go(f,h.shape,n),v=this.compileAndRun(p,[h]).reshape([1,f[0],f[1]]),y=null!=r,m=null!=o,g=i?Ga(i,!0):null,b=new Xo(v.shape,[1,l,n.outChannels],!0,!1,y,g,m),w=[v,d];return r&&w.push(r),m&&w.push(o),this.compileAndRun(b,w).reshape(s?[1,u,a,n.outChannels]:[1,n.outChannels,u,a])},t.prototype.fusedConv2d=function(e){var t=e.input,n=e.filter,r=e.convInfo,i=e.bias,o=e.activation,a=e.preluActivationWeights;if(1===r.filterHeight&&1===r.filterWidth&&1===r.dilationHeight&&1===r.dilationWidth&&1===r.strideHeight&&1===r.strideWidth&&("SAME"===r.padInfo.type||"VALID"===r.padInfo.type))return this.conv2dByMatMul(t,n,r,i,o,a);if(c().getBool("WEBGL_CONV_IM2COL")&&1===t.shape[0])return this.conv2dWithIm2Row(t,n,r,i,o,a);var u=null!=i,s=null!=a,l=o?Ga(o,!1):null,f=new ao(r,u,l,s),h=[t,n];return i&&h.push(i),a&&h.push(a),this.compileAndRun(f,h)},t.prototype.conv2d=function(e,t,n){if(1===n.filterHeight&&1===n.filterWidth&&1===n.dilationHeight&&1===n.dilationWidth&&1===n.strideHeight&&1===n.strideWidth&&("SAME"===n.padInfo.type||"VALID"===n.padInfo.type))return this.conv2dByMatMul(e,t,n);if(c().getBool("WEBGL_CONV_IM2COL")&&1===e.shape[0])return this.conv2dWithIm2Row(e,t,n);var r=new ao(n);return this.compileAndRun(r,[e,t])},t.prototype.conv2dDerInput=function(e,t,n){var r=new to(n);return this.compileAndRun(r,[e,t])},t.prototype.conv2dDerFilter=function(e,t,n){var r=new eo(n);return this.compileAndRun(r,[e,t])},t.prototype.fusedDepthwiseConv2D=function(e){var t,n=e.input,r=e.filter,i=e.convInfo,o=e.bias,a=e.activation,u=e.preluActivationWeights,s=c().getBool("WEBGL_PACK_DEPTHWISECONV")&&i.strideWidth<=2&&i.outChannels/i.inChannels==1,l=a?Ga(a,s):null,f=[n,r],h=null!=o,d=null!=u;return h&&f.push(o),d&&f.push(u),s?(t=new co(i,h,l,d),this.compileAndRun(t,f)):(t=new so(i,h,l,d),this.compileAndRun(t,f))},t.prototype.depthwiseConv2D=function(e,t,n){var r;return c().getBool("WEBGL_PACK_DEPTHWISECONV")&&n.strideWidth<=2&&n.outChannels/n.inChannels==1?(r=new co(n),this.compileAndRun(r,[e,t])):(r=new so(n),this.compileAndRun(r,[e,t]))},t.prototype.depthwiseConv2DDerInput=function(e,t,n){var r=new oo(n);return this.compileAndRun(r,[e,t])},t.prototype.depthwiseConv2DDerFilter=function(e,t,n){var r=new io(n);return this.compileAndRun(r,[e,t])},t.prototype.conv3d=function(e,t,n){var r=new uo(n);return this.compileAndRun(r,[e,t])},t.prototype.conv3dDerInput=function(e,t,n){var r=new ro(n);return this.compileAndRun(r,[e,t])},t.prototype.conv3dDerFilter=function(e,t,n){var r=new no(n);return this.compileAndRun(r,[e,t])},t.prototype.maxPool=function(e,t){var n=new ia(t,"max",!1);return this.compileAndRun(n,[e])},t.prototype.avgPool=function(e,t){var n=new ia(t,"avg",!1);return this.compileAndRun(n,[e],"float32")},t.prototype.maxPoolBackprop=function(e,t,n,r){var i=new ia(r,"max",!0),o=this.compileAndRun(i,[t]),a=new Zo(r),u=this.compileAndRun(a,[e,o],t.dtype);return o.dispose(),u},t.prototype.avgPoolBackprop=function(e,t,n){var r=new Ni(n);return this.compileAndRun(r,[e],t.dtype)},t.prototype.cast=function(e,t){return $r(e,t,this)},t.prototype.unstack=function(e,t){for(var n=e.shape[t],r=new Array(e.rank-1),i=0,o=0;o<e.rank;o++)o!==t&&(r[i++]=e.shape[o]);var a=new Array(e.rank).fill(0),u=e.shape.slice();u[t]=1;var s=new Array(n);for(o=0;o<s.length;o++)a[t]=o,s[o]=this.slice(e,a,u).reshape(r);return s},t.prototype.avgPool3d=function(e,t){var n=new oa(t,"avg",!1);return this.compileAndRun(n,[e],"float32")},t.prototype.avgPool3dBackprop=function(e,t,n){var r=new ji(n);return this.compileAndRun(r,[e],t.dtype)},t.prototype.maxPool3d=function(e,t){var n=new oa(t,"max",!1);return this.compileAndRun(n,[e],"float32")},t.prototype.maxPool3dBackprop=function(e,t,n,r){var i=new oa(r,"max",!0),o=this.compileAndRun(i,[t]),a=new Qo(r),u=this.compileAndRun(a,[e,o],t.dtype);return o.dispose(),u},t.prototype.reshape=function(e,t){var n=this.texData.get(e.dataId);if(n.isPacked&&!Et(e.shape,t)&&(null===n.texture||!Et(n.shape,t))){var r=this.packedReshape(e,t);return Pe.makeTensorFromDataId(r.dataId,r.shape,r.dtype)}return Zr(e,t)},t.prototype.resizeBilinear=function(e,t,n,r){var i=c().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new la(e.shape,t,n,r):new ca(e.shape,t,n,r);return this.compileAndRun(i,[e],"float32")},t.prototype.resizeBilinearBackprop=function(e,t,n){var r=new sa(e,t,n);return this.compileAndRun(r,[e])},t.prototype.resizeNearestNeighbor=function(e,t,n,r){var i=new ha(e.shape,t,n,r);return this.compileAndRun(i,[e])},t.prototype.resizeNearestNeighborBackprop=function(e,t,n){var r=new fa(e,t,n);return this.compileAndRun(r,[e])},t.prototype.multinomial=function(e,t,n,r){var i=t?e:Dr(e),o=new Jo(i.shape[0],i.shape[1],n),a=o.getCustomSetupFunc(r);return this.compileAndRun(o,[i],"int32",a)},t.prototype.oneHot=function(e,t,n,r){var i=new ea(e.size,t,n,r);return this.compileAndRun(i,[e])},t.prototype.diag=function(e){var t=new mo(e.size);return this.compileAndRun(t,[e])},t.prototype.nonMaxSuppression=function(e,t,n,r,i){return Wt("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"),ii(e.dataSync(),t.dataSync(),n,r,i)},t.prototype.cropAndResize=function(e,t,n,r,i,o){var a=new lo(e.shape,t.shape,r,i,o);return this.compileAndRun(a,[e,t,n],"float32")},t.prototype.depthToSpace=function(e,t,n){x(t>1,function(){return"blockSize should be > 1 for depthToSpace, but was: "+t});var r=e.shape[0],i=("NHWC"===n?e.shape[1]:e.shape[2])*t,o=("NHWC"===n?e.shape[2]:e.shape[3])*t,a=("NHWC"===n?e.shape[3]:e.shape[1])/(t*t),u=new yo("NHWC"===n?[r,i,o,a]:[r,a,i,o],t,n);return this.compileAndRun(u,[e])}
vendor: 24,039 bytes, line 1
1,t.prototype.split=function(e,t,n){return li(e,t,n)},t.prototype.scatterND=function(e,t,n){var r=wr(0,e,n),i=r.sliceRank,o=r.numUpdates,a=r.sliceSize,u=r.strides,s=r.outputSize,c=[s/a,a],l=e.reshape([o,i]),f=t.reshape([o,a]);if(0===s)return Zr(un([]),n);var h=cn(0),d=new va(o,i,l.rank,f.rank,u,c);return this.compileAndRun(d,[f,l,h]).reshape(n)},t.prototype.sparseToDense=function(e,t,n,r){var i=wr(0,e,n),o=new va(i.numUpdates,i.sliceRank,e.rank,t.rank,i.strides,[i.outputSize,1],!1);return this.compileAndRun(o,[t,e,r]).reshape(n)},t.prototype.fft=function(e){return this.fftImpl(e,!1)},t.prototype.ifft=function(e){return this.fftImpl(e,!0)},t.prototype.fftImpl=function(e,t){var n=this.texData.get(e.dataId),r=new xo("return real * expR - imag * expI;",e.shape,t),i=new xo("return real * expI + imag * expR;",e.shape,t),o=[this.makeComplexComponentTensorInfo(e,n.complexTensors.real),this.makeComplexComponentTensorInfo(e,n.complexTensors.imag)],a=this.compileAndRun(r,o),u=this.compileAndRun(i,o),s=this.complex(a,u).as2D(e.shape[0],e.shape[1]);return a.dispose(),u.dispose(),s},t.prototype.gatherND=function(e,t){var n=t.shape,r=n[n.length-1],i=yr(e,t),o=i[0],a=i[1],u=i[2],s=i[3],c=t.reshape([a,r]),l=e.reshape([e.size/u,u]),f=new So(r,s,[a,u]);return this.compileAndRun(f,[l,c]).reshape(o)},t.prototype.fill=function(e,t,n){if("string"===(n=n||K(t))){var r=j(n,E(e));return r.fill(t),Pe.makeTensor(r,e,n,this)}var i=new ko(e,t),o=i.getCustomSetupFunc(t);return this.compileAndRun(i,[],n,o)},t.prototype.onesLike=function(e){if("string"===e.dtype)throw new Error("onesLike is not supported under string dtype");return this.fill(e.shape,1,e.dtype)},t.prototype.zerosLike=function(e){return this.fill(e.shape,"string"===e.dtype?"":0,e.dtype)},t.prototype.linspace=function(e,t,n){return Qr(e,t,n)},t.prototype.makeTensorInfo=function(e,t){var n=this.write(null,e,t);return this.texData.get(n).usage=null,{dataId:n,shape:e,dtype:t}},t.prototype.makeOutput=function(e,t){var n=this.makeTensorInfo(e,t).dataId;return Pe.makeTensorFromDataId(n,e,t,this)},t.prototype.unpackTensor=function(e){var t=new qa(e.shape);return this.runWebGLProgram(t,[e],e.dtype)},t.prototype.packTensor=function(e){var t=new ta(e.shape);return this.runWebGLProgram(t,[e],e.dtype,null,!0)},t.prototype.packedReshape=function(e,t){var n=[_t(e.shape)].concat(xt(e.shape)),r={dtype:e.dtype,shape:n,dataId:e.dataId},i=[_t(t)].concat(xt(t)),o=new ua(i,n),a=this.runWebGLProgram(o,[r],e.dtype,null,!0);return{dataId:a.dataId,shape:t,dtype:a.dtype}},t.prototype.decode=function(e){var t,n=this.texData.get(e),r=n.isPacked,i=n.shape,o=n.dtype,a=kt(i);return t=r?new vo(a):new po(a),{dtype:o,shape:i,dataId:this.runWebGLProgram(t,[{shape:a,dtype:o,dataId:e}],o,null,!0).dataId}},t.prototype.runWebGLProgram=function(e,t,n,r,i){var o=this;void 0===i&&(i=!1);var a=this.makeTensorInfo(e.outputShape,n),u=this.texData.get(a.dataId);if(e.packedOutput&&(u.isPacked=!0),e.outPackingScheme===Ne.DENSE){var s=qe(e.outputShape);u.texShape=s.map(function(e){return 2*e})}if(null!=e.outTexUsage&&(u.usage=e.outTexUsage),0===E(a.shape))return u.values=N(a.dtype,0),a;var l=[],f=t.map(function(t){if("complex64"===t.dtype)throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");var n=o.texData.get(t.dataId);if(null==n.texture){if(!e.packedInputs&&E(t.shape)<=c().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM"))return{shape:t.shape,texData:null,isUniform:!0,uniformValues:n.values};e.packedInputs&&(n.isPacked=!0,n.shape=t.shape)}else if(!!n.isPacked!=!!e.packedInputs)t=n.isPacked?o.unpackTensor(t):o.packTensor(t),l.push(t),n=o.texData.get(t.dataId);else if(n.isPacked&&!Et(n.shape,t.shape)){var r=t,i=t.shape;t.shape=n.shape,t=o.packedReshape(t,i),l.push(t),n=o.texData.get(t.dataId),r.shape=i}return o.uploadToGPU(t.dataId),{shape:t.shape,texData:n,isUniform:!1}});this.uploadToGPU(a.dataId);var h,d,p,v={shape:a.shape,texData:u,isUniform:!1},y=(d=e,p="",f.concat(v).forEach(function(e){p+=e.shape+"_"+(e.isUniform?"uniform":e.texData.texShape)+"_"+(null!=e.texData&&null!=e.texData.slice&&e.texData.slice.flatOffset>0)}),d.constructor.name+"_"+p+"_"+d.userCode),m=this.getAndSaveBinary(y,function(){return function(e,t,n,r){var i=t.userCode,o=n.map(function(e,n){var r={logicalShape:e.shape,texShape:e.isUniform?null:e.texData.texShape,isUniform:e.isUniform,isPacked:!e.isUniform&&e.texData.isPacked,flatOffset:null};return null!=e.texData&&null!=e.texData.slice&&e.texData.slice.flatOffset>0&&(r.flatOffset=e.texData.slice.flatOffset),{name:t.variableNames[n],shapeInfo:r}}),a=o.map(function(e){return e.shapeInfo}),u={logicalShape:r.shape,texShape:r.texData.texShape,isUniform:!1,isPacked:r.texData.isPacked,flatOffset:null},s=ki(o,u,i,t.packedInputs),l=e.createProgram(s),f=null,h=e.getUniformLocation(l,"NAN",!1);1===c().getNumber("WEBGL_VERSION")&&(f=e.getUniformLocation(l,"INFINITY",!1));for(var d={},p=0;p<t.variableNames.length;p++){var v=t.variableNames[p];d[v]=e.getUniformLocation(l,v,!1),d["offset"+v]=e.getUniformLocation(l,"offset"+v,!1)}return{program:t,source:s,webGLProgram:l,uniformLocations:d,inShapeInfos:a,outShapeInfo:u,infLoc:f,nanLoc:h}}(o.gpgpu,e,f,v)}),g=null!=this.activeTimers;if(g&&(h=this.startTimer()),function(e,t,n,r,i){Ho(t.inShapeInfos,n),Ho([t.outShapeInfo],[r]);var o=r.texData.texture,a=r.texData.texShape;r.texData.isPacked?e.setOutputPackedMatrixTexture(o,a[0],a[1]):e.setOutputMatrixTexture(o,a[0],a[1]),e.setProgram(t.webGLProgram),1===c().getNumber("WEBGL_VERSION")&&null!==t.infLoc&&e.gl.uniform1f(t.infLoc,1/0),null!==t.nanLoc&&e.gl.uniform1f(t.nanLoc,NaN),n.forEach(function(n,r){var i=t.program.variableNames[r],o=t.uniformLocations[i],a=t.uniformLocations["offset"+i];if(null!=o)if(n.isUniform)if(E(n.shape)<2)e.gl.uniform1f(o,n.uniformValues[0]);else{var u=n.uniformValues;u instanceof Float32Array||(u=new Float32Array(u)),e.gl.uniform1fv(o,u)}else null!=n.texData.slice&&null!=a&&e.gl.uniform1i(a,n.texData.slice.flatOffset),e.setInputMatrixTexture(n.texData.texture,o,r)}),null!=i&&i(e,t.webGLProgram),e.executeProgram()}(this.gpgpu,m,f,v,r),l.forEach(function(e){return o.disposeData(e.dataId)}),g&&(h=this.endTimer(h),this.activeTimers.push({name:e.constructor.name,query:this.getQueryTime(h)})),!c().getBool("WEBGL_LAZILY_UNPACK")&&u.isPacked&&!1===i){var b=this.unpackTensor(a);return this.disposeData(a.dataId),b}return a},t.prototype.compileAndRun=function(e,t,n,r,i){void 0===i&&(i=!1);var o=this.runWebGLProgram(e,t,n=n||t[0].dtype,r,i);return Pe.makeTensorFromDataId(o.dataId,o.shape,o.dtype)},t.prototype.getAndSaveBinary=function(e,t){return e in this.binaryCache||(this.binaryCache[e]=t()),this.binaryCache[e]},t.prototype.getTextureManager=function(){return this.textureManager},t.prototype.dispose=function(){var e=this;this.disposed||(c().getBool("IS_TEST")||Object.keys(this.binaryCache).forEach(function(t){e.gpgpu.deleteProgram(e.binaryCache[t].webGLProgram),delete e.binaryCache[t]}),this.textureManager.dispose(),null!=this.canvas&&"undefined"!=typeof HTMLCanvasElement&&this.canvas instanceof HTMLCanvasElement?this.canvas.remove():this.canvas=null,this.gpgpuCreatedLocally&&(this.gpgpu.program=null,this.gpgpu.dispose()),this.disposed=!0)},t.prototype.floatPrecision=function(){var e=this;return null==this.floatPrecisionValue&&(this.floatPrecisionValue=Bt(function(){if(!c().get("WEBGL_RENDER_FLOAT32_ENABLED")){var t=c().getBool("DEBUG");c().set("DEBUG",!1);var n=e.abs(cn(1e-8)).dataSync()[0];if(c().set("DEBUG",t),n>0)return 32}return 16})),this.floatPrecisionValue},t.prototype.epsilon=function(){return 32===this.floatPrecision()?1e-7:1e-4},t.prototype.uploadToGPU=function(e){var t,n=this.texData.get(e),r=n.shape,i=n.dtype,o=n.values,a=n.usage,u=n.isPacked;if(null==n.texture){var s,c=null!=this.activeTimers;c&&(s=te());var l=n.texShape;if(null==l&&(l=Ct(r,u),n.texShape=l),null!=o){var f=kt(r),h=void 0,d=l[1],p=l[0],v=o instanceof Uint8Array;u?(d=(t=He(l[0],l[1]))[0],h=new _o(f,[p=t[1],d],v)):h=new wo(f,[p,d],v);var y=this.makeTensorInfo([p,d],i);this.texData.get(y.dataId).usage=v?je.PIXELS:je.UPLOAD,this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(y.dataId),d,p,o);var m=this.runWebGLProgram(h,[y],i,null,!0),g=this.texData.get(m.dataId);n.texture=g.texture,n.texShape=g.texShape,n.isPacked=g.isPacked,n.usage=g.usage,this.disposeData(y.dataId),this.texData.delete(m.dataId),n.values=null,c&&(this.uploadWaitMs+=te()-s)}else{var b=this.acquireTexture(l,a,i,u);n.texture=b}}},t.prototype.convertAndCacheOnCPU=function(e,t){var n=this.texData.get(e),r=n.dtype;return this.releaseGPUData(e),null!=t&&(n.values=function(e,t){if("float32"===t||"complex64"===t)return e;if("int32"===t||"bool"===t){for(var n="int32"===t?new Int32Array(e.length):new Uint8Array(e.length),r=0;r<n.length;++r)n[r]=Math.round(e[r]);return n}throw new Error("Unknown dtype "+t)}(t,r)),n.values},t.prototype.acquireTexture=function(e,t,n,r){if(this.numBytesInGPU+=this.computeBytes(e,n),!this.warnedAboutMemory&&this.numBytesInGPU>1024*this.numMBBeforeWarning*1024){var i=(this.numBytesInGPU/1024/1024).toFixed(2);this.warnedAboutMemory=!0,console.warn("High memory usage in GPU: "+i+" MB, most likely due to a memory leak")}return this.textureManager.acquireTexture(e,t,r)},t.prototype.computeBytes=function(e,t){return e[0]*e[1]*U(t)},t}(Mr);Re()&&Pe.registerBackend("webgl",function(){return new Ka},2);var Ya=nn({square_:function(e){var t=qt(e,"x","square");return Pe.runKernelFunc(function(e,n){return n([t]),e.square(t)},{x:t},null,"Square",{},[t],[])}}),$a="SquaredDifference",Za=nn({squaredDifference_:function(e,t){var n,r=qt(e,"a","squaredDifference"),i=qt(t,"b","squaredDifference");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e,t){var n=e.squaredDifference(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1],i=cn(2);return{a:function(){return e.mul(n.sub(r).mul(i))},b:function(){return e.mul(r.sub(n).mul(i))}}},$a,{},[r,i],[])}}),Qa=nn({abs_:function(e){var t=qt(e,"x","abs");return"complex64"===t.dtype?Pe.runKernelFunc(function(e){return e.complexAbs(t)},{$x:t}):Pe.runKernelFunc(function(e,n){var r=e.abs(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return e.mul(n.toFloat().step(-1))}}},"Abs")}}),Xa=nn({acos_:function(e){var t=qt(e,"x","acos");return Pe.runKernelFunc(function(e,n){var r=e.acos(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.divStrict(cn(1).sub(n.toFloat().square()).sqrt()).neg()}}})}}),Ja=nn({acosh_:function(e){var t=qt(e,"x","acosh");return Pe.runKernelFunc(function(e,n){var r=e.acosh(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.divStrict(n.toFloat().square().sub(1).sqrt())}}})}}),eu=nn({asin_:function(e){var t=qt(e,"x","asin");return Pe.runKernelFunc(function(e,n){var r=e.asin(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.divStrict(cn(1).sub(n.toFloat().square()).sqrt())}}})}}),tu=nn({asinh_:function(e){var t=qt(e,"x","asinh");return Pe.runKernelFunc(function(e,n){var r=e.asinh(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.divStrict(cn(1).add(n.toFloat().square()).sqrt())}}})}}),nu=nn({atan_:function(e){var t=qt(e,"x","atan");return Pe.runKernelFunc(function(e,n){var r=e.atan(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(n.toFloat().square().add(1))}}})}}),ru=nn({atanh_:function(e){var t=qt(e,"x","atanh");return Pe.runKernelFunc(function(e,n){var r=e.atanh(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(cn(1).sub(n.toFloat().square()))}}})}}),iu=nn({ceil_:function(e){var t=qt(e,"x","ceil");return Pe.runKernelFunc(function(e){return e.ceil(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),ou=nn({clipByValue_:function(e,t,n){var r=qt(e,"x","clipByValue");return x(t<=n,function(){return"Error in clip: min ("+t+") must be less than or equal to max ("+n+")."}),Pe.runKernelFunc(function(e,i){var o=e.clip(r,t,n);return i([r]),o},{x:r},function(e,r){var i=r[0];return{x:function(){return e.where(i.greaterEqual(t).logicalAnd(i.lessEqual(n)),bn(e))}}},"ClipByValue",{min:t,max:n},[r])}}),au=nn({cos_:function(e){var t=qt(e,"x","cos");return Pe.runKernelFunc(function(e,n){var r=e.cos(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return n.toFloat().sin().neg().mul(e)}}},"Cos",{},[t])}}),uu=nn({cosh_:function(e){var t=qt(e,"x","cosh");return Pe.runKernelFunc(function(e,n){var r=e.cosh(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return n.toFloat().sinh().mulStrict(e)}}})}}),su=nn({erf_:function(e){var t=qt(e,"x","erf");return x("int32"===t.dtype||"float32"===t.dtype,function(){return"Input dtype must be `int32` or `float32`."}),"int32"===t.dtype&&(t=t.toFloat()),Pe.runKernelFunc(function(e,n){var r=e.erf(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.mul(n.square().neg().exp().mul(2/Math.sqrt(Math.PI)))}}})}}),cu=nn({exp_:function(e){var t=qt(e,"x","exp");return Pe.runKernelFunc(function(e,n){var r=e.exp(t);return n([r]),r},{x:t},function(e,t){return{x:function(){return e.mulStrict(t[0])}}},"Exp",{},[],[!0])}}),lu=nn({expm1_:function(e){var t=qt(e,"x","expm1");return Pe.runKernelFunc(function(e,n){var r=e.expm1(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.mul(n.exp())}}})}}),fu=nn({floor_:function(e){var t=qt(e,"x","floor");return Pe.runKernelFunc(function(e){return e.floor(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),hu=nn({log_:function(e){var t=qt(e,"x","log");return Pe.runKernelFunc(function(e,n){var r=e.log(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return e.div(n.toFloat())}}},"Log",{},[t])}}),du=nn({log1p_:function(e){var t=qt(e,"x","log1p");return Pe.runKernelFunc(function(e,n){var r=e.log1p(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(n.add(1))}}})}}),pu=nn({logSigmoid_:function(e){var t=qt(e,"x","logSigmoid");return Pe.runKernelFunc(function(e,n){var r=e.softplus(t.neg()).neg();return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.mul(n.neg().sigmoid())}}})}}),vu=nn({neg_:function(e){var t=qt(e,"x","neg");return Pe.runKernelFunc(function(e){return e.neg(t)},{x:t},function(e){return{x:function(){return e.neg()}}},"Neg",{},[t])}}),yu=nn({reciprocal_:function(e){var t=qt(e,"x","reciprocal");return Pe.runKernelFunc(function(e,n){var r=e.reciprocal(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(n.square().neg())}}})}}),mu=nn({round_:function(e){var t=qt(e,"x","round");return Pe.runKernelFunc(function(e){return e.round(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),gu=nn({rsqrt_:function(e){var t=qt(e,"x","rsqrt");return Pe.runKernelFunc(function(e,n){var r=e.rsqrt(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return e.div(n.pow(1.5).mul(2)).neg()}}},"Rsqrt",{},[t])}}),bu=nn({sigmoid_:function(e){var t=qt(e,"x","sigmoid");return Pe.runKernelFunc(function(e,n){var r=e.sigmoid(t);return n([r]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return e.mul(n.mul(cn(1).sub(n)))}}},"Sigmoid")}}),wu=nn({sign_:function(e){var t=qt(e,"x","sign");return Pe.runKernelFunc(function(e){return e.sign(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),_u=nn({isNaN_:function(e){var t=qt(e,"x","isNaN");return Pe.runKernelFunc(function(e){return e.isNaN(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),xu=nn({isInf_:function(e){var t=qt(e,"x","isInf");return Pe.runKernelFunc(function(e){return e.isInf(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),ku=nn({isFinite_:function(e){var t=qt(e,"x","isFinite");return Pe.runKernelFunc(function(e){return e.isFinite(t)},{$x:t},function(e){return{$x:function(){return bn(e)}}})}}),Cu=nn({sin_:function(e){var t=qt(e,"x","sin");return Pe.runKernelFunc(function(e,n){var r=e.sin(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return n.toFloat().cos().mul(e)}}},"Sin",{},[t])}}),Su=nn({sinh_:function(e){var t=qt(e,"x","sinh");return Pe.runKernelFunc(function(e,n){var r=e.sinh(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return n.toFloat().cosh().mulStrict(e)}}})}}),Eu=nn({softplus_:function(e){var t=qt(e,"x","softplus");return Pe.runKernelFunc(function(e,n){var r=e.softplus(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.mul(n.sigmoid())}}})}}),Au=nn({sqrt_:function(e){var t=qt(e,"x","sqrt");return Pe.runKernelFunc(function(e,n){var r=e.sqrt(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(n.toFloat().sqrt().mul(2))}}})}}),Ou=nn({step_:function(e,t){void 0===t&&(t=0);var n=qt(e,"x","step");return Pe.runKernelFunc(function(e){return e.step(n,t)},{$x:n},function(e){return{$x:function(){return bn(e)}}})}}),Du=nn({tan_:function(e){var t=qt(e,"x","tan");return Pe.runKernelFunc(function(e,n){var r=e.tan(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return e.div(n.cos().square())}}})}}),Iu=nn({tanh_:function(e){var t=qt(e,"x","tanh");return Pe.runKernelFunc(function(e,n){var r=e.tanh(t);return n([r]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return cn(1).sub(n.square()).mulStrict(e)}}},"Tanh",{},null,[!0])}});function Tu(e,t,n,r,i,o){var a,u,s=qt(e,"x","batchNorm"),c=qt(t,"mean","batchNorm"),l=qt(n,"variance","batchNorm");return null!=i&&(a=qt(i,"scale","batchNorm")),null!=r&&(u=qt(r,"offset","batchNorm")),x(2===s.rank,function(){return"Error in batchNorm3D: x must be rank 3 but got rank "+s.rank+"."}),x(2===c.rank||1===c.rank,function(){return"Error in batchNorm2D: mean must be rank 2 or rank 1 but got rank "+c.rank+"."}),x(2===l.rank||1===l.rank,function(){return"Error in batchNorm2D: variance must be rank 2 or rank 1 but got rank "+l.rank+"."}),null!=a&&x(2===a.rank||1===a.rank,function(){return"Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank "+a.rank+"."}),null!=u&&x(2===u.rank||1===u.rank,function(){return"Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank "+u.rank+"."}),Ru(s,c,l,u,a,o)}function Mu(e,t,n,r,i,o){var a,u,s=qt(e,"x","batchNorm"),c=qt(t,"mean","batchNorm"),l=qt(n,"variance","batchNorm");return null!=i&&(a=qt(i,"scale","batchNorm")),null!=r&&(u=qt(r,"offset","batchNorm")),x(3===s.rank,function(){return"Error in batchNorm3D: x must be rank 3 but got rank "+s.rank+"."}),x(3===c.rank||1===c.rank,function(){return"Error in batchNorm3D: mean must be rank 3 or rank 1 but got rank "+c.rank+"."}),x(3===l.rank||1===l.rank,function(){return"Error in batchNorm3D: variance must be rank 3 or rank 1 but got rank "+l.rank+"."}),null!=a&&x(3===a.rank||1===a.rank,function(){return"Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank "+a.rank+"."}),null!=u&&x(3===u.rank||1===u.rank,function(){return"Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank "+u.rank+"."}),Ru(s,c,l,u,a,o)}function Pu(e,t,n,r,i,o){var a,u,s=qt(e,"x","batchNorm"),c=qt(t,"mean","batchNorm"),l=qt(n,"variance","batchNorm");return null!=i&&(a=qt(i,"scale","batchNorm")),null!=r&&(u=qt(r,"offset","batchNorm")),x(4===s.rank,function(){return"Error in batchNorm4D: x must be rank 4 but got rank "+s.rank+"."}),x(4===c.rank||1===c.rank,function(){return"Error in batchNorm4D: mean must be rank 4 or rank 1 but got rank "+c.rank+"."}),x(4===l.rank||1===l.rank,function(){return"Error in batchNorm4D: variance must be rank 4 or rank 1 but got rank "+l.rank+"."}),null!=a&&x(4===a.rank||1===a.rank,function(){return"Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank "+a.rank+"."}),null!=u&&x(4===u.rank||1===u.rank,function(){return"Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank "+u.rank+"."}),Ru(s,c,l,u,a,o)}function Ru(e,t,n,r,i,o){null==o&&(o=.001);var a,u,s,c=qt(e,"x","batchNorm"),l=qt(t,"mean","batchNorm"),f=qt(n,"variance","batchNorm");return null!=i&&(a=qt(i,"scale","batchNorm")),null!=r&&(u=qt(r,"offset","batchNorm")),x(l.rank===f.rank,function(){return"Batch normalization gradient requires mean and variance to have equal ranks."}),x(null==u||l.rank===u.rank,function(){return"Batch normalization gradient requires mean and offset to have equal ranks."}),x(null==a||l.rank===a.rank,function(){return"Batch normalization gradient requires mean and scale to have equal ranks."}),s=0===c.rank||1===c.rank?c.as4D(1,1,1,c.size):2===c.rank?c.as4D(1,1,c.shape[0],c.shape[1]):3===c.rank?c.as4D(1,c.shape[0],c.shape[1],c.shape[2]):c,Pe.runKernelFunc(function(e,t){var n=e.batchNormalization(s,Fu(l),Fu(f),o,Fu(a),Fu(u));return t([c,l,f,a]),n},{x:c,mean:l,variance:f,scale:a,offset:u},function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],u=null==a?cn(1):a,c=Fr(r.shape,s.shape),l=[];if(1===r.rank){for(var f=0;f<s.shape.length-1;++f)l.push(s.shape[f]);l.push(1)}var h=n.sub(r),d=e.mul(u),p=gu(i.add(cn(o))),v=p.mul(p).mul(p).mul(cn(-.5));return{x:function(){return 1===r.rank?e.mul(sr(p.as4D(1,1,1,r.shape[0]),l)).mul(u).reshape(n.shape):e.mul(p).mul(u).reshape(n.shape)},mean:function(){var e=p.mul(cn(-1)).mul(d);return 1===r.rank&&(e=e.sum(c)),e.reshape(r.shape)},variance:function(){var e=v.mul(h).mul(d);return 1===r.rank&&(e=e.sum(c)),e.reshape(r.shape)},scale:function(){var t=h.mul(p),n=e.mul(t);return 1===r.rank&&(n=n.sum(c)),n.reshape(r.shape)},offset:function(){var t=e;return 1===r.rank&&(t=t.sum(c)),t.reshape(r.shape)}}},"BatchNormalization",{varianceEpsilon:o},[c,l,f,a]).reshape(c.shape)}function Fu(e){return null==e?null:0===e.rank?e.as1D():1===e.rank?e:2===e.rank?e.as4D(1,1,e.shape[0],e.shape[1]):3===e.rank?e.as4D(1,e.shape[0],e.shape[1],e.shape[2]):e}function Nu(){Lt("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon")}var ju=nn({batchNormalization2d_:function(e,t,n,r,i,o){return void 0===r&&(r=.001),Nu(),Tu(e,t,n,o,i,r)}}),Lu=nn({batchNormalization3d_:function(e,t,n,r,i,o){return void 0===r&&(r=.001),Nu(),Mu(e,t,n,o,i,r)}}),Bu=nn({batchNormalization4d_:function(e,t,n,r,i,o){return void 0===r&&(r=.001),Nu(),Pu(e,t,n,o,i,r)}}),Vu=nn({batchNormalization_:function(e,t,n,r,i,o){return void 0===r&&(r=.001),Nu(),Ru(e,t,n,o,i,r)}}),Wu=nn({batchNorm_:Ru}),Uu=nn({batchNorm2d_:Tu}),zu=nn({batchNorm3d_:Mu}),qu=nn({batchNorm4d_:Pu}),Hu=nn({logicalAnd_:function(e,t){var n=qt(e,"a","logicalAnd","bool"),r=qt(t,"b","logicalAnd","bool");return Nr(n.shape,r.shape),Pe.runKernelFunc(function(e){return e.logicalAnd(n,r)},{a:n,b:r},null,"LogicalAnd")}}),Gu=nn({logicalNot_:function(e){var t=qt(e,"x","logicalNot","bool");return Pe.runKernelFunc(function(e){return e.logicalNot(t)},{$x:t})}}),Ku=nn({logicalOr_:function(e,t){var n=qt(e,"a","logicalOr","bool"),r=qt(t,"b","logicalOr","bool");return Nr(n.shape,r.shape),Pe.runKernelFunc(function(e){return e.logicalOr(n,r)},{$a:n,$b:r})}}),Yu=nn({logicalXor_:function(e,t){var n=qt(e,"a","logicalXor","bool"),r=qt(t,"b","logicalXor","bool");return Nr(n.shape,r.shape),Ku(e,t).logicalAnd(Hu(e,t).logicalNot())}}),$u=nn({where_:function(e,t,n){var r=qt(t,"a","where"),i=qt(n,"b","where"),o=qt(e,"condition","where","bool");return k(r.shape,i.shape,"Error in where: "),1===o.rank?x(o.shape[0]===r.shape[0],function(){return"The first dimension of `a` must match the size of `condition`."}):k(o.shape,i.shape,"Error in where: "),Pe.runKernelFunc(function(e,t){var n=e.select(o,r,i);return t([o]),n},{$condition:o,$a:r,$b:i},function(e,t){var n=t[0];return{$condition:function(){return bn(n).toFloat()},$a:function(){return e.mul(n.cast(e.dtype))},$b:function(){return e.mul(n.logicalNot().cast(e.dtype))}}})}}),Zu=function(e){return o(this,void 0,void 0,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:return[4,(t=qt(e,"condition","whereAsync","bool")).data()];
vendor: 6,670 bytes, line 1
1case 1:return n=i.sent(),r=di(t.shape,n),e!==t&&t.dispose(),[2,r]}})})},Qu=nn({add_:function(e,t){var n,r=qt(e,"a","add"),i=qt(t,"b","add");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e){return e.add(r,i)},{a:r,b:i},function(e){return{a:function(){var t=e,n=Fr(r.shape,o);return n.length>0&&(t=t.sum(n)),t.reshape(r.shape)},b:function(){var t=e,n=Fr(i.shape,o);return n.length>0&&(t=t.sum(n)),t.reshape(i.shape)}}},"Add")}}),Xu=nn({addN_:function(e){x(Array.isArray(e),function(){return"The argument passed to tf.addN() must be a list of tensors"}),x(e.length>=1,function(){return"Must pass at least one tensor to tf.addN(), but got "+e.length});var t=e.map(function(e,t){return qt(e,"tensors"+t,"addN")}),n=t[0];return t.forEach(function(e){if(e.dtype!==n.dtype)throw new Error("All tensors passed to tf.addN() must have the same dtype")}),t.forEach(function(e){if(!A(e.shape,n.shape))throw new Error("All tensors passed to tf.addN() must have the same shape")}),Pe.runKernelFunc(function(e){return e.addN(t)},t,function(e){var n={};return t.forEach(function(t,r){n[r]=function(){return e.clone()}}),n},"AddN")}}),Ju=nn({addStrict_:function(e,t){var n=qt(e,"a","addStrict"),r=qt(t,"b","addStrict");return k(n.shape,r.shape,"Error in addStrict: "),n.add(r)}}),es=nn({atan2_:function(e,t){var n,r=qt(e,"a","atan2"),i=qt(t,"b","atan2");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e,t){var n=e.atan2(r,i);return t([r,i]),n},{$a:r,$b:i},function(e,t){var n=t[0],r=t[1];return{$a:function(){var t=Qu(n.square(),r.square()),i=e.mul(r.div(t)),a=Fr(n.shape,o);return a.length>0&&(i=i.sum(a)),i.reshape(n.shape)},$b:function(){var t=Qu(n.square(),r.square()),i=vu(e.mul(n.div(t))),a=Fr(r.shape,o);return a.length>0&&(i=i.sum(a)),i.reshape(r.shape)}}})}}),ts=nn({div_:function(e,t){var n,r=qt(e,"a","div"),i=qt(t,"b","div");if(n=Ae(r,i),i=n[1],"int32"===(r=n[0]).dtype&&"int32"===i.dtype)return is(r,i);var o=Nr(r.shape,i.shape);return Pe.runKernelFunc(function(e,t){var n=e.realDivide(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){var t=e.div(r.toFloat()),i=Fr(n.shape,o);return i.length>0?t.sum(i).reshape(n.shape):t},b:function(){var t=e.mul(n.toFloat()),i=Fr(r.shape,o);i.length>0&&(t=t.sum(i).reshape(r.shape));var a=r.square();return t.div(a.toFloat()).neg()}}},"Div")}}),ns=nn({divNoNan_:function(e,t){var n,r=qt(e,"a","div"),i=qt(t,"b","div");r=(n=Ae(r,i))[0];var o=ts(r,i=n[1]),a=bn(o),u=i.equal(a);return $u(u,a,o)}}),rs=nn({divStrict_:function(e,t){var n=qt(e,"a","div"),r=qt(t,"b","div");return k(n.shape,r.shape,"Error in divideStrict: "),n.div(r)}}),is=nn({floorDiv_:function(e,t){var n,r=qt(e,"a","floorDiv"),i=qt(t,"b","floorDiv");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e,t){var n=e.floorDiv(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){var t=e.div(r.toFloat()),i=Fr(n.shape,o);return i.length>0?t.sum(i).reshape(n.shape):t},b:function(){var t=e.mul(n.toFloat()),i=Fr(r.shape,o);i.length>0&&(t=t.sum(i).reshape(r.shape));var a=r.square();return t.div(a.toFloat()).neg()}}},"FloorDiv")}}),os=nn({maximum_:function(e,t){var n,r=qt(e,"a","maximum"),i=qt(t,"b","maximum");return n=Ae(r,i),i=n[1],"bool"===(r=n[0]).dtype&&(r=r.toInt(),i=i.toInt()),Nr(r.shape,i.shape),Pe.runKernelFunc(function(e,t){var n=e.maximum(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){return e.mul(n.greaterEqual(r).toFloat())},b:function(){return e.mul(n.less(r).toFloat())}}},"Maximum")}}),as=nn({maximumStrict_:function(e,t){var n=qt(e,"a","maximumStrict"),r=qt(t,"b","maximumStrict");return k(n.shape,r.shape,"Error in maximumStrict: "),n.maximum(r)}}),us=nn({minimum_:function(e,t){var n,r=qt(e,"a","minimum"),i=qt(t,"b","minimum");return n=Ae(r,i),i=n[1],"bool"===(r=n[0]).dtype&&(r=r.toInt(),i=i.toInt()),Nr(r.shape,i.shape),Pe.runKernelFunc(function(e,t){var n=e.minimum(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){return e.mul(n.lessEqual(r).toFloat())},b:function(){return e.mul(n.greater(r).toFloat())}}},"Minimum")}}),ss=nn({minimumStrict_:function(e,t){var n=qt(e,"a","minimumStrict"),r=qt(t,"b","minimumStrict");return k(n.shape,r.shape,"Error in minimumStrict: "),n.minimum(r)}}),cs=nn({mod_:function(e,t){var n,r=qt(e,"a","mod"),i=qt(t,"b","mod");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e,t){var n=e.mod(r,i);return t([r,i]),n},{$a:r,$b:i},function(e,t){var n=t[0],r=t[1];return{$a:function(){var t=Fr(n.shape,o);return t.length>0?e.sum(t).reshape(n.shape):e},$b:function(){var t=e.mul(n.div(r).floor().neg()),i=Fr(r.shape,o);return i.length>0?t.sum(i).reshape(r.shape):t}}})}}),ls=nn({modStrict_:function(e,t){var n=qt(e,"a","modStrict"),r=qt(t,"b","modStrict");return k(n.shape,r.shape,"Error in modStrict: "),n.mod(r)}}),fs=nn({mul_:function(e,t){var n,r=qt(e,"a","mul"),i=qt(t,"b","mul");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e,t){var n=e.multiply(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){var t=e.mul(r.toFloat()),i=Fr(n.shape,o);return i.length>0?t.sum(i).reshape(n.shape):t},b:function(){var t=e.mul(n.toFloat()),i=Fr(r.shape,o);return i.length>0?t.sum(i).reshape(r.shape):t}}},"Mul")}}),hs=nn({mulStrict_:function(e,t){var n=qt(e,"a","mul"),r=qt(t,"b","mul");return k(n.shape,r.shape,"Error in multiplyStrict: "),n.mul(r)}}),ds=nn({pow_:function(e,t){var n,r=qt(e,"base","pow"),i=qt(t,"exp","pow");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e,t){var n=e.pow(r,i);return t([r,i,n]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1],i=t[2];return{a:function(){var t=r.toFloat(),i=e.mul(t.mul(n.pow(t.sub(cn(1))))),a=Fr(n.shape,o);return a.length>0&&(i=i.sum(a)),i.reshape(n.shape)},b:function(){var t=n.greater(0),a=n.log().where(t,bn(n)),u=e.mul(i.mul(a)),s=Fr(r.shape,o);return s.length>0&&(u=u.sum(s)),u.reshape(r.shape)}}},"Pow",{},[r,i],[!0])}}),ps=nn({powStrict_:function(e,t){return k(e.shape,t.shape,"Error in powStrict: "),e.pow(t)}}),vs=nn({squaredDifferenceStrict_:function(e,t){var n=qt(e,"a","squaredDifferenceStrict"),r=qt(t,"b","squaredDifferenceStrict");return k(n.shape,r.shape,"Error in squaredDifferenceStrict: "),n.squaredDifference(r)}}),ys=nn({sub_:function(e,t){var n,r=qt(e,"a","sub"),i=qt(t,"b","sub");n=Ae(r,i);var o=Nr((r=n[0]).shape,(i=n[1]).shape);return Pe.runKernelFunc(function(e){return e.subtract(r,i)},{a:r,b:i},function(e){return{a:function(){var t=e,n=Fr(r.shape,o);return n.length>
vendor: 4,561 bytes, line 1
10&&(t=t.sum(n)),t.reshape(r.shape)},b:function(){var t=e,n=Fr(i.shape,o);return n.length>0&&(t=t.sum(n)),t.neg().reshape(i.shape)}}},"Sub")}}),ms=nn({subStrict_:function(e,t){var n=qt(e,"a","subStrict"),r=qt(t,"b","subStrict");return k(n.shape,r.shape,"Error in subStrict: "),n.sub(r)}}),gs=nn({equal_:function(e,t){var n,r=qt(e,"a","equal"),i=qt(t,"b","equal");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e){return e.equal(r,i)},{$a:r,$b:i})}}),bs=nn({equalStrict_:function(e,t){var n=qt(e,"a","equalStrict"),r=qt(t,"b","equalStrict");return k(n.shape,r.shape,"Error in equalStrict: "),n.equal(r)}}),ws=nn({greater_:function(e,t){var n,r=qt(e,"a","greater"),i=qt(t,"b","greater");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e){return e.greater(r,i)},{a:r,b:i},null,"Greater")}}),_s=nn({greaterEqual_:function(e,t){var n,r=qt(e,"a","greaterEqual"),i=qt(t,"b","greaterEqual");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e,t){var n=e.greaterEqual(r,i);return t([r,i]),n},{a:r,b:i},function(e,t){var n=t[0],r=t[1];return{a:function(){return bn(n)},b:function(){return bn(r)}}},"GreaterEqual")}}),xs=nn({greaterEqualStrict_:function(e,t){var n=qt(e,"a","greaterEqualStrict"),r=qt(t,"b","greaterEqualStrict");return k(n.shape,r.shape,"Error in greaterEqualStrict: "),n.greaterEqual(r)}}),ks=nn({greaterStrict_:function(e,t){var n=qt(e,"a","greaterStrict"),r=qt(t,"b","greaterStrict");return k(n.shape,r.shape,"Error in greaterStrict: "),n.greater(r)}}),Cs=nn({less_:function(e,t){var n,r=qt(e,"a","less"),i=qt(t,"b","less");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e){return e.less(r,i)},{a:r,b:i},null,"Less")}}),Ss=nn({lessEqual_:function(e,t){var n,r=qt(e,"a","lessEqual"),i=qt(t,"b","lessEqual");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e,t){var n=e.lessEqual(r,i);return t([r,i]),n},{a:r,b:i},null,"LessEqual")}}),Es=nn({lessEqualStrict_:function(e,t){var n=qt(e,"a","lessEqualStrict"),r=qt(t,"b","lessEqualStrict");return k(n.shape,r.shape,"Error in lessEqualStrict: "),n.lessEqual(r)}}),As=nn({lessStrict_:function(e,t){var n=qt(e,"a","lessStrict"),r=qt(t,"b","lessStrict");return k(n.shape,r.shape,"Error in lessStrict: "),n.less(r)}}),Os=nn({notEqual_:function(e,t){var n,r=qt(e,"a","notEqual"),i=qt(t,"b","notEqual");return n=Ae(r,i),Nr((r=n[0]).shape,(i=n[1]).shape),Pe.runKernelFunc(function(e){return e.notEqual(r,i)},{a:r,b:i},null,"NotEqual")}}),Ds=nn({notEqualStrict_:function(e,t){var n=qt(e,"a","notEqualStrict"),r=qt(t,"b","notEqualStrict");return k(n.shape,r.shape,"Error in notEqualStrict: "),n.notEqual(r)}});function Is(e,t){for(var n=[],r=e;r<t;++r)n.push(r);return n}function Ts(e){for(var t=[],n=0;n<e.length;++n)for(var r=0;r<e[n].length;++r)t.push(e[n][r]);return t}var Ms=nn({gather_:function(e,t,n){void 0===n&&(n=0);var r=qt(e,"x","gather"),i=qt(t,"indices","gather","int32");n=R(n,r.shape)[0];var o=function(e,t,n){for(var r=e.shape[n],i=[],o=1,a=1,u=0;u<n;u++)i.push(e.shape[u]),o*=e.shape[u];for(u=0;u<t.rank;u++)i.push(t.shape[u]);for(u=n+1;u<e.rank;u++)i.push(e.shape[u]),a*=e.shape[u];return{batchSize:o,sliceSize:a,dimSize:r,outputShape:i}}(r,i,n);return Pe.runKernelFunc(function(e,t){var o=e.gather(r,i.flatten(),n);return t([i]),o},{x:r,indices:i},function(e,t){var i=t[0];return{x:function(){var t=r.shape,o=i.size,a=t.slice(0,n),u=a.length,s=t.slice(n,t.length).slice(1),c=s.length,l=Is(0,u),f=Is(u+1,u+1+c),h=Ts([a,[o],s]),d=e.reshape(h),p=i.reshape([o]),v=Ts([[u],l,f]),y=d.transpose(v),m=Ps(y,p,r.shape[n]),g=Xt(v);return m.transpose(g)},indices:function(){return i}}},"Gather",{axis:n}).reshape(o.outputShape)}}),Ps=nn({unsortedSegmentSum_:function(e,t,n){var r=qt(e,"x","unsortedSegmentSum"),i=qt(t,"segmentIds","unsortedSegmentSum","int32");return x(O(n),function(){return"numSegments must be of dtype int"}),Pe.runKernelFunc(function(e,t){var o=e.unsortedSegmentSum(r,i,n);return t([i]),o},{$x:r},function(e,t){var n=t[0];return{$x:function(){return function(e,t){for(var n=os(t,bn(t)),r=Ms(e,n),i=_s(t,cn(0,"int32")),o=r.rank-i.rank,a=0;a<o;++a)i=Hn(i,a+1);i=Hu(i,pn(r.shape,"bool"));var u=bn(r);return $u(i,r,u)}(e,n)}}})}});function Rs(e,t,n,r,i,o,a){void 0===o&&(o="NHWC"),x(e.length===t.rank,function(){return"Length of inShape ("+e.length+") and rank of dy ("+t.rank+") must match"});var u=e,s=t,c=!1;3===t.rank&&(c=!0,s=t.as4D(1,t.shape[0],t.shape[1],t.shape[2]),u=[1,e[0],e[1],e[2]]),x(4===u.length,function(){return"Error in conv2dDerIn
1put: inShape must be length 4, but got length "+u.length+"."}),x(4===s.rank,function(){return"Error in conv2dDerInput: dy must be rank 4, but got rank "+s.rank}),x(4===n.rank,function(){return"Error in conv2dDerInput: filter must be rank 4, but got rank "+n.rank});var l="NHWC"===o?u[3]:u[1],f="NHWC"===o?s.shape[3]:s.shape[1];x(l===n.shape[2],function(){return"Error in conv2dDerInput: depth of input ("+l+") must match input depth for filter "+n.shape[2]+"."}),x(f===n.shape[3],function(){return"Error in conv2dDerInput: depth of output ("+f+") must match output depth for filter "+n.shape[3]+"."}),null!=a&&x(O(i),function(){return"Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+i+"."});var h=Yr(o),d=Br(u,n.shape,r,1,i,a,!1,h),p=Pe.runKernelFunc(function(e,t){var r=e.conv2dDerInput(s,n,d);return t([n,s]),r},{dy4D:s,filter:n},function(e,t){var n=t[0],u=t[1];return{dy4D:function(){return Ls(e,n,r,i,o,1,a)},filter:function(){return Vs(e,u,n.shape,r,i,o,a)}}});return c?p.as3D(p.shape[1],p.shape[2],p.shape[3]):p}function Fs(e){var t,n="number"==typeof(t=e)?[t,t,t]:2===t.length?[t[0],t[1],1]:t;return 1===n[0]&&1===n[1]&&1===n[2]}function Ns(e,t,n,r,i){x(e.length===t.rank,function(){return"Length of inShape ("+e.length+") and rank of dy ("+t.rank+") must match"});var o=e,a=t,u=!1;4===t.rank&&(u=!0,a=t.as5D(1,t.shape[0],t.shape[1],t.shape[2],t.shape[3]),o=[1,e[0],e[1],e[2],e[3]]);var s=o[4],c=a.shape[4];x(5===o.length,function(){return"Error in conv3dDerInput: inShape must be length 5, but got length "+o.length+"."}),x(5===a.rank,function(){return"Error in conv3dDerInput: dy must be rank 5, but got rank "+a.rank}),x(5===n.rank,function(){return"Error in conv3dDerInput: filter must be rank 5, but got rank "+n.rank}),x(s===n.shape[3],function(){return"Error in conv3dDerInput: depth of input ("+s+") must match input depth for filter "+n.shape[3]+"."}),x(c===n.shape[4],function(){return"Error in conv3dDerInput: depth of output ("+c+") must match output depth for filter "+n.shape[4]+"."});var l=Vr(o,n.shape,r,1,i),f=Pe.runKernelFunc(function(e){return e.conv3dDerInput(a,n,l)},{dy5D:a});return u?f.as4D(f.shape[1],f.shape[2],f.shape[3],f.shape[4]):f}var js=nn({conv1d_:function(e,t,n,r,i,o,a){void 0===i&&(i="NWC"),void 0===o&&(o=1);var u=qt(e,"x","conv1d"),s=qt(t,"filter","conv1d"),c=u,l=!1;2===u.rank&&(l=!0,c=u.as3D(1,u.shape[0],u.shape[1])),x(3===c.rank,function(){return"Error in conv1d: input must be rank 3, but got rank "+c.rank+"."}),x(3===s.rank,function(){return"Error in conv1d: filter must be rank 3, but got rank "+s.rank+"."}),null!=a&&x(O(r),function(){return"Error in conv1d: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+r+"."}),x(c.shape[2]===s.shape[1],function(){return"Error in conv1d: depth of input ("+c.shape[2]+") must match input depth for filter "+s.shape[1]+"."}),x(Kr(n,o),function(){return"Error in conv1D: Either stride or dilation must be 1. Got stride "+n+" and dilation '"+o+"'"}),x("NWC"===i,function(){return"Error in conv1d: got dataFormat of "+i+" but only NWC is currently supported."});var f=s.as4D(1,s.shape[0],s.shape[1],s.shape[2]),h=c.as4D(c.shape[0],1,c.shape[1],c.shape[2]),d=Ls(h,f,[1,n],r,"NHWC",[1,o],a);return l?d.as2D(d.shape[2],d.shape[3]):d.as3D(d.shape[0],d.shape[2],d.shape[3])}}),Ls=nn({conv2d_:function(e,t,n,r,i,o,a){void 0===i&&(i="NHWC"),void 0===o&&(o=[1,1]);var u=qt(e,"x","conv2d"),s=qt(t,"filter","conv2d"),c=u,l=!1;3===u.rank&&(l=!0,c=u.as4D(1,u.shape[0],u.shape[1],u.shape[2])),x(4===c.rank,function(){return"Error in conv2d: input must be rank 4, but got rank "+c.rank+"."}),x(4===s.rank,function(){return"Error in conv2d: filter must be rank 4, but got rank "+s.rank+"."}),null!=a&&x(O(r),function(){return"Error in conv2d: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+r+"."});var f="NHWC"===i?c.shape[3]:c.shape[1];x(f===s.shape[2],function(){return"Error in conv2d: depth of input ("+f+") must match input depth for filter "+s.shape[2]+"."}),x(Kr(n,o),function(){return"Error in conv2D: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+o+"'"});var h=Yr(i),d=Br(c.shape,s.shape,n,o,r,a,!1,h),p=Pe.runKernelFunc(function(e,t){var n=e.conv2d(c,s,d);return t([s,c]),n},{x:c,filter:s},function(e,t){var a=t[0],u=t[1];return x(Gr(o),function(){return"Error in gradient of conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+o+"'"}),{x:function(){return Ws(u.shape,e,a,n,r,i)},filter:function(){return Vs(u,e,a.shape,n,r,i)}}},"Conv2D",d,[s,c]);return l?p.as3D(p.shape[1],p.shape[2],p.shape[3]):p}}),Bs=nn({conv3d_:function(e,t,n,r,i,o){void 0===i&&(i="NDHWC"),void 0===o&&(o=[1,1,1]);var a,u=qt(e,"x","conv3d"),s=qt(t,"filter","conv3d"),c=u,l=!1;4===u.rank&&(l=!0,c=u.as5D(1,u.shape[0],u.shape[1],u.shape[2],u.shape[3])),x(5===c.rank,function(){return"Error in conv3d: input must be rank 5, but got rank "+c.rank+"."}),x(5===s.rank,function(){return"Error in conv3d: filter must be rank 5, but got rank "+s.rank+"."}),x(c.shape[4]===s.shape[3],function(){return"Error in conv3d: depth of input ("+c.shape[4]+") must match input depth for filter "+s.shape[3]+"."}),x((a=o,Fs(n)||Fs(a)),function(){return"Error in conv3D: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+o+"'"}),x("NDHWC"===i,function(){return"Error in conv3d: got dataFormat of "+i+" but only NDHWC is currently supported."});var f=Vr(c.shape,s.shape,n,o,r),h=Pe.runKernelFunc(function(e,t){var n=e.conv3d(c,s,f);return t([c,s]),n},{x:c,$filter:s},function(e,t){x(Fs(o),function(){return"Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+o+"'"});var i=t[0],a=t[1];return{x:function(){return Ns(i.shape,e,a,n,r)},$filter:function(){return function(e,t,n,r,i){var o=e;4===e.rank&&(o=e.as5D(1,e.shape[0],e.shape[1],e.shape[2],e.shape[3]));var a=t;4===a.rank&&(a=t.as5D(1,t.shape[0],t.shape[1],t.shape[2],t.shape[3])),x(5===o.rank,function(){return"Error in conv3dDerFilter: input must be rank 5, but got shape "+o.shape+"."}),x(5===a.rank,function(){return"Error in conv3dDerFilter: dy must be rank 5, but got shape "+a.shape+"."}),x(5===n.length,function(){return"Error in conv3dDerFilter: filterShape must be length 5, but got "+n+"."}),x(o.shape[4]===n[3],function(){return"Error in conv3dDerFilter: depth of input "+o.shape[4]+") must match input depth in filter ("+n[3]+"."}),x(a.shape[4]===n[4],function(){return"Error in conv3dDerFilter: depth of dy ("+a.shape[4]+") must match output depth for filter ("+n[4]+")."});var u=Vr(o.shape,n,r,1,i);return Pe.runKernelFunc(function(e){return e.conv3dDerFilter(o,a,u)},{x5D:o,dy5D:a})}(i,e,a.shape,n,r)}}});return l?h.as4D(h.shape[1],h.shape[2],h.shape[3],h.shape[4]):h}}),Vs=nn({conv2dDerFilter_:function(e,t,n,r,i,o,a){void 0===o&&(o="NHWC");var u=e;3===e.rank&&(u=e.as4D(1,e.shape[0],e.shape[1],e.shape[2]));var s=t;3===s.rank&&(s=t.as4D(1,t.shape[0],t.shape[1],t.shape[2])),x(4===u.rank,function(){return"Error in conv2dDerFilter: input must be rank 4, but got shape "+u.shape+"."}),x(4===s.rank,function(){return"Error in conv2dDerFilter: dy must be rank 4, but got shape "+s.shape+"."}),x(4===n.length,function(){return"Error in conv2dDerFilter: filterShape must be length 4, but got "+n+"."});var c="NHWC"===o?u.shape[3]:u.shape[1],l="NHWC"===o?s.shape[3]:s.shape[1];x(c===n[2],function(){return"Error in conv2dDerFilter: depth of input "+c+") must match input depth in filter ("+n[2]+"."}),x(l===n[3],function(){return"Error in conv2dDerFilter: depth of dy ("+l+") must match output depth for filter ("+n[3]+")."}),null!=a&&x(O(i),function(){return"Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+i+"."});var f=Yr(o),h=Br(u.shape,n,r,1,i,a,!1,f);return Pe.runKernelFunc(function(e){return e.conv2dDerFilter(u,s,h)},{x4D:u,dy4D:s})}}
vendor: 32,595 bytes, line 1
1),Ws=nn({conv2dDerInput_:Rs}),Us=nn({depthwiseConv2d_:function(e,t,n,r,i,o,a){void 0===i&&(i="NHWC"),void 0===o&&(o=[1,1]);var u=qt(e,"x","depthwiseConv2d"),s=qt(t,"filter","depthwiseConv2d"),c=u,l=!1;3===u.rank&&(l=!0,c=u.as4D(1,u.shape[0],u.shape[1],u.shape[2])),x(4===c.rank,function(){return"Error in depthwiseConv2d: input must be rank 4, but got rank "+c.rank+"."}),x(4===s.rank,function(){return"Error in depthwiseConv2d: filter must be rank 4, but got rank "+s.rank+"."}),x(c.shape[3]===s.shape[2],function(){return"Error in depthwiseConv2d: number of input channels ("+c.shape[3]+") must match the inChannels dimension in filter "+s.shape[2]+"."}),null==o&&(o=[1,1]),x(Kr(n,o),function(){return"Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+o+"'"}),null!=a&&x(O(r),function(){return"Error in depthwiseConv2d: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+r+"."});var f=Br(c.shape,s.shape,n,o,r,a,!0),h=Pe.runKernelFunc(function(e,t){var n=e.depthwiseConv2D(c,s,f);return t([c,s]),n},{x:c,filter:s},function(e,t){x(Gr(o),function(){return"Error in gradient of depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '"+o+"'"});var n=t[0],r=t[1];return{x:function(){return zs(n.shape,e,r,f)},filter:function(){return qs(n,e,r.shape,f)}}},"DepthwiseConv2dNative",f,[c,s]);return l?h.as3D(h.shape[1],h.shape[2],h.shape[3]):h}}),zs=nn({depthwiseConv2dDerInput_:function(e,t,n,r){var i=t,o=!1;3===t.rank&&(o=!0,i=t.as4D(1,t.shape[0],t.shape[1],t.shape[2]));var a=Pe.runKernelFunc(function(e){return e.depthwiseConv2DDerInput(i,n,r)},{dy4D:i});return o?a.as3D(a.shape[1],a.shape[2],a.shape[3]):a}}),qs=nn({depthwiseConv2dDerFilter_:function(e,t,n,r){var i=e;3===e.rank&&(i=e.as4D(1,e.shape[0],e.shape[1],e.shape[2]));var o=t;return 3===o.rank&&(o=t.as4D(1,t.shape[0],t.shape[1],t.shape[2])),Pe.runKernelFunc(function(e){return e.depthwiseConv2DDerFilter(i,o,r)},{x4D:i,dy4D:o})}}),Hs=nn({separableConv2d_:function(e,t,n,r,i,o,a){void 0===o&&(o=[1,1]),void 0===a&&(a="NHWC");var u=qt(e,"x","separableConv2d"),s=qt(t,"depthwiseFilter","separableConv2d"),c=qt(n,"pointwiseFilter","separableConv2d"),l=u,f=!1;if(3===u.rank&&(f=!0,l=u.as4D(1,u.shape[0],u.shape[1],u.shape[2])),"NCHW"===a)throw new Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");x(4===l.rank,function(){return"Error in separableConv2d: input must be rank 4, but got rank "+l.rank+"."}),x(4===s.rank,function(){return"Error in separableConv2d: depthwise filter must be rank 4, but got rank "+s.rank+"."}),x(4===c.rank,function(){return"Error in separableConv2d: pointwise filter must be rank 4, but got rank "+s.rank+"."}),x(1===c.shape[0],function(){return"Error in separableConv2d: the first dimension of pointwise filter must be 1, but got "+c.shape[0]+"."}),x(1===c.shape[1],function(){return"Error in separableConv2d: the second dimension of pointwise filter must be 1, but got "+c.shape[1]+"."});var h=s.shape[2],d=s.shape[3];x(c.shape[2]===h*d,function(){return"Error in separableConv2d: the third dimension of pointwise filter must be "+h*d+", but got "+c.shape[2]+"."});var p=Us(l,s,r,i,a,o),v=Ls(p,c,1,"valid",a);return f?v.as3D(v.shape[1],v.shape[2],v.shape[3]):v}}),Gs=nn({conv2dTranspose_:function(e,t,n,r,i,o){return Rs(n,qt(e,"x","conv2dTranspose"),qt(t,"filter","conv2dTranspose"),r,i,"NHWC",o)}}),Ks=nn({conv3dTranspose_:function(e,t,n,r,i){return Ns(n,qt(e,"x","conv3dTranspose"),qt(t,"filter","conv3dTranspose"),r,i)}}),Ys=nn({matMul_:function(e,t,n,r){var i;void 0===n&&(n=!1),void 0===r&&(r=!1);var o=qt(e,"a","matMul"),a=qt(t,"b","matMul");i=Ae(o,a),o=i[0],a=i[1];var u=n?o.shape[o.rank-2]:o.shape[o.rank-1],s=r?a.shape[a.rank-1]:a.shape[a.rank-2],c=n?o.shape[o.rank-1]:o.shape[o.rank-2],l=r?a.shape[a.rank-2]:a.shape[a.rank-1],f=o.shape.slice(0,-2),h=a.shape.slice(0,-2),d=E(f),p=E(h);x(o.rank>=2&&a.rank>=2&&o.rank===a.rank,function(){return"Error in matMul: inputs must have the same rank of at least 2, got ranks "+o.rank+" and "+a.rank+"."}),x(A(f,h),function(){return"Error in matMul: outer dimensions ("+f+") and ("+h+") of Tensors with shapes "+o.shape+" and "+a.shape+" must match."}),x(u===s,function(){return"Error in matMul: inner shapes ("+u+") and ("+s+") of Tensors with shapes "+o.shape+" and "+a.shape+" and transposeA="+n+" and transposeB="+r+" must match."});var v=o.shape.slice(0,-2).concat([c,l]),y=n?o.as3D(d,u,c):o.as3D(d,c,u),m=r?a.as3D(p,l,s):a.as3D(p,s,l);return Pe.runKernelFunc(function(e,t){var i=e.batchMatMul(y,m,n,r);return t([y,m]),i},{a:y,b:m},function(e,t){var i=t[0],o=t[1];return n||r?!n&&r?{a:function(){return e.matMul(o,!1,!1)},b:function(){return e.matMul(i,!0,!1)}}:n&&!r?{a:function(){return o.matMul(e,!1,!0)},b:function(){return i.matMul(e,!1,!1)}}:{a:function(){return o.matMul(e,!0,!0)},b:function(){return e.matMul(i,!0,!0)}}:{a:function(){return e.matMul(o,!1,!0)},b:function(){return i.matMul(e,!0,!1)}}},"BatchMatMul",{transposeA:n,transposeB:r}).reshape(v)}}),$s=nn({dot_:function(e,t){var n=qt(e,"t1","dot"),r=qt(t,"t2","dot");x(!(1!==n.rank&&2!==n.rank||1!==r.rank&&2!==r.rank),function(){return"Error in dot: inputs must all be rank 1 or 2, but got ranks "+n.rank+" and "+r.rank+"."});var i=1===n.rank?n.size:n.shape[1],o=1===r.rank?r.size:r.shape[0];return x(i===o,function(){return"Error in dot: inner dimensions of inputs must match, but got "+i+" and "+o+"."}),1===n.rank&&1===r.rank?n.as2D(1,-1).matMul(r.as2D(-1,1)).asScalar():1===n.rank&&2===r.rank?n.as2D(1,-1).matMul(r.as2D(r.shape[0],r.shape[1])).as1D():2===n.rank&&1===r.rank?n.matMul(r.as2D(-1,1)).as1D():n.matMul(r.as2D(r.shape[0],r.shape[1]))}}),Zs=nn({outerProduct_:function(e,t){var n=qt(e,"v1","outerProduct"),r=qt(t,"v2","outerProduct");return x(1===n.rank&&1===r.rank,function(){return"Error in outerProduct: inputs must be rank 1, but got ranks "+n.rank+" and "+r.rank+"."}),n.as2D(-1,1).matMul(r.as2D(1,-1))}}),Qs=nn({reverse_:function(e,t){var n=qt(e,"x","reverse");if(0===n.rank)return n.clone();var r=R(t,n.shape);return Pe.runKernelFunc(function(e){return e.reverse(n,r)},{$x:n},function(e){return{$x:function(){return e.reverse(r)}}}).reshapeAs(n)}}),Xs=nn({reverse1d_:function(e){var t=qt(e,"x","reverse");return x(1===t.rank,function(){return"Error in reverse1D: x must be rank 1 but got rank "+t.rank+"."}),Qs(t,0)}}),Js=nn({reverse2d_:function(e,t){var n=qt(e,"x","reverse");return x(2===n.rank,function(){return"Error in reverse2D: x must be rank 2 but got rank "+n.rank+"."}),Qs(n,t)}}),ec=nn({reverse3d_:function(e,t){var n=qt(e,"x","reverse");return x(3===n.rank,function(){return"Error in reverse3D: x must be rank 3 but got rank "+n.rank+"."}),Qs(n,t)}}),tc=nn({reverse4d_:function(e,t){var n=qt(e,"x","reverse");return x(4===n.rank,function(){return"Error in reverse4D: x must be rank 4 but got rank "+n.rank+"."}),Qs(n,t)}});function nc(e,t,n,r,i,o){var a=qt(e,"x","maxPool"),u=a,s=!1;3===a.rank&&(s=!0,u=a.as4D(1,a.shape[0],a.shape[1],a.shape[2])),null==r&&(r=[1,1]),x(4===u.rank,function(){return"Error in maxPool: input must be rank 4 but got rank "+u.rank+"."}),x(Kr(n,r),function(){return"Error in maxPool: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+r+"'"}),null!=o&&x(O(i),function(){return"Error in maxPool: pad must be an integer when using, dimRoundingMode "+o+" but got pad "+i+"."});var c=jr(u.shape,t,n,r,i,o);if(1===c.filterWidth&&1===c.filterHeight&&A(c.inShape,c.outShape))return a.clone();var l=Pe.runKernelFunc(function(e,t){var n=e.maxPool(u,c);return t([u,n]),n},{x:u},function(e,o){var a=o[0],u=o[1];return{x:function(){return function(e,t,n,r,i,o,a,u){var s=qt(e,"dy","maxPoolBackprop"),c=qt(t,"input","maxPoolBackprop"),l=qt(n,"output","maxPoolBackprop");x(c.rank===s.rank,function(){return"Rank of input ("+c.rank+") does not match rank of dy ("+s.rank+")"}),null==o&&(o=[1,1]),x(Kr(i,o),function(){return"Error in maxPoolBackProp: Either strides or dilations must be 1. Got strides "+i+" and dilations '"+o+"'"}),x(4===s.rank,function(){return"Error in maxPoolBackprop: dy must be rank 4 but got rank "+s.rank+"."}),x(4===c.rank,function(){return"Error in maxPoolBackprop: input must be rank 4 but got rank "+c.rank+"."});var f=jr(c.shape,r,i,o,a,void 0);return Pe.runKernelFunc(function(e){return e.maxPoolBackprop(s,c,l,f)},{$dy:s,$input:c})}(e,a,u,t,n,r,i)}}},"MaxPool",c,[u]);return s?l.as3D(l.shape[1],l.shape[2],l.shape[3]):l}function rc(e,t,n,r,i,o){var a=qt(e,"x","avgPool","float32");null==r&&(r=[1,1]),x(Kr(n,r),function(){return"Error in avgPool: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+r+"'"});var u=a,s=!1;3===a.rank&&(s=!0,u=a.as4D(1,a.shape[0],a.shape[1],a.shape[2])),x(4===u.rank,function(){return"Error in avgPool: x must be rank 4 but got rank "+u.rank+"."}),null!=o&&x(O(i),function(){return"Error in avgPool: pad must be an integer when using, dimRoundingMode "+o+" but got pad "+i+"."});var c=jr(u.shape,t,n,r,i,o);if(1===c.filterWidth&&1===c.filterHeight&&A(c.inShape,c.outShape))return a.clone();var l=Pe.runKernelFunc(function(e){return e.avgPool(u,c)},{x:u},function(e){return{x:function(){return function(e,t,n,r,i,o){var a=qt(e,"dy","avgPoolBackprop"),u=qt(t,"input","avgPoolBackprop");x(u.rank===a.rank,function(){return"Rank of input ("+u.rank+") does not match rank of dy ("+a.rank+")"}),null==i&&(i=[1,1]),x(Kr(r,i),function(){return"Error in avgPoolBackprop: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+i+"'"});var s=u,c=a,l=!1;3===u.rank&&(l=!0,s=u.as4D(1,u.shape[0],u.shape[1],u.shape[2]),c=a.as4D(1,a.shape[0],a.shape[1],a.shape[2])),x(4===c.rank,function(){return"Error in avgPoolBackprop: dy must be rank 4 but got rank "+c.rank+"."}),x(4===s.rank,function(){return"Error in avgPoolBackprop: input must be rank 4 but got rank "+s.rank+"."});var f=jr(s.shape,n,r,i,o),h=Pe.runKernelFunc(function(e){return e.avgPoolBackprop(c,s,f)},{dy4D:c,input4D:s});return l?h.as3D(h.shape[1],h.shape[2],h.shape[3]):h}(e,u,t,n,r,i)}}},"AvgPool",c);return l=l.cast(a.dtype),s?l.as3D(l.shape[1],l.shape[2],l.shape[3]):l}var ic=nn({maxPool_:function(e,t,n,r,i){return nc(e,t,n,1,r,i)}}),oc=nn({avgPool_:function(e,t,n,r,i){return rc(e,t,n,1,r,i)}}),ac=nn({pool_:function(e,t,n,r,i,o){null==i&&(i=[1,1]),null==o&&(o=1),0===r&&(r="valid");var a=qt(e,"x","maxPool"),u=a,s=!1;3===a.rank&&(s=!0,u=a.as4D(1,a.shape[0],a.shape[1],a.shape[2])),x(Kr(o,i),function(){return"Error in pool: Either strides or dilations must be 1. Got strides "+o+" and dilations '"+i+"'"});var c,l,f,h,d,p=jr(u.shape,t,o,i,r),v=[p.dilationHeight,p.dilationWidth];c="same"===r?(l=v,f=[p.filterHeight,p.filterWidth].map(function(e,t){return e+(e-1)*(l[t]-1)}).map(function(e){return e-1}),h=f.map(function(e){return Math.floor(e/2)}),d=f.map(function(e,t){return e-h[t]}),f.map(function(e,t){return[h[t],d[t]]})):[[0,0],[0,0]];var y=1===v[0]&&1===v[1],m=function(e,t,n){var r=n.map(function(e){return e[0]}),i=n.map(function(e){return e[1]}),o=e.concat(r,i),a=t.map(function(e,t){return(e-o[t]%e)%e}),u=i.map(function(e,t){return e+a[t]});return[t.map(function(e,t){return[r[t],u[t]]}),t.map(function(e,t){return[0,a[t]]})]}([p.inHeight,p.inWidth],v,c),g=m[1],b=y?r:"valid",w=y?u:or(u,v,m[0]),_=("avg"===n?function(){return rc(w,t,o,1,b)}:function(){return nc(w,t,o,1,b)})(),k=y?_:Bn(_,v,g);return s?k.as3D(k.shape[1],k.shape[2],k.shape[3]):k}}),uc=nn({maxPool3d_:function(e,t,n,r,i,o,a){void 0===o&&(o="NDHWC");var u=qt(e,"x","maxPool3d"),s=u,c=!1;4===u.rank&&(c=!0,s=u.as5D(1,u.shape[0],u.shape[1],u.shape[2],u.shape[3])),null==a&&(a=[1,1,1]),x(5===s.rank,function(){return"Error in maxPool3d: x must be rank 5 but got rank "+s.rank+"."}),x("NDHWC"===o,function(){return"Error in maxPool3d: Only NDHWC is currently supported, but got dataFormat of "+o}),x(Kr(n,a),function(){return"Error in maxPool3d: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+a+"'"}),null!=i&&x(O(r),function(){return"Error in maxPool3d: pad must be an integer when using, dimRoundingMode "+i+" but got pad "+r+"."});var l=Lr(s.shape,t,n,a,r,i,o),f=Pe.runKernelFunc(function(e,t){var n=e.maxPool3d(s,l);return t([s,n]),n},{x:s},function(e,o){var u=o[0],s=o[1];return{x:function(){return function(e,t,n,r,i,o,a,u){var s=qt(e,"dy","maxPool3dBackprop"),c=qt(t,"input","maxPool3dBackprop"),l=qt(n,"output","maxPool3dBackprop"),f=s,h=c,d=l,p=!1;4===c.rank&&(p=!0,f=s.as5D(1,s.shape[0],s.shape[1],s.shape[2],s.shape[3]),h=c.as5D(1,c.shape[0],c.shape[1],c.shape[2],c.shape[3]),d=l.as5D(1,l.shape[0],l.shape[1],l.shape[2],l.shape[3])),x(5===f.rank,function(){return"Error in maxPool3dBackprop: dy must be rank 5 but got rank "+f.rank+"."}),x(5===h.rank,function(){return"Error in maxPool3dBackprop: input must be rank 5 but got rank "+h.rank+"."}),x(5===d.rank,function(){return"Error in maxPool3dBackprop: output must be rank 5 but got rank "+d.rank+"."}),null==o&&(o=[1,1,1]),x(Kr(i,o),function(){return"Error in maxPool3dBackprop: Either strides or dilations must be 1. Got strides "+i+" and dilations '"+o+"'"}),null!=u&&x(O(a),function(){return"Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode "+u+" but got pad "+a+"."});var v=Lr(h.shape,r,i,o,a,u),y=Pe.runKernelFunc(function(e){return e.maxPool3dBackprop(f,h,d,v)},{dy5D:f,input5D:h});return p?y.as4D(y.shape[1],y.shape[2],y.shape[3],y.shape[4]):y}(e,u,s,t,n,a,r,i)}}});return c?f.as4D(f.shape[1],f.shape[2],f.shape[3],f.shape[4]):f}}),sc=nn({avgPool3d_:function(e,t,n,r,i,o,a){void 0===o&&(o="NDHWC");var u=qt(e,"x","avgPool3d","float32"),s=u,c=!1;4===u.rank&&(c=!0,s=u.as5D(1,u.shape[0],u.shape[1],u.shape[2],u.shape[3])),null==a&&(a=[1,1,1]),x(5===s.rank,function(){return"Error in avgPool3d: x must be rank 5 but got rank "+s.rank+"."}),x("NDHWC"===o,function(){return"Error in avgPool3d: Only NDHWC is currently supported, but got dataFormat of "+o}),x(Kr(n,a),function(){return"Error in avgPool3d: Either strides or dilations must be 1. Got strides "+n+" and dilations '"+a+"'"}),null!=i&&x(O(r),function(){return"Error in avgPool3d: pad must be an integer when using, dimRoundingMode "+i+" but got pad "+r+"."});var l=Lr(s.shape,t,n,a,r,i,o),f=Pe.runKernelFunc(function(e){return e.avgPool3d(s,l)},{x:s},function(e){return{x:function(){return function(e,t,n,r,i,o,a){var u=qt(e,"dy","avgPool3dBackprop"),s=qt(t,"input","avgPool3dBackprop"),c=u,l=s,f=!1;4===s.rank&&(f=!0,c=u.as5D(1,u.shape[0],u.shape[1],u.shape[2],u.shape[3]),l=s.as5D(1,s.shape[0],s.shape[1],s.shape[2],s.shape[3])),x(5===c.rank,function(){return"Error in avgPool3dBackprop: dy must be rank 5 but got rank "+c.rank+"."}),x(5===l.rank,function(){return"Error in avgPool3dBackprop: input must be rank 5 but got rank "+l.rank+"."}),null==i&&(i=[1,1,1]),x(Kr(r,i),function(){return"Error in avgPool3dBackprop: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+i+"'"}),null!=a&&x(O(o),function(){return"Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode "+a+" but got pad "+o+"."});var h=Lr(l.shape,n,r,i,o,a),d=Pe.runKernelFunc(function(e){return e.avgPool3dBackprop(c,l,h)},{dy5D:c,input5D:l});return f?d.as4D(d.shape[1],d.shape[2],d.shape[3],d.shape[4]):d}(e,s,t,n,a,r,i)}}});return f=f.cast(s.dtype),c?f.as4D(f.shape[1],f.shape[2],f.shape[3],f.shape[4]):f}}),cc=nn({slice_:function(e,t,n){var r,i,o=qt(e,"x","slice");if(0===o.rank)throw new Error("Slicing scalar is not possible");(r="number"==typeof t?[t].concat(new Array(o.rank-1).fill(0)):t.length<o.rank?t.concat(new Array(o.rank-t.length).fill(0)):t.slice()).forEach(function(e){x(-1!==e,function(){return"slice() does not support negative begin indexing."})}),i=(i=null==n?new Array(o.rank).fill(-1):"number"==typeof n?[n].concat(new Array(o.rank-1).fill(-1)):n.length<o.rank?n.concat(new Array(o.rank-n.length).fill(-1)):n).map(function(e,t){return e>=0?e:(x(-1===e,function(){return"Negative size values should be exactly -1 but got "+e+" for the slice() size at index "+t+"."}),o.shape[t]-r[t])}),_r(o,r,i);var a=o.shape;return Pe.runKernelFunc(function(e){return e.slice(o,r,i)},{x:o},function(e){for(var t=[],n=0;n<e.rank;n++)t.push([r[n],a[n]-r[n]-i[n]]);return{x:function(){return e.pad(t)}}},"Slice",{begin:r,size:i})}}),lc=nn({slice1d_:function(e,t,n){var r=qt(e,"x","slice1d");return x(1===r.rank,function(){return"slice1d expects a rank-1 tensor, but got a rank-"+r.rank+" tensor"}),cc(r,[t],[n])}}),fc=nn({slice2d_:function(e,t,n){var r=qt(e,"x","slice2d");return x(2===r.rank,function(){return"slice2d expects a rank-2 tensor, but got a rank-"+r.rank+" tensor"}),cc(r,t,n)}}),hc=nn({slice3d_:function(e,t,n){var r=qt(e,"x","slice3d");return x(3===r.rank,function(){return"slice3d expects a rank-3 tensor, but got a rank-"+r.rank+" tensor"}),cc(r,t,n)}}),dc=nn({slice4d_:function(e,t,n){var r=qt(e,"x","slice4d");return x(4===r.rank,function(){return"slice4d expects a rank-4 tensor, but got a rank-"+r.rank+" tensor"}),cc(r,t,n)}});function pc(e,t,n,r,i){return t.rank<n.rank&&(t=t.reshape($t(t.shape,r))),e.rank<n.rank&&(e=e.reshape($t(e.shape,r))),{x:function(){var r=e.mul(n.equal(t).cast(e.dtype));return null==i?r:r.transpose(i)}}}var vc=nn({all_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","all","bool"),i=R(t,r.shape),o=i,a=Qt(o,r.rank);null!=a&&(r=r.transpose(a),o=Jt(o.length,r.rank));var u=Pe.runKernelFunc(function(e){return e.all(r,o)},{$x:r});if(n){var s=$t(u.shape,i);return u.reshape(s)}return u}}),yc=nn({any_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","any","bool"),i=R(t,r.shape),o=i,a=Qt(o,r.rank);null!=a&&(r=r.transpose(a),o=Jt(o.length,r.rank));var u=Pe.runKernelFunc(function(e){return e.any(r,o)},{$x:r});if(n){var s=$t(u.shape,i);return u.reshape(s)}return u}}),mc=nn({argMax_:function(e,t){void 0===t&&(t=0);var n=qt(e,"x","argMax");null==t&&(t=0);var r=R(t,n.shape),i=Qt(r,n.rank);return null!=i&&(n=n.transpose(i),r=Jt(r.length,n.rank)),Pe.runKernelFunc(function(e,t){var i=e.argMax(n,r[0]);return t([n]),i},{x:n},function(e,t){var n=t[0];return{x:function(){return bn(n)}}},"ArgMax",{axis:r[0]},[n])}}),gc=nn({argMin_:function(e,t){void 0===t&&(t=0);var n=qt(e,"x","argMin");null==t&&(t=0);var r=R(t,n.shape),i=Qt(r,n.rank);return null!=i&&(n=n.transpose(i),r=Jt(r.length,n.rank)),Pe.runKernelFunc(function(e,t){var i=e.argMin(n,r[0]);return t([n]),i},{$x:n},function(e,t){var n=t[0];return{$x:function(){return bn(n)}}})}}),bc=nn({logSumExp_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","logSumExp"),i=R(t,r.shape),o=r.max(i,!0),a=r.sub(o).exp().sum(i).log(),u=o.reshape(a.shape).add(a);if(n){var s=$t(u.shape,i);return u.reshape(s)}return u}}),wc=nn({max_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","max"),i=r,o=R(t,r.shape),a=o,u=Qt(a,r.rank);null!=u&&(r=r.transpose(u),a=Jt(a.length,r.rank));var s=Pe.runKernelFunc(function(e,t){var n=e.max(r,a);return t([i,n]),n},{x:r},function(e,t){return pc(e,t[1],t[0],o,u)},"Max",{axes:a},[r],[!0]);if(n){var c=$t(s.shape,o);s=s.reshape(c)}return s}}),_c=nn({mean_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","mean"),i=R(t,r.shape),o=E(Yt(r.shape,i)[1]);return Or(function(e){var r=cn(o);return{value:(r.dtype===e.dtype?e:e.cast(r.dtype)).div(r).sum(t,n),gradFunc:function(t){var n=e.shape.slice();return i.forEach(function(e){n[e]=1}),t.reshape(n).mul(pn(e.shape,"float32")).div(o)}}})(r)}}),xc=nn({min_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","min"),i=r,o=R(t,r.shape),a=o,u=Qt(a,r.rank);null!=u&&(r=r.transpose(u),a=Jt(a.length,r.rank));var s=Pe.runKernelFunc(function(e,t){var n=e.min(r,a);return t([i,n]),n},{x:r},function(e,t){return pc(e,t[1],t[0],o,u)},"Min",{axes:a},[r],[!0]);if(n){var c=$t(s.shape,o);s=s.reshape(c)}return s}}),kc=nn({moments_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=R(t,(e=qt(e,"x","moments")).shape),i=e.mean(r,n),o=i.shape;n||(o=$t(i.shape,r));var a=e.toFloat().sub(i.reshape(o)).square();return{mean:i,variance:a.mean(r,n)}}}),Cc=nn({sum_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","sum");"bool"===r.dtype&&(r=r.toInt());var i=R(t,r.shape);return Or(function(e){var t=Qt(i,e.rank),r=i,o=e;null!=t&&(o=e.transpose(t),r=Jt(r.length,e.rank));var a=function(t){var n=e.shape.slice();return i.forEach(function(e){n[e]=1}),t.reshape(n).mul(pn(e.shape,"float32"))},u=Pe.runKernelFunc(function(e){return e.sum(o,r)},{x:o},function(e){return{x:function(){return a(e)}}},"Sum",{axes:r});if(n){var s=$t(u.shape,i);u=u.reshape(s)}return{value:u,gradFunc:a}})(r)}}),Sc=nn({prod_:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=qt(e,"x","prod");"bool"===r.dtype&&(r=r.toInt());var i=R(t,r.shape),o=Qt(i,r.rank),a=i,u=r;null!=o&&(u=r.transpose(o),a=Jt(a.length,r.rank));var s=Pe.runKernelFunc(function(e){return e.prod(u,a)},{permutedX:u});if(n){var c=$t(s.shape,i);s=s.reshape(c)}return s}}),Ec=nn({elu_:function(e){var t=qt(e,"x","elu");return Pe.runKernelFunc(function(e,n){var r=e.elu(t);return n([r]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){return Pe.runKernelFunc(function(t){return t.eluDer(e,n)},{dy:e,y:n})}}})}}),Ac=nn({leakyRelu_:function(e,t){void 0===t&&(t=.2);var n=qt(e,"x","leakyRelu");return os(cn(t).mul(n),n)}}),Oc=nn({prelu_:function(e,t){var n=qt(e,"x","prelu"),r=qt(t,"alpha","prelu");return Pe.runKernelFunc(function(e,t){var i=e.prelu(n,r);return t([n,r]),i},{x:n,alpha:r},function(e,t){var n=t[0],r=t[1],i=n.greater(0);return{x:function(){return $u(i,e,e.mul(r))},alpha:function(){var t=$u(i,bn(e),e.mul(n)),o=Fr(r.shape,e.shape);return o.length>0&&(t=t.sum(o)),t.reshape(r.shape)}}},"Prelu")}}),Dc=nn({relu_:function(e){var t=qt(e,"x","relu");return"bool"===t.dtype?t.toInt():Pe.runKernelFunc(function(e,n){var r=e.relu(t);return n([t]),r},{x:t},function(e,t){var n=t[0];return{x:function(){return e.mulStrict(n.step().toFloat())}}},"Relu")}}),Ic=nn({relu6_:function(e){var t=qt(e,"x","relu6");return"bool"===t.dtype?t.toInt():Pe.runKernelFunc(function(e,n){var r=e.relu6(t);return n([t]),r},{x:t},function(e,t){var n=t[0],r=n.lessEqual(6).mul(n.step());return{x:function(){return e.mulStrict(r.toFloat())}}},"Relu6")}}),Tc=nn({selu_:function(e){var t=qt(e,"x","selu");return Pe.runKernelFunc(function(e,n){var r=e.selu(t);return n([t]),r},{$x:t},function(e,t){var n=t[0];return{$x:function(){var t=n.greater(cn(0)),r=cn(1.7580993408473768),i=cn(1.0507009873554805),o=e.mul(i),a=e.mul(r).mul(n.toFloat().exp());return $u(t,o,a)}}})}}),Mc=nn({transpose_:function(e,t){var n=qt(e,"x","transpose");return null==t&&(t=n.shape.map(function(e,t){return t}).reverse()),x(n.rank===t.length,function(){return"Error in transpose: rank of input "+n.rank+" must match length of perm "+t+"."}),t.forEach(function(e){x(e>=0&&e<n.rank,function(){return"All entries in 'perm' must be between 0 and "+(n.rank-1)+" but got "+t})}),n.rank<=1?n.clone():Pe.runKernelFunc(function(e){return e.transpose(n,t)},{x:n},function(e){var n=Xt(t);return{x:function(){return e.transpose(n)}}},"Transpose",{perm:t})}}),Pc=nn({localResponseNormalization_:function(e,t,n,r,i){void 0===t&&(t=5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=.5);var o=qt(e,"x","localResponseNormalization");x(4===o.rank||3===o.rank,function(){return"Error in localResponseNormalization: x must be rank 3 or 4 but got\n rank "+o.rank+"."}),x(O(t),function(){return"Error in localResponseNormalization: depthRadius must be an integer but got depthRadius "+t+"."});var a=o,u=!1;3===o.rank&&(u=!0,a=o.as4D(1,o.shape[0],o.shape[1],o.shape[2]));var s=Pe.runKernelFunc(function(e,o){var u=e.localResponseNormalization4D(a,t,n,r,i);return o([a,u]),u},{x4D:a},function(e,o){var a=o[0],u=o[1];return{x4D:function(){return Pe.runKernelFunc(function(o){return o.LRNGrad(e,a,u,t,n,r,i)},{})}}});return u?s.as3D(s.shape[1],s.shape[2],s.shape[3]):s}}),Rc=nn({norm_:function(e,t,n,r){void 0===t&&(t="euclidean"),void 0===n&&(n=null),void 0===r&&(r=!1);var i=function e(t,n,r){if(void 0===r&&(r=null),0===t.rank)return t.abs();if(1!==t.rank&&null===r)return e(t.reshape([-1]),n,r);if(1===t.rank||"number"==typeof r||Array.isArray(r)&&1===r.length){if(1===n)return t.abs().sum(r);if(n===1/0)return t.abs().max(r);if(n===-1/0)return t.abs().min(r);if("euclidean"===n||2===n)return t.abs().pow(cn(2,"int32")).sum(r).sqrt();throw new Error("Error in norm: invalid ord value: "+n)}if(Array.isArray(r)&&2===r.length){if(1===n)return t.abs().sum(r[0]).max(r[1]-1);if(n===1/0)return t.abs().sum(r[1]).max(r[0]);if(n===-1/0)return t.abs().sum(r[1]).min(r[0]);if("fro"===n||"euclidean"===n)return t.square().sum(r).sqrt();throw new Error("Error in norm: invalid ord value: "+n)}throw new Error("Error in norm: invalid axis: "+r)}(e=qt(e,"x","norm"),t,n),o=i.shape;if(r){var a=R(n,e.shape);o=$t(i.shape,a)}return i.reshape(o)}}),Fc=nn({basicLSTMCell_:function(e,t,n,r,i,o){var a=qt(e,"forgetBias","basicLSTMCell"),u=qt(t,"lstmKernel","basicLSTMCell"),s=qt(n,"lstmBias","basicLSTMCell"),c=qt(r,"data","basicLSTMCell"),l=qt(i,"c","basicLSTMCell"),f=qt(o,"h","basicLSTMCell"),h=c.concat(f,1).matMul(u).add(s),d=h.shape[1]/4,p=[h.shape[0],d],v=h.slice([0,0],p),y=h.slice([0,d],p),m=h.slice([0,2*d],p),g=h.slice([0,3*d],p),b=v.sigmoid().mulStrict(y.tanh()).addStrict(l.mulStrict(a.add(m).sigmoid())),w=b.tanh().mulStrict(g.sigmoid());return[b,w]}}),Nc=nn({multiRNNCell_:function(e,t,n,r){for(var i=qt(t,"data","multiRNNCell"),o=Ht(n,"c","multiRNNCell"),a=Ht(r,"h","multiRNNCell"),u=i,s=[],c=0;c<e.length;c++){var l=e[c](u,o[c],a[c]);s.push(l[0]),s.push(l[1]),u=l[1]}var f=[],h=[];for(c=0;c<s.length;c+=2)f.push(s[c]),h.push(s[c+1]);return[f,h]}}),jc=nn({movingAverage_:function(e,t,n,r,i){void 0===i&&(i=!0);var o=qt(e,"v","movingAverage"),a=qt(t,"x","movingAverage"),u=qt(n,"decay","movingAverage");Oe(o,a),x(A(o.shape,a.shape),function(){return"Shape mismatch in v and x"});var s=cn(1),c=s.sub(u),l=a.sub(o).mul(c);if(i){x(null!=r,function(){return"When using zeroDebias: true, step is required."});var f=qt(r,"step","movingAverage");l=l.div(s.sub(ds(u,f)))}return o.add(l)}}),Lc=nn({stridedSlice_:function(e,t,n,r,i,o,a,u,s){if(void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===u&&(u=0),void 0===s&&(s=0),null==r&&(r=new Array(t.length)),0!==a)throw new Error("ellipsis mask is not yet supported");var c=qt(e,"x","stridedSlice"),l=xr(u),f=c.shape.slice();l.forEach(function(e){t[e]=0,n[e]=1,f.splice(e,0,1)}),c=c.reshape(f);for(var h=0;h<c.rank;h++)t[h]=Cr(i,t,r,c.shape,h),n[h]=Sr(o,n,r,c.shape,h),r[h]=r[h]||1;var d=xr(s);d.forEach(function(e){n[e]=t[e]+1,r[e]=1});var p=kr(t,n,r),v=p.filter(function(e,t){return-1===d.indexOf(t)});return r.every(function(e){return 1===e})?cc(c,t,p).reshape(v):Pe.runKernelFunc(function(e){return e.stridedSlice(c,t,n,r)},{$x:c}).reshape(v)}}),Bc=nn({topk_:function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!0);var r=qt(e,"x","topk");if(0===r.rank)throw new Error("topk() expects the input to be of rank 1 or higher");var i=r.shape[r.shape.length-1];if(t>i)throw new Error("'k' passed to topk() must be <= the last dimension ("+i+") but got "+t);var o=Pe.runKernelFunc(function(e){return e.topk(r,t,n)},{$x:r});return{values:o[0],indices:o[1]}}}),Vc=nn({scatterND_:function(e,t,n){var r=qt(e,"indices","scatterND","int32"),i=qt(t,"updates","scatterND");return br(i,r,n),Pe.runKernelFunc(function(e){return e.scatterND(r,i,n)},{indices:r,updates:i},null,"ScatterNd",{shape:n})}}),Wc=nn({fft_:function(e){x("complex64"===e.dtype,function(){return"The dtype for tf.spectral.fft() must be complex64 but got "+e.dtype+"."});var t=e.shape[e.shape.length-1],n=e.as2D(e.size/t,t);return Pe.runKernelFunc(function(e){return e.fft(n)},{input:e}).reshape(e.shape)}}),Uc=nn({ifft_:function(e){x("complex64"===e.dtype,function(){return"The dtype for tf.spectral.ifft() must be complex64 but got "+e.dtype+"."});var t=e.shape[e.shape.length-1],n=e.as2D(e.size/t,t);return Pe.runKernelFunc(function(e){return e.ifft(n)},{input:e}).reshape(e.shape)}}),zc=nn({rfft_:function(e,t){x("float32"===e.dtype,function(){return"The dtype for rfft() must be real value but got "+e.dtype});var n,r=e.shape[e.shape.length-1],i=e.size/r;if(null!=t&&t<r){var o=e.shape.map(function(e){return 0}),a=e.shape.map(function(e){return e});a[e.shape.length-1]=t,n=e.slice(o,a),r=t}else if(null!=t&&t>r){var u=e.shape.map(function(e){return e});u[e.shape.length-1]=t-r,n=e.concat(vn(u),e.shape.length-1),r=t}else n=e;var s=n.zerosLike(),c=rn(n,s).as2D(i,r),l=Wc(c),f=Math.floor(r/2)+1,h=on(l),d=an(l),p=h.split([f,r-f],h.shape.length-1),v=d.split([f,r-f],d.shape.length-1),y=n.shape.slice();return y[n.shape.length-1]=f,rn(p[0],v[0]).reshape(y)}}),qc=nn({irfft_:function(e){var t=e.shape[e.shape.length-1],n=e.size/t;if(t<=2){var r=e.as2D(n,t),i=Uc(r);return on(i)}var o=[n,2*(t-1)],a=on(e).as2D(n,t),u=an(e).as2D(n,t),s=a.slice([0,1],[n,t-2]).reverse(1),c=u.slice([0,1],[n,t-2]).reverse(1).mul(cn(-1)),l=a.concat(s,1),f=u.concat(c,1);return r=rn(l,f).as2D(o[0],o[1]),i=Uc(r),on(i)}}),Hc=Object.freeze({fft:Wc,ifft:Uc,rfft:zc,irfft:qc}),Gc=nn({sparseToDense_:function(e,t,n,r){void 0===r&&(r=0);var i=qt(e,"sparseIndices","sparseToDense","int32"),o=qt(t,"sparseValues","sparseToDense"),a=qt(r,"defaultValue","sparseToDense",o.dtype);return function(e,t,n,r){if("int32"!==e.dtype)throw new Error("tf.sparseToDense() expects the indices to be int32 type, but the dtype was "+e.dtype+".");if(e.rank>2)throw new Error("sparseIndices should be a scalar, vector, or matrix, but got shape "+e.shape+".");var i=e.rank>0?e.shape[0]:1,o=e.rank>1?e.shape[1]:1;if(n.length!==o)throw new Error("outputShape has incorrect number of elements:, "+n.length+", should be: "+o+".");if(0!==t.rank&&(1!==t.rank||t.size!==i))throw new Error("sparseValues has incorrect shape "+t.shape+", should be [] or ["+i+"]");if(t.dtype!==r.dtype)throw new Error("sparseValues.dtype must match defaultValues.dtype")}(i,o,n,a),Pe.runKernelFunc(function(e){return e.sparseToDense(i,o,n,a)},{$sparseIndices:i,$sparseValues:o,$defaultValue:a})}}),Kc=nn({gatherND_:function(e,t){var n=qt(t,"indices","gatherND","int32"),r=qt(e,"x","gatherND");return Pe.runKernelFunc(function(e){return e.gatherND(r,n)},{x:r,indices:n},null,"GatherNd")}}),Yc=nn({diag_:function(e){var t=qt(e,"x","diag").flatten(),n=e.shape.concat(e.shape);return Pe.runKernelFunc(function(e){return e.diag(t)},{$x:t}).reshape(n)}}),$c=nn({dropout_:function(e,t,n,r){var i=qt(e,"x","dropout");if(x("float32"===i.dtype,function(){return"x has to be a floating point tensor since it's going to be scaled, but got a "+i.dtype+" tensor instead."}),x(t>=0&&t<1,function(){return"rate must be a float in the range [0, 1), but got "+t+"."}),0===t)return e instanceof ye?i.clone():i;var o=function(e,t){if(null==t)return e.shape.slice();if(A(e.shape,t))return t;if(e.shape.length===t.length){for(var n=[],r=0;r<e.shape.length;r++)n.push(null==t[r]&&null!=e.shape[r]?e.shape[r]:t[r]);return n}return t}(i,n),a=1-t,u=rr(o,0,1,"float32",r).add(a).floor().div(a);return i.mul(u)}});function Zc(e,t,n){for(var r=1-e%2,i=new Float32Array(e),o=0;o<e;++o){var a=2*Math.PI*o/(e+r-1);i[o]=t-n*Math.cos(a)}return ln(i,"float32")}var Qc,Xc=nn({hannWindow_:function(e){return Zc(e,.5,.5)}}),Jc=nn({hammingWindow_:function(e){return Zc(e,.54,.46)}}),el=nn({frame_:function(e,t,n,r,i){void 0===r&&(r=!1),void 0===i&&(i=0);for(var o=0,a=[];o+t<=e.size;)a.push(cc(e,o,t)),o+=n;if(r)for(;o<e.size;){var u=o+t-e.size,s=wn([cc(e,o,t-u),yn([u],i)]);a.push(s),o+=n}return 0===a.length?fn([],[0,t]):wn(a).as2D(a.length,t)}}),tl=nn({stft_:function(e,t,n,r,i){void 0===i&&(i=Xc),null==r&&(r=Math.floor(Math.pow(2,Math.ceil(Math.log(t)/Math.log(2)))));for(var o=el(e,t,n),a=fs(o,i(t)),u=[],s=0;s<o.shape[0];s++)u.push(zc(a.slice([s,0],[1,t]),r));return wn(u)}}),nl=Object.freeze({hannWindow:Xc,hammingWindow:Jc,frame:el,stft:tl});!function(e){e[e.NONE=0]="NONE",e[e.MEAN=1]="MEAN",e[e.SUM=2]="SUM",e[e.SUM_BY_NONZERO_WEIGHTS=3]="SUM_BY_NONZERO_WEIGHTS"}(Qc||(Qc={}));var rl=nn({absoluteDifference_:function(e,t,n,r){void 0===r&&(r=Qc.SUM_BY_NONZERO_WEIGHTS);var i=qt(e,"labels","absoluteDifference"),o=qt(t,"predictions","absoluteDifference"),a=null;null!=n&&(a=qt(n,"weights","absoluteDifference")),k(i.shape,o.shape,"Error in absoluteDifference: ");var u=i.sub(o).abs();return il(u,a,r)}}),il=nn({computeWeightedLoss_:function(e,t,n){void 0===n&&(n=Qc.SUM_BY_NONZERO_WEIGHTS);var r=qt(e,"losses","computeWeightedLoss"),i=null;null!=t&&(i=qt(t,"weights","computeWeightedLoss"));var o=null==i?r:r.mul(i);if(n===Qc.NONE)return o;
vendor: 4,254 bytes, line 1
1if(n===Qc.SUM)return o.sum();if(n===Qc.MEAN){if(null==i)return o.mean();var a=r.size/i.size,u=o.sum().div(i.sum());return a>1?u.div(cn(a)):u}if(n===Qc.SUM_BY_NONZERO_WEIGHTS){if(null==i)return o.sum().div(cn(r.size));var s=i.mul(pn(r.shape)).notEqual(cn(0)).sum().toFloat();return o.sum().div(s)}throw Error("Unknown reduction: "+n)}}),ol=nn({cosineDistance_:function(e,t,n,r,i){void 0===i&&(i=Qc.SUM_BY_NONZERO_WEIGHTS);var o=qt(e,"labels","cosineDistance"),a=qt(t,"predictions","cosineDistance"),u=null;null!=r&&(u=qt(r,"weights","cosineDistance")),k(o.shape,a.shape,"Error in cosineDistance: ");var s=cn(1).sub(o.mul(a).sum(n,!0));return il(s,u,i)}}),al=nn({hingeLoss_:function(e,t,n,r){void 0===r&&(r=Qc.SUM_BY_NONZERO_WEIGHTS);var i=qt(e,"labels","hingeLoss"),o=qt(t,"predictions","hingeLoss"),a=null;null!=n&&(a=qt(n,"weights","hingeLoss")),k(i.shape,o.shape,"Error in hingeLoss: ");var u=cn(1);i=cn(2).mul(i).sub(u);var s=u.sub(i.mul(o)).relu();return il(s,a,r)}}),ul=nn({huberLoss_:function(e,t,n,r,i){void 0===r&&(r=1),void 0===i&&(i=Qc.SUM_BY_NONZERO_WEIGHTS);var o=qt(e,"labels","huberLoss"),a=qt(t,"predictions","huberLoss"),u=null;null!=n&&(u=qt(n,"weights","huberLoss")),k(o.shape,a.shape,"Error in huberLoss: ");var s=cn(r),c=a.sub(o).abs(),l=us(c,s),f=c.sub(l),h=cn(.5).mul(l.square()).add(s.mul(f));return il(h,u,i)}}),sl=nn({logLoss_:function(e,t,n,r,i){void 0===r&&(r=1e-7),void 0===i&&(i=Qc.SUM_BY_NONZERO_WEIGHTS);var o=qt(e,"labels","logLoss"),a=qt(t,"predictions","logLoss"),u=null;null!=n&&(u=qt(n,"weights","logLoss")),k(o.shape,a.shape,"Error in logLoss: ");var s=cn(1),c=cn(r),l=o.mul(a.add(c).log()).neg().sub(s.sub(o).mul(s.sub(a).add(c).log()));return il(l,u,i)}}),cl=nn({meanSquaredError_:function(e,t,n,r){void 0===r&&(r=Qc.SUM_BY_NONZERO_WEIGHTS);var i=qt(e,"labels","meanSquaredError"),o=qt(t,"predictions","meanSquaredError"),a=null;null!=n&&(a=qt(n,"weights","meanSquaredError")),k(i.shape,o.shape,"Error in meanSquaredError: ");var u=i.squaredDifference(o);return il(u,a,r)}}),ll=nn({sigmoidCrossEntropy_:function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=Qc.SUM_BY_NONZERO_WEIGHTS);var o=qt(e,"multiClassLabels","sigmoidCrossEntropy"),a=qt(t,"logits","sigmoidCrossEntropy"),u=null;if(null!=n&&(u=qt(n,"weights","sigmoidCrossEntropy")),k(o.shape,a.shape,"Error in sigmoidCrossEntropy: "),r>0){var s=cn(r),c=cn(1),l=cn(.5);o=o.mul(c.sub(s)).add(l.mul(s))}var f=function(e,t){var n=qt(e,"labels","sigmoidCrossEntropyWithLogits"),r=qt(t,"logits","sigmoidCrossEntropyWithLogits");k(n.shape,r.shape,"Error in sigmoidCrossEntropyWithLogits: ");var i=r.relu(),o=r.mul(n),a=r.abs().neg().exp().log1p();return i.sub(o).add(a)}(o,a);return il(f,u,i)}}),fl=nn({softmaxCrossEntropy_:function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=Qc.SUM_BY_NONZERO_WEIGHTS);var o=qt(e,"onehotLabels","softmaxCrossEntropy"),a=qt(t,"logits","softmaxCrossEntropy"),u=null;if(null!=n&&(u=qt(n,"weights","softmaxCrossEntropy")),k(o.shape,a.shape,"Error in softmaxCrossEntropy: "),r>0){var s=cn(r),c=cn(1),l=cn(o.shape[1]);o=o.mul(c.sub(s)).add(s.div(l))}var f=function(e,t,n){if(void 0===n&&(n=-1),-1===n&&(n=t.rank-1),n!==t.rank-1)throw Error("Softmax cross entropy along a non-last dimension is not yet supported. Labels / logits was rank "+t.rank+" and dim was "+n);return Or(function(e,t,r){var i=t.logSumExp([n],!0),o=t.toFloat().sub(i);return r([e,o]),{value:o.mul(e).neg().sum([n]),gradFunc:function(e,t){var r=t[0],i=t[1],o=$t(e.shape,[n]);return[e.reshape(o).mul(r.toFloat().sub(i.exp())),e.reshape(o).mul(i.exp().sub(r.toFloat()))]}}})(e,t)}(o,a);return il(f,u,i)}}),hl=Object.freeze({get Reduction(){return Qc},absoluteDifference:rl,computeWeightedLoss:il,cosineDistance:ol,hingeLoss:al,huberLoss:ul,logLoss:sl,meanSquaredError:cl,sigmoidCrossEntropy:ll,softmaxCrossEntropy:fl});function dl(e,t){return void 0===t&&(t=!1),Pe.tidy(function(){if(2!==e.shape.length)throw new Error("qr2d() requires a 2D Tensor, but got a "+e.shape.length+"D Tensor.");for(var n=e.shape[0],r=e.shape[1],i=Gn(n),o=e.clone(),a=fn([[1]],[1,1]),u=a.clone(),s=n>=r?r:n,c=function(e){var t,s=o,c=u,l=i;t=Pe.tidy(function(){var t=o.slice([e,e],[n-e,1]),s=t.norm(),c=o.slice([e,e],[1,1]),l=fn([[-1]]).where(c.greater(0),fn([[1]])),f=c.sub(l.mul(s)),h=t.div(f);
vendor: 21,839 bytes, line 1
1u=1===h.shape[0]?a.clone():a.concat(h.slice([1,0],[h.shape[0]-1,h.shape[1]]),0);var d=l.matMul(f).div(s).neg(),p=o.slice([e,0],[n-e,r]),v=d.mul(u);if(0===e)o=p.sub(v.matMul(u.transpose().matMul(p)));else{var y=p.sub(v.matMul(u.transpose().matMul(p)));o=o.slice([0,0],[e,r]).concat(y,0)}var m=i.slice([0,e],[n,i.shape[1]-e]);if(0===e)i=m.sub(m.matMul(u).matMul(v.transpose()));else{var g=m.sub(m.matMul(u).matMul(v.transpose()));i=i.slice([0,0],[n,e]).concat(g,1)}return[u,o,i]}),u=t[0],o=t[1],i=t[2],Vt([s,c,l])},l=0;l<s;++l)c(l);return!t&&n>r&&(i=i.slice([0,0],[n,r]),o=o.slice([0,0],[r,r])),[i,o]})}var pl=nn({bandPart_:function(e,t,n){if(t%1!=0)throw new Error("bandPart(): numLower must be an integer, got "+t+".");if(n%1!=0)throw new Error("bandPart(): numUpper must be an integer, got "+n+".");var r=qt(e,"a","bandPart");if(r.rank<2)throw new Error("bandPart(): Rank must be at least 2, got "+r.rank+".");var i=r.shape,o=r.shape.slice(-2),a=o[0],u=o[1];if(!(t<=a))throw new Error("bandPart(): numLower ("+t+") must not be greater than the number of rows ("+a+").");if(!(n<=u))throw new Error("bandPart(): numUpper ("+n+") must not be greater than the number of columns ("+u+").");t<0&&(t=a),n<0&&(n=u);var s=mn(0,a,1,"int32").reshape([-1,1]),c=mn(0,u,1,"int32"),l=ys(s,c),f=Hu(l.lessEqual(cn(+t,"int32")),l.greaterEqual(cn(-n,"int32"))),h=vn([a,u],r.dtype);return ur(lr(r.reshape([-1,a,u])).map(function(e){return $u(f,e,h)})).reshape(i)}}),vl=nn({gramSchmidt_:function(e){var t;if(Array.isArray(e)){t=!1,x(null!=e&&e.length>0,function(){return"Gram-Schmidt process: input must not be null, undefined, or empty"});for(var n=e[0].shape[0],r=function(t){x(e[t].shape[0]===n,function(){return"Gram-Schmidt: Non-unique lengths found in the input vectors: ("+e[t].shape[0]+" vs. "+n+")"})},i=1;i<e.length;++i)r(i)}else t=!0,e=Sn(e,e.shape[0],0).map(function(e){return ar(e,[0])});x(e.length<=e[0].shape[0],function(){return"Gram-Schmidt: Number of vectors ("+e.length+") exceeds number of dimensions ("+e[0].shape[0]+")."});var o=[],a=e,u=function(e){o.push(Pe.tidy(function(){var t=a[e];if(e>0)for(var n=0;n<e;++n){var r=Cc(o[n].mulStrict(t)).mul(o[n]);t=t.sub(r)}return t.div(Rc(t,"euclidean"))}))};for(i=0;i<e.length;++i)u(i);return t?ur(o,0):o}}),yl=nn({qr_:function(e,t){if(void 0===t&&(t=!1),e.rank<2)throw new Error("qr() requires input tensor to have a rank >= 2, but got rank "+e.rank);if(2===e.rank)return dl(e,t);var n=e.shape.slice(0,e.shape.length-2).reduce(function(e,t){return e*t}),r=lr(e.reshape([n,e.shape[e.shape.length-2],e.shape[e.shape.length-1]]),0),i=[],o=[];return r.forEach(function(e){var n=dl(e,t),r=n[1];i.push(n[0]),o.push(r)}),[ur(i,0).reshape(e.shape),ur(o,0).reshape(e.shape)]}}),ml=Object.freeze({bandPart:pl,gramSchmidt:vl,qr:yl});function gl(e,t,n,r,i,o){null==r&&(r=.5),null==i&&(i=Number.NEGATIVE_INFINITY),null==o&&(o=0);var a=e.shape[0];return n=Math.min(n,a),x(0<=r&&r<=1,function(){return"iouThreshold must be in [0, 1], but was '"+r+"'"}),x(2===e.rank,function(){return"boxes must be a 2D tensor, but was of rank '"+e.rank+"'"}),x(4===e.shape[1],function(){return"boxes must have 4 columns, but 2nd dimension was "+e.shape[1]}),x(1===t.rank,function(){return"scores must be a 1D tensor"}),x(t.shape[0]===a,function(){return"scores has incompatible shape with boxes. Expected "+a+", but was "+t.shape[0]}),x(0<=o&&o<=1,function(){return"softNmsSigma must be in [0, 1], but was '"+o+"'"}),{maxOutputSize:n,iouThreshold:r,scoreThreshold:i,softNmsSigma:o}}var bl=nn({resizeBilinear_:function(e,t,n){void 0===n&&(n=!1);var r=qt(e,"images","resizeBilinear");x(3===r.rank||4===r.rank,function(){return"Error in resizeBilinear: x must be rank 3 or 4, but got rank "+r.rank+"."}),x(2===t.length,function(){return"Error in resizeBilinear: new shape must 2D, but got shape "+t+"."});var i=r,o=!1;3===r.rank&&(o=!0,i=r.as4D(1,r.shape[0],r.shape[1],r.shape[2]));var a=t[0],u=t[1],s=Pe.runKernelFunc(function(e,t){return t([i]),e.resizeBilinear(i,a,u,n)},{x:i},function(e,t){return{x:function(){return Pe.runKernelFunc(function(r){return r.resizeBilinearBackprop(e,t[0],n)},{})}}},"ResizeBilinear",{alignCorners:n,newHeight:a,newWidth:u});return o?s.as3D(s.shape[1],s.shape[2],s.shape[3]):s}}),wl=nn({resizeNearestNeighbor_:function(e,t,n){void 0===n&&(n=!1);var r=qt(e,"images","resizeNearestNeighbor");x(3===r.rank||4===r.rank,function(){return"Error in resizeNearestNeighbor: x must be rank 3 or 4, but got rank "+r.rank+"."}),x(2===t.length,function(){return"Error in resizeNearestNeighbor: new shape must 2D, but got shape "+t+"."}),x("float32"===r.dtype||"int32"===r.dtype,function(){return"`images` must have `int32` or `float32` as dtype"});var i=r,o=!1;3===r.rank&&(o=!0,i=r.as4D(1,r.shape[0],r.shape[1],r.shape[2]));var a=t[0],u=t[1],s=Pe.runKernelFunc(function(e,t){return t([i]),e.resizeNearestNeighbor(i,a,u,n)},{batchImages:i},function(e,t){return{batchImages:function(){return Pe.runKernelFunc(function(r){return r.resizeNearestNeighborBackprop(e,t[0],n)},{})}}});return o?s.as3D(s.shape[1],s.shape[2],s.shape[3]):s}}),_l=nn({nonMaxSuppression_:function(e,t,n,r,i){void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY);var o=qt(e,"boxes","nonMaxSuppression"),a=qt(t,"scores","nonMaxSuppression"),u=gl(o,a,n,r,i);return Pe.runKernelFunc(function(e){return e.nonMaxSuppression(o,a,n,r,i)},{boxes:o,scores:a},null,"NonMaxSuppressionV3",{maxOutputSize:n=u.maxOutputSize,iouThreshold:r=u.iouThreshold,scoreThreshold:i=u.scoreThreshold})}}),xl=nn({nonMaxSuppressionWithScore_:function(e,t,n,r,i,o){void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),void 0===o&&(o=0);var a=qt(e,"boxes","nonMaxSuppression"),u=qt(t,"scores","nonMaxSuppression"),s=gl(a,u,n,r,i,o),c={maxOutputSize:n=s.maxOutputSize,iouThreshold:r=s.iouThreshold,scoreThreshold:i=s.scoreThreshold,softNmsSigma:o=s.softNmsSigma},l=Pe.runKernel("NonMaxSuppressionV5",{boxes:a,scores:u},c);return{selectedIndices:l[0],selectedScores:l[1]}}}),kl=nn({cropAndResize_:function(e,t,n,r,i,o){var a=qt(e,"image","cropAndResize"),u=qt(t,"boxes","cropAndResize","float32"),s=qt(n,"boxInd","cropAndResize","int32");i=i||"bilinear",o=o||0;var c=u.shape[0];return x(4===a.rank,function(){return"Error in cropAndResize: image must be rank 4,but got rank "+a.rank+"."}),x(2===u.rank&&4===u.shape[1],function(){return"Error in cropAndResize: boxes must be have size ["+c+",4] but had shape "+u.shape+"."}),x(1===s.rank&&s.shape[0]===c,function(){return"Error in cropAndResize: boxInd must be have size ["+c+"] but had shape "+u.shape+"."}),x(2===r.length,function(){return"Error in cropAndResize: cropSize must be of length 2, but got length "+r.length+"."}),x(r[0]>=1&&r[1]>=1,function(){return"cropSize must be atleast [1,1], but was "+r}),x("bilinear"===i||"nearest"===i,function(){return"method must be bilinear or nearest, but was "+i}),Pe.runKernelFunc(function(e,t){return e.cropAndResize(a,u,s,r,i,o)},{images:a,boxes:u,boxInd:s},null,"CropAndResize",{method:i,extrapolationValue:o,cropSize:r})}}),Cl=Object.freeze({resizeBilinear:bl,resizeNearestNeighbor:wl,nonMaxSuppression:_l,nonMaxSuppressionAsync:function(e,t,n,r,i){return void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),o(this,void 0,void 0,function(){var o,u,s,c,l;return a(this,function(a){switch(a.label){case 0:return o=qt(e,"boxes","nonMaxSuppressionAsync"),u=qt(t,"scores","nonMaxSuppressionAsync"),s=gl(o,u,n,r,i),n=s.maxOutputSize,r=s.iouThreshold,i=s.scoreThreshold,[4,Promise.all([o.data(),u.data()])];case 1:return c=a.sent(),l=ii(c[0],c[1],n,r,i),o!==e&&o.dispose(),u!==t&&u.dispose(),[2,l]}})})},nonMaxSuppressionWithScore:xl,nonMaxSuppressionWithScoreAsync:function(e,t,n,r,i,u){return void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),void 0===u&&(u=0),o(this,void 0,void 0,function(){var o,s,c,l,f;return a(this,function(a){switch(a.label){case 0:return o=qt(e,"boxes","nonMaxSuppressionAsync"),s=qt(t,"scores","nonMaxSuppressionAsync"),c=gl(o,s,n,r,i,u),n=c.maxOutputSize,r=c.iouThreshold,i=c.scoreThreshold,u=c.softNmsSigma,[4,Promise.all([o.data(),s.data()])];case 1:return l=a.sent(),f=oi(l[0],l[1],n,r,i,u),o!==e&&o.dispose(),s!==t&&s.dispose(),[2,f]}})})},cropAndResize:kl}),Sl=function(e,t){return!(e>0)||"linear"===t},El=function(e,t,n){if(null==n||"linear"===n)return e;if("relu"===n)return e.mul(t.step());throw new Error("Gradient for activation "+n+" has not been implemented yet.")},Al=function(e,t){var n=t,r=Fr(e.shape,t.shape);return r.length>0&&(n=n.sum(r)),n.reshape(e.shape)},Ol=function(e,t,n){if("linear"===t)return e;if("relu"===t)return Dc(e);if("elu"===t)return Ec(e);if("relu6"===t)return Ic(e);if("prelu"===t)return Oc(e,n);throw new Error("Unknown fused activation "+t+".")},Dl=nn({fusedMatMul_:function(e){var t,n=e.a,r=e.b,i=e.transposeA,o=void 0!==i&&i,a=e.transposeB,u=void 0!==a&&a,s=e.bias,c=e.activation,l=void 0===c?"linear":c,f=e.preluActivationWeights;if(!1===Sl(Pe.state.gradientDepth,l)){var h=Ys(n,r,o,u);return null!=s&&(h=Qu(h,s)),Ol(h,l,f)}var d=qt(n,"a","fused matMul"),p=qt(r,"b","fused matMul");t=Ae(d,p),d=t[0],p=t[1];var v=o?d.shape[d.rank-2]:d.shape[d.rank-1],y=u?p.shape[p.rank-1]:p.shape[p.rank-2],m=o?d.shape[d.rank-1]:d.shape[d.rank-2],g=u?p.shape[p.rank-2]:p.shape[p.rank-1],b=d.shape.slice(0,-2),w=p.shape.slice(0,-2),_=E(b),k=E(w);x(d.rank>=2&&p.rank>=2&&d.rank===p.rank,function(){return"Error in fused matMul: inputs must have the same rank of at least 2, got ranks "+d.rank+" and "+p.rank+"."}),x(A(b,w),function(){return"Error in fused matMul: outer dimensions ("+b+") and ("+w+") of Tensors with shapes "+d.shape+" and "+p.shape+" must match."}),x(v===y,function(){return"Error in fused matMul: inner shapes ("+v+") and ("+y+") of Tensors with shapes "+d.shape+" and "+p.shape+" and transposeA="+o+" and transposeB="+u+" must match."});var C,S,O=d.shape.slice(0,-2).concat([m,g]),D=o?d.as3D(_,v,m):d.as3D(_,m,v),I=u?p.as3D(k,g,y):p.as3D(k,y,g);null!=s&&Nr(O,(C=Ae(C=qt(s,"bias","fused matMul"),d)[0]).shape),null!=f&&(S=qt(f,"prelu weights","fused matMul"));var T={a:D,b:I};return null!=s&&(T.bias=C),null!=f&&(T.preluActivationWeights=S),Pe.runKernelFunc(function(e,t){var n=e.fusedBatchMatMul({a:D,b:I,transposeA:o,transposeB:u,bias:C,activation:l,preluActivationWeights:S});return t([D,I,n]),n},T,function(e,t){var n=t[0],r=t[1],i=El(e,t[2],l),a={};return null!=s&&(a={bias:function(){return Al(C,i)}}),Object.assign(o||u?!o&&u?{a:function(){return i.matMul(r,!1,!1)},b:function(){return i.matMul(n,!0,!1)}}:o&&!u?{a:function(){return r.matMul(i,!1,!0)},b:function(){return n.matMul(i,!1,!1)}}:{a:function(){return r.matMul(i,!0,!0)},b:function(){return i.matMul(n,!0,!0)}}:{a:function(){return i.matMul(r,!1,!0)},b:function(){return n.matMul(i,!0,!1)}},a)},"_FusedMatMul",{transposeA:o,transposeB:u,activation:l},[D,I],[!0]).reshape(O)}}),Il=nn({fusedConv2d_:function(e){var t=e.x,n=e.filter,r=e.strides,i=e.pad,o=e.dataFormat,a=void 0===o?"NHWC":o,u=e.dilations,s=void 0===u?[1,1]:u,c=e.dimRoundingMode,l=e.bias,f=e.activation,h=void 0===f?"linear":f,d=e.preluActivationWeights;if(!1===Sl(Pe.state.gradientDepth,h=h||"linear")){var p=Ls(t,n,r,i,a,s,c);return null!=l&&(p=Qu(p,l)),Ol(p,h,d)}var v=qt(t,"x","conv2d"),y=qt(n,"filter","conv2d"),m=v,g=!1;3===v.rank&&(g=!0,m=v.as4D(1,v.shape[0],v.shape[1],v.shape[2])),x(4===m.rank,function(){return"Error in fused conv2d: input must be rank 4, but got rank "+m.rank+"."}),x(4===y.rank,function(){return"Error in fused conv2d: filter must be rank 4, but got rank "+y.rank+"."}),null!=c&&x(O(i),function(){return"Error in fused conv2d: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+i+"."}),x(m.shape[3]===y.shape[2],function(){return"Error in conv2d: depth of input ("+m.shape[3]+") must match input depth for filter "+y.shape[2]+"."}),x(Kr(r,s),function(){return"Error in conv2D: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+s+"'"}),x("NHWC"===a,function(){return"Error in conv2d: got dataFormat of "+a+" but only NHWC is currently supported."});var b,w,_=Br(m.shape,y.shape,r,s,i,c);null!=l&&(b=Ae(b=qt(l,"bias","fused conv2d"),v)[0],Nr(_.outShape,b.shape)),null!=d&&(w=qt(d,"prelu weights","fused conv2d"));var k={x:m,filter:y};null!=l&&(k.bias=b),null!=d&&(k.preluActivationWeights=w);var C=Pe.runKernelFunc(function(e,t){var n=e.fusedConv2d({input:m,filter:y,convInfo:_,bias:b,activation:h,preluActivationWeights:w});return t([y,m,n]),n},k,function(e,t){var n=t[0],o=t[1],a=El(e,t[2],h);x(Gr(s),function(){return"Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+s+"'"});var u={};return null!=l&&(u={bias:function(){return Al(b,a)}}),Object.assign({x:function(){return Ws(o.shape,a,n,r,i)},filter:function(){return Vs(o,a,n.shape,r,i)}},u)},"FusedConv2D",{convInfo:_,activation:h},[y,m],[!0]);return g?C.as3D(C.shape[1],C.shape[2],C.shape[3]):C}}),Tl=nn({fusedDepthwiseConv2d_:function(e){var t=e.x,n=e.filter,r=e.strides,i=e.pad,o=e.dataFormat,a=void 0===o?"NHWC":o,u=e.dilations,s=void 0===u?[1,1]:u,c=e.dimRoundingMode,l=e.bias,f=e.activation,h=void 0===f?"linear":f,d=e.preluActivationWeights;if(!1===Sl(Pe.state.gradientDepth,h)){var p=Us(t,n,r,i,a,s,c);return null!=l&&(p=Qu(p,l)),Ol(p,h,d)}var v=qt(t,"x","depthwiseConv2d"),y=qt(n,"filter","depthwiseConv2d"),m=v,g=!1;3===v.rank&&(g=!0,m=v.as4D(1,v.shape[0],v.shape[1],v.shape[2])),x(4===m.rank,function(){return"Error in fused depthwiseConv2d: input must be rank 4, but got rank "+m.rank+"."}),x(4===y.rank,function(){return"Error in fused depthwiseConv2d: filter must be rank 4, but got rank "+y.rank+"."}),x(m.shape[3]===y.shape[2],function(){return"Error in fused depthwiseConv2d: number of input channels ("+m.shape[3]+") must match the inChannels dimension in filter "+y.shape[2]+"."}),null==s&&(s=[1,1]),x(Kr(r,s),function(){return"Error in fused depthwiseConv2d: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+s+"'"}),null!=c&&x(O(i),function(){return"Error in fused depthwiseConv2d: pad must be an integer when using dimRoundingMode "+c+" but got pad "+i+"."});var b,w,_=Br(m.shape,y.shape,r,s,i,c,!0);null!=l&&(b=Ae(b=qt(l,"bias","fused conv2d"),v)[0],Nr(_.outShape,b.shape)),null!=d&&(w=qt(d,"prelu weights","fused depthwiseConv2d"));var k={x:m,filter:y};null!=l&&(k.bias=b),null!=d&&(k.preluActivationWeights=w);var C=Pe.runKernelFunc(function(e,t){var n=e.fusedDepthwiseConv2D({input:m,filter:y,convInfo:_,bias:b,activation:h,preluActivationWeights:w});return t([y,m,n]),n},k,function(e,t){x(Gr(s),function(){return"Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '"+s+"'"});var n=t[0],r=t[1],i=El(e,t[2],h),o={};return null!=l&&(o={bias:function(){return Al(b,i)}}),Object.assign({x:function(){return zs(r.shape,i,n,_)},filter:function(){return qs(r,i,n.shape,_)}},o)},"FusedDepthwiseConv2D",{convInfo:_,activation:h},[y,m],[!0]);return g?C.as3D(C.shape[1],C.shape[2],C.shape[3]):C}}),Ml=Object.freeze({matMul:Dl,conv2d:Il,depthwiseConv2d:Tl}),Pl=Object.freeze({image:Cl,linalg:ml,losses:hl,spectral:Hc,fused:Ml,signal:nl,square:Ya,squaredDifference:Za,conv1d:js,conv2d:Ls,conv3d:Bs,depthwiseConv2d:Us,separableConv2d:Hs,conv2dTranspose:Gs,conv3dTranspose:Ks,op:nn,batchNormalization2d:ju,batchNormalization3d:Lu,batchNormalization4d:Bu,batchNormalization:Vu,batchNorm:Wu,batchNorm2d:Uu,batchNorm3d:zu,batchNorm4d:qu,booleanMaskAsync:function(e,t,n){return o(this,void 0,void 0,function(){var r,i,o,u,s,c,l,f,h,d,p,v,y;return a(this,function(a){switch(a.label){case 0:for(r=qt(e,"tensor","boolMask"),i=qt(t,"mask","boolMask","bool"),o=null==n?0:n,s=r.shape,x((u=i.rank)>0,function(){return"mask cannot be scalar"}),k(s.slice(o,o+u),i.shape,"mask's shape must match the first K dimensions of tensor's shape,"),c=1,l=o;l<o+u;l++)c*=s[l];return f=s.slice(0,o).concat([c],s.slice(o+u)),h=r.reshape(f),d=i.reshape([-1]),[4,Zu(d)];case 1:return p=a.sent(),v=p.squeeze([1]),y=Ms(h,v,o),e!==r&&r.dispose(),t!==i&&i.dispose(),v.dispose(),h.dispose(),d.dispose(),p.dispose(),[2,y]}})})},complex:rn,real:on,imag:an,concat:wn,concat1d:_n,concat2d:xn,concat3d:kn,concat4d:Cn,split:Sn,matMul:Ys,dot:$s,outerProduct:Zs,reverse:Qs,reverse1d:Xs,reverse2d:Js,reverse3d:ec,reverse4d:tc,maxPool:ic,avgPool:oc,pool:ac,maxPool3d:uc,avgPool3d:sc,slice:cc,slice1d:lc,slice2d:fc,slice3d:hc,slice4d:dc,abs:Qa,acos:Xa,acosh:Ja,asin:eu,asinh:tu,atan:nu,atanh:ru,ceil:iu,clipByValue:ou,cos:au,cosh:uu,erf:su,exp:cu,expm1:lu,floor:fu,log:hu,log1p:du,logSigmoid:pu,neg:vu,reciprocal:yu,round:mu,rsqrt:gu,sigmoid:bu,sign:wu,isNaN:_u,isInf:xu,isFinite:ku,sin:Cu,sinh:Su,softplus:Eu,sqrt:Au,step:Ou,tan:Du,tanh:Iu,all:vc,any:yc,argMax:mc,argMin:gc,logSumExp:bc,max:wc,mean:_c,min:xc,moments:kc,sum:Cc,prod:Sc,equal:gs,equalStrict:bs,greater:ws,greaterEqual:_s,greaterEqualStrict:xs,greaterStrict:ks,less:Cs,lessEqual:Ss,lessEqualStrict:Es,lessStrict:As,notEqual:Os,notEqualStrict:Ds,add:Qu,addN:Xu,addStrict:Ju,atan2:es,div:ts,divNoNan:ns,divStrict:rs,floorDiv:is,maximum:os,maximumStrict:as,minimum:us,minimumStrict:ss,mod:cs,modStrict:ls,mul:fs,mulStrict:hs,pow:ds,powStrict:ps,squaredDifferenceStrict:vs,sub:ys,subStrict:ms,elu:Ec,leakyRelu:Ac,prelu:Oc,relu:Dc,relu6:Ic,selu:Tc,logicalAnd:Hu,logicalNot:Gu,logicalOr:Ku,logicalXor:Yu,where:$u,whereAsync:Zu,buffer:Ln,print:function(e,t){void 0===t&&(t=!1),console.log(e.toString(t))},batchToSpaceND:Bn,broadcastTo:Vn,cast:Wn,clone:Un,cumsum:zn,depthToSpace:qn,expandDims:Hn,eye:Gn,multinomial:Kn,oneHot:Yn,pad:$n,pad1d:Zn,pad2d:Qn,pad3d:Xn,pad4d:Jn,rand:er,randomNormal:tr,randomGamma:nr,randomUniform:rr,reshape:ir,spaceToBatchND:or,squeeze:ar,stack:ur,tile:sr,truncatedNormal:cr,unstack:lr,setdiff1dAsync:function(e,t){return o(this,void 0,void 0,function(){var n,r,i,o,u,s,c,l,f,h;return a(this,function(a){switch(a.label){case 0:return n=qt(e,"x","setdiff1d"),r=qt(t,"y","setdiff1d"),x(n.dtype===r.dtype,function(){return"x and y should have the same dtype, but got x ("+n.dtype+") and y ("+r.dtype+")."}),x(1===n.rank,function(){return"x should be 1D tensor, but got x ("+n.shape+")."}),x(1===r.rank,function(){return"y should be 1D tensor, but got y ("+r.shape+")."}),[4,n.data()];case 1:return i=a.sent(),[4,r.data()];case 2:for(o=a.sent(),u=new Set(o),s=0,f=0;f<i.length;f++)u.has(i[f])||s++;for(c=new he([s],n.dtype),l=new he([s],"int32"),f=0,h=0;f<i.length;f++)u.has(i[f])||(c.values[h]=i[f],l.values[h]=f,h++);return[2,[c.toTensor(),l.toTensor()]]}})})},fill:yn,linspace:function(e,t,n){if(n<=0)throw new Error("The number of values should be positive.");return Pe.runKernelFunc(function(r){return r.linspace(e,t,n)},{})},ones:pn,range:mn,scalar:cn,tensor:un,tensor1d:ln,tensor2d:fn,tensor3d:hn,tensor4d:dn,tensor5d:function(e,t,n){if(C(e),null!=t&&5!==t.length)throw new Error("tensor5d() requires shape to have five numbers");var r=Ut(e,n);if(5!==r.length&&1!==r.length)throw new Error("tensor5d() requires values to be number[][][][][] or flat/TypedArray");if(1===r.length&&null==t)throw new Error("tensor5d() requires shape to be provided when `values` are a flat array");return sn(e,t,r,n)},tensor6d:function(e,t,n){if(C(e),null!=t&&6!==t.length)throw new Error("tensor6d() requires shape to have six numbers");var r=Ut(e,n);if(6!==r.length&&1!==r.length)throw new Error("tensor6d() requires values to be number[][][][][][] or flat/TypedArray");if(1===r.length&&null==t)throw new Error("tensor6d() requires shape to be provided when `values` are a flat array");return sn(e,t=t||r,r,n)},variable:function(e,t,n,r){return void 0===t&&(t=!0),Pe.makeVariable(e,t,n,r)},zeros:vn,onesLike:gn,zerosLike:bn,transpose:Mc,softmax:Dr,logSoftmax:Ir,localResponseNormalization:Pc,norm:Rc,gather:Ms,unsortedSegmentSum:Ps,basicLSTMCell:Fc,multiRNNCell:Nc,movingAverage:jc,stridedSlice:Lc,topk:Bc,scatterND:Vc,fft:Wc,ifft:Uc,rfft:zc,irfft:qc,sparseToDense:Gc,gatherND:Kc,diag:Yc,dropout:$c,hannWindow:Xc,hammingWindow:Jc,frame:el,stft:tl,inTopKAsync:function(e,t,n){return void 0===n&&(n=1),o(this,void 0,void 0,function(){var r,i,o,u,s,c,l,f,h,d,p,v,y,m;return a(this,function(a){switch(a.label){case 0:return r=qt(e,"predictions","inTopK"),i=qt(t,"targets","inTopK"),x(r.rank>1,function(){return"inTopK() expects the predictions to be of rank 2 or higher, but got "+r.rank}),x(r.rank-1===i.rank,function(){return"predictions rank should be 1 larger than targets rank, but got predictions rank "+r.rank+" and targets rank "+i.rank}),k(r.shape.slice(0,r.shape.length-1),i.shape,"predictions's shape should be align with the targets' shape, except the last dimension."),o=r.shape[r.shape.length-1],x(n>0&&n<=o,function(){return"'k' passed to inTopK() must be > 0 && <= the predictions last dimension ("+o+"), but got "+n}),[4,r.data()];case 1:return u=a.sent(),[4,i.data()];case 2:for(s=a.sent(),f=(c=[u.length/o,o])[1],h=N("bool",l=c[0]),d=0;d<l;d++){for(v=u.subarray(p=d*f,p+f),y=[],m=0;m<v.length;m++)y.push({value:v[m],index:m});for(y.sort(function(e,t){return t.value-e.value}),h[d]=0,m=0;m<n;m++)if(y[m].index===s[d]){h[d]=1;break}}return e!==r&&r.dispose(),t!==i&&i.dispose(),[2,un(h,i.shape,"bool")]}})})}});function Rl(e,t){Array.isArray(e)||(e=[e]),e.forEach(function(e){null!=e&&x("complex64"!==e.dtype,function(){return t+" does not support complex64 tensors."})})}function Fl(e,t,n,r){if("linear"===n)return e.linear(t);if("relu"===n)return e.relu(t);if("elu"===n)return e.elu(t);if("relu6"===n)return e.relu6(t);if("prelu"===n)return e.prelu(t,r);throw new Error("Activation "+n+" has not been implemented for the CPU backend.")}var Nl=function(e){function t(){var t=e.call(this)||this;return t.blockSize=48,t.firstUse=!0,t.data=new Tr(t,Pe),t}return i(t,e),t.prototype.write=function(e,t,n){this.firstUse&&(this.firstUse=!1,c().get("IS_NODE")&&Wt("\n============================\nHi there \ud83d\udc4b. Lo
1oks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.\n============================"));var r={};return this.data.set(r,{values:e,dtype:n}),r},t.prototype.move=function(e,t,n,r){this.data.set(e,{values:t,dtype:r})},t.prototype.numDataIds=function(){return this.data.numDataIds()},t.prototype.read=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){return[2,this.readSync(e)]})})},t.prototype.readSync=function(e){var t=this.data.get(e),n=t.complexTensors;return"complex64"===t.dtype?Xr(this.readSync(n.real.dataId),this.readSync(n.imag.dataId)):this.data.get(e).values},t.prototype.bufferSync=function(e){var t=this.readSync(e.dataId),n=t;if("string"===e.dtype)try{n=t.map(function(e){return ie(e)})}catch(r){throw new Error("Failed to decode encoded string bytes into utf-8")}return Ln(e.shape,e.dtype,n)},t.prototype.makeOutput=function(e,t,n){var r=this.write(e,t,n);return Pe.makeTensorFromDataId(r,t,n,this)},t.prototype.disposeData=function(e){if(this.data.has(e)){var t=this.data.get(e).complexTensors;null!=t&&(t.real.dispose(),t.imag.dispose()),this.data.delete(e)}},t.prototype.time=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){return t=te(),e(),[2,{kernelMs:te()-t}]})})},t.prototype.memory=function(){return{unreliable:!0,reasons:["The reported memory is an upper bound. Due to automatic garbage collection, the true allocated memory may be less."]}},t.prototype.complex=function(e,t){var n=this.makeOutput(null,e.shape,"complex64");return this.data.get(n.dataId).complexTensors={real:Pe.keep(e.clone()),imag:Pe.keep(t.clone())},n},t.prototype.real=function(e){return this.data.get(e.dataId).complexTensors.real.clone()},t.prototype.imag=function(e){return this.data.get(e.dataId).complexTensors.imag.clone()},t.prototype.slice=function(e,t,n){if(Rl(e,"slice"),Er(e.shape,t,n)){var r=Ar(t,e.strides),i=E(n);return un(this.readSync(e.dataId).subarray(r,r+i),n,e.dtype)}for(var o=Ln(n,e.dtype),a=this.bufferSync(e),u=0;u<o.size;++u){var s=o.indexToLoc(u).map(function(e,n){return e+t[n]});o.values[u]=a.get.apply(a,s)}return o.toTensor()},t.prototype.stridedSlice=function(e,t,n,r){Rl(e,"stridedSlice");var i=kr(t,n,r);if(i.some(function(e){return 0===e}))return un([],i);for(var o=Ln(i,e.dtype),a=this.bufferSync(e),u=0;u<o.size;u++){for(var s=o.indexToLoc(u),c=new Array(s.length),l=0;l<c.length;l++)c[l]=s[l]*r[l]+t[l];o.set.apply(o,[a.get.apply(a,c)].concat(s))}return o.toTensor()},t.prototype.diag=function(e){for(var t=this.readSync(e.dataId),n=Ln([e.size,e.size],e.dtype),r=n.values,i=0;i<t.length;i++)r[i*e.size+i]=t[i];return n.toTensor()},t.prototype.unstack=function(e,t){for(var n=e.shape[t],r=new Array(e.rank-1),i=0,o=0;o<e.rank;o++)o!==t&&(r[i++]=e.shape[o]);var a=new Array(e.rank).fill(0),u=e.shape.slice();u[t]=1;var s=new Array(n);for(o=0;o<s.length;o++)a[t]=o,s[o]=this.slice(e,a,u).reshape(r);return s},t.prototype.reverse=function(e,t){Rl(e,"reverse");for(var n=Ln(e.shape,e.dtype),r=this.bufferSync(e),i=function(i){var o=n.indexToLoc(i),a=o.slice();t.forEach(function(t){return a[t]=e.shape[t]-1-a[t]}),n.set.apply(n,[r.get.apply(r,a)].concat(o))},o=0;o<n.size;o++)i(o);return n.toTensor()},t.prototype.concat=function(e,t){var n=this;if("complex64"===e[0].dtype){var r=e.map(function(e){return on(e)}),i=e.map(function(e){return an(e)});return rn(this.concat(r,t),this.concat(i,t))}var o=e.map(function(e){var n=E(e.shape.slice(t));return e.as2D(-1,n)}),a=tn(o.map(function(e){return e.shape}),1),u=Ln(a,e[0].dtype).values;if(1===o[0].shape[0]){var s=0;o.forEach(function(e){u.set(n.readSync(e.dataId),s),s+=e.size})}else{var c=0;o.forEach(function(e){for(var t=n.readSync(e.dataId),r=0,i=0;i<e.shape[0];++i)for(var o=i*a[1]+c,s=0;s<e.shape[1];++s)u[o+s]=t[r++];c+=e.shape[1]})}var l=tn(e.map(function(e){return e.shape}),t);return un(u,l,e[0].dtype)},t.prototype.neg=function(e){return Rl(e,"neg"),this.multiply(cn(-1),e)},t.prototype.add=function(e,t){return"complex64"===e.dtype||"complex64"===t.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),t.cast("complex64"),function(e,t,n,r){return{real:e+n,imag:t+r}}):this.broadcastedBinaryOp(e,t,Se(e.dtype,t.dtype),function(e,t){return e+t})},t.prototype.addN=function(e){var t=this;Rl(e,"addN");for(var n=e.map(function(e){return t.readSync(e.dataId)}),r=Ln(e[0].shape,e[0].dtype),i=r.values,o=0;o<e.length;o++)for(var a=n[o],u=0;u<i.length;u++)i[u]+=a[u];return r.toTensor()},t.prototype.softmax=function(e,t){var n=R([t],e.shape),r=this.max(e,n),i=$t(r.shape,n),o=this.subtract(e,r.reshape(i)),a=this.exp(o),u=this.sum(a,n).reshape(i);return this.realDivide(a,u)},t.prototype.subtract=function(e,t){return"complex64"===e.dtype||"complex64"===t.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),t.cast("complex64"),function(e,t,n,r){return{real:e-n,imag:t-r}}
vendor: 31,968 bytes, line 1
1):this.broadcastedBinaryOp(e,t,Se(e.dtype,t.dtype),function(e,t){return e-t})},t.prototype.pow=function(e,t){return Rl([e,t],"pow"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){return Math.pow(e,t)})},t.prototype.batchMatMul=function(e,t,n,r){Rl([e,t],"matMul");for(var i=n?e.shape[1]:e.shape[2],o=n?e.shape[2]:e.shape[1],a=r?t.shape[1]:t.shape[2],u=e.shape[0],s=this.readSync(e.dataId),c=this.readSync(t.dataId),l=n?[e.strides[0],1,e.strides[1]]:[e.strides[0],e.strides[1],1],f=l[0],h=l[1],d=l[2],p=r?[1,t.strides[1],t.strides[0]]:[t.strides[1],1,t.strides[0]],v=p[0],y=p[1],m=p[2],g=o*a,b=Ln([u,o,a],e.dtype),w=b.values,_=this.blockSize,x=0;x<u;x++)for(var k=0;k<o;k+=_)for(var C=0;C<a;C+=_)for(var S=0;S<i;S+=_)for(var E=Math.min(k+_,o),A=Math.min(C+_,a),O=Math.min(S+_,i),D=k;D<E;D++)for(var I=C;I<A;I++){for(var T=0,M=S;M<O;M++)T+=s[x*f+D*h+M*d]*c[M*v+I*y+x*m];w[x*g+(D*a+I)]+=T}return b.toTensor()},t.prototype.fusedBatchMatMul=function(e){var t=e.bias,n=e.activation,r=e.preluActivationWeights,i=this.batchMatMul(e.a,e.b,e.transposeA,e.transposeB);return t&&(i=this.add(i,t)),n&&(i=Fl(this,i,n,r)),i},t.prototype.multiply=function(e,t){return"complex64"===e.dtype||"complex64"===t.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),t.cast("complex64"),function(e,t,n,r){return{real:e*n-t*r,imag:e*r+t*n}}):this.broadcastedBinaryOp(e,t,Se(e.dtype,t.dtype),function(e,t){return e*t})},t.prototype.realDivide=function(e,t){return Rl([e,t],"realDivide"),this.broadcastedBinaryOp(e,t,"float32",function(e,t){return e/t})},t.prototype.floorDiv=function(e,t){return Rl([e,t],"floorDiv"),this.broadcastedBinaryOp(e,t,"int32",function(e,t){return Math.floor(e/t)})},t.prototype.sum=function(e,t){Rl(e,"sum"),Zt("sum",t,e.rank);for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],Se(e.dtype,"int32")),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=0,f=0;f<o;++f)l+=u[c+f];a[s]=l}return i},t.prototype.prod=function(e,t){Rl(e,"sum");for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],Se(e.dtype,"int32")),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=1,f=0;f<o;++f)l*=u[c+f];a[s]=l}return i},t.prototype.unsortedSegmentSum=function(e,t,n){Rl(e,"unsortedSegmentSum");for(var r=[],i=e.rank-t.rank,o=0;o<i;++o)t=t.expandDims(o+1);for(o=0;o<n;++o){var a=cn(o,"int32"),u=gs(a,t).asType("float32").mul(e).sum(0);r.push(u)}return ur(r)},t.prototype.argMin=function(e,t){Rl(e,"argMin");var n=[t];Zt("argMin",n,e.rank);for(var r=Yt(e.shape,n),i=r[1],o=vn(r[0],"int32"),a=E(i),u=this.readSync(o.dataId),s=this.readSync(e.dataId),c=0;c<u.length;++c){for(var l=c*a,f=s[l],h=0,d=0;d<a;++d){var p=s[l+d];p<f&&(f=p,h=d)}u[c]=h}return o},t.prototype.argMax=function(e,t){Rl(e,"argMax");var n=[t];Zt("argMax",n,e.rank);for(var r=Yt(e.shape,n),i=r[1],o=vn(r[0],"int32"),a=E(i),u=this.readSync(o.dataId),s=this.readSync(e.dataId),c=0;c<u.length;++c){for(var l=c*a,f=s[l],h=0,d=0;d<a;++d){var p=s[l+d];p>f&&(f=p,h=d)}u[c]=h}return o},t.prototype.cumsum=function(e,t,n,r){if(Rl(e,"cumsum"),t!==e.rank-1)throw new Error("backend.cumsum in CPU expects an inner-most axis="+(e.rank-1)+" but got axis="+t);for(var i=Se(e.dtype,"int32"),o=vn(e.shape,i),a=this.readSync(o.dataId),u=this.readSync(e.dataId),s=e.shape[e.rank-1],c=r?function(e,t){return e+s-t-1}:function(e,t){return e+t},l=0;l<u.length;l+=s)for(var f=0;f<s;f++){var h=c(l,f);if(0===f)a[h]=n?0:u[h];else{var d=c(l,f-1);a[h]=n?u[d]+a[d]:u[h]+a[d]}}return o},t.prototype.equal=function(e,t){return Rl([e,t],"equal"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e===t?1:0})},t.prototype.notEqual=function(e,t){return Rl([e,t],"notEqual"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e!==t?1:0})},t.prototype.less=function(e,t){return Rl([e,t],"less"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e<t?1:0})},t.prototype.lessEqual=function(e,t){return Rl([e,t],"lessEqual"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e<=t?1:0})},t.prototype.greater=function(e,t){return Rl([e,t],"greater"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e>t?1:0})},t.prototype.greaterEqual=function(e,t){return Rl([e,t],"greaterEqual"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e>=t?1:0})},t.prototype.logicalNot=function(e){Rl(e,"logicalNot");for(var t=this.readSync(e.dataId),n=new Uint8Array(t.length),r=0;r<t.length;++r)n[r]=t[r]?0:1;return this.makeOutput(n,e.shape,"bool")},t.prototype.logicalAnd=function(e,t){return Rl([e,t],"logicalAnd"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e&&t})},t.prototype.logicalOr=function(e,t){return Rl([e,t],"logicalOr"),this.broadcastedBinaryOp(e,t,"bool",function(e,t){return e||t})},t.prototype.select=function(e,t,n){Rl([e,t,n],"select");for(var r=this.readSync(e.dataId),i=this.readSync(t.dataId),o=this.readSync(n.dataId),a=vn(t.shape,Se(t.dtype,n.dtype)),u=this.readSync(a.dataId),s=0,c=0===e.rank||e.rank>1||1===t.rank?1:E(t.shape.slice(1)),l=0;l<r.length;l++)for(var f=0;f<c;f++)u[s++]=1===r[l]?i[l]:o[l];return a},t.prototype.where=function(e){Rl([e],"where");var t=this.readSync(e.dataId);return di(e.shape,t)},t.prototype.topk=function(e,t,n){return Rl(e,"topk"),hi(this.readSync(e.dataId),e.shape,e.dtype,t)},t.prototype.min=function(e,t){Rl(e,"min"),Zt("min",t,e.rank);for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],e.dtype),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=u[c],f=0;f<o;++f){var h=u[c+f];h<l&&(l=h)}a[s]=l}return i},t.prototype.minimum=function(e,t){return Rl([e,t],"minimum"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){return Math.min(e,t)})},t.prototype.mod=function(e,t){return Rl([e,t],"mod"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){var n=e%t;return e<0&&t<0||e>=0&&t>=0?n:(n+t)%t})},t.prototype.max=function(e,t){Rl(e,"max"),Zt("max",t,e.rank);for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],e.dtype),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=u[c],f=0;f<o;++f){var h=u[c+f];h>l&&(l=h)}a[s]=l}return i},t.prototype.maximum=function(e,t){return Rl([e,t],"maximum"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){return Math.max(e,t)})},t.prototype.all=function(e,t){Rl(e,"all"),Zt("all",t,e.rank);for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],e.dtype),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=u[c],f=0;f<o;++f)l=l&&u[c+f];a[s]=l}return i},t.prototype.any=function(e,t){Rl(e,"any"),Zt("any",t,e.rank);for(var n=Yt(e.shape,t),r=n[1],i=vn(n[0],e.dtype),o=E(r),a=this.readSync(i.dataId),u=this.readSync(e.dataId),s=0;s<a.length;++s){for(var c=s*o,l=u[c],f=0;f<o;++f)l=l||u[c+f];a[s]=l}return i},t.prototype.squaredDifference=function(e,t){return Rl([e,t],"squaredDifference"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){var n=e-t;return n*n})},t.prototype.ceil=function(e){Rl(e,"ceil");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.ceil(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.floor=function(e){Rl(e,"floor");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.floor(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.sign=function(e){Rl(e,"x");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=t[r]<0?-1:t[r]>0?1:0;return this.makeOutput(n,e.shape,"float32")},t.prototype.isNaN=function(e){Rl(e,"x");for(var t=this.readSync(e.dataId),n=new Uint8Array(t.length),r=0;r<t.length;++r)Number.isNaN(t[r])&&(n[r]=1);return this.makeOutput(n,e.shape,"bool")},t.prototype.isInf=function(e){Rl(e,"x");for(var t=this.readSync(e.dataId),n=new Uint8Array(t.length),r=0;r<t.length;++r)Math.abs(t[r])===1/0&&(n[r]=1);return this.makeOutput(n,e.shape,"bool")},t.prototype.isFinite=function(e){Rl(e,"x");for(var t=this.readSync(e.dataId),n=new Uint8Array(t.length),r=0;r<t.length;++r)Number.isFinite(t[r])&&(n[r]=1);return this.makeOutput(n,e.shape,"bool")},t.prototype.round=function(e){Rl(e,"round");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r){var i=Math.floor(t[r]);n[r]=t[r]-i<.5?Math.floor(t[r]):t[r]-i>.5?Math.ceil(t[r]):i%2==0?i:i+1}return this.makeOutput(n,e.shape,"float32")},t.prototype.exp=function(e){Rl(e,"exp");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.exp(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.expm1=function(e){Rl(e,"expm1");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.expm1(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.log=function(e){Rl(e,"log");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.log(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.log1p=function(e){Rl(e,"log1p");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.log1p(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.sqrt=function(e){Rl(e,"sqrt");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=Math.sqrt(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.rsqrt=function(e){Rl(e,"rsqrt");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=1/Math.sqrt(t[r]);return this.makeOutput(n,e.shape,"float32")},t.prototype.reciprocal=function(e){Rl(e,"reciprocal");for(var t=this.readSync(e.dataId),n=new Float32Array(t.length),r=0;r<t.length;++r)n[r]=1/t[r];return this.makeOutput(n,e.shape,"float32")},t.prototype.linear=function(e){return e},t.prototype.relu=function(e){Rl(e,"relu");for(var t=vn(e.shape,e.dtype),n=this.readSync(t.dataId),r=this.readSync(e.dataId),i=0;i<r.length;++i)n[i]=Math.max(0,r[i]);return t},t.prototype.relu6=function(e){Rl(e,"relu");for(var t=vn(e.shape,e.dtype),n=this.readSync(t.dataId),r=this.readSync(e.dataId),i=0;i<r.length;++i)n[i]=Math.min(Math.max(0,r[i]),6);return t},t.prototype.prelu=function(e,t){return Rl([e,t],"prelu"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){return e<0?t*e:e})},t.prototype.elu=function(e){Rl(e,"elu");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r){var i=n[r];t[r]=i>=0?i:Math.exp(i)-1}return this.makeOutput(t,e.shape,"float32")},t.prototype.eluDer=function(e,t){Rl([e,t],"eluDer");for(var n=new Float32Array(t.size),r=this.readSync(t.dataId),i=this.readSync(e.dataId),o=0;o<r.length;++o){var a=r[o];n[o]=a>=1?i[o]:i[o]*(a+1)}return this.makeOutput(n,t.shape,"float32")},t.prototype.selu=function(e){Rl(e,"selu");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r){var i=n[r];t[r]=i>=0?1.0507009873554805*i:1.7580993408473768*(Math.exp(i)-1)}return this.makeOutput(t,e.shape,"float32")},t.prototype.clip=function(e,t,n){Rl(e,"clip");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),o=0;o<i.length;++o){var a=i[o];r[o]=a>n?n:a<t?t:a}return this.makeOutput(r,e.shape,"float32")},t.prototype.abs=function(e){for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.abs(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.complexAbs=function(e){for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<e.size;++r)t[r]=Math.hypot(n[2*r],n[2*r+1]);return this.makeOutput(t,e.shape,"float32")},t.prototype.int=function(e){Rl(e,"int");for(var t=new Int32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=n[r];return this.makeOutput(t,e.shape,"int32")},t.prototype.sigmoid=function(e){Rl(e,"sigmoid");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=1/(1+Math.exp(-n[r]));return this.makeOutput(t,e.shape,"float32")},t.prototype.softplus=function(e){Rl(e,"softplus");for(var t=Math.log(1.1920928955078125e-7)+2,n=new Float32Array(e.size),r=this.readSync(e.dataId),i=0;i<r.length;++i){var o,a=r[i]>-t,u=r[i]<t,s=Math.exp(r[i]);o=u?s:a?r[i]:Math.log(1+s),n[i]=o}return this.makeOutput(n,e.shape,"float32")},t.prototype.sin=function(e){Rl(e,"sin");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.sin(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.cos=function(e){Rl(e,"cos");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.cos(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.tan=function(e){Rl(e,"tan");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.tan(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.asin=function(e){Rl(e,"asin");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.asin(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.acos=function(e){Rl(e,"acos");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.acos(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.atan=function(e){Rl(e,"atan");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.atan(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.atan2=function(e,t){return Rl([e,t],"atan2"),this.broadcastedBinaryOp(e,t,e.dtype,function(e,t){return Math.atan2(e,t)})},t.prototype.sinh=function(e){Rl(e,"sinh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.sinh(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.cosh=function(e){Rl(e,"cosh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.cosh(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.tanh=function(e){Rl(e,"tanh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=D(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.asinh=function(e){Rl(e,"asinh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.asinh(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.acosh=function(e){Rl(e,"acosh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.acosh(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.atanh=function(e){Rl(e,"atanh");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r)t[r]=Math.atanh(n[r]);return this.makeOutput(t,e.shape,"float32")},t.prototype.erf=function(e){Rl(e,"erf");for(var t=new Float32Array(e.size),n=this.readSync(e.dataId),r=0;r<n.length;++r){var i=Math.sign(n[r]),o=Math.abs(n[r]),a=1/(1+.3275911*o);t[r]=i*(1-((((1.061405429*a-1.453152027)*a+1.421413741)*a-.284496736)*a+.254829592)*a*Math.exp(-o*o))}return this.makeOutput(t,e.shape,"float32")},t.prototype.step=function(e,t){void 0===t&&(t=0),Rl(e,"step");for(var n=new Float32Array(e.size),r=this.readSync(e.dataId),i=0;i<r.length;++i){var o=r[i];n[i]=isNaN(o)?NaN:o>0?1:t}return this.makeOutput(n,e.shape,"float32")},t.prototype.fusedConv2d=function(e){var t=e.bias,n=e.activation,r=e.preluActivationWeights,i=this.conv2d(e.input,e.filter,e.convInfo);return t&&(i=this.add(i,t)),n&&(i=Fl(this,i,n,r)),i},t.prototype.conv2d=function(e,t,n){Rl([e,t],"conv2d");for(var r=n.filterHeight,i=n.filterWidth,o=n.dilationHeight,a=n.dilationWidth,u=n.padInfo.left,s=n.padInfo.top,c="channelsLast"===n.dataFormat,l=Ln(n.outShape,e.dtype),f=e.strides[0],h=c?e.strides[1]:e.strides[2],d=c?e.strides[2]:1,p=c?1:e.strides[1],v=l.strides[0],y=c?l.strides[1]:l.strides[2],m=c?l.strides[2]:1,g=c?1:l.strides[1],b=this.readSync(e.dataId),w=this.readSync(t.dataId),_=l.values,x=0;x<n.batchSize;++x)for(var k=x*f,C=x*v,S=0;S<n.outHeight;++S)for(var E=C+S*y,A=S*n.strideHeight-s,O=0;O<r;O++){var D=A+O*o;if(!(D<0||D>=n.inHeight))for(var I=O*t.strides[0],T=k+D*h,M=0;M<n.outWidth;++M)for(var P=E+M*m,R=M*n.strideWidth-u,F=0;F<i;F++){var N=R+F*a;if(!(N<0||N>=n.inWidth))for(var j=T+N*d,L=I+F*t.strides[1],B=0;B<n.inChannels;++B){for(var V=b[j+B*p],W=0;W<n.outChannels;++W)_[P+W*g]+=V*w[L+W];L+=n.outChannels}}}return l.toTensor()},t.prototype.conv3d=function(e,t,n){for(var r=n.filterDepth,i=n.filterHeight,o=n.filterWidth,a=n.dilationDepth,u=n.dilationHeight,s=n.dilationWidth,c=n.padInfo.front,l=n.padInfo.left,f=n.padInfo.top,h=Ln(n.outShape,e.dtype),d=this.readSync(e.dataId),p=this.readSync(t.dataId),v=h.values,y=0;y<n.batchSize;++y)for(var m=y*e.strides[0],g=y*h.strides[0],b=0;b<n.outDepth;++b)for(var w=g+b*h.strides[1],_=b*n.strideDepth-c,x=0;x<r;x++){var k=_+x*a;if(!(k<0||k>=n.inDepth))for(var C=x*t.strides[0],S=m+k*e.strides[1],E=0;E<n.outHeight;++E)for(var A=w+E*h.strides[2],O=E*n.strideHeight-f,D=0;D<i;D++){var I=O+D*u;if(!(I<0||I>=n.inHeight))for(var T=C+D*t.strides[1],M=S+I*e.strides[2],P=0;P<n.outWidth;++P)for(var R=A+P*n.outChannels,F=P*n.strideWidth-l,N=0;N<o;N++){var j=F+N*s;if(!(j<0||j>=n.inWidth))for(var L=M+j*n.inChannels,B=T+N*t.strides[2],V=0;V<n.inChannels;++V){for(var W=d[L+V],U=0;U<n.outChannels;++U)v[R+U]+=W*p[B+U];B+=n.outChannels}}}}return h.toTensor()},t.prototype.conv2dDerInput=function(e,t,n){Rl([e,t],"conv2dDerInput");for(var r=Ln(n.inShape,"float32"),i=r.values,o=this.readSync(e.dataId),a=this.readSync(t.dataId),u=t.strides,s=u[0],c=u[1],l=u[2],f=n.batchSize,h=n.filterHeight,d=n.filterWidth,p=n.inChannels,v=n.inHeight,y=n.inWidth,m=n.outChannels,g=n.outHeight,b=n.outWidth,w=n.strideHeight,_=n.strideWidth,x=h-1-n.padInfo.top,k=d-1-n.padInfo.left,C="channelsLast"===n.dataFormat,S=r.strides[0],E=C?r.strides[1]:r.strides[2],A=C?r.strides[2]:1,O=C?1:r.strides[1],D=e.strides[0],I=C?e.strides[1]:e.strides[2],T=C?e.strides[2]:1,M=C?1:e.strides[1],P=0;P<f;++P)for(var R=0;R<p;++R)for(var F=0;F<v;++F)for(var N=F-x,j=Math.max(0,Math.ceil(N/w)),L=Math.min(g,(h+N)/w),B=0;B<y;++B){for(var V=B-k,W=Math.max(0,Math.ceil(V/_)),U=Math.min(b,(d+V)/_),z=0,q=j;q<L;++q)for(var H=q*w-N,G=W;G<U;++G)for(var K=D*P+I*q+T*G,Y=s*(h-1-H)+c*(d-1-(G*_-V))+l*R,$=0;$<m;++$)z+=o[K+M*$]*a[Y+$];i[S*P+E*F+A*B+O*R]=z}return r.toTensor()},t.prototype.conv3dDerInput=function(e,t,n){for(var r=Ln(n.inShape,"float32"),i=r.values,o=r.strides,a=o[0],u=o[1],s=o[2],c=o[3],l=this.readSync(e.dataId),f=e.strides,h=f[0],d=f[1],p=f[2],v=f[3],y=this.readSync(t.dataId),m=t.strides,g=m[0],b=m[1],w=m[2],_=m[3],x=n.batchSize,k=n.filterDepth,C=n.filterHeight,S=n.filterWidth,E=n.inChannels,A=n.inDepth,O=n.inHeight,D=n.inWidth,I=n.outChannels,T=n.outDepth,M=n.outHeight,P=n.outWidth,R=n.strideDepth,F=n.strideHeight,N=n.strideWidth,j=k-1-n.padInfo.front,L=C-1-n.padInfo.top,B=S-1-n.padInfo.left,V=0;V<x;++V)for(var W=0;W<E;++W)for(var U=0;U<A;++U)for(var z=U-j,q=Math.max(0,Math.ceil(z/R)),H=Math.min(T,(k+z)/R),G=0;G<O;++G)for(var K=G-L,Y=Math.max(0,Math.ceil(K/F)),$=Math.min(M,(C+K)/F),Z=0;Z<D;++Z){for(var Q=Z-B,X=Math.max(0,Math.ceil(Q/N)),J=Math.min(P,(S+Q)/N),ee=0,te=q;te<H;++te)for(var ne=te*R-z,re=Y;re<$;++re)for(var ie=re*F-K,oe=X;oe<J;++oe)for(var ae=h*V+d*te+p*re+v*oe,ue=g*(k-1-ne)+b*(C-1-ie)+w*(S-1-(oe*N-Q))+_*W,se=0;se<I;++se)ee+=l[ae+se]*y[ue+se];i[a*V+u*U+s*G+c*Z+W]=ee}return r.toTensor()},t.prototype.conv2dDerFilter=function(e,t,n){Rl([e,t],"conv2dDerFilter");for(var r=n.strideHeight,i=n.strideWidth,o=n.filterHeight,a=n.filterWidth,u="channelsLast"===n.dataFormat,s=Ln(n.filterShape,"float32"),c=n.padInfo.left,l=n.padInfo.top,f=this.bufferSync(e),h=this.bufferSync(t),d=0;d<o;++d)for(var p=Math.max(0,Math.ceil((l-d)/r)),v=Math.min(n.outHeight,(n.inHeight+l-d)/r),y=0;y<a;++y)for(var m=Math.max(0,Math.ceil((c-y)/i)),g=Math.min(n.outWidth,(n.inWidth+c-y)/i),b=0;b<n.inChannels;++b)for(var w=0;w<n.outChannels;++w){for(var _=0,x=0;x<n.batchSize;++x)for(var k=p;k<v;++k)for(var C=d+k*r-l,S=m;S<g;++S){var E=y+S*i-c;_+=u?f.get(x,C,E,b)*h.get(x,k,S,w):f.get(x,b,C,E)*h.get(x,w,k,S)}s.set(_,d,y,b,w)}return s.toTensor()},t.prototype.conv3dDerFilter=function(e,t,n){for(var r=n.strideDepth,i=n.strideHeight,o=n.strideWidth,a=n.filterDepth,u=n.filterHeight,s=n.filterWidth,c=Ln(n.filterShape,"float32"),l=c.values,f=c.strides,h=f[0],d=f[1],p=f[2],v=f[3],y=this.readSync(t.dataId),m=t.strides,g=m[0],b=m[1],w=m[2],_=m[3],x=this.readSync(e.dataId),k=e.strides,C=k[0],S=k[1],E=k[2],A=k[3],O=n.padInfo.front,D=n.padInfo.left,I=n.padInfo.top,T=0;T<a;++T)for(var M=Math.max(0,Math.ceil((O-T)/r)),P=Math.min(n.outDepth,(n.inDepth+O-T)/r),R=T*h,F=0;F<u;++F)for(var N=Math.max(0,Math.ceil((I-F)/i)),j=Math.min(n.outHeight,(n.inHeight+I-F)/i),L=F*d+R,B=0;B<s;++B)for(var V=Math.max(0,Math.ceil((D-B)/o)),W=Math.min(n.outWidth,(n.inWidth+D-B)/o),U=B*p+L,z=0;z<n.inChannels;++z)for(var q=z*v+U,H=0;H<n.outChannels;++H){for(var G=0,K=0;K<n.batchSize;++K)for(var Y=K*C,$=K*g,Z=M;Z<P;++Z)for(var Q=(T+Z*r-O)*S+Y,X=Z*b+$,J=N;J<j;++J)for(var ee=(F+J*i-I)*E+Q,te=J*w+X,ne=V;ne<W;++ne)G+=x[(B+ne*o-D)*A+ee+z]*y[ne*_+te+H];l[q+H]=G}return c.toTensor()},t.prototype.fusedDepthwiseConv2D=function(e){var t=e.bias,n=e.activation,r=e.preluActivationWeights,i=this.depthwiseConv2D(e.input,e.filter,e.convInfo);return t&&(i=this.add(i,t)),n&&(i=Fl(this,i,n,r)),i},t.prototype.depthwiseConv2D=function(e,t,n){Rl([e,t],"depthwiseConv2D");for(var r=n.filterHeight,i=n.filterWidth,o=n.dilationHeight,a=n.dilationWidth,u=n.padInfo.left,s=n.padInfo.top,c=n.outChannels/n.inChannels,l=Ln(n.outShape,e.dtype),f=this.readSync(e.dataId),h=this.readSync(t.dataId),d=l.values,p=0;p<n.batchSize;++p)for(var v=p*e.strides[0],y=p*l.strides[0],m=0;m<n.outHeight;++m)for(var g=y+m*l.strides[1],b=m*n.strideHeight-u,w=0;w<r;++w){var _=b+w*o;if(!(_<0||_>=n.inHeight))for(var x=w*t.strides[0],k=v+_*e.strides[1],C=0;C<n.outWidth;++C)for(var S=g+C*l.strides[2],E=C*n.strideWidth-s,A=0;A<i;++A){var O=E+A*a;if(!(O<0||O>=n.inWidth))for(var D=k+O*n.inChannels,I=S,T=x+A*t.strides[1],M=0;M<n.inChannels;++M){for(var P=f[D+M],R=0;R<c;++R)d[I+R]+=P*h[T+R];I+=c,T+=c}}}return l.toTensor()},t.prototype.depthwiseConv2DDerInput=function(e,t,n){Rl([e,t],"depthwiseConv2DDerInput");for(var r=Ln(n.inShape,"float32"),i=r.values,o=r.strides,a=o[0],u=o[1],s=o[2],c=this.readSync(e.dataId),l=e.strides,f=l[0],h=l[1],d=l[2],p=this.readSync(t.dataId),v=t.strides,y=v[0],m=v[1],g=v[2],b=n.batchSize,w=n.filterHeight,_=n.filterWidth,x=n.inChannels,k=n.inHeight,C=n.inWidth,S=n.outHeight,E=n.outWidth,A=n.strideHeight,O=n.strideWidth,D=w-1-n.padInfo.top,I=_-1-n.padInfo.left,T=n.outChannels/x,M=0;M<b;++M)for(var P=0;P<x;++P)for(var R=0;R<k;++R)for(var F=R-D,N=Math.max(0,Math.ceil(F/A)),j=Math.min(S,(w+F)/A),L=0;L<C;++L){for(var B=L-I,V=Math.max(0,Math.ceil(B/O)),W=Math.min(E,(_+B)/O),U=0,z=N;z<j;++z)for(var q=z*A-F,H=V;H<W;++H)for(var G=f*M+h*z+d*H,K=y*(w-1-q)+m*(_-1-(H*O-B))+g*P,Y=0;Y<T;++Y)U+=c[G+(P*T+Y)]*p[K+Y];i[a*M+u*R+s*L+P]=U}return r.toTensor()},t.prototype.depthwiseConv2DDerFilter=function(e,t,n){Rl([e,t],"depthwiseConv2DDerFilter");for(var r=n.strideHeight,i=n.strideWidth,o=n.filterHeight,a=n.filterWidth,u=Ln(n.filterShape,"float32"),s=n.padInfo.left,c=n.padInfo.top,l=n.outChannels/n.inChannels,f=this.bufferSync(e),h=this.bufferSync(t),d=0;d<o;++d)for(var p=Math.max(0,Math.ceil((c-d)/r)),v=Math.min(n.outHeight,(n.inHeight+c-d)/r),y=0;y<a;++y)for(var m=Math.max(0,Math.ceil((s-y)/i)),g=Math.min(n.outWidth,(n.inWidth+s-y)/i),b=0;b<n.outChannels;++b){for(var w=Math.trunc(b/l),_=b%l,x=0,k=0;k<n.batchSize;++k)for(var C=p;C<v;++C)for(var S=d+C*r-c,E=m;E<g;++E)x+=f.get(k,S,y+E*i-s,w)*h.get(k,C,E,b);u.set(x,d,y,w,_)}return u.toTensor()},t.prototype.tile=function(e,t){return Rl(e,"tile"),fi(this.bufferSync(e),t)},t.prototype.pad=function(e,t,n){Rl(e,"pad");var r=t.map(function(t,n){return t[0]+e.shape[n]+t[1]}),i=t.map(function(e){return e[0]}),o=this.bufferSync(e),a=Ln(r,e.dtype);0!==n&&a.values.fill(n);for(var u=0;u<e.size;u++){var s=o.indexToLoc(u),c=s.map(function(e,t){return e+i[t]});a.set.apply(a,[o.get.apply(o,s)].concat(c))}return a.toTensor()},t.prototype.transpose=function(e,t){Rl(e,"transpose");for(var n=new Array(e.rank),r=0;r<n.length;r++)n[r]=e.shape[t[r]];var i=this.readSync(e.dataId),o=Ln(n,e.dtype),a=this.bufferSync(e);for(r=0;r<e.size;++r){for(var u=a.indexToLoc(r),s=new Array(u.length),c=0;c<s.length;c++)s[c]=u[t[c]];var l=o.locToIndex(s);o.values[l]=i[r]}return o.toTensor()},t.prototype.gather=function(e,t,n){Rl([e,t],"gather");var r=e.shape.slice(),i=this.readSync(t.dataId);r[n]=i.length;for(var o=Ln(r,e.dtype),a=this.bufferSync(e),u=0;u<o.size;++u){var s=o.indexToLoc(u),c=s.slice();c[n]=i[s[n]];var l=a.locToIndex(c);o.values[u]=a.values[l]}return o.toTensor()},t.prototype.batchToSpaceND=function(e,t,n){Rl([e],"batchToSpaceND");var r=t.reduce(function(e,t){return e*t}),i=fr(e.shape,t,r),o=hr(i.length,t.length),a=dr(e.shape,t,r),u=pr(n,t.length),s=vr(a,n,t.length);return e.reshape(i).transpose(o).reshape(a).slice(u,s)},t.prototype.spaceToBatchND=function(e,t,n){Rl([e],"spaceToBatchND");var r=t.reduce(function(e,t){return e*t}),i=[[0,0]];i.push.apply(i,n);for(var o=1+t.length;o<e.shape.length;++o)i.push([0,0]);var a=e.pad(i),u=fr(a.shape,t,r,!1),s=hr(u.length,t.length,!1),c=dr(a.shape,t,r,!1);return a.reshape(u).transpose(s).reshape(c)},t.prototype.pool=function(e,t,n){Rl(e,"pool");for(var r=t.strideHeight,i=t.strideWidth,o=t.dilationHeight,a=t.dilationWidth,u=t.effectiveFilterHeight,s=t.effectiveFilterWidth,c=t.padInfo.top,l=t.padInfo.left,f="max"===n?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,h=this.readSync(e.dataId),d=Ln(t.outShape,e.dtype),p=d.values,v=t.outShape[1]*t.outShape[2]*t.outShape[3],y=t.outShape[2]*t.outShape[3],m=t.outShape[3],g=0;g<t.batchSize;++g)for(var b=g*v,w=g*e.strides[0],_=0;_<t.inChannels;++_)for(var x=0;x<t.outHeight;++x)for(var k=x*r-c,C=Math.max(0,k),S=Math.min(t.inHeight,u+k),E=b+x*y,A=0;A<t.outWidth;++A){for(var O=A*i-l,D=Math.max(0,O),I=Math.min(t.inWidth,s+O),T=f,M=0,P=0,R=C;R<S;R+=o){for(var F=w+R*e.strides[1],N=D;N<I;N+=a){var j=h[F+N*e.strides[2]+_];"max"===n&&j>T?T=j:"avg"===n&&(M+=j,P++)}if(isNaN(T))break}p[E+A*m+_]="avg"===n?M/P:T}return d.toTensor()},t.prototype.maxPool=function(e,t){return this.pool(e,t,"max")},t.prototype.maxPoolPositions=function(e,t){for(var n=Ln(t.outShape,"int32"),r=t.strideHeight,i=t.strideWidth,o=t.dilationHeight,a=t.dilationWidth,u=t.effectiveFilterHeight,s=t.effectiveFilterWidth,c=t.padInfo.top,l=t.padInfo.left,f=this.bufferSync(e),h=0;h<t.batchSize;++h)for(var d=0;d<t.inChannels;++d)for(var p=0;p<t.outHeight;++p){for(var v=p*r-c,y=v;y<0;)y+=o;for(var m=Math.min(t.inHeight,u+v),g=0;g<t.outWidth;++g){for(var b=g*i-l,w=b;w<0;)w+=a;for(var _=Math.min(t.inWidth,s+b),x=Number.NEGATIVE_INFINITY,k=-1,C=y;C<m;C+=o)for(var S=C-v,E=w;E<_;E+=a){var A=E-b,O=f.get(h,C,E,d);O>x&&(x=O,k=S*s+A)}n.set(k,h,p,g,d)}}return n.toTensor()},t.prototype.maxPoolBackprop=function(e,t,n,r){Rl([t,n],"maxPoolBackprop");for(var i=this.maxPoolPositions(t,r),o=r.strideHeight,a=r.strideWidth,u=r.dilationHeight,s=r.dilationWidth,c=r.effectiveFilterHeight,l=r.effectiveFilterWidth,f=l-1-r.padInfo.left,h=c-1-r.padInfo.top,d=Ln(t.shape,"float32"),p=this.bufferSync(i),v=this.bufferSync(e),y=0;y<r.batchSize;++y)for(var m=0;m<r.inChannels;++m)for(var g=0;g<r.inHeight;++g)for(var b=0;b<r.inWidth;++b){for(var w=g-h,_=b-f,x=0,k=0;k<c;k+=u){var C=(w+k)/o;if(!(C<0||C>=r.outHeight||Math.floor(C)!==C))for(var S=0;S<l;S+=s){var E=(_+S)/a;if(!(E<0||E>=r.outWidth||Math.floor(E)!==E)){var A=c*l-1-p.get(y,C,E,m)===k*l+S?1:0;0!==A&&(x+=v.get(y,C,E,m)*A)}}}d.set(x,y,g,b,m)}return d.toTensor()},t.prototype.avgPoolBackprop=function(e,t,n){Rl([e,t],"avgPoolBackprop");for(var r=n.strideHeight,i=n.strideWidth,o=n.filterHeight,a=n.filterWidth,u=n.dilationHeight,s=n.dilationWidth,c=n.effectiveFilterHeight,l=n.effectiveFilterWidth,f=l-1-n.padInfo.left,h=c-1-n.padInfo.top,d=Ln(t.shape,"float32"),p=1/(o*a),v=this.bufferSync(e),y=0;y<n.batchSize;++y)for(var m=0;m<n.inChannels;++m)for(var g=0;g<n.inHeight;++g)for(var b=0;b<n.inWidth;++b){for(var w=g-h,_=b-f,x=0,k=0;k<c;k+=u){var C=(w+k)/r;if(!(C<0||C>=n.outHeight||Math.floor(C)!==C))for(var S=0;S<l;S+=s){var E=(_+S)/i;E<0||E>=n.outWidth||Math.floor(E)!==E||(x+=v.get(y,C,E,m))}}d.set(x*p,y,g,b,m)}return d.toTensor()},t.prototype.pool3d=function(e,t,n){Rl(e,"pool3d");for(var r=t.strideDepth,i=t.strideHeight,o=t.strideWidth,a=t.dilationDepth,u=t.dilationHeight,s=t.dilationWidth,c=t.effectiveFilterDepth,l=t.effectiveFilterHeight,f=t.effectiveFilterWidth,h=t.padInfo.front,d=t.padInfo.top,p=t.padInfo.left,v="max"===n?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,y=this.readSync(e.dataId),m=Ln(t.outShape,e.dtype),g=m.values,b=t.outShape[1]*t.outShape[2]*t.outShape[3]*t.outShape[4],w=t.outShape[2]*t.outShape[3]*t.outShape[4],_=t.outShape[3]*t.outShape[4],x=t.outShape[4],k=0;k<t.batchSize;++k)for(var C=k*b,S=k*e.strides[0],E=0;E<t.inChannels;++E)for(var A=0;A<t.outDepth;++A){for(var O=A*r-h,D=O;D<0;)D+=a;for(var I=Math.min(t.inDepth,c+O),T=C+A*w,M=0;M<t.outHeight;++M){for(var P=M*i-d,R=P;R<0;)R+=u;for(var F=Math.min(t.inHeight,l+P),N=T+M*_,j=0;j<t.outWidth;++j){for(var L=j*o-p,B=L;B<0;)B+=s;for(var V=Math.min(t.inWidth,f+L),W=N+j*x,U=v,z=0,q=0,H=D;H<I;H+=a){for(var G=S+H*e.strides[1],K=R;K<F;K+=u){for(var Y=G+K*e.strides[2],$=B;$<V;$+=s){var Z=y[Y+$*e.strides[3]+E];if("max"===n&&Z>U?U=Z:"avg"===n&&(z+=Z,q++),isNaN(U))break}if(isNaN(U))break}if(isNaN(U))break}g[W+E]="avg"===n?z/q:U}}}return m.toTensor()},t.prototype.avgPool3d=function(e,t){return Rl(e,"avgPool3d"),this.pool3d(e,t,"avg").toFloat()},t.prototype.avgPool3dBackprop=function(e,t,n){Rl([e,t],"avgPool3dBackprop");for(var r=n.strideDepth,i=n.strideHeight,o=n.strideWidth,a=n.filterDepth,u=n.filterHeight,s=n.filterWidth,c=n.dilationDepth,l=n.dilationHeight,f=n.dilationWidth,h=n.effectiveFilterDepth,d=n.effectiveFilterHeight,p=n.effectiveFilterWidth,v=h-1-n.padInfo.front,y=p-1-n.padInfo.left,m=d-1-n.padInfo.top,g=Ln(t.shape,"float32"),b=1/(a*u*s),w=this.bufferSync(e),_=0;_<n.batchSize;++_)for(var x=0;x<n.inChannels;++x)for(var k=0;k<n.inDepth;++k)for(var C=0;C<n.inHeight;++C)for(var S=0;S<n.inWidth;++S){for(var E=k-v,A=C-m,O=S-y,D=0,I=0;I<h;I+=c){var T=(E+I)/r;if(!(T<0||T>=n.outDepth||Math.floor(T)!==T))for(var M=0;M<d;M+=l){var P=(A+M)/i;if(!(P<0||P>=n.outHeight||Math.floor(P)!==P))for(var R=0;R<p;R+=f){var F=(O+R)/o;F<0||F>=n.outWidth||Math.floor(F)!==F||(D+=w.get(_,T,P,F,x))}}}g.set(D*b,_,k,C,S,x)}return g.toTensor()},t.prototype.maxPool3d=function(e,t){return Rl(e,"maxPool3d"),this.pool3d(e,t,"max").toFloat()},t.prototype.maxPool3dPositions=function(e,t){for(var n=Ln(t.outShape,"int32"),r=t.strideDepth,i=t.strideHeight,o=t.strideWidth,a=t.dilationDepth,u=t.dilationHeight,s=t.dilationWidth,c=t.effectiveFilterDepth,l=t.effectiveFilterHeight,f=t.effectiveFilterWidth,h=t.padInfo.front,d=t.padInfo.top,p=t.padInfo.left,v=this.bufferSync(e),y=0;y<t.batchSize;++y)for(var m=0;m<t.inChannels;++m)for(var g=0;g<t.outDepth;++g){for(var b=g*r-h,w=b;w<0;)w+=a;for(var _=Math.min(t.inDepth,c+b),x=0;x<t.outHeight;++x){for(var k=x*i-d,C=k;C<0;)C+=u;for(var S=Math.min(t.inHeight,l+k),E=0;E<t.outWidth;++E){for(var A=E*o-p,O=A;O<0;)O+=s;for(var D=Math.min(t.inWidth,f+A),I=Number.NEGATIVE_INFINITY,T=-1,M=w;M<_;M+=a)for(var P=M-b,R=C;R<S;R+=u)for(var F=R-k,N=O;N<D;N+=s){var j=N-A,L=v.get(y,M,R,N,m);L>=I&&(I=L,T=P*l*f+F*l+j)}n.set(T,y,g,x,E,m)}}}return n.toTensor()},t.prototype.maxPool3dBackprop=function(e,t,n,r){Rl([t,n],"maxPool3dBackprop");for(var i=this.maxPool3dPositions(t,r),o=r.strideDepth,a=r.strideHeight,u=r.strideWidth,s=r.dilationDepth,c=r.dilationHeight,l=r.dilationWidth,f=r.effectiveFilterDepth,h=r.effectiveFilterHeight,d=r.effectiveFilterWidth,p=f-1-r.padInfo.front,v=d-1-r.padInfo.left,y=h-1-r.padInfo.top,m=Ln(t.shape,"float32"),g=this.bufferSync(i),b=this.bufferSync(e),w=0;w<r.batchSize;++w)for(var _=0;_<r.inChannels;++_)for(var x=0;x<r.inDepth;++x)for(var k=0;k<r.inHeight;++k)for(var C=0;C<r.inWidth;++C){for(var S=x-p,E=k-y,A=C-v,O=0,D=0;D<f;D+=s){var I=(S+D)/o;if(!(I<0||I>=r.outDepth||Math.floor(I)!==I))for(var T=0;T<h;T+=c){var M=(E+T)/a;if(!(M<0||M>=r.outHeight||Math.floor(M)!==M))for(var P=0;P<d;P+=l){var R=(A+P)/u;if(!(R<0||R>
vendor: 12,664 bytes, line 1
1=r.outWidth||Math.floor(R)!==R)){var F=f*h*d-1-g.get(w,I,M,R,_)===D*h*d+T*d+P?1:0;0!==F&&(O+=b.get(w,I,M,R,_)*F)}}}}m.set(O,w,x,k,C,_)}return m.toTensor()},t.prototype.cast=function(e,t){return $r(e,t,this)},t.prototype.reshape=function(e,t){return Zr(e,t)},t.prototype.avgPool=function(e,t){return Rl(e,"avgPool"),this.pool(e,t,"avg").toFloat()},t.prototype.resizeBilinear=function(e,t,n,r){Rl(e,"resizeBilinear");for(var i=e.shape,o=i[0],a=i[1],u=i[2],s=i[3],c=this.readSync(e.dataId),l=new Float32Array(E([o,t,n,s])),f=[r&&t>1?a-1:a,r&&n>1?u-1:u],h=[r&&t>1?t-1:t,r&&n>1?n-1:n],d=0,p=f[0]/h[0],v=f[1]/h[1],y=0;y<o;y++)for(var m=0;m<t;m++)for(var g=p*m,b=Math.floor(g),w=g-b,_=Math.min(a-1,Math.ceil(g)),x=y*e.strides[0]+b*e.strides[1],k=y*e.strides[0]+_*e.strides[1],C=0;C<n;C++)for(var S=v*C,A=Math.floor(S),O=S-A,D=Math.min(u-1,Math.ceil(S)),I=x+A*e.strides[2],T=k+A*e.strides[2],M=x+D*e.strides[2],P=k+D*e.strides[2],R=0;R<s;R++){var F=c[I+R],N=c[T+R],j=F+(c[M+R]-F)*O;l[d++]=j+(N+(c[P+R]-N)*O-j)*w}return un(l,[o,t,n,s])},t.prototype.resizeBilinearBackprop=function(e,t,n){Rl([e,t],"resizeBilinearBackprop");for(var r=t.shape,i=r[0],o=r[1],a=r[2],u=r[3],s=e.shape,c=s[1],l=s[2],f=new Float32Array(i*o*a*u),h=[n&&c>1?o-1:o,n&&l>1?a-1:a],d=[n&&c>1?c-1:c,n&&l>1?l-1:l],p=h[0]/d[0],v=h[1]/d[1],y=this.readSync(e.dataId),m=0,g=0;g<i;g++)for(var b=g*t.strides[0],w=0;w<c;w++)for(var _=w*p,x=Math.floor(_),k=Math.min(Math.ceil(_),o-1),C=b+x*t.strides[1],S=b+k*t.strides[1],E=_-x,A=1-E,O=0;O<l;O++)for(var D=O*v,I=Math.floor(D),T=Math.min(Math.ceil(D),a-1),M=D-I,P=1-M,R=C+I*t.strides[2],F=C+T*t.strides[2],N=S+I*t.strides[2],j=S+T*t.strides[2],L=A*P,B=A*M,V=E*P,W=E*M,U=0;U<u;U++){var z=y[m++];f[R+U]+=z*L,f[F+U]+=z*B,f[N+U]+=z*V,f[j+U]+=z*W}return dn(f,[i,a,o,u],t.dtype)},t.prototype.resizeNearestNeighbor=function(e,t,n,r){Rl(e,"resizeNearestNeighbor");for(var i=e.shape,o=i[0],a=i[1],u=i[2],s=i[3],c=this.readSync(e.dataId),l=new Float32Array(o*t*n*s),f=[r&&t>1?a-1:a,r&&n>1?u-1:u],h=[r&&t>1?t-1:t,r&&n>1?n-1:n],d=f[0]/h[0],p=f[1]/h[1],v=0,y=0;y<o;y++)for(var m=y*e.strides[0],g=0;g<t;g++)for(var b=d*g,w=m+Math.min(a-1,r?Math.round(b):Math.floor(b))*e.strides[1],_=0;_<n;_++)for(var x=p*_,k=w+Math.min(u-1,r?Math.round(x):Math.floor(x))*e.strides[2],C=0;C<s;C++)l[v++]=c[k+C];return un(l,[o,t,n,s],e.dtype)},t.prototype.resizeNearestNeighborBackprop=function(e,t,n){Rl([e,t],"resizeNearestNeighborBackprop");for(var r=t.shape,i=r[0],o=r[1],a=r[2],u=r[3],s=e.shape,c=s[1],l=s[2],f=new Float32Array(i*o*a*u),h=this.readSync(e.dataId),d=[n&&c>1?o-1:o,n&&l>1?a-1:a],p=[n&&c>1?c-1:c,n&&l>1?l-1:l],v=d[0]/p[0],y=d[1]/p[1],m=1/v,g=1/y,b=2*Math.ceil(m)+2,w=2*Math.ceil(g)+2,_=0;_<i;_++)for(var x=_*t.strides[0],k=0;k<o;k++)for(var C=x+k*t.strides[1],S=Math.floor(k*m),E=Math.floor(S-b/2),A=0;A<a;A++)for(var O=C+A*t.strides[2],D=Math.floor(A*g),I=Math.floor(D-w/2),T=0;T<u;T++){for(var M=0,P=0;P<b;P++){var R=P+E;if(!(R<0||R>=c)){var F=x+R*e.strides[1],N=R*v;if(k===Math.min(o-1,n?Math.round(N):Math.floor(N)))for(var j=0;j<w;j++){var L=j+I;if(!(L<0||L>=l)){var B=F+L*e.strides[2],V=L*y;A===Math.min(a-1,n?Math.round(V):Math.floor(V))&&(M+=h[B+T])}}}}f[O+T]=M}return dn(f,t.shape,t.dtype)},t.prototype.batchNormalization=function(e,t,n,r,i,o){Rl([e,t,n,i,o],"batchNorm");for(var a=this.readSync(e.dataId),u=this.readSync(t.dataId),s=this.readSync(n.dataId),c=i?this.readSync(i.dataId):new Float32Array([1]),l=o?this.readSync(o.dataId):new Float32Array([0]),f=new Float32Array(a.length),h=l.length,d=c.length,p=s.length,v=u.length,y=0,m=0,g=0,b=0,w=0;w<a.length;++w)f[w]=l[y++]+(a[w]-u[m++])*c[g++]/Math.sqrt(s[b++]+r),y>=h&&(y=0),m>=v&&(m=0),g>=d&&(g=0),b>=p&&(b=0);return dn(f,e.shape)},t.prototype.localResponseNormalization4D=function(e,t,n,r,i){Rl(e,"localResponseNormalization4D");var o=e.shape[3],a=o-1,u=this.readSync(e.dataId),s=e.size,c=new Float32Array(s);function l(e){for(var n=e%o,r=e-n+Math.max(0,n-t),i=e-n+Math.min(n+t,a),s=0;r<=i;r++){var c=u[r];s+=c*c}return s}for(var f=0;f<s;f++){var h=l(f),d=u[f]*Math.pow(n+r*h,-i);c[f]=d}return dn(c,e.shape)},t.prototype.LRNGrad=function(e,t,n,r,i,o,a){Rl(e,"LRNGrad");for(var u=e.shape[3],s=this.readSync(e.dataId),c=this.readSync(t.dataId),l=this.readSync(n.dataId),f=new Float32Array(e.size),h=e.size,d=0;d<h;d++){for(var p=d%u,v=d-p+Math.max(0,p-r),y=d-p+Math.min(u,p+r+1),m=0,g=v;g<y;g++)m+=Math.pow(c[g],2);for(m=o*m+i,g=v;g<y;g++){var b=-2*o*a*c[g]*l[d]/m;d===g&&(b+=Math.pow(m,-a)),f[g]+=b*=s[d]}}return dn(f,e.shape)},t.prototype.multinomial=function(e,t,n,r){Rl(e,"multinomial");for(var i=t?e:Dr(e),o=i.shape[0],a=i.shape[1],u=vn([o,n],"int32"),s=this.readSync(u.dataId),c=this.readSync(i.dataId),l=0;l<o;++l){var f=l*a,h=new Float32Array(a-1);h[0]=c[f];for(var d=1;d<h.length;++d)h[d]=h[d-1]+c[f+d];for(var p=Rn(r.toString()),v=l*n,y=0;y<n;++y){var m=p();s[v+y]=h.length;for(var g=0;g<h.length;g++)if(m<h[g]){s[v+y]=g;break}}}return u},t.prototype.oneHot=function(e,t,n,r){Rl(e,"oneHot");var i=new Float32Array(e.size*t);i.fill(r);for(var o=this.readSync(e.dataId),a=0;a<e.size;++a)o[a]>=0&&o[a]<t&&(i[a*t+o[a]]=n);return fn(i,[e.size,t],"int32")},t.prototype.nonMaxSuppression=function(e,t,n,r,i){return Rl(e,"nonMaxSuppression"),ii(this.readSync(e.dataId),this.readSync(t.dataId),n,r,i)},t.prototype.fft=function(e){return this.fftBatch(e,!1)},t.prototype.ifft=function(e){return this.fftBatch(e,!0)},t.prototype.fftBatch=function(e,t){for(var n=e.shape[0],r=e.shape[1],i=Ln(e.shape,"float32"),o=Ln(e.shape,"float32"),a=on(e).as2D(n,r),u=an(e).as2D(n,r),s=0;s<n;s++)for(var c=a.slice([s,0],[1,r]),l=u.slice([s,0],[1,r]),f=rn(c,l),h=this.readSync(this.fftImpl(f,t).dataId),d=0;d<r;d++){var p=Jr(h,d);i.values[s*r+d]=p.real,o.values[s*r+d]=p.imag}return rn(i.toTensor(),o.toTensor()).as2D(n,r)},t.prototype.fftImpl=function(e,t){var n=e.as1D(),r=n.size;if(this.isExponentOf2(r)){var i=this.fftRadix2(n,r,t).as2D(e.shape[0],e.shape[1]);return t&&(i=rn(on(i).div(cn(r)),an(i).div(cn(r)))),i}var o=this.readSync(e.dataId),a=function(e){for(var t=new Float32Array(e.length/2),n=new Float32Array(e.length/2),r=0;r<e.length;r+=2)t[r/2]=e[r],n[r/2]=e[r+1];return{real:t,imag:n}}(this.fourierTransformByMatmul(o,r,t));return rn(a.real,a.imag).as2D(e.shape[0],e.shape[1])},t.prototype.isExponentOf2=function(e){return 0==(e&e-1)},t.prototype.fftRadix2=function(e,t,n){if(1===t)return e;var r=this.readSync(e.dataId),i=t/2,o=function(e){for(var t=Math.ceil(e.length/4),n=new Float32Array(t),r=new Float32Array(t),i=0;i<e.length;i+=4)n[Math.floor(i/4)]=e[i],r[Math.floor(i/4)]=e[i+1];return{real:n,imag:r}}(r),a=rn(o.real,o.imag).as1D(),u=function(e){for(var t=Math.floor(e.length/4),n=new Float32Array(t),r=new Float32Array(t),i=2;i<e.length;i+=4)n[Math.floor(i/4)]=e[i],r[Math.floor(i/4)]=e[i+1];return{real:n,imag:r}}(r),s=rn(u.real,u.imag).as1D();a=this.fftRadix2(a,i,n),s=this.fftRadix2(s,i,n);var c=function(e,t){for(var n=new Float32Array(e/2),r=new Float32Array(e/2),i=0;i<Math.ceil(e/2);i++){var o=(t?2:-2)*Math.PI*(i/e);n[i]=Math.cos(o),r[i]=Math.sin(o)}return{real:n,imag:r}}(t,n),l=rn(c.real,c.imag).mul(s),f=a.add(l),h=a.sub(l),d=on(f).concat(on(h)),p=an(f).concat(an(h));return rn(d,p).as1D()},t.prototype.fourierTransformByMatmul=function(e,t,n){for(var r=new Float32Array(2*t),i=0;i<t;i++){for(var o=0,a=0,u=0;u<t;u++){var s=ti(i*u,t,n),c=Jr(e,u);o+=c.real*s.real-c.imag*s.imag,a+=c.real*s.imag+c.imag*s.real}n&&(o/=t,a/=t),ei(r,o,a,i)}return r},t.prototype.depthToSpace=function(e,t,n){x("NHWC"===n,function(){return"Only NHWC dataFormat supported on CPU for depthToSpace. Got "+n}),x(t>1,function(){return"blockSize should be > 1 for depthToSpace, but was: "+t});for(var r=e.shape[0],i=e.shape[1],o=e.shape[2],a=e.shape[3],u=i*t,s=o*t,c=a/(t*t),l=this.readSync(e.dataId),f=new Float32Array(r*u*s*c),h=0,d=0;d<r;++d)for(var p=0;p<u;++p)for(var v=Math.floor(p/t),y=p%t,m=0;m<s;++m)for(var g=Math.floor(m/t),b=(y*t+m%t)*c,w=0;w<c;++w)f[h++]=l[w+b+a*(g+o*(v+i*d))];return dn(f,[r,u,s,c])},t.prototype.broadcastedBinaryOp=function(e,t,n,r){var i=Nr(e.shape,t.shape),o=Ln(i,n),a=this.readSync(e.dataId),u=this.readSync(t.dataId),s=Rr(e.shape,i),c=Rr(t.shape,i),l=o.values;if(s.length+c.length===0)for(var f=0;f<l.length;++f)l[f]=r(a[f%a.length],u[f%u.length]);else{var h=this.bufferSync(e),d=this.bufferSync(t),p=function(n){var i=o.indexToLoc(n),f=i.slice(-e.rank);s.forEach(function(e){return f[e]=0});var p=h.locToIndex(f),v=i.slice(-t.rank);c.forEach(function(e){return v[e]=0});var y=d.locToIndex(v);l[n]=r(a[p],u[y])};for(f=0;f<l.length;++f)p(f)}return o.toTensor()},t.prototype.broadcastedBinaryComplexOp=function(e,t,n){var r=Nr(e.shape,t.shape),i=Ln(r,"float32"),o=Ln(r,"float32"),a=this.readSync(e.dataId),u=this.readSync(t.dataId),s=Rr(e.shape,r),c=Rr(t.shape,r),l=i.values,f=o.values;if(s.length+c.length===0)for(var h=0;h<l.length;h++){var d=h%a.length,p=h%u.length,v=n(a[2*d],a[2*d+1],u[2*p],u[2*p+1]);l[h]=v.real,f[h]=v.imag}else{var y=this.bufferSync(this.data.get(e.dataId).complexTensors.real),m=this.bufferSync(this.data.get(t.dataId).complexTensors.real),g=function(r){var o=i.indexToLoc(r),h=o.slice(-e.rank);s.forEach(function(e){return h[e]=0});var d=y.locToIndex(h),p=o.slice(-t.rank);c.forEach(function(e){return p[e]=0});var v=m.locToIndex(p),g=n(a[2*d],a[2*d+1],u[2*v],u[2*v+1]);l[r]=g.real,f[r]=g.imag};for(h=0;h<l.length;h++)g(h)}return this.complex(i.toTensor(),o.toTensor())},t.prototype.split=function(e,t,n){return li(e,t,n)},t.prototype.dispose=function(){},t.prototype.floatPrecision=function(){return 32},t.prototype.epsilon=function(){return 1e-7},t.prototype.cropAndResize=function(e,t,n,r,i,o){for(var a=e.shape,u=a[0],s=a[1],c=a[2],l=a[3],f=t.shape[0],h=r[0],d=r[1],p=Ln([f,h,d,l],"float32"),v=this.readSync(t.dataId),y=this.readSync(n.dataId),m=this.readSync(e.dataId),g=e.strides,b=p.strides,w=0;w<f;w++){var _=4*w,x=v[_],k=v[_+1],C=v[_+2],S=v[_+3],E=y[w];if(!(E>=u))for(var A=h>1?(C-x)*(s-1)/(h-1):0,O=d>1?(S-k)*(c-1)/(d-1):0,D=0;D<h;D++){var I=h>1?x*(s-1)+D*A:.5*(x+C)*(s-1);if(I<0||I>s-1)for(var T=0;T<d;T++)for(var M=0;M<l;M++){var P=M+T*b[2]+D*b[1]+w*b[0];p.values[P]=o}else if("bilinear"===i){var R=Math.floor(I),F=Math.ceil(I),N=I-R;for(T=0;T<d;T++)if((H=d>1?k*(c-1)+T*O:.5*(k+S)*(c-1))<0||H>c-1)for(M=0;M<l;M++)p.values[P=M+T*b[2]+D*b[1]+w*b[0]]=o;else{var j=Math.floor(H),L=Math.ceil(H),B=H-j;for(M=0;M<l;M++){var V=m[P=M+j*g[2]+R*g[1]+E*g[0]],W=m[P=M+L*g[2]+R*g[1]+E*g[0]],U=m[P=M+j*g[2]+F*g[1]+E*g[0]],z=V+(W-V)*B,q=U+(m[P=M+L*g[2]+F*g[1]+E*g[0]]-U)*B;p.values[P=M+T*b[2]+D*b[1]+w*b[0]]=z+(q-z)*N}}}else for(T=0;T<d;++T){var H;if((H=d>1?k*(c-1)+T*O:.5*(k+S)*(c-1))<0||H>c-1)for(M=0;M<l;M++)p.values[P=M+T*b[2]+D*b[1]+w*b[0]]=o;else{var G=Math.round(H),K=Math.round(I);for(M=0;M<l;M++)p.values[M+T*b[2]+D*b[1]+w*b[0]]=m[M+G*g[2]+K*g[1]+E*g[0]]}}}}return p.toTensor()},t.prototype.sparseToDense=function(e,t,n,r){var i=wr(0,e,n);return this.scatter(e,t,n,i.outputSize,i.sliceSize,i.numUpdates,i.sliceRank,i.strides,r,!1)},t.prototype.gatherND=function(e,t){var n=t.shape,r=n[n.length-1],i=yr(e,t),o=i[0],a=i[1],u=i[2],s=i[3];if(0===a)return un([],o,e.dtype);for(var c=new he([a,u],e.dtype),l=this.readSync(t.dataId),f=this.readSync(e.dataId),h=0;h<a;h++){for(var d=[],p=0,v=0;v<r;v++){var y=l[h*r+v];p+=y*s[v],d.push(y)}if(p<0||p>=e.size/u)throw new Error("Invalid indices: "+d+" does not index into "+e.shape);for(var m=0;m<u;m++)c.values[h*u+m]=f[p*u+m]}return c.toTensor().reshape(o)},t.prototype.scatterND=function(e,t,n){var r=wr(0,e,n),i=r.sliceRank,o=r.numUpdates,a=r.sliceSize,u=r.strides,s=r.outputSize,c=cn(0);return this.scatter(e,t,n,s,a,o,i,u,c,!0)},t.prototype.fill=function(e,t,n){var r=j(n=n||K(t),E(e));return r.fill(t),Pe.makeTensor(r,e,n,this)},t.prototype.onesLike=function(e){if("string"===e.dtype)throw new Error("onesLike is not supported for string tensors");return this.fill(e.shape,1,e.dtype)},t.prototype.zerosLike=function(e){var t=j(e.dtype,E(e.shape));return this.makeOutput(t,e.shape,e.dtype)},t.prototype.linspace=function(e,t,n){return Qr(e,t,n)},t.prototype.scatter=function(e,t,n,r,i,o,a,u,s,c){var l=[r/i,i],f=this.readSync(e.dataId),h=this.readSync(t.dataId);if(0===r)return un([],n,t.dtype);var d=new he(l,t.dtype);d.values.fill(this.readSync(s.dataId)[0]);for(var p=0;p<o;p++){for(var v=[],y=0,m=0;m<a;m++){var g=f[p*a+m];v.push(g),y+=g*u[m]}if(y<0||y>=r/i)throw new Error("Invalid indices: "+v+" does not index into "+n);for(var b=0;b<i;b++)c?d.values[y*i+b]+=h[p*i+b]:d.values[y*i+b]=0===t.rank?h[0]:h[p*i+b]}return d.toTensor().reshape(n)},t}(Mr);Pe.registerBackend("cpu",function(){return new Nl},1);for(var jl=0,Ll=[{kernelName:"NonMaxSuppressionV5",backendName:"cpu",kernelFunc:function(e){var t=e.input
vendor: 13,736 bytes, line 1
1s,n=e.attrs,r=t.boxes,i=t.scores,o=n.maxOutputSize,a=n.iouThreshold,u=n.scoreThreshold,s=n.softNmsSigma,c=e.backend;Rl(r,"NonMaxSuppressionWithScore");var l=oi(c.data.get(r.dataId).values,c.data.get(i.dataId).values,o,a,u,s);return[l.selectedIndices,l.selectedScores]}},{kernelName:"Square",backendName:"cpu",kernelFunc:function(e){var t=e.inputs.x,n=e.backend;Rl(t,"square");for(var r=n.data.get(t.dataId).values,i=new Float32Array(r.length),o=0;o<r.length;++o){var a=r[o];i[o]=a*a}return{dataId:n.write(i,t.shape,t.dtype),shape:t.shape,dtype:t.dtype}}},{kernelName:$a,backendName:"cpu",kernelFunc:function(e){var t=e.inputs,n=t.a,r=t.b,i=e.backend;Rl([n,r],$a);var o=i.data.get(n.dataId).values,a=i.data.get(r.dataId).values,u=function(e,t,n,r,i,o){var a=Nr(e,t),u=a.length,s=Z(a),c=N(i,E(a)),l=e.length,f=t.length,h=Z(e),d=Z(t),p=Rr(e,a),v=Rr(t,a);if(p.length+v.length===0)for(var y=0;y<c.length;++y)c[y]=o(n[y%n.length],r[y%r.length]);else{var m=function(e){var t=ae(e,u,s),i=t.slice(-l);p.forEach(function(e){return i[e]=0});var a=oe(i,l,h),y=t.slice(-f);v.forEach(function(e){return y[e]=0});var m=oe(y,f,d);c[e]=o(n[a],r[m])};for(y=0;y<c.length;++y)m(y)}return[c,a]}(n.shape,r.shape,o,a,n.dtype,function(e,t){var n=e-t;return n*n}),s=u[1];return{dataId:i.write(u[0],s,n.dtype),shape:s,dtype:n.dtype}}}];jl<Ll.length;jl++)v(Ll[jl]);for(var Bl,Vl=function(e){this.variableNames=["A"];var t=bi(),n=e[0],r=e[1];this.outputShape=e,this.userCode="\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+r+".0, "+n+".0);\n\n vec4 values = "+t.texture2D+"(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n setOutput(floor(value * 255.0 + 0.5));\n }\n "},Wl=function(e){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0;var t=bi(),n=e[0],r=e[1];this.outputShape=e,this.userCode="\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n\n vec4 result = vec4(0.);\n\n for(int row=0; row<=1; row++) {\n for(int col=0; col<=1; col++) {\n texC = coords[1] + row;\n depth = coords[2] + col;\n\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+r+".0, "+n+".0);\n vec4 values = "+t.texture2D+"(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n result[row * 2 + col] = floor(value * 255.0 + 0.5);\n }\n }\n\n "+t.output+" = result;\n }\n "},Ul=0,zl=[{kernelName:"FromPixels",backendName:"webgl",kernelFunc:function(e){var t=e.backend,n=e.inputs.pixels,r="undefined"!=typeof HTMLVideoElement&&n instanceof HTMLVideoElement,i="undefined"!=typeof HTMLImageElement&&n instanceof HTMLImageElement,o=r?[n.videoWidth,n.videoHeight]:[n.width,n.height],a=o[0],u=o[1],s=[u,a],l=[u,a,e.attrs.numChannels];(i||r)&&(null==Bl&&(Bl=document.createElement("canvas").getContext("2d")),Bl.canvas.width=a,Bl.canvas.height=u,Bl.drawImage(n,0,0,a,u),n=Bl.canvas);var f=t.makeTensorInfo(s,"int32");t.texData.get(f.dataId).usage=je.PIXELS,t.gpgpu.uploadPixelDataToTexture(t.getTexture(f.dataId),n);var h=c().getBool("WEBGL_PACK")?new Wl(l):new Vl(l),d=t.runWebGLProgram(h,[f],"int32");return t.disposeData(f.dataId),d}},{kernelName:"NonMaxSuppressionV5",backendName:"webgl",kernelFunc:function(e){var t=e.inputs,n=e.backend,r=e.attrs;Wt("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");var i=t.scores,o=r.maxOutputSize,a=r.iouThreshold,u=r.scoreThreshold,s=r.softNmsSigma,c=n,l=oi(c.readSync(t.boxes.dataId),c.readSync(i.dataId),o,a,u,s);return[l.selectedIndices,l.selectedScores]}},{kernelName:"Square",backendName:"webgl",kernelFunc:function(e){var t=e.inputs.x,n=e.backend,r=new Oa(t.shape,"return x * x;");return n.runWebGLProgram(r,[t],t.dtype)}},{kernelName:$a,backendName:"webgl",kernelFunc:function(e){var t=e.inputs,n=t.a,r=t.b,i=e.backend,o=c().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Ki("return (a - b) * (a - b);",n.shape,r.shape):new Hi("return (a - b) * (a - b);",n.shape,r.shape);return i.compileAndRun(o,[n,r])}}];Ul<zl.length;Ul++)v(zl[Ul]);for(var ql=0,Hl=[{kernelName:"Square",gradFunc:function(e,t){var n=t[0];return{x:function(){return e.mul(n.toFloat().mul(2))}}}},{kernelName:$a,gradFunc:function(e,t){var n=t[0],r=t[1],i=cn(2);return{a:function(){return fs(e,fs(i,ys(n,r)))},b:function(){return fs(e,fs(i,ys(r,n)))}}}}];ql<Hl.length;ql++)y(Hl[ql]);var Gl=function(){function e(){}return e.prototype.fetch=function(e,t){return fetch(e,t)},e.prototype.now=function(){return performance.now()},e.prototype.encode=function(e,t){if("utf-8"!==t&&"utf8"!==t)throw new Error("Browser's encoder only supports utf-8, but got "+t);return null==this.textEncoder&&(this.textEncoder=new TextEncoder),this.textEncoder.encode(e)},e.prototype.decode=function(e,t){return new TextDecoder(t).decode(e)},e}();c().get("IS_BROWSER")&&c().setPlatform("browser",new Gl);var Kl,Yl=function(){function e(){this.util=n(75118),this.textEncoder=new this.util.TextEncoder}return e.prototype.fetch=function(e,t){return null!=c().global.fetch?c().global.fetch(e,t):(null==Kl&&(Kl=n(83655)),Kl(e,t))},e.prototype.now=function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6},e.prototype.encode=function(e,t){if("utf-8"!==t&&"utf8"!==t)throw new Error("Node built-in encoder only supports utf-8, but got "+t);return this.textEncoder.encode(e)},e.prototype.decode=function(e,t){return 0===e.length?"":new this.util.TextDecoder(t).decode(e)},e}();c().get("IS_NODE")&&c().setPlatform("node",new Yl);var $l={float32:4,int32:4,uint16:2,uint8:1,bool:1};function Zl(e,t){for(var n={},r=0,i=function(t){var i=t.name,o=t.dtype,a=t.shape,u=E(a),s=void 0;if("quantization"in t){var c=t.quantization;if("uint8"!==c.dtype&&"uint16"!==c.dtype)throw new Error("Weight "+t.name+" has unknown quantization dtype "+c.dtype+". Supported quantization dtypes are: 'uint8' and 'uint16'.");var l=$l[c.dtype],f=e.slice(r,r+u*l),h="uint8"===c.dtype?new Uint8Array(f):new Uint16Array(f);if("float32"===o)s=Float32Array.from(h,function(e){return e*c.scale+c.min});else{if("int32"!==o)throw new Error("Unsupported dtype in weight '"+i+"': "+o);s=Int32Array.from(h,function(e){return Math.round(e*c.scale+c.min)})}r+=u*l}else if("string"===o){var d=E(t.shape);s=[];for(var p=0;p<d;p++){var v=new Uint32Array(e.slice(r,r+4))[0];r+=4;var y=new Uint8Array(e.slice(r,r+v));s.push(y),r+=v}}else{var m=$l[o];if(f=e.slice(r,r+u*m),"float32"===o)s=new Float32Array(f);else if("int32"===o)s=new Int32Array(f);else{if("bool"!==o)throw new Error("Unsupported dtype in weight '"+i+"': "+o);s=new Uint8Array(f)}r+=u*m}n[i]=un(s,a,o)},o=0,a=t;o<a.length;o++)i(a[o]);return n}function Ql(e){if(null===e)throw new Error("Invalid input value: "+JSON.stringify(e));var t=0,n=[];e.forEach(function(e){if(t+=e.byteLength,n.push(e.byteLength===e.buffer.byteLength?e:new e.constructor(e)),!(e instanceof Float32Array||e instanceof Int32Array||e instanceof Uint8Array))throw new Error("Unsupported TypedArray subtype: "+e.constructor.name)});var r=new Uint8Array(t),i=0;return n.forEach(function(e){r.set(new Uint8Array(e.buffer),i),i+=e.byteLength}),r.buffer}var Xl="undefined"!=typeof Buffer&&("undefined"==typeof Blob||"undefined"==typeof atob||"undefined"==typeof btoa);function Jl(e){return Xl?Buffer.byteLength(e):new Blob([e]).size}function ef(e){var t=0;e.forEach(function(e){t+=e.byteLength});var n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(new Uint8Array(e),r),r+=e.byteLength}),n.buffer}function tf(e){for(e=e.trim();e.endsWith("/");)e=e.slice(0,e.length-1);var t=e.split("/");return t[t.length-1]}function nf(e){if(e.modelTopology instanceof ArrayBuffer)throw new Error("Expected JSON model topology, received ArrayBuffer.");return{dateSaved:new Date,modelTopologyType:"JSON",modelTopologyBytes:null==e.modelTopology?0:Jl(JSON.stringify(e.modelTopology)),weightSpecsBytes:null==e.weightSpecs?0:Jl(JSON.stringify(e.weightSpecs)),weightDataBytes:null==e.weightData?0:e.weightData.byteLength}}var rf=function(){function e(){this.saveRouters=[],this.loadRouters=[]}return e.getInstance=function(){return null==e.instance&&(e.instance=new e),e.instance},e.registerSaveRouter=function(t){e.getInstance().saveRouters.push(t)},e.registerLoadRouter=function(t){e.getInstance().loadRouters.push(t)},e.getSaveHandlers=function(t){return e.getHandlers(t,"save")},e.getLoadHandlers=function(t,n){return e.getHandlers(t,"load",n)},e.getHandlers=function(t,n,r){var i=[];return("load"===n?e.getInstance().loadRouters:e.getInstance().saveRouters).forEach(function(e){var n=e(t,r);null!==n&&i.push(n)}),i},e}(),of="://",af=function(){function e(){this.managers={}}return e.getInstance=function(){return null==e.instance&&(e.instance=new e),e.instance},e.registerManager=function(t,n){x(null!=t,function(){return"scheme must not be undefined or null."}),t.endsWith(of)&&(t=t.slice(0,t.indexOf(of))),x(t.length>0,function(){return"scheme must not be an empty string."});var r=e.getInstance();x(null==r.managers[t],function(){return"A model store manager is already registered for scheme '"+t+"'."}),r.managers[t]=n},e.getManager=function(e){var t=this.getInstance().managers[e];if(null==t)throw new Error("Cannot find model manager for scheme '"+e+"'");return t},e.getSchemes=function(){return Object.keys(this.getInstance().managers)},e}();function uf(e){if(-1===e.indexOf(of))throw new Error("The url string provided does not contain a scheme. Supported schemes are: "+af.getSchemes().join(","));return{scheme:e.split(of)[0],path:e.split(of)[1]}}function sf(e,t,n){return void 0===n&&(n=!1),o(this,void 0,void 0,function(){var r,i,o,u,s,c,l,f,h;return a(this,function(a){switch(a.label){case 0:return x(e!==t,function(){return"Old path and new path are the same: '"+e+"'"}),x((r=rf.getLoadHandlers(e)).length>0,function(){return"Copying failed because no load handler is found for source URL "+e+"."}),x(r.length<2,function(){return"Copying failed because more than one ("+r.length+") load handlers for source URL "+e+"."}),i=r[0],x((o=rf.getSaveHandlers(t)).length>0,function(){return"Copying failed because no save handler is found for destination URL "+t+"."}),x(o.length<2,function(){return"Copying failed because more than one ("+r.length+") save handlers for destination URL "+t+"."}),u=o[0],s=uf(e).scheme,c=uf(e).path,l=s===uf(e).scheme,[4,i.load()];case 1:return f=a.sent(),n&&l?[4,af.getManager(s).removeModel(c)]:[3,3];case 2:a.sent(),a.label=3;case 3:return[4,u.save(f)];case 4:return h=a.sent(),!n||l?[3,6]:[4,af.getManager(s).removeModel(c)];case 5:a.sent(),a.label=6;case 6:return[2,h.modelArtifactsInfo]}})})}var cf="models_store",lf="model_info_store";function ff(){if(!c().getBool("IS_BROWSER"))throw new Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");var e=window||self,t=e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB||e.shimIndexedDB;if(null==t)throw new Error("The current browser does not appear to support IndexedDB.");return t}function hf(e){var t=e.result;t.createObjectStore(cf,{keyPath:"modelPath"}),t.createObjectStore(lf,{keyPath:"modelPath"})}var df=function(){function e(e){if(this.indexedDB=ff(),null==e||!e)throw new Error("For IndexedDB, modelPath must not be null, undefined or empty.");this.modelPath=e}return e.prototype.save=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){if(e.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");return[2,this.databaseAction(this.modelPath,e)]})})},e.prototype.load=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.databaseAction(this.modelPath)]})})},e.prototype.databaseAction=function(e,t){var n=this;return new Promise(function(e,r){var i=n.indexedDB.open("tensorflowjs",1);i.onupgradeneeded=function(){return hf(i)},i.onsuccess=function(){var o=i.result;if(null==t){var a=o.transaction(cf,"readonly"),u=a.objectStore(cf).get(n.modelPath);u.onsuccess=function(){if(null==u.result)return o.close(),r(new Error("Cannot find model with path '"+n.modelPath+"' in IndexedDB."));e(u.result.modelArtifacts)},u.onerror=function(e){return o.close(),r(u.error)},a.oncomplete=function(){return o.close()}}else{var s,c=nf(t),l=o.transaction(lf,"readwrite"),f=l.objectStore(lf),h=f.put({modelPath:n.modelPath,modelArtifactsInfo:c});h.onsuccess=function(){var i=(s=o.transaction(cf,"readwrite")).objectStore(cf).put({modelPath:n.modelPath,modelArtifacts:t,modelArtifactsInfo:c});i.onsuccess=function(){return e({modelArtifactsInfo:c})},i.onerror=function(e){var t=(f=l.objectStore(lf)).delete(n.modelPath);t.onsuccess=function(){return o.close(),r(i.error)},t.onerror=function(e){return o.close(),r(i.error)}}},h.onerror=function(e){return o.close(),r(h.error)},l.oncomplete=function(){null==s?o.close():s.oncomplete=function(){return o.close()}}}},i.onerror=function(e){return r(i.error)}})},e.URL_SCHEME="indexeddb://",e}
vendor: 4,180 bytes, line 1
1(),pf=function(e){return c().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(df.URL_SCHEME)?(t=e.slice(df.URL_SCHEME.length),new df(t)):null;var t};rf.registerSaveRouter(pf),rf.registerLoadRouter(pf);var vf=function(){function e(){this.indexedDB=ff()}return e.prototype.listModels=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){return[2,new Promise(function(t,n){var r=e.indexedDB.open("tensorflowjs",1);r.onupgradeneeded=function(){return hf(r)},r.onsuccess=function(){var e=r.result,i=e.transaction(lf,"readonly"),o=i.objectStore(lf).getAll();o.onsuccess=function(){for(var e={},n=0,r=o.result;n<r.length;n++){var i=r[n];e[i.modelPath]=i.modelArtifactsInfo}t(e)},o.onerror=function(t){return e.close(),n(o.error)},i.oncomplete=function(){return e.close()}},r.onerror=function(e){return n(r.error)}})]})})},e.prototype.removeModel=function(e){return o(this,void 0,void 0,function(){var t=this;return a(this,function(n){var r;return e=(r=e).startsWith(df.URL_SCHEME)?r.slice(df.URL_SCHEME.length):r,[2,new Promise(function(n,r){var i=t.indexedDB.open("tensorflowjs",1);i.onupgradeneeded=function(){return hf(i)},i.onsuccess=function(){var t,o=i.result,a=o.transaction(lf,"readwrite"),u=a.objectStore(lf),s=u.get(e);s.onsuccess=function(){if(null==s.result)return o.close(),r(new Error("Cannot find model with path '"+e+"' in IndexedDB."));var i=u.delete(e),a=function(){var i=(t=o.transaction(cf,"readwrite")).objectStore(cf).delete(e);i.onsuccess=function(){return n(s.result.modelArtifactsInfo)},i.onerror=function(e){return r(s.error)}};i.onsuccess=a,i.onerror=function(e){return a(),o.close(),r(s.error)}},s.onerror=function(e){return o.close(),r(s.error)},a.oncomplete=function(){null==t?o.close():t.oncomplete=function(){return o.close()}}},i.onerror=function(e){return r(i.error)}})]})})},e}();if(c().getBool("IS_BROWSER"))try{af.registerManager(df.URL_SCHEME,new vf)}catch(xe){}var yf="/",mf="tensorflowjs_models",gf="info",bf="model_topology",wf="weight_specs",_f="weight_data",xf="model_metadata";function kf(e){return{info:[mf,e,gf].join(yf),topology:[mf,e,bf].join(yf),weightSpecs:[mf,e,wf].join(yf),weightData:[mf,e,_f].join(yf),modelMetadata:[mf,e,xf].join(yf)}}function Cf(e){var t=e.split(yf);if(t.length<3)throw new Error("Invalid key format: "+e);return t.slice(1,t.length-1).join(yf)}var Sf=function(){function e(e){if(!c().getBool("IS_BROWSER")||"undefined"==typeof window||void 0===window.localStorage)throw new Error("The current environment does not support local storage.");if(this.LS=window.localStorage,null==e||!e)throw new Error("For local storage, modelPath must not be null, undefined or empty.");this.modelPath=e,this.keys=kf(this.modelPath)}return e.prototype.save=function(e){return o(this,void 0,void 0,function(){var t,n,r;return a(this,function(i){if(e.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");t=JSON.stringify(e.modelTopology),n=JSON.stringify(e.weightSpecs),r=nf(e);try{return this.LS.setItem(this.keys.info,JSON.stringify(r)),this.LS.setItem(this.keys.topology,t),this.LS.setItem(this.keys.weightSpecs,n),this.LS.setItem(this.keys.weightData,function(e){if(Xl)return Buffer.from(e).toString("base64");for(var t=new Uint8Array(e),n="",r=0,i=t.length;r<i;r++)n+=String.fromCharCode(t[r]);return btoa(n)}(e.weightData)),this.LS.setItem(this.keys.modelMetadata,JSON.stringify({format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,userDefinedMetadata:e.userDefinedMetadata})),[2,{modelArtifactsInfo:r}]}catch(o){throw this.LS.removeItem(this.keys.info),this.LS.removeItem(this.keys.topology),this.LS.removeItem(this.keys.weightSpecs),this.LS.removeItem(this.keys.weightData),this.LS.removeItem(this.keys.modelMetadata),new Error("Failed to save model '"+this.modelPath+"' to local storage: size quota being exceeded is a possible cause of this failure: modelTopologyBytes="+r.modelTopologyBytes+", weightSpecsBytes="+r.weightSpecsBytes+", weightDataBytes="+r.weightDataBytes+".")}return[2]})})},e.prototype.load=function(){return o(this,void 0,void 0,function(){var e,t,n,r,i,o,u;
vendor: 48,377 bytes, line 1
1return a(this,function(a){if(null==(e=JSON.parse(this.LS.getItem(this.keys.info))))throw new Error("In local storage, there is no model with name '"+this.modelPath+"'");if("JSON"!==e.modelTopologyType)throw new Error("BrowserLocalStorage does not support loading non-JSON model topology yet.");if(t={},null==(n=JSON.parse(this.LS.getItem(this.keys.topology))))throw new Error("In local storage, the topology of model '"+this.modelPath+"' is missing.");if(t.modelTopology=n,null==(r=JSON.parse(this.LS.getItem(this.keys.weightSpecs))))throw new Error("In local storage, the weight specs of model '"+this.modelPath+"' are missing.");if(t.weightSpecs=r,null!=(i=this.LS.getItem(this.keys.modelMetadata))&&(o=JSON.parse(i),t.format=o.format,t.generatedBy=o.generatedBy,t.convertedBy=o.convertedBy,t.userDefinedMetadata=o.userDefinedMetadata),null==(u=this.LS.getItem(this.keys.weightData)))throw new Error("In local storage, the binary weight values of model '"+this.modelPath+"' are missing.");return t.weightData=function(e){if(Xl){var t=Buffer.from(e,"base64");return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}for(var n=atob(e),r=new Uint8Array(n.length),i=0;i<n.length;++i)r.set([n.charCodeAt(i)],i);return r.buffer}(u),[2,t]})})},e.URL_SCHEME="localstorage://",e}(),Ef=function(e){return c().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(Sf.URL_SCHEME)?(t=e.slice(Sf.URL_SCHEME.length),new Sf(t)):null;var t};rf.registerSaveRouter(Ef),rf.registerLoadRouter(Ef);var Af=function(){function e(){x(c().getBool("IS_BROWSER"),function(){return"Current environment is not a web browser"}),x("undefined"==typeof window||void 0!==window.localStorage,function(){return"Current browser does not appear to support localStorage"}),this.LS=window.localStorage}return e.prototype.listModels=function(){return o(this,void 0,void 0,function(){var e,t,n,r,i,o;return a(this,function(a){for(e={},t=mf+yf,n=yf+gf,r=0;r<this.LS.length;++r)(i=this.LS.key(r)).startsWith(t)&&i.endsWith(n)&&(o=Cf(i),e[o]=JSON.parse(this.LS.getItem(i)));return[2,e]})})},e.prototype.removeModel=function(e){return o(this,void 0,void 0,function(){var t,n;return a(this,function(r){var i;if(e=(i=e).startsWith(Sf.URL_SCHEME)?i.slice(Sf.URL_SCHEME.length):i,t=kf(e),null==this.LS.getItem(t.info))throw new Error("Cannot find model at path '"+e+"'");return n=JSON.parse(this.LS.getItem(t.info)),this.LS.removeItem(t.info),this.LS.removeItem(t.topology),this.LS.removeItem(t.weightSpecs),this.LS.removeItem(t.weightData),[2,n]})})},e}();if(c().getBool("IS_BROWSER"))try{af.registerManager(Sf.URL_SCHEME,new Af)}catch(xe){}function Of(e){return new Promise(function(e){return setTimeout(e)}).then(e)}var Df=function(){function e(t){if(!c().getBool("IS_BROWSER"))throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");t.startsWith(e.URL_SCHEME)&&(t=t.slice(e.URL_SCHEME.length)),null!=t&&0!==t.length||(t="model"),this.modelTopologyFileName=t+".json",this.weightDataFileName=t+".weights.bin"}return e.prototype.save=function(e){return o(this,void 0,void 0,function(){var t,n,r,i;return a(this,function(o){switch(o.label){case 0:if("undefined"==typeof document)throw new Error("Browser downloads are not supported in this environment since `document` is not present");if(t=window.URL.createObjectURL(new Blob([e.weightData],{type:"application/octet-stream"})),!(e.modelTopology instanceof ArrayBuffer))return[3,1];throw new Error("BrowserDownloads.save() does not support saving model topology in binary formats yet.");case 1:return n=window.URL.createObjectURL(new Blob([JSON.stringify({modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,weightsManifest:[{paths:["./"+this.weightDataFileName],weights:e.weightSpecs}]})],{type:"application/json"})),(r=null==this.jsonAnchor?document.createElement("a"):this.jsonAnchor).download=this.modelTopologyFileName,r.href=n,[4,Of(function(){return r.dispatchEvent(new MouseEvent("click"))})];case 2:return o.sent(),null==e.weightData?[3,4]:((i=null==this.weightDataAnchor?document.createElement("a"):this.weightDataAnchor).download=this.weightDataFileName,i.href=t,[4,Of(function(){return i.dispatchEvent(new MouseEvent("click"))})]);case 3:o.sent(),o.label=4;case 4:return[2,{modelArtifactsInfo:nf(e)}]}})})},e.URL_SCHEME="downloads://",e}(),If=function(){function e(e){if(null==e||e.length<1)throw new Error("When calling browserFiles, at least 1 file is required, but received "+e);this.files=e}return e.prototype.load=function(){return o(this,void 0,void 0,function(){var e,t,n=this;return a(this,function(r){return e=this.files[0],t=this.files.slice(1),[2,new Promise(function(r,i){var o=new FileReader;o.onload=function(o){var a=JSON.parse(o.target.result),u=a.modelTopology;if(null!=u){0===t.length&&r({modelTopology:u});var s=a.weightsManifest;if(null!=s){var c;try{c=n.checkManifestAndWeightFiles(s,t)}catch(d){return void i(d)}var l=[],f=[],h=[];s.forEach(function(e){e.paths.forEach(function(e){f.push(e),h.push(null)}),l.push.apply(l,e.weights)}),s.forEach(function(e){e.paths.forEach(function(e){var t=new FileReader;t.onload=function(t){var n=t.target.result,i=f.indexOf(e);h[i]=n,-1===h.indexOf(null)&&r({modelTopology:u,weightSpecs:l,weightData:ef(h),format:a.format,generatedBy:a.generatedBy,convertedBy:a.convertedBy,userDefinedMetadata:a.userDefinedMetadata})},t.onerror=function(t){return i("Failed to weights data from file of path '"+e+"'.")},t.readAsArrayBuffer(c[e])})})}else i(new Error("weightManifest field is missing from file "+e.name))}else i(new Error("modelTopology field is missing from file "+e.name))},o.onerror=function(t){return i("Failed to read model topology and weights manifest JSON from file '"+e.name+"'. BrowserFiles supports loading Keras-style tf.Model artifacts only.")},o.readAsText(e)})]})})},e.prototype.checkManifestAndWeightFiles=function(e,t){for(var n=[],r=t.map(function(e){return tf(e.name)}),i={},o=0,a=e;o<a.length;o++)a[o].paths.forEach(function(e){var o=tf(e);if(-1!==n.indexOf(o))throw new Error("Duplicate file basename found in weights manifest: '"+o+"'");if(n.push(o),-1===r.indexOf(o))throw new Error("Weight file with basename '"+o+"' is not provided.");i[e]=t[r.indexOf(o)]});if(n.length!==t.length)throw new Error("Mismatch in the number of files in weights manifest ("+n.length+") and the number of weight files provided ("+t.length+").");return i},e}();function Tf(e,t,n,r){var i;x(null!=(i=e)&&Array.isArray(i)&&i.length>0,function(){return"promises must be a none empty array"}),function(e,t){x(e>=0&&e<=1,function(){return"Progress fraction must be in range [0, 1], but got startFraction "+e}),x(t>=0&&t<=1,function(){return"Progress fraction must be in range [0, 1], but got endFraction "+t}),x(t>=e,function(){return"startFraction must be no more than endFraction, but got startFraction "+e+" and endFraction "+t})}(n=null==n?0:n,r=null==r?1:r);var o=0;return Promise.all(e.map(function(i){return i.then(function(i){var a=n+ ++o/e.length*(r-n);return t(a),i}),i}))}function Mf(e,t){return o(this,void 0,void 0,function(){var n,r,i,o,u,s,l,f,h;return a(this,function(a){switch(a.label){case 0:return null==t&&(t={}),n=null==t.fetchFunc?c().platform.fetch:t.fetchFunc,r=e.map(function(e){return n(e,t.requestInit,{isBinary:!0})}),i=0,o=.5,null!=t.onProgress?[3,2]:[4,Promise.all(r)];case 1:return u=a.sent(),[3,4];case 2:return[4,Tf(r,t.onProgress,i,o)];case 3:u=a.sent(),a.label=4;case 4:return s=u.map(function(e){return e.arrayBuffer()}),l=.5,f=1,null!=t.onProgress?[3,6]:[4,Promise.all(s)];case 5:return h=a.sent(),[3,8];case 6:return[4,Tf(s,t.onProgress,l,f)];case 7:h=a.sent(),a.label=8;case 8:return[2,h]}})})}function Pf(e){var t=this;return function(n,r,i){return void 0===r&&(r=""),o(t,void 0,void 0,function(){var t,o,u,s,c,l,f,h,d,p;return a(this,function(a){switch(a.label){case 0:if(t=n.map(function(){return!1}),o={},u=null!=i?i.map(function(){return!1}):[],s=[],n.forEach(function(e,n){var r=0;e.weights.forEach(function(e){var a=$l["quantization"in e?e.quantization.dtype:e.dtype]*E(e.shape),c=function(){t[n]=!0,null==o[n]&&(o[n]=[]),o[n].push({manifestEntry:e,groupOffset:r,sizeBytes:a})};null!=i?i.forEach(function(t,n){t===e.name&&(c(),u[n]=!0)}):c(),s.push(e.name),r+=a})}),!u.every(function(e){return e}))throw c=i.filter(function(e,t){return!u[t]}),new Error("Could not find weights in manifest with names: "+c.join(", ")+". \nManifest JSON has weights with names: "+s.join(", ")+".");return l=t.reduce(function(e,t,n){return t&&e.push(n),e},[]),f=[],l.forEach(function(e){n[e].paths.forEach(function(e){var t=r+(r.endsWith("/")?"":"/")+e;f.push(t)})}),[4,e(f)];case 1:return h=a.sent(),d={},p=0,l.forEach(function(e){for(var t=n[e].paths.length,r=0,i=0;i<t;i++)r+=h[p+i].byteLength;for(var a=new ArrayBuffer(r),u=new Uint8Array(a),s=0,c=0;c<t;c++){var l=new Uint8Array(h[p+c]);u.set(l,s),s+=l.byteLength}o[e].forEach(function(e){var t=Zl(a.slice(e.groupOffset,e.groupOffset+e.sizeBytes),[e.manifestEntry]);for(var n in t)d[n]=t[n]}),p+=t}),[2,d]}})})}}rf.registerSaveRouter(function(e){return c().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(Df.URL_SCHEME)?(void 0===(t=e.slice(Df.URL_SCHEME.length))&&(t="model"),new Df(t)):null;var t});var Rf=function(){function e(e,t){if(this.DEFAULT_METHOD="POST",null==t&&(t={}),this.weightPathPrefix=t.weightPathPrefix,this.onProgress=t.onProgress,null!=t.fetchFunc?(x("function"==typeof t.fetchFunc,function(){return"Must pass a function that matches the signature of `fetch` (see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)"}),this.fetch=t.fetchFunc):this.fetch=c().platform.fetch,x(null!=e&&e.length>0,function(){return"URL path for http must not be null, undefined or empty."}),Array.isArray(e)&&x(2===e.length,function(){return"URL paths for http must have a length of 2, (actual length is "+e.length+")."}),this.path=e,null!=t.requestInit&&null!=t.requestInit.body)throw new Error("requestInit is expected to have no pre-existing body, but has one.");this.requestInit=t.requestInit||{}}return e.prototype.save=function(e){return o(this,void 0,void 0,function(){var t,n;return a(this,function(r){switch(r.label){case 0:if(e.modelTopology instanceof ArrayBuffer)throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");return(t=Object.assign({method:this.DEFAULT_METHOD},this.requestInit)).body=new FormData,t.body.append("model.json",new Blob([JSON.stringify({modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,userDefinedMetadata:e.userDefinedMetadata,weightsManifest:[{paths:["./model.weights.bin"],weights:e.weightSpecs}]})],{type:"application/json"}),"model.json"),null!=e.weightData&&t.body.append("model.weights.bin",new Blob([e.weightData],{type:"application/octet-stream"}),"model.weights.bin"),[4,this.fetch(this.path,t)];case 1:if((n=r.sent()).ok)return[2,{modelArtifactsInfo:nf(e),responses:[n]}];throw new Error("BrowserHTTPRequest.save() failed due to HTTP response status "+n.status+".")}})})},e.prototype.load=function(){return o(this,void 0,void 0,function(){var e,t,n,r,i,o,u,s,c,l,f,h;return a(this,function(a){switch(a.label){case 0:return[4,this.fetch(this.path,this.requestInit)];case 1:if(!(e=a.sent()).ok)throw new Error("Request to "+this.path+" failed with status code "+e.status+". Please verify this URL points to the model JSON of the model to load.");a.label=2;case 2:return a.trys.push([2,4,,5]),[4,e.json()];case 3:return t=a.sent(),[3,5];case 4:throw a.sent(),n="Failed to parse model JSON of response from "+this.path+".",this.path.endsWith(".pb")?n+=" Your path contains a .pb file extension. Support for .pb models have been removed in TensorFlow.js 1.0 in favor of .json models. You can re-convert your Python TensorFlow model using the TensorFlow.js 1.0 conversion scripts or you can convert your.pb models with the 'pb2json'NPM script in the tensorflow/tfjs-converter repository.":n+=" Please make sure the server is serving valid JSON for this request.",new Error(n);case 5:if(i=t.weightsManifest,o=t.generatedBy,u=t.convertedBy,s=t.format,c=t.userDefinedMetadata,null==(r=t.modelTopology)&&null==i)throw new Error("The JSON from HTTP path "+this.path+" contains neither model topology or manifest for weights.");return null==i?[3,7]:[4,this.loadWeights(i)];case 6:h=a.sent(),l=h[0],f=h[1],a.label=7;case 7:return[2,{modelTopology:r,weightSpecs:l,weightData:f,userDefinedMetadata:c,generatedBy:o,convertedBy:u,format:s}]}})})},e.prototype.loadWeights=function(e){return o(this,void 0,void 0,function(){var t,n,r,i,o,u,s,c,l;return a(this,function(a){switch(a.label){case 0:for(h=(f=Array.isArray(this.path)?this.path[1]:this.path).lastIndexOf("/"),d=f.lastIndexOf("?"),t=[f.substring(0,h)+"/",d>h?f.substring(d):""],n=t[0],r=t[1],i=this.weightPathPrefix||n,o=[],u=0,s=e;u<s.length;u++)o.push.apply(o,s[u].weights);return c=[],e.forEach(function(e){e.paths.forEach(function(e){c.push(i+e+r)})}),[4,Mf(c,{requestInit:this.requestInit,fetchFunc:this.fetch,onProgress:this.onProgress})];case 1:return l=a.sent(),[2,[o,ef(l)]]}var f,h,d})})},e.URL_SCHEME_REGEX=/^https?:\/\//,e}();function Ff(e){return null!=e.match(Rf.URL_SCHEME_REGEX)}var Nf=function(e,t){return"undefined"==typeof fetch?null:(Array.isArray(e)?e.every(function(e){return Ff(e)}):Ff(e))?jf(e,{onProgress:t}):null};function jf(e,t){return new Rf(e,t)}rf.registerSaveRouter(Nf),rf.registerLoadRouter(Nf);var Lf,Bf=function(){function e(e){this.modelArtifacts=e}return e.prototype.load=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.modelArtifacts]})})},e}(),Vf=function(){function e(e){this.saveHandler=e}return e.prototype.save=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){return[2,this.saveHandler(e)]})})},e}(),Wf=Object.freeze({browserFiles:function(e){return new If(e)},browserHTTPRequest:function(e,t){return jf(e,t)},concatenateArrayBuffers:ef,decodeWeights:Zl,encodeWeights:function(e,t){return o(this,void 0,void 0,function(){var n,r,i,u,s,c=this;return a(this,function(l){switch(l.label){case 0:for(n=[],r=[],i=Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e),u=function(u){var s=i[u],l=Array.isArray(e)?e[u].tensor:e[s];if("float32"!==l.dtype&&"int32"!==l.dtype&&"bool"!==l.dtype&&"string"!==l.dtype)throw new Error("Unsupported dtype in weight '"+s+"': "+l.dtype);var f={name:s,shape:l.shape,dtype:l.dtype};if("string"===l.dtype){var h=new Promise(function(e){return o(c,void 0,void 0,function(){var t,n,r,i,o,u,s;return a(this,function(a){switch(a.label){case 0:return[4,l.bytes()];case 1:for(t=a.sent(),n=t.reduce(function(e,t){return e+t.length},0)+4*t.length,r=new Uint8Array(n),i=0,o=0;o<t.length;o++)u=t[o],s=new Uint8Array(new Uint32Array([u.length]).buffer),r.set(s,i),r.set(u,i+=4),i+=u.length;return e(r),[2]}})})});r.push(h)}else r.push(l.data());null!=t&&(f.group=t),n.push(f)},s=0;s<i.length;++s)u(s);return[4,Promise.all(r)];case 1:return[2,{data:Ql(l.sent()),specs:n}]}})})},fromMemory:function(e,t,n,r){return 1===arguments.length?null!=e.modelTopology||null!=e.weightSpecs?new Bf(e):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new Bf({modelTopology:e})):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new Bf({modelTopology:e,weightSpecs:t,weightData:n,trainingConfig:r}))},getLoadHandlers:function(e,t){return rf.getLoadHandlers(e,t)},getModelArtifactsInfoForJSON:nf,getSaveHandlers:function(e){return rf.getSaveHandlers(e)},http:jf,isHTTPScheme:Ff,loadWeights:function(e,t,n,r){return void 0===t&&(t=""),o(this,void 0,void 0,function(){return a(this,function(i){return[2,Pf(function(e){return Mf(e,{requestInit:r})})(e,t,n)]})})},registerLoadRouter:function(e){return rf.registerLoadRouter(e)},registerSaveRouter:function(e){return rf.registerSaveRouter(e)},weightsLoaderFactory:Pf,withSaveHandler:function(e){return new Vf(e)},copyModel:function(e,t){return o(this,void 0,void 0,function(){return a(this,function(n){return[2,sf(e,t,!1)]})})},listModels:function(){return o(this,void 0,void 0,function(){var e,t,n,r,i,o,u;return a(this,function(a){switch(a.label){case 0:e=af.getSchemes(),t={},n=0,r=e,a.label=1;case 1:return n<r.length?[4,af.getManager(i=r[n]).listModels()]:[3,4];case 2:for(u in o=a.sent())t[i+of+u]=o[u];a.label=3;case 3:return n++,[3,1];case 4:return[2,t]}})})},moveModel:function(e,t){return o(this,void 0,void 0,function(){return a(this,function(n){return[2,sf(e,t,!0)]})})},removeModel:function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){return t=uf(e),[2,af.getManager(t.scheme).removeModel(t.path)]})})}}),Uf=nn({confusionMatrix_:function(e,t,n){var r=qt(e,"labels","confusionMatrix"),i=qt(t,"predictions","confusionMatrix");x(null==n||n>0&&Number.isInteger(n),function(){return"If provided, numClasses must be a positive integer, but got "+n}),x(1===r.rank,function(){return"Expected the rank of labels to be 1, but got "+r.rank}),x(1===i.rank,function(){return"Expected the rank of predictions to be 1, but got "+i.rank}),x(r.shape[0]===i.shape[0],function(){return"Mismatch in the number of examples: "+r.shape[0]+" vs. "+i.shape[0]+". Labels and predictions should have the same number of elements."}),x(n>0&&Number.isInteger(n),function(){return"numClasses is required to be a positive integer, but got "+n});var o=Yn(r.asType("int32"),n),a=Yn(i.asType("int32"),n);return o.transpose().matMul(a).asType("int32")}}),zf=(Object.freeze({confusionMatrix:Uf}),nn({fromPixels_:function(e,t){if(void 0===t&&(t=3),t>4)throw new Error("Cannot construct Tensor with more than 4 channels from pixels.");if(null==e)throw new Error("pixels passed to tf.browser.fromPixels() can not be null");var n=!1,r=!1,i=!1,o=!1,a=!1;if(e.data instanceof Uint8Array)n=!0;else if("undefined"!=typeof ImageData&&e instanceof ImageData)r=!0;else if("undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement)i=!0;else if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement)o=!0;else{if(null==e.getContext)throw new Error("pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}, but was "+e.constructor.name);a=!0}if(i&&i&&e.readyState<2)throw new Error("The video element has not loaded data yet. Please wait for `loadeddata` event on the <video> element.");if(null!=d("FromPixels",Pe.backendName))return Pe.runKernel("FromPixels",{pixels:e},{numChannels:t});var u,s,c=i?[e.videoWidth,e.videoHeight]:[e.width,e.height],l=c[0],f=c[1];if(a?u=e.getContext("2d").getImageData(0,0,l,f).data:r||n?u=e.data:(o||i)&&(null==Lf&&(Lf=document.createElement("canvas").getContext("2d")),Lf.canvas.width=l,Lf.canvas.height=f,Lf.drawImage(e,0,0,l,f),u=Lf.getImageData(0,0,l,f).data),4===t)s=new Int32Array(u);else{var h=l*f;s=new Int32Array(h*t);for(var p=0;p<h;p++)for(var v=0;v<t;++v)s[p*t+v]=u[4*p+v]}return hn(s,[f,l,t],"int32")}})),qf=Object.freeze({toPixels:function(e,t){return o(this,void 0,void 0,function(){var n,r,i,o,u,s,c,l,f,h,d,p,v,y,m,g,b,w,_,x,k;return a(this,function(a){switch(a.label){case 0:if(n=qt(e,"img","toPixels"),e instanceof ye||(n=n.toInt()),2!==n.rank&&3!==n.rank)throw new Error("toPixels only supports rank 2 or 3 tensors, got rank "+n.rank+".");if(r=n.shape.slice(0,2),i=r[0],o=r[1],(u=2===n.rank?1:n.shape[2])>4||2===u)throw new Error("toPixels only supports depth of size 1, 3 or 4 but got "+u);return[4,n.data()];case 1:return s=a.sent(),c=n.min(),l=n.max(),[4,Promise.all([c.data(),l.data()])];case 2:if(f=a.sent(),h=f[0][0],d=f[1][0],c.dispose(),l.dispose(),"float32"===n.dtype){if(h<0||d>1)throw new Error("Tensor values for a float32 Tensor must be in the range [0 - 1] but got range ["+h+" - "+d+"].")}else{if("int32"!==n.dtype)throw new Error("Unsupported type for toPixels: "+n.dtype+". Please use float32 or int32 tensors.");if(h<0||d>255)throw new Error("Tensor values for a int32 Tensor must be in the range [0 - 255] but got range ["+h+" - "+d+"].")}for(p="float32"===n.dtype?255:1,v=new Uint8ClampedArray(o*i*4),y=0;y<i*o;++y)m=void 0,g=void 0,b=void 0,w=void 0,1===u?(m=s[y]*p,g=s[y]*p,b=s[y]*p,w=255):3===u?(m=s[3*y]*p,g=s[3*y+1]*p,b=s[3*y+2]*p,w=255):4===u&&(m=s[4*y]*p,g=s[4*y+1]*p,b=s[4*y+2]*p,w=s[4*y+3]*p),v[0+(_=4*y)]=Math.round(m),v[_+1]=Math.round(g),v[_+2]=Math.round(b),v[_+3]=Math.round(w);return null!=t&&(t.width=o,t.height=i,x=t.getContext("2d"),k=new ImageData(v,o,i),x.putImageData(k,0,0)),n!==e&&n.dispose(),[2,v]}})})},fromPixels:zf}),Hf=function(){function e(){}return e.prototype.getClassName=function(){return this.constructor.className},e.fromConfig=function(e,t){return new e(t)},e}(),Gf=function(){function e(){this.classNameMap={}}return e.getMap=function(){return null==e.instance&&(e.instance=new e),e.instance},e.register=function(t){e.getMap().classNameMap[t.className]=[t,t.fromConfig]},e}();function Kf(e){x(null!=e.className,function(){return"Class being registered does not have the static className property defined."}),x("string"==typeof e.className,function(){return"className is required to be a string, but got type "+typeof e.className}),x(e.className.length>0,function(){return"Class being registered has an empty-string as its className, which is disallowed."}),Gf.register(e)}function Yf(){return 32===Pe.backend.floatPrecision()?.001:.1}function $f(e,t,n){var r=!0;if((W(e)||W(t))&&(r=!1),W(e)&&W(t)&&(r=!0),r){var i=e.constructor.name,o=t.constructor.name;if(i!==o)throw new Error("Arrays are of different type. Actual: "+i+". Expected: "+o)}if(Array.isArray(e)&&Array.isArray(t)){var a=Ut(e),u=Ut(t);if(!A(a,u))throw new Error("Arrays have different shapes. Actual: ["+a+"]. Expected: ["+u+"]")}var s=W(e)?e:S(e),c=W(t)?t:S(t);if(s.length!==c.length)throw new Error("Arrays have different lengths actual: "+s.length+" vs expected: "+c.length+".\nActual: "+s+".\nExpected: "+c+".");for(var l=0;l<c.length;++l){var f=s[l],h=c[l];if(!n(f,h))throw new Error("Arrays differ: actual["+l+"] = "+f+", expected["+l+"] = "+h+".\nActual: "+s+".\nExpected: "+c+".")}}function Zf(e,t,n){return!isFinite(e)&&!isFinite(t)||!(isNaN(e)||isNaN(t)||Math.abs(e-t)>n)}Object.freeze({Serializable:Hf,SerializationMap:Gf,registerClass:Kf}),Object.freeze({TEST_EPSILON_FLOAT16:.1,expectArraysClose:function(e,t,n){return null==n&&(n=Yf()),$f(e,t,function(e,t){return Zf(e,t,n)})},testEpsilon:Yf,expectPromiseToFail:function(e,t){e().then(function(){return t.fail()},function(){return t()})},expectArraysEqual:function(e,t){var n="string"==typeof t||"number"==typeof t||"boolean"==typeof t?[t]:t;return q(e)||q(e[0])||q(t)||q(t[0])?$f(e,n,function(e,t){return e==t}):$f(e,t,function(e,t){return Zf(e,t,0)})},expectNumbersClose:function(e,t,n){if(null==n&&(n=Yf()),!Zf(e,t,n))throw new Error("Numbers differ: actual === "+e+", expected === "+t)},expectValuesInRange:function(e,t,n){for(var r=0;r<e.length;r++)if(e[r]<t||e[r]>n)throw new Error("Value out of range:"+e[r]+" low: "+t+", high: "+n)},expectArrayBuffersEqual:function(e,t){expect(new Float32Array(e)).toEqual(new Float32Array(t))}}),Object.freeze({gpgpu_util:zo,webgl_util:Nt,forceHalfFloat:function(){c().set("WEBGL_FORCE_F16_TEXTURES",!0)},MathBackendWebGL:Ka,setWebGLContext:We,GPGPUContext:qo});var Qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.minimize=function(e,t,n){void 0===t&&(t=!1);var r=this.computeGradients(e,n),i=r.value,o=r.grads;if(null!=n){var a=n.map(function(e){return{name:e.name,tensor:o[e.name]}});this.applyGradients(a)}else this.applyGradients(o);return Vt(o),t?i:(i.dispose(),null)},Object.defineProperty(t.prototype,"iterations",{get:function(){return null==this.iterations_&&(this.iterations_=0),this.iterations_},enumerable:!0,configurable:!0}),t.prototype.incrementIterations=function(){this.iterations_=this.iterations+1},t.prototype.computeGradients=function(e,t){return function(e,t){x(Y(e),function(){return"The f passed in variableGrads(f) must be a function"}),x(null==t||Array.isArray(t)&&t.every(function(e){return e instanceof ke}),function(){return"The varList passed in variableGrads(f, varList) must be an array of variables"});var n=null!=t;if(!n)for(var r in t=[],Pe.registeredVariables)t.push(Pe.registeredVariables[r]);var i=n?t.filter(function(e){return!e.trainable}):null,o=t.length;x((t=t.filter(function(e){return e.trainable})).length>0,function(){return"variableGrads() expects at least one of the input variables to be trainable, but none of the "+o+" variables is trainable."});var a=Pe.gradients(e,t,null,!0),u=a.value,s=a.grads;x(s.some(function(e){return null!=e}),function(){return"Cannot find a connection between any variable and the result of the loss function y=f(x). Please make sure the operations that use variables are inside the function f passed to minimize()."}),x(0===u.rank,function(){return"The f passed in variableGrads(f) must return a scalar, but it returned a rank-"+u.rank+" tensor"});var c={};return t.forEach(function(e,t){null!=s[t]&&(c[e.name]=s[t])}),null!=i&&i.forEach(function(e){return c[e.name]=null}),{value:u,grads:c}}(e,t)},t.prototype.dispose=function(){null!=this.iterations_&&Vt(this.iterations_)},t.prototype.saveIterations=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return null==this.iterations_&&(this.iterations_=0),[2,{name:"iter",tensor:cn(this.iterations_,"int32")}]})})},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("getWeights() is not implemented for this optimizer yet.")})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("setWeights() is not implemented for this optimizer class "+this.getClassName())})})},t.prototype.extractIterations=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return t=this,[4,e[0].tensor.data()];case 1:return t.iterations_=n.sent()[0],[2,e.slice(1)]}})})},t}(Hf);Object.defineProperty(Qf,Symbol.hasInstance,{value:function(e){return null!=e.minimize&&null!=e.computeGradients&&null!=e.applyGradients}});var Xf=function(e){function t(t,n,r){void 0===r&&(r=null);var i=e.call(this)||this;return i.learningRate=t,i.rho=n,i.epsilon=r,i.accumulatedGrads=[],i.accumulatedUpdates=[],null==r&&(i.epsilon=Pe.backend.epsilon()),i}return i(t,e),t.prototype.applyGradients=function(e){var t=this;(Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e)).forEach(function(n,r){var i=Pe.registeredVariables[n];null==t.accumulatedGrads[r]&&(t.accumulatedGrads[r]={originalName:n+"/accum_grad",variable:Bt(function(){return bn(i).variable(!1)})}),null==t.accumulatedUpdates[r]&&(t.accumulatedUpdates[r]={originalName:n+"/accum_var",variable:Bt(function(){return bn(i).variable(!1)})});var o=Array.isArray(e)?e[r].tensor:e[n];if(null!=o){var a=t.accumulatedGrads[r].variable,u=t.accumulatedUpdates[r].variable;Bt(function(){var e=a.mul(t.rho).add(o.square().mul(1-t.rho)),n=u.add(t.epsilon).sqrt().div(a.add(t.epsilon).sqrt()).mul(o),r=u.mul(t.rho).add(n.square().mul(1-t.rho));a.assign(e),u.assign(r);var s=n.mul(-t.learningRate).add(i);i.assign(s)})}}),this.incrementIterations()},t.prototype.dispose=function(){null!=this.accumulatedUpdates&&(Vt(this.accumulatedGrads.map(function(e){return e.variable})),Vt(this.accumulatedUpdates.map(function(e){return e.variable})))},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return e=this.accumulatedGrads.concat(this.accumulatedUpdates),[4,this.saveIterations()];case 1:return[2,[t.sent()].concat(e.map(function(e){return{name:e.originalName,tensor:e.variable}}))]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return[4,this.extractIterations(e)];case 1:return e=n.sent(),this.accumulatedGrads=e.slice(0,t=e.length/2).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),this.accumulatedUpdates=e.slice(t,2*t).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,rho:this.rho,epsilon:this.epsilon}},t.fromConfig=function(e,t){return new e(t.learningRate,t.rho,t.epsilon)},t.className="Adadelta",t}(Qf);Kf(Xf);var Jf=function(e){function t(t,n){void 0===n&&(n=.1);var r=e.call(this)||this;return r.learningRate=t,r.initialAccumulatorValue=n,r.accumulatedGrads=[],r}return i(t,e),t.prototype.applyGradients=function(e){var t=this;(Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e)).forEach(function(n,r){var i=Pe.registeredVariables[n];null==t.accumulatedGrads[r]&&(t.accumulatedGrads[r]={originalName:n+"/accumulator",variable:Bt(function(){return yn(i.shape,t.initialAccumulatorValue).variable(!1)})});var o=Array.isArray(e)?e[r].tensor:e[n];if(null!=o){var a=t.accumulatedGrads[r].variable;Bt(function(){var e=a.add(o.square());a.assign(e);var n=o.div(e.add(Pe.backend.epsilon()).sqrt()).mul(-t.learningRate).add(i);i.assign(n)})}}),this.incrementIterations()},t.prototype.dispose=function(){null!=this.accumulatedGrads&&Vt(this.accumulatedGrads.map(function(e){return e.variable}))},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()].concat(this.accumulatedGrads.map(function(e){return{name:e.originalName,tensor:e.variable}}))]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.extractIterations(e)];case 1:return e=t.sent(),this.accumulatedGrads=e.map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,initialAccumulatorValue:this.initialAccumulatorValue}},t.fromConfig=function(e,t){return new e(t.learningRate,t.initialAccumulatorValue)},t.className="Adagrad",t}(Qf);Kf(Jf);var eh=function(e){function t(t,n,r,i){void 0===i&&(i=null);var o=e.call(this)||this;return o.learningRate=t,o.beta1=n,o.beta2=r,o.epsilon=i,o.accumulatedFirstMoment=[],o.accumulatedSecondMoment=[],Bt(function(){o.accBeta1=cn(n).variable(),o.accBeta2=cn(r).variable()}),null==i&&(o.epsilon=Pe.backend.epsilon()),o}return i(t,e),t.prototype.applyGradients=function(e){var t=this,n=Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e);Bt(function(){var r=ys(1,t.accBeta1),i=ys(1,t.accBeta2);n.forEach(function(n,o){var a=Pe.registeredVariables[n];null==t.accumulatedFirstMoment[o]&&(t.accumulatedFirstMoment[o]={originalName:n+"/m",variable:Bt(function(){return bn(a).variable(!1)})}),null==t.accumulatedSecondMoment[o]&&(t.accumulatedSecondMoment[o]={originalName:n+"/v",variable:Bt(function(){return bn(a).variable(!1)})});var u=Array.isArray(e)?e[o].tensor:e[n];if(null!=u){var s=t.accumulatedFirstMoment[o].variable,c=t.accumulatedSecondMoment[o].variable,l=s.mul(t.beta1).add(u.mul(1-t.beta1)),f=c.mul(t.beta2).add(u.square().mul(1-t.beta2)),h=l.div(r),d=f.div(i);s.assign(l),c.assign(f);var p=h.div(d.sqrt().add(t.epsilon)).mul(-t.learningRate).add(a);a.assign(p)}}),t.accBeta1.assign(t.accBeta1.mul(t.beta1)),t.accBeta2.assign(t.accBeta2.mul(t.beta2))}),this.incrementIterations()},t.prototype.dispose=function(){this.accBeta1.dispose(),this.accBeta2.dispose(),null!=this.accumulatedFirstMoment&&Vt(this.accumulatedFirstMoment.map(function(e){return e.variable})),null!=this.accumulatedSecondMoment&&Vt(this.accumulatedSecondMoment.map(function(e){return e.variable}))},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return e=this.accumulatedFirstMoment.concat(this.accumulatedSecondMoment),[4,this.saveIterations()];case 1:return[2,[t.sent()].concat(e.map(function(e){return{name:e.originalName,tensor:e.variable}}))]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){var t,n=this;return a(this,function(r){switch(r.label){case 0:return[4,this.extractIterations(e)];case 1:return e=r.sent(),Bt(function(){n.accBeta1.assign(ds(n.beta1,n.iterations_+1)),n.accBeta2.assign(ds(n.beta2,n.iterations_+1))}),this.accumulatedFirstMoment=e.slice(0,t=e.length/2).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),this.accumulatedSecondMoment=e.slice(t,2*t).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon}},t.fromConfig=function(e,t){return new e(t.learningRate,t.beta1,t.beta2,t.epsilon)},t.className="Adam",t}(Qf);Kf(eh);var th=function(e){function t(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=0);var a=e.call(this)||this;return a.learningRate=t,a.beta1=n,a.beta2=r,a.epsilon=i,a.decay=o,a.accumulatedFirstMoment=[],a.accumulatedWeightedInfNorm=[],Bt(function(){a.iteration=cn(0).variable(),a.accBeta1=cn(n).variable()}),null==i&&(a.epsilon=Pe.backend.epsilon()),a}return i(t,e),t.prototype.applyGradients=function(e){var t=this,n=Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e);Bt(function(){var r=ys(1,t.accBeta1),i=ts(-t.learningRate,t.iteration.mul(t.decay).add(1));n.forEach(function(n,o){var a=Pe.registeredVariables[n];null==t.accumulatedFirstMoment[o]&&(t.accumulatedFirstMoment[o]={originalName:n+"/m",variable:bn(a).variable(!1)}),null==t.accumulatedWeightedInfNorm[o]&&(t.accumulatedWeightedInfNorm[o]={originalName:n+"/v",variable:bn(a).variable(!1)});var u=Array.isArray(e)?e[o].tensor:e[n];if(null!=u){var s=t.accumulatedFirstMoment[o].variable,c=t.accumulatedWeightedInfNorm[o].variable,l=s.mul(t.beta1).add(u.mul(1-t.beta1)),f=c.mul(t.beta2),h=u.abs(),d=f.maximum(h);s.assign(l),c.assign(d);var p=i.div(r).mul(l.div(d.add(t.epsilon))).add(a);a.assign(p)}}),t.iteration.assign(t.iteration.add(1)),t.accBeta1.assign(t.accBeta1.mul(t.beta1))}),this.incrementIterations()},t.prototype.dispose=function(){this.accBeta1.dispose(),this.iteration.dispose(),null!=this.accumulatedFirstMoment&&Vt(this.accumulatedFirstMoment.map(function(e){return e.variable})),null!=this.accumulatedWeightedInfNorm&&Vt(this.accumulatedWeightedInfNorm.map(function(e){return e.variable}))},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("getWeights() is not implemented for Adamax yet.")})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("setWeights() is not implemented for Adamax yet.")})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon,decay:this.decay}},t.fromConfig=function(e,t){return new e(t.learningRate,t.beta1,t.beta2,t.epsilon,t.decay)},t.className="Adamax",t}(Qf);Kf(th);var nh=function(e){function t(t){var n=e.call(this)||this;return n.learningRate=t,n.setLearningRate(t),n}return i(t,e),t.prototype.applyGradients=function(e){var t=this;(Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e)).forEach(function(n,r){var i=Array.isArray(e)?e[r].tensor:e[n];if(null!=i){var o=Pe.registeredVariables[n];Bt(function(){var e=t.c.mul(i).add(o);o.assign(e)})}}),this.incrementIterations()},t.prototype.setLearningRate=function(e){this.learningRate=e,null!=this.c&&this.c.dispose(),this.c=function(e){return Pe.keep(e)}(cn(-e))},t.prototype.dispose=function(){this.c.dispose()},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()]]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.extractIterations(e)];case 1:if(0!==(e=t.sent()).length)throw new Error("SGD optimizer does not have settable weights.");return[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate}},t.fromConfig=function(e,t){return new e(t.learningRate)},t.className="SGD",t}(Qf);Kf(nh);var rh=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.learningRate=t,i.momentum=n,i.useNesterov=r,i.accumulations=[],i.m=cn(i.momentum),i}return i(t,e),t.prototype.applyGradients=function(e){var t=this;(Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e)).forEach(function(n,r){var i=Pe.registeredVariables[n];null==t.accumulations[r]&&(t.accumulations[r]={originalName:n+"/momentum",variable:Bt(function(){return bn(i).variable(!1)})});var o=t.accumulations[r].variable,a=Array.isArray(e)?e[r].tensor:e[n];null!=a&&Bt(function(){var e,n=t.m.mul(o).add(a);e=t.useNesterov?t.c.mul(a.add(n.mul(t.m))).add(i):t.c.mul(n).add(i),o.assign(n),i.assign(e)})}),this.incrementIterations()},t.prototype.dispose=function(){this.m.dispose(),null!=this.accumulations&&Vt(this.accumulations.map(function(e){return e.variable}))},t.prototype.setMomentum=function(e){this.momentum=e},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()].concat(this.accumulations.map(function(e){return{name:e.originalName,tensor:e.variable}}))]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.extractIterations(e)];case 1:return e=t.sent(),this.accumulations=e.map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,momentum:this.momentum,useNesterov:this.useNesterov}},t.fromConfig=function(e,t){return new e(t.learningRate,t.momentum,t.useNesterov)},t.className="Momentum",t}(nh);Kf(rh);var ih=function(e){function t(t,n,r,i,o){void 0===n&&(n=.9),void 0===r&&(r=0),void 0===i&&(i=null),void 0===o&&(o=!1);var a=e.call(this)||this;if(a.learningRate=t,a.decay=n,a.momentum=r,a.epsilon=i,a.accumulatedMeanSquares=[],a.accumulatedMoments=[],a.accumulatedMeanGrads=[],a.centered=o,null==i&&(a.epsilon=Pe.backend.epsilon()),null==t)throw new Error("learningRate for RMSPropOptimizer must be defined.");return a}return i(t,e),t.prototype.applyGradients=function(e){var t=this;(Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e)).forEach(function(n,r){var i=Pe.registeredVariables[n];null==t.accumulatedMeanSquares[r]&&(t.accumulatedMeanSquares[r]={originalName:n+"/rms",variable:Bt(function(){return bn(i).variable(!1)})}),null==t.accumulatedMoments[r]&&(t.accumulatedMoments[r]={originalName:n+"/momentum",variable:Bt(function(){return bn(i).variable(!1)})}),null==t.accumulatedMeanGrads[r]&&t.centered&&(t.accumulatedMeanGrads[r]={originalName:n+"/mg",variable:Bt(function(){return bn(i).variable(!1)})});var o=Array.isArray(e)?e[r].tensor:e[n];if(null!=o){var a=t.accumulatedMeanSquares[r].variable,u=t.accumulatedMoments[r].variable;Bt(function(){var e=a.mul(t.decay).add(o.square().mul(1-t.decay));if(t.centered){var n=t.accumulatedMeanGrads[r].variable,s=n.mul(t.decay).add(o.mul(1-t.decay)),c=u.mul(t.momentum).add(o.mul(t.learningRate).div(e.sub(s.square().add(t.epsilon)).sqrt()));a.assign(e),n.assign(s),u.assign(c);var l=i.sub(c);i.assign(l)}else{var f=a.mul(t.decay).add(o.square().mul(1-t.decay));c=u.mul(t.momentum).add(o.mul(t.learningRate).div(f.add(t.epsilon).sqrt())),a.assign(f),u.assign(c),l=i.sub(c),i.assign(l)}})}}),this.incrementIterations()},t.prototype.dispose=function(){null!=this.accumulatedMeanSquares&&Vt(this.accumulatedMeanSquares.map(function(e){return e.variable})),null!=this.accumulatedMeanGrads&&this.centered&&Vt(this.accumulatedMeanGrads.map(function(e){return e.variable})),null!=this.accumulatedMoments&&Vt(this.accumulatedMoments.map(function(e){return e.variable}))},t.prototype.getWeights=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return e=this.accumulatedMeanSquares.concat(this.accumulatedMoments),this.centered&&e.push.apply(e,this.accumulatedMeanGrads),[4,this.saveIterations()];case 1:return[2,[t.sent()].concat(e.map(function(e){return{name:e.originalName,tensor:e.variable}}))]}})})},t.prototype.setWeights=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return[4,this.extractIterations(e)];case 1:return e=n.sent(),this.accumulatedMeanSquares=e.slice(0,t=this.centered?e.length/3:e.length/2).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),this.accumulatedMoments=e.slice(t,2*t).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}}),this.centered&&(this.accumulatedMeanGrads=e.slice(2*t,3*t).map(function(e){return{originalName:e.name,variable:e.tensor.variable(!1)}})),[2]}})})},t.prototype.getConfig=function(){return{learningRate:this.learningRate,decay:this.decay,momentum:this.momentum,epsilon:this.epsilon,centered:this.centered}},t.fromConfig=function(e,t){return new e(t.learningRate,t.decay,t.momentum,t.epsilon,t.centered)},t.className="RMSProp",t}(Qf);Kf(ih),function(){function e(){}e.sgd=function(e){return new nh(e)},e.momentum=function(e,t,n){return void 0===n&&(n=!1),new rh(e,t,n)},e.rmsprop=function(e,t,n,r,i){return void 0===t&&(t=.9),void 0===n&&(n=0),void 0===r&&(r=null),void 0===i&&(i=!1),new ih(e,t,n,r,i)},e.adam=function(e,t,n,r){return void 0===e&&(e=.001),void 0===t&&(t=.9),void 0===n&&(n=.999),void 0===r&&(r=null),new eh(e,t,n,r)},e.adadelta=function(e,t,n){return void 0===e&&(e=.001),void 0===t&&(t=.95),void 0===n&&(n=null),new Xf(e,t,n)},e.adamax=function(e,t,n,r,i){return void 0===e&&(e=.002),void 0===t&&(t=.9),void 0===n&&(n=.999),void 0===r&&(r=null),void 0===i&&(i=0),new th(e,t,n,r,i)},e.adagrad=function(e,t){return void 0===t&&(t=.1),new Jf(e,t)}}(),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:"undefined"!=typeof setImmediate&&setImmediate,ye.prototype.squaredDifference=function(e){return Za(this,e)},pe=Pl;var oh=n(85572),ah=function(){function e(e,t){if(!ph(e)||!ph(t))throw new Error("Dimensions.constructor - expected width and height to be valid numbers, instead have "+JSON.stringify({width:e,height:t}));this._width=e,this._height=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.reverse=function(){return new e(1/this.width,1/this.height)},e}();function uh(e,t){return e instanceof ye&&e.shape.length===t}function sh(e){return uh(e,3)}function ch(e){return uh(e,4)}function lh(e){return e%2==0}function fh(e){return e&&e.width&&e.height}function hh(e){return e.reduce(function(e,t){return e.add(t)},new yh(0,0)).div(new yh(e.length,e.length))}function dh(e,t,n){return Array(e).fill(0).map(function(e,r){return t+r*n})}function ph(e){return!!e&&e!==1/0&&e!==-1/0&&!isNaN(e)||0===e}function vh(e){return ph(e)&&0<=e&&e<=1}var yh=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)},e.prototype.sub=function(t){return new e(this.x-t.x,this.y-t.y)},e.prototype.mul=function(t){return new e(this.x*t.x,this.y*t.y)},e.prototype.div=function(t){return new e(this.x/t.x,this.y/t.y)},e.prototype.abs=function(){return new e(Math.abs(this.x),Math.abs(this.y))},e.prototype.magnitude=function(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))},e.prototype.floor=function(){return new e(Math.floor(this.x),Math.floor(this.y))},e}(),mh=function(){function e(t,n){void 0===n&&(n=!0);var r=t||{},i=[r.left,r.top,r.right,r.bottom].every(ph),o=[r.x,r.y,r.width,r.height].every(ph);if(!o&&!i)throw new Error("Box.constructor - expected box to be IBoundingBox | IRect, instead have "+JSON.stringify(r));var a=o?[r.x,r.y,r.width,r.height]:[r.left,r.top,r.right-r.left,r.bottom-r.top],u=a[0],s=a[1],c=a[2],l=a[3];e.assertIsValidBox({x:u,y:s,width:c,height:l},"Box.constructor",n),this._x=u,this._y=s,this._width=c,this._height=l}return e.isRect=function(e){return!!e&&[e.x,e.y,e.width,e.height].every(ph)},e.assertIsValidBox=function(t,n,r){if(void 0===r&&(r=!1),!e.isRect(t))throw new Error(n+" - invalid box: "+JSON.stringify(t)+", expected object with properties x, y, width, height");if(!r&&(t.width<0||t.height<0))throw new Error(n+" - width ("+t.width+") and height ("+t.height+") must be positive numbers")},Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this.width*this.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return new yh(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRight",{get:function(){return new yh(this.right,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeft",{get:function(){return new yh(this.left,this.bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRight",{get:function(){return new yh(this.right,this.bottom)},enumerable:!0,configurable:!0}),e.prototype.round=function(){var t=[this.x,this.y,this.width,this.height].map(function(e){return Math.round(e)});return new e({x:t[0],y:t[1],width:t[2],height:t[3]})},e.prototype.floor=function(){var t=[this.x,this.y,this.width,this.height].map(function(e){return Math.floor(e)});return new e({x:t[0],y:t[1],width:t[2],height:t[3]})},e.prototype.toSquare=function(){var t=this,n=t.x,r=t.y,i=t.width,o=t.height,a=Math.abs(i-o);return i<o&&(n-=a/2,i+=a),o<i&&(r-=a/2,o+=a),new e({x:n,y:r,width:i,height:o})},e.prototype.rescale=function(t){var n=fh(t)?t.width:t,r=fh(t)?t.height:t;return new e({x:this.x*n,y:this.y*r,width:this.width*n,height:this.height*r})},e.prototype.pad=function(t,n){var r=[this.x-t/2,this.y-n/2,this.width+t,this.height+n];return new e({x:r[0],y:r[1],width:r[2],height:r[3]})},e.prototype.clipAtImageBorders=function(t,n){var r=this,i=r.y,o=r.right,a=r.bottom,u=Math.max(r.x,0),s=Math.max(i,0),c=a-s;return new e({x:u,y:s,width:Math.min(o-u,t-u),height:Math.min(c,n-s)}).floor()},e.prototype.shift=function(t,n){return new e({x:this.x+t,y:this.y+n,width:this.width,height:this.height})},e.prototype.padAtBorders=function(e,t){var n=this.width+1,r=this.height+1,i=n,o=r,a=this.left,u=this.top,s=this.right,c=this.bottom;return s>t&&(i=-s+t+n,s=t),c>e&&(o=-c+e+r,c=e),a<1&&(o=2-a,a=1),u<1&&(o=2-u,u=1),{dy:1,edy:o,dx:1,edx:i,y:u,ey:c,x:a,ex:s,w:n,h:r}},e.prototype.calibrate=function(t){return new e({left:this.left+t.left*this.width,top:this.top+t.to
1p*this.height,right:this.right+t.right*this.width,bottom:this.bottom+t.bottom*this.height}).toSquare().round()},e}(),gh=function(e){function t(t,n,r,i,o){return void 0===o&&(o=!1),e.call(this,{left:t,top:n,right:r,bottom:i},o)||this}return(0,oh.ZT)(t,e),t}(mh),bh=function(){function e(e,t,n,r,i){this._imageDims=new ah(i.width,i.height),this._score=e,this._classScore=t,this._className=n,this._box=new mh(r).rescale(this._imageDims)}return Object.defineProperty(e.prototype,"score",{get:function(){return this._score},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classScore",{get:function(){return this._classScore},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"box",{get:function(){return this._box},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageDims",{get:function(){return this._imageDims},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageWidth",{get:function(){return this.imageDims.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageHeight",{get:function(){return this.imageDims.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeBox",{get:function(){return new mh(this._box).rescale(this.imageDims.reverse())},enumerable:!0,configurable:!0}),e.prototype.forSize=function(t,n){return new e(this.score,this.classScore,this.className,this.relativeBox,{width:t,height:n})},e}(),wh=function(e){function t(t,n,r){return e.call(this,t,t,"",n,r)||this}return(0,oh.ZT)(t,e),t.prototype.forSize=function(n,r){var i=e.prototype.forSize.call(this,n,r);return new t(i.score,i.relativeBox,i.imageDims)},t}(bh);function _h(e,t,n){void 0===n&&(n=!0);var r=Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top));return n?r/(e.area+t.area-r):r/Math.min(e.area,t.area)}function xh(e,t,n,r){void 0===r&&(r=!0);for(var i=t.map(function(e,t){return{score:e,boxIndex:t}}).sort(function(e,t){return e.score-t.score}).map(function(e){return e.boxIndex}),o=[],a=function(){var t=i.pop();o.push(t);for(var a=i,u=[],s=0;s<a.length;s++)u.push(_h(e[t],e[a[s]],r));i=i.filter(function(e,t){return u[t]<=n})};i.length>0;)a();return o}function kh(e,t){return Bt(function(){var n=t[0],r=t[1],i=t[2],o=yn((0,oh.pr)(e.shape.slice(0,3),[1]),n),a=yn((0,oh.pr)(e.shape.slice(0,3),[1]),r),u=yn((0,oh.pr)(e.shape.slice(0,3),[1]),i),s=wn([o,a,u],3);return ys(e,s)})}function Ch(e){return 1/(1+Math.exp(-e))}var Sh,Eh=function(e){function t(t,n,r,i,o){return void 0===o&&(o=!1),e.call(this,{x:t,y:n,width:r,height:i},o)||this}return(0,oh.ZT)(t,e),t}(mh),Ah=function(){function e(e,t,n){void 0===n&&(n=new yh(0,0));var r=t.width,i=t.height;this._imgDims=new ah(r,i),this._shift=n,this._positions=e.map(function(e){return e.mul(new yh(r,i)).add(n)})}return Object.defineProperty(e.prototype,"shift",{get:function(){return new yh(this._shift.x,this._shift.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageWidth",{get:function(){return this._imgDims.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageHeight",{get:function(){return this._imgDims.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positions",{get:function(){return this._positions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePositions",{get:function(){var e=this;return this._positions.map(function(t){return t.sub(e._shift).div(new yh(e.imageWidth,e.imageHeight))})},enumerable:!0,configurable:!0}),e.prototype.forSize=function(e,t){return new this.constructor(this.relativePositions,{width:e,height:t})},e.prototype.shiftBy=function(e,t){return new this.constructor(this.relativePositions,this._imgDims,new yh(e,t))},e.prototype.shiftByPoint=function(e){return this.shiftBy(e.x,e.y)},e.prototype.align=function(e,t){if(void 0===t&&(t={}),e){var n=e instanceof wh?e.box.floor():new mh(e);return this.shiftBy(n.x,n.y).align(null,t)}var r=Object.assign({},{useDlibAlignment:!1,minBoxPadding:.2},t),i=r.minBoxPadding;return r.useDlibAlignment?this.alignDlib():this.alignMinBbox(i)},e.prototype.alignDlib=function(){var e=this.getRefPointsForAlignment(),t=e[1],n=e[2],r=function(e){return n.sub(e).magnitude()},i=(r(e[0])+r(t))/2,o=Math.floor(i/.45),a=hh(e),u=Math.floor(Math.max(0,a.x-.5*o)),s=Math.floor(Math.max(0,a.y-.43*o));return new Eh(u,s,Math.min(o,this.imageWidth+u),Math.min(o,this.imageHeight+s))},e.prototype.alignMinBbox=function(e){var t=function(e){var t=e.map(function(e){return e.x}),n=e.map(function(e){return e.y}),r=t.reduce(function(e,t){return t<e?t:e},1/0),i=n.reduce(function(e,t){return t<e?t:e},1/0),o=t.reduce(function(e,t){return e<t?t:e},0),a=n.reduce(function(e,t){return e<t?t:e},0);return new gh(r,i,o,a)}(this.positions);return t.pad(t.width*e,t.height*e)},e.prototype.getRefPointsForAlignment=function(){throw new Error("getRefPointsForAlignment not implemented by base class")},e}(),Oh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.getRefPointsForAlignment=function(){var e=this.positions;return[e[0],e[1],hh([e[3],e[4]])]},t}(Ah),Dh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.getJawOutline=function(){return this.positions.slice(0,17)},t.prototype.getLeftEyeBrow=function(){return this.positions.slice(17,22)},t.prototype.getRightEyeBrow=function(){return this.positions.slice(22,27)},t.prototype.getNose=function(){return this.positions.slice(27,36)},t.prototype.getLeftEye=function(){return this.positions.slice(36,42)},t.prototype.getRightEye=function(){return this.positions.slice(42,48)},t.prototype.getMouth=function(){return this.positions.slice(48,68)},t.prototype.getRefPointsForAlignment=function(){return[this.getLeftEye(),this.getRightEye(),this.getMouth()].map(hh)},t}(Ah),Ih=function(){function e(e,t){this._label=e,this._distance=t}return Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){return void 0===e&&(e=!0),this.label+(e?" ("+function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t);return Math.floor(e*n)/n}(this.distance)+")":"")},e}(),Th=function(e){function t(t,n){var r=e.call(this,t)||this;return r._label=n,r}return(0,oh.ZT)(t,e),t.assertIsValidLabeledBox=function(e,t){if(mh.assertIsValidBox(e,t),!ph(e.label))throw new Error(t+" - expected property label ("+e.label+") to be a number")},Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),t}(mh),Mh=function(){function e(e,t){if("string"!=typeof e)throw new Error("LabeledFaceDescriptors - constructor expected label to be a string");if(!Array.isArray(t)||t.some(function(e){return!(e instanceof Float32Array)}))throw new Error("LabeledFaceDescriptors - constructor expected descriptors to be an array of Float32Array");this._label=e,this._descriptors=t}return Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptors",{get:function(){return this._descriptors},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return{label:this.label,descriptors:this.descriptors.map(function(e){return Array.from(e)})}},e.fromJSON=function(t){var n=t.descriptors.map(function(e){return new Float32Array(e)});return new e(t.label,n)},e}();function Ph(e,t){return Object.assign({},e,{detection:t})}function Rh(){var e=window.fetch||function(){throw new Error("fetch - missing fetch implementation for browser environment")};return{Canvas:HTMLCanvasElement,CanvasRenderingContext2D:CanvasRenderingContext2D,Image:HTMLImageElement,ImageData:ImageData,Video:HTMLVideoElement,createCanvasElement:function(){return document.createElement("canvas")},createImageElement:function(){return document.createElement("img")},fetch:e,readFile:function(){throw new Error("readFile - filesystem not available for browser environment")}}}function Fh(e){var t="";if(!e)try{e=n(62649)}catch(r){t=r.toString()}return{readFile:e?function(t){return new Promise(function(n,r){e.readFile(t,function(e,t){return e?r(e):n(t)})})}:function(){throw new Error("readFile - failed to require fs in nodejs environment with error: "+t)}}}function Nh(){var e=global.Canvas||global.HTMLCanvasElement,t=global.Image||global.HTMLImageElement,n=global.fetch||function(){throw new Error("fetch - missing fetch implementation for nodejs environment")},r=Fh();return(0,oh.pi)({Canvas:e||function(){},CanvasRenderingContext2D:global.CanvasRenderingContext2D||function(){},Image:t||function(){},ImageData:global.ImageData||function(){},Video:global.HTMLVideoElement||function(){},createCanvasElement:function(){if(e)return new e;throw new Error("createCanvasElement - missing Canvas implementation for nodejs environment")},createImageElement:function(){if(t)return new t;throw new Error("createImageElement - missing Image implementation for nodejs environment")},fetch:n},r)}function jh(){return"object"==typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLImageElement&&"undefined"!=typeof HTMLCanvasElement&&"undefined"!=typeof HTMLVideoElement&&"undefined"!=typeof ImageData&&"undefined"!=typeof CanvasRenderingContext2D}function Lh(){return"object"==typeof global&&"undefined"!=typeof process&&!!process.version}function Bh(e){Sh=e}function Vh(){jh()&&Bh(Rh()),Lh()&&Bh(Nh())}!function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o._score=r,o._classScore=i,o}
1(0,oh.ZT)(t,e),t.assertIsValidPredictedBox=function(e,t){if(Th.assertIsValidLabeledBox(e,t),!vh(e.score)||!vh(e.classScore))throw new Error(t+" - expected properties score ("+e.score+") and ("+e.classScore+") to be a number between [0, 1]")},Object.defineProperty(t.prototype,"score",{get:function(){return this._score},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classScore",{get:function(){return this._classScore},enumerable:!0,configurable:!0})}(Th);var Wh={getEnv:function(){if(!Sh)throw new Error("getEnv - environment is not defined, check isNodejs() and isBrowser()");return Sh},setEnv:Bh,initialize:Vh,createBrowserEnv:Rh,createFileSystem:Fh,createNodejsEnv:Nh,monkeyPatch:function(e){if(Sh||Vh(),!Sh)throw new Error("monkeyPatch - environment is not defined, check isNodejs() and isBrowser()");var t=e.Canvas,n=void 0===t?Sh.Canvas:t,r=e.Image,i=void 0===r?Sh.Image:r;Sh.Canvas=n,Sh.Image=i,Sh.createCanvasElement=e.createCanvasElement||function(){return new n},Sh.createImageElement=e.createImageElement||function(){return new i},Sh.ImageData=e.ImageData||Sh.ImageData,Sh.Video=e.Video||Sh.Video,Sh.fetch=e.fetch||Sh.fetch,Sh.readFile=e.readFile||Sh.readFile},isBrowser:jh,isNodejs:Lh};function Uh(e){return Wh.isNodejs()||"string"!=typeof e?e:document.getElementById(e)}function zh(e){var t=Wh.getEnv(),n=t.Canvas;if(e instanceof t.CanvasRenderingContext2D)return e;var r=Uh(e);if(!(r instanceof n))throw new Error("resolveContext2d - expected canvas to be of instance of Canvas");var i=r.getContext("2d");if(!i)throw new Error("resolveContext2d - canvas 2d context is null");return i}Vh();var qh=(function(e){e.TOP_LEFT="TOP_LEFT",e.TOP_RIGHT="TOP_RIGHT",e.BOTTOM_LEFT="BOTTOM_LEFT",e.BOTTOM_RIGHT="BOTTOM_RIGHT"}(qh||(qh={})),qh),Hh=function(e){void 0===e&&(e={});var t=e.backgroundColor,n=e.fontColor,r=e.fontSize,i=e.fontStyle,o=e.padding;this.anchorPosition=e.anchorPosition||qh.TOP_LEFT,this.backgroundColor=t||"rgba(0, 0, 0, 0.5)",this.fontColor=n||"rgba(255, 255, 255, 1)",this.fontSize=r||14,this.fontStyle=i||"Georgia",this.padding=o||4};function Gh(e){var t=Wh.getEnv();return e instanceof t.Image&&e.complete||e instanceof t.Video&&e.readyState>=3}function Kh(e){var t=Wh.getEnv(),n=t.Video;return e instanceof t.Image?new ah(e.naturalWidth,e.naturalHeight):e instanceof n?new ah(e.videoWidth,e.videoHeight):new ah(e.width,e.height)}function Yh(e){var t=e.width,n=e.height,r=(0,Wh.getEnv().createCanvasElement)();return r.width=t,r.height=n,r}function $h(e,t){var n=Wh.getEnv().ImageData;if(!(e instanceof n||Gh(e)))throw new Error("createCanvasFromMedia - media has not finished loading yet");var r=t||Kh(e),i=r.width,o=r.height,a=Yh({width:i,height:o});return e instanceof n?zh(a).putImageData(e,0,0):zh(a).drawImage(e,0,0,i,o),a}function Zh(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u;return(0,oh.Jh)(this,function(s){switch(s.label){case 0:return n=t||Wh.getEnv().createCanvasElement(),r=e.shape.slice(ch(e)?1:0),i=r[0],o=r[1],a=r[2],u=Bt(function(){return e.as3D(i,o,a).toInt()}),[4,qf.toPixels(u,n)];case 1:return s.sent(),u.dispose(),[2,n]}})})}function Qh(e){var t=Wh.getEnv();return e instanceof t.Image||e instanceof t.Canvas||e instanceof t.Video}!function(){function e(t,n,r){void 0===r&&(r={}),this.text="string"==typeof t?[t]:t instanceof e?t.text:t,this.anchor=n,this.options=new Hh(r)}e.prototype.measureWidth=function(e){var t=this.options.padding;return this.text.map(function(t){return e.measureText(t).width}).reduce(function(e,t){return e<t?t:e},0)+2*t},e.prototype.measureHeight=function(){var e=this.options;return this.text.length*e.fontSize+2*e.padding},e.prototype.getUpperLeft=function(e,t){var n=this.options.anchorPosition,r=n===qh.BOTTOM_RIGHT||n===qh.TOP_RIGHT,i=n===qh.BOTTOM_LEFT||n===qh.BOTTOM_RIGHT,o=this.measureWidth(e),a=this.measureHeight(),u=r?this.anchor.x-o:this.anchor.x,s=i?this.anchor.y-a:this.anchor.y;if(t){var c=t.height;return{x:Math.max(Math.min(u,t.width-o),0),y:Math.max(Math.min(s,c-a),0)}}return{x:u,y:s}},e.prototype.draw=function(e){var t=Uh(e),n=zh(t),r=this.options,i=r.backgroundColor,o=r.fontColor,a=r.fontSize,u=r.padding;n.font=a+"px "+r.fontStyle;var s=this.measureWidth(n),c=this.measureHeight();n.fillStyle=i;var l=this.getUpperLeft(n,t);n.fillRect(l.x,l.y,s,c),n.fillStyle=o,this.text.forEach(function(e,t){n.fillText(e,u+l.x,u+l.y+(t+1)*a)})}}();var Xh=function(){function e(e,t){var n=this;
1if(void 0===t&&(t=!1),this._imageTensors=[],this._canvases=[],this._treatAsBatchInput=!1,this._inputDimensions=[],!Array.isArray(e))throw new Error("NetInput.constructor - expected inputs to be an Array of TResolvedNetInput or to be instanceof tf.Tensor4D, instead have "+e);this._treatAsBatchInput=t,this._batchSize=e.length,e.forEach(function(e,t){if(sh(e))return n._imageTensors[t]=e,void(n._inputDimensions[t]=e.shape);if(ch(e)){var r=e.shape[0];if(1!==r)throw new Error("NetInput - tf.Tensor4D with batchSize "+r+" passed, but not supported in input array");return n._imageTensors[t]=e,void(n._inputDimensions[t]=e.shape.slice(1))}var i=e instanceof Wh.getEnv().Canvas?e:$h(e);n._canvases[t]=i,n._inputDimensions[t]=[i.height,i.width,3]})}return Object.defineProperty(e.prototype,"imageTensors",{get:function(){return this._imageTensors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canvases",{get:function(){return this._canvases},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBatchInput",{get:function(){return this.batchSize>1||this._treatAsBatchInput},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"batchSize",{get:function(){return this._batchSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputDimensions",{get:function(){return this._inputDimensions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputSize",{get:function(){return this._inputSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reshapedInputDimensions",{get:function(){var e=this;return dh(this.batchSize,0,1).map(function(t,n){return e.getReshapedInputDimensions(n)})},enumerable:!0,configurable:!0}),e.prototype.getInput=function(e){return this.canvases[e]||this.imageTensors[e]},e.prototype.getInputDimensions=function(e){return this._inputDimensions[e]},e.prototype.getInputHeight=function(e){return this._inputDimensions[e][0]},e.prototype.getInputWidth=function(e){return this._inputDimensions[e][1]},e.prototype.getReshapedInputDimensions=function(e){if("number"!=typeof this.inputSize)throw new Error("getReshapedInputDimensions - inputSize not set, toBatchTensor has not been called yet");return function(e,t){var n=e.width,r=e.height,i=t/Math.max(r,n);return new ah(Math.round(n*i),Math.round(r*i))}({width:this.getInputWidth(e),height:this.getInputHeight(e)},this.inputSize)},e.prototype.toBatchTensor=function(e,t){var n=this;return void 0===t&&(t=!0),this._inputSize=e,Bt(function(){var r=dh(n.batchSize,0,1).map(function(r){var i=n.getInput(r);if(i instanceof ye){var o=ch(i)?i:i.expandDims();return o=function(e,t){return void 0===t&&(t=!1),Bt(function(){var n=e.shape.slice(1),r=n[0],i=n[1];if(r===i)return e;var o=Math.abs(r-i),a=Math.round(o*(t?.5:1)),u=r>i?2:1,s=function(t){var n=e.shape.slice();return n[u]=t,yn(n,0)},c=s(a),l=o-c.shape[u],f=[t&&l?s(l):null,e,c].filter(function(e){return!!e}).map(function(e){return e.toFloat()});return wn(f,u)})}(o,t),(o.shape[1]!==e||o.shape[2]!==e)&&(o=Cl.resizeBilinear(o,[e,e])),o.as3D(e,e,3)}if(i instanceof Wh.getEnv().Canvas)return qf.fromPixels(function(e,t,n){void 0===n&&(n=!1);var r=Wh.getEnv(),i=r.Canvas;if(!(e instanceof r.Image||e instanceof i))throw new Error("imageToSquare - expected arg0 to be HTMLImageElement | HTMLCanvasElement");var o=Kh(e),a=t/Math.max(o.height,o.width),u=a*o.width,s=a*o.height,c=Yh({width:t,height:t}),l=e instanceof i?e:$h(e),f=Math.abs(u-s)/2,h=n&&u<s?f:0,d=n&&s<u?f:0;return zh(c).drawImage(l,h,d,u,s),c}(i,e,t));throw new Error("toBatchTensor - at batchIdx "+r+", expected input to be instanceof tf.Tensor or instanceof HTMLCanvasElement, instead have "+i)});return ur(r.map(function(e){return e.toFloat()})).as4D(n.batchSize,e,e,3)})},e}();function Jh(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r;return(0,oh.Jh)(this,function(i){switch(i.label){case 0:if(e instanceof Xh)return[2,e];if(!(t=Array.isArray(e)?e:[e]).length)throw new Error("toNetInput - empty array passed as input");return n=function(t){return Array.isArray(e)?" at input index "+t+":":""}
1,(r=t.map(Uh)).forEach(function(e,r){if(!Qh(e)&&!sh(e)&&!ch(e))throw"string"==typeof t[r]?new Error("toNetInput -"+n(r)+" string passed, but could not resolve HTMLElement for element id "+t[r]):new Error("toNetInput -"+n(r)+" expected media to be of type HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | tf.Tensor3D, or to be an element id");if(ch(e)){var i=e.shape[0];if(1!==i)throw new Error("toNetInput -"+n(r)+" tf.Tensor4D with batchSize "+i+" passed, but not supported in input array")}}),[4,Promise.all(r.map(function(e){return Qh(e)&&function(e){return new Promise(function(t,n){if(e instanceof Wh.getEnv().Canvas||Gh(e))return t();function r(e){!e.currentTarget||(e.currentTarget.removeEventListener("load",r),e.currentTarget.removeEventListener("error",i),t(e))}function i(e){!e.currentTarget||(e.currentTarget.removeEventListener("load",r),e.currentTarget.removeEventListener("error",i),n(e))}e.addEventListener("load",r),e.addEventListener("error",i)})}(e)}))];case 1:return i.sent(),[2,new Xh(r,Array.isArray(e))]}})})}function ed(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u;return(0,oh.Jh)(this,function(s){switch(s.label){case 0:return n=Wh.getEnv().Canvas,r=e,e instanceof n?[3,5]:[4,Jh(e)];case 1:if((i=s.sent()).batchSize>1)throw new Error("extractFaces - batchSize > 1 not supported");return(o=i.getInput(0))instanceof n?(a=o,[3,4]):[3,2];case 2:return[4,Zh(o)];case 3:a=s.sent(),s.label=4;case 4:r=a,s.label=5;case 5:return u=zh(r),[2,t.map(function(e){return e instanceof wh?e.forSize(r.width,r.height).box.floor():e}).map(function(e){return e.clipAtImageBorders(r.width,r.height)}).map(function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=Yh({width:r,height:i});return zh(o).putImageData(u.getImageData(t,n,r,i),0,0),o})]}})})}function td(e,t){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(n){if(!sh(e)&&!ch(e))throw new Error("extractFaceTensors - expected image tensor to be 3D or 4D");if(ch(e)&&e.shape[0]>1)throw new Error("extractFaceTensors - batchSize > 1 not supported");return[2,Bt(function(){var n=e.shape.slice(ch(e)?1:0),r=n[0],i=n[1],o=n[2];return t.map(function(e){return e instanceof wh?e.forSize(i,r).box:e}).map(function(e){return e.clipAtImageBorders(i,r)}).map(function(t){var n=t.x,a=t.y,u=t.width,s=t.height;return hc(e.as3D(r,i,o),[a,n,0],[s,u,o])})})]})})}function nd(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return[4,(0,Wh.getEnv().fetch)(e,t)];case 1:if(!((n=r.sent()).status<400))throw new Error("failed to fetch: ("+n.status+") "+n.statusText+", from url: "+n.url);return[2,n]}})})}function rd(e){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(t){switch(t.label){case 0:return[4,nd(e)];case 1:return[2,t.sent().json()]}})})}function id(e,t){var n=t+"-weights_manifest.json";if(!e)return{modelBaseUri:"",manifestUri:n};if("/"===e)return{modelBaseUri:"/",manifestUri:"/"+n};var r=e.startsWith("http://")?"http://":e.startsWith("https://")?"https://":"",i=(e=e.replace(r,"")).split("/").filter(function(e){return e}),o=e.endsWith(".json")?i[i.length-1]:n,a=r+(e.endsWith(".json")?i.slice(0,i.length-1):i).join("/");return{modelBaseUri:a=e.startsWith("/")?"/"+a:a,manifestUri:"/"===a?"/"+o:a+"/"+o}}function od(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n,r,i;return(0,oh.Jh)(this,function(o){switch(o.label){case 0:return n=id(e,t),r=n.modelBaseUri,[4,rd(n.manifestUri)];case 1:return i=o.sent(),[2,Wf.loadWeights(i,r)]}})})}var ad=function(){function e(e){this._name=e,this._params=void 0,this._paramMappings=[]}return Object.defineProperty(e.prototype,"params",{get:function(){return this._params},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMappings",{get:function(){return this._paramMappings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return!!this.params},enumerable:!0,configurable:!0}),e.prototype.getParamFromPath=function(e){var t=this.traversePropertyPath(e);return t.obj[t.objProp]},e.prototype.reassignParamFromPath=function(e,t){var n=this.traversePropertyPath(e),r=n.obj,i=n.objProp;r[i].dispose(),r[i]=t},e.prototype.getParamList=function(){var e=this;return this._paramMappings.map(function(t){var n=t.paramPath;return{path:n,tensor:e.getParamFromPath(n)}})},e.prototype.getTrainableParams=function(){return this.getParamList().filter(function(e){return e.tensor instanceof ke})},e.prototype.getFrozenParams=function(){return this.getParamList().filter(function(e){return!(e.tensor instanceof ke)})},e.prototype.variable=function(){var e=this;
vendor: 4,906 bytes, line 1
1this.getFrozenParams().forEach(function(t){e.reassignParamFromPath(t.path,t.tensor.variable())})},e.prototype.freeze=function(){var e=this;this.getTrainableParams().forEach(function(t){var n=t.path,r=t.tensor,i=un(r.dataSync());r.dispose(),e.reassignParamFromPath(n,i)})},e.prototype.dispose=function(e){void 0===e&&(e=!0),this.getParamList().forEach(function(t){if(e&&t.tensor.isDisposed)throw new Error("param tensor has already been disposed for path "+t.path);t.tensor.dispose()}),this._params=void 0},e.prototype.serializeParams=function(){return new Float32Array(this.getParamList().map(function(e){return Array.from(e.tensor.dataSync())}).reduce(function(e,t){return e.concat(t)}))},e.prototype.load=function(e){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(t){switch(t.label){case 0:return e instanceof Float32Array?(this.extractWeights(e),[2]):[4,this.loadFromUri(e)];case 1:return t.sent(),[2]}})})},e.prototype.loadFromUri=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:if(e&&"string"!=typeof e)throw new Error(this._name+".loadFromUri - expected model uri");return[4,od(e,this.getDefaultModelName())];case 1:return t=n.sent(),this.loadFromWeightMap(t),[2]}})})},e.prototype.loadFromDisk=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,u,s,c;return(0,oh.Jh)(this,function(l){switch(l.label){case 0:if(e&&"string"!=typeof e)throw new Error(this._name+".loadFromDisk - expected model file path");return t=Wh.getEnv().readFile,n=id(e,this.getDefaultModelName()),r=n.manifestUri,i=n.modelBaseUri,o=Wf.weightsLoaderFactory(function(e){return Promise.all(e.map(function(e){return t(e).then(function(e){return e.buffer})}))}),s=(u=JSON).parse,[4,t(r)];case 1:return a=s.apply(u,[l.sent().toString()]),[4,o(a,i)];case 2:return c=l.sent(),this.loadFromWeightMap(c),[2]}})})},e.prototype.loadFromWeightMap=function(e){var t=this.extractParamsFromWeigthMap(e),n=t.params;this._paramMappings=t.paramMappings,this._params=n},e.prototype.extractWeights=function(e){var t=this.extractParams(e),n=t.params;this._paramMappings=t.paramMappings,this._params=n},e.prototype.traversePropertyPath=function(e){if(!this.params)throw new Error("traversePropertyPath - model has no loaded params");var t=e.split("/").reduce(function(t,n){if(!t.nextObj.hasOwnProperty(n))throw new Error("traversePropertyPath - object does not have property "+n+", for path "+e);return{obj:t.nextObj,objProp:n,nextObj:t.nextObj[n]}},{nextObj:this.params}),n=t.obj,r=t.objProp;if(!(n&&r&&n[r]instanceof ye))throw new Error("traversePropertyPath - parameter is not a tensor, for path "+e);return{obj:n,objProp:r}},e}();function ud(e,t,n){return Bt(function(){var r=Hs(e,t.depthwise_filter,t.pointwise_filter,n,"same");return Qu(r,t.bias)})}function sd(e,t,n){return void 0===n&&(n=!1),Bt(function(){var r=Dc(n?Qu(Ls(e,t.conv0.filters,[2,2],"same"),t.conv0.bias):ud(e,t.conv0,[2,2])),i=ud(r,t.conv1,[1,1]),o=ud(Dc(Qu(r,i)),t.conv2,[1,1]);return Dc(Qu(r,Qu(i,o)))})}function cd(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!0),Bt(function(){var i=Dc(n?Qu(Ls(e,t.conv0.filters,r?[2,2]:[1,1],"same"),t.conv0.bias):ud(e,t.conv0,r?[2,2]:[1,1])),o=ud(i,t.conv1,[1,1]),a=ud(Dc(Qu(i,o)),t.conv2,[1,1]),u=ud(Dc(Qu(i,Qu(o,a))),t.conv3,[1,1]);return Dc(Qu(i,Qu(o,Qu(a,u))))})}function ld(e,t,n,r){return void 0===n&&(n="same"),void 0===r&&(r=!1),Bt(function(){var i=Qu(Ls(e,t.filters,[1,1],n),t.bias);return r?Dc(i):i})}function fd(e,t){Object.keys(e).forEach(function(n){t.some(function(e){return e.originalPath===n})||e[n].dispose()})}function hd(e,t){return function(n,r,i,o){var a=dn(e(n*r*i*i),[i,i,n,r]),u=ln(e(r));return t.push({paramPath:o+"/filters"},{paramPath:o+"/bias"}),{filters:a,bias:u}}}function dd(e,t){return function(n,r,i){var o=fn(e(n*r),[n,r]),a=ln(e(r));return t.push({paramPath:i+"/weights"},{paramPath:i+"/bias"}),{weights:o,bias:a}}}var pd=function(e,t,n){this.depthwise_filter=e,this.pointwise_filter=t,this.bias=n};function vd(e,t){return function(n,r,i){var o=dn(e(9*n),[3,3,n,1]),a=dn(e(n*r),[1,1,n,r]),u=ln(e(r));return t.push({paramPath:i+"/depthwise_filter"},{paramPath:i+"/pointwise_filter"},{paramPath:i+"/bias"}),new pd(o,a,u)}}function yd(e){return function(t){var n=e(t+"/depthwise_filter",4),r=e(t+"/pointwise_filter",4),i=e(t+"/bias",1);return new pd(n,r,i)}}function md(e,t){return function(n,r,i){var o=e[n];if(!uh(o,r))throw new Error("expected weightMap["+n+"] to be a Tensor"+r+"D, instead have "+o);return t.push({originalPath:n,paramPath:i||n}),o}}function gd(e){var t=e;return{extractWeights:function(e){var n=t.slice(0,e);return t=t.slice(e),n},getRemainingWeights:function(){return t}}}function bd(e,t){var n=hd(e,t),r=vd(e,t);function i(e,t,i,o){return void 0===o&&(o=!1),{conv0:o?n(e,t,3,i+"/conv0"):r(e,t,i+"/conv0"),conv1:r(t,t,i+"/conv1"),conv2:r(t,t,i+"/conv2")}}
1return{extractDenseBlock3Params:i,extractDenseBlock4Params:function(e,t,n,o){void 0===o&&(o=!1);var a=i(e,t,n,o);return{conv0:a.conv0,conv1:a.conv1,conv2:a.conv2,conv3:r(t,t,n+"/conv3")}}}}function wd(e){return function(t){return{filters:e(t+"/filters",4),bias:e(t+"/bias",1)}}}function _d(e,t){var n=md(e,t),r=wd(n),i=yd(n);return{extractDenseBlock3Params:function(e,t){return void 0===t&&(t=!1),{conv0:t?r(e+"/conv0"):i(e+"/conv0"),conv1:i(e+"/conv1"),conv2:i(e+"/conv2")}},extractDenseBlock4Params:function(e,t){return void 0===t&&(t=!1),{conv0:t?r(e+"/conv0"):i(e+"/conv0"),conv1:i(e+"/conv1"),conv2:i(e+"/conv2"),conv3:i(e+"/conv3")}}}}var xd=function(e){function t(){return e.call(this,"FaceFeatureExtractor")||this}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this.params;if(!t)throw new Error("FaceFeatureExtractor - load model before inference");return Bt(function(){var n=cd(kh(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(cn(255)),t.dense0,!0);return n=cd(n,t.dense1),n=cd(n,t.dense2),n=cd(n,t.dense3),oc(n,[7,7],[2,2],"valid")})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.getDefaultModelName=function(){return"face_feature_extractor_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e){var t=[],n=_d(e,t).extractDenseBlock4Params,r={dense0:n("dense0",!0),dense1:n("dense1"),dense2:n("dense2"),dense3:n("dense3")};return fd(e,t),{params:r,paramMappings:t}}(e)},t.prototype.extractParams=function(e){return function(e){var t=[],n=gd(e),r=n.getRemainingWeights,i=bd(n.extractWeights,t).extractDenseBlock4Params,o=i(3,32,"dense0",!0),a=i(32,64,"dense1"),u=i(64,128,"dense2"),s=i(128,256,"dense3");if(0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{paramMappings:t,params:{dense0:o,dense1:a,dense2:u,dense3:s}}}(e)},t}(ad);function kd(e,t){return Bt(function(){return Qu(Ys(e,t.weights),t.bias)})}function Cd(e){var t={},n={};return Object.keys(e).forEach(function(r){(r.startsWith("fc")?n:t)[r]=e[r]}),{featureExtractorMap:t,classifierMap:n}}var Sd=function(e){function t(t,n){var r=e.call(this,t)||this;return r._faceFeatureExtractor=n,r}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"faceFeatureExtractor",{get:function(){return this._faceFeatureExtractor},enumerable:!0,configurable:!0}),t.prototype.runNet=function(e){var t=this,n=this.params;if(!n)throw new Error(this._name+" - load model before inference");return Bt(function(){var r=e instanceof Xh?t.faceFeatureExtractor.forwardInput(e):e;return kd(r.as2D(r.shape[0],-1),n.fc)})},t.prototype.dispose=function(t){void 0===t&&(t=!0),this.faceFeatureExtractor.dispose(t),e.prototype.dispose.call(this,t)},t.prototype.loadClassifierParams=function(e){var t=this.extractClassifierParams(e),n=t.paramMappings;this._params=t.params,this._paramMappings=n},t.prototype.extractClassifierParams=function(e){return function(e,t,n){var r=[],i=gd(e),o=i.getRemainingWeights,a=dd(i.extractWeights,r)(t,n,"fc");if(0!==o().length)throw new Error("weights remaing after extract: "+o().length);return{paramMappings:r,params:{fc:a}}}(e,this.getClassifierChannelsIn(),this.getClassifierChannelsOut())},t.prototype.extractParamsFromWeigthMap=function(e){var t=Cd(e),n=t.classifierMap;return this.faceFeatureExtractor.loadFromWeightMap(t.featureExtractorMap),function(e){var t=[],n=md(e,t),r={fc:{weights:n("fc/weights",2),bias:n("fc/bias",1)}};return fd(e,t),{params:r,paramMappings:t}}(n)},t.prototype.extractParams=function(e){var t=this.getClassifierChannelsIn(),n=this.getClassifierChannelsOut(),r=n*t+n,i=e.slice(0,e.length-r),o=e.slice(e.length-r);return this.faceFeatureExtractor.extractWeights(i),this.extractClassifierParams(o)},t}(ad),Ed=["neutral","happy","sad","angry","fearful","disgusted","surprised"],Ad=function(){function e(e){var t=this;if(7!==e.length)throw new Error("FaceExpressions.constructor - expected probabilities.length to be 7, have: "+e.length);
1Ed.forEach(function(n,r){t[n]=e[r]})}return e.prototype.asSortedArray=function(){var e=this;return Ed.map(function(t){return{expression:t,probability:e[t]}}).sort(function(e,t){return t.probability-e.probability})},e}(),Od=function(e){function t(t){return void 0===t&&(t=new xd),e.call(this,"FaceExpressionNet",t)||this}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this;return Bt(function(){return Dr(t.runNet(e))})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.predictExpressions=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r,i,o=this;return(0,oh.Jh)(this,function(a){switch(a.label){case 0:return[4,Jh(e)];case 1:return t=a.sent(),[4,this.forwardInput(t)];case 2:return n=a.sent(),[4,Promise.all(lr(n).map(function(e){return(0,oh.mG)(o,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,e.data()];case 1:return t=n.sent(),e.dispose(),[2,t]}})})}))];case 3:return r=a.sent(),n.dispose(),i=r.map(function(e){return new Ad(e)}),[2,t.isBatchInput?i:i[0]]}})})},t.prototype.getDefaultModelName=function(){return"face_expression_model"},t.prototype.getClassifierChannelsIn=function(){return 256},t.prototype.getClassifierChannelsOut=function(){return 7},t}(Sd);function Dd(e,t){return Object.assign({},e,{expressions:t})}function Id(e,t){var n=e.detection.box,r=t.shiftBy(n.x,n.y),i=r.align(),o=e.detection.imageDims,a=new wh(e.detection.score,i.rescale(o.reverse()),o);return Object.assign({},e,{landmarks:r,unshiftedLandmarks:t,alignedRect:a})}function Td(e,t,n){return Qu(Ls(e,t.filters,n,"same"),t.bias)}function Md(e,t,n){void 0===n&&(n=!0);var r=n?Dc(e):e;return r=ud(r,t.separable_conv0,[1,1]),r=ud(Dc(r),t.separable_conv1,[1,1]),r=ic(r,[3,3],[2,2],"same"),Qu(r,Td(e,t.expansion_conv,[2,2]))}var Pd=function(e){function t(t){var n=e.call(this,"TinyXception")||this;return n._numMainBlocks=t,n}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this,n=this.params;if(!n)throw new Error("TinyXception - load model before inference");return Bt(function(){var r=kh(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(cn(256)),i=Dc(Td(r,n.entry_flow.conv_in,[2,2]));return i=Md(i,n.entry_flow.reduction_block_0,!1),i=Md(i,n.entry_flow.reduction_block_1),dh(t._numMainBlocks,0,1).forEach(function(e){i=function(e,t){var n=ud(Dc(e),t.separable_conv0,[1,1]);return n=ud(Dc(n),t.separable_conv1,[1,1]),n=ud(Dc(n),t.separable_conv2,[1,1]),Qu(n,e)}(i,n.middle_flow["main_block_"+e])}),i=Md(i,n.exit_flow.reduction_block),i=Dc(ud(i,n.exit_flow.separable_conv,[1,1]))})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.getDefaultModelName=function(){return"tiny_xception_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e,t){var n=[],r=function(e,t){var n=md(e,t),r=wd(n),i=yd(n);return{extractConvParams:r,extractSeparableConvParams:i,extractReductionBlockParams:function(e){return{separable_conv0:i(e+"/separable_conv0"),separable_conv1:i(e+"/separable_conv1"),expansion_conv:r(e+"/expansion_conv")}},extractMainBlockParams:function(e){return{separable_conv0:i(e+"/separable_conv0"),separable_conv1:i(e+"/separable_conv1"),separable_conv2:i(e+"/separable_conv2")}}}}(e,n),i=r.extractSeparableConvParams,o=r.extractReductionBlockParams,a=r.extractMainBlockParams,u={conv_in:(0,r.extractConvParams)("entry_flow/conv_in"),reduction_block_0:o("entry_flow/reduction_block_0"),reduction_block_1:o("entry_flow/reduction_block_1")},s={};dh(t,0,1).forEach(function(e){s["main_block_"+e]=a("middle_flow/main_block_"+e)});var c={reduction_block:o("exit_flow/reduction_block"),separable_conv:i("exit_flow/separable_conv")};return fd(e,n),{params:{entry_flow:u,middle_flow:s,exit_flow:c},paramMappings:n}}(e,this._numMainBlocks)},t.prototype.extractParams=function(e){return function(e,t){var n=[],r=gd(e),i=r.getRemainingWeights,o=function(e,t){var n=hd(e,t),r=vd(e,t);return{extractConvParams:n,extractSeparableConvParams:r,extractReductionBlockParams:function(e,t,i){return{separable_conv0:r(e,t,i+"/separable_conv0"),separable_conv1:r(t,t,i+"/separable_conv1"),expansion_conv:n(e,t,1,i+"/expansion_conv")}},extractMainBlockParams:function(e,t){return{separable_conv0:r(e,e,t+"/separable_conv0"),separable_conv1:r(e,e,t+"/separable_conv1"),separable_conv2:r(e,e,t+"/separable_conv2")}}}}(r.extractWeights,n),a=o.extractSeparableConvParams,u=o.extractReductionBlockParams,s=o.extractMainBlockParams,c={conv_in:(0,o.extractConvParams)(3,32,3,"entry_flow/conv_in"),reduction_block_0:u(32,64,"entry_flow/reduction_block_0"),reduction_block_1:u(64,128,"entry_flow/reduction_block_1")}
1,l={};dh(t,0,1).forEach(function(e){l["main_block_"+e]=s(128,"middle_flow/main_block_"+e)});var f={reduction_block:u(128,256,"exit_flow/reduction_block"),separable_conv:a(256,512,"exit_flow/separable_conv")};if(0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{paramMappings:n,params:{entry_flow:c,middle_flow:l,exit_flow:f}}}(e,this._numMainBlocks)},t}(ad),Rd=(function(e){e.FEMALE="female",e.MALE="male"}(Rd||(Rd={})),Rd),Fd=function(e){function t(t){void 0===t&&(t=new Pd(2));var n=e.call(this,"AgeGenderNet")||this;return n._faceFeatureExtractor=t,n}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"faceFeatureExtractor",{get:function(){return this._faceFeatureExtractor},enumerable:!0,configurable:!0}),t.prototype.runNet=function(e){var t=this,n=this.params;if(!n)throw new Error(this._name+" - load model before inference");return Bt(function(){var r=e instanceof Xh?t.faceFeatureExtractor.forwardInput(e):e,i=oc(r,[7,7],[2,2],"valid").as2D(r.shape[0],-1);return{age:kd(i,n.fc.age).as1D(),gender:kd(i,n.fc.gender)}})},t.prototype.forwardInput=function(e){var t=this;return Bt(function(){var n=t.runNet(e);return{age:n.age,gender:Dr(n.gender)}})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.predictAgeAndGender=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,u=this;return(0,oh.Jh)(this,function(s){switch(s.label){case 0:return[4,Jh(e)];case 1:return t=s.sent(),[4,this.forwardInput(t)];case 2:return n=s.sent(),r=lr(n.age),i=lr(n.gender),o=r.map(function(e,t){return{ageTensor:e,genderTensor:i[t]}}),[4,Promise.all(o.map(function(e){var t=e.ageTensor,n=e.genderTensor;return(0,oh.mG)(u,void 0,void 0,function(){var e,r,i,o,a;return(0,oh.Jh)(this,function(u){switch(u.label){case 0:return[4,t.data()];
1case 1:return e=u.sent()[0],[4,n.data()];case 2:return r=u.sent()[0],o=(i=r>.5)?Rd.MALE:Rd.FEMALE,a=i?r:1-r,t.dispose(),n.dispose(),[2,{age:e,gender:o,genderProbability:a}]}})})}))];case 3:return a=s.sent(),n.age.dispose(),n.gender.dispose(),[2,t.isBatchInput?a:a[0]]}})})},t.prototype.getDefaultModelName=function(){return"age_gender_model"},t.prototype.dispose=function(t){void 0===t&&(t=!0),this.faceFeatureExtractor.dispose(t),e.prototype.dispose.call(this,t)},t.prototype.loadClassifierParams=function(e){var t=this.extractClassifierParams(e),n=t.paramMappings;this._params=t.params,this._paramMappings=n},t.prototype.extractClassifierParams=function(e){return function(e){var t=[],n=gd(e),r=n.getRemainingWeights,i=dd(n.extractWeights,t),o=i(512,1,"fc/age"),a=i(512,2,"fc/gender");if(0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{paramMappings:t,params:{fc:{age:o,gender:a}}}}(e)},t.prototype.extractParamsFromWeigthMap=function(e){var t=Cd(e),n=t.classifierMap;return this.faceFeatureExtractor.loadFromWeightMap(t.featureExtractorMap),function(e){var t=[],n=md(e,t);function r(e){return{weights:n(e+"/weights",2),bias:n(e+"/bias",1)}}var i={fc:{age:r("fc/age"),gender:r("fc/gender")}};return fd(e,t),{params:i,paramMappings:t}}(n)},t.prototype.extractParams=function(e){var t=e.slice(0,e.length-1539),n=e.slice(e.length-1539);return this.faceFeatureExtractor.extractWeights(t),this.extractClassifierParams(n)},t}(ad),Nd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.postProcess=function(e,t,n){var r=n.map(function(e){var n=e.width,r=e.height,i=t/Math.max(r,n);return{width:n*i,height:r*i}}),i=r.length;return Bt(function(){var n=function(e,t){return ur([yn([68],e),yn([68],t)],1).as2D(1,136).as1D()},o=function(e,t){var n=r[e],i=n.width,o=n.height;return t(i,o)?Math.abs(i-o)/2:0};return e.mul(yn([i,136],t)).sub(ur(Array.from(Array(i),function(e,t){return n(function(e){return o(e,function(e,t){return e<t})}(t),function(e){return o(e,function(e,t){return t<e})}(t))}))).div(ur(Array.from(Array(i),function(e,t){return n(r[t].width,r[t].height)})))})},t.prototype.forwardInput=function(e){var t=this;return Bt(function(){var n=t.runNet(e);return t.postProcess(n,e.inputSize,e.inputDimensions.map(function(e){return{height:e[0],width:e[1]}}))})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.detectLandmarks=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r,i=this;return(0,oh.Jh)(this,function(o){switch(o.label){case 0:return[4,Jh(e)];case 1:return t=o.sent(),n=Bt(function(){return lr(i.forwardInput(t))}),[4,Promise.all(n.map(function(e,n){return(0,oh.mG)(i,void 0,void 0,function(){var r,i,o,a,u;return(0,oh.Jh)(this,function(s){switch(s.label){case 0:return o=(i=Array).from,[4,e.data()];case 1:return r=o.apply(i,[s.sent()]),a=r.filter(function(e,t){return lh(t)}),u=r.filter(function(e,t){return!lh(t)}),[2,new Dh(Array(68).fill(0).map(function(e,t){return new yh(a[t],u[t])}),{height:t.getInputHeight(n),width:t.getInputWidth(n)})]}})})}))];case 2:return r=o.sent(),n.forEach(function(e){return e.dispose()}),[2,t.isBatchInput?r:r[0]]}})})},t.prototype.getClassifierChannelsOut=function(){return 136},t}(Sd),jd=function(e){function t(t){return void 0===t&&(t=new xd),e.call(this,"FaceLandmark68Net",t)||this}return(0,oh.ZT)(t,e),t.prototype.getDefaultModelName=function(){return"face_landmark_68_model"},t.prototype.getClassifierChannelsIn=function(){return 256},t}(Nd),Ld=function(e){function t(){return e.call(this,"TinyFaceFeatureExtractor")||this}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this.params;if(!t)throw new Error("TinyFaceFeatureExtractor - load model before inference");return Bt(function(){var n=sd(kh(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(cn(255)),t.dense0,!0);return n=sd(n,t.dense1),n=sd(n,t.dense2),oc(n,[14,14],[2,2],"valid")})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.getDefaultModelName=function(){return"face_feature_extractor_tiny_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e){var t=[],n=_d(e,t).extractDenseBlock3Params,r={dense0:n("dense0",!0),dense1:n("dense1"),dense2:n("dense2")};return fd(e,t),{params:r,paramMappings:t}}(e)},t.prototype.extractParams=function(e){return function(e){var t=[],n=gd(e),r=n.getRemainingWeights,i=bd(n.extractWeights,t).extractDenseBlock3Params,o=i(3,32,"dense0",!0),a=i(32,64,"dense1"),u=i(64,128,"dense2");if(0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{paramMappings:t,params:{dense0:o,dense1:a,dense2:u}}}(e)},t}(ad),Bd=function(e){function t(t){return void 0===t&&(t=new Ld),e.call(this,"FaceLandmark68TinyNet",t)||this}return(0,oh.ZT)(t,e),t.prototype.getDefaultModelName=function(){return"face_landmark_68_tiny_model"},t.prototype.getClassifierChannelsIn=function(){return 128},t}(Nd);function Vd(e,t,n,r,i){void 0===i&&(i="same");var o=t.conv,a=o.bias,u=Ls(e,o.filters,n,i);return u=function(e,t){return Qu(fs(e,t.weights),t.biases)}(u=Qu(u,a),t.scale),r?Dc(u):u}function Wd(e,t){return Vd(e,t,[1,1],!1)}function Ud(e,t){return Vd(e,t,[2,2],!0,"valid")}function zd(e,t){var n=function(e,t){return Vd(e,t,[1,1],!0)}(e,t.conv1);return n=Wd(n,t.conv2),n=Qu(n,e),Dc(n)}function qd(e,t){var n=Ud(e,t.conv1);n=Wd(n,t.conv2);var r=oc(e,2,2,"valid"),i=vn(r.shape),o=r.shape[3]!==n.shape[3];if(r.shape[1]!==n.shape[1]||r.shape[2]!==n.shape[2]){var a=(0,oh.pr)(n.shape);a[1]=1;var u=vn(a);n=wn([n,u],1);var s=(0,oh.pr)(n.shape);s[2]=1;var c=vn(s);n=wn([n,c],2)}return r=o?wn([r,i],3):r,n=Qu(r,n),Dc(n)}!function(e){(0,oh.ZT)(function(){return null!==e&&e.apply(this,arguments)||this},e)}(jd);var Hd=function(e){function t(){return e.call(this,"FaceRecognitionNet")||this}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this.params;if(!t)throw new Error("FaceRecognitionNet - load model before inference");return Bt(function(){var n=Ud(kh(e.toBatchTensor(150,!0).toFloat
1(),[122.782,117.001,104.298]).div(cn(256)),t.conv32_down);n=zd(n=ic(n,3,2,"valid"),t.conv32_1),n=zd(n,t.conv32_2),n=zd(n,t.conv32_3),n=zd(n=qd(n,t.conv64_down),t.conv64_1),n=zd(n,t.conv64_2),n=zd(n,t.conv64_3),n=zd(n=qd(n,t.conv128_down),t.conv128_1),n=zd(n,t.conv128_2),n=zd(n=qd(n,t.conv256_down),t.conv256_1);var r=(n=qd(n=zd(n,t.conv256_2),t.conv256_down_out)).mean([1,2]);return Ys(r,t.fc)})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.computeFaceDescriptor=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t,n,r,i=this;return(0,oh.Jh)(this,function(o){switch(o.label){case 0:return[4,Jh(e)];case 1:return t=o.sent(),n=Bt(function(){return lr(i.forwardInput(t))}),[4,Promise.all(n.map(function(e){return e.data()}))];case 2:return r=o.sent(),n.forEach(function(e){return e.dispose()}),[2,t.isBatchInput?r:r[0]]}})})},t.prototype.getDefaultModelName=function(){return"face_recognition_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e){var t=[],n=function(e,t){var n=md(e,t);function r(e){var t=n(e+"/conv/filters",4),r=n(e+"/conv/bias",1),i=function(e){return{weights:n(e+"/scale/weights",1),biases:n(e+"/scale/biases",1)}}(e);return{conv:{filters:t,bias:r},scale:i}}return{extractConvLayerParams:r,extractResidualLayerParams:function(e){return{conv1:r(e+"/conv1"),conv2:r(e+"/conv2")}}}}(e,t),r=n.extractResidualLayerParams,i=(0,n.extractConvLayerParams)("conv32_down"),o=r("conv32_1"),a=r("conv32_2"),u=r("conv32_3"),s=r("conv64_down"),c=r("conv64_1"),l=r("conv64_2"),f=r("conv64_3"),h=r("conv128_down"),d=r("conv128_1"),p=r("conv128_2"),v=r("conv256_down"),y=r("conv256_1"),m=r("conv256_2"),g=r("conv256_down_out"),b=e.fc;if(t.push({originalPath:"fc",paramPath:"fc"}),!function(e){return uh(e,2)}(b))throw new Error("expected weightMap[fc] to be a Tensor2D, instead have "+b);var w={conv32_down:i,conv32_1:o,conv32_2:a,conv32_3:u,conv64_down:s,conv64_1:c,conv64_2:l,conv64_3:f,conv128_down:h,conv128_1:d,conv128_2:p,conv256_down:v,conv256_1:y,conv256_2:m,conv256_down_out:g,fc:b};return fd(e,t),{params:w,paramMappings:t}}(e)},t.prototype.extractParams=function(e){return function(e){var t=gd(e),n=t.extractWeights,r=t.getRemainingWeights,i=[],o=function(e,t){function n(n,r,i,o){var a=function(n,r,i,o){var a=function(t,n,r){var i=e(t),o=i.length/(n*r*r);if(function(e){return e%1!=0}(o))throw new Error("depth has to be an integer: "+o+", weights.length: "+i.length+", numFilters: "+n+", filterSize: "+r);return Bt(function(){return Mc(dn(i,[n,o,r,r]),[2,3,1,0])})}(n,r,i),u=ln(e(r));return t.push({paramPath:o+"/filters"},{paramPath:o+"/bias"}),{filters:a,bias:u}}(n,r,i,o+"/conv"),u=function(n,r){var i=ln(e(n)),o=ln(e(n));return t.push({paramPath:r+"/weights"},{paramPath:r+"/biases"}),{weights:i,biases:o}}(r,o+"/scale");return{conv:a,scale:u}}return{extractConvLayerParams:n,extractResidualLayerParams:function(e,t,r,i,o){return void 0===o&&(o=!1),{conv1:n((o?.5:1)*e,t,r,i+"/conv1"),conv2:n(e,t,r,i+"/conv2")}}}}(n,i),a=o.extractResidualLayerParams,u=(0,o.extractConvLayerParams)(4704,32,7,"conv32_down"),s=a(9216,32,3,"conv32_1"),c=a(9216,32,3,"conv32_2"),l=a(9216,32,3,"conv32_3"),f=a(36864,64,3,"conv64_down",!0),h=a(36864,64,3,"conv64_1"),d=a(36864,64,3,"conv64_2"),p=a(36864,64,3,"conv64_3"),v=a(147456,128,3,"conv128_down",!0),y=a(147456,128,3,"conv128_1"),m=a(147456,128,3,"conv128_2"),g=a(589824,256,3,"conv256_down",!0),b=a(589824,256,3,"conv256_1"),w=a(589824,256,3,"conv256_2"),_=a(589824,256,3,"conv256_down_out"),x=Bt(function(){return Mc(fn(n(32768),[128,256]),[1,0])});if(i.push({paramPath:"fc"}),0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{params:{conv32_down:u,conv32_1:s,conv32_2:c,conv32_3:l,conv64_down:f,conv64_1:h,conv64_2:d,conv64_3:p,conv128_down:v,conv128_1:y,conv128_2:m,conv256_down:g,conv256_1:b,conv256_2:w,conv256_down_out:_,fc:x},paramMappings:i}}(e)},t}(ad);function Gd(e,t,n){return Object.assign({},e,{gender:t,genderProbability:n})}var Kd=function(){function e(e){var t=void 0===e?{}:e,n=t.minFaceSize,r=t.scaleFactor,i=t.maxNumScales,o=t.scoreThresholds,a=t.scaleSteps;if(this._name="MtcnnOptions",this._minFaceSize=n||20,this._scaleFactor=r||.709,this._maxNumScales=i||10,this._scoreThresholds=o||[.6,.7,.7],this._scaleSteps=a,"number"!=typeof this._minFaceSize||this._minFaceSize<0)throw new Error(this._name+" - expected minFaceSize to be a number > 0");if("number"!=typeof this._scaleFactor||this._scaleFactor<=0||this._scaleFactor>=1)throw new Error(this._name+" - expected scaleFactor to be a number between 0 and 1");if("number"!=typeof this._maxNumScales||this._maxNumScales<0)throw new Error(this._name+" - expected maxNumScales to be a number > 0");if(!Array.isArray(this._scoreThresholds)||3!==this._scoreThresholds.length||this._scoreThresholds.some(function(e){return"number"!=typeof e}))throw new Error(this._name+" - expected scoreThresholds to be an array of numbers of length 3");
vendor: 36,294 bytes, line 1
1if(this._scaleSteps&&(!Array.isArray(this._scaleSteps)||this._scaleSteps.some(function(e){return"number"!=typeof e})))throw new Error(this._name+" - expected scaleSteps to be an array of numbers")}return Object.defineProperty(e.prototype,"minFaceSize",{get:function(){return this._minFaceSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scaleFactor",{get:function(){return this._scaleFactor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxNumScales",{get:function(){return this._maxNumScales},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scoreThresholds",{get:function(){return this._scoreThresholds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scaleSteps",{get:function(){return this._scaleSteps},enumerable:!0,configurable:!0}),e}();function Yd(e,t,n){return Bt(function(){var r=Ls(e,t.filters,n,"same");return r=Qu(r,t.batch_norm_offset),ou(r,0,6)})}function $d(e,t,n){var r=e.arraySync(),i=Math.min(r[t][0],r[t][2]),o=Math.min(r[t][1],r[t][3]),a=Math.max(r[t][0],r[t][2]),u=Math.max(r[t][1],r[t][3]),s=Math.min(r[n][0],r[n][2]),c=Math.min(r[n][1],r[n][3]),l=Math.max(r[n][0],r[n][2]),f=Math.max(r[n][1],r[n][3]),h=(a-i)*(u-o),d=(l-s)*(f-c);if(h<=0||d<=0)return 0;var p=Math.max(i,s),v=Math.max(o,c),y=Math.min(a,l),m=Math.min(u,f),g=Math.max(y-p,0)*Math.max(m-v,0);return g/(h+d-g)}function Zd(e,t){return Bt(function(){var n=e.shape[0];return{boxPredictionEncoding:ir(ld(e,t.box_encoding_predictor),[n,-1,1,4]),classPrediction:ir(ld(e,t.class_predictor),[n,-1,3])}})}var Qd=function(){function e(e){var t=void 0===e?{}:e,n=t.minConfidence,r=t.maxResults;if(this._name="SsdMobilenetv1Options",this._minConfidence=n||.5,this._maxResults=r||100,"number"!=typeof this._minConfidence||this._minConfidence<=0||this._minConfidence>=1)throw new Error(this._name+" - expected minConfidence to be a number between 0 and 1");if("number"!=typeof this._maxResults)throw new Error(this._name+" - expected maxResults to be a number")}return Object.defineProperty(e.prototype,"minConfidence",{get:function(){return this._minConfidence},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxResults",{get:function(){return this._maxResults},enumerable:!0,configurable:!0}),e}(),Xd=function(e){function t(){return e.call(this,"SsdMobilenetv1")||this}return(0,oh.ZT)(t,e),t.prototype.forwardInput=function(e){var t=this.params;if(!t)throw new Error("SsdMobilenetv1 - load model before inference");return Bt(function(){var n=e.toBatchTensor(512,!1).toFloat(),r=function(e,t){return Bt(function(){var n=null,r=Yd(e,t.conv_0,[2,2]);if([t.conv_1,t.conv_2,t.conv_3,t.conv_4,t.conv_5,t.conv_6,t.conv_7,t.conv_8,t.conv_9,t.conv_10,t.conv_11,t.conv_12,t.conv_13].forEach(function(e,t){var i=t+1,o=function(e){return[2,4,6,12].some(function(t){return t===e})?[2,2]:[1,1]}(i);r=function(e,t,n){return Bt(function(){var r=Us(e,t.filters,n,"same");return r=Wu(r,t.batch_norm_mean,t.batch_norm_variance,t.batch_norm_offset,t.batch_norm_scale,.0010000000474974513),ou(r,0,6)})}(r,e.depthwise_conv,o),r=Yd(r,e.pointwise_conv,[1,1]),11===i&&(n=r)}),null===n)throw new Error("mobileNetV1 - output of conv layer 11 is null");return{out:r,conv11:n}})}(ys(fs(n,cn(.007843137718737125)),cn(1)),t.mobilenetv1),i=function(e,t,n){return Bt(function(){var r=Yd(e,n.conv_0,[1,1]),i=Yd(r,n.conv_1,[2,2]),o=Yd(i,n.conv_2,[1,1]),a=Yd(o,n.conv_3,[2,2]),u=Yd(a,n.conv_4,[1,1]),s=Yd(u,n.conv_5,[2,2]),c=Yd(s,n.conv_6,[1,1]),l=Yd(c,n.conv_7,[2,2]),f=Zd(t,n.box_predictor_0),h=Zd(e,n.box_predictor_1),d=Zd(i,n.box_predictor_2),p=Zd(a,n.box_predictor_3),v=Zd(s,n.box_predictor_4),y=Zd(l,n.box_predictor_5);return{boxPredictions:wn([f.boxPredictionEncoding,h.boxPredictionEncoding,d.boxPredictionEncoding,p.boxPredictionEncoding,v.boxPredictionEncoding,y.boxPredictionEncoding],1),classPredictions:wn([f.classPrediction,h.classPrediction,d.classPrediction,p.classPrediction,v.classPrediction,y.classPrediction],1)}})}(r.out,r.conv11,t.prediction_layer);return function(e,t,n){return Bt(function(){var r=e.shape[0],i=function(e,t){var n=function(e){var t=lr(Mc(e,[1,0])),n=[ys(t[2],t[0]),ys(t[3],t[1])];return{sizes:n,centers:[Qu(t[0],ts(n[0],cn(2))),Qu(t[1],ts(n[1],cn(2)))]}}(e),r=n.sizes,i=n.centers,o=lr(Mc(t,[1,0])),a=ts(fs(cu(ts(o[2],cn(5))),r[0]),cn(2)),u=Qu(fs(ts(o[0],cn(10)),r[0]),i[0]),s=ts(fs(cu(ts(o[3],cn(5))),r[1]),cn(2)),c=Qu(fs(ts(o[1],cn(10)),r[1]),i[1]);return Mc(ur([ys(u,a),ys(c,s),Qu(u,a),Qu(c,s)]),[1,0])}(ir(sr(n.extra_dim,[r,1,1]),[-1,4]),ir(e,[-1,4]));i=ir(i,[r,i.shape[0]/r,4]);var o=bu(cc(t,[0,0,1],[-1,-1,-1])),a=cc(o,[0,0,0],[-1,-1,1]);return a=ir(a,[r,a.shape[1]]),{boxes:lr(i),scores:lr(a)}})}(i.boxPredictions,i.classPredictions,t.output_layer)})},t.prototype.forward=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=this.forwardInput,[4,Jh(e)];case 1:return[2,t.apply(this,[n.sent()])]}})})},t.prototype.locateFaces=function(e,t){return void 0===t&&(t={}),(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b,w,_;return(0,oh.Jh)(this,function(x){switch(x.label){case 0:return n=new Qd(t),r=n.maxResults,i=n.minConfidence,[4,Jh(e)];case 1:for(o=x.sent(),a=this.forwardInput(o),c=(u=a.boxes)[0],l=(s=a.scores)[0],f=1;f<u.length;f++)u[f].dispose(),s[f].dispose();return p=(d=Array).from,[4,l.data()];case 2:return h=p.apply(d,[x.sent()]),v=function(e,t,n,r,i){var o=Math.min(n,e.shape[0]),a=t.map(function(e,t){return{score:e,boxIndex:t}}).filter(function(e){return e.score>i}).sort(function(e,t){return t.score-e.score}),u=function(e){return e<=.5?1:0},s=[];return a.forEach(function(t){if(!(s.length>=o)){for(var n=t.score,r=s.length-1;r>=0;--r){var a=$d(e,t.boxIndex,s[r]);if(0!==a&&(t.score*=u(a),t.score<=i))break}n===t.score&&s.push(t.boxIndex)}}),s}(c,h,r,0,i),y=o.getReshapedInputDimensions(0),g=(m=o.inputSize)/y.width,b=m/y.height,w=c.arraySync(),_=v.map(function(e){var t=[Math.max(0,w[e][0]),Math.min(1,w[e][2])].map(function(e){return e*b}),n=t[0],r=t[1],i=[Math.max(0,w[e][1]),Math.min(1,w[e][3])].map(function(e){return e*g}),a=i[0];return new wh(h[e],new Eh(a,n,i[1]-a,r-n),{height:o.getInputHeight(0),width:o.getInputWidth(0)})}),c.dispose(),l.dispose(),[2,_]}})})},t.prototype.getDefaultModelName=function(){return"ssd_mobilenetv1_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e){var t=[],n=function(e,t){var n=md(e,t);function r(e,t,r){return{filters:n(e+"/Conv2d_"+t+"_pointwise/weights",4,r+"/filters"),batch_norm_offset:n(e+"/Conv2d_"+t+"_pointwise/convolution_bn_offset",1,r+"/batch_norm_offset")}}function i(e){var t="mobilenetv1/conv_"+e,i="MobilenetV1/Conv2d_"+e+"_depthwise",o=t+"/depthwise_conv",a=t+"/pointwise_conv";return{depthwise_conv:{filters:n(i+"/depthwise_weights",4,o+"/filters"),batch_norm_scale:n(i+"/BatchNorm/gamma",1,o+"/batch_norm_scale"),batch_norm_offset:n(i+"/BatchNorm/beta",1,o+"/batch_norm_offset"),batch_norm_mean:n(i+"/BatchNorm/moving_mean",1,o+"/batch_norm_mean"),batch_norm_variance:n(i+"/BatchNorm/moving_variance",1,o+"/batch_norm_variance")},pointwise_conv:r("MobilenetV1",e,a)}}function o(e,t){return{filters:n(e+"/weights",4,t+"/filters"),bias:n(e+"/biases",1,t+"/bias")}}function a(e){return{box_encoding_predictor:o("Prediction/BoxPredictor_"+e+"/BoxEncodingPredictor","prediction_layer/box_predictor_"+e+"/box_encoding_predictor"),class_predictor:o("Prediction/BoxPredictor_"+e+"/ClassPredictor","prediction_layer/box_predictor_"+e+"/class_predictor")}}return{extractMobilenetV1Params:function(){return{conv_0:r("MobilenetV1",0,"mobilenetv1/conv_0"),conv_1:i(1),conv_2:i(2),conv_3:i(3),conv_4:i(4),conv_5:i(5),conv_6:i(6),conv_7:i(7),conv_8:i(8),conv_9:i(9),conv_10:i(10),conv_11:i(11),conv_12:i(12),conv_13:i(13)}},extractPredictionLayerParams:function(){return{conv_0:r("Prediction",0,"prediction_layer/conv_0"),conv_1:r("Prediction",1,"prediction_layer/conv_1"),conv_2:r("Prediction",2,"prediction_layer/conv_2"),conv_3:r("Prediction",3,"prediction_layer/conv_3"),conv_4:r("Prediction",4,"prediction_layer/conv_4"),conv_5:r("Prediction",5,"prediction_layer/conv_5"),conv_6:r("Prediction",6,"prediction_layer/conv_6"),conv_7:r("Prediction",7,"prediction_layer/conv_7"),box_predictor_0:a(0),box_predictor_1:a(1),box_predictor_2:a(2),box_predictor_3:a(3),box_predictor_4:a(4),box_predictor_5:a(5)}}}}(e,t),r=n.extractMobilenetV1Params,i=n.extractPredictionLayerParams,o=e["Output/extra_dim"];if(t.push({originalPath:"Output/extra_dim",paramPath:"output_layer/extra_dim"}),!sh(o))throw new Error("expected weightMap['Output/extra_dim'] to be a Tensor3D, instead have "+o);var a={mobilenetv1:r(),prediction_layer:i(),output_layer:{extra_dim:o}};return fd(e,t),{params:a,paramMappings:t}}(e)},t.prototype.extractParams=function(e){return function(e){var t=[],n=gd(e),r=n.extractWeights,i=n.getRemainingWeights,o=function(e,t){function n(n,r,i,o,a){var u=dn(e(n*r*i*i),[i,i,n,r]),s=ln(e(r));return t.push({paramPath:o+"/filters"},{paramPath:o+"/"+(a?"batch_norm_offset":"bias")}),{filters:u,bias:s}}function r(e,t,r,i){var o=n(e,t,r,i,!0);return{filters:o.filters,batch_norm_offset:o.bias}}function i(n,i,o){var a=function(n,r){var i=dn(e(9*n),[3,3,n,1]),o=ln(e(n)),a=ln(e(n)),u=ln(e(n)),s=ln(e(n));return t.push({paramPath:r+"/filters"},{paramPath:r+"/batch_norm_scale"},{paramPath:r+"/batch_norm_offset"},{paramPath:r+"/batch_norm_mean"},{paramPath:r+"/batch_norm_variance"}),{filters:i,batch_norm_scale:o,batch_norm_offset:a,batch_norm_mean:u,batch_norm_variance:s}}(n,o+"/depthwise_conv");return{depthwise_conv:a,pointwise_conv:r(n,i,1,o+"/pointwise_conv")}}return{extractMobilenetV1Params:function(){return{conv_0:r(3,32,3,"mobilenetv1/conv_0"),conv_1:i(32,64,"mobilenetv1/conv_1"),conv_2:i(64,128,"mobilenetv1/conv_2"),conv_3:i(128,128,"mobilenetv1/conv_3"),conv_4:i(128,256,"mobilenetv1/conv_4"),conv_5:i(256,256,"mobilenetv1/conv_5"),conv_6:i(256,512,"mobilenetv1/conv_6"),conv_7:i(512,512,"mobilenetv1/conv_7"),conv_8:i(512,512,"mobilenetv1/conv_8"),conv_9:i(512,512,"mobilenetv1/conv_9"),conv_10:i(512,512,"mobilenetv1/conv_10"),conv_11:i(512,512,"mobilenetv1/conv_11"),conv_12:i(512,1024,"mobilenetv1/conv_12"),conv_13:i(1024,1024,"mobilenetv1/conv_13")}},extractPredictionLayerParams:function(){return{conv_0:r(1024,256,1,"prediction_layer/conv_0"),conv_1:r(256,512,3,"prediction_layer/conv_1"),conv_2:r(512,128,1,"prediction_layer/conv_2"),conv_3:r(128,256,3,"prediction_layer/conv_3"),conv_4:r(256,128,1,"prediction_layer/conv_4"),conv_5:r(128,256,3,"prediction_layer/conv_5"),conv_6:r(256,64,1,"prediction_layer/conv_6"),conv_7:r(64,128,3,"prediction_layer/conv_7"),box_predictor_0:{box_encoding_predictor:n(512,12,1,"prediction_layer/box_predictor_0/box_encoding_predictor"),class_predictor:n(512,9,1,"prediction_layer/box_predictor_0/class_predictor")},box_predictor_1:{box_encoding_predictor:n(1024,24,1,"prediction_layer/box_predictor_1/box_encoding_predictor"),class_predictor:n(1024,18,1,"prediction_layer/box_predictor_1/class_predictor")},box_predictor_2:{box_encoding_predictor:n(512,24,1,"prediction_layer/box_predictor_2/box_encoding_predictor"),class_predictor:n(512,18,1,"prediction_layer/box_predictor_2/class_predictor")},box_predictor_3:{box_encoding_predictor:n(256,24,1,"prediction_layer/box_predictor_3/box_encoding_predictor"),class_predictor:n(256,18,1,"prediction_layer/box_predictor_3/class_predictor")},box_predictor_4:{box_encoding_predictor:n(256,24,1,"prediction_layer/box_predictor_4/box_encoding_predictor"),class_predictor:n(256,18,1,"prediction_layer/box_predictor_4/class_predictor")},box_predictor_5:{box_encoding_predictor:n(128,24,1,"prediction_layer/box_predictor_5/box_encoding_predictor"),class_predictor:n(128,18,1,"prediction_layer/box_predictor_5/class_predictor")}}}}}(r,t),a=o.extractPredictionLayerParams,u=(0,o.extractMobilenetV1Params)(),s=a(),c={extra_dim:hn(r(20472),[1,5118,4])};if(t.push({paramPath:"output_layer/extra_dim"}),0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{params:{mobilenetv1:u,prediction_layer:s,output_layer:c},paramMappings:t}}(e)},t}(ad);!function(e){(0,oh.ZT)(function(){return null!==e&&e.apply(this,arguments)||this},e)}(Xd);var Jd=[new yh(.738768,.874946),new yh(2.42204,2.65704),new yh(4.30971,7.04493),new yh(10.246,4.59428),new yh(12.6868,11.8741)],ep=[new yh(1.603231,2.094468),new yh(6.041143,7.080126),new yh(2.882459,3.518061),new yh(4.266906,5.178857),new yh(9.041765,10.66308)],tp=[117.001,114.697,97.404],np=function(e){return"number"==typeof e};function rp(e){return Bt(function(){var t=fs(e,cn(.10000000149011612));return Qu(Dc(ys(e,t)),t)})}function ip(e,t){return Bt(function(){var n=$n(e,[[0,0],[1,1],[1,1],[0,0]]);return n=Ls(n,t.conv.filters,[1,1],"valid"),n=ys(n,t.bn.sub),n=fs(n,t.bn.truediv),rp(n=Qu(n,t.conv.bias))})}function op(e,t){return Bt(function(){var n=$n(e,[[0,0],[1,1],[1,1],[0,0]]);return n=Hs(n,t.depthwise_filter,t.pointwise_filter,[1,1],"valid"),rp(n=Qu(n,t.bias))})}var ap=function(){function e(e){var t=void 0===e?{}:e,n=t.inputSize,r=t.scoreThreshold;if(this._name="TinyYolov2Options",this._inputSize=n||416,this._scoreThreshold=r||.5,"number"!=typeof this._inputSize||this._inputSize%32!=0)throw new Error(this._name+" - expected inputSize to be a number divisible by 32");if("number"!=typeof this._scoreThreshold||this._scoreThreshold<=0||this._scoreThreshold>=1)throw new Error(this._name+" - expected scoreThreshold to be a number between 0 and 1")}return Object.defineProperty(e.prototype,"inputSize",{get:function(){return this._inputSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scoreThreshold",{get:function(){return this._scoreThreshold},enumerable:!0,configurable:!0}),e}(),up=function(e){function t(t){var n=e.call(this,"TinyYolov2")||this;return function(e){if(!e)throw new Error("invalid config: "+e);if("boolean"!=typeof e.withSeparableConvs)throw new Error("config.withSeparableConvs has to be a boolean, have: "+e.withSeparableConvs);if(!np(e.iouThreshold)||e.iouThreshold<0||e.iouThreshold>1)throw new Error("config.iouThreshold has to be a number between [0, 1], have: "+e.iouThreshold);if(!Array.isArray(e.classes)||!e.classes.length||!e.classes.every(function(e){return"string"==typeof e}))throw new Error("config.classes has to be an array class names: string[], have: "+JSON.stringify(e.classes));if(!Array.isArray(e.anchors)||!e.anchors.length||!e.anchors.map(function(e){return e||{}}).every(function(e){return np(e.x)&&np(e.y)}))throw new Error("config.anchors has to be an array of { x: number, y: number }, have: "+JSON.stringify(e.anchors));if(e.meanRgb&&(!Array.isArray(e.meanRgb)||3!==e.meanRgb.length||!e.meanRgb.every(np)))throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: "+JSON.stringify(e.meanRgb))}(t),n._config=t,n}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"withClassScores",{get:function(){return this.config.withClassScores||this.config.classes.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boxEncodingSize",{get:function(){return 5+(this.withClassScores?this.config.classes.length:0)},enumerable:!0,configurable:!0}),t.prototype.runTinyYolov2=function(e,t){var n=ip(e,t.conv0);return n=ip(n=ic(n,[2,2],[2,2],"same"),t.conv1),n=ip(n=ic(n,[2,2],[2,2],"same"),t.conv2),n=ip(n=ic(n,[2,2],[2,2],"same"),t.conv3),n=ip(n=ic(n,[2,2],[2,2],"same"),t.conv4),n=ip(n=ic(n,[2,2],[2,2],"same"),t.conv5),n=ip(n=ic(n,[2,2],[1,1],"same"),t.conv6),ld(n=ip(n,t.conv7),t.conv8,"valid",!1)},t.prototype.runMobilenet=function(e,t){var n=this.config.isFirstLayerConv2d?rp(ld(e,t.conv0,"valid",!1)):op(e,t.conv0);return n=op(n=ic(n,[2,2],[2,2],"same"),t.conv1),n=op(n=ic(n,[2,2],[2,2],"same"),t.conv2),n=op(n=ic(n,[2,2],[2,2],"same"),t.conv3),n=op(n=ic(n,[2,2],[2,2],"same"),t.conv4),n=op(n=ic(n,[2,2],[2,2],"same"),t.conv5),n=ic(n,[2,2],[1,1],"same"),n=t.conv6?op(n,t.conv6):n,ld(n=t.conv7?op(n,t.conv7):n,t.conv8,"valid",!1)},t.prototype.forwardInput=function(e,t){var n=this,r=this.params;if(!r)throw new Error("TinyYolov2 - load model before inference");return Bt(function(){var i=e.toBatchTensor(t,!1).toFloat();return i=(i=n.config.meanRgb?kh(i,n.config.meanRgb):i).div(cn(256)),n.config.withSeparableConvs?n.runMobilenet(i,r):n.runTinyYolov2(i,r)})},t.prototype.forward=function(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return n=this.forwardInput,[4,Jh(e)];case 1:return[4,n.apply(this,[r.sent(),t])];case 2:return[2,r.sent()]}})})},t.prototype.detect=function(e,t){return void 0===t&&(t={}),(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u,s,c,l,f,h,d,p=this;return(0,oh.Jh)(this,function(v){switch(v.label){case 0:return n=new ap(t),r=n.inputSize,i=n.scoreThreshold,[4,Jh(e)];case 1:return o=v.sent(),[4,this.forwardInput(o,r)];case 2:return a=v.sent(),u=Bt(function(){return lr(a)[0].expandDims()}),s={width:o.getInputWidth(0),height:o.getInputHeight(0)},[4,this.extractBoxes(u,o.getReshapedInputDimensions(0),i)];case 3:return c=v.sent(),a.dispose(),u.dispose(),l=c.map(function(e){return e.box}),f=c.map(function(e){return e.score}),h=c.map(function(e){return e.classScore}),d=c.map(function(e){return p.config.classes[e.label]}),[2,xh(l.map(function(e){return e.rescale(r)}),f,this.config.iouThreshold,!0).map(function(e){return new bh(f[e],h[e],d[e],l[e],s)})]}})})},t.prototype.getDefaultModelName=function(){return""},t.prototype.extractParamsFromWeigthMap=function(e){return function(e,t){var n,r=[],i=function(e,t){var n=md(e,t);function r(e){return{filters:n(e+"/filters",4),bias:n(e+"/bias",1)}}return{extractConvParams:r,extractConvWithBatchNormParams:function(e){var t=r(e+"/conv"),i=function(e){return{sub:n(e+"/sub",1),truediv:n(e+"/truediv",1)}}(e+"/bn");return{conv:t,bn:i}},extractSeparableConvParams:yd(n)}}(e,r),o=i.extractConvParams,a=i.extractConvWithBatchNormParams,u=i.extractSeparableConvParams;if(t.withSeparableConvs){var s=t.filterSizes&&t.filterSizes.length||9;n={conv0:t.isFirstLayerConv2d?o("conv0"):u("conv0"),conv1:u("conv1"),conv2:u("conv2"),conv3:u("conv3"),conv4:u("conv4"),conv5:u("conv5"),conv6:s>7?u("conv6"):void 0,conv7:s>8?u("conv7"):void 0,conv8:o("conv8")}}else n={conv0:a("conv0"),conv1:a("conv1"),conv2:a("conv2"),conv3:a("conv3"),conv4:a("conv4"),conv5:a("conv5"),conv6:a("conv6"),conv7:a("conv7"),conv8:o("conv8")};return fd(e,r),{params:n,paramMappings:r}}(e,this.config)},t.prototype.extractParams=function(e){var n=this.config.filterSizes||t.DEFAULT_FILTER_SIZES,r=n?n.length:void 0;if(7!==r&&8!==r&&9!==r)throw new Error("TinyYolov2 - expected 7 | 8 | 9 convolutional filters, but found "+r+" filterSizes in config");return function(e,t,n,r){var i,o=gd(e),a=o.getRemainingWeights,u=[],s=function(e,t){var n=hd(e,t),r=vd(e,t);return{extractConvParams:n,extractConvWithBatchNormParams:function(r,i,o){var a=n(r,i,3,o+"/conv"),u=function(n,r){var i=ln(e(n)),o=ln(e(n));return t.push({paramPath:r+"/sub"},{paramPath:r+"/truediv"}),{sub:i,truediv:o}}(i,o+"/bn");return{conv:a,bn:u}},extractSeparableConvParams:r}}(o.extractWeights,u),c=s.extractConvParams,l=s.extractConvWithBatchNormParams,f=s.extractSeparableConvParams;if(t.withSeparableConvs){var h=r[0],d=r[1],p=r[2],v=r[3],y=r[4],m=r[5],g=r[6],b=r[7],w=r[8];i={conv0:t.isFirstLayerConv2d?c(h,d,3,"conv0"):f(h,d,"conv0"),conv1:f(d,p,"conv1"),conv2:f(p,v,"conv2"),conv3:f(v,y,"conv3"),conv4:f(y,m,"conv4"),conv5:f(m,g,"conv5"),conv6:b?f(g,b,"conv6"):void 0,conv7:w?f(b,w,"conv7"):void 0,conv8:c(w||b||g,5*n,1,"conv8")}}else p=r[2],v=r[3],y=r[4],m=r[5],g=r[6],b=r[7],w=r[8],i={conv0:l(h=r[0],d=r[1],"conv0"),conv1:l(d,p,"conv1"),conv2:l(p,v,"conv2"),conv3:l(v,y,"conv3"),conv4:l(y,m,"conv4"),conv5:l(m,g,"conv5"),conv6:l(g,b,"conv6"),conv7:l(b,w,"conv7"),conv8:c(w,5*n,1,"conv8")};if(0!==a().length)throw new Error("weights remaing after extract: "+a().length);return{params:i,paramMappings:u}}(e,this.config,this.boxEncodingSize,n)},t.prototype.extractBoxes=function(e,t,n){return(0,oh.mG)(this,void 0,void 0,function(){var r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b,w,_,x,k,C,S,E,A,O,D,I,T,M=this;return(0,oh.Jh)(this,function(P){switch(P.label){case 0:return r=t.width,i=t.height,o=Math.max(r,i),a=o/r,u=o/i,s=e.shape[1],c=this.config.anchors.length,l=Bt(function(){var t=e.reshape([s,s,c,M.boxEncodingSize]);return[t.slice([0,0,0,0],[s,s,c,4]),t.slice([0,0,0,4],[s,s,c,1]),M.withClassScores?Dr(t.slice([0,0,0,5],[s,s,c,M.config.classes.length]),3):cn(0)]}),f=l[0],d=l[2],p=[],[4,(h=l[1]).array()];case 1:return v=P.sent(),[4,f.array()];case 2:y=P.sent(),m=0,P.label=3;case 3:if(!(m<s))return[3,12];g=0,P.label=4;case 4:if(!(g<s))return[3,11];b=0,P.label=5;case 5:return b<c?(w=Ch(v[m][g][b][0]),!n||w>n?(_=(g+Ch(y[m][g][b][0]))/s*a,x=(m+Ch(y[m][g][b][1]))/s*u,k=Math.exp(y[m][g][b][2])*this.config.anchors[b].x/s*a,C=Math.exp(y[m][g][b][3])*this.config.anchors[b].y/s*u,S=_-k/2,E=x-C/2,A={row:m,col:g,anchor:b},this.withClassScores?[4,this.extractPredictedClass(d,A)]:[3,7]):[3,9]):[3,10];case 6:return T=P.sent(),[3,8];case 7:T={classScore:1,label:0},P.label=8;case 8:D=(O=T).classScore,I=O.label,p.push((0,oh.pi)({box:new gh(S,E,S+k,E+C),score:w,classScore:w*D,label:I},A)),P.label=9;case 9:return b++,[3,5];case 10:return g++,[3,4];case 11:return m++,[3,3];case 12:return f.dispose(),h.dispose(),d.dispose(),[2,p]}})})},t.prototype.extractPredictedClass=function(e,t){return(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,oh.Jh)(this,function(a){switch(a.label){case 0:return n=t.row,r=t.col,i=t.anchor,[4,e.array()];case 1:return o=a.sent(),[2,Array(this.config.classes.length).fill(0).map(function(e,t){return o[n][r][i][t]}).map(function(e,t){return{classScore:e,label:t}}).reduce(function(e,t){return e.classScore>t.classScore?e:t})]}})})},t.DEFAULT_FILTER_SIZES=[3,16,32,64,128,256,512,1024,1024],t}(ad),sp=function(e){function t(t){void 0===t&&(t=!0);var n=Object.assign({},{withSeparableConvs:t,iouThreshold:.4,classes:["face"]},t?{anchors:ep,meanRgb:tp}:{anchors:Jd,withClassScores:!0});return e.call(this,n)||this}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"withSeparableConvs",{get:function(){return this.config.withSeparableConvs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anchors",{get:function(){return this.config.anchors},enumerable:!0,configurable:!0}),t.prototype.locateFaces=function(e,t){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.detect(e,t)];case 1:return[2,n.sent().map(function(e){return new wh(e.score,e.relativeBox,{width:e.imageWidth,height:e.imageHeight})})]}})})},t.prototype.getDefaultModelName=function(){return this.withSeparableConvs?"tiny_yolov2_separable_conv_model":"tiny_yolov2_model"},t.prototype.extractParamsFromWeigthMap=function(t){return e.prototype.extractParamsFromWeigthMap.call(this,t)},t}(up),cp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name="TinyFaceDetectorOptions",t}return(0,oh.ZT)(t,e),t}(ap),lp=function(){function e(){}return e.prototype.then=function(e){return(0,oh.mG)(this,void 0,void 0,function(){var t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return t=e,[4,this.run()];case 1:return[2,t.apply(void 0,[n.sent()])]}})})},e.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(e){throw new Error("ComposableTask - run is not implemented")})})},e}();function fp(e,t){return Object.assign({},e,{descriptor:t})}function hp(e,t,n,r,i){return void 0===i&&(i=function(e){return e.alignedRect}),(0,oh.mG)(this,void 0,void 0,function(){var o,a,u,s,c;return(0,oh.Jh)(this,function(l){switch(l.label){case 0:return o=e.map(function(e){return function(e){return function(e){return e.detection instanceof wh}(e)&&e.landmarks instanceof Ah&&e.unshiftedLandmarks instanceof Ah&&e.alignedRect instanceof wh}(e)?i(e):e.detection}),(u=r)?[3,5]:t instanceof ye?[4,td(t,o)]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,ed(t,o)];case 3:s=l.sent(),l.label=4;case 4:u=s,l.label=5;case 5:return[4,n(a=u)];case 6:return c=l.sent(),a.forEach(function(e){return e instanceof ye&&e.dispose()}),[2,c]}})})}function dp(e,t,n,r,i){return(0,oh.mG)(this,void 0,void 0,function(){var o=this;return(0,oh.Jh)(this,function(a){return[2,hp([e],t,function(e){return(0,oh.mG)(o,void 0,void 0,function(){return(0,oh.Jh)(this,function(t){return[2,n(e[0])]})})},r,i)]})})}function pp(e,t){var n=t[1];return{height:Math.floor(t[0]*e),width:Math.floor(n*e)}}var vp=function(e){function t(t,n,r,i){return e.call(this,{left:t,top:n,right:r,bottom:i},!0)||this}return(0,oh.ZT)(t,e),t}(mh);function yp(e){return Bt(function(){return fs(ys(e,cn(127.5)),cn(.0078125))})}function mp(e,t){return Bt(function(){return Qu(Dc(e),fs(t,vu(Dc(vu(e)))))})}function gp(e,t,n){return void 0===n&&(n=!1),Bt(function(){var r=ld(e,t.conv1,"valid");return r=mp(r,t.prelu1_alpha),r=mp(r=ld(r=ic(r,n?[2,2]:[3,3],[2,2],"same"),t.conv2,"valid"),t.prelu2_alpha),mp(r=ld(r=n?r:ic(r,[3,3],[2,2],"valid"),t.conv3,"valid"),t.prelu3_alpha)})}function bp(e,t,n,r,i){i.stage1=[];var o=t.map(function(t){return Bt(function(){var n={scale:t},i=function(e,t){return Bt(function(){var n=pp(t,e.shape.slice(1)),r=yp(Cl.resizeBilinear(e,[n.height,n.width]));return Mc(r,[0,2,1,3])})}(e,t),o=Date.now(),a=function(e,t){return Bt(function(){var n=gp(e,t,!0),r=ld(n,t.conv4_1,"valid"),i=Hn(wc(r,3),3);return{prob:Dr(ys(r,i),3),regions:ld(n,t.conv4_2,"valid")}})}(i,r),u=a.prob,s=a.regions;return n.pnet=Date.now()-o,{scoresTensor:lr(lr(u,3)[1])[0],regionsTensor:lr(s)[0],scale:t,statsForScale:n}})}),a=o.map(function(e){var t=e.scoresTensor,r=e.regionsTensor,o=e.statsForScale,a=function(e,t,n,r){for(var i=[],o=e.arraySync(),a=0;a<e.shape[0];a++)for(var u=0;u<e.shape[1];u++)o[a][u]>=r&&i.push(new yh(u,a));return i.map(function(e){var r=new gh(Math.round((2*e.y+1)/n),Math.round((2*e.x+1)/n),Math.round((2*e.y+12)/n),Math.round((2*e.x+12)/n)),i=o[e.y][e.x],a=t.arraySync();return{cell:r,score:i,region:new vp(a[e.y][e.x][0],a[e.y][e.x][1],a[e.y][e.x][2],a[e.y][e.x][3])}})}(t,r,e.scale,n);if(t.dispose(),r.dispose(),!a.length)return i.stage1.push(o),[];var u=Date.now(),s=xh(a.map(function(e){return e.cell}),a.map(function(e){return e.score}),.5);return o.nms=Date.now()-u,o.numBoxes=s.length,i.stage1.push(o),s.map(function(e){return a[e]})}),u=a.reduce(function(e,t){return e.concat(t)},[]),s=[],c=[];if(u.length>0){var l=Date.now(),f=xh(u.map(function(e){return e.cell}),u.map(function(e){return e.score}),.7);i.stage1_nms=Date.now()-l,c=f.map(function(e){return u[e].score}),s=f.map(function(e){return u[e]}).map(function(e){var t=e.cell,n=e.region;return new gh(t.left+n.left*t.width,t.top+n.top*t.height,t.right+n.right*t.width,t.bottom+n.bottom*t.height).toSquare().round()})}return{boxes:s,scores:c}}function wp(e,t,n){var r=n.width,i=n.height;return(0,oh.mG)(this,void 0,void 0,function(){var n,o,a,u=this;return(0,oh.Jh)(this,function(s){switch(s.label){case 0:return n=zh(e),[4,Promise.all(t.map(function(t){return(0,oh.mG)(u,void 0,void 0,function(){var r,i,o,a;return(0,oh.Jh)(this,function(u){return r=t.padAtBorders(e.height,e.width),a=n.getImageData(i=r.x-1,o=r.y-1,r.ex-i,r.ey-o),[2,Wh.isNodejs()?$h(a):createImageBitmap(a)]})})}))];case 1:return o=s.sent(),a=[],o.forEach(function(e){var t=zh(Yh({width:r,height:i}));t.drawImage(e,0,0,r,i);for(var n=t.getImageData(0,0,r,i).data,o=[],u=0;u<n.length;u+=4)o.push(n[u+2]),o.push(n[u+1]),o.push(n[u]);a.push(o)}),[2,a.map(function(e){return Bt(function(){return yp(Mc(dn(e,[1,r,i,3]),[0,2,1,3]).toFloat())})})]}})})}function _p(e,t,n,r,i){return(0,oh.mG)(this,void 0,void 0,function(){var o,a,u,s,c,l,f,h,d,p,v,y,m,g;return(0,oh.Jh)(this,function(b){switch(b.label){case 0:return o=Date.now(),[4,wp(e,t,{width:24,height:24})];case 1:return a=b.sent(),i.stage2_extractImagePatches=Date.now()-o,o=Date.now(),u=a.map(function(e){var t=function(e,t){return Bt(function(){var n=gp(e,t),r=mp(kd(ir(n,[n.shape[0],t.fc1.weights.shape[0]]),t.fc1),t.prelu4_alpha),i=kd(r,t.fc2_1),o=Hn(wc(i,1),1),a=Dr(ys(i,o),1),u=kd(r,t.fc2_2);return{scores:lr(a,1)[1],regions:u}})}(e,r);return e.dispose(),t}),i.stage2_rnet=Date.now()-o,s=u.length>1?wn(u.map(function(e){return e.scores})):u[0].scores,f=(l=Array).from,[4,s.data()];case 2:return c=f.apply(l,[b.sent()]),s.dispose(),h=c.map(function(e,t){return{score:e,idx:t}}).filter(function(e){return e.score>n}).map(function(e){return e.idx}),d=h.map(function(e){return t[e]}),p=h.map(function(e){return c[e]}),v=[],y=[],d.length>0&&(o=Date.now(),m=xh(d,p,.7),i.stage2_nms=Date.now()-o,g=m.map(function(e){var t=u[h[e]].regions.arraySync();return new vp(t[0][0],t[0][1],t[0][2],t[0][3])}),y=m.map(function(e){return p[e]}),v=m.map(function(e,t){return d[e].calibrate(g[t])})),u.forEach(function(e){e.regions.dispose(),e.scores.dispose()}),[2,{boxes:v,scores:y}]}})})}function xp(e,t,n,r,i){return(0,oh.mG)(this,void 0,void 0,function(){var o,a,u,s,c,l,f,h,d,p,v,y,m,g,b;return(0,oh.Jh)(this,function(w){switch(w.label){case 0:return o=Date.now(),[4,wp(e,t,{width:48,height:48})];case 1:return a=w.sent(),i.stage3_extractImagePatches=Date.now()-o,o=Date.now(),u=a.map(function(e){var t=function(e,t){return Bt(function(){var n=gp(e,t);n=mp(n=ld(n=ic(n,[2,2],[2,2],"same"),t.conv4,"valid"),t.prelu4_alpha);var r=mp(kd(ir(n,[n.shape[0],t.fc1.weights.shape[0]]),t.fc1),t.prelu5_alpha),i=kd(r,t.fc2_1),o=Hn(wc(i,1),1),a=Dr(ys(i,o),1),u=kd(r,t.fc2_2),s=kd(r,t.fc2_3);return{scores:lr(a,1)[1],regions:u,points:s}})}(e,r);return e.dispose(),t}),i.stage3_onet=Date.now()-o,s=u.length>1?wn(u.map(function(e){return e.scores})):u[0].scores,f=(l=Array).from,[4,s.data()];case 2:return c=f.apply(l,[w.sent()]),s.dispose(),h=c.map(function(e,t){return{score:e,idx:t}}).filter(function(e){return e.score>n}).map(function(e){return e.idx}),d=h.map(function(e){var t=u[e].regions.arraySync();return new vp(t[0][0],t[0][1],t[0][2],t[0][3])}),p=h.map(function(e,n){return t[e].calibrate(d[n])}),v=h.map(function(e){return c[e]}),y=[],m=[],g=[],p.length>0&&(o=Date.now(),b=xh(p,v,.7,!1),i.stage3_nms=Date.now()-o,y=b.map(function(e){return p[e]}),m=b.map(function(e){return v[e]}),g=b.map(function(e,t){return Array(5).fill(0).map(function(n,r){var i=u[e].points.arraySync();return new yh(i[0][r]*(y[t].width+1)+y[t].left,i[0][r+5]*(y[t].height+1)+y[t].top)})})),u.forEach(function(e){e.regions.dispose(),e.scores.dispose(),e.points.dispose()}),[2,{boxes:y,scores:m,points:g}]}})})}var kp=function(e){function t(){return e.call(this,"Mtcnn")||this}return(0,oh.ZT)(t,e),t.prototype.load=function(t){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(n){return console.warn("mtcnn is deprecated and will be removed soon"),[2,e.prototype.load.call(this,t)]})})},t.prototype.loadFromDisk=function(t){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(n){return console.warn("mtcnn is deprecated and will be removed soon"),[2,e.prototype.loadFromDisk.call(this,t)]})})},t.prototype.forwardInput=function(e,t){return void 0===t&&(t={}),(0,oh.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b,w,_;return(0,oh.Jh)(this,function(x){switch(x.label){case 0:if(!(n=this.params))throw new Error("Mtcnn - load model before inference");if(!(r=e.canvases[0]))throw new Error("Mtcnn - inputCanvas is not defined, note that passing tensors into Mtcnn.forwardInput is not supported yet.");return i={},o=Date.now(),a=Bt(function(){return function(e){return Bt(function(){return ur(lr(e,3).reverse(),3)})}(Hn(qf.fromPixels(r)).toFloat())}),u=function(e){return a.dispose(),i.total=Date.now()-o,e},s=a.shape.slice(1),c=s[0],l=s[1],f=new Kd(t),h=f.minFaceSize,d=f.scaleFactor,p=f.maxNumScales,v=f.scoreThresholds,y=(f.scaleSteps||function(e,t,n){for(var r=12/e,i=[],o=Math.min(n[0],n[1])*r,a=0;o>=12;)i.push(r*Math.pow(t,a)),o*=t,a+=1;return i}(h,d,[c,l])).filter(function(e){var t=pp(e,[c,l]);return Math.min(t.width,t.height)>12}).slice(0,p),i.scales=y,i.pyramid=y.map(function(e){return pp(e,[c,l])}),m=Date.now(),[4,bp(a,y,v[0],n.pnet,i)];case 1:return g=x.sent(),i.total_stage1=Date.now()-m,g.boxes.length?(i.stage2_numInputBoxes=g.boxes.length,m=Date.now(),[4,_p(r,g.boxes,v[1],n.rnet,i)]):[2,u({results:[],stats:i})];case 2:return b=x.sent(),i.total_stage2=Date.now()-m,b.boxes.length?(i.stage3_numInputBoxes=b.boxes.length,m=Date.now(),[4,xp(r,b.boxes,v[2],n.onet,i)]):[2,u({results:[],stats:i})];case 3:return w=x.sent(),i.total_stage3=Date.now()-m,_=w.boxes.map(function(e,t){return Id(Ph({},new wh(w.scores[t],new Eh(e.left/l,e.top/c,e.width/l,e.height/c),{height:c,width:l})),new Oh(w.points[t].map(function(t){return t.sub(new yh(e.left,e.top)).div(new yh(e.width,e.height))}),{width:e.width,height:e.height}))}),[2,u({results:_,stats:i})]}})})},t.prototype.forward=function(e,t){return void 0===t&&(t={}),(0,oh.mG)(this,void 0,void 0,function(){var n;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return n=this.forwardInput,[4,Jh(e)];case 1:return[4,n.apply(this,[r.sent(),t])];case 2:return[2,r.sent().results]}})})},t.prototype.forwardWithStats=function(e,t){return void 0===t&&(t={}),(0,oh.mG)(this,void 0,void 0,function(){var n;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return n=this.forwardInput,[4,Jh(e)];case 1:return[2,n.apply(this,[r.sent(),t])]}})})},t.prototype.getDefaultModelName=function(){return"mtcnn_model"},t.prototype.extractParamsFromWeigthMap=function(e){return function(e){var t=[],n=function(e,t){var n=md(e,t);function r(e){return{filters:n(e+"/weights",4,e+"/filters"),bias:n(e+"/bias",1)}}function i(e){return{weights:n(e+"/weights",2),bias:n(e+"/bias",1)}}function o(e){return n(e,1)}function a(e){return{conv1:r(e+"/conv1"),prelu1_alpha:o(e+"/prelu1_alpha"),conv2:r(e+"/conv2"),prelu2_alpha:o(e+"/prelu2_alpha"),conv3:r(e+"/conv3"),prelu3_alpha:o(e+"/prelu3_alpha")}}return{extractPNetParams:function(){var e=a("pnet"),t=r("pnet/conv4_1"),n=r("pnet/conv4_2");return(0,oh.pi)((0,oh.pi)({},e),{conv4_1:t,conv4_2:n})},extractRNetParams:function(){var e=a("rnet"),t=i("rnet/fc1"),n=o("rnet/prelu4_alpha"),r=i("rnet/fc2_1"),u=i("rnet/fc2_2");return(0,oh.pi)((0,oh.pi)({},e),{fc1:t,prelu4_alpha:n,fc2_1:r,fc2_2:u})},extractONetParams:function(){var e=a("onet"),t=r("onet/conv4"),n=o("onet/prelu4_alpha"),u=i("onet/fc1"),s=o("onet/prelu5_alpha"),c=i("onet/fc2_1"),l=i("onet/fc2_2"),f=i("onet/fc2_3");return(0,oh.pi)((0,oh.pi)({},e),{conv4:t,prelu4_alpha:n,fc1:u,prelu5_alpha:s,fc2_1:c,fc2_2:l,fc2_3:f})}}}(e,t),r=n.extractRNetParams,i=n.extractONetParams,o=(0,n.extractPNetParams)(),a=r(),u=i();return fd(e,t),{params:{pnet:o,rnet:a,onet:u},paramMappings:t}}(e)},t.prototype.extractParams=function(e){return function(e){var t=gd(e),n=t.getRemainingWeights,r=[],i=function(e,t){var n=hd(e,t),r=dd(e,t);function i(n,r){var i=ln(e(n));return t.push({paramPath:r}),i}function o(e,t,r){return void 0===r&&(r=!1),{conv1:n(e[0],e[1],3,t+"/conv1"),prelu1_alpha:i(e[1],t+"/prelu1_alpha"),conv2:n(e[1],e[2],3,t+"/conv2"),prelu2_alpha:i(e[2],t+"/prelu2_alpha"),conv3:n(e[2],e[3],r?2:3,t+"/conv3"),prelu3_alpha:i(e[3],t+"/prelu3_alpha")}}return{extractPNetParams:function(){var e=o([3,10,16,32],"pnet"),t=n(32,2,1,"pnet/conv4_1"),r=n(32,4,1,"pnet/conv4_2");return(0,oh.pi)((0,oh.pi)({},e),{conv4_1:t,conv4_2:r})},extractRNetParams:function(){var e=o([3,28,48,64],"rnet",!0),t=r(576,128,"rnet/fc1"),n=i(128,"rnet/prelu4_alpha"),a=r(128,2,"rnet/fc2_1"),u=r(128,4,"rnet/fc2_2");return(0,oh.pi)((0,oh.pi)({},e),{fc1:t,prelu4_alpha:n,fc2_1:a,fc2_2:u})},extractONetParams:function(){var e=o([3,32,64,64],"onet"),t=n(64,128,2,"onet/conv4"),a=i(128,"onet/prelu4_alpha"),u=r(1152,256,"onet/fc1"),s=i(256,"onet/prelu5_alpha"),c=r(256,2,"onet/fc2_1"),l=r(256,4,"onet/fc2_2"),f=r(256,10,"onet/fc2_3");return(0,oh.pi)((0,oh.pi)({},e),{conv4:t,prelu4_alpha:a,fc1:u,prelu5_alpha:s,fc2_1:c,fc2_2:l,fc2_3:f})}}}(t.extractWeights,r),o=i.extractRNetParams,a=i.extractONetParams,u=(0,i.extractPNetParams)(),s=o(),c=a();if(0!==n().length)throw new Error("weights remaing after extract: "+n().length);return{params:{pnet:u,rnet:s,onet:c},paramMappings:r}}(e)},t}
1(ad),Cp=[new yh(1.603231,2.094468),new yh(6.041143,7.080126),new yh(2.882459,3.518061),new yh(4.266906,5.178857),new yh(9.041765,10.66308)],Sp=[117.001,114.697,97.404],Ep=function(e){function t(){return e.call(this,{withSeparableConvs:!0,iouThreshold:.4,classes:["face"],anchors:Cp,meanRgb:Sp,isFirstLayerConv2d:!0,filterSizes:[3,16,32,64,128,256,512]})||this}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"anchors",{get:function(){return this.config.anchors},enumerable:!0,configurable:!0}),t.prototype.locateFaces=function(e,t){return(0,oh.mG)(this,void 0,void 0,function(){return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.detect(e,t)];case 1:return[2,n.sent().map(function(e){return new wh(e.score,e.relativeBox,{width:e.imageWidth,height:e.imageHeight})})]}})})},t.prototype.getDefaultModelName=function(){return"tiny_face_detector_model"},t.prototype.extractParamsFromWeigthMap=function(t){return e.prototype.extractParamsFromWeigthMap.call(this,t)},t}(up),Ap={ssdMobilenetv1:new Xd,tinyFaceDetector:new Ep,tinyYolov2:new sp,mtcnn:new kp,faceLandmark68Net:new jd,faceLandmark68TinyNet:new Bd,faceRecognitionNet:new Hd,faceExpressionNet:new Od,ageGenderNet:new Fd};function Op(e,t){return Object.assign({},e,{age:t})}var Dp=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parentTask=t,i.input=n,i.extractedFaces=r,i}return(0,oh.ZT)(t,e),t}(lp),Ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n=this;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return[4,this.parentTask];case 1:return[4,hp(e=r.sent(),this.input,function(e){return(0,oh.mG)(n,void 0,void 0,function(){return(0,oh.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return Ap.faceExpressionNet.predictExpressions(e)}))];case 1:return[2,t.sent()]}})})},this.extractedFaces)];case 2:return t=r.sent(),[2,e.map(function(e,n){return Dd(e,t[n])})]}})})},t.prototype.withAgeAndGender=function(){return new Fp(this,this.input)},t}(Dp),Tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.parentTask];case 1:return(e=n.sent())?[4,dp(e,this.input,function(e){return Ap.faceExpressionNet.predictExpressions(e)},this.extractedFaces)]:[2];case 2:return t=n.sent(),[2,Dd(e,t)]}})})},t.prototype.withAgeAndGender=function(){return new Np(this,this.input)},t}(Dp),Mp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.withAgeAndGender=function(){return new jp(this,this.input)},t.prototype.withFaceDescriptors=function(){return new Vp(this,this.input)},t}(Ip),Pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.withAgeAndGender=function(){return new Lp(this,this.input)},t.prototype.withFaceDescriptor=function(){return new Wp(this,this.input)},t}(Tp),Rp=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parentTask=t,i.input=n,i.extractedFaces=r,i}return(0,oh.ZT)(t,e),t}(lp),Fp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n=this;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return[4,this.parentTask];case 1:return[4,hp(e=r.sent(),this.input,function(e){return(0,oh.mG)(n,void 0,void 0,function(){return(0,oh.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return Ap.ageGenderNet.predictAgeAndGender(e)}))];case 1:return[2,t.sent()]}})})},this.extractedFaces)];case 2:return t=r.sent(),[2,e.map(function(e,n){var r=t[n],i=r.age;return Op(Gd(e,r.gender,r.genderProbability),i)})]}})})},t.prototype.withFaceExpressions=function(){return new Ip(this,this.input)},t}(Rp),Np=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n;return(0,oh.Jh)(this,function(r){switch(r.label){case 0:return[4,this.parentTask];case 1:return(e=r.sent())?[4,dp(e,this.input,function(e){return Ap.ageGenderNet.predictAgeAndGender(e)},this.extractedFaces)]:[2];case 2:return t=r.sent(),n=t.age,[2,Op(Gd(e,t.gender,t.genderProbability),n)]}})})},t.prototype.withFaceExpressions=function(){return new Tp(this,this.input)},t}(Rp),jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.withFaceExpressions=function(){return new Mp(this,this.input)},t.prototype.withFaceDescriptors=function(){return new Vp(this,this.input)},t}(Fp),Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.withFaceExpressions=function(){return new Pp(this,this.input)},t.prototype.withFaceDescriptor=function(){return new Wp(this,this.input)},t}(Np),Bp=function(e){function t(t,n){var r=e.call(this)||this;return r.parentTask=t,r.input=n,r}return(0,oh.ZT)(t,e),t}(lp),Vp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e;return(0,oh.Jh)(this,function(t){switch(t.label){case 0:return[4,this.parentTask];case 1:return[4,hp(e=t.sent(),this.input,function(e){return Promise.all(e.map(function(e){return Ap.faceRecognitionNet.computeFaceDescriptor(e)}))},null,function(e){return e.landmarks.align(null,{useDlibAlignment:!0})})];case 2:return[2,t.sent().map(function(t,n){return fp(e[n],t)})]}})})},t.prototype.withFaceExpressions=function(){return new Mp(this,this.input)},t.prototype.withAgeAndGender=function(){return new jp(this,this.input)},t}(Bp),Wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.parentTask];case 1:return(e=n.sent())?[4,dp(e,this.input,function(e){return Ap.faceRecognitionNet.computeFaceDescriptor(e)},null,function(e){return e.landmarks.align(null,{useDlibAlignment:!0})})]:[2];case 2:return t=n.sent(),[2,fp(e,t)]}})})},t.prototype.withFaceExpressions=function(){return new Pp(this,this.input)},t.prototype.withAgeAndGender=function(){return new Lp(this,this.input)},t}(Bp),Up=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parentTask=t,i.input=n,i.useTinyLandmarkNet=r,i}return(0,oh.ZT)(t,e),Object.defineProperty(t.prototype,"landmarkNet",{get:function(){return this.useTinyLandmarkNet?Ap.faceLandmark68TinyNet:Ap.faceLandmark68Net},enumerable:!0,configurable:!0}),t}(lp),zp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o=this;return(0,oh.Jh)(this,function(a){switch(a.label){case 0:return[4,this.parentTask];case 1:return e=a.sent(),t=e.map(function(e){return e.detection}),this.input instanceof ye?[4,td(this.input,t)]:[3,3];case 2:return r=a.sent(),[3,5];case 3:return[4,ed(this.input,t)];case 4:r=a.sent(),a.label=5;case 5:return n=r,[4,Promise.all(n.map(function(e){return o.landmarkNet.detectLandmarks(e)}))];
1case 6:return i=a.sent(),n.forEach(function(e){return e instanceof ye&&e.dispose()}),[2,e.map(function(e,t){return Id(e,i[t])})]}})})},t.prototype.withFaceExpressions=function(){return new Mp(this,this.input)},t.prototype.withAgeAndGender=function(){return new jp(this,this.input)},t.prototype.withFaceDescriptors=function(){return new Vp(this,this.input)},t}(Up),qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n,r,i;return(0,oh.Jh)(this,function(o){switch(o.label){case 0:return[4,this.parentTask];case 1:return(e=o.sent())?(t=e.detection,this.input instanceof ye?[4,td(this.input,[t])]:[3,3]):[2];case 2:return r=o.sent(),[3,5];case 3:return[4,ed(this.input,[t])];case 4:r=o.sent(),o.label=5;case 5:return[4,this.landmarkNet.detectLandmarks((n=r)[0])];case 6:return i=o.sent(),n.forEach(function(e){return e instanceof ye&&e.dispose()}),[2,Id(e,i)]}})})},t.prototype.withFaceExpressions=function(){return new Pp(this,this.input)},t.prototype.withAgeAndGender=function(){return new Lp(this,this.input)},t.prototype.withFaceDescriptor=function(){return new Wp(this,this.input)},t}(Up),Hp=function(e){function t(t,n){void 0===n&&(n=new Qd);var r=e.call(this)||this;return r.input=t,r.options=n,r}return(0,oh.ZT)(t,e),t}(lp),Gp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t,n,r;return(0,oh.Jh)(this,function(i){switch(i.label){case 0:return t=(e=this).input,(n=e.options)instanceof Kd?[4,Ap.mtcnn.forward(t,n)]:[3,2];case 1:return[2,i.sent().map(function(e){return e.detection})];case 2:if(!(r=n instanceof cp?function(e){return Ap.tinyFaceDetector.locateFaces(e,n)}:n instanceof Qd?function(e){return Ap.ssdMobilenetv1.locateFaces(e,n)}:n instanceof ap?function(e){return Ap.tinyYolov2.locateFaces(e,n)}:null))throw new Error("detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | MtcnnOptions | TinyYolov2Options");return[2,r(t)]}})})},t.prototype.runAndExtendWithFaceDetections=function(){var e=this;return new Promise(function(t){return(0,oh.mG)(e,void 0,void 0,function(){var e;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.run()];case 1:return e=n.sent(),[2,t(e.map(function(e){return Ph({},e)}))]}})})})},t.prototype.withFaceLandmarks=function(e){return void 0===e&&(e=!1),new zp(this.runAndExtendWithFaceDetections(),this.input,e)},t.prototype.withFaceExpressions=function(){return new Ip(this.runAndExtendWithFaceDetections(),this.input)},t.prototype.withAgeAndGender=function(){return new Fp(this.runAndExtendWithFaceDetections(),this.input)},t}(Hp);function Kp(e,t){return void 0===t&&(t=new Qd),new Gp(e,t)}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,oh.ZT)(t,e),t.prototype.run=function(){return(0,oh.mG)(this,void 0,void 0,function(){var e,t;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,new Gp(this.input,this.options)];case 1:return e=n.sent(),t=e[0],e.forEach(function(e){e.score>t.score&&(t=e)}),[2,t]}})})},t.prototype.runAndExtendWithFaceDetection=function(){var e=this;return new Promise(function(t){return(0,oh.mG)(e,void 0,void 0,function(){var e;return(0,oh.Jh)(this,function(n){switch(n.label){case 0:return[4,this.run()];case 1:return e=n.sent(),[2,t(e?Ph({},e):void 0)]}})})})},t.prototype.withFaceLandmarks=function(e){return void 0===e&&(e=!1),new qp(this.runAndExtendWithFaceDetection(),this.input,e)},t.prototype.withFaceExpressions=function(){return new Tp(this.runAndExtendWithFaceDetection(),this.input)},t.prototype.withAgeAndGender=function(){return new Np(this.runAndExtendWithFaceDetection(),this.input)}}(Hp),function(){function e(e,t){void 0===t&&(t=.6),this._distanceThreshold=t;var n=Array.isArray(e)?e:[e];if(!n.length)throw new Error("FaceRecognizer.constructor - expected atleast one input");var r=1,i=function(){return"person "+r++};this._labeledDescriptors=n.map(function(e){if(e instanceof Mh)return e;if(e instanceof Float32Array)return new Mh(i(),[e]);if(e.descriptor&&e.descriptor instanceof Float32Array)return new Mh(i(),[e.descriptor]);throw new Error("FaceRecognizer.constructor - expected inputs to be of type LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>")})}Object.defineProperty(e.prototype,"labeledDescriptors",{get:function(){return this._labeledDescriptors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distanceThreshold",{get:function(){return this._distanceThreshold},enumerable:!0,configurable:!0}),e.prototype.computeMeanDistance=function(e,t){return t.map(function(t){return function(e,t){if(e.length!==t.length)throw new Error("euclideanDistance: arr1.length !== arr2.length");var n=Array.from(e),r=Array.from(t);return Math.sqrt(n.map(function(e,t){return e-r[t]}).reduce(function(e,t){return e+Math.pow(t,2)},0))}(t,e)}).reduce(function(e,t){return e+t},0)/(t.length||1)},e.prototype.matchDescriptor=function(e){var t=this;return this.labeledDescriptors.map(function(n){return new Ih(n.label,t.computeMeanDistance(e,n.descriptors))}).reduce(function(e,t){return e.distance<t.distance?e:t})},e.prototype.findBestMatch=function(e){var t=this.matchDescriptor(e);return t.distance<this.distanceThreshold?t:new Ih("unknown",t.distance)},e.prototype.toJSON=function(){return{distanceThreshold:this.distanceThreshold,labeledDescriptors:this.labeledDescriptors.map(function(e){return e.toJSON()})}},e.fromJSON=function(t){return new e(t.labeledDescriptors.map(function(e){return Mh.fromJSON(e)}),t.distanceThreshold)}}()},88007:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},u=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==i)throw new TypeError(t+s);
vendor: 2,437 bytes, line 1
1for(var c,l=a(arguments,1),f=function(){if(this instanceof c){var t=s.apply(this,o(l,arguments));return Object(t)===t?t:this}return s.apply(e,o(l,arguments))},h=r(0,s.length-l.length),d=[],p=0;p<h;p++)d[p]="$"+p;if(c=Function("binder","return function ("+u(d,",")+"){ return binder.apply(this,arguments); }")(f),s.prototype){var v=function(){};v.prototype=s.prototype,c.prototype=new v,v.prototype=null}return c}},58755:function(e,t,n){"use strict";var r=n(88007);e.exports=Function.prototype.bind||r},87044:function(e,t,n){"use strict";var r,i=n(82746),o=n(80199),a=n(41372),u=n(91206),s=n(28332),c=n(64525),l=n(56315),f=n(7657),h=n(57350),d=n(84839),p=n(37564),v=n(52531),y=n(20746),m=Function,g=function(e){try{return m('"use strict"; return ('+e+").constructor;")()}catch(t){}},b=n(36502),w=n(11254),_=function(){throw new l},x=b?function(){try{return _}catch(e){try{return b(arguments,"callee").get}catch(t){return _}}}():_,k=n(63834)(),C=n(13562),S="function"==typeof Reflect&&Reflect.getPrototypeOf||i.getPrototypeOf||C,E=n(87380),A=n(90355),O={},D="undefined"!=typeof Uint8Array&&S?S(Uint8Array):r,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":k&&S?S(S([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&S?S((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":u,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&S?S((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&S?S(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":D,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":E,"%Object.defineProperty%":w,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":y};if(S)try{null.error}catch(H){var T=S(S(H));I["%Error.prototype%"]=T}var M=function e(t){var n;if("%AsyncFunction%"===t)n=g("async function () {}");else if("%GeneratorFunction%"===t)n=g("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=g("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&S&&(n=S(i.prototype))}return I[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=n(58755),F=n(5130),N=R.call(A,Array.prototype.concat),j=R.call(E,Array.prototype.splice),L=R.call(A,String.prototype.replace),B=R.call(A,String.prototype.slice),V=R.call(A,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,z=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,W,function(e,t,n,i){r[r.length]=n?L(i,U,"$1"):t||e}),r},q=function(e,t){var n,r=e;if(F(P,r)&&(r="%"+(n=P[r])[0]+"%"),F(I,r)){var i=I[r];if(i===O&&(i=M(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=z(e),r=n.length>0?n[0]:"",i=q("%"+r+"%",t),o=i.name,a=i.value,u=!1,s=i.alias;s&&(r=s[0],j(n,N([0,1],s)));for(var f=1,h=!0;f<n.length;f+=1){var d=n[f],p=B(d,0,1),v=B(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===v||"'"===v||"`"===v)&&p!==v)throw new c("property names with quotes must have matching quotes");if(("constructor"===d||!h)&&(u=!0),F(I,o="%"+(r+="."+d)+"%"))a=I[o];
1else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&f+1>=n.length){var y=b(a,d);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else h=F(a,d),a=a[d];h&&!u&&(I[o]=a)}}return a}},29996:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},36502:function(e,t,n){"use strict";var r=n(29996);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},16900:function(e,t,n){"use strict";var r=n(11254),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},63834:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(27052);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},27052:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5130:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(58755);e.exports=o.call(r,i)},6147:function(e,t,n){"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:function(){return o}}),(r.prototype=new Error).name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,u="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?u+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return u};function o(e){this.message=e}(o.prototype=new Error).name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(i(t).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(n){return i(t)}}(e.split(".")[n]))}catch(r){throw new o("Invalid token specified: "+r.message)}}},98293:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}var r,i=(function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(r={exports:{}}),r.exports),o=/[&<>"']/,a=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return c[e]},f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(f,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,y={},m=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}var _=function(e,t){if(t){if(o.test(e))return e.replace(a,l)}else if(u.test(e))return e.replace(s,l);return e},x=h,k=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},C=i.defaults,S=w,E=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}
vendor: 9,986 bytes, line 1
1,A=_,O=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1};function D(e,t,n){var r=t.href,i=t.title?A(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:o}:{type:"image",raw:n,href:r,title:i,text:A(o)}}var I=function(){function e(e){this.options=e||C}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var r=t[t.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:S(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=S(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:E(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=E(n.cells[r],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,u,s,c,l=t[0],f=t[2],h=f.length>1,d={type:"list",raw:l,ordered:h,start:h?+f.slice(0,-1):"",loose:!1,items:[]},p=t[0].match(this.rules.block.item),v=!1,y=p.length;i=this.rules.block.listItemStart.exec(p[0]);for(var m=0;m<y;m++){if(l=n=p[m],m!==y-1){if(o=this.rules.block.listItemStart.exec(p[m+1]),this.options.pedantic?o[1].length>i[1].length:o[1].length>i[0].length||o[1].length>3){p.splice(m,2,p[m]+"\n"+p[m+1]),m--,y--;continue}(!this.options.pedantic||this.options.smartLists?o[2][o[2].length-1]!==f[f.length-1]:h===(1===o[2].length))&&(a=p.slice(m+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-a.length),m=y-1),i=o}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),u=v||/\n\n(?!\s*$)/.test(n),m!==y-1&&(v="\n"===n.charAt(n.length-1),u||(u=v)),u&&(d.loose=!0),this.options.gfm&&(c=void 0,(s=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:l,task:s,checked:c,loose:u,text:n})}return d}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:E(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=E(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e,t){var n=this.rules.block.text.exec(e);if(n){var r=t[t.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:A(t[1])}},t.tag=function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):A(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=S(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=O(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],u="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);s&&(a=s[1],u=s[3])}else u=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),D(t,{href:a&&a.replace(this.rules.inline._escapes,"$1"),title:u&&u.replace(this.rules.inline._escapes,"$1")},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return D(n,r,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,o="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(o.lastIndex=0;null!=(r=o.exec(t));)if(i=this.rules.inline.strong.middle.exec(t.slice(0,r.index+3)))return{type:"strong",raw:e.slice(0,i[0].length),text:e.slice(2,i[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,o="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(o.lastIndex=0;null!=(r=o.exec(t));)if(i=this.rules.inline.em.middle.exec(t.slice(0,r.index+2)))return{type:"em",raw:e.slice(0,i[0].length),text:e.slice(1,i[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=A(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=A(this.options.mangle?t(i[1]):i[1])):n=A(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=A(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=A(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,i=this.rules.inline.text.exec(e);if(i)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):A(i[0]):i[0]:A(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},e}(),T={exec:function(){}},M=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(d,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},P=k,R={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};R.def=M(R.def).replace("label",R._label).replace("title",R._title).getRegex(),R.bullet=/(?:[*+-]|\d{1,9}
1[.)])/,R.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,R.item=M(R.item,"gm").replace(/bull/g,R.bullet).getRegex(),R.listItemStart=M(/^( *)(bull)/).replace("bull",R.bullet).getRegex(),R.list=M(R.list).replace(/bull/g,R.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+R.def.source+")").getRegex(),R._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,R.html=M(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=M(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.blockquote=M(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=P({},R),R.gfm=P({},R.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.nptable=M(R.gfm.nptable).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.gfm.table=M(R.gfm.table).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.pedantic=P({},R.normal,{html:M("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:M(R.normal._paragraph).replace("hr",R.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var F={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?
vendor: 16,689 bytes, line 1
1:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};F.punctuation=M(F.punctuation).replace(/punctuation/g,F._punctuation).getRegex(),F._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",F._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",F._comment=M(R._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),F.em.start=M(F.em.start).replace(/punctuation/g,F._punctuation).getRegex(),F.em.middle=M(F.em.middle).replace(/punctuation/g,F._punctuation).replace(/overlapSkip/g,F._overlapSkip).getRegex(),F.em.endAst=M(F.em.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.em.endUnd=M(F.em.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.start=M(F.strong.start).replace(/punctuation/g,F._punctuation).getRegex(),F.strong.middle=M(F.strong.middle).replace(/punctuation/g,F._punctuation).replace(/overlapSkip/g,F._overlapSkip).getRegex(),F.strong.endAst=M(F.strong.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.endUnd=M(F.strong.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.blockSkip=M(F._blockSkip,"g").getRegex(),F.overlapSkip=M(F._overlapSkip,"g").getRegex(),F._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,F._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,F._email=/[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])?)+(?![-_])/,F.autolink=M(F.autolink).replace("scheme",F._scheme).replace("email",F._email).getRegex(),F._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,F.tag=M(F.tag).replace("comment",F._comment).replace("attribute",F._attribute).getRegex(),F._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,F._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,F._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,F.link=M(F.link).replace("label",F._label).replace("href",F._href).replace("title",F._title).getRegex(),F.reflink=M(F.reflink).replace("label",F._label).getRegex(),F.reflinkSearch=M(F.reflinkSearch,"g").replace("reflink",F.reflink).replace("nolink",F.nolink).getRegex(),F.normal=P({},F),F.pedantic=P({},F.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",F._label).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",F._label).getRegex()}),F.gfm=P({},F.normal,{escape:M(F.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),F.gfm.url=M(F.gfm.url,"i").replace("email",F.gfm._extended_email).getRegex(),F.breaks=P({},F.gfm,{br:M(F.br).replace("{2,}","*").getRegex(),text:M(F.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var N={block:R,inline:F},j=i.defaults,L=N.block,B=N.inline,V=function(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function W(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function U(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var z=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||j,this.options.tokenizer=this.options.tokenizer||new I,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:L.normal,inline:B.normal};this.options.pedantic?(t.block=L.pedantic,t.inline=B.pedantic):this.options.gfm&&(t.block=L.gfm,t.inline=this.options.breaks?B.breaks:B.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n=t.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));for(var r,i,o,a;e;)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e,t))e=e.substring(r.raw.length),r.type?t.push(r):((a=t[t.length-1]).raw+="\n"+r.raw,a.text+="\n"+r.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),o=r.items.length,i=0;i<o;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.paragraph(e)))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.text(e,t))e=e.substring(r.raw.length),r.type?t.push(r):((a=t[t.length-1]).raw+="\n"+r.raw,a.text+="\n"+r.text);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}return t},n.inline=function(e){var t,n,r,i,o,a,u=e.length;for(t=0;t<u;t++)switch(a=e[t],a.type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,n=0;n<i;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(i=a.cells.length,n=0;n<i;n++)for(o=a.cells[n],a.tokens.cells[n]=[],r=0;r<o.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(o[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,n=0;n<i;n++)this.inline(a.items[n].tokens)}return e},n.inlineTokens=function(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!1);var i,o,a,u,s=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(s));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+V("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,o.index)+"["+V("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(a||(u=""),a=!1,i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,n,r))e=e.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.strong(e,s,u))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.em(e,s,u))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.autolink(e,U))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,U))){if(i=this.tokenizer.inlineText(e,r,W))e=e.substring(i.raw.length),u=i.raw.slice(-1),a=!0,t.push(i);else if(e){var l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}else e=e.substring(i.raw.length),t.push(i);return t},function(t,n,r){r&&e(t,r)}(t,0,[{key:"rules",get:function(){return{block:L,inline:B}}}]),t}(),q=i.defaults,H=function(e,t,n){if(e){var r;try{r=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!v.test(n)&&(n=function(e,t){y[" "+e]||(y[" "+e]=m.test(e)?e+"/":w(e,"/",!0));var n=-1===(e=y[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},G=_,K=function(){function e(e){this.options=e||q}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+G(r,!0)+'">'+(n?e:G(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:G(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=H(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+G(e)+'"';return t&&(r+=' title="'+t+'"'),r+">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=H(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),Y=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),$=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),Z=i.defaults,Q=x,X=function(){function e(e){this.options=e||Z,this.options.renderer=this.options.renderer||new K,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Y,this.slugger=new $}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,u,s,c,l,f,h,d,p,v,y,m,g,b,w="",_=e.length;for(n=0;n<_;n++)switch(f=e[n],f.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(f.tokens),f.depth,Q(this.parseInline(f.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(f.text,f.lang,f.escaped);continue;case"table":for(c="",s="",o=f.header.length,r=0;r<o;r++)s+=this.renderer.tablecell(this.parseInline(f.tokens.header[r]),{header:!0,align:f.align[r]});for(c+=this.renderer.tablerow(s),l="",o=f.cells.length,r=0;r<o;r++){for(s="",a=(u=f.tokens.cells[r]).length,i=0;i<a;i++)s+=this.renderer.tablecell(this.parseInline(u[i]),{header:!1,align:f.align[i]});l+=this.renderer.tablerow(s)}w+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(f.tokens),w+=this.renderer.blockquote(l);continue;case"list":for(h=f.ordered,d=f.start,p=f.loose,o=f.items.length,l="",r=0;r<o;r++)m=(y=f.items[r]).checked,g=y.task,v="",y.task&&(b=this.renderer.checkbox(m),p?y.tokens.length>0&&"text"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(y.tokens,p),l+=this.renderer.listitem(v,g,m);w+=this.renderer.list(l,h,d);continue;case"html":w+=this.renderer.html(f.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(f.tokens));continue;case"text":for(l=f.tokens?this.parseInline(f.tokens):f.text;n+1<_&&"text"===e[n+1].type;)l+="\n"+((f=e[++n]).tokens?this.parseInline(f.tokens):f.text);w+=t?this.renderer.paragraph(l):l;continue;default:var x='Token with "'+f.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}return w},t.parseInline=function(e,t){t=t||this.renderer;var n,r,i="",o=e.length;for(n=0;n<o;n++)switch(r=e[n],r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return i},e}(),J=k,ee=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},te=_,ne=i.getDefaults,re=i.changeDefaults,ie=i.defaults;function oe(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=J({},oe.defaults,t||{}),ee(t),n){var r,i=t.highlight;try{r=z.lex(e,t)}catch(s){return n(s)}var o=function(e){var o;if(!e)try{o=X.parse(r,t)}catch(a){e=a}return t.highlight=i,e?n(e):n(null,o)};if(!i||i.length<3||(delete t.highlight,!r.length))return o();var a=0;return oe.walkTokens(r,function(e){"code"===e.type&&(a++,setTimeout(function(){i(e.text,e.lang,function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--a&&o()})}
1,0))}),void(0===a&&o())}try{var u=z.lex(e,t);return t.walkTokens&&oe.walkTokens(u,t.walkTokens),X.parse(u,t)}catch(s){if(s.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+te(s.message+"",!0)+"</pre>";throw s}}return oe.options=oe.setOptions=function(e){return J(oe.defaults,e),re(oe.defaults),oe},oe.getDefaults=ne,oe.defaults=ie,oe.use=function(e){var t=J({},e);if(e.renderer&&function(){var n=oe.defaults.renderer||new K,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var u=e.renderer[t].apply(n,o);return!1===u&&(u=r.apply(n,o)),u}};for(var i in e.renderer)r(i);t.renderer=n}(),e.tokenizer&&function(){var n=oe.defaults.tokenizer||new I,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var u=e.tokenizer[t].apply(n,o);return!1===u&&(u=r.apply(n,o)),u}};for(var i in e.tokenizer)r(i);t.tokenizer=n}(),e.walkTokens){var n=oe.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}oe.setOptions(t)},oe.walkTokens=function(e,t){for(var r,i=n(e);!(r=i()).done;){var o=r.value;switch(t(o),o.type){case"table":for(var a,u=n(o.tokens.header);!(a=u()).done;)oe.walkTokens(a.value,t);for(var s,c=n(o.tokens.cells);!(s=c()).done;)for(var l,f=n(s.value);!(l=f()).done;)oe.walkTokens(l.value,t);break;case"list":oe.walkTokens(o.items,t);break;default:o.tokens&&oe.walkTokens(o.tokens,t)}}},oe.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=J({},oe.defaults,t||{}),ee(t);try{var n=z.lexInline(e,t);return t.walkTokens&&oe.walkTokens(n,t.walkTokens),X.parseInline(n,t)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+te(r.message+"",!0)+"</pre>";throw r}},oe.Parser=X,oe.parser=X.parse,oe.Renderer=K,oe.TextRenderer=Y,oe.Lexer=z,oe.lexer=z.lex,oe.Tokenizer=I,oe.Slugger=$,oe.parse=oe,oe}()},57350:function(e){"use strict";e.exports=Math.abs},84839:function(e){"use strict";e.exports=Math.floor},37564:function(e){"use strict";e.exports=Math.max},52531:function(e){"use strict";e.exports=Math.min},20746:function(e){"use strict";e.exports=Math.pow},87286:function(e,t,n){(e.exports=n(60580)).tz.load(n(71388))},60580:function(e,t,n){var r,i,o;!function(a,u){"use strict";e.exports?e.exports=u(n(32338)):(i=[n(32338)],void 0!==(o="function"==typeof(r=u)?r.apply(t,i):r)&&(e.exports=o))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},i={},o={},a={};(!e||"string"!=typeof e.version)&&A("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var u=e.version.split("."),s=+u[0],c=+u[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function f(e){var t=0,n=e.split("."),r=n[0],i=n[1]||"",o=1,a=0,u=1;for(45===e.charCodeAt(0)&&(t=1,u=-1);t<r.length;t++)a=60*a+l(r.charCodeAt(t));for(t=0;t<i.length;t++)o/=60,a+=l(i.charCodeAt(t))*o;return a*u}function h(e){for(var t=0;t<e.length;t++)e[t]=f(e[t])}function d(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function p(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),i=t[4].split(" ");return h(n),h(r),h(i),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(i,r.length),{name:t[0],abbrs:d(t[1].split(" "),r),offsets:d(n,r),untils:i,population:0|t[5]}}function v(e){e&&this._set(p(e))}function y(e,t){this.name=e,this.zones=t}function m(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function g(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function b(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new m(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function w(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function _(e,t){var n,r;for(h(t),n=0;n<t.length;n++)a[r=t[n]]=a[r]||{},a[r][e]=!0}function x(e){return(e||"").toLowerCase().replace(/\//g,"_")}function k(e){var t,r,i,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a=x(r=(i=e[t].split("|"))[0]),n[a]=e[t],o[a]=r,_(a,i[2].split(" "))}function C(e,t){e=x(e);var i,a=n[e];return a instanceof v?a:"string"==typeof a?(a=new v(a),n[e]=a,a):r[e]&&t!==C&&(i=C(r[e],C))?((a=n[e]=new v)._set(i),a.name=o[e],a):null}function S(e){var t,n,i,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)i=x((n=e[t].split("|"))[0]),a=x(n[1]),r[i]=a,o[i]=n[0],r[a]=i,o[a]=n[1]}function E(e){return!(!e._a||void 0!==e._tzm||"X"===e._f||"x"===e._f)}function A(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function O(t){var n,r=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],o=e.utc.apply(null,r);return!e.isMoment(t)&&E(o)&&(n=C(i))&&o.add(n.parse(o),"minutes"),o.tz(i),o}(s<2||2===s&&c<6)&&A("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if(t=function(e,t){var n=t.length;if(e<t[0])return 0;if(n>1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;for(var r,i=0,o=n-1;o-i>1;)t[r=Math.floor((i+o)/2)]<=e?i=r:o=r;return o}(+e,this.untils),t>=0)return t},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return-1!==i[t].zones.indexOf(e)})},parse:function(e){var t,n,r,i,o=+e,a=this.offsets,u=this.untils,s=u.length-1;for(i=0;i<s;i++)if(r=a[i&&i-1],(t=a[i])<(n=a[i+1])&&O.moveAmbiguousForward?t=n:t>r&&O.moveInvalidForward&&(t=r),o<u[i]-6e4*t)return a[i];return a[s]},abbr:function(e){return this.abbrs[this._index(e)]}
vendor: 4,740 bytes, line 1
1,offset:function(e){return A("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},g.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},O.version="0.5.46",O.dataVersion="",O._zones=n,O._links=r,O._names=o,O._countries=i,O.add=k,O.link=S,O.load=function(e){k(e.zones),S(e.links),function(e){var t,n,r,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),r=o[1].split(" "),i[n]=new y(n,r)}(e.countries),O.dataVersion=e.version},O.zone=C,O.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,A("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!C(t)},O.guess=function(e){return(!t||e)&&(t=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[x(e)];if(t)return t;A("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(f){}var n,r,i,u=function(){var e,t,n,r,i=(new Date).getFullYear()-2,o=new m(new Date(i,0,1)),a=o.offset,u=[o];for(r=1;r<48;r++)(n=new Date(i,r,1).getTimezoneOffset())!==a&&(e=b(o,t=new m(new Date(i,r,1))),u.push(e),u.push(new m(new Date(e.at+6e4))),o=t,a=n);for(r=0;r<4;r++)u.push(new m(new Date(i+r,0,1))),u.push(new m(new Date(i+r,6,1)));return u}(),s=u.length,c=function(e){var t,n,r,i,u=e.length,s={},c=[],l={};for(t=0;t<u;t++)if(!l.hasOwnProperty(r=e[t].offset)){for(n in i=a[r]||{})i.hasOwnProperty(n)&&(s[n]=!0);l[r]=!0}for(t in s)s.hasOwnProperty(t)&&c.push(o[t]);return c}(u),l=[];for(r=0;r<c.length;r++){for(n=new g(C(c[r]),s),i=0;i<s;i++)n.scoreOffsetAt(u[i]);l.push(n)}return l.sort(w),l.length>0?l[0].zone.name:void 0}()),t},O.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[r[e]])&&o[e]&&t.push(o[e]);return t.sort()},O.Zone=v,O.unpack=p,O.unpackBase60=f,O.needsOffset=E,O.moveInvalidForward=!0,O.moveAmbiguousForward=!1,O.countries=function(){return Object.keys(i)},O.zonesForCountry=function(e,t){if(!(e=function(e){return e=e.toUpperCase(),i[e]||null}(e)))return null;var n=e.zones.sort();return t?n.map(function(e){return{name:e,offset:C(e).utcOffset(new Date)}}):n};var D,I=e.fn;function T(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function M(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=O,e.defaultZone=null,e.updateOffset=function(t,n){var r,i=e.defaultZone;if(void 0===t._z&&(i&&E(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-r,n),t._z=o}else t.zone(r,n)},I.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,n):A("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},I.zoneName=T(I.zoneName),I.zoneAbbr=T(I.zoneAbbr),I.utc=M(I.utc),I.local=M(I.local),I.utcOffset=(D=I.utcOffset,function(){return arguments.length>0&&(this._z=null),D.apply(this,arguments)}),e.tz.setDefault=function(t){return(s<2||2===s&&c<9)&&A("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var P=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(P)?(P.push("_z"),P.push("_a")):P&&(P._z=null),e})},32338:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Et(e,t,n,r,!0).utc()}function v(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 5,851 bytes, line 1
1dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=v(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function m(e){var t=p(NaN);return null!=e?d(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=i.momentProperties=[],b=!1;function w(e,t){var n,r,i,o=g.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=v(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=g[n]])||(e[r]=i);return e}function _(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function x(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function k(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return d(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])u(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var S,E={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),E[e]||(k(t),E[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,r=d({},e);for(n in t)u(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function I(e){null!=e&&this.set(e)}function T(e,t,n){var r=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},F={};function N(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function L(e,t){return e.isValid()?(t=B(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r=e.match(M);for(t=0,n=r.length;t<n;t++)r[t]=F[r[t]]?F[r[t]]:j(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}(t),R[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var V={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return"string"==typeof e?V[e]||V[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)u(e,n)&&(t=W(n))&&(r[t]=e[n]);return r}var z,q={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},H=/\d/,G=/\d\d/,K=/\d{3}/,Y=/\d{4}/,$=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function ce(e,t,n){z[e]=O(t)?t:function(e,r){return e&&n?n:t}}function le(e,t){return u(z,e)?z[e](t._strict,t._locale):new RegExp(function(e){return fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}(e))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}z={};var pe={};function ve(e,t){var n,r,i=t;
vendor: 6,112 bytes, line 1
1for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=de(e)}),r=e.length,n=0;n<r;n++)pe[e[n]]=i}function ye(e,t){ve(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function me(e,t,n){null!=t&&u(pe,e)&&pe[e](t,n._a,n,e)}function ge(e){return e%4==0&&e%100!=0||e%400==0}function be(e){return ge(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),ce("Y",re),ce("YY",Z,G),ce("YYYY",ee,Y),ce("YYYYY",te,$),ce("YYYYYY",te,$),ve(["YYYYY","YYYYYY"],0),ve("YYYY",function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):de(e)}),ve("YY",function(e,t){t[0]=i.parseTwoDigitYear(e)}),ve("Y",function(e,t){t[0]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var we,_e=xe("FullYear",!0);function xe(e,t){return function(n){return null!=n?(Ce(this,e,n),i.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var r,i,o,a,u;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),u=29!==(u=e.date())||1!==a||ge(o)?u:28,i?r.setUTCFullYear(o,a,u):r.setFullYear(o,a,u)}}function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%12+12)%12}(t);return e+=(t-n)/12,1===n?ge(e)?29:28:31-n%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ce("M",Z,ue),ce("MM",Z,G),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),ve(["M","MM"],function(e,t){t[1]=de(e)-1}),ve(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:v(n).invalidMonth=e});var Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=ae,Ie=ae;function Te(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,a))?i:null:-1!==(i=we.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,a))||-1!==(i=we.call(this._longMonthsParse,a))?i:null:-1!==(i=we.call(this._longMonthsParse,a))||-1!==(i=we.call(this._shortMonthsParse,a))?i:null}function Me(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!l(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,Se(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Pe(e){return null!=e?(Me(this,e),i.updateOffset(this,!0),this):ke(this,"Month")}function Re(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],a=[],u=[];for(t=0;t<12;t++)n=p([2e3,t]),r=fe(this.monthsShort(n,"")),i=fe(this.months(n,"")),o.push(r),a.push(i),u.push(i),u.push(r);o.sort(e),a.sort(e),u.sort(e),this._monthsRegex=new RegExp("^("+u.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(e,t,n,r,i,o,a){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,i,o,a),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,i,o,a),u}function Ne(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){var r=7+t-n;return-(7+Ne(e,0,r).getUTCDay()-t)%7+r-1}function Le(e,t,n,r,i){var o,a,u=1+7*(t-1)+(7+n-r)%7+je(e,r,i);return u<=0?a=be(o=e-1)+u:u>be(e)?(o=e+1,a=u-be(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Be(e,t,n){var r,i,o=je(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ve(i=e.year()-1,t,n):a>Ve(e.year(),t,n)?(r=a-Ve(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ve(e,t,n){var r=je(e,t,n),i=je(e+1,t,n);return(be(e)-r+i)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),ce("w",Z,ue),ce("ww",Z,G),ce("W",Z,ue),ce("WW",Z,G),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=de(e)}),N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._str
vendor: 5,825 bytes, line 1
1ict);null!=i?t.d=i:v(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=de(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=ae,Ge=ae,Ke=ae;function Ye(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._shortWeekdaysParse,a))||-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,a))||-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:-1!==(i=we.call(this._minWeekdaysParse,a))||-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._shortWeekdaysParse,a))?i:null}function $e(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],u=[],s=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=fe(this.weekdaysMin(n,"")),i=fe(this.weekdaysShort(n,"")),o=fe(this.weekdays(n,"")),a.push(r),u.push(i),s.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),u.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Qe(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Ze),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Ze.apply(this)+T(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Ze.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),ce("a",Xe),ce("A",Xe),ce("H",Z,se),ce("h",Z,ue),ce("k",Z,ue),ce("HH",Z,G),ce("hh",Z,G),ce("kk",Z,G),ce("hmm",Q),ce("hmmss",X),ce("Hmm",Q),ce("Hmmss",X),ve(["H","HH"],3),ve(["k","kk"],function(e,t,n){var r=de(e);t[3]=24===r?0:r}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[3]=de(e),v(n).bigHour=!0}),ve("hmm",function(e,t,n){var r=e.length-2;t[3]=de(e.substr(0,r)),t[4]=de(e.substr(r)),v(n).bigHour=!0}),ve("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=de(e.substr(0,r)),t[4]=de(e.substr(r,2)),t[5]=de(e.substr(i)),v(n).bigHour=!0}),ve("Hmm",function(e,t,n){var r=e.length-2;t[3]=de(e.substr(0,r)),t[4]=de(e.substr(r))}),ve("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=de(e.substr(0,r)),t[4]=de(e.substr(r,2)),t[5]=de(e.substr(i))});var Je,et=xe("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Ae,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:qe,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},nt={},rt={};function it(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ot(e){return e&&e.toLowerCase().replace("_","-")}function at(t){var r=null;if(void 0===nt[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{r=Je._abbr,n(22768)("./"+t),ut(r)}catch(i){nt[t]=null}return nt[t]}function ut(e,t){var n;return e&&((n=c(t)?ct(e):st(e,t))?Je=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function st(e,t){if(null!==t){var n,r=tt;if(t.abbr=e,null!=nt[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])r=nt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return nt[e]=new I(D(r,t)),rt[e]&&rt[e].forEach(function(e){st(e.name,e.config)}),ut(e),nt[e]}return delete nt[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ot(e[o]).split("-")).length,n=(n=ot(e[o+1]))?n.split("-"):null;t>0;){if(r=at(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&it(i,n)>=t-1)break;t--}o++}return Je}(e)}function lt(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Se(n[0],n[1])?2:n[3]<0||n[3]>
vendor: 5,737 bytes, line 1
124||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,v(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),v(e)._overflowWeeks&&-1===t&&(t=7),v(e)._overflowWeekday&&-1===t&&(t=8),v(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,i,o,a,u=e._i,s=ft.exec(u)||ht.exec(u),c=pt.length,l=vt.length;if(s){for(v(e).iso=!0,t=0,n=c;t<n;t++)if(pt[t][1].exec(s[1])){i=pt[t][0],r=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(s[3]){for(t=0,n=l;t<n;t++)if(vt[t][1].exec(s[3])){o=(s[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!dt.exec(s[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Ct(e)}else e._isValid=!1}function wt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _t(e){var t,n=mt.exec(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(n){if(t=function(e,t,n,r,i,o){var a=[wt(e),Ae.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(n[8],n[9],n[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,n,r,o,a,u=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,u,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=xt(t.GG,e._a[0],Be(At(),1,4).year),r=xt(t.W,1),((i=xt(t.E,1))<1||i>7)&&(s=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Be(At(),o,a),n=xt(t.gg,e._a[0],c.year),r=xt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(s=!0)):i=o),r<1||r>Ve(n,o,a)?v(e)._overflowWeeks=!0:null!=s?v(e)._overflowWeekday=!0:(u=Le(n,r,i,o,a),e._a[0]=u.year,e._dayOfYear=u.dayOfYear)}(e),null!=e._dayOfYear&&(a=xt(e._a[0],r[0]),(e._dayOfYear>be(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=Ne(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=u[t]=r[t];for(;t<7;t++)e._a[t]=u[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ne:Fe).apply(null,u),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(v(e).weekdayMismatch=!0)}}function Ct(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,o,a,u,s,c=""+e._i,l=c.length,f=0;for(s=(r=B(e._f,e._locale).match(M)||[]).length,t=0;t<s;t++)(n=(c.match(le(o=r[t],e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&v(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),f+=n.length),F[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=l-f,c.length>0&&v(e).unusedInput.push(c),e._a[3]<=12&&!0===v(e).bigHour&&e._a[3]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((r=e.isPM(n))&&t<12&&(t+=12),!r&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(u=v(e).era)&&(e._a[0]=e._locale.erasConvertYear(u,e._a[0])),kt(e),lt(e)}else _t(e);else bt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new _(lt(t)):(f(t)?e._d=t:o(n)?function(e){var t,n,r,i,o,a,u=!1,s=e._f.length;if(0===s)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<s;i++)o=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ct(t),y(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,u?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(u=!0));d(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;c(t)?e._d=new Date(i.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=yt.exec(e._i);
vendor: 6,714 bytes, line 1
1null===t?(bt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=h(t.slice(0),function(e){return parseInt(e,10)}),kt(e)):a(t)?function(e){if(!e._d){var t=U(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),kt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),y(e)||(e._d=null),e))}function Et(e,t,n,r,i){var u={};return(!0===t||!1===t)&&(r=t,t=void 0),(!0===n||!1===n)&&(r=n,n=void 0),(a(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,function(e){var t=new _(lt(St(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(u)}function At(e,t,n,r){return Et(e,t,n,r,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ot=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Dt=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function It(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}var Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=U(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=Tt.length;for(t in e)if(u(e,t)&&(-1===we.call(Tt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Tt[n]]){if(r)return!1;parseFloat(e[Tt[n]])!==de(e[Tt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*l+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ct(),this._bubble()}function Pt(e){return e instanceof Mt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){N(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ce("Z",oe),ce("ZZ",oe),ve(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=jt(oe,e)});var Nt=/([\+\-]|\d\d)/gi;function jt(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Nt)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function Lt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||f(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):At(e).local()}function Bt(e){return-Math.round(e._d.getTimezoneOffset())}function Vt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Wt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,o=e,a=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Wt.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:de(a[2])*n,h:de(a[3])*n,m:de(a[4])*n,s:de(a[5])*n,ms:de(Rt(1e3*a[6]))*n}):(a=Ut.exec(e))?o={y:qt(a[2],n="-"===a[1]?-1:1),M:qt(a[3],n),w:qt(a[4],n),d:qt(a[5],n),h:qt(a[6],n),m:qt(a[7],n),s:qt(a[8],n)}:null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Lt(t,e),e.isBefore(t)?n=Ht(e,t):((n=Ht(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(At(o.from),At(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Mt(o),Pt(e)&&u(e,"_locale")&&(r._locale=e._locale),Pt(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var i;return null!==r&&!isNaN(+r)&&(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Kt(this,zt(n,r),e),this}}function Kt(e,t,n,r){var o=t._milliseconds,a=Rt(t._days),u=Rt(t._months);!e.isValid()||(r=null==r||r,u&&Me(e,ke(e,"Month")+u*n),a&&Ce(e,"Date",ke(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||u))}zt.fn=Mt.prototype,zt.invalid=function(){return zt(NaN)};var Yt=Gt(1,"add"),$t=Gt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Qt(e){return x(e)||f(e)||Zt(e)||l(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Zt(e)}).length),t&&n}(e)||function(e){var t,n=a(e)&&!s(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=i.length;for(t=0;t<o;t+=1)r=r||u(e,i[t]);return n&&r}(e)||null==e}function Xt(e){var t,n=a(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||u(e,i[t]);return n&&r}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}var rn=6e4,on=60*rn,an=3506328*on;function un(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&e>
vendor: 15,310 bytes, line 1
1=0?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function fn(){var e,t,n,r,i,o=[],a=[],u=[],s=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=fe(c[e].name),r=fe(c[e].abbr),i=fe(c[e].narrow),a.push(n),o.push(r),u.push(i),s.push(n),s.push(r),s.push(i);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+u.join("|")+")","i")}function hn(e,t){N(0,[e,e.length],0,t)}function dn(e,t,n,r,i){var o;return null==e?Be(this,r,i).year:(t>(o=Ve(e,r,i))&&(t=o),pn.call(this,e,t,n,r,i))}function pn(e,t,n,r,i){var o=Le(e,t,n,r,i),a=Ne(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ce("N",ln),ce("NN",ln),ce("NNN",ln),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e}),ce("y",ne),ce("yy",ne),ce("yyy",ne),ce("yyyy",ne),ce("yo",function(e,t){return t._eraYearOrdinalRegex||ne}),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),ce("G",re),ce("g",re),ce("GG",Z,G),ce("gg",Z,G),ce("GGGG",ee,Y),ce("gggg",ee,Y),ce("GGGGG",te,$),ce("ggggg",te,$),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=de(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),ce("Q",H),ve("Q",function(e,t){t[1]=3*(de(e)-1)}),N("D",["DD",2],"Do","date"),ce("D",Z,ue),ce("DD",Z,G),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],2),ve("Do",function(e,t){t[2]=de(e.match(Z)[0])});var vn=xe("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),ce("DDD",J),ce("DDDD",K),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=de(e)}),N("m",["mm",2],0,"minute"),ce("m",Z,se),ce("mm",Z,G),ve(["m","mm"],4);var yn=xe("Minutes",!1);N("s",["ss",2],0,"second"),ce("s",Z,se),ce("ss",Z,G),ve(["s","ss"],5);var mn,gn,bn=xe("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ce("S",J,H),ce("SS",J,G),ce("SSS",J,K),mn="SSSS";mn.length<=9;mn+="S")ce(mn,ne);function wn(e,t){t[6]=de(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")ve(mn,wn);gn=xe("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var _n=_.prototype;function xn(e){return e}_n.add=Yt,_n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||At(),r=Lt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,At(n)))},_n.clone=function(){return new _(this)},_n.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Lt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=W(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:he(o)},_n.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=on-un(t+(this._isUTC?0:this.utcOffset()*rn),on)-1;break;case"minute":t=this._d.valueOf(),t+=rn-un(t,rn)-1;break;case"second":t=this._d.valueOf(),t+=1e3-un(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},_n.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=L(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||At(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(At(),e)},_n.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||At(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(At(),e)},_n.get=function(e){return O(this[e=W(e)])?this[e]():this},_n.invalidAt=function(){return v(this).overflow},_n.isAfter=function(e,t){var n=x(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},_n.isBefore=function(e,t){var n=x(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},_n.isBetween=function(e,t,n,r){var i=x(e)?e:At(e),o=x(t)?t:At(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},_n.isSame=function(e,t){var n,r=x(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},_n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},_n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},_n.isValid=function(){return y(this)},_n.lang=tn,_n.locale=en,_n.localeData=nn,_n.max=Dt,_n.min=Ot,_n.parsingFlags=function(){return d({},v(this))},_n.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:q[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=U(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=W(e)]))return this[e](t);return this},_n.startOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=un(t+(this._isUTC?0:this.utcOffset()*rn),on);break;case"minute":t=this._d.valueOf(),t-=un(t,rn);break;case"second":t=this._d.valueOf(),t-=un(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},_n.subtract=$t,_n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},_n.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""},_n.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""},_n.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""},_n.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},_n.year=_e,_n.isLeapYear=function(){return ge(this.year())},_n.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},_n.month=Pe,_n.daysInMonth=function(){return Se(this.year(),this.month())},_n.week=_n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},_n.isoWeek=_n.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},_n.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},_n.weeksInWeekYear=function(){var e=this.localeData()._week;return Ve(this.weekYear(),e.dow,e.doy)},_n.isoWeeksInYear=function(){return Ve(this.year(),1,4)},_n.isoWeeksInISOWeekYear=function(){return Ve(this.isoWeekYear(),1,4)},_n.date=vn,_n.day=_n.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=ke(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},_n.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},_n.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},_n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},_n.hour=_n.hours=et,_n.minute=_n.minutes=yn,_n.second=_n.seconds=bn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=jt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Bt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Kt(this,zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Bt(this)},_n.utc=function(e){return this.utcOffset(0,e)},_n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Vt,_n.isUTC=Vt,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=C("dates accessor is deprecated. Use date instead.",vn),_n.months=C("months accessor is deprecated. Use month instead",Pe),_n.years=C("years accessor is deprecated. Use year instead",_e),_n.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),_n.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=St(t))._a?(e=t._isUTC?p(t._a):At(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)de(e[r])!==de(t[r])&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var kn=I.prototype;function Cn(e,t,n,r){var i=ct(),o=p().set(r,t);return i[n](o,e)}function Sn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Cn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Cn(e,r,n,"month");return i}function En(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=ct(),a=e?o._week.dow:0,u=[];
vendor: 4,804 bytes, line 1
1if(null!=n)return Cn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)u[i]=Cn(t,(i+a)%7,r,"day");return u}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=xn,kn.postformat=xn,kn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)u(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.eras=function(e,t){var n,r,o,a=this._eras||ct("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},kn.erasParse=function(e,t,n){var r,i,o,a,u,s=this.eras();for(e=e.toUpperCase(),r=0,i=s.length;r<i;++r)if(o=s[r].name.toUpperCase(),a=s[r].abbr.toUpperCase(),u=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[r];break;case"NNNN":if(o===e)return s[r];break;case"NNNNN":if(u===e)return s[r]}else if([o,a,u].indexOf(e)>=0)return s[r]},kn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},kn.erasAbbrRegex=function(e){return u(this,"_erasAbbrRegex")||fn.call(this),e?this._erasAbbrRegex:this._erasRegex},kn.erasNameRegex=function(e){return u(this,"_erasNameRegex")||fn.call(this),e?this._erasNameRegex:this._erasRegex},kn.erasNarrowRegex=function(e){return u(this,"_erasNarrowRegex")||fn.call(this),e?this._erasNarrowRegex:this._erasRegex},kn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Te.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?We(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;
vendor: 5,541 bytes, line 1
1r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",ut),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ct);var An=Math.abs;function On(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var Pn=Mn("ms"),Rn=Mn("s"),Fn=Mn("m"),Nn=Mn("h"),jn=Mn("d"),Ln=Mn("w"),Bn=Mn("M"),Vn=Mn("Q"),Wn=Mn("y"),Un=Pn;function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=zn("milliseconds"),Hn=zn("seconds"),Gn=zn("minutes"),Kn=zn("hours"),Yn=zn("days"),$n=zn("months"),Zn=zn("years"),Qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var er=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function nr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,u,s=er(this._milliseconds)/1e3,c=er(this._days),l=er(this._months),f=this.asSeconds();return f?(e=he(s/60),t=he(e/60),s%=60,e%=60,n=he(l/12),l%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=tr(this._months)!==tr(f)?"-":"",a=tr(this._days)!==tr(f)?"-":"",u=tr(this._milliseconds)!==tr(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||s?"T":"")+(t?u+t+"H":"")+(e?u+e+"M":"")+(s?u+r+"S":"")):"P0D"}var rr=Mt.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var e=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),e.milliseconds=An(e.milliseconds),e.seconds=An(e.seconds),e.minutes=An(e.minutes),e.hours=An(e.hours),e.months=An(e.months),e.years=An(e.years),this},rr.add=function(e,t){return On(this,e,t,1)},rr.subtract=function(e,t){return On(this,e,t,-1)},rr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},rr.asMilliseconds=Pn,rr.asSeconds=Rn,rr.asMinutes=Fn,rr.asHours=Nn,rr.asDays=jn,rr.asWeeks=Ln,rr.asMonths=Bn,rr.asQuarters=Vn,rr.asYears=Wn,rr.valueOf=Un,rr._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,u=this._months,s=this._data;return o>=0&&a>=0&&u>=0||o<=0&&a<=0&&u<=0||(o+=864e5*Dn(Tn(u)+a),a=0,u=0),s.milliseconds=o%1e3,e=he(o/1e3),s.seconds=e%60,t=he(e/60),s.minutes=t%60,n=he(t/60),s.hours=n%24,a+=he(n/24),u+=i=he(In(a)),a-=Dn(Tn(i)),r=he(u/12),u%=12,s.days=a,s.months=u,s.years=r,this},rr.clone=function(){return zt(this)},rr.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},rr.milliseconds=qn,rr.seconds=Hn,rr.minutes=Gn,rr.hours=Kn,rr.days=Yn,rr.weeks=function(){return he(this.days()/7)},rr.months=$n,rr.years=Zn,rr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=Xn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({}
1,Xn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=function(e,t,n,r){var i=zt(e).abs(),o=Qn(i.as("s")),a=Qn(i.as("m")),u=Qn(i.as("h")),s=Qn(i.as("d")),c=Qn(i.as("M")),l=Qn(i.as("w")),f=Qn(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||u<=1&&["h"]||u<n.h&&["hh",u]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(h=h||l<=1&&["w"]||l<n.w&&["ww",l]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f])[2]=t,h[3]=+e>0,h[4]=r,Jn.apply(null,h)}(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},rr.toISOString=nr,rr.toString=nr,rr.toJSON=nr,rr.locale=en,rr.localeData=nn,rr.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),rr.lang=tn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ce("x",re),ce("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date(de(e))}),i.version="2.30.1",t=At,i.fn=_n,i.min=function(){return It("isBefore",[].slice.call(arguments,0))},i.max=function(){return It("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return At(1e3*e)},i.months=function(e,t){return Sn(e,t,"months")},i.isDate=f,i.locale=ut,i.invalid=m,i.duration=zt,i.isMoment=x,i.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},i.parseZone=function(){return At.apply(null,arguments).parseZone()},i.localeData=ct,i.isDuration=Pt,i.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},i.defineLocale=st,i.updateLocale=function(e,t){if(null!=t){var n,r,i=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(D(nt[e]._config,t)):(null!=(r=at(e))&&(i=r._config),t=D(i,t),null==r&&(t.abbr=e),(n=new I(t)).parentLocale=nt[e],nt[e]=n),ut(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===ut()&&ut(e)):null!=nt[e]&&delete nt[e]);return nt[e]},i.locales=function(){return S(nt)},i.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},i.normalizeUnits=W,i.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Xn[e]&&(void 0===t?Xn[e]:(Xn[e]=t,"s"===e&&(Xn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=_n,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},51545:function(e,t,n){!function(e,t,n){"use strict";var r=function(e){!e||Object.assign(this,e)},i=function(){function t(e,t){this.el=e,this.ngZone=t,this.onAddressChange=new n.EventEmitter}return t.prototype.ngAfterViewInit=function(){this.options||(this.options=new r),this.initialize()},t.prototype.isGoogleLibExists=function(){return!(!google||!google.maps||!google.maps.places)},t.prototype.initialize=function(){var e=this;if(!this.isGoogleLibExists())throw new Error("Google maps library can not be found");if(this.autocomplete=new google.maps.places.Autocomplete(this.el.nativeElement,this.options),!this.autocomplete)throw new Error("Autocomplete is not initialized");null!=!this.autocomplete.addListener&&(this.eventListener=this.autocomplete.addListener("place_changed",function(){e.handleChangeEvent()})),this.el.nativeElement.addEventListener("keydown",function(t){t.key&&"enter"==t.key.toLowerCase()&&t.target===e.el.nativeElement&&(t.preventDefault(),t.stopPropagation())}),window&&window.navigator&&window.navigator.userAgent&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&setTimeout(function(){var e=document.getElementsByClassName("pac-container");if(e){var t=Array.from(e);if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];!i||i.addEventListener("touchend",function(e){e.stopImmediatePropagation()})}}},500)},t.prototype.reset=function(){this.autocomplete.setComponentRestrictions(this.options.componentRestrictions),this.autocomplete.setTypes(this.options.types)},t.prototype.handleChangeEvent=function(){var e=this;this.ngZone.run(function(){e.place=e.autocomplete.getPlace(),e.place&&e.onAddressChange.emit(e.place)})},t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input,args:["options"]}],onAddressChange:[{type:n.Output}]},t.\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},t.\u0275dir=e.\u0275\u0275defineDirective({type:t,selectors:[["","ngx-google-places-autocomplete",""]],inputs:{options:"options"},outputs:{onAddressChange:"onAddressChange"},exportAs:["ngx-places"]}),t}(),o=function(){function t(){}return t.ctorParameters=function(){return[]},t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({}),t}();t.GooglePlaceModule=o,t.GooglePlaceDirective=i,Object.defineProperty(t,"__esMo
1dule",{value:!0})}(n(62415),t,n(62415))},15823:function(e,t,n){"use strict";n.d(t,{Rh:function(){return z},_W:function(){return j}});var r=n(85572),i=n(62415),o=n(65594),a=n(93386),u=n(47623),s=n(92674),c=["toast-component",""];function l(e,t){if(1&e){var n=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(n),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function h(e,t){if(1&e&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&e){var n=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",n.duplicatesCount+1,"]")}}function d(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,h,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.titleClass),i.\u0275\u0275attribute("aria-label",n.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",n.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",n.duplicatesCount)}}function p(e,t){if(1&e&&i.\u0275\u0275element(0,"div",7),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.messageClass),i.\u0275\u0275property("innerHTML",n.message,i.\u0275\u0275sanitizeHtml)}}function v(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.messageClass),i.\u0275\u0275attribute("aria-label",n.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",n.message," ")}}function y(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",n.width+"%")}}function g(e,t){if(1&e){var n=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(n),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function b(e,t){if(1&e&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&e){var n=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",n.duplicatesCount+1,"]")}}function w(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,b,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.titleClass),i.\u0275\u0275attribute("aria-label",n.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",n.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",n.duplicatesCount)}}function x(e,t){if(1&e&&i.\u0275\u0275element(0,"div",7),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.messageClass),i.\u0275\u0275property("innerHTML",n.message,i.\u0275\u0275sanitizeHtml)}}function k(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(n.options.messageClass),i.\u0275\u0275attribute("aria-label",n.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",n.message," ")}}function S(e,t){if(1&e&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&e){var n=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",n.width+"%")}}var A=function(){return C(function e(t,n,r,i,o,u){var s=this;E(this,e),this.toastId=t,this.config=n,this.message=r,this.title=i,this.toastType=o,this.toastRef=u,this._onTap=new a.xQ,this._onAction=new a.xQ,this.toastRef.afterClosed().subscribe(function(){s._onAction.complete(),s._onTap.complete()})},[{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(e){this._onAction.next(e)}},{key:"onAction",value:function(){return this._onAction.asObservable()}}])}(),O={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"},D=new i.InjectionToken("ToastConfig"),I=function(){return C(function e(t,n){E(this,e),this.component=t,this.injector=n},[{key:"attach",value:function(e,t){return this._attachedHost=e,e.attach(this,t)}},{key:"detach",value:function(){var e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}])}(),T=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t))._hostDomElement=e,i._componentFactoryResolver=n,i._appRef=r,i}return _(t,e),C(t,[{key:"attachComponentPortal",value:function(e,t){var n,r=this,i=this._componentFactoryResolver.resolve
1ComponentFactory(e.component);return n=i.create(e.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(function(){r._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}])}(function(){return C(function e(){E(this,e)},[{key:"attach",value:function(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}},{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(e){this._disposeFn=e}}])}()),M=function(){return C(function e(t){E(this,e),this._document=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 e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}])}();M.\u0275fac=function(e){return new(e||M)(i.\u0275\u0275inject(s.K0))},M.\u0275prov=i.\u0275\u0275defineInjectable({token:M,factory:function(e){return M.\u0275fac(e)},providedIn:"root"}),M.ngInjectableDef=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new M((0,i.\u0275\u0275inject)(s.K0))},token:M,providedIn:"root"}),M=(0,r.gn)([(0,r.fM)(0,(0,i.Inject)(s.K0)),(0,r.w6)("design:paramtypes",[Object])],M);var P=function(){return C(function e(t){E(this,e),this._portalHost=t},[{key:"attach",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._portalHost.attach(e,t)}},{key:"detach",value:function(){return this._portalHost.detach()}}])}(),R=function(){return C(function e(t,n,r,i){E(this,e),this._overlayContainer=t,this._componentFactoryResolver=n,this._appRef=r,this._document=i,this._paneElements=new Map},[{key:"create",value:function(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}},{key:"getPaneElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}},{key:"_createPaneElement",value:function(e,t){var n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalHost",value:function(e){return new T(e,this._componentFactoryResolver,this._appRef)}},{key:"_createOverlayRef",value:function(e){return new P(this._createPortalHost(e))}}])}();R.\u0275fac=function(e){return new(e||R)(i.\u0275\u0275inject(M),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(s.K0))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:function(e){return R.\u0275fac(e)},providedIn:"root"}),R.ngInjectableDef=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new R((0,i.\u0275\u0275inject)(M),(0,i.\u0275\u0275inject)(i.ComponentFactoryResolver),(0,i.\u0275\u0275inject)(i.ApplicationRef),(0,i.\u0275\u0275inject)(s.K0))},token:R,providedIn:"root"}),R=(0,r.gn)([(0,r.fM)(3,(0,i.Inject)(s.K0)),(0,r.w6)("design:paramtypes",[M,i.ComponentFactoryResolver,i.ApplicationRef,Object])],R);var F=function(){return C(function e(t){E(this,e),this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new a.xQ,this._activate=new a.xQ,this._manualClose=new a.xQ,this._resetTimeout=new a.xQ,this._countDuplicate=new a.xQ},[{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(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}])}(),N=function(){return C(function e(t,n){E(this,e),this._toastPackage=t,this._parentInjector=n},[{key:"get",value:function(e,t,n){return e===A?this._toastPackage:this._parentInjector.get(e,t,n)}}])}(),j=function(){return C(function e(t,n,r,i,o){E(this,e),this.overlay=n,this._injector=r,this.sanitizer=i,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign({},t.default,t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign({},t.default.iconClasses,t.config.iconClasses))},[{key:"show",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return this._preBuildNotification(r,e,t,this.applyConfig(n))}},{key:"success",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))}},{key:"error",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))}},{key:"info",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))}},{key:"warning",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))}},{key:"clear",value:function(e){var t,n=f(this.toasts);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}}catch(i){n.e(i)}finally{n.f()}}},{key:"remove",value:function(e){var t=this._findToast(e);if(!t||(t.activeToast.toastRef.close(),this.toasts.splice(t.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(e,t,n){var r,i=f(this.toasts);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.message===e)return o.toastRef.onDuplicate(t,n),o}}catch(a){i.e(a)}finally{i.f()}return null}},{key:"applyConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},this.toastrConfig,e)}},{key:"_findToast",value:function(e){for(var t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}},{key:"_preBuildNotification",value:function(e,t,n,r){var i=this;return r.onActivateTick?this.ngZone.run(function(){return i._buildNotification(e,t,n,r)}):this._buildNotification(e,t,n,r)}},{key:"_buildNotification",value:function(e,t,n,r){if(!r.toastComponent)throw new Error("toastComponent required");var o=this.findDuplicate(t,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if(t&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=t;var a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var u=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;var s=t;t&&r.enableHtml&&(s=this.sanitizer.sanitize(i.SecurityContext.HTML,t));var c=new F(u),l=new A(this.index,r,s,n,e,c),f=new N(l,this._injector),h=new I(r.toastComponent,f),d=u.attach(h,this.toastrConfig.newestOnTop);c.componentInstance=d._component;var p={toastId:this.index,message:t||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:l.onTap(),onAction:l.onAction(),portal:d};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(function(){p.toastRef.activate()})),this.toasts.push(p),p}}])}();j.\u0275fac=function(e){return new(e||j)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(R),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(u.H7),i.\u0275\u0275inject(i.NgZone))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:function(e){return j.\u0275fac(e)},providedIn:"root"}),j.ngInjectableDef=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new j((0,i.\u0275\u0275inject)(D),(0,i.\u0275\u0275inject)(R),(0,i.\u0275\u0275inject)(i.INJECTOR),(0,i.\u0275\u0275inject)(u.H7),(0,i.\u0275\u0275inject)(i.NgZone))},token:j,providedIn:"root"}),j=(0,r.gn)([(0,r.fM)(0,(0,i.Inject)(D)),(0,r.w6)("design:paramtypes",[Object,R,i.Injector,u.H7,i.NgZone])],j);var L,B,V,W=((L=function(){return C(function e(t,n,r){var i=this;E(this,e),this.toastrService=t,this.toastPackage=n,this.ngZone=r,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(){i.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(function(){i.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(function(){i.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(function(e){i.duplicatesCount=e})},[{key:"displayStyle",get:function(){if("inactive"===this.state.value)return"none"}},{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 e=this;this.state=Object.assign({},this.state,{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(function(){return e.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(function(){return e.updateProgress()},10))}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var e=(new Date).getTime();this.width=(this.hideTime-e)/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 e=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign({},this.state,{value:"active"}),this.outsideTimeout(function(){return e.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 e.updateProgress()},10)}},{key:"remove",value:function(){var e=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign({},this.state,{value:"removed"}),this.outsideTimeout(function(){return e.toastrService.remove(e.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 e=this;!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(function(){return e.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 e.updateProgress()},10))}},{key:"outsideTimeout",value:function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.timeout=setTimeout(function(){return n.runInsideAngular(e)},t)}):this.timeout=setTimeout(function(){return e()},t)}},{key:"outsideInterval",value:function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.intervalId=setInterval(function(){return n.runInsideAngular(e)},t)}):this.intervalId=setInterval(function(){return e()},t)}},{key:"runInsideAngular",value:function(e){this.ngZone?this.ngZone.run(function(){return e()}):e()}}])}()).\u0275fac=function(e){return new(e||L)(i.\u0275\u0275directiveInject(j),i.\u0275\u0275directiveInject(A),i.\u0275\u0275directiveInject(i.NgZone))},L.\u0275cmp=i.\u0275\u0275defineComponent({type:L,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",t.state),i.\u0275\u0275classMap(t.toastClasses),i.\u0275\u0275styleProp("display",t.displayStyle))},attrs:c,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(e,t){1&e&&(i.\u0275\u0275template(0,l,3,0,"button",0),i.\u0275\u0275template(1,d,3,5,"div",1),i.\u0275\u0275template(2,p,1,3,"div",2),i.\u0275\u0275template(3,v,2,4,"div",3),i.\u0275\u0275template(4,y,2,2,"div",4)),2&e&&(i.\u0275\u0275property("ngIf",t.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.message&&t.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.message&&!t.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.options.progressBar))},directives:[s.O5],encapsulation:2,data:{animation:[(0,o.X$)("flyInOut",[(0,o.SB)("inactive",(0,o.oB)({opacity:0})),(0,o.SB)("active",(0,o.oB)({opacity:1})),(0,o.SB)("removed",(0,o.oB)({opacity:0})),(0,o.eR)("inactive => active",(0,o.jt)("{{ easeTime }}ms {{ easing }}")),(0,o.eR)("active => removed",(0,o.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),(0,r.gn)([(0,i.HostBinding)("class"),(0,r.w6)("design:type",Object)],L.prototype,"toastClasses",void 0),(0,r.gn)([(0,i.HostBinding)("@flyInOut"),(0,r.w6)("design:type",Object)],L.prototype,"state",void 0),(0,r.gn)([(0,i.HostBinding)("style.display"),(0,r.w6)("design:type",Object),(0,r.w6)("design:paramtypes",[])],L.prototype,"displayStyle",null),(0,r.gn)([(0,i.HostListener)("click"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],L.prototype,"tapToast",null),(0,r.gn)([(0,i.HostListener)("mouseenter"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],L.prototype,"stickAround",null),(0,r.gn)([(0,i.HostListener)("mouseleave"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],L.prototype,"delayedHideToast",null),L=(0,r.gn)([(0,r.w6)("design:paramtypes",[j,A,i.NgZone])],L)
1),U=Object.assign({},O,{toastComponent:W}),z=B=function(){return C(function e(){E(this,e)},null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:B,providers:[{provide:D,useValue:{default:U,config:e}}]}}}])}();z.\u0275fac=function(e){return new(e||z)},z.\u0275mod=i.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=i.\u0275\u0275defineInjector({imports:[[s.ez]]});var q=Object.assign({},O,{toastComponent:function(){var e=function(){return C(function e(t,n,r){var i=this;E(this,e),this.toastrService=t,this.toastPackage=n,this.appRef=r,this.width=-1,this.toastClasses="",this.state="inactive",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(){i.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(function(){i.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(function(){i.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(function(e){i.duplicatesCount=e})},[{key:"displayStyle",get:function(){if("inactive"===this.state)return"none"}},{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 e=this;this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(function(){e.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(function(){return e.updateProgress()},10))),this.options.onActivateTick&&this.appRef.tick()}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var e=(new Date).getTime();this.width=(this.hideTime-e)/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 e=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(function(){return e.remove()},this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(function(){return e.updateProgress()},10))}},{key:"remove",value:function(){var e=this;"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(function(){return e.toastrService.remove(e.toastPackage.toastId)}))}},{key:"tapToast",value:function(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var e=this;!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(function(){return e.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.intervalId=setInterval(function(){return e.updateProgress()},10)))}}])}();return e.\u0275fac=function(t){return new(t||e)(i.\u0275\u0275directiveInject(j),i.\u0275\u0275directiveInject(A),i.\u0275\u0275directiveInject(i.ApplicationRef))},e.\u0275cmp=i.\u0275\u0275defineComponent({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.\u0275\u0275listener("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(i.\u0275\u0275classMap(t.toastClasses),i.\u0275\u0275styleProp("display",t.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(i.\u0275\u0275template(0,g,3,0,"button",0),i.\u0275\u0275template(1,w,3,5,"div",1),i.\u0275\u0275template(2,x,1,3,"div",2),i.\u0275\u0275template(3,k,2,4,"div",3),i.\u0275\u0275template(4,S,2,2,"div",4)),2&e&&(i.\u0275\u0275property("ngIf",t.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.message&&t.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.message&&!t.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",t.options.progressBar))},directives:[s.O5],encapsulation:2}),(0,r.gn)([(0,i.HostBinding)("class"),(0,r.w6)("design:type",Object)],e.prototype,"toastClasses",void 0),(0,r.gn)([(0,i.HostBinding)("style.display"),(0,r.w6)("design:type",Object),(0,r.w6)("design:paramtypes",[])],e.prototype,"displayStyle",null),(0,r.gn)([(0,i.HostListener)("click"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],e.prototype,"tapToast",null),(0,r.gn)([(0,i.HostListener)("mouseenter"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],e.prototype,"stickAround",null),(0,r.gn)([(0,i.HostListener)("mouseleave"),(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],e.prototype,"delayedHideToast",null),e=(0,r.gn)([(0,r.w6)("design:paramtypes",[j,A,i.ApplicationRef])],e)}()}),H=V=function(){return C(function e(){E(this,e)},null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:V,providers:[{provide:D,useValue:{default:q,config:e}}]}}}])}();H.\u0275fac=function(e){return new(e||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[s.ez]]})},62414:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;
vendor: 5,855 bytes, line 1
1if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,u,s=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(s[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},85401:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&s&&"function"==typeof s.get?s.get:null,l=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,C=Array.prototype.join,S=Array.prototype.slice,E=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var i=String(r),o=g.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var F=n(24654),N=F.custom,j=q(N)?N:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function V(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function W(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==K(e)||T&&"object"==typeof e&&T in e)}function z(e){return!("[object RegExp]"!==K(e)||T&&"object"==typeof e&&T in e)}function q(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var u=n||{};if(G(u,"quoteStyle")&&!G(L,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!G(u,"customInspect")||u.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return v?R(t,w):w}if("bigint"==typeof t){var x=String(t)+"n";return v?R(t,x):x}var E=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=E&&E>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var O=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(u,r);if(void 0===i)i=[];else if(Y(i,t)>=0)return"[Circular]";function N(t,n,o){if(n&&(i=S.call(i)).push(n),o){var a={depth:u.depth};return G(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,i)}return e(t,u,r+1,i)}if("function"==typeof t&&!z(t)){var B=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),H=te(t,N);return"[Function"+(B?": "+B:" (anonymous)")+"]"+(H.length>0?" { "+C.call(H,", ")+" }":"")}if(q(t)){var Z=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(t);return"object"!=typeof t||I?Z:Q(Z)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var ne="<"+_.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+V(W(re[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+_.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var oe=te(t,N);return O&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(oe)?"["+ee(oe,O)+"]":"[ "+C.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||T&&"object"==typeof e&&T in e)}(t)){var ae=te(t,N);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(ae,", ")+" }
1":"{ ["+String(t)+"] "+C.call(k.call("[cause]: "+N(t.cause),ae),", ")+" }"}if("object"==typeof t&&s){if(j&&"function"==typeof t[j]&&F)return F(t,{depth:E-r});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,n){ue.push(N(n,t,!0)+" => "+N(e,t))}),J("Map",o.call(t),ue,O)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}(t)){var se=[];return l&&l.call(t,function(e){se.push(N(e,t))}),J("Set",c.call(t),se,O)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return!("[object Number]"!==K(e)||T&&"object"==typeof e&&T in e)}(t))return Q(N(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}(t))return Q(N(A.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||T&&"object"==typeof e&&T in e)}(t))return Q(p.call(t));if(function(e){return!("[object String]"!==K(e)||T&&"object"==typeof e&&T in e)}(t))return Q(N(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==K(e)||T&&"object"==typeof e&&T in e)}(t)&&!z(t)){var ce=te(t,N),le=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!le&&T&&Object(t)===t&&T in t?g.call(K(t),8,-1):fe?"Object":"",de=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+C.call(k.call([],he||[],fe||[]),": ")+"] ":"");return 0===ce.length?de+"{}":O?de+"{"+ee(ce,O)+"}":de+"{ "+C.call(ce,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return H.call(e,t)}function K(e){return v.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||"single"];return i.lastIndex=0,V(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):C.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=G(e,i)?t(e[i],e):""}var o,a="function"==typeof O?O(e):[];if(I){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)!G(e,s)||n&&String(Number(s))===s&&s<e.length||I&&o["$"+s]instanceof Symbol||(x.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e)));if("function"==typeof O)for(var c=0;c<a.length;c++)M.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},30315:function(e,t,n){var r;e=n.nmd(e),function(i){"object"==typeof global&&global;var o,a=2147483647,u=36,s=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(f[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(l,".")).split("."),t).join(".")}function m(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function g(e){return v(e,function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)}).join("")}function b(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:u}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=u)e=h(e/35);return h(r+36*e/(e+38))}function x(e){var t,n,r,i,o,s,c,l,f,d,v=[],y=e.length,m=0,w=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&p("not-basic"),v.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=m,s=1,c=u;i>=y&&p("invalid-input"),((l=b(e.charCodeAt(i++)))>=u||l>h((a-m)/s))&&p("overflow"),m+=l*s,!(l<(f=c<=x?1:c>=x+26?26:c-x));c+=u)s>h(a/(d=u-f))&&p("overflow"),s*=d;x=_(m-o,t=v.length+1,0==o),h(m/t)>a-w&&p("overflow"),w+=h(m/t),m%=t,v.splice(m++,0,w)}return g(v)}function k(e){var t,n,r,i,o,s,c,l,f,v,y,g,b,x,k,C=[];for(g=(e=m(e)).length,t=128,n=0,o=72,s=0;s<g;++s)(y=e[s])<128&&C.push(d(y));for(r=i=C.length,i&&C.push("-");r<g;){for(c=a,s=0;s<g;++s)(y=e[s])>=t&&y<c&&(c=y);for(c-t>h((a-n)/(b=r+1))&&p("overflow"),n+=(c-t)*b,t=c,s=0;s<g;++s)if((y=e[s])<t&&++n>a&&p("overflow"),y==t){for(l=n,f=u;!(l<(v=f<=o?1:f>=o+26?26:f-o));f+=u)C.push(d(w(v+(k=l-v)%(x=u-v),0))),l=h(k/x);C.push(d(w(l,0))),o=_(n,b,r==i),n=0,++r}++n,++t}return C.join("")}o={version:"1.4.1",ucs2:{decode:m,encode:g},decode:x,encode:k,toASCII:function(e){return y(e,function(e){return c.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return y(e,function(e){return s.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0!==(r=(function(){return o}
vendor: 2,070 bytes, line 1
1).call(t,n,t,e))&&(e.exports=r)}()},31119:function(e){"use strict";var t=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},95429:function(e,t,n){"use strict";var r=n(85168),i=n(89862),o=n(31119);e.exports={formats:o,parse:i,stringify:r}},89862:function(e,t,n){"use strict";var r=n(75874),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(l,10);n.parseArrays||""!==l?!isNaN(f)&&s!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;
vendor: 4,277 bytes, line 1
1if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var c="string"==typeof e?function(e,t){var n,s={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=(c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]")).split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?h="utf-8":"utf8=%26%2310003%3B"===l[n]&&(h="iso-8859-1"),f=n,n=l.length);for(n=0;n<l.length;++n)if(n!==f){var d,p,v=l[n],y=v.indexOf("]="),m=-1===y?v.indexOf("="):y+1;-1===m?(d=t.decoder(v,a.decoder,h,"key"),p=t.strictNullHandling?null:""):(d=t.decoder(v.slice(0,m),a.decoder,h,"key"),p=r.maybeMap(u(v.slice(m+1),t),function(e){return t.decoder(e,a.decoder,h,"value")})),p&&t.interpretNumericEntities&&"iso-8859-1"===h&&(p=String(p).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),v.indexOf("[]=")>-1&&(p=o(p)?[p]:p);var g=i.call(s,d);g&&"combine"===t.duplicates?s[d]=r.combine(s[d],p):(!g||"last"===t.duplicates)&&(s[d]=p)}return s}(e,n):e,l=n.plainObjects?{__proto__:null}:{},f=Object.keys(c),h=0;h<f.length;++h){var d=f[h],p=s(d,c[d],n,"string"==typeof e);l=r.merge(l,p,n)}return!0===n.allowSparse?l:r.compact(l)}},85168:function(e,t,n){"use strict";var r=n(13905),i=n(75874),o=n(31119),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},v=function e(t,n,o,a,u,c,f,h,v,y,m,g,b,w,_,x,k,C){for(var S=t,E=C,A=0,O=!1;void 0!==(E=E.get(p))&&!O;){var D=E.get(t);
vendor: 5,024 bytes, line 1
1if(A+=1,void 0!==D){if(D===A)throw new RangeError("Cyclic object value");O=!0}void 0===E.get(p)&&(A=0)}if("function"==typeof y?S=y(n,S):S instanceof Date?S=b(S):"comma"===o&&s(S)&&(S=i.maybeMap(S,function(e){return e instanceof Date?b(e):e})),null===S){if(c)return v&&!x?v(n,d.encoder,k,"key",w):n;S=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(S)||i.isBuffer(S))return v?[_(x?n:v(n,d.encoder,k,"key",w))+"="+_(v(S,d.encoder,k,"value",w))]:[_(n)+"="+_(String(S))];var I,T=[];if(void 0===S)return T;if("comma"===o&&s(S))x&&v&&(S=i.maybeMap(S,v)),I=[{value:S.length>0?S.join(",")||null:void 0}];else if(s(y))I=y;else{var M=Object.keys(S);I=m?M.sort(m):M}var P=h?String(n).replace(/\./g,"%2E"):String(n),R=a&&s(S)&&1===S.length?P+"[]":P;if(u&&s(S)&&0===S.length)return R+"[]";for(var F=0;F<I.length;++F){var N=I[F],j="object"==typeof N&&N&&void 0!==N.value?N.value:S[N];if(!f||null!==j){var L=g&&h?String(N).replace(/\./g,"%2E"):String(N),B=s(S)?"function"==typeof o?o(R,L):R:R+(g?"."+L:"["+L+"]");C.set(t,A);var V=r();V.set(p,C),l(T,e(j,B,o,a,u,c,f,h,"comma"===o&&x&&s(S)?null:v,y,m,g,b,w,_,x,k,V))}}return T};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=d.filter;if(("function"==typeof e.filter||s(e.filter))&&(c=e.filter),r=e.arrayFormat in u?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):s(c.filter)&&(n=c.filter);var f=[];if("object"!=typeof i||null===i)return"";var h=u[c.arrayFormat],p="comma"===h&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var y=r(),m=0;m<n.length;++m){var g=n[m],b=i[g];c.skipNulls&&null===b||l(f,v(b,g,h,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var w=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&(_+="iso-8859-1"===c.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),w.length>0?_+w:""}},75874:function(e,t,n){"use strict";var r=n(31119),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},s=1024;e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");
1if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",l=0;l<u.length;l+=s){for(var f=u.length>=s?u.slice(l,l+s):u,h=[],d=0;d<f.length;++d){var p=f.charCodeAt(d);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===r.RFC1738&&(40===p||41===p)?h[h.length]=f.charAt(d):p<128?h[h.length]=a[p]:p<2048?h[h.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?h[h.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(p=65536+((1023&p)<<10|1023&f.charCodeAt(d+=1)),h[h.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}c+=h.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=u(t,r)),o(t)&&o(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return t[o]=i.call(t,o)?e(t[o],a,r):a,t},a)}}},31540:function(e,t,n){"use strict";var r=n(62414),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,u=60110,s=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function m(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var b=g.prototype=new m;b.constructor=g,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function A(e,t,n,r,a){var u=typeof e;("undefined"===u||"boolean"===u)&&(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+E(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),A(a,t,n,"",function(e){return e})):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+E(u=e[c],c);s+=A(u,t,n,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=A(u=u.value,t,n,l=r+E(u,c++),a);else if("object"===u)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",function(e){return t.call(n,e,i++)}),r}function D(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var I={current:null};function T(){var e=I.current;if(null===e)throw Error(d(321));return e}var M={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error(d(143));return e}}
1,t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null==e)throw Error(d(267,e));var o=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)_.call(t,l)&&!x.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"},42648:function(e,t,n){"use strict";e.exports=n(31540)},19010:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46271),i=n(76295);r.Observable.prototype.filter=i.filter},38004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46271),i=n(29680);r.Observable.prototype.map=i.map},42108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46271),i=n(37008);r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},76295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65131);t.filter=function(e,t){return r.filter(e,t)(this)}},29680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65131);t.map=function(e,t){return r.map(e,t)(this)}},37008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65131);t.mergeMap=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMap(e,t)(this)}},46271:function(e,t,n){"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:function(){return R.W},AsyncSubject:function(){return d.c},BehaviorSubject:function(){return f.X},ConnectableObservable:function(){return a.c},EMPTY:function(){return J.E},EmptyError:function(){return F.K},GroupedObservable:function(){return u.T},NEVER:function(){return le.C},Notification:function(){return D.P},NotificationKind:function(){return D.W},ObjectUnsubscribedError:function(){return N.N},Observable:function(){return o.y},ReplaySubject:function(){return h.t},Scheduler:function(){return S.b},Subject:function(){return l.xQ},Subscriber:function(){return O.L},Subscription:function(){return A.w},TimeoutError:function(){return L.W},UnsubscriptionError:function(){return j.B},VirtualAction:function(){return k},VirtualTimeScheduler:function(){return x},animationFrame:function(){return g.r},animationFrameScheduler:function(){return g.Z},asap:function(){return p.e},asapScheduler:function(){return p.E},async:function(){return v.P},asyncScheduler:function(){return v.z},bindCallback:function(){return z},bindNodeCallback:function(){return G},combineLatest:function(){return Z.aj},concat:function(){return Q.z},config:function(){return Ae.v},defer:function(){return X.P},empty:function(){return J.c},forkJoin:function(){return ee.D},from:function(){return te.D},fromEvent:function(){return ne.R},fromEventPattern:function(){return ie},generate:function(){return oe},identity:function(){return M.y},iif:function(){return ue},interval:function(){return se.F},isObservable:function(){return P.b},merge:function(){return ce.T},never:function(){return le.F},noop:function(){return T.Z},observable:function(){return s.L},of:function(){return fe.of},onErrorResumeNext:function(){return he},pairs:function(){return de},partition:function(){return ge},pipe:function(){return I.z},queue:function(){return y.c},queueScheduler:function(){return y.N},race:function(){return be.S3},range:function(){return we},scheduled:function(){return Ee.x},throwError:function(){return xe._},timer:function(){return ke.H},using:function(){return Ce},zip:function(){return Se.$R}});var r,o=n(38135),a=n(23109),u=n(59413),s=n(98926),l=n(93386),f=n(31530),h=n(54550),d=n(21107),p=n(31808),v=n(51222),y=n(91786),g=n(12156),b=n(15198),w=n(60867),x=(r=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return E(this,t),(e=m(this,t,[n,function(){return e.frame}])).maxFrames=r,e.frame=0,e.index=-1,e}return _(t,e),C(t,[{key:"flush",value:function(){for(var e,t,n=this.actions,r=this.maxFrames;
1(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}])}(w.v),r.frameTimeFactor=10,r),k=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return E(this,t),(r=m(this,t,[e,n])).scheduler=e,r.work=n,r.index=i,r.active=!0,r.index=e.index=i,r}return _(t,e),C(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return i(t,"schedule",this,3)([e,n]);this.active=!1;var r=new t(this.scheduler,this.work);return this.add(r),r.schedule(e,n)}},{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,n){if(!0===this.active)return i(t,"_execute",this,3)([e,n])}}],[{key:"sortActions",value:function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>
1t.index?1:-1:e.delay>t.delay?1:-1}}])}(b.o),S=n(99616),A=n(63788),O=n(59623),D=n(65416),I=n(5469),T=n(16153),M=n(61371),P=n(33972),R=n(46918),F=n(38614),N=n(69150),j=n(4303),L=n(52698),B=n(39417),V=n(38679),W=n(11150),U=n(66232);function z(e,t,n){if(t){if(!(0,U.K)(t))return function(){return z(e,n).apply(void 0,arguments).pipe((0,B.U)(function(e){return(0,W.k)(e)?t.apply(void 0,c(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a,u=this,s={context:u,subject:a,callbackFunc:e,scheduler:n};return new o.y(function(t){if(n)return n.schedule(q,0,{args:r,subscriber:t,params:s});if(!a){a=new d.c;try{e.apply(u,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.next(t.length<=1?t[0]:t),a.complete()}]))}catch(i){(0,V._)(a)?a.error(i):console.warn(i)}}return a.subscribe(t)})}}function q(e){var t=this,n=e.args,r=e.subscriber,i=e.params,o=i.callbackFunc,a=i.context,u=i.scheduler,s=i.subject;if(!s){s=i.subject=new d.c;try{o.apply(a,[].concat(c(n),[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.add(u.schedule(H,0,{value:n.length<=1?n[0]:n,subject:s}))}]))}catch(l){s.error(l)}}this.add(s.subscribe(r))}function H(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function G(e,t,n){if(t){if(!(0,U.K)(t))return function(){return G(e,n).apply(void 0,arguments).pipe((0,B.U)(function(e){return(0,W.k)(e)?t.apply(void 0,c(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a={subject:void 0,args:r,callbackFunc:e,scheduler:n,context:this};return new o.y(function(t){var i=a.context,o=a.subject;if(n)return n.schedule(K,0,{params:a,subscriber:t,context:i});if(!o){o=a.subject=new d.c;try{e.apply(i,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.shift();r?o.error(r):(o.next(t.length<=1?t[0]:t),o.complete())}]))}catch(u){(0,V._)(o)?o.error(u):console.warn(u)}}return o.subscribe(t)})}}function K(e){var t=this,n=e.params,r=e.subscriber,i=e.context,o=n.callbackFunc,a=n.args,u=n.scheduler,s=n.subject;if(!s){s=n.subject=new d.c;try{o.apply(i,[].concat(c(a),[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.shift();t.add(i?u.schedule($,0,{err:i,subject:s}):u.schedule(Y,0,{value:n.length<=1?n[0]:n,subject:s}))}]))}catch(l){this.add(u.schedule($,0,{err:l,subject:s}))}}this.add(s.subscribe(r))}function Y(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function $(e){var t=e.err;e.subject.error(t)}var Z=n(20820),Q=n(69557),X=n(24141),J=n(33393),ee=n(297),te=n(69556),ne=n(730),re=n(76746);function ie(e,t,n){return n?ie(e,t).pipe((0,B.U)(function(e){return(0,W.k)(e)?n.apply(void 0,c(e)):n(e)})):new o.y(function(n){var r,i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.next(1===t.length?t[0]:t)};try{r=e(i)}catch(o){return void n.error(o)}if((0,re.m)(t))return function(){return t(i,r)}})}function oe(e,t,n,r,i){var a,u;return 1==arguments.length?(u=e.initialState,t=e.condition,n=e.iterate,a=e.resultSelector||M.y,i=e.scheduler):void 0===r||(0,U.K)(r)?(u=e,a=M.y,i=r):(u=e,a=r),new o.y(function(e){var r=u;if(i)return i.schedule(ae,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:r});for(;;){if(t){var o=void 0;try{o=t(r)}catch(c){return void e.error(c)}if(!o){e.complete();break}}var s=void 0;try{s=a(r)}catch(o){return void e.error(o)}if(e.next(s),e.closed)break;try{r=n(r)}catch(o){return void e.error(o)}}})}function ae(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(r){return void t.error(r)}else e.needIterate=!0;if(n){var r;try{r=n(e.state)}catch(o){return void t.error(o)}if(!r)return void t.complete();if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(r){return void t.error(r)}return t.closed||(t.next(i),t.closed)?void 0:this.schedule(e)}}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J.E;return(0,X.P)(function(){return e()?t:n})}var se=n(7042),ce=n(42793),le=n(28861),fe=n(13486);function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return J.E;var r=t[0],i=t.slice(1);return 1===t.length&&(0,W.k)(r)?he.apply(void 0,c(r)):new o.y(function(e){var t=function(){return e.add(he.apply(void 0,c(i)).subscribe(e))};return(0,te.D)(r).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}function de(e,t){return new o.y(t?function(n){var r=Object.keys(e),i=new A.w;return i.add(t.schedule(pe,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}function pe(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,o=e.obj;if(!r.closed)if(n<t.length){var a=t[n];r.next([a,o[a]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var ve=n(35754),ye=n(46467),me=n(86243);function ge(e,t,n){return[(0,me.h)(t,n)(new o.y((0,ye.s)(e))),(0,me.h)((0,ve.f)(t,n))(new o.y((0,ye.s)(e)))]}var be=n(62470);function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new o.y(function(r){void 0===t&&(t=e,e=0);var i=0,o=e;if(n)return n.schedule(_e,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(o++),r.closed)break}})}function _e(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),!i.closed&&(e.index=n+1,e.start=t+1,this.schedule(e)))}var xe=n(57077),ke=n(4184);function Ce(e,t){return new o.y(function(n){var r,i;try{r=e()}catch(a){return void n.error(a)}try{i=t(r)}catch(a){return void n.error(a)}var o=(i?(0,te.D)(i):J.E).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var Se=n(18719),Ee=n(43382),Ae=n(16826)},21107:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(93386),o=n(63788),a=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return _(t,e),C(t,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.w.EMPTY):i(t,"_subscribe",this,3)([e])}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||i(t,"error",this,3)([e])}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&i(t,"next",this,3)([this.value]),i(t,"complete",this,3)([])}}])}(r.xQ)},31530:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(93386),o=n(69150),a=function(e){function t(e){var n;return E(this,t),(n=m(this,t))._value=e,n}return _(t,e),C(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var n=i(t,"_subscribe",this,3)([e]);return n&&!n.closed&&e.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value}},{key:"next",value:function(e){i(t,"next",this,3)([this._value=e])}}])}(r.xQ)},65416:function(e,t,n){"use strict";n.d(t,{W:function(){return u},P:function(){return s}});var r,i=n(33393),o=n(13486),a=n(57077),u=((r=u||(u={})).NEXT="N",r.ERROR="E",r.COMPLETE="C",u),s=function(){function e(t,n,r){E(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return C(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n
1)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,a._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}])}();s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0)},38135:function(e,t,n){"use strict";n.d(t,{y:function(){return f}});var r,i=n(38679),o=n(59623),a=n(7157),u=n(5420),s=n(98926),c=n(5469),l=n(16826),f=(r=function(e){function t(e){E(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return C(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof o.L)return e;if(e[a.b])return e[a.b]()}return e||t||n?new o.L(e,t,n):new o.L(u.c)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l.v.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,i._)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0,c.U)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=h(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}}])}(s.L),r.create=function(e){return new r(e)},r);function h(e){if(e||(e=l.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},5420:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(16826),i=n(2225),o={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,i.z)(e)},complete:function(){}}},89225:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}])}(n(59623).L)},54550:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(93386),o=n(91786),a=n(63788),u=n(50263),s=n(69150),c=n(6812),l=function(e){function t(){var e,n=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,i=arguments.length>2?arguments[2]:void 0;return E(this,t),(e=m(this,t)).scheduler=i,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _(t,e),C(t,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}i(t,"next",this,3)([e])}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new f(this._getNow(),e)),this._trimBufferThenGetEvents()),i(t,"next",this,3)([e])}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new s.N;if(this.isStopped||this.hasError?t=a.w.EMPTY:(this.observers.push(e),t=new c.W(this,e)),i&&e.add(e=new u.ht(e,i)),n)for(var l=0;l<o&&!e.closed;l++)e.next(r[l]);else for(var f=0;f<o&&!e.closed;f++)e.next(r[f].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||o.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}])}(r.xQ),f=C(function e(t,n){E(this,e),this.time=t,this.value=n})},99616:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r,i=(r=function(){return C(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;
1E(this,e),this.SchedulerAction=t,this.now=n},[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}])}(),r.now=function(){return Date.now()},r)},93386:function(e,t,n){"use strict";n.d(t,{Yc:function(){return f},xQ:function(){return h}});var r,o=n(38135),a=n(59623),u=n(63788),s=n(69150),c=n(6812),l=n(7157),f=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).destination=e,n}return _(t,e),C(t)}(a.L),h=((r=function(e,t){function n(){var e;return E(this,n),(e=m(this,n)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _(n,e),C(n,[{key:t,value:function(){return new f(this)}},{key:"lift",value:function(e){var t=new d(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new s.N;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new s.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new s.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new s.N;return i(n,"_trySubscribe",this,3)([e])}},{key:"_subscribe",value:function(e){if(this.closed)throw new s.N;return this.hasError?(e.error(this.thrownError),u.w.EMPTY):this.isStopped?(e.complete(),u.w.EMPTY):(this.observers.push(e),new c.W(this,e))}},{key:"asObservable",value:function(){var e=new o.y;return e.source=this,e}}])}(o.y,l.b)).create=function(e,t){return new d(e,t)},r),d=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).destination=e,r.source=n,r}return _(t,e),C(t,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):u.w.EMPTY}}])}(h)},6812:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).subject=e,r.subscriber=n,r.closed=!1,r}return _(t,e),C(t,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}])}(n(63788).w)},59623:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var r=n(76746),o=n(5420),a=n(63788),u=n(7157),s=n(16826),c=n(2225),l=function(e,t){function n(e,t,r){var i;switch(E(this,n),(i=m(this,n)).syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=o.c;break;case 1:if(!e){i.destination=o.c;break}if("object"==typeof e){e instanceof n?(i.syncErrorThrowable=e.syncErrorThrowable,i.destination=e,e.add(g(i))):(i.syncErrorThrowable=!0,i.destination=new f(g(i),e));break}default:i.syncErrorThrowable=!0,i.destination=new f(g(i),e,t,r)}return g(i)}return _(n,e),C(n,[{key:t,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,i(n,"unsubscribe",this,3)([]))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}])}(a.w,u.b),f=function(e){function t(e,n,i,a){var u;E(this,t),(u=m(this,t))._parentSubscriber=e;var s,c=u;return(0,r.m)(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.c&&(c=Object.create(n),(0,r.m)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=i,u._complete=a,u}return _(t,e),C(t,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,c.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,c.z)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!s.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):((0,c.z)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}])}(l)},63788:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r,i=n(11150),o=n(46212),a=n(76746),u=n(4303),s=function(){function e(t){E(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return C(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f)n[f].remove(this);if((0,a.m)(s)){r&&(this._unsubscribe=void 0);try{s.call(this)}catch(f){t=f instanceof u.B?c(f.errors):[f]}}if((0,i.k)(l))for(var h=-1,d=l.length;++h<d;){var p=l[h];if((0,o.K)(p))try{p.unsubscribe()}
1catch(v){t=t||[],v instanceof u.B?t=t.concat(c(v.errors)):t.push(v)}}if(t)throw new u.B(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}])}();function c(e){return e.reduce(function(e,t){return e.concat(t instanceof u.B?t.errors:t)},[])}s.EMPTY=((r=new s).closed=!0,r)},16826:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},82303:function(e,t,n){"use strict";n.d(t,{IY:function(){return a},Ds:function(){return u},ft:function(){return s}});var r=n(59623),i=n(38135),o=n(46467),a=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).parent=e,n}return _(t,e),C(t,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}])}(r.L),u=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}])}(r.L);function s(e,t){if(!t.closed){if(e instanceof i.y)return e.subscribe(t);var n;try{n=(0,o.s)(e)(t)}catch(r){t.error(r)}return n}}},23109:function(e,t,n){"use strict";n.d(t,{c:function(){return c},N:function(){return l}});var r,o=n(93386),a=n(38135),u=n(63788),s=n(26947),c=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return _(t,e),C(t,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new u.w).add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.w.EMPTY)),e}},{key:"refCount",value:function(){return(0,s.x)()(this)}}])}(a.y),l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(r=c.prototype)._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}},f=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).connectable=n,r}return _(t,e),C(t,[{key:"_error",value:function(e){this._unsubscribe(),i(t,"_error",this,3)([e])}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(t,"_complete",this,3)([])}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}])}(o.Yc)},20820:function(e,t,n){"use strict";n.d(t,{aj:function(){return c},Ms:function(){return l}});var r=n(66232),i=n(11150),o=n(89225),a=n(91500),u=n(57429),s={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,a;return(0,r.K)(t[t.length-1])&&(a=t.pop()),"function"==typeof t[t.length-1]&&(o=t.pop()),1===t.length&&(0,i.k)(t[0])&&(t=t[0]),(0,u.n)(t,a).lift(new l(o))}var l=function(){return C(function e(t){E(this,e),this.resultSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.resultSelector))}}])}(),f=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return _(t,e),C(t,[{key:"_next",value:function(e){this.values.push(s),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add((0,a.D)(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var r=this.values,i=this.toRespond?r[n]===s?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}])}(o.L)},69557:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(13486),i=n(87685);function o(){return(0,i.u)()(r.of.apply(void 0,arguments))}},24141:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(38135),i=n(69556),o=n(33393);function a(e){return new r.y(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?(0,i.D)(n):(0,o.c)()).subscribe(t)})}},33393:function(e,t,n){"use strict";n.d(t,{E:function(){return i},c:function(){return o}});var r=n(38135),i=new r.y(function(e){return e.complete()});function o(e){return e?function(e){return new r.y(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},297:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(38135),i=n(11150),o=n(39417),a=n(46212),u=n(69556);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if((0,i.k)(r))return l(r,null);if((0,a.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){var u=Object.keys(r);return l(u.map(function(e){return r[e]}),u)}}if("function"==typeof t[t.length-1]){var s=t.pop();return l(t=1===t.length&&(0,i.k)(t[0])?t[0]:t,null).pipe((0,o.U)(function(e){return s.apply(void 0,c(e))}))}return l(t,null)}function l(e,t){return new r.y(function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var c=(0,u.D)(e[s]),l=!1;n.add(c.subscribe({next:function(e){l||(l=!0,a++),i[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===r||!l)&&(a===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),n.complete())}}))},c=0;c<r;c++)s(c);else n.complete()})}},69556:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(38135),i=n(46467),o=n(43382);function a(e,t){return t?(0,o.x)(e,t):e instanceof r.y?e:new r.y((0,i.s)(e))}},57429:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(38135),i=n(11156),o=n(63181);function a(e,t){return t?(0,o.r)(e,t):new r.y((0,i.V)(e))}},730:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(38135),i=n(11150),o=n(76746),a=n(39417);function u(e,t,n,l){return(0,o.m)(n)&&(l=n,n=void 0),l?u(e,t,n).pipe((0,a.U)(function(e){return(0,i.k)(e)?l.apply(void 0,c(e)):l(e)})):new r.y(function(r){s(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function s(e,t,n,r,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,i),o=function(){return a.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var u=e;e.on(t,n),o=function(){return u.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),o=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)s(e[l],t,n,r,i)}r.add(o)}},7042:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(38135),i=n(51222),o=n(55826);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P;return(!(0,o.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=i.P),new r.y(function(n){return n.add(t.schedule(u,e,{subscriber:n,counter:0,peri
1od:e})),n})}function u(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}},42793:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(38135),i=n(66232),o=n(87402),a=n(57429);function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var u=Number.POSITIVE_INFINITY,s=null,c=t[t.length-1];return(0,i.K)(c)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(u=t.pop())):"number"==typeof c&&(u=t.pop()),null===s&&1===t.length&&t[0]instanceof r.y?t[0]:(0,o.J)(u)((0,a.n)(t,s))}},28861:function(e,t,n){"use strict";n.d(t,{C:function(){return o},F:function(){return a}});var r=n(38135),i=n(16153),o=new r.y(i.Z);function a(){return o}},13486:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var r=n(66232),i=n(57429),o=n(63181);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[t.length-1];return(0,r.K)(a)?(t.pop(),(0,o.r)(t,a)):(0,i.n)(t)}},62470:function(e,t,n){"use strict";n.d(t,{S3:function(){return u}});var r=n(11150),i=n(57429),o=n(89225),a=n(91500);function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){if(!(0,r.k)(t[0]))return t[0];t=t[0]}return(0,i.n)(t,void 0).lift(new s)}var s=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new c(e))}}])}(),c=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).hasFirst=!1,n.observables=[],n.subscriptions=[],n}return _(t,e),C(t,[{key:"_next",value:function(e){this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=(0,a.D)(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}},{key:"notifyNext",value:function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(t)}}])}(o.L)},57077:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(38135);function i(e,t){return new r.y(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){var t=e.error;e.subscriber.error(t)}},4184:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(38135),i=n(51222),o=n(55826),a=n(66232);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,u=-1;return(0,o.k)(t)?u=Number(t)<1?1:Number(t):(0,a.K)(t)&&(n=t),(0,a.K)(n)||(n=i.P),new r.y(function(t){var r=(0,o.k)(e)?e:+e-n.now();return n.schedule(s,r,{index:0,period:u,subscriber:t})})}function s(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},18719:function(e,t,n){"use strict";n.d(t,{$R:function(){return s},mx:function(){return c}});var r=n(57429),i=n(11150),o=n(59623),a=n(43632),u=n(82303);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return"function"==typeof i&&t.pop(),(0,r.n)(t,void 0).lift(new c(i))}var c=function(){return C(function e(t){E(this,e),this.resultSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.resultSelector))}}])}(),l=function(e){function t(e,n){var r;arguments.length>2&&void 0!==arguments[2]||Object.create(null);return E(this,t),(r=m(this,t,[e])).resultSelector=n,r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:void 0,r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.iterators;(0,i.k)(e)?t.push(new h(e)):t.push("function"==typeof e[a.hZ]?new f(e[a.hZ]()):new d(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){var i=e[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,a=[],u=0;u<t;u++){var s=e[u],c=s.next();if(s.hasCompleted()&&(o=!0),c.done)return void n.complete();a.push(c.value)}this.resultSelector?this._tryresultSelector(a):n.next(a),o&&n.complete()}},{key:"_tryresultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}])}(o.L),f=function(){return C(function e(t){E(this,e),this.iterator=t,this.nextResult=t.next()},[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e}},{key:"hasCompleted",value:function(){var e=this.nextResult;return Boolean(e&&e.done)}}])}(),h=function(e){return C(function e(t){E(this,e),this.array=t,this.index=0,this.length=0,this.length=t.length},[{key:e,value:function(){return this}},{key:"next",value:function(e){var t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}])}(a.hZ),d=function(e,t){function n(e,t,r){var i;return E(this,n),(i=m(this,n,[e])).parent=t,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return _(n,e),C(n,[{key:t,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,u.ft)(this.observable,new u.IY(this))}}])}(u.Ds,a.hZ)},11620:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(82303);function i(e){return function(t){return t.lift(new o(e))}}var o=function(){return C(function e(t){E(this,e),this.durationSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.durationSelector))}}])}(),a=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).durationSelector=n,r.hasValue=!1,r}return _(t,e),C(t,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{var n;t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var i=(0,r.ft)(t,new r.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;
1n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(r.Ds)},79831:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(51222),i=n(11620),o=n(4184);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(0,i.U)(function(){return(0,o.H)(e,t)})}},58267:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(82303);function o(e){return function(t){var n=new a(e),r=t.lift(n);return n.caught=r}}var a=function(){return C(function e(t){E(this,e),this.selector=t},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.selector,this.caught))}}])}(),u=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).selector=n,i.caught=r,i}return _(t,e),C(t,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(u){return void i(t,"error",this,3)([u])}this._unsubscribeAndRecycle();var o=new r.IY(this);this.add(o);var a=(0,r.ft)(n,o);a!==o&&this.add(a)}}}])}(r.Ds)},6043:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(20820);function i(e){return function(t){return t.lift(new r.Ms(e))}}},87685:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(87402);function i(){return(0,r.J)(1)}},23021:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(82754);function i(e,t){return(0,r.zg)(e,t,1)}},48995:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(82303);function o(e){return function(t){return t.lift(new a(e))}}var a=function(){return C(function e(t){E(this,e),this.durationSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector))}}])}(),u=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).durationSelector=n,r.hasValue=!1,r}return _(t,e),C(t,[{key:"_next",value:function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(t){this.destination.error(t)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,r.ft)(t,new r.IY(this)))&&!n.closed&&this.add(this.durationSubscription=n)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,i(t,"_next",this,3)([e])}}}])}(r.Ds)},50851:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(59623),i=n(51222);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P;return function(n){return n.lift(new a(e,t))}}var a=function(){return C(function e(t,n){E(this,e),this.dueTime=t,this.scheduler=n},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.dueTime,this.scheduler))}}])}(),u=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return _(t,e),C(t,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}])}(r.L);function s(e){e.debouncedNext()}},65724:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(59623);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new o(e))}}var o=function(){return C(function e(t){E(this,e),this.defaultValue=t},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.defaultValue))}}])}(),a=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).defaultValue=n,r.isEmpty=!0,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}])}(r.L)},40673:function(e,t,n){"use strict";n.d(t,{g:function(){return u}});var r=n(51222),i=n(39366),o=n(59623),a=n(65416);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P,n=(0,i.J)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new s(n,t))}}var s=function(){return C(function e(t,n){E(this,e),this.delay=t,this.scheduler
1=n},[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}])}(),c=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return _(t,e),C(t,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(a.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}])}(o.L),l=C(function e(t,n){E(this,e),this.time=t,this.notification=n})},14358:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(59623);function i(){return function(e){return e.lift(new o)}}var o=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new a(e))}}])}(),a=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"_next",value:function(e){e.observe(this.destination)}}])}(r.L)},73916:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(59623);function i(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){return C(function e(t,n){E(this,e),this.compare=t,this.keySelector=n},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}])}(),a=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return _(t,e),C(t,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}
1var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}])}(r.L)},64793:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(39417),i=n(69556),o=n(82303);function a(e,t){return t?function(n){return n.pipe(a(function(n,o){return(0,i.D)(e(n,o)).pipe((0,r.U)(function(e,r){return t(n,e,o,r)}))}))}:function(t){return t.lift(new u(e))}}var u=function(){return C(function e(t){E(this,e),this.project=t},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.project))}}])}(),s=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new o.IY(this),n=this.destination;n.add(t);var r=(0,o.ft)(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}])}(o.Ds)},86243:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(59623);function i(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){return C(function e(t,n){E(this,e),this.predicate=t,this.thisArg=n},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}])}(),a=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).predicate=n,i.thisArg=r,i.count=0,i}return _(t,e),C(t,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}])}(r.L)},50724:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(59623),i=n(63788);function o(e){return function(t){return t.lift(new a(e))}}var a=function(){return C(function e(t){E(this,e),this.callback=t},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.callback))}}])}(),u=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).add(new i.w(n)),r}return _(t,e),C(t)}(r.L)},6650:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(38614),i=n(86243),o=n(8355),a=n(65724),u=n(36350),s=n(61371);function c(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?(0,i.h)(function(t,n){return e(t,n,c)}):s.y,(0,o.q)(1),n?(0,a.d)(t):(0,u.T)(function(){return new r.K}))}}},59413:function(e,t,n){"use strict";n.d(t,{v:function(){return s},T:function(){return h}});var r=n(59623),o=n(63788),a=n(38135),u=n(93386);function s(e,t,n,r){return function(i){return i.lift(new c(e,t,n,r))}}var c=function(){return C(function e(t,n,r,i){E(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i},[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}])}(),l=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t,[e])).keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return _(t,e),C(t,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(o){this.error(o)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new u.xQ,n.set(t,i);var o=new h(t,i,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new h(t,i))}catch(s){return void this.error(s)}this.add(a.subscribe(new f(t,i,this)))}}i.closed||i.next(r)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&i(t,"unsubscribe",this,3)([]))}}])}(r.L),f=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[n])).key=e,i.group=n,i.parent=r,i}return _(t,e),C(t,[{key:"_next",value:function(e){this.complete()}},{key:"_unsubscribe",value:function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)}}])}(r.L),h=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t)).key=e,i.groupSubject=n,i.refCountSubscription=r,i}return _(t,e),C(t,[{key:"_subscribe",value:function(e){var t=new o.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new d(n)),t.add(r.subscribe(e)),t}}])}(a.y),d=function(e){function t(e){var n;return E(this,t),(n=m(this,t)).parent=e,e.count++,n}return _(t,e),C(t,[{key:"unsubscribe",value:function(){var e=this.parent;!e.closed&&!this.closed&&(i(t,"unsubscribe",this,3)([]),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}])}(o.w)},63553:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(59623);function i(){return function(e){return e.lift(new o)}}var o=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new a(e))}}])}(),a=function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"_next",value:function(e){}}])}(r.L)},55536:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(38614),i=n(86243),o=n(3003),a=n(36350),u=n(65724),s=n(61371);function c(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?(0,i.h)(function(t,n){return e(t,n,c)}):s.y,(0,o.h)(1),n?(0,u.d)(t):(0,a.T)(function(){return new r.K}))}}},39417:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(59623);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){return C(function e(t,n){E(this,e),this.project=t,this.thisArg=n},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}])}(),a=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).project=n,i.count=0,i.thisArg=r||g(i),i}return _(t,e),C(t,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}])}(r.L)},54060:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(59623),i=n(65416);function o(){return function(e){return e.lift(new a)}}var a=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new u(e))}}])}(),u=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"_next",value:function(e){this.destination.next(i.P.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(i.P.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(i.P.createComplete()),e.complete()}}])}(r.L)},87402:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(82754),i=n(61371);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,r.zg)(i.y,e)}},82754:function(e,t,n){"use strict";n.d(t,{zg:function(){return a},VS:function(){return c}});var r=n(39417),i=n(69556),o=n(82303);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;
1return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,i.D)(e(n,o)).pipe((0,r.U)(function(e,r){return t(n,e,o,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){return C(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;E(this,e),this.project=t,this.concurrent=n},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.project,this.concurrent))}}])}(),s=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return E(this,t),(r=m(this,t,[e])).project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new o.IY(this),n=this.destination;n.add(t);var r=(0,o.ft)(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}])}(o.Ds),c=a},21259:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(23109);function i(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new o(i,t));var a=Object.create(n,r.N);return a.source=n,a.subjectFactory=i,a}}var o=function(){return C(function e(t,n){E(this,e),this.subjectFactory=t,this.selector=n},[{key:"call",value:function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}])}()},50263:function(e,t,n){"use strict";n.d(t,{QV:function(){return o},ht:function(){return u}});var r=n(59623),i=n(65416);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new a(e,t))}}var a=function(){return C(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;E(this,e),this.scheduler=t,this.delay=n},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))}}])}(),u=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;
1return E(this,t),(r=m(this,t,[e])).scheduler=n,r.delay=i,r}return _(t,e),C(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new s(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(i.P.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(i.P.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(i.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}])}(r.L),s=C(function e(t,n){E(this,e),this.notification=t,this.destination=n})},91624:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(59623);function i(){return function(e){return e.lift(new o)}}var o=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new a(e))}}])}(),a=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).hasPrev=!1,n}return _(t,e),C(t,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}])}(r.L)},20354:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(39417);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return(0,r.U)(function(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=null!=r?r[e[i]]:void 0;if(void 0===o)return;r=o}return r}}(t,i))(e)}}},67362:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(26362),i=n(3003),o=n(65724),a=n(5469);function u(e,t){return arguments.length>=2?function(n){return(0,a.z)((0,r.R)(e,t),(0,i.h)(1),(0,o.d)(t))(n)}:function(t){return(0,a.z)((0,r.R)(function(t,n,r){return e(t,n,r+1)}),(0,i.h)(1))(t)}}},26947:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(59623);function i(){return function(e){return e.lift(new o(e))}}var o=function(){return C(function e(t){E(this,e),this.connectable=t},[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}])}(),a=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).connectable=n,r}return _(t,e),C(t,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}else this.connection=null}}])}(r.L)},26362:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(59623);function i(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(e,t,n))}}var o=function(){return C(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))}}])}(),a=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e])).accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return _(t,e),C(t,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}])}(r.L)},33316:function(e,t,n){"use strict";n.d(t,{B:function(){return u}});var r=n(21259),i=n(26947),o=n(93386);function a(){return new o.xQ}function u(){return function(e){return(0,i.x)()((0,r.O)(a)(e))}}},16710:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(54550);function i(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,o=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,u=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,c=e.scheduler,l=0,f=!1,h=!1;return function(e){var i;l++,!t||f?(f=!1,t=new r.t(o,u,c),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){f=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}),h&&(n=void 0)):i=t.subscribe(this),this.add(function(){l--,i.unsubscribe(),i=void 0,n&&!h&&s&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}},20777:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(59623);function i(e){return function(t){return t.lift(new o(e))}}var o=function(){return C(function e(t){E(this,e),this.total=t},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}])}(),a=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).total=n,r.count=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}])}(r.L)},5790:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(69557),i=n(66232);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return(0,i.K)(o)?(t.pop(),function(e){return(0,r.z)(t,e,o)}):function(e){return(0,r.z)(t,e)}}},10480:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(39417),o=n(69556),a=n(82303);function u(e,t){return"function"==typeof t?function(n){return n.pipe(u(function(n,i){return(0,o.D)(e(n,i)).pipe((0,r.U)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new s(e))}}var s=function(){return C(function e(t){E(this,e),this.project=t},[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.project))}}])}(),c=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).project=n,r.index=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new a.IY(this),r=this.destination;r.add(n),this.innerSubscription=(0,a.ft)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;(!e||e.closed)&&i(t,"_complete",this,3)([]),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&i(t,"_complete",this,3)([])}},{key:"notifyNext",value:function(e){this.destination.next(e)}}])}(a.Ds)},8355:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(59623),i=n(46918),o=n(33393);function a(e){return function(t){return 0===e?(0,o.c)():t.lift(new u(e))}}var u=function(){return C(function e(t){if(E(this,e),this.total=t,this.total<0)throw new i.W},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.total))}}])}(),s=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).total=n,r.count=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}])}(r.L)}
1,3003:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(59623),i=n(46918),o=n(33393);function a(e){return function(t){return 0===e?(0,o.c)():t.lift(new u(e))}}var u=function(){return C(function e(t){if(E(this,e),this.total=t,this.total<0)throw new i.W},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.total))}}])}(),s=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).total=n,r.ring=new Array,r.count=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()}}])}(r.L)},30105:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(82303);function i(e){return function(t){return t.lift(new o(e))}}var o=function(){return C(function e(t){E(this,e),this.notifier=t},[{key:"call",value:function(e,t){var n=new a(e),i=(0,r.ft)(this.notifier,new r.IY(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}])}(),a=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).seenValue=!1,n}return _(t,e),C(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(r.Ds)},9085:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(59623);function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new o(e,t))}}var o=function(){return C(function e(t,n){E(this,e),this.predicate=t,this.inclusive=n},[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.inclusive))}}])}(),a=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).predicate=n,i.inclusive=r,i.index=0,i}return _(t,e),C(t,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}])}(r.L)},65426:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(59623),i=n(16153),o=n(76746);function a(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){return C(function e(t,n,r){E(this,e),this.nextOrObserver=t,this.error=n,this.complete=r},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))}}])}(),s=function(e){function t(e,n,r,a){var u;return E(this,t),(u=m(this,t,[e]))._tapNext=i.Z,u._tapError=i.Z,u._tapComplete=i.Z,u._tapError=r||i.Z,u._tapComplete=a||i.Z,(0,o.m)(n)?(u._context=g(u),u._tapNext=n):n&&(u._context=n,u._tapNext=n.next||i.Z,u._tapError=n.error||i.Z,u._tapComplete=n.complete||i.Z),u}return _(t,e),C(t,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}])}(r.L)},49868:function(e,t,n){"use strict";n.d(t,{d:function(){return i},P:function(){return o}});var r=n(82303),i={leading:!0,trailing:!1};function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return function(n){return n.lift(new a(e,!!t.leading,!!t.trailing))}}var a=function(){return C(function e(t,n,r){E(this,e),this.durationSelector=t,this.leading=n,this.trailing=r},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector,this.leading,this.trailing))}}])}(),u=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e])).destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return _(t,e),C(t,[{key:"_next",value:function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}},{key:"send",value:function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=(0,r.ft)(t,new r.IY(this)))}},{key:"tryDurationSelector",value:function(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}},{key:"throttlingDone",value:function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}])}(r.Ds)},86065:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(59623),i=n(51222),o=n(49868);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.d;return function(r){return r.lift(new u(e,t,n.leading,n.trailing))}}var u=function(){return C(function e(t,n,r,i){E(this,e),this.duration=t,this.scheduler
1=n,this.leading=r,this.trailing=i},[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.duration,this.scheduler,this.leading,this.trailing))}}])}(),s=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t,[e])).duration=n,a.scheduler=r,a.leading=i,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return _(t,e),C(t,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(c,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}])}(r.L);function c(e){e.subscriber.clearThrottle()}},36350:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(38614),i=n(59623);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t){return t.lift(new a(e))}}var a=function(){return C(function e(t){E(this,e),this.errorFactory=t},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.errorFactory))}}])}(),u=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).errorFactory=n,r.hasValue=!1,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}])}(i.L);function s(){return new r.K}},46306:function(e,t,n){"use strict";n.d(t,{V:function(){return u}});var r=n(51222),i=n(52698),o=n(4064),a=n(57077);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(0,o.L)(e,(0,a._)(new i.W),t)}},4064:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var r=n(51222),o=n(39366),a=n(82303);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.P;return function(r){var i=(0,o.J)(e),a=i?+e-n.now():Math.abs(e);return r.lift(new s(a,i,t,n))}}var s=function(){return C(function e(t,n,r,i){E(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=i},[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}])}(),c=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t,[e])).absoluteTimeout=n,a.waitFor=r,a.withObservable=i,a.scheduler=o,a.scheduleTimeout(),a}return _(t,e),C(t,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),i(t,"_next",this,3)([e])}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,a.ft)(t,new a.IY(e)))}}])}(a.Ds)},30405:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(67362);function i(e,t,n){return 0===n?[t]:(e.push(t),e)}function o(){return(0,r.u)(i,[])}},57746:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(89225),i=n(91500);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new a(t,n))}}var a=function(){return C(function e(t,n){E(this,e),this.observables=t,this.project=n},[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.observables,this.project))}}])}(),u=function(e){function t(e,n,r){var o;E(this,t),(o=m(this,t,[e])).observables=n,o.project=r,o.toRespond=[];var a=n.length;o.values=new Array(a);for(var u=0;u<a;u++)o.toRespond.push(u);for(var s=0;s<a;s++)o.add((0,i.D)(o,n[s],void 0,s));return o}return _(t,e),C(t,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(c(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}])}(r.L)},63181:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(38135),i=n(63788);function o(e,t){return new r.y(function(n){var r=new i.w,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}
1)),r})}},43382:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(38135),i=n(63788),o=n(98926),a=n(63181),u=n(43632),s=n(76042),c=n(10529);function l(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.L]}(e))return function(e,t){return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){var i=e[o.L]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if((0,s.t)(e))return function(e,t){return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if((0,c.z)(e))return(0,a.r)(e,t);if(function(e){return e&&"function"==typeof e[u.hZ]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.y(function(n){var r,o=new i.w;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(t.schedule(function(){r=e[u.hZ](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},15198:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var r=function(e){function t(e,n){var r;
vendor: 2,838 bytes, line 1
1return E(this,t),(r=m(this,t,[e,n])).scheduler=e,r.work=n,r.pending=!1,r}return _(t,e),C(t,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}])}(function(e){function t(e,n){return E(this,t),m(this,t)}return _(t,e),C(t,[{key:"schedule",value:function(e){return this}}])}(n(63788).w))},60867:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(99616),o=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.now;return E(this,t),(n=m(this,t,[e,function(){return t.delegate&&t.delegate!==g(n)?t.delegate.now():i()}])).actions=[],n.active=!1,n.scheduled=void 0,n}return _(t,e),C(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,r):i(t,"schedule",this,3)([e,n,r])}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}])}(r.b)},12156:function(e,t,n){"use strict";n.d(t,{r:function(){return a},Z:function(){return o}});var r=n(15198),o=new(function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}}}])}(n(60867).v))(function(e){function t(e,n){var r;
1return E(this,t),(r=m(this,t,[e,n])).scheduler=e,r.work=n,r}return _(t,e),C(t,[{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(t,"requestAsyncId",this,3)([e,n,r]):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(t,"recycleAsyncId",this,3)([e,n,r]);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}}])}(r.o)),a=o},31808:function(e,t,n){"use strict";n.d(t,{e:function(){return h},E:function(){return f}});var r=1,o=Promise.resolve(),a={};function u(e){return e in a&&(delete a[e],!0)}var s=function(e){var t=r++;return a[t]=!0,o.then(function(){return u(t)&&e()}),t},c=function(e){u(e)},l=n(15198),f=new(function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}}}])}(n(60867).v))(function(e){function t(e,n){var r;
1return E(this,t),(r=m(this,t,[e,n])).scheduler=e,r.work=n,r}return _(t,e),C(t,[{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(t,"requestAsyncId",this,3)([e,n,r]):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(t,"recycleAsyncId",this,3)([e,n,r]);0===e.actions.length&&(c(n),e.scheduled=void 0)}}])}(l.o)),h=f},51222:function(e,t,n){"use strict";n.d(t,{z:function(){return i},P:function(){return o}});var r=n(15198),i=new(n(60867).v)(r.o),o=i},91786:function(e,t,n){"use strict";n.d(t,{c:function(){return a},N:function(){return o}});var r=n(15198),o=new(function(e){function t(){return E(this,t),m(this,t,arguments)}return _(t,e),C(t)}(n(60867).v))(function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e,n])).scheduler=e,r.work=n,r}return _(t,e),C(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?i(t,"schedule",this,3)([e,n]):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?i(t,"execute",this,3)([e,n]):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?i(t,"requestAsyncId",this,3)([e,n,r]):e.flush(this)}}])}(r.o)),a=o},43632:function(e,t,n){"use strict";n.d(t,{hZ:function(){return r}});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},98926:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7157:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},46918:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},38614:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},69150:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},52698:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},4303:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},38679:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(59623);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}},2225:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return r}})},61371:function(e,t,n){"use strict";function r(e){return e}n.d(t,{y:function(){return r}})},11150:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},10529:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},39366:function(e,t,n){"use strict";function r(e){return e instanceof Date&&!isNaN(+e)}n.d(t,{J:function(){return r}})},76746:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,{m:function(){return r}})},55826:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(11150);function i(e){return!(0,r.k)(e)&&e-parseFloat(e)+1>=0}},46212:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return r}})},33972:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(38135);function i(e){return!!e&&(e instanceof r.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},76042:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return r}})},66232:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return r}})},16153:function(e,t,n){"use strict";function r(){}n.d(t,{Z:function(){return r}})},35754:function(e,t,n){"use strict";function r(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,{f:function(){return r}})},5469:function(e,t,n){"use strict";n.d(t,{z:function(){return i},U:function(){return o}});var r=n(61371);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(t)}function o(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},46467:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(11156),i=n(2225),o=n(43632),a=n(98926),u=n(10529),s=n(76042),c=n(46212),l=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,u.z)(e))return(0,r.V)(e);if((0,s.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);
1var t="You provided ".concat((0,c.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},11156:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},91500:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t)).parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return _(t,e),C(t,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}])}(n(59623).L),i=n(46467),o=n(38135);function a(e,t,n,a){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r(e,n,a);if(!u.closed)return t instanceof o.y?t.subscribe(u):(0,i.s)(t)(u)}},65131:function(e,t,n){"use strict";n.r(t),n.d(t,{audit:function(){return r.U},auditTime:function(){return o.e},buffer:function(){return u},bufferCount:function(){return h},bufferTime:function(){return w},bufferToggle:function(){return P},bufferWhen:function(){return N},catchError:function(){return B.K},combineAll:function(){return V.c},combineLatest:function(){return q},concat:function(){return G},concatAll:function(){return K.u},concatMap:function(){return Y.b},concatMapTo:function(){return $},count:function(){return Z},debounce:function(){return J.D},debounceTime:function(){return ee.b},defaultIfEmpty:function(){return te.d},delay:function(){return ne.g},delayWhen:function(){return ie},dematerialize:function(){return ce.D},distinct:function(){return le},distinctUntilChanged:function(){return de.x},distinctUntilKeyChanged:function(){return pe},elementAt:function(){return be},endWith:function(){return _e},every:function(){return xe},exhaust:function(){return Se},exhaustMap:function(){return Oe.z},expand:function(){return De},filter:function(){return ye.h},finalize:function(){return Me.x},find:function(){return Pe},findIndex:function(){return Ne},first:function(){return je.P},flatMap:function(){return et.VS},groupBy:function(){return Le.v},ignoreElements:function(){return Be.l},isEmpty:function(){return Ve},last:function(){return ze.Z},map:function(){return qe.U},mapTo:function(){return He},materialize:function(){return Ye.i},max:function(){return Ze},merge:function(){return Xe},mergeAll:function(){return Je.J},mergeMap:function(){return et.zg},mergeMapTo:function(){return tt},mergeScan:function(){return nt},min:function(){return ot},multicast:function(){return at.O},observeOn:function(){return ut.QV},onErrorResumeNext:function(){return st},pairwise:function(){return ft.G},partition:function(){return dt},pluck:function(){return pt.j},publish:function(){return yt},publishBehavior:function(){return gt},publishLast:function(){return wt},publishReplay:function(){return xt},race:function(){return Ct},reduce:function(){return $e.u},refCount:function(){return Lt.x},repeat:function(){return Et},repeatWhen:function(){return Dt},retry:function(){return Mt},retryWhen:function(){return Ft},sample:function(){return Bt},sampleTime:function(){return Ut},scan:function(){return Gt.R},sequenceEqual:function(){return Kt},share:function(){return Qt.B},shareReplay:function(){return Xt.d},single:function(){return en},skip:function(){return rn.T},skipLast:function(){return on},skipUntil:function(){return sn},skipWhile:function(){return fn},startWith:function(){return pn.O},subscribeOn:function(){return gn},switchAll:function(){return xn},switchMap:function(){return wn.w},switchMapTo:function(){return kn},take:function(){return ge.q},takeLast:function(){return Cn.h},takeUntil:function(){return Sn.R},takeWhile:function(){return En.o},tap:function(){return An.b},throttle:function(){return On.P},throttleTime:function(){return Dn.p},throwIfEmpty:function(){return me.T},timeInterval:function(){return Tn},timeout:function(){return Pn.V},timeoutWith:function(){return Rn.L},timestamp:function(){return Fn},toArray:function(){return jn.q},window:function(){return Ln},windowCount:function(){return Wn},windowTime:function(){return qn},windowToggle:function(){return Qn},windowWhen:function(){return er},withLatestFrom:function(){return rr.M},zip:function(){return or},zipAll:function(){return ar}});var r=n(11620),o=n(79831),a=n(82303);function u(e){return function(t){return t.lift(new s(e))}}var s=function(){return C(function e(t){E(this,e),this.closingNotifier=t},[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.closingNotifier))}}])}(),l=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).buffer=[],r.add((0,a.ft)(n,new a.IY(g(r)))),r}return _(t,e),C(t,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"notifyNext",value:function(){var e=this.buffer;this.buffer=[],this.destination.next(e)}}])}(a.Ds),f=n(59623);function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return n.lift(new d(e,t))}}var d=function(){return C(function e(t,n){E(this,e),this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?v:p},[{key:"call",value:function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}])}(),p=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).bufferSize=n,r.buffer=[],r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}},{key:"_complete",value:function(){var e=this.buffer;e.length>0&&this.destination.next(e),i(t,"_complete",this,3)([])}}])}(f.L),v=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}i(t,"_complete",this,3)([])}}])}(f.L),y=n(51222),b=n(66232);function w(e){var t=arguments.length,n=y.P;(0,b.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new x(e,r,i,n))}}var x=function(){return C(function e(t,n,r,i){E(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler
1=i},[{key:"call",value:function(e,t){return t.subscribe(new S(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}])}(),k=C(function e(){E(this,e),this.buffer=[]}),S=function(e){function t(e,n,r,i,o){var a;E(this,t),(a=m(this,t,[e])).bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var u=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly)a.add(u.closeAction=o.schedule(A,n,{subscriber:a,context:u,bufferTimeSpan:n}));else{var s={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(u.closeAction=o.schedule(D,n,{subscriber:a,context:u})),a.add(o.schedule(O,r,s))}return a}return _(t,e),C(t,[{key:"_next",value:function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)}},{key:"_error",value:function(e){this.contexts.length=0,i(t,"_error",this,3)([e])}},{key:"_complete",value:function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}i(t,"_complete",this,3)([])}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(A,n,{subscriber:this,context:e,bufferTimeSpan:n}))}}},{key:"openContext",value:function(){var e=new k;return this.contexts.push(e),e}},{key:"closeContext",value:function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}])}(f.L);function A(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function O(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(D,n,{subscriber:r,context:o})),this.schedule(e,t))}function D(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var I=n(63788),T=n(91500),M=n(89225);function P(e,t){return function(n){return n.lift(new R(e,t))}}var R=function(){return C(function e(t,n){E(this,e),this.openings=t,this.closingSelector=n},[{key:"call",value:function(e,t){return t.subscribe(new F(e,this.openings,this.closingSelector))}}])}(),F=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).closingSelector=r,i.contexts=[],i.add((0,T.D)(g(i),n)),i}return _(t,e),C(t,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)}},{key:"_error",value:function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,i(t,"_error",this,3)([e])}},{key:"_complete",value:function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,i(t,"_complete",this,3)([])}},{key:"notifyNext",value:function(e,t){e?this.closeBuffer(e):this.openBuffer(t)}},{key:"notifyComplete",value:function(e){this.closeBuffer(e.context)}},{key:"openBuffer",value:function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}}},{key:"closeBuffer",value:function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}},{key:"trySubscribe",value:function(e){var t=this.contexts,n=new I.w,r={buffer:[],subscription:n};t.push(r);var i=(0,T.D)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}])}(M.L);function N(e){return function(t){return t.lift(new j(e))}}var j=function(){return C(function e(t){E(this,e),this.closingSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.closingSelector))}}])}(),L=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return _(t,e),C(t,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"_complete",value:function(){var e=this.buffer;e&&this.destination.next(e),i(t,"_complete",this,3)([])}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{var n;e=(0,this.closingSelector)()}catch(n){return this.error(n)}t=new I.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,a.ft)(e,new a.IY(this))),this.subscribing=!1}}])}(a.Ds),B=n(58267),V=n(6043),W=n(11150),U=n(20820),z=n(69556);function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&(0,W.k)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,z.D)([e].concat(c(t))),new U.Ms(r))}}var H=n(69557);function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(H.z.apply(void 0,[e].concat(t)))}}var K=n(87685),Y=n(23021);function $(e,t){return(0,Y.b)(function(){return e},t)}function Z(e){return function(t){return t.lift(new Q(e,t))}}var Q=function(){return C(function e(t,n){E(this,e),this.predicate=t,this.source=n},[{key:"call",value:function(e,t){return t.subscribe(new X(e,this.predicate,this.source))}}])}(),X=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).predicate=n,i.source=r,i.count=0,i.index=0,i}return _(t,e),C(t,[{key:"_next",value:function(e){this.predicate?this._tryPredicate(e):this.count++}},{key:"_tryPredicate",value:function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}])}(f.L),J=n(48995),ee=n(50851),te=n(65724),ne=n(40673),re=n(38135);function ie(e,t){return t?function(n){return new ue(n,t).lift(new oe(e))}:function(t){return t.lift(new oe(e))}}var oe=function(){return C(function e(t){E(this,e),this.delayDurationSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new ae(e,this.delayDurationSelector))}}])}(),ae=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return _(t,e),C(t,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}},{key:"notifyError",value:function(e,t){this._error(e)}},{key:"notifyComplete",value:function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}},{key:"_next",value:function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}},{key:"tryDelay",value:function(e,t){var n=(0,T.D)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}])}(M.L),ue=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).source=e,r.subscriptionDelay=n,r}return _(t,e),C(t,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new se(e,this.source))}}])}(re.y),se=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t)).parent=e,r.source=n,r.sourceSubscribed=!1,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.subscribeToSource()}},{key:"_error",value:function(e){this.unsubscribe(),this.parent.error(e)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}])}(f.L),ce=n(14358);function le(e,t){return function(n){return n.lift(new fe(e,t))}}var fe=function(){return C(function e(t,n){E(this,e),this.keySelector=t,this.flushes=n},[{key:"call",value:function(e,t){return t.subscribe(new he(e,this.keySelector,this.flushes))}}])}(),he=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).keySelector=n,i.values=new Set,r&&i.add((0,a.ft)(r,new a.IY(g(i)))),i}return _(t,e),C(t,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"_next",value:function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
1},{key:"_useKeySelector",value:function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}},{key:"_finalizeNext",value:function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))}}])}(a.Ds),de=n(73916);function pe(e,t){return(0,de.x)(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var ve=n(46918),ye=n(86243),me=n(36350),ge=n(8355);function be(e,t){if(e<0)throw new ve.W;var n=arguments.length>=2;return function(r){return r.pipe((0,ye.h)(function(t,n){return n===e}),(0,ge.q)(1),n?(0,te.d)(t):(0,me.T)(function(){return new ve.W}))}}var we=n(13486);function _e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return(0,H.z)(e,we.of.apply(void 0,t))}}function xe(e,t){return function(n){return n.lift(new ke(e,t,n))}}var ke=function(){return C(function e(t,n,r){E(this,e),this.predicate=t,this.thisArg=n,this.source=r},[{key:"call",value:function(e,t){return t.subscribe(new Ce(e,this.predicate,this.thisArg,this.source))}}])}(),Ce=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e])).predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||g(o),o}return _(t,e),C(t,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}])}(f.L);function Se(){return function(e){return e.lift(new Ee)}}var Ee=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new Ae(e))}}])}(),Ae=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).hasCompleted=!1,n.hasSubscription=!1,n}return _(t,e),C(t,[{key:"_next",value:function(e){this.hasSubscription||(this.hasSubscription=!0,this.add((0,a.ft)(e,new a.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}])}(a.Ds),Oe=n(64793);function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Ie(e,t,n))}}var Ie=function(){return C(function e(t,n,r){E(this,e),this.project=t,this.concurrent=n,this.scheduler=r},[{key:"call",value:function(e,t){return t.subscribe(new Te(e,this.project,this.concurrent,this.scheduler))}}])}(),Te=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e])).project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return _(t,e),C(t,[{key:"_next",value:function(e){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(e);try{var i,o=(0,this.project)(e,r);this.scheduler?this.destination.add(this.scheduler.schedule(t.dispatch,0,{subscriber:this,result:o,value:e,index:r})):this.subscribeToProjection(o,e,r)}catch(i){n.error(i)}}else this.buffer.push(e)}}},{key:"subscribeToProjection",value:function(e,t,n){this.active++,this.destination.add((0,a.ft)(e,new a.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this._next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)}}])}(a.Ds),Me=n(50724);function Pe(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Re(e,n,!1,t))}}var Re=function(){return C(function e(t,n,r,i){E(this,e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i},[{key:"call",value:function(e,t){return t.subscribe(new Fe(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}])}(),Fe=function(e){function t(e,n,r,i,o){var a;return E(this,t),(a=m(this,t,[e])).predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return _(t,e),C(t,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()}},{key:"_next",value:function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}])}(f.L);function Ne(e,t){return function(n){return n.lift(new Re(e,n,!0,t))}}var je=n(6650),Le=n(59413),Be=n(63553);function Ve(){return function(e){return e.lift(new We)}}var We=function(){return C(function e(){E(this,e)},[{key:"call",value:function(e,t){return t.subscribe(new Ue(e))}}])}(),Ue=function(e){function t(e){return E(this,t),m(this,t,[e])}return _(t,e),C(t,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"_next",value:function(e){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}])}(f.L),ze=n(55536),qe=n(39417);function He(e){return function(t){return t.lift(new Ge(e))}}var Ge=function(){return C(function e(t){E(this,e),this.value=t},[{key:"call",value:function(e,t){return t.subscribe(new Ke(e,this.value))}}])}(),Ke=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).value=n,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.destination.next(this.value)}}])}(f.L),Ye=n(54060),$e=n(67362);function Ze(e){return(0,$e.u)("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var Qe=n(42793);function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(Qe.T.apply(void 0,[e].concat(t)))}}var Je=n(87402),et=n(82754);function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?(0,et.zg)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,et.zg)(function(){return e},n))}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(r){return r.lift(new rt(e,t,n))}}var rt=function(){return C(function e(t,n,r){E(this,e),this.accumulator=t,this.seed=n,this.concurrent=r},[{key:"call",value:function(e,t){return t.subscribe(new it(e,this.accumulator,this.seed,this.concurrent))}}])}(),it=function(e){function t(e,n,r,i){var o;return E(this,t),(o=m(this,t,[e])).accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return _(t,e),C(t,[{key:"_next",value:function(e){if(this.active<this.concurrent){var t,n=this.index++,r=this.destination;try{var i;t=(0,this.accumulator)(this.acc,e,n)}catch(i){return r.error(i)}this.active++,this._innerSub(t)}else this.buffer.push(e)}},{key:"_innerSub",value:function(e){var t=new a.IY(this),n=this.destination;n.add(t);var r=(0,a.ft)(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}])}(a.Ds);function ot(e){return(0,$e.u)("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}var at=n(21259),ut=n(50263);function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&(0,W.k)(t[0])&&(t=t[0]),function(e){return e.lift(new ct(t))}}var ct=function(){return C(function e(t){E(this,e),this.nextSources=t},[{key:"call",value:function(e,t){return t.subscribe(new lt(e,this.nextSources))}}])}(),lt=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).destination=e,r.nextSources=n,r}return _(t,e),C(t,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(e){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var e=this.nextSources.shift();if(e){var t=new a.IY(this),n=this.destination;n.add(t);var r=(0,a.ft)(e,t);r!==t&&n.add(r)}else this.destination.complete()}}])}(a.Ds),ft=n(91624),ht=n(35754);function dt(e,t){return function(n){return[(0,ye.h)(e,t)(n),(0,ye.h)((0,ht.f)(e,t))(n)]}}var pt=n(20354),vt=n(93386);function yt(e){return e?(0,at.O)(function(){return new vt.xQ},e):(0,at.O)(new vt.xQ)}var mt=n(31530);function gt(e){return function(t){return(0,at.O)(new mt.X(e))(t)}}var bt=n(21107);function wt(){return function(e){return(0,at.O)(new bt.c)(e)}}var _t=n(54550);function xt(e,t,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new _t.t(e,t,r);return function(e){return(0,at.O)(function(){return o},i)(e)}}var kt=n(62470);function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return 1===t.length&&(0,W.k)(t[0])&&(t=t[0]),e.lift.call(kt.S3.apply(void 0,[e].concat(c(t))))}}var St=n(33393);function Et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?(0,St.c)():t.lift(new At(e<0?-1:e-1,t))}}var At=function(){return C(function e(t,n){E(this,e),this.count=t,this.source=n},[{key:"call",value:function(e,t){return t.subscribe(new Ot(e,this.count,this.source))}}])}(),Ot=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).count=n,i.source=r,i}
1return _(t,e),C(t,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return i(t,"complete",this,3)([]);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}])}(f.L);function Dt(e){return function(t){return t.lift(new It(e))}}var It=function(){return C(function e(t){E(this,e),this.notifier=t},[{key:"call",value:function(e,t){return t.subscribe(new Tt(e,this.notifier,t))}}])}(),Tt=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return _(t,e),C(t,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return i(t,"complete",this,3)([])}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return i(t,"complete",this,3)([]);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._unsubscribe;return this._unsubscribe=null,i(t,"_unsubscribeAndRecycle",this,3)([]),this._unsubscribe=e,this}},{key:"subscribeToRetries",value:function(){var e;this.notifications=new vt.xQ;try{e=(0,this.notifier)(this.notifications)}catch(n){return i(t,"complete",this,3)([])}this.retries=e,this.retriesSubscription=(0,a.ft)(e,new a.IY(this))}}])}(a.Ds);function Mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Pt(e,t))}}var Pt=function(){return C(function e(t,n){E(this,e),this.count=t,this.source=n},[{key:"call",value:function(e,t){return t.subscribe(new Rt(e,this.count,this.source))}}])}(),Rt=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).count=n,i.source=r,i}return _(t,e),C(t,[{key:"error",value:function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return i(t,"error",this,3)([e]);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}])}(f.L);function Ft(e){return function(t){return t.lift(new Nt(e,t))}}var Nt=function(){return C(function e(t,n){E(this,e),this.notifier=t,this.source=n},[{key:"call",value:function(e,t){return t.subscribe(new jt(e,this.notifier,this.source))}}])}(),jt=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).notifier=n,i.source=r,i}return _(t,e),C(t,[{key:"error",value:function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new vt.xQ;try{var u;r=(0,this.notifier)(n)}catch(u){return i(t,"error",this,3)([u])}o=(0,a.ft)(r,new a.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}}},{key:"_unsubscribe",value:function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}])}(a.Ds),Lt=n(26947);function Bt(e){return function(t){return t.lift(new Vt(e))}}var Vt=function(){return C(function e(t){E(this,e),this.notifier=t},[{key:"call",value:function(e,t){var n=new Wt(e),r=t.subscribe(n);return r.add((0,a.ft)(this.notifier,new a.IY(n))),r}}])}(),Wt=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments)).hasValue=!1,e}return _(t,e),C(t,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}])}(a.Ds);function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.P;return function(n){return n.lift(new zt(e,t))}}var zt=function(){return C(function e(t,n){E(this,e),this.period=t,this.scheduler
1=n},[{key:"call",value:function(e,t){return t.subscribe(new qt(e,this.period,this.scheduler))}}])}(),qt=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Ht,n,{subscriber:g(i),period:n})),i}return _(t,e),C(t,[{key:"_next",value:function(e){this.lastValue=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}])}(f.L);function Ht(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}var Gt=n(26362);function Kt(e,t){return function(n){return n.lift(new Yt(e,t))}}var Yt=function(){return C(function e(t,n){E(this,e),this.compareTo=t,this.comparator=n},[{key:"call",value:function(e,t){return t.subscribe(new $t(e,this.compareTo,this.comparator))}}])}(),$t=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Zt(e,g(i)))),i}return _(t,e),C(t,[{key:"_next",value:function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(a){this.destination.error(a)}o||this.emit(!1)}}},{key:"emit",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"nextB",value:function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}])}(f.L),Zt=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).parent=n,r}return _(t,e),C(t,[{key:"_next",value:function(e){this.parent.nextB(e)}},{key:"_error",value:function(e){this.parent.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}])}(f.L),Qt=n(33316),Xt=n(16710),Jt=n(38614);function en(e){return function(t){return t.lift(new tn(e,t))}}var tn=function(){return C(function e(t,n){E(this,e),this.predicate=t,this.source=n},[{key:"call",value:function(e,t){return t.subscribe(new nn(e,this.predicate,this.source))}}])}(),nn=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return _(t,e),C(t,[{key:"applySingleValue",value:function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}},{key:"_next",value:function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}},{key:"tryNext",value:function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Jt.K)}}])}(f.L),rn=n(20777);function on(e){return function(t){return t.lift(new an(e))}}var an=function(){return C(function e(t){if(E(this,e),this._skipCount=t,this._skipCount<0)throw new ve.W},[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new f.L(e):new un(e,this._skipCount))}}])}(),un=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e]))._skipCount=n,r._count=0,r._ring=new Array(n),r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var r=n%t,i=this._ring,o=i[r];i[r]=e,this.destination.next(o)}}}])}(f.L);function sn(e){return function(t){return t.lift(new cn(e))}}var cn=function(){return C(function e(t){E(this,e),this.notifier=t},[{key:"call",value:function(e,t){return t.subscribe(new ln(e,this.notifier))}}])}(),ln=function(e){function t(e,n){var r;E(this,t),(r=m(this,t,[e])).hasValue=!1;var i=new a.IY(r);r.add(i),r.innerSubscription=i;var o=(0,a.ft)(n,i);return o!==i&&(r.add(o),r.innerSubscription=o),r}return _(t,e),C(t,[{key:"_next",value:function(e){this.hasValue&&i(t,"_next",this,3)([e])}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}])}(a.Ds);function fn(e){return function(t){return t.lift(new hn(e))}}var hn=function(){return C(function e(t){E(this,e),this.predicate=t},[{key:"call",value:function(e,t){return t.subscribe(new dn(e,this.predicate))}}])}(),dn=function(e){function t(e,n){var r;
1return E(this,t),(r=m(this,t,[e])).predicate=n,r.skipping=!0,r.index=0,r}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}},{key:"tryCallPredicate",value:function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}])}(f.L),pn=n(5790),vn=n(31808),yn=n(55826),mn=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vn.e;return E(this,t),(n=m(this,t)).source=e,n.delayTime=r,n.scheduler=i,(!(0,yn.k)(r)||r<0)&&(n.delayTime=0),(!i||"function"!=typeof i.schedule)&&(n.scheduler=vn.e),n}return _(t,e),C(t,[{key:"_subscribe",value:function(e){return this.scheduler.schedule(t.dispatch,this.delayTime,{source:this.source,subscriber:e})}}],[{key:"create",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vn.e;return new t(e,n,r)}},{key:"dispatch",value:function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))}}])}(re.y);function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new bn(e,t))}}var bn=function(){return C(function e(t,n){E(this,e),this.scheduler=t,this.delay=n},[{key:"call",value:function(e,t){return new mn(t,this.delay,this.scheduler).subscribe(e)}}])}(),wn=n(10480),_n=n(61371);function xn(){return(0,wn.w)(_n.y)}function kn(e,t){return t?(0,wn.w)(function(){return e},t):(0,wn.w)(function(){return e})}var Cn=n(3003),Sn=n(30105),En=n(9085),An=n(65426),On=n(49868),Dn=n(86065),In=n(24141);function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.P;return function(t){return(0,In.P)(function(){return t.pipe((0,Gt.R)(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),(0,qe.U)(function(e){var t=e.current,n=e.last,r=e.value;return new Mn(r,t-n)}))})}}var Mn=C(function e(t,n){E(this,e),this.value=t,this.interval=n}),Pn=n(46306),Rn=n(4064);function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.P;return(0,qe.U)(function(t){return new Nn(t,e.now())})}var Nn=C(function e(t,n){E(this,e),this.value=t,this.timestamp=n}),jn=n(30405);function Ln(e){return function(t){return t.lift(new Bn(e))}}var Bn=function(){return C(function e(t){E(this,e),this.windowBoundaries=t},[{key:"call",value:function(e,t){var n=new Vn(e),r=t.subscribe(n);return r.closed||n.add((0,a.ft)(this.windowBoundaries,new a.IY(n))),r}}])}(),Vn=function(e){function t(e){var n;return E(this,t),(n=m(this,t,[e])).window=new vt.xQ,e.next(n.window),n}return _(t,e),C(t,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new vt.xQ;t.next(n)}}])}(a.Ds);function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Un(e,t))}}var Un=function(){return C(function e(t,n){E(this,e),this.windowSize=t,this.startWindowEvery=n},[{key:"call",value:function(e,t){return t.subscribe(new zn(e,this.windowSize,this.startWindowEvery))}}])}(),zn=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new vt.xQ],i.count=0,e.next(i.windows[0]),i}return _(t,e),C(t,[{key:"_next",value:function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(e);var u=this.count-r+1;if(u>=0&&u%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var s=new vt.xQ;i.push(s),n.next(s)}}},{key:"_error",value:function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}])}(f.L);function qn(e){var t=y.P,n=null,r=Number.POSITIVE_INFINITY;return(0,b.K)(arguments[3])&&(t=arguments[3]),(0,b.K)(arguments[2])?t=arguments[2]:(0,yn.k)(arguments[2])&&(r=Number(arguments[2])),(0,b.K)(arguments[1])?t=arguments[1]:(0,yn.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Hn(e,n,r,t))}}var Hn=function(){return C(function e(t,n,r,i){E(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler
1=i},[{key:"call",value:function(e,t){return t.subscribe(new Kn(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}])}(),Gn=function(e){function t(){var e;return E(this,t),(e=m(this,t,arguments))._numberOfNextedValues=0,e}return _(t,e),C(t,[{key:"next",value:function(e){this._numberOfNextedValues++,i(t,"next",this,3)([e])}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}])}(vt.xQ),Kn=function(e){function t(e,n,r,i,o){var a;E(this,t),(a=m(this,t,[e])).destination=e,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var u=a.openWindow();if(null!==r&&r>=0){var s={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(Zn,n,{subscriber:a,window:u,context:null})),a.add(o.schedule($n,r,s))}else a.add(o.schedule(Yn,n,{subscriber:a,window:u,windowTimeSpan:n}));return a}return _(t,e),C(t,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];i.closed||(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}}},{key:"_error",value:function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var e=new Gn;return this.windows.push(e),this.destination.next(e),e}},{key:"closeWindow",value:function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)}}])}(f.L);function Yn(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function $n(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null};a.subscription=r.schedule(Zn,t,{subscriber:n,window:o,context:a}),this.add(a.subscription),this.schedule(e,i)}function Zn(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function Qn(e,t){return function(n){return n.lift(new Xn(e,t))}}var Xn=function(){return C(function e(t,n){E(this,e),this.openings=t,this.closingSelector=n},[{key:"call",value:function(e,t){return t.subscribe(new Jn(e,this.openings,this.closingSelector))}}])}(),Jn=function(e){function t(e,n,r){var i;return E(this,t),(i=m(this,t,[e])).openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,T.D)(g(i),n,n)),i}return _(t,e),C(t,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)}},{key:"_error",value:function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,o=-1;++o<r;){var a=n[o];a.window.error(e),a.subscription.unsubscribe()}i(t,"_error",this,3)([e])}},{key:"_complete",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var o=e[r];o.window.complete(),o.subscription.unsubscribe()}i(t,"_complete",this,3)([])}},{key:"_unsubscribe",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}}},{key:"notifyNext",value:function(e,t,n,r,i){if(e===this.openings){var o;try{var a;o=(0,this.closingSelector)(t)}catch(a){return this.error(a)}var u=new vt.xQ,s=new I.w,c={window:u,subscription:s};this.contexts.push(c);var l=(0,T.D)(this,o,c);l.closed?this.closeWindow(this.contexts.length-1):(l.context=c,s.add(l)),this.destination.next(u)}else this.closeWindow(this.contexts.indexOf(e))}},{key:"notifyError",value:function(e){this.error(e)}},{key:"notifyComplete",value:function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}},{key:"closeWindow",value:function(e){if(-1!==e){var t=this.contexts,n=t[e],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}}}])}(M.L);function er(e){return function(t){return t.lift(new tr(e))}}var tr=function(){return C(function e(t){E(this,e),this.closingSelector=t},[{key:"call",value:function(e,t){return t.subscribe(new nr(e,this.closingSelector))}}])}(),nr=function(e){function t(e,n){var r;return E(this,t),(r=m(this,t,[e])).destination=e,r.closingSelector=n,r.openWindow(),r}return _(t,e),C(t,[{key:"notifyNext",value:function(e,t,n,r,i){this.openWindow(i)}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(e){this.openWindow(e)}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,r=this.window=new vt.xQ;this.destination.next(r);try{var i=this.closingSelector;n=i()}catch(i){return this.destination.error(i),void this.window.error(i)}this.add(this.closingNotification=(0,T.D)(this,n))}}])}(M.L),rr=n(57746),ir=n(18719);function or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(ir.$R.apply(void 0,[e].concat(t)))}}function ar(e){return function(t){return t.lift(new ir.mx(e))}}},15772:function(e,t,n){"use strict";n(19010)},92119:function(e,t,n){"use strict";n(38004)},28025:function(e,t,n){"use strict";n(42108)},17958:function(e,t,n){"use strict";var r=n(87044),i=n(71571),o=n(16900)(),a=n(36502),u=n(56315),s=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},56794:function(e,t,n){"use strict";var r=n(85401),i=n(56315),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}
1(e,t,n)}};return t}},84550:function(e,t,n){"use strict";var r=n(87044),i=n(76124),o=n(85401),a=n(56315),u=r("%Map%",!0),s=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!u&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=f(e,t);return 0===h(e)&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,n){e||(e=new u),c(e,t,n)}};return t}},83629:function(e,t,n){"use strict";var r=n(87044),i=n(76124),o=n(85401),a=n(84550),u=n(56315),s=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new u("Side channel does not contain "+o(e))},delete:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),l(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},13905:function(e,t,n){"use strict";var r=n(56315),i=n(85401),o=n(56794),a=n(84550),u=n(83629)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=u()),e.set(t,n)}};return t}},50983:function(e,t,n){var r;!function(i,o){"use strict";var a="function",u="undefined",s="object",c="string",l="major",f="model",h="name",d="type",p="vendor",v="version",y="architecture",m="console",g="mobile",b="tablet",w="smarttv",_="wearable",x="embedded",k="Amazon",C="Apple",S="BlackBerry",E="Browser",A="Chrome",O="Firefox",D="Google",I="Microsoft",T="Motorola",M="Opera",P="Samsung",R="Sony",F="Xiaomi",N="Zebra",j="Facebook",L="Chromium OS",B=" Browser",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===c&&-1!==U(t).indexOf(U(e))},U=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===u?e:e.substring(0,500)},q=function(e,t){for(var n,r,i,u,c,l,f=0;f<t.length&&!c;){var h=t[f],d=t[f+1];for(n=r=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(i=0;i<d.length;i++)l=c[++r],typeof(u=d[i])===s&&u.length>0?2===u.length?this[u[0]]=typeof u[1]==a?u[1].call(this,l):u[1]:3===u.length?this[u[0]]=typeof u[1]!==a||u[1].exec&&u[1].test?l?l.replace(u[1],u[2]):o:l?u[1].call(this,l,u[2]):o:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):o):this[u]=l||o;f+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?o:n}else if(W(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[h,M+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[h,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[h,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[h,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+E],v],[/\bfocus\/([\w\.]+)/i],[v,[h,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[v,[h,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360"+B]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+B],v],[/samsungbrowser\/([\w\.]+)/i],[v,[h,P+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,j],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.
vendor: 5,712 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,A+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/(wolvic)\/([\w\.]+)/i],[h,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[h,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,U]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",U]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,U]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[p,P],[d,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[p,P],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[p,C],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[p,C],[d,b]],[/(macintosh);/i],[f,[p,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[p,"Sharp"],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[p,"Huawei"],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[p,"Huawei"],[d,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[f,/_/g," "],[p,F],[d,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[p,F],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[p,"OPPO"],[d,g]],[/\b(opd2\d{3}a?) bui/i],[f,[p,"OPPO"],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[p,"Vivo"],[d,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[p,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[p,T],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[p,T],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[p,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[p,"LG"],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[p,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[p,"Nokia"],[d,g]],[/(pixel c)\b/i],[f,[p,D],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[p,D],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[p,R],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[p,R],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[p,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[p,k],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[p,k],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[f,p,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[p,S],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[p,"ASUS"],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[p,"ASUS"],[d,g]],[/(nexus 9)/i],[f,[p,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[f,/_/g," "],[d,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[p,"TCL"],[d,b]],[/(itel) ((\w+))/i],[[p,U],f,[d,H,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[p,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[p,"Meizu"],[d,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[p,"Ulefone"],[d,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[p,"Nothing"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 8,027 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,f,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,f,[d,b]],[/(surface duo)/i],[f,[p,I],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[p,"Fairphone"],[d,g]],[/(u304aa)/i],[f,[p,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[f,[p,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[f,[p,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[p,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[p,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[p,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[f,[p,"NuVision"],[d,b]],[/\b(k88) b/i],[f,[p,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[f,[p,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[f,[p,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[f,[p,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[f,[p,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],f,[d,b]],[/\b(ns-?\w{0,9}) b/i],[f,[p,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[p,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],f,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],f,[d,g]],[/\b(ph-1) /i],[f,[p,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[p,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[f,[p,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[f,[p,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[f,[p,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[p,f,[d,g]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[p,I],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[p,N],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[p,N],[d,g]],[/smart-tv.+(samsung)/i],[p,[d,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[p,P],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[d,w]],[/(apple) ?tv/i],[p,[f,C+" TV"],[d,w]],[/crkey/i],[[f,A+"cast"],[p,D],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[f,[p,k],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[p,"Sharp"],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[f,[p,R],[d,w]],[/(mitv-\w{5}) bui/i],[f,[p,F],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[p,f,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,z],[f,z],[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,f,[d,m]],[/droid.+; (shield) bui/i],[f,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[f,[p,R],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[p,I],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[f,[p,P],[d,_]],[/((pebble))app/i],[p,f,[d,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[p,C],[d,_]],[/droid.+; (glass) \d/i],[f,[p,D],[d,_]],[/droid.+; (wt63?0{2,3})\)/i],[f,[p,N],[d,_]],[/(quest( \d| pro)?)/i],[f,[p,j],[d,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,x]],[/(aeobc)\b/i],[f,[p,k],[d,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[v,H,G]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,H,G],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,L],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},Y=function(e,t){if(typeof e===s&&(t=e,e=o),!(this instanceof Y))return new Y(e,t).getResult();var n=typeof i!==u&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),m=n&&n.userAgentData?n.userAgentData:o,w=t?function(e,t){var n={};for(var r in e)n[r]=t[r]&&t[r].length%2==0?t[r].concat(e[r]):e[r];return n}(K,t):K,_=n&&n.userAgent==r;return this.getBrowser=function(){var e={};return e[h]=o,e[v]=o,q.call(e,r,w.browser),e[l]=function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o}(e[v]),_&&n&&n.brave&&typeof n.brave.isBrave==a&&(e[h]="Brave"),e},this.getCPU=function(){var e={};return e[y]=o,q.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[f]=o,e[d]=o,q.call(e,r,w.device),_&&!e[d]&&m&&m.mobile&&(e[d]=g),_&&"Macintosh"==e[f]&&n&&typeof n.standalone!==u&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[f]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[h]=o,e[v]=o,q.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[h]=o,e[v]=o,q.call(e,r,w.os),_&&!e[h]&&m&&m.platform&&"Unknown"!=m.platform&&(e[h]=m.platform.replace(/chrome os/i,L).replace(/macos/i,"Mac OS")),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?z(e,500):e,this},this.setUA(r),this};Y.VERSION="0.7.39",Y.BROWSER=V([h,v,l]),Y.CPU=V([y]),Y.DEVICE=V([f,p,d,m,g,w,b,_,x]),Y.ENGINE=Y.OS=V([h,v]),typeof t!==u?(e.exports&&(t=e.exports=Y),t.UAParser=Y):n.amdO?(r=(function(){return Y}).call(t,n,t,e))!==o&&(e.exports=r):typeof i!==u&&(i.UAParser=Y);var $=typeof i!==u&&(i.jQuery||i.Zepto);if($&&!$.ua){var Z=new Y;$.ua=Z.getResult(),$.ua.get=function(){return Z.getUA()},$.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"==typeof window?window:this)},10996:function(e,t,n){"use strict";var r=n(30315);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}
vendor: 7,016 bytes, line 1
1var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(s),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(95429);function g(e,t,n){if(e&&"object"==typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",s=e.split(a);s[0]=s[0].replace(/\\/g,"/");var g=e=s.join(a);if(g=g.trim(),!n&&1===e.split("#").length){var b=u.exec(g);if(b)return this.path=g,this.href=g,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(g);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,g=g.substr(w.length)}if(n||w||g.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===g.substr(0,2);x&&(!w||!v[w])&&(g=g.substr(2),this.slashes=!0)}if(!v[w]&&(x||w&&!y[w])){for(var k=-1,C=0;C<f.length;C++)-1!==(A=g.indexOf(f[C]))&&(-1===k||A<k)&&(k=A);var S,E;for(-1!==(E=-1===k?g.lastIndexOf("@"):g.lastIndexOf("@",k))&&(S=g.slice(0,E),g=g.slice(E+1),this.auth=decodeURIComponent(S)),k=-1,C=0;C<l.length;C++){var A;-1!==(A=g.indexOf(l[C]))&&(-1===k||A<k)&&(k=A)}-1===k&&(k=g.length),this.host=g.slice(0,k),g=g.slice(k),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var D=this.hostname.split(/\./),I=(C=0,D.length);C<I;C++){var T=D[C];if(T&&!T.match(h)){for(var M="",P=0,R=T.length;P<R;P++)T.charCodeAt(P)>127?M+="x":M+=T[P];if(!M.match(h)){var F=D.slice(0,C),N=D.slice(C+1),j=T.match(d);j&&(F.push(j[1]),N.unshift(j[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=F.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),O||(this.hostname=r.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!p[_])for(C=0,I=c.length;C<I;C++){var L=c[C];if(-1!==g.indexOf(L)){var B=encodeURIComponent(L);B===L&&(B=escape(L)),g=g.split(L).join(B)}}var V=g.indexOf("#");-1!==V&&(this.hash=g.substr(V),g=g.slice(0,V));var W=g.indexOf("?");return-1!==W?(this.search=g.substr(W),this.query=g.substr(W+1),t&&(this.query=m.parse(this.query)),g=g.slice(0,W)):t&&(this.search="",this.query={}),g&&(this.pathname=g),y[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(n[c]=e[c])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}return n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,(n.pathname||n.search)&&(n.path=(n.pathname||"")+(n.search||"")),n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var p=n.pathname&&"/"===n.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=m||p||n.host&&e.pathname,b=g,w=n.pathname&&n.pathname.split("/")||[],_=(d=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(_&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),g=g&&(""===d[0]||""===w[0])),m)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=d;else if(d.length)w||(w=[]),w.pop(),w=w.concat(d),n.search=e.search,n.query=e.query;else if(null!=e.search)return _&&(n.host=w.shift(),n.hostname=n.host,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,(null!==n.pathname||null!==n.search)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var x=w.slice(-1)[0],k=(n.host||e.host||w.length>1)&&("."===x||".."===x)||""===x,C=0,S=w.length;S>=0;S--)"."===(x=w[S])?w.splice(S,1):".."===x?(w.splice(S,1),C++):C&&(w.splice(S,1),C--);if(!g&&!b)for(;C--;C)w.unshift("..");g&&""!==w[0]&&(!w[0]||"/"!==w[0].charAt(0))&&w.unshift(""),k&&"/"!==w.join("/").substr(-1)&&w.push("");var E,A=""===w[0]||w[0]&&"/"===w[0].charAt(0);return _&&(n.hostname=A?"":w.length?w.shift():"",n.host=n.hostname,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname)),(g=g||n.host&&w.length)&&!A&&w.unshift(""),w.length>0?n.pathname=w.join("/"):(n.pathname=null,n.path=null),(null!==n.pathname||null!==n.search)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.Qc=g}
1,91212:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(e){return"string"==typeof e&&a.test(e)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},85572:function(e,t,n){"use strict";n.d(t,{ZT:function(){return i},pi:function(){return o},_T:function(){return a},gn:function(){return u},fM:function(){return s},w6:function(){return c},mG:function(){return l},Jh:function(){return f},pr:function(){return h}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){e.done?i(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function h(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}},36644:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function e(t){var n=t,r={}.toString.call(t).slice(8,-1);if("Set"==r)return new Set(c(t).map(function(t){return e(t)}));if("Map"==r)return new Map(c(t).map(function(t){return[e(t[0]),e(t[1])]}));if("Date"==r)return new Date(t.getTime());if("RegExp"==r)return RegExp(t.source,function(e){if("string"==typeof e.source.flags)return e.source.flags;var t=[];return e.global&&t.push("g"),e.ignoreCase&&t.push("i"),e.multiline&&t.push("m"),e.sticky&&t.push("y"),e.unicode&&t.push("u"),t.join("")}(t));if("Array"==r||"Object"==r)for(var i in n=Array.isArray(t)?[]:{},t)n[i]=e(t[i]);return n}},71388:function(e){"use strict";e.exports=JSON.parse('{"version":"2024b","zones":["Europe/London|LMT GMT BST BDST|1.f
10 -10 -20|01212121212121212121212121212121212121212121212121232323232321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-4VgnW.J 2KHdW.J Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|10e6"],"links":[],"countries":["GB|Europe/London","GG|Europe/London","IM|Europe/London","JE|Europe/London"]}')}}])}();
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.