-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain-es2015.23db720b47f4af5ea941.js
More file actions
1 lines (1 loc) · 416 KB
/
main-es2015.23db720b47f4af5ea941.js
File metadata and controls
1 lines (1 loc) · 416 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},yLV6:function(e,t,n){var r;!function(s,i,o,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),h=Math.round,d=Math.abs,f=Date.now;function p(e,t,n){return setTimeout(w(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=s.console&&(s.console.warn||s.console.log);return i&&i.call(s.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}return t}:Object.assign;var _=y((function(e,t,n){for(var r=Object.keys(t),s=0;s<r.length;)(!n||n&&void 0===e[r[s]])&&(e[r[s]]=t[r[s]]),s++;return e}),"extend","Use `assign`."),v=y((function(e,t){return _(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,s=t.prototype;(r=e.prototype=Object.create(s)).constructor=e,r._super=s,n&&l(r,n)}function w(e,t){return function(){return e.apply(t,arguments)}}function S(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function x(e,t){return void 0===e?t:e}function E(e,t,n){g(D(t),(function(t){e.addEventListener(t,n,!1)}))}function C(e,t,n){g(D(t),(function(t){e.removeEventListener(t,n,!1)}))}function T(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(e,t){return e.indexOf(t)>-1}function D(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function I(e){return Array.prototype.slice.call(e,0)}function N(e,t,n){for(var r=[],s=[],i=0;i<e.length;){var o=t?e[i][t]:e[i];A(s,o)<0&&r.push(e[i]),s[i]=o,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function R(e,t){for(var n,r,s=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+s:t)in e)return r;i++}}var O=1;function P(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||s}var M="ontouchstart"in s,F=void 0!==R(s,"PointerEvent"),L=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j=["x","y"],$=["clientX","clientY"];function V(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var r=n.pointers.length,s=n.changedPointers.length,i=1&t&&r-s==0,o=12&t&&r-s==0;n.isFirst=!!i,n.isFinal=!!o,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,s=r.length;n.firstInput||(n.firstInput=z(t)),s>1&&!n.firstMultiple?n.firstMultiple=z(t):1===s&&(n.firstMultiple=!1);var i=n.firstInput,o=n.firstMultiple,a=o?o.center:i.center,l=t.center=H(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Q(a,l),t.distance=q(a,l),function(e,t){var n=t.center,r=e.offsetDelta||{},s=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(s=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=s.x+(n.x-r.x),t.deltaY=s.y+(n.y-r.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var c,u,h=B(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,t.scale=o?(c=o.pointers,q((u=r)[0],u[1],$)/q(c[0],c[1],$)):1,t.rotation=o?function(e,t){return Q(t[1],t[0],$)+Q(e[1],e[0],$)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,s,i,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(a>25||void 0===o.velocity)){var l=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,u=B(a,l,c);r=u.x,s=u.y,n=d(u.x)>d(u.y)?u.x:u.y,i=W(l,c),e.lastInterval=t}else n=o.velocity,r=o.velocityX,s=o.velocityY,i=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=s,t.direction=i}(n,t);var p=e.element;T(t.srcEvent.target,p)&&(p=t.srcEvent.target),t.target=p}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function z(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,s=0;s<t;)n+=e[s].clientX,r+=e[s].clientY,s++;return{x:h(n/t),y:h(r/t)}}function B(e,t,n){return{x:t/e||0,y:n/e||0}}function W(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function q(e,t,n){n||(n=j);var r=t[n[0]]-e[n[0]],s=t[n[1]]-e[n[1]];return Math.sqrt(r*r+s*s)}function Q(e,t,n){return n||(n=j),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(P(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function Z(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,V.apply(this,arguments)}b(Z,V,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Y={2:"touch",3:"pen",4:"mouse",5:"kinect"},X="pointerdown",J="pointermove pointerup pointercancel";function ee(){this.evEl=X,this.evWin=J,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(X="MSPointerDown",J="MSPointerMove MSPointerUp MSPointerCancel"),b(ee,V,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),s=K[r],i=Y[e.pointerType]||e.pointerType,o="touch"==i,a=A(t,e.pointerId,"pointerId");1&s&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):12&s&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,s,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,V.apply(this,arguments)}function re(e,t){var n=I(e.touches),r=I(e.changedTouches);return 12&t&&(n=N(n.concat(r),"identifier",!0)),[n,r]}b(ne,V,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var se={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},V.apply(this,arguments)}function oe(e,t){var n=I(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var s,i,o=I(e.changedTouches),a=[],l=this.target;if(i=n.filter((function(e){return T(e.target,l)})),1===t)for(s=0;s<i.length;)r[i[s].identifier]=!0,s++;for(s=0;s<o.length;)r[o[s].identifier]&&a.push(o[s]),12&t&&delete r[o[s].identifier],s++;return a.length?[N(i.concat(a),"identifier",!0),a]:void 0}function ae(){V.apply(this,arguments);var e=w(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var s=this.lastTouches[r],i=Math.abs(t-s.x),o=Math.abs(n-s.y);if(i<=25&&o<=25)return!0}return!1}b(ie,V,{handler:function(e){var t=se[e.type],n=oe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}),b(ae,V,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)le.call(this,t,n);else if(r&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=R(u.style,"touchAction"),de=void 0!==he,fe=function(){if(!de)return!1;var e={},t=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||s.CSS.supports("touch-action",n)})),e}();function pe(e,t){this.manager=e,this.set(t)}function me(e){this.options=l({},this.defaults,e||{}),this.id=O++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ge(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ye(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function _e(e,t){var n=t.manager;return n?n.get(e):e}function ve(){me.apply(this,arguments)}function be(){ve.apply(this,arguments),this.pX=null,this.pY=null}function we(){ve.apply(this,arguments)}function Se(){me.apply(this,arguments),this._timer=null,this._input=null}function xe(){ve.apply(this,arguments)}function Ee(){ve.apply(this,arguments)}function Ce(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Te(e,t){return(t=t||{}).recognizers=x(t.recognizers,Te.defaults.preset),new ke(e,t)}function ke(e,t){var n;this.options=l({},Te.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(F?ee:L?ie:M?ae:Z))(n,U),this.touchAction=new pe(this,this.options.touchAction),De(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function De(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(s,i){n=R(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=s):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}pe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&fe[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(k(e,"none"))return"none";var t=k(e,"pan-x"),n=k(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":k(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,s=k(r,"none")&&!fe.none,i=k(r,"pan-y")&&!fe["pan-y"],o=k(r,"pan-x")&&!fe["pan-x"];if(s&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!o||!i)return s||i&&6&n||o&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}},me.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=_e(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)?this:(e=_e(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=_e(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=_e(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ge(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ge(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!S(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(ve,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,s=this.attrTest(e);return r&&(8&n||!s)?16|t:r||s?4&n?8|t:2&t?4|t:2:32}}),b(be,ve,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,s=e.direction,i=e.deltaX,o=e.deltaY;return s&t.direction||(6&t.direction?(s=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(s=0===o?1:o<0?8:16,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=s,n&&r>t.threshold&&s&t.direction},attrTest:function(e){return ve.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ye(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(we,ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),b(Se,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,s=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!s)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),b(xe,ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(Ee,ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return be.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ye(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Ce,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,s=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&s&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&i?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Te.VERSION="2.0.7",Te.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xe,{enable:!1}],[we,{enable:!1},["rotate"]],[Ee,{direction:6}],[be,{direction:6},["swipe"]],[Ce],[Ce,{event:"doubletap",taps:2},["tap"]],[Se]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ke.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,s=t.curRecognizer;(!s||s&&8&s.state)&&(s=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(e),!s&&14&n.state&&(s=t.curRecognizer=n),i++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return g(D(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return g(D(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&De(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Te,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:ke,Input:V,TouchAction:pe,TouchInput:ie,MouseInput:Z,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:ve,Tap:Ce,Pan:be,Swipe:Ee,Pinch:we,Rotate:xe,Press:Se,on:E,off:C,each:g,merge:v,extend:_,assign:l,inherit:b,bindFn:w,prefixed:R}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Te,void 0===(r=(function(){return Te}).call(t,n,t,e))||(e.exports=r)}(window,document)},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t),n("yLV6");let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);const h=u;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++a<u&&s[a]||null;if(r(i))try{i.call(this)}catch(d){t=!0,e=d instanceof h?f(d.errors):[d]}if(l(o))for(a=-1,u=o.length;++a<u;){const n=o[a];if(c(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(f(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;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)){const t=n;n=new e,n._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function f(e){return e.reduce((e,t)=>e.concat(t instanceof h?t.errors:t),[])}const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class m extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof m?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new m(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class g extends m{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;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):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}function v(...e){return b(e)}function b(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:_}let w=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof m)return e;if(e[p])return e[p]()}return e||t||n?new m(e,t,n):new m(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof m?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=S(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=S(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function S(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const E=x;class C extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends m{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new T(this)}lift(e){const t=new D(this,this);return t.operator=e,t}next(e){if(this.closed)throw new E;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new E;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new E;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new E;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=(e,t)=>new D(e,t),e})();class D extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function A(e){return e&&"function"==typeof e.schedule}class I extends m{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},R=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=O(),M=e=>t=>{const n=e[P]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},F=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const $=e=>{if(e instanceof w)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return F(e);if(L(e))return N(e);if(j(e))return R(e);if(e&&"function"==typeof e[P])return M(e);{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function V(e,t,n,r,s=new I(e,n,r)){if(!s.closed)return $(t)(s)}class U extends m{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function z(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 H(e,t))}}class H{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new B(e,this.project,this.thisArg))}}class B extends m{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function W(e,t){return new w(t?n=>{const r=new d;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:N(e))}function q(e,t){if(!t)return e instanceof w?e:new w($(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new w(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[y]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:F(e))}(e,t);if(j(e))return function(e,t){return new w(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:R(e))}(e,t);if(L(e))return W(e,t);if(function(e){return e&&"function"==typeof e[P]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[P](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Q((n,r)=>q(e(n,r)).pipe(z((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Z(e,this.project,this.concurrent))}}class Z extends U{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new I(this,void 0,void 0);this.destination.add(r),V(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return Q(K,e)}function X(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return A(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:Y(t)(W(e,n))}function J(){return function(e){return e.lift(new ee(e))}}class ee{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new te(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class te extends m{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const ne=class extends w{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new d,e.add(this.source.subscribe(new se(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,re={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ne._subscribe},_isComplete:{value:ne._isComplete,writable:!0},getSubject:{value:ne.getSubject},connect:{value:ne.connect},refCount:{value:ne.refCount}};class se extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function ie(){return new k}function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ce=oe("Self"),ue=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const pe=fe;function me(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function ye(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ye).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const _e=de({__forward_ref__:de});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return ye(this())},e}function be(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(_e)&&t.__forward_ref__===ve?t():e}const we="undefined"!=typeof globalThis&&globalThis,Se="undefined"!=typeof window&&window,xe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,Ce=we||Ee||Se||xe;class Te{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=fe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ke=new Te("INJECTOR",-1),De=new Object,Ae=/\n/gm,Ie=de({provide:String,useValue:de});let Ne=void 0;function Re(e){const t=Ne;return Ne=e,t}function Oe(e,t=he.Default){return function(e,t=he.Default){if(void 0===Ne)throw new Error("inject() must be called from an injection context");return null===Ne?function(e,t,n){const r=me(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${ye(e)}]`)}(e,0,t):Ne.get(e,t&he.Optional?null:void 0,t)}(e,t)}const Pe=Oe;class Me{get(e,t=De){if(t===De){const t=new Error(`NullInjectorError: No provider for ${ye(e)}!`);throw t.name="NullInjectorError",t}return t}}function Fe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ye(t);if(t instanceof Array)s=t.map(ye).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ye(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Ae,"\n ")}`}class Le{}class je{}function $e(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ve(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ue=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),ze=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ce))();function He(e){return e.ngDebugContext}function Be(e){return e.ngOriginalError}function We(e,...t){e.error(...t)}class qe{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||We}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?He(e)?He(e):this._findContext(Be(e)):null}_findOriginalError(e){let t=Be(e);for(;t&&Be(t);)t=Be(t);return t}}let Qe=!0,Ge=!1;function Ze(){return Ge=!0,Qe}class Ke{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Ye=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Xe=/^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 Je(e){return(e=String(e)).match(Ye)||e.match(Xe)?e:(Ze()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function et(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function tt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const nt=et("area,br,col,hr,img,wbr"),rt=et("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),st=et("rp,rt"),it=tt(st,rt),ot=tt(nt,tt(rt,et("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")),tt(st,et("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")),it),at=et("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lt=et("srcset"),ct=tt(at,lt,et("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),et("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")),ut=et("script,style,template");class ht{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;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);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!ot.hasOwnProperty(t))return this.sanitizedSomething=!0,!ut.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!ct.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;at[i]&&(o=Je(o)),lt[i]&&(r=o,o=(r=String(r)).split(",").map(e=>Je(e.trim())).join(", ")),this.buf.push(" ",t,'="',pt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ot.hasOwnProperty(t)&&!nt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(pt(e))}checkClobberedElement(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: ${e.outerHTML}`);return t}}const dt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ft=/([^\#-~ |!])/g;function pt(e){return e.replace(/&/g,"&").replace(dt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ft,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let mt;function gt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const yt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class _t{}const vt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),bt=/^url\(([^)]+)\)$/,wt=/([A-Z])/g;function St(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let xt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Et(),e})();const Et=(...e)=>{},Ct=new Te("The presence of this token marks an injector as being the root injector."),Tt=function(e,t,n){return new Rt(e,t,n)};let kt=(()=>{class e{static create(e,t){return Array.isArray(e)?Tt(e,t,""):Tt(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=De,e.NULL=new Me,e.ngInjectableDef=fe({token:e,providedIn:"any",factory:()=>Oe(ke)}),e.__NG_ELEMENT_ID__=-1,e})();const Dt=function(e){return e},At=[],It=Dt,Nt=function(){return Array.prototype.slice.call(arguments)};class Rt{constructor(e,t=kt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(kt,{token:kt,fn:Dt,deps:At,value:this,useNew:!1}),r.set(ke,{token:ke,fn:Dt,deps:At,value:this,useNew:!1}),function e(t,n){if(n)if((n=be(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Pt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Pt("Unexpected provider",n);{let e=be(n.provide);const r=function(e){const t=function(e){let t=At;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=be(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof le||n==le?r|=1:n instanceof ue||n==ue?r&=-3:n instanceof ce||n==ce?r&=-5:s=n instanceof ae?n.token:be(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:be(e.useExisting),options:6}];else if(!(n||Ie in e))throw Pt("'deps' required",e);return t}(e);let n=Dt,r=At,s=!1,i=be(e.provide);if(Ie in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=be(e.useClass);else{if("function"!=typeof i)throw Pt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Nt)throw Ot(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Nt,value:At});e=n,r.deps.push({token:e,options:6})}const s=t.get(e);if(s&&s.fn==Nt)throw Ot(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let a;if(!n||o&he.SkipSelf)o&he.Self||(a=s.get(t,i,he.Default));else{if(a=n.value,a==It)throw Error("\u0275Circular dependency");if(a===At){n.value=It;let t=void 0,i=n.useNew,o=n.fn,l=n.deps,c=At;if(l.length){c=[];for(let t=0;t<l.length;t++){const n=l[t],i=n.options,o=2&i?r.get(n.token):void 0;c.push(e(n.token,o,r,o||4&i?s:kt.NULL,1&i?null:kt.THROW_IF_NOT_FOUND,he.Default))}}n.value=a=i?new o(...c):o.apply(t,c)}}return a}(t,n,r,s,i,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==It&&(n.value=At),a}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=Fe("\n"+e.message,s,"StaticInjectorError",r),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(ye(n))),`StaticInjector[${e.join(", ")}]`}}function Ot(e){return Pt("Cannot mix multi providers and regular providers",e)}function Pt(e,t){return new Error(Fe(e,t,"StaticInjectorError"))}const Mt=new Te("AnalyzeForEntryComponents");let Ft=null;function Lt(){if(!Ft){const e=Ce.Symbol;if(e&&e.iterator)Ft=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ft=n)}}}return Ft}function jt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function $t(e,t){const n=Ut(e),r=Ut(t);if(n&&r)return function(e,t,n){const r=e[Lt()](),s=t[Lt()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,$t);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||jt(e,t)}}class Vt{constructor(e){this.wrapped=e}static wrap(e){return new Vt(e)}static unwrap(e){return Vt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Vt}}function Ut(e){return!!zt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Lt()in e)}function zt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ht(e){return!!e&&"function"==typeof e.then}function Bt(e){return!!e&&"function"==typeof e.subscribe}class Wt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class qt{}function Qt(e){const t=Error(`No component factory found for ${ye(e)}. Did you add it to @NgModule.entryComponents?`);return t[Gt]=e,t}const Gt="ngComponent";class Zt{resolveComponentFactory(e){throw Qt(e)}}let Kt=(()=>{class e{}return e.NULL=new Zt,e})();class Yt{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Qt(e);return new Xt(t,this._ngModule)}}class Xt extends qt{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function Jt(...e){}let en=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>tn(e),e})();const tn=Jt;class nn{}class rn{}const sn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let on=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>an(),e})();const an=Jt;class ln{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const cn=new ln("8.2.14");class un{constructor(){}supports(e){return Ut(e)}create(e){return new dn(e)}}const hn=(e,t)=>t;class dn{constructor(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=e||hn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<gn(n,r,s)?t:n,o=gn(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ut(e))throw new Error(`Error trying to diff '${ye(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==s&&jt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),jt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Lt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&jt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),jt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;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=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(jt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(jt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new fn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const 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)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const 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 mn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mn),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}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class fn{constructor(e,t){this.item=e,this.trackById=t,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}}class pn{constructor(){this._head=null,this._tail=null}add(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)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&jt(n.trackById,e))return n;return null}remove(e){const 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}}class mn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new pn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class yn{constructor(){}supports(e){return e instanceof Map||zt(e)}create(){return new _n}}class _n{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||zt(e)))throw new Error(`Error trying to diff '${ye(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const 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}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new vn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(e,t){jt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class vn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let bn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new e([new un])}),e})(),wn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new e([new yn])}),e})();const Sn=[new yn],xn=new bn([new un]),En=new wn(Sn);let Cn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Tn(e,en),e})();const Tn=Jt;let kn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Dn(e,en),e})();const Dn=Jt;function An(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" 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){const n=new Error(e);return In(n,t),n}(s,e)}function In(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Nn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Rn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function On(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Pn(e,t){return e.nodes[t]}function Mn(e,t){return e.nodes[t]}function Fn(e,t){return e.nodes[t]}function Ln(e,t){return e.nodes[t]}function jn(e,t){return e.nodes[t]}const $n={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},Vn=()=>{},Un=new Map;function zn(e){let t=Un.get(e);return t||(t=ye(e)+"_"+Un.size,Un.set(e,t)),t}function Hn(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Bn=0;function Wn(e,t,n,r){return!(!(2&e.state)&&jt(e.oldValues[t.bindingIndex+n],r))}function qn(e,t,n,r){return!!Wn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Qn(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!$t(s,r)){const i=t.bindings[n].name;throw An($n.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function Gn(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Zn(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Kn(e,t,n,r){try{return Gn(33554432&e.def.nodes[t].flags?Mn(e,t).componentView:e),$n.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function Yn(e){return e.parent?Mn(e.parent,e.parentNodeDef.nodeIndex):null}function Xn(e){return e.parent?e.parentNodeDef.parent:null}function Jn(e,t){switch(201347067&t.flags){case 1:return Mn(e,t.nodeIndex).renderElement;case 2:return Pn(e,t.nodeIndex).renderText}}function er(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function tr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function nr(e){return 1<<e%32}function rr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=nr(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function sr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:zn(n)}})}function ir(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ue.Native?Mn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const or=new WeakMap;function ar(e){let t=or.get(e);return t||(t=e(()=>Vn),t.factory=e,or.set(e,t)),t}function lr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(Jn(e,e.def.lastRenderRootNode))),cr(e,t,0,e.def.nodes.length-1,n,r,s)}function cr(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&hr(e,n,t,s,i,o),a+=n.childCount}}function ur(e,t,n,r,s,i){let o=e;for(;o&&!er(o);)o=o.parent;const a=o.parent,l=Xn(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&hr(a,e,n,r,s,i),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)dr(e,o[t],n,r,s,i)}}function hr(e,t,n,r,s,i){if(8&t.flags)ur(e,t.ngContent.index,n,r,s,i);else{const o=Jn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&dr(e,o,n,r,s,i),32&t.bindingFlags&&dr(Mn(e,t.nodeIndex).componentView,o,n,r,s,i)):dr(e,o,n,r,s,i),16777216&t.flags){const o=Mn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)lr(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&cr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function dr(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const fr=/^:([^:]+):(.+)$/;function pr(e){if(":"===e[0]){const t=e.match(fr);return[t[1],t[2]]}return["",e]}function mr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const gr=new Object,yr=zn(kt),_r=zn(ke),vr=zn(Le);function br(e,t,n,r){return n=be(n),{index:-1,deps:sr(r,ye(t)),flags:e,token:t,value:n}}function wr(e,t,n=kt.THROW_IF_NOT_FOUND){const r=Re(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);const o=t.tokenKey;switch(o){case yr:case _r:case vr:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Sr(e,a)),t===gr?void 0:t}if((l=me(t.token))&&(s=e,null!=(i=l).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(s,i.providedIn)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=gr,e._providers[n]=Sr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Re(r)}var s,i}function Sr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(wr(e,n[0]));case 2:return new t(wr(e,n[0]),wr(e,n[1]));case 3:return new t(wr(e,n[0]),wr(e,n[1]),wr(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=wr(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(wr(e,n[0]));case 2:return t(wr(e,n[0]),wr(e,n[1]));case 3:return t(wr(e,n[0]),wr(e,n[1]),wr(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=wr(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=wr(e,t.deps[0]);break;case 256:n=t.value}return n===gr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?gr:n}function xr(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Ve(n,t),$n.dirtyParentQueries(r),Cr(r),r}function Er(e,t,n){const r=t?Jn(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);lr(n,2,s,i,void 0)}function Cr(e){lr(e,3,null,null,void 0)}const Tr=new Object;function kr(e,t,n,r,s,i){return new Dr(e,t,n,r,s,i)}class Dr extends qt{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=ar(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=$n.createRootView(e,t||[],n,s,r,Tr),a=Fn(o,i).instance;return n&&o.renderer.setAttribute(Mn(o,0).renderElement,"ng-version",cn.full),new Ar(o,new Or(o),a)}}class Ar extends class{}{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new en(Mn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Lr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Ir(e,t,n){return new Nr(e,t,n)}class Nr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new en(this._data.renderElement)}get injector(){return new Lr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Xn(e),e=e.parent;return e?new Lr(e,t):new Lr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=xr(this._data,e);$n.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Or(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof Xt||(s=i.get(Le));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,$e(s,n,r),function(e,t){const n=Yn(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),$n.dirtyParentQueries(r),Er(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,s=r[t];Ve(r,t),null==n&&(n=r.length),$e(r,n,s),$n.dirtyParentQueries(s),Cr(s),Er(e,n>0?r[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=xr(this._data,e);t&&$n.destroyView(t)}detach(e){const t=xr(this._data,e);return t?new Or(t):null}}function Rr(e){return new Or(e)}class Or{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return lr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Gn(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{$n.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){$n.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),$n.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Cr(this._view),$n.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Pr(e,t){return new Mr(e,t)}class Mr extends Cn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Or($n.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new en(Mn(this._parentView,this._def.nodeIndex).renderElement)}}function Fr(e,t){return new Lr(e,t)}class Lr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=kt.THROW_IF_NOT_FOUND){return $n.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:zn(e)},t)}}function jr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Mn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Pn(e,n.nodeIndex).renderText;if(20240&n.flags)return Fn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function $r(e){return new Vr(e.renderer)}class Vr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=pr(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,s]=pr(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Ur(e,t,n,r){return new zr(e,t,n,r)}class zr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=Sr(e,s))}}(this)}get(e,t=kt.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),wr(this,{token:e,tokenKey:zn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Kt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${ye(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==gr){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Hr=zn(nn),Br=zn(on),Wr=zn(en),qr=zn(kn),Qr=zn(Cn),Gr=zn(xt),Zr=zn(kt),Kr=zn(ke);function Yr(e,t,n,r,s,i,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return Jr(e,t|=16384,n,r,s,s,i,l,c)}function Xr(e,t,n,r,s){return Jr(-1,e,t,0,n,r,s)}function Jr(e,t,n,r,s,i,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:h}=rr(n);l||(l=[]),a||(a=[]),i=be(i);const d=sr(o,ye(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:mr(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function es(e,t){return ss(e,t)}function ts(e,t){let n=e;for(;n.parent&&!er(n);)n=n.parent;return is(n.parent,Xn(n),!0,t.provider.value,t.provider.deps)}function ns(e,t){const n=is(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!Bt(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(rs(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function rs(e,t,n){return r=>Kn(e,t,n,r)}function ss(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return is(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(as(e,t,n,s[0]));case 2:return r(as(e,t,n,s[0]),as(e,t,n,s[1]));case 3:return r(as(e,t,n,s[0]),as(e,t,n,s[1]),as(e,t,n,s[2]));default:const o=Array(i);for(let r=0;r<i;r++)o[r]=as(e,t,n,s[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return as(e,t.parent,n,r.deps[0]);case 256:return r.value}}function is(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(as(e,t,n,s[0]));case 2:return new r(as(e,t,n,s[0]),as(e,t,n,s[1]));case 3:return new r(as(e,t,n,s[0]),as(e,t,n,s[1]),as(e,t,n,s[2]));default:const o=new Array(i);for(let r=0;r<i;r++)o[r]=as(e,t,n,s[r]);return new r(...o)}}const os={};function as(e,t,n,r,s=kt.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===Gr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case Hr:return $r(ls(a,t,n));case Br:return ls(a,t,n).renderer;case Wr:return new en(Mn(a,t.nodeIndex).renderElement);case qr:return Mn(a,t.nodeIndex).viewContainer;case Qr:if(t.element.template)return Mn(a,t.nodeIndex).template;break;case Gr:return Rr(ls(a,t,n));case Zr:case Kr:return Fr(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Fn(a,e.nodeIndex);return t||(t={instance:ss(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=er(a),t=Xn(a),a=a.parent,4&r.flags&&(a=null)}const l=i.root.injector.get(r.token,os);return l!==os||s===os?l:i.root.ngModule.injector.get(r.token,s)}function ls(e,t,n){let r;if(n)r=Mn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!er(r);)r=r.parent;return r}function cs(e,t,n,r,s,i){if(32768&n.flags){const t=Mn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=Vt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Wt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function us(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&ds(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=hs(e,o,t,r)),o=o.parent}}function hs(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&ds(e,s,t.flags&n,r++),s+=t.childCount}return r}function ds(e,t,n,r){const s=Fn(e,t);if(!s)return;const i=s.instance;i&&($n.setCurrentNode(e,t),1048576&n&&On(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&On(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const fs=new Te("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ze}),ps={},ms=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),gs=void 0;var ys=["en",[["a","p"],["AM","PM"],gs],[["AM","PM"],gs,gs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],gs,[["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"]],gs,[["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}",gs,"{1} 'at' {0}",gs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function _s(e){const t=e.toLowerCase().replace(/_/g,"-");let n=ps[t];if(n)return n;const r=t.split("-")[0];if(n=ps[r],n)return n;if("en"===r)return ys;throw new Error(`Missing locale data for the locale "${e}".`)}class vs extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function bs(){return this._results[Lt()]()}class ws{constructor(){this.dirty=!0,this._results=[],this.changes=new vs,this.length=0;const e=Lt(),t=ws.prototype;t[e]||(t[e]=bs)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),e(s,n)):n!==t&&n.push(s)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Ss=new Te("Application Initializer");class xs{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ht(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Es=new Te("AppId");function Cs(){return`${Ts()}${Ts()}${Ts()}`}function Ts(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ks=new Te("Platform Initializer"),Ds=new Te("Platform ID"),As=new Te("appBootstrapListener");class Is{log(e){console.log(e)}warn(e){console.warn(e)}}const Ns=new Te("LocaleId");function Rs(){throw new Error("Runtime compiler is not loaded")}const Os=Rs,Ps=Rs,Ms=Rs,Fs=Rs;class Ls{constructor(){this.compileModuleSync=Os,this.compileModuleAsync=Ps,this.compileModuleAndAllComponentsSync=Ms,this.compileModuleAndAllComponentsAsync=Fs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class js{}let $s,Vs;function Us(){const e=Ce.wtf;return!(!e||($s=e.trace,!$s)||(Vs=$s.events,0))}const zs=Us();function Hs(e,t){return null}const Bs=zs?function(e,t=null){return Vs.createScope(e,t)}:(e,t)=>Hs,Ws=zs?function(e,t){return $s.leaveScope(e,t),t}:(e,t)=>t,qs=(()=>Promise.resolve(0))();function Qs(e){"undefined"==typeof Zone?qs.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Gs{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vs(!1),this.onMicrotaskEmpty=new vs(!1),this.onStable=new vs(!1),this.onError=new vs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return Xs(t),e.invokeTask(r,s,i,o)}finally{Js(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return Xs(t),e.invoke(r,s,i,o,a)}finally{Js(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,Ys(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gs.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Gs.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,Ks,Zs,Zs);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Zs(){}const Ks={};function Ys(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(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Xs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Js(e){e._nesting--,Ys(e)}class ei{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vs,this.onMicrotaskEmpty=new vs,this.onStable=new vs,this.onError=new vs}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class ti{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Gs.assertNotInAngularZone(),Qs(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qs(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(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/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class ni{constructor(){this._applications=new Map,ii.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return ii.findTestabilityInTree(this,e,t)}}class ri{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let si,ii=new ri;const oi=new Te("AllowMultipleToken");class ai{constructor(e,t){this.name=e,this.token=t}}function li(e,t,n=[]){const r=`Platform: ${t}`,s=new Te(r);return(t=[])=>{let i=ci();if(!i||i.injector.get(oi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(si&&!si.destroyed&&!si.injector.get(oi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");si=e.get(ui);const t=e.get(ks,null);t&&t.forEach(e=>e())}(kt.create({providers:e,name:r}))}return function(e){const t=ci();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}(s)}}function ci(){return si&&!si.destroyed?si:null}class ui{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e){let t;return t="noop"===e?new ei:("zone.js"===e?void 0:e)||new Gs({enableLongStackTrace:Ze()}),t}(t?t.ngZone:void 0),r=[{provide:Gs,useValue:n}];return n.run(()=>{const t=kt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(qe,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>fi(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const r=n();return Ht(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(xs);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=hi({},t);return function(e,t,n){return e.get(js).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(di);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ye(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function hi(e,t){return Array.isArray(t)?t.reduce(hi,e):Object.assign({},e,t)}let di=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ze(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Gs.assertNotInAngularZone(),Qs(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Gs.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=X(o,a.pipe(e=>{return J()((t=ie,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,re);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof qt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n instanceof Xt?null:this._injector.get(Le),s=n.create(kt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(ti,null);return i&&s.injector.get(ni).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,Ws(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;fi(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(As,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),fi(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Bs("ApplicationRef#tick()"),e})();function fi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class pi{}class mi{}const gi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class yi{constructor(e,t){this._compiler=e,this._config=t||gi}load(e){return this._compiler instanceof Ls?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>_i(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>_i(e,t,r))}}function _i(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class vi{constructor(e,t){this.name=e,this.callback=t}}class bi{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof wi&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class wi extends bi{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const 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))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof wi&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof wi&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof wi&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof wi)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const Si=new Map,xi=function(e){return Si.get(e)||null};function Ei(e){Si.set(e.nativeNode,e)}const Ci=li(null,"core",[{provide:Ds,useValue:"unknown"},{provide:ui,deps:[kt]},{provide:ni,deps:[]},{provide:Is,deps:[]}]);function Ti(){return xn}function ki(){return En}function Di(e){return e||"en-US"}function Ai(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Ii{constructor(e){}}function Ni(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=rr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?ar(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Vn},provider:null,text:null,query:null,ngContent:null}}function Ri(e,t,n,r,s,i,o=[],a,l,c,u,h){c||(c=Vn);const{matchedQueries:d,references:f,matchedQueryIds:p}=rr(n);let m=null,g=null;i&&([m,g]=pr(i)),a=a||[];const y=new Array(a.length);for(let b=0;b<a.length;b++){const[e,t,n]=a[b],[r,s]=pr(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}y[b]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}l=l||[];const _=new Array(l.length);for(let b=0;b<l.length;b++){const[e,t]=l[b];_[b]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=pr(e);return[n,r,t]});return h=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==Ue.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Bn++}`:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:s,bindings:y,bindingFlags:mr(y),outputs:_,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Vn},provider:null,text:null,query:null,ngContent:null}}function Oi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=ir(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===Ue.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];i.setAttribute(o,t,n,e)}return o}function Pi(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Mi(e,n.nodeIndex,(i=a.eventName,(s=a.target)?`${s}:${i}`:i));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const h=u.renderer.listen(c||r,a.eventName,l);e.disposables[n.outputIndex+o]=h}var s,i}function Mi(e,t,n){return r=>Kn(e,t,n,r)}function Fi(e,t,n,r){if(!qn(e,t,n,r))return!1;const s=t.bindings[n],i=Mn(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(yt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function Li(e,t,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});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:nr(t),bindings:r},ngContent:null}}function ji(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&tr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&jn(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&jn(e,n).setDirty(),n+=t.childCount}}function $i(e,t){const n=jn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=Vi(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Fn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=Vi(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let a=0;a<i.length;a++){const e=i[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function Vi(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(Ui(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Mn(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(Vi(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=Yn(i);o&&o===n&&Vi(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];Vi(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function Ui(e,t,n){if(null!=n)switch(n){case 1:return Mn(e,t.nodeIndex).renderElement;case 0:return new en(Mn(e,t.nodeIndex).renderElement);case 2:return Mn(e,t.nodeIndex).template;case 3:return Mn(e,t.nodeIndex).viewContainer;case 4:return Fn(e,t.nodeIndex).instance}}function zi(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 Hi(e,t,n){const r=ir(e,t,n);r&&ur(e,n.ngContent.index,1,r,null,void 0)}function Bi(e,t){const n=Object.keys(t),r=n.length,s=new Array(r);for(let i=0;i<r;i++){const e=n[i];s[t[e]]=e}return function(e,t,n){const r=new Array(n.length);for(let s=0;s<n.length;s++){const e=n[s];r[s]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:mr(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,e,s)}function Wi(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};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 qi(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=ir(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function Qi(e,t){return(null!=e?e.toString():"")+t.suffix}function Gi(e,t,n,r){let s=0,i=0,o=0,a=0,l=0,c=null,u=null,h=!1,d=!1,f=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=c,e.bindingIndex=s,e.outputIndex=i,e.renderParent=u,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(Ki(c,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!u&&3&e.flags&&(f=e),20224&e.flags){h||(h=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[zn(e.provider.token)]=e:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[zn(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,Zi(e)||(u=e);else for(;c&&p===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),c=e,u=c&&Zi(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Vn,updateRenderer:r||Vn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:f}}function Zi(e){return 0!=(1&e.flags)&&null===e.element.name}function Ki(e,t,n){const 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 ${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 ${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 ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Yi(e,t,n,r){const s=eo(e.root,e.renderer,e,t,n);return to(s,e.component,r),no(s),s}function Xi(e,t,n){const r=eo(e,e.renderer,null,null,t);return to(r,n,n),no(r),r}function Ji(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,eo(e.root,i,e,t.element.componentProvider,n)}function eo(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function to(e,t,n){e.component=t,e.context=n}function no(e){let t;er(e)&&(t=Mn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch($n.setCurrentNode(e,s),201347067&i.flags){case 1:const n=Oi(e,t,i);let a=void 0;if(33554432&i.flags){const t=ar(i.element.componentView);a=$n.createComponentView(e,i,t,n)}Pi(e,a,i,n),o={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?Pr(e,i):void 0},16777216&i.flags&&(o.viewContainer=Ir(e,i,o));break;case 2:o=qi(e,t,i);break;case 512:case 1024:case 2048:case 256:o=r[s],o||4096&i.flags||(o={instance:es(e,i)});break;case 16:o={instance:ts(e,i)};break;case 16384:o=r[s],o||(o={instance:ns(e,i)}),32768&i.flags&&to(Mn(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new ws;break;case 8:Hi(e,t,i),o=void 0}r[s]=o}ho(e,uo.CreateViewNodes),go(e,201326592,268435456,0)}function ro(e){oo(e),$n.updateDirectives(e,1),fo(e,uo.CheckNoChanges),$n.updateRenderer(e,1),ho(e,uo.CheckNoChanges),e.state&=-97}function so(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Rn(e,0,256),oo(e),$n.updateDirectives(e,0),fo(e,uo.CheckAndUpdate),go(e,67108864,536870912,0);let t=Rn(e,256,512);us(e,2097152|(t?1048576:0)),$n.updateRenderer(e,0),ho(e,uo.CheckAndUpdate),go(e,134217728,536870912,0),t=Rn(e,512,768),us(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Rn(e,768,1024)}function io(e,t,n,r,s,i,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,c,u,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings.length;let f=!1;return d>0&&Fi(e,t,0,n)&&(f=!0),d>1&&Fi(e,t,1,r)&&(f=!0),d>2&&Fi(e,t,2,s)&&(f=!0),d>3&&Fi(e,t,3,i)&&(f=!0),d>4&&Fi(e,t,4,o)&&(f=!0),d>5&&Fi(e,t,5,a)&&(f=!0),d>6&&Fi(e,t,6,l)&&(f=!0),d>7&&Fi(e,t,7,c)&&(f=!0),d>8&&Fi(e,t,8,u)&&(f=!0),d>9&&Fi(e,t,9,h)&&(f=!0),f}(e,t,n,r,s,i,o,a,l,c,u,h);case 2:return function(e,t,n,r,s,i,o,a,l,c,u,h){let d=!1;const f=t.bindings,p=f.length;if(p>0&&qn(e,t,0,n)&&(d=!0),p>1&&qn(e,t,1,r)&&(d=!0),p>2&&qn(e,t,2,s)&&(d=!0),p>3&&qn(e,t,3,i)&&(d=!0),p>4&&qn(e,t,4,o)&&(d=!0),p>5&&qn(e,t,5,a)&&(d=!0),p>6&&qn(e,t,6,l)&&(d=!0),p>7&&qn(e,t,7,c)&&(d=!0),p>8&&qn(e,t,8,u)&&(d=!0),p>9&&qn(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;p>0&&(d+=Qi(n,f[0])),p>1&&(d+=Qi(r,f[1])),p>2&&(d+=Qi(s,f[2])),p>3&&(d+=Qi(i,f[3])),p>4&&(d+=Qi(o,f[4])),p>5&&(d+=Qi(a,f[5])),p>6&&(d+=Qi(l,f[6])),p>7&&(d+=Qi(c,f[7])),p>8&&(d+=Qi(u,f[8])),p>9&&(d+=Qi(h,f[9]));const m=Pn(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,r,s,i,o,a,l,c,u,h);case 16384:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=Fn(e,t.nodeIndex),f=d.instance;let p=!1,m=void 0;const g=t.bindings.length;return g>0&&Wn(e,t,0,n)&&(p=!0,m=cs(e,d,t,0,n,m)),g>1&&Wn(e,t,1,r)&&(p=!0,m=cs(e,d,t,1,r,m)),g>2&&Wn(e,t,2,s)&&(p=!0,m=cs(e,d,t,2,s,m)),g>3&&Wn(e,t,3,i)&&(p=!0,m=cs(e,d,t,3,i,m)),g>4&&Wn(e,t,4,o)&&(p=!0,m=cs(e,d,t,4,o,m)),g>5&&Wn(e,t,5,a)&&(p=!0,m=cs(e,d,t,5,a,m)),g>6&&Wn(e,t,6,l)&&(p=!0,m=cs(e,d,t,6,l,m)),g>7&&Wn(e,t,7,c)&&(p=!0,m=cs(e,d,t,7,c,m)),g>8&&Wn(e,t,8,u)&&(p=!0,m=cs(e,d,t,8,u,m)),g>9&&Wn(e,t,9,h)&&(p=!0,m=cs(e,d,t,9,h,m)),m&&f.ngOnChanges(m),65536&t.flags&&On(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,s,i,o,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings;let f=!1;const p=d.length;if(p>0&&qn(e,t,0,n)&&(f=!0),p>1&&qn(e,t,1,r)&&(f=!0),p>2&&qn(e,t,2,s)&&(f=!0),p>3&&qn(e,t,3,i)&&(f=!0),p>4&&qn(e,t,4,o)&&(f=!0),p>5&&qn(e,t,5,a)&&(f=!0),p>6&&qn(e,t,6,l)&&(f=!0),p>7&&qn(e,t,7,c)&&(f=!0),p>8&&qn(e,t,8,u)&&(f=!0),p>9&&qn(e,t,9,h)&&(f=!0),f){const f=Ln(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(d.length),p>0&&(m[0]=n),p>1&&(m[1]=r),p>2&&(m[2]=s),p>3&&(m[3]=i),p>4&&(m[4]=o),p>5&&(m[5]=a),p>6&&(m[6]=l),p>7&&(m[7]=c),p>8&&(m[8]=u),p>9&&(m[9]=h);break;case 64:m={},p>0&&(m[d[0].name]=n),p>1&&(m[d[1].name]=r),p>2&&(m[d[2].name]=s),p>3&&(m[d[3].name]=i),p>4&&(m[d[4].name]=o),p>5&&(m[d[5].name]=a),p>6&&(m[d[6].name]=l),p>7&&(m[d[7].name]=c),p>8&&(m[d[8].name]=u),p>9&&(m[d[9].name]=h);break;case 128:const e=n;switch(p){case 1:m=e.transform(n);break;case 2:m=e.transform(r);break;case 3:m=e.transform(r,s);break;case 4:m=e.transform(r,s,i);break;case 5:m=e.transform(r,s,i,o);break;case 6:m=e.transform(r,s,i,o,a);break;case 7:m=e.transform(r,s,i,o,a,l);break;case 8:m=e.transform(r,s,i,o,a,l,c);break;case 9:m=e.transform(r,s,i,o,a,l,c,u);break;case 10:m=e.transform(r,s,i,o,a,l,c,u,h)}}f.value=m}return f}(e,t,n,r,s,i,o,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)Fi(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)qn(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=Qi(n[e],r[e]);s=t.text.prefix+s;const i=Pn(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=Fn(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let a=0;a<n.length;a++)Wn(e,t,a,n[a])&&(i=!0,o=cs(e,r,t,a,n[a],o));return o&&s.ngOnChanges(o),65536&t.flags&&On(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)qn(e,t,i,n[i])&&(s=!0);if(s){const s=Ln(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let s=0;s<n.length;s++)i[r[s].name]=n[s];break;case 128:const e=n[0],t=n.slice(1);i=e.transform(...t)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function oo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=Mn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,Zn(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ao(e,t,n,r,s,i,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings.length;d>0&&Qn(e,t,0,n),d>1&&Qn(e,t,1,r),d>2&&Qn(e,t,2,s),d>3&&Qn(e,t,3,i),d>4&&Qn(e,t,4,o),d>5&&Qn(e,t,5,a),d>6&&Qn(e,t,6,l),d>7&&Qn(e,t,7,c),d>8&&Qn(e,t,8,u),d>9&&Qn(e,t,9,h)}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){for(let r=0;r<n.length;r++)Qn(e,t,r,n[r])}(e,t,r),!1}function lo(e,t){if(jn(e,t.nodeIndex).dirty)throw An($n.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function co(e){if(!(128&e.state)){if(fo(e,uo.Destroy),ho(e,uo.Destroy),us(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=Yn(e);if(t){const n=t.template._projectedViews;n&&(Ve(n,n.indexOf(e)),$n.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Mn(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Pn(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&jn(e,n).destroy()}}(e),er(e)&&e.renderer.destroy(),e.state|=128}}const uo=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function ho(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?po(Mn(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function fo(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=Mn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)po(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function po(e,t){const n=e.state;switch(t){case uo.CheckNoChanges:0==(128&n)&&(12==(12&n)?ro(e):64&n&&mo(e,uo.CheckNoChangesProjectedViews));break;case uo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ro(e):64&n&&mo(e,t));break;case uo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?so(e):64&n&&mo(e,uo.CheckAndUpdateProjectedViews));break;case uo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?so(e):64&n&&mo(e,t));break;case uo.Destroy:co(e);break;case uo.CreateViewNodes:no(e)}}function mo(e,t){fo(e,t),ho(e,t)}function go(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch($n.setCurrentNode(e,s.nodeIndex),r){case 0:$i(e,s);break;case 1:lo(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let yo=!1;function _o(e,t,n,r,s,i){const o=s.injector.get(rn);return Xi(bo(e,s,o,t,n),r,i)}function vo(e,t,n,r,s,i){const o=s.injector.get(rn),a=bo(e,s,new Xo(o),t,n),l=Io(r);return Ko(Fo.create,Xi,null,[a,l,i])}function bo(e,t,n,r,s){const i=t.injector.get(_t),o=t.injector.get(qe),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:o}}function wo(e,t,n,r){const s=Io(n);return Ko(Fo.create,Yi,null,[e,t,s,r])}function So(e,t,n,r){return n=To.get(t.element.componentProvider.provider.token)||Io(n),Ko(Fo.create,Ji,null,[e,t,n,r])}function xo(e,t,n,r){return Ur(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Eo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=Eo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Co.forEach((r,s)=>{me(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=Eo.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=sr(s.deps),r.value=s.value)}if(Co.size>0){let t=new Set(e.modules);Co.forEach((r,s)=>{if(t.has(me(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:sr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[zn(s)]=t}})}}(e=e.factory(()=>Vn)),e):e}(r))}const Eo=new Map,Co=new Map,To=new Map;function ko(e){let t;Eo.set(e.token,e),"function"==typeof e.token&&(t=me(e.token))&&"function"==typeof t.providedIn&&Co.set(e.token,e)}function Do(e,t){const n=ar(t.viewDefFactory),r=ar(n.nodes[0].element.componentView);To.set(e,r)}function Ao(){Eo.clear(),Co.clear(),To.clear()}function Io(e){if(0===Eo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&Eo.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Vn);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Eo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=sr(n.deps),e.value=n.value)}}}}function No(e,t,n,r,s,i,o,a,l,c,u,h,d){const f=e.def.nodes[t];return io(e,f,n,r,s,i,o,a,l,c,u,h,d),224&f.flags?Ln(e,t).value:void 0}function Ro(e,t,n,r,s,i,o,a,l,c,u,h,d){const f=e.def.nodes[t];return ao(e,f,n,r,s,i,o,a,l,c,u,h,d),224&f.flags?Ln(e,t).value:void 0}function Oo(e){return Ko(Fo.detectChanges,so,null,[e])}function Po(e){return Ko(Fo.checkNoChanges,ro,null,[e])}function Mo(e){return Ko(Fo.destroy,co,null,[e])}const Fo=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let Lo,jo,$o;function Vo(e,t){jo=e,$o=t}function Uo(e,t,n,r){return Vo(e,t),Ko(Fo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function zo(e,t){if(128&e.state)throw Nn(Fo[Lo]);return Vo(e,qo(e,0)),e.def.updateDirectives((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Bo(e,i,r,s):Wo(e,i,r,s),16384&i.flags&&Vo(e,qo(e,n)),224&i.flags?Ln(e,i.nodeIndex).value:void 0}),e)}function Ho(e,t){if(128&e.state)throw Nn(Fo[Lo]);return Vo(e,Qo(e,0)),e.def.updateRenderer((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Bo(e,i,r,s):Wo(e,i,r,s),3&i.flags&&Vo(e,Qo(e,n)),224&i.flags?Ln(e,i.nodeIndex).value:void 0}),e)}function Bo(e,t,n,r){if(io(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(wt,(...e)=>"-"+e[1].toLowerCase())}`)]=St(a))}const r=t.parent,a=Mn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function Wo(e,t,n,r){ao(e,t,n,...r)}function qo(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Qo(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class Go{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Xn(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Mn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Fr(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Zo(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Zo(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!er(e);)e=e.parent;return e.parent?Mn(e.parent,Xn(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Jn(this.view,this.nodeDef):Jn(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>(i++,i===s?e.error.bind(e,...t):Vn)),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Zo(e,t,n){for(let r in t.references)n[r]=Ui(e,t,t.references[r])}function Ko(e,t,n,r){const s=Lo,i=jo,o=$o;try{Lo=e;const a=t.apply(n,r);return jo=i,$o=o,Lo=s,a}catch(a){if(He(a)||!jo)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),In(e,t),e}(a,Yo())}}function Yo(){return jo?new Go(jo,$o):null}class Xo{constructor(e){this.delegate=e}createRenderer(e,t){return new Jo(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Jo{constructor(e){this.delegate=e,this.debugContextFactory=Yo,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=xi(e);!function(e){Si.delete(e.nativeNode)}(t),t instanceof bi&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new wi(n,null,r);t.name=e,Ei(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Ei(new bi(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Ei(new bi(t,null,n)),t}appendChild(e,t){const n=xi(e),r=xi(t);n&&r&&n instanceof wi&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=xi(e),s=xi(t),i=xi(n);r&&s&&r instanceof wi&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=xi(e),r=xi(t);n&&r&&n instanceof wi&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Yo();return r&&Ei(new wi(n,null,r)),n}setAttribute(e,t,n,r){const s=xi(e);s&&s instanceof wi&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=xi(e);r&&r instanceof wi&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=xi(e);n&&n instanceof wi&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=xi(e);n&&n instanceof wi&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=xi(e);s&&s instanceof wi&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=xi(e);r&&r instanceof wi&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=xi(e);r&&r instanceof wi&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=xi(e);r&&r.listeners.push(new vi(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function ea(e,t,n){return new ta(e,t,n)}class ta extends je{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(yo)return;yo=!0;const e=Ze()?{setCurrentNode:Vo,createRootView:vo,createEmbeddedView:wo,createComponentView:So,createNgModuleRef:xo,overrideProvider:ko,overrideComponentView:Do,clearOverrides:Ao,checkAndUpdateView:Oo,checkNoChangesView:Po,destroyView:Mo,createDebugContext:(e,t)=>new Go(e,t),handleEvent:Uo,updateDirectives:zo,updateRenderer:Ho}:{setCurrentNode:()=>{},createRootView:_o,createEmbeddedView:Yi,createComponentView:Ji,createNgModuleRef:Ur,overrideProvider:Vn,overrideComponentView:Vn,clearOverrides:Vn,checkAndUpdateView:so,checkNoChangesView:ro,destroyView:co,createDebugContext:(e,t)=>new Go(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?No:Ro,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?No:Ro,e)};$n.setCurrentNode=e.setCurrentNode,$n.createRootView=e.createRootView,$n.createEmbeddedView=e.createEmbeddedView,$n.createComponentView=e.createComponentView,$n.createNgModuleRef=e.createNgModuleRef,$n.overrideProvider=e.overrideProvider,$n.overrideComponentView=e.overrideComponentView,$n.clearOverrides=e.clearOverrides,$n.checkAndUpdateView=e.checkAndUpdateView,$n.checkNoChangesView=e.checkNoChangesView,$n.destroyView=e.destroyView,$n.resolveDep=as,$n.createDebugContext=e.createDebugContext,$n.handleEvent=e.handleEvent,$n.updateDirectives=e.updateDirectives,$n.updateRenderer=e.updateRenderer,$n.dirtyParentQueries=ji}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(ar(this._ngModuleDefFactory));return $n.createNgModuleRef(this.moduleType,e||kt.NULL,this._bootstrapComponents,t)}}class na{}class ra{}class sa{}const ia=new Te("Location Initialized");class oa{}const aa=new Te("appBaseHref");class la{constructor(e,t){this._subject=new vs,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=la.stripTrailingSlash(ca(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+la.normalizeQueryParams(t))}normalize(e){return la.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ca(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+la.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+la.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function ca(e){return e.replace(/\/index.html$/,"")}class ua extends oa{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=la.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+la.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+la.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class ha extends oa{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return la.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+la.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+la.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+la.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const da=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),fa=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),pa=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),ma=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),ga=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function ya(e,t,n){const r=_s(e),s=Ea([r[ms.DaysFormat],r[ms.DaysStandalone]],t);return Ea(s,n)}function _a(e,t,n){const r=_s(e),s=Ea([r[ms.MonthsFormat],r[ms.MonthsStandalone]],t);return Ea(s,n)}function va(e,t){return Ea(_s(e)[ms.DateFormat],t)}function ba(e,t){return Ea(_s(e)[ms.TimeFormat],t)}function wa(e,t){return Ea(_s(e)[ms.DateTimeFormat],t)}function Sa(e,t){const n=_s(e),r=n[ms.NumberSymbols][t];if(void 0===r){if(t===ga.CurrencyDecimal)return n[ms.NumberSymbols][ga.Decimal];if(t===ga.CurrencyGroup)return n[ms.NumberSymbols][ga.Group]}return r}function xa(e){if(!e[ms.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[ms.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ea(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Ca(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const Ta=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ka={},Da=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Aa=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Ia=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Na=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function Ra(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function Oa(e,t,n="-",r,s){let i="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,i=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.substr(o.length-t)),i+o}function Pa(e,t,n=0,r=!1,s=!1){return function(i,o){let a=function(e,t){switch(e){case Ia.FullYear:return t.getFullYear();case Ia.Month:return t.getMonth();case Ia.Date:return t.getDate();case Ia.Hours:return t.getHours();case Ia.Minutes:return t.getMinutes();case Ia.Seconds:return t.getSeconds();case Ia.FractionalSeconds:return t.getMilliseconds();case Ia.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===Ia.Hours)0===a&&-12===n&&(a=12);else if(e===Ia.FractionalSeconds)return l=t,Oa(a,3).substr(0,l);var l;const c=Sa(o,ga.MinusSign);return Oa(a,t,c,r,s)}}function Ma(e,t,n=fa.Format,r=!1){return function(s,i){return function(e,t,n,r,s,i){switch(n){case Na.Months:return _a(t,s,r)[e.getMonth()];case Na.Days:return ya(t,s,r)[e.getDay()];case Na.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(i){const e=function(e){const t=_s(e);return xa(t),(t[ms.ExtraData][2]||[]).map(e=>"string"==typeof e?Ca(e):[Ca(e[0]),Ca(e[1])])}(t),n=function(e,t,n){const r=_s(e);xa(r);const s=Ea([r[ms.ExtraData][0],r[ms.ExtraData][1]],t)||[];return Ea(s,n)||[]}(t,s,r);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:s}=e[0],{hours:l,minutes:c}=e[1];o>=r&&a>=s&&(o<l||o===l&&a<c)&&(i=n[t])}else{const{hours:r,minutes:s}=e;r===o&&s===a&&(i=n[t])}}),i)return i}return function(e,t,n){const r=_s(e),s=Ea([r[ms.DayPeriodsFormat],r[ms.DayPeriodsStandalone]],t);return Ea(s,n)}(t,s,r)[o<12?0:1];case Na.Eras:return function(e,t){return Ea(_s(e)[ms.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,i,e,t,n,r)}}function Fa(e){return function(t,n,r){const s=-1*r,i=Sa(n,ga.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case Aa.Short:return(s>=0?"+":"")+Oa(o,2,i)+Oa(Math.abs(s%60),2,i);case Aa.ShortGMT:return"GMT"+(s>=0?"+":"")+Oa(o,1,i);case Aa.Long:return"GMT"+(s>=0?"+":"")+Oa(o,2,i)+":"+Oa(Math.abs(s%60),2,i);case Aa.Extended:return 0===r?"Z":(s>=0?"+":"")+Oa(o,2,i)+":"+Oa(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}function La(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(n.getFullYear()),t=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var i;return Oa(s,e,Sa(r,ga.MinusSign))}}const ja={};function $a(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Va(e){return e instanceof Date&&!isNaN(e.valueOf())}const Ua=new Te("UseV4Plurals");class za{}class Ha extends za{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return _s(e)[ms.PluralCase]}(t||this.locale)(e)){case da.Zero:return"zero";case da.One:return"one";case da.Two:return"two";case da.Few:return"few";case da.Many:return"many";default:return"other"}}}class Ba{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Wa{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Ze()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ba(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new qa(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new qa(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class qa{constructor(e,t){this.record=e,this.view=t}}class Qa{constructor(e,t){this._viewContainer=e,this._context=new Ga,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Za("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Za("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){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)))}}class Ga{constructor(){this.$implicit=null,this.ngIf=null}}function Za(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ye(t)}'.`)}class Ka{}class Ya{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}getValue(){return null}setNgStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}applyChanges(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}}let Xa=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Ja extends Xa{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}class el{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}class tl{}const nl=new Te("DocumentToken");let rl=(()=>{class e{}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new sl(Oe(nl),window,Oe(qe))}),e})();class sl{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const il=new w(e=>e.complete());function ol(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):il}function al(e){const t=new w(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function ll(...e){let t=e[e.length-1];switch(A(t)?e.pop():t=void 0,e.length){case 0:return ol(t);case 1:return t?W(e,t):al(e[0]);default:return W(e,t)}}class cl extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(e){super.next(this._value=e)}}function ul(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ul.prototype=Object.create(Error.prototype);const hl=ul,dl={};class fl{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new pl(e,this.resultSelector))}}class pl extends U{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(dl),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(V(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const i=this.values,o=this.toRespond?i[n]===dl?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function ml(e){return new w(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?q(n):ol()).subscribe(t)})}function gl(){return Y(1)}function yl(e,t){return function(n){return n.lift(new _l(e,t))}}class _l{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new vl(e,this.predicate,this.thisArg))}}class vl extends m{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function bl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}bl.prototype=Object.create(Error.prototype);const wl=bl;function Sl(e){return function(t){return 0===e?ol():t.lift(new xl(e))}}class xl{constructor(e){if(this.total=e,this.total<0)throw new wl}call(e,t){return t.subscribe(new El(e,this.total))}}class El extends m{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function Cl(e,t,n){return function(r){return r.lift(new Tl(e,t,n))}}class Tl{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new kl(e,this.nextOrObserver,this.error,this.complete))}}class kl extends m{constructor(e,t,n,s){super(e),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||_,this._tapError=t.error||_,this._tapComplete=t.complete||_)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const Dl=(e=Al)=>Cl({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function Al(){return new hl}function Il(e=null){return t=>t.lift(new Nl(e))}class Nl{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Rl(e,this.defaultValue))}}class Rl extends m{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ol(e,t){const n=arguments.length>=2;return r=>r.pipe(e?yl((t,n)=>e(t,n,r)):K,Sl(1),n?Il(t):Dl(()=>new hl))}function Pl(e){return function(t){const n=new Ml(e),r=t.lift(n);return n.caught=r}}class Ml{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Fl(e,this.selector,this.caught))}}class Fl extends U{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new I(this,void 0,void 0);this.add(r),V(this,n,void 0,void 0,r)}}}function Ll(e){return t=>0===e?ol():t.lift(new jl(e))}class jl{constructor(e){if(this.total=e,this.total<0)throw new wl}call(e,t){return t.subscribe(new $l(e,this.total))}}class $l extends m{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Vl(e,t){const n=arguments.length>=2;return r=>r.pipe(e?yl((t,n)=>e(t,n,r)):K,Ll(1),n?Il(t):Dl(()=>new hl))}class Ul{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new zl(e,this.predicate,this.thisArg,this.source))}}class zl extends m{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let 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)}_complete(){this.notifyComplete(!0)}}function Hl(e,t){return"function"==typeof t?n=>n.pipe(Hl((n,r)=>q(e(n,r)).pipe(z((e,s)=>t(n,e,r,s))))):t=>t.lift(new Bl(e))}class Bl{constructor(e){this.project=e}call(e,t){return t.subscribe(new Wl(e,this.project))}}class Wl extends U{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new I(this,void 0,void 0);this.destination.add(s),this.innerSubscription=V(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function ql(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ql(e,t,n))}}class Ql{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Gl(e,this.accumulator,this.seed,this.hasSeed))}}class Gl extends m{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Zl(e,t){return Q(e,t,1)}class Kl{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Yl(e,this.callback))}}class Yl extends m{constructor(e,t){super(e),this.add(new d(t))}}let Xl=null;function Jl(){return Xl}const ec={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},tc={"\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"},nc={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"},rc=(()=>{if(Ce.Node)return Ce.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class sc extends class extends class{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n<t.length;n++)if(null!=this.getStyle(e,t[n]+"AnimationName")){this._animationPrefix="-"+t[n].toLowerCase()+"-";break}}const t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(t).forEach(n=>{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new sc,Xl||(Xl=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return ec}contains(e,t){return rc.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&nc.hasOwnProperty(t)&&(t=nc[t]))}return tc[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=oc||(oc=document.querySelector("base"),oc)?oc.getAttribute("href"):null;return null==t?null:(n=t,ic||(ic=document.createElement("a")),ic.setAttribute("href",n),"/"===ic.pathname.charAt(0)?ic.pathname:"/"+ic.pathname);var n}resetBaseElement(){oc=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let ic,oc=null;function ac(){return!!window.history.pushState}const lc=new Te("TRANSITION_ID"),cc=[{provide:Ss,useFactory:function(e,t,n){return()=>{n.get(xs).donePromise.then(()=>{const n=Jl();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[lc,nl,kt],multi:!0}];class uc{static init(){var e;e=new uc,ii=e}addToWindow(e){Ce.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements(),Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(e=>{const t=Ce.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Jl().isShadowRoot(t)?this.findTestabilityInTree(e,Jl().getHost(t),!0):this.findTestabilityInTree(e,Jl().parentElement(t),!0):null}}function hc(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Ce.ng=Ce.ng||{})[e]=t)}const dc=(()=>({ApplicationRef:di,NgZone:Gs}))();function fc(e){return xi(e)}const pc=new Te("EventManagerPlugins");class mc{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}class gc{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Jl().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class yc{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class _c extends yc{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Jl().remove(e))}}const vc={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/"},bc=/%COMP%/g;function wc(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?wc(e,s,n):(s=s.replace(bc,e),n.push(s))}return n}function Sc(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class xc{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ec(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ue.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new kc(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Ue.Native:case Ue.ShadowDom:return new Dc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=wc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class Ec{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(vc[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=vc[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=vc[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&sn.DashCase?e.style.setProperty(t,n,r&sn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&sn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Tc(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Tc(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Sc(n)):this.eventManager.addEventListener(e,t,Sc(n))}}const Cc=(()=>"@".charCodeAt(0))();function Tc(e,t){if(e.charCodeAt(0)===Cc)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class kc extends Ec{constructor(e,t,n,r){super(e),this.component=n;const s=wc(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(bc,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(bc,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Dc extends Ec{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=wc(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const Ac=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Ic=Ac("addEventListener"),Nc=Ac("removeEventListener"),Rc={},Oc="__zone_symbol__propagationStopped",Pc=(()=>{const e="undefined"!=typeof Zone&&Zone[Ac("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Mc=function(e){return!!Pc&&Pc.hasOwnProperty(e)},Fc=function(e){const t=Rc[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[Oc];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};class Lc extends gc{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Oc]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[Ic]||Gs.isInAngularZone()&&!Mc(t))e.addEventListener(t,r,!1);else{let n=Rc[t];n||(n=Rc[t]=Ac("ANGULAR"+t+"FALSE"));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=Mc(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[Ic](t,Fc,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Nc];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=Rc[t],i=s&&e[s];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<i.length;a++)if(i[a].handler===n){o=!0,i.splice(a,1);break}o?0===i.length&&r.apply(e,[t,Fc,!1]):e.removeEventListener.apply(e,[t,n,!1])}}const jc={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},$c=new Te("HammerGestureConfig"),Vc=new Te("HammerLoader");class Uc{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class zc extends gc{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!jc.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded((function(){n(e)}))};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Hc=["alt","control","meta","shift"],Bc={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Wc extends gc{constructor(e){super(e)}supports(e){return null!=Wc.parseEventName(e)}addEventListener(e,t,n){const r=Wc.parseEventName(t),s=Wc.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jl().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Wc._normalizeKey(t.pop());let s="";if(Hc.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=Jl().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Hc.forEach(r=>{r!=n&&(0,Bc[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(e,t,n){return r=>{Wc.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class qc{}class Qc extends qc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case yt.NONE:return t;case yt.HTML:return t instanceof Zc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{mt=mt||new Ke(e);let r=t?String(t):"";n=mt.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=mt.getInertBodyElement(r)}while(r!==i);const o=new ht,a=o.sanitizeChildren(gt(n)||n);return Ze()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=gt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case yt.STYLE:return t instanceof Kc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(bt);return t&&Je(t[1])===t[1]||e.match(vt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(Ze()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case yt.SCRIPT:if(t instanceof Yc)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case yt.URL:return t instanceof Jc||t instanceof Xc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Je(String(t)));case yt.RESOURCE_URL:if(t instanceof Jc)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof Gc)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Zc(e)}bypassSecurityTrustStyle(e){return new Kc(e)}bypassSecurityTrustScript(e){return new Yc(e)}bypassSecurityTrustUrl(e){return new Xc(e)}bypassSecurityTrustResourceUrl(e){return new Jc(e)}}class Gc{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Zc extends Gc{getTypeName(){return"HTML"}}class Kc extends Gc{getTypeName(){return"Style"}}class Yc extends Gc{getTypeName(){return"Script"}}class Xc extends Gc{getTypeName(){return"URL"}}class Jc extends Gc{getTypeName(){return"ResourceURL"}}const eu=li(Ci,"browser",[{provide:Ds,useValue:"browser"},{provide:ks,useValue:function(){sc.makeCurrent(),uc.init()},multi:!0},{provide:sa,useClass:class extends sa{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Jl().getLocation(),this._history=Jl().getHistory()}getBaseHrefFromDOM(){return Jl().getBaseHref(this._doc)}onPopState(e){Jl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Jl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){ac()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){ac()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}},deps:[nl]},{provide:nl,useFactory:function(){return document},deps:[]}]);function tu(){return new qe}class nu{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:nu,providers:[{provide:Es,useValue:e.appId},{provide:lc,useExisting:Es},cc]}}}"undefined"!=typeof window&&window;class ru{constructor(e,t){this.id=e,this.url=t}}class su extends ru{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class iu extends ru{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ou extends ru{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class au extends ru{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lu extends ru{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cu extends ru{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uu extends ru{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hu extends ru{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class du extends ru{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fu{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pu{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mu{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gu{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yu{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _u{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vu{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bu{}class wu{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Su(e){return new wu(e)}function xu(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Eu(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class Cu{constructor(e,t){this.routes=e,this.module=t}}function Tu(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];ku(r,Du(t,r))}}function ku(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Tu(e.children,t)}function Du(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Au(e){const t=e.children&&e.children.map(Au),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=bu),n}function Iu(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],e[s]!==t[s])return!1;return!0}function Nu(e){return Array.prototype.concat.apply([],e)}function Ru(e){return e.length>0?e[e.length-1]:null}function Ou(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Pu(e){return Bt(e)?e:Ht(e)?q(Promise.resolve(e)):ll(e)}function Mu(e,t,n){return n?function(e,t){return Iu(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!$u(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length)return!!$u(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!$u(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!$u(n.segments,e)&&!!n.children.primary&&t(n.children.primary,r,i)}}(t,n,n.segments)}(e.root,t.root)}class Fu{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Su(this.queryParams)),this._queryParamMap}toString(){return Hu.serialize(this)}}class Lu{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Ou(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bu(this)}}class ju{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Su(this.parameters)),this._parameterMap}toString(){return Ku(this)}}function $u(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Vu(e,t){let n=[];return Ou(e.children,(e,r)=>{"primary"===r&&(n=n.concat(t(e,r)))}),Ou(e.children,(e,r)=>{"primary"!==r&&(n=n.concat(t(e,r)))}),n}class Uu{}class zu{parse(e){const t=new th(e);return new Fu(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Bu(t);if(n){const n=t.children.primary?e(t.children.primary,!1):"",r=[];return Ou(t.children,(t,n)=>{"primary"!==n&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Vu(t,(n,r)=>"primary"===r?[e(t.children.primary,!1)]:[`${r}:${e(n,!1)}`]);return`${Bu(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${qu(t)}=${qu(e)}`).join("&"):`${qu(t)}=${qu(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Hu=new zu;function Bu(e){return e.segments.map(e=>Ku(e)).join("/")}function Wu(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qu(e){return Wu(e).replace(/%3B/gi,";")}function Qu(e){return Wu(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gu(e){return decodeURIComponent(e)}function Zu(e){return Gu(e.replace(/\+/g,"%20"))}function Ku(e){return`${Qu(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Qu(e)}=${Qu(t[e])}`).join("")}`;var t}const Yu=/^[^\/()?;=#]+/;function Xu(e){const t=e.match(Yu);return t?t[0]:""}const Ju=/^[^=?&#]+/,eh=/^[^?&#]+/;class th{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lu([],{}):new Lu([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Lu(e,t)),n}parseSegment(){const e=Xu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ju(Gu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Xu(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Xu(this.remaining);e&&(n=e,this.capture(n))}e[Gu(t)]=Gu(n)}parseQueryParam(e){const t=function(e){const t=e.match(Ju);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(eh);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=Zu(t),s=Zu(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Xu(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s="primary");const i=this.parseChildren();t[s]=1===Object.keys(i).length?i.primary:new Lu([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class nh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=rh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=rh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=sh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return sh(e,this._root).map(e=>e.value)}}function rh(e,t){if(e===t.value)return t;for(const n of t.children){const t=rh(e,n);if(t)return t}return null}function sh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=sh(e,n);if(r.length)return r.unshift(t),r}return[]}class ih{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function oh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class ah extends nh{constructor(e,t){super(e),this.snapshot=t,fh(this,e)}toString(){return this.snapshot.toString()}}function lh(e,t){const n=function(e,t){const n=new hh([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dh("",new ih(n,[]))}(e,t),r=new cl([new ju("",{})]),s=new cl({}),i=new cl({}),o=new cl({}),a=new cl(""),l=new ch(r,s,o,a,i,"primary",t,n.root);return l.snapshot=n.root,new ah(new ih(l,[]),n)}class ch{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(e=>Su(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(e=>Su(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uh(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class hh{constructor(e,t,n,r,s,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Su(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Su(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dh extends nh{constructor(e,t){super(t),this.url=e,fh(this,t)}toString(){return ph(this._root)}}function fh(e,t){t.value._routerState=e,t.children.forEach(t=>fh(e,t))}function ph(e){const t=e.children.length>0?` { ${e.children.map(ph).join(", ")} } `:"";return`${e.value}${t}`}function mh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Iu(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Iu(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Iu(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Iu(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function gh(e,t){var n,r;return Iu(e.params,t.params)&&$u(n=e.url,r=t.url)&&n.every((e,t)=>Iu(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||gh(e.parent,t.parent))}function yh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function _h(e,t,n,r,s){let i={};return r&&Ou(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Fu(n.root===e?t:function e(t,n,r){const s={};return Ou(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Lu(t.segments,s)}(n.root,e,t),i,s)}class vh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&yh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Ru(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class bh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function wh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:`${e}`}function Sh(e,t,n){if(e||(e=new Lu([],{})),0===e.segments.length&&e.hasChildren())return xh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=wh(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!kh(o,a,t))return i;r+=2}else{if(!kh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Lu(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new Lu(e.segments.slice(r.pathIndex),e.children),xh(t,0,s)}return r.match&&0===s.length?new Lu(e.segments,{}):r.match&&!e.hasChildren()?Eh(e,t,n):r.match?xh(e,0,s):Eh(e,t,n)}function xh(e,t,n){if(0===n.length)return new Lu(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{primary:e}:void 0===e[0].outlets?{primary:e}:e[0].outlets}(n),s={};return Ou(r,(n,r)=>{null!==n&&(s[r]=Sh(e.children[r],t,n))}),Ou(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Lu(e.segments,s)}}function Eh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=Ch(n[s].outlets);return new Lu(r,e)}if(0===s&&yh(n[0])){r.push(new ju(e.segments[t].path,n[0])),s++;continue}const i=wh(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&yh(o)?(r.push(new ju(i,Th(o))),s+=2):(r.push(new ju(i,{})),s++)}return new Lu(r,{})}function Ch(e){const t={};return Ou(e,(e,n)=>{null!==e&&(t[n]=Eh(new Lu([],{}),0,e))}),t}function Th(e){const t={};return Ou(e,(e,n)=>t[n]=`${e}`),t}function kh(e,t,n){return e==n.path&&Iu(t,n.parameters)}class Dh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),mh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=oh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Ou(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=oh(e),s=e.value.component?n.children:t;Ou(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=oh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new _u(e.value.snapshot))}),e.children.length&&this.forwardEvent(new gu(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(mh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Ah(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Ah(e){mh(e.value),e.children.forEach(Ah)}function Ih(e){return"function"==typeof e}function Nh(e){return e instanceof Fu}class Rh{constructor(e){this.segmentGroup=e||null}}class Oh{constructor(e){this.urlTree=e}}function Ph(e){return new w(t=>t.error(new Rh(e)))}function Mh(e){return new w(t=>t.error(new Oh(e)))}function Fh(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Lh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Le)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(z(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pl(e=>{if(e instanceof Oh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Rh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(z(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Pl(e=>{if(e instanceof Rh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Lu([],{primary:e}):e;return new Fu(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(z(e=>new Lu([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return ll({});const n=[],r=[],s={};return Ou(e,(e,i)=>{const o=t(i,e).pipe(z(e=>s[i]=e));"primary"===i?n.push(o):r.push(o)}),ll.apply(null,n.concat(r)).pipe(gl(),Ol(),z(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return ll(...n).pipe(z(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(Pl(e=>{if(e instanceof Rh)return ll(null);throw e}))),gl(),Vl(e=>!!e),Pl((e,n)=>{if(e instanceof hl||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return ll(new Lu([],{}));throw new Rh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Uh(r)!==i?Ph(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Ph(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mh(s):this.lineralizeSegments(n,s).pipe(Q(n=>{const s=new Lu(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=jh(t,r,s);if(!o)return Ph(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Mh(u):this.lineralizeSegments(r,u).pipe(Q(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(z(e=>(n._loadedConfig=e,new Lu(r,{})))):ll(new Lu(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=jh(t,n,r);if(!s)return Ph(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(Q(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>Vh(e,t,n)&&"primary"!==Uh(n))}(e,n,r)?{segmentGroup:$h(new Lu(t,function(e,t){const n={};n.primary=t;for(const r of e)""===r.path&&"primary"!==Uh(r)&&(n[Uh(r)]=new Lu([],{}));return n}(r,new Lu(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Vh(e,t,n))}(e,n,r)?{segmentGroup:$h(new Lu(e.segments,function(e,t,n,r){const s={};for(const i of n)Vh(e,t,i)&&!r[Uh(i)]&&(s[Uh(i)]=new Lu([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(z(e=>new Lu(i,e))):0===r.length&&0===o.length?ll(new Lu(i,{})):this.expandSegment(n,s,r,o,"primary",!0).pipe(z(e=>new Lu(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?ll(new Cu(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?ll(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?q(r).pipe(z(r=>{const s=e.get(r);let i;if(function(e){return e&&Ih(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!Ih(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Pu(i)})).pipe(gl(),(s=e=>!0===e,e=>e.lift(new Ul(s,void 0,e)))):ll(!0);var s}(e.injector,t,n).pipe(Q(n=>n?this.configLoader.load(e.injector,t).pipe(z(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error(xu(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):ll(new Cu([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ll(n);if(r.numberOfChildren>1||!r.children.primary)return Fh(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Fu(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Ou(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return Ou(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Lu(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function jh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Eu)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $h(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Lu(e.segments.concat(t.segments),t.children)}return e}function Vh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Uh(e){return e.outlet||"primary"}class zh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Hh{constructor(e,t){this.component=e,this.route=t}}function Bh(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=oh(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!$u(e.url,t.url);case"pathParamsOrQueryParamsChange":return!$u(e.url,t.url)||!Iu(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gh(e,t)||!Iu(e.queryParams,t.queryParams);case"paramsChange":default:return!gh(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new zh(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new Hh(l&&l.outlet&&l.outlet.component||null,a))}else a&&qh(n,l,i),i.canActivateChecks.push(new zh(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),Ou(o,(e,t)=>qh(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function Wh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function qh(e,t,n){const r=oh(e),s=e.value;Ou(r,(e,r)=>{qh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Hh(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Qh=Symbol("INITIAL_VALUE");function Gh(){return Hl(e=>function(...e){let t=null,n=null;return A(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),W(e,n).lift(new fl(t))}(...e.map(e=>e.pipe(Ll(1),function(...e){return t=>{let n=e[e.length-1];A(n)?e.pop():n=null;const r=e.length;return function(...e){return gl()(ll(...e))}(1!==r||n?r>0?W(e,n):ol(n):al(e[0]),t)}}(Qh)))).pipe(ql((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Qh)return e;if(r===Qh&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||Nh(r))return r}return e},e)},Qh),yl(e=>e!==Qh),z(e=>Nh(e)?e:!0===e),Ll(1)))}function Zh(e,t){return null!==e&&t&&t(new yu(e)),ll(!0)}function Kh(e,t){return null!==e&&t&&t(new mu(e)),ll(!0)}function Yh(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?ll(r.map(r=>ml(()=>{const s=Wh(r,t,n);let i;if(function(e){return e&&Ih(e.canActivate)}(s))i=Pu(s.canActivate(t,e));else{if(!Ih(s))throw new Error("Invalid CanActivate guard");i=Pu(s(t,e))}return i.pipe(Vl())}))).pipe(Gh()):ll(!0)}function Xh(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>ml(()=>ll(t.guards.map(s=>{const i=Wh(s,t.node,n);let o;if(function(e){return e&&Ih(e.canActivateChild)}(i))o=Pu(i.canActivateChild(r,e));else{if(!Ih(i))throw new Error("Invalid CanActivateChild guard");o=Pu(i(r,e))}return o.pipe(Vl())})).pipe(Gh())));return ll(s).pipe(Gh())}class Jh{}class ed{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const e=rd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new hh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ih(n,t),s=new dh(this.url,r);return this.inheritParamsAndData(s._root),ll(s)}catch(e){return new w(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=uh(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Vu(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Jh))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Jh}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Jh;if((e.outlet||"primary")!==r)throw new Jh;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?Ru(n).parameters:{};s=new hh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,od(e),r,e.component,e,td(t),nd(t)+n.length,ad(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Jh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Eu)(n,e,t);if(!r)throw new Jh;const s={};Ou(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new hh(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,od(e),r,e.component,e,td(t),nd(t)+i.length,ad(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=rd(t,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new ih(s,e)]}if(0===a.length&&0===c.length)return[new ih(s,[])];const u=this.processSegment(a,l,c,"primary");return[new ih(s,u)]}}function td(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function nd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function rd(e,t,n,r,s){if(n.length>0&&function(e,t,n){return n.some(n=>sd(e,t,n)&&"primary"!==id(n))}(e,n,r)){const s=new Lu(t,function(e,t,n,r){const s={};s.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&"primary"!==id(i)){const n=new Lu([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[id(i)]=n}return s}(e,t,r,new Lu(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>sd(e,t,n))}(e,n,r)){const i=new Lu(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(sd(e,n,a)&&!s[id(a)]){const n=new Lu([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[id(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Lu(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function sd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function id(e){return e.outlet||"primary"}function od(e){return e.data||{}}function ad(e){return e.resolve||{}}function ld(e,t,n,r){const s=Wh(e,t,r);return Pu(s.resolve?s.resolve(t,n):s(t,n))}function cd(e){return function(t){return t.pipe(Hl(t=>{const n=e(t);return n?q(n).pipe(z(()=>t)):q([t])}))}}class ud{}class hd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const dd=new Te("ROUTES");class fd{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(z(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Cu(Nu(r.injector.get(dd)).map(Au),r)}))}loadModuleFactory(e){return"string"==typeof e?q(this.loader.load(e)):Pu(e()).pipe(Q(e=>e instanceof je?ll(e):q(this.compiler.compileModuleAsync(e))))}}class pd{}class md{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function gd(e){throw e}function yd(e,t,n){return t.parse("/")}function _d(e,t){return ll(null)}class vd{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=gd,this.malformedUriErrorHandler=yd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_d,afterPreactivation:_d},this.urlHandlingStrategy=new md,this.routeReuseStrategy=new hd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Le),this.console=s.get(Is);const l=s.get(Gs);this.isNgZoneEnabled=l instanceof Gs,this.resetConfig(a),this.currentUrlTree=new Fu(new Lu([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fd(i,o,e=>this.triggerEvent(new fu(e)),e=>this.triggerEvent(new pu(e))),this.routerState=lh(this.currentUrlTree,this.rootComponentType),this.transitions=new cl({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(yl(e=>0!==e.id),z(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Hl(e=>{let n=!1,r=!1;return ll(e).pipe(Cl(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Hl(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return ll(e).pipe(Hl(e=>{const n=this.transitions.getValue();return t.next(new su(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?il:[e]}),Hl(e=>Promise.resolve(e)),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,function(e){return e.pipe(Hl(e=>function(e,t,n,r,s){return new Lh(e,t,n,r,s).apply()}(r,s,i,e.extractedUrl,o).pipe(z(t=>Object.assign({},e,{urlAfterRedirects:t})))))}),Cl(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Q(i=>function(e,t,n,r,s="emptyOnly",i="legacy"){return new ed(e,t,n,r,s,i).recognize()}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(z(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Cl(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Cl(e=>{const n=new lu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,a=new su(n,this.serializeUrl(r),s,i);t.next(a);const l=lh(r,this.rootComponentType).snapshot;return ll(Object.assign({},e,{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),il}),cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Cl(e=>{const t=new cu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),z(e=>Object.assign({},e,{guards:Bh(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?ll(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return q(e).pipe(Q(e=>function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?ll(i.map(i=>{const o=Wh(i,t,s);let a;if(function(e){return e&&Ih(e.canDeactivate)}(o))a=Pu(o.canDeactivate(e,t,n,r));else{if(!Ih(o))throw new Error("Invalid CanDeactivate guard");a=Pu(o(e,t,n,r))}return a.pipe(Vl())})).pipe(Gh()):ll(!0)}(e.component,e.route,n,t,r)),Vl(e=>!0!==e,!0))}(o,r,s,e).pipe(Q(n=>n&&"boolean"==typeof n?function(e,t,n,r){return q(t).pipe(Zl(t=>q([Kh(t.route.parent,r),Zh(t.route,r),Xh(e,t.path,n),Yh(e,t.route,n)]).pipe(gl(),Vl(e=>!0!==e,!0))),Vl(e=>!0!==e,!0))}(r,i,e,t):ll(n)),z(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Cl(e=>{if(Nh(e.guardsResult)){const t=xu(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Cl(e=>{const t=new uu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),yl(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ou(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),cd(e=>{if(e.guards.canActivateChecks.length)return ll(e).pipe(Cl(e=>{const t=new hu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),(t=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(e){return e.pipe(Q(e=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=e;return s.length?q(s).pipe(Zl(e=>function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return ll({});if(1===s.length){const i=s[0];return ld(e[i],t,n,r).pipe(z(e=>({[i]:e})))}const i={};return q(s).pipe(Q(s=>ld(e[s],t,n,r).pipe(z(e=>(i[s]=e,e))))).pipe(Ol(),z(()=>i))}(e._resolve,e,t,r).pipe(z(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,uh(e,n).resolve),null)))}(e.route,r,t,n)),function(e,t){return arguments.length>=2?function(n){return v(ql(e,t),Sl(1),Il(t))(n)}:function(t){return v(ql((t,n,r)=>e(t,n,r+1)),Sl(1))(t)}}((e,t)=>e),z(t=>e)):ll(e)}))}),Cl(e=>{const t=new du(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}));var t,n}),cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),z(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new ih(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new ch(new cl((s=n.value).url),new cl(s.params),new cl(s.queryParams),new cl(s.fragment),new cl(s.data),s.outlet,s.component,s),i=n.children.map(n=>e(t,n));return new ih(r,i)}}var s}(e,t._root,n?n._root:void 0);return new ah(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Cl(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),z(e=>(new Dh(o,e.targetRouterState,e.currentRouterState,a).activate(i),e))),Cl({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new ou(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new Kl(s))),Pl(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Nh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new ou(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new au(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var s;return il}));var s,i,o,a}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Tu(e),this.config=e.map(Au),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=t;Ze()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let u=null;if(o)switch(o){case"merge":u=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=i?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,s){if(0===n.length)return _h(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new vh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Ou(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new vh(n,t,r)}(n);if(i.toRoot())return _h(t.root,new Lu([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new bh(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new bh(n.snapshot._urlSegment,!0,0);const r=yh(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new bh(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?xh(o.segmentGroup,o.index,i.commands):Sh(o.segmentGroup,o.index,i.commands);return _h(o.segmentGroup,a,t,r,s)}(l,this.currentUrlTree,e,u,c)}navigateByUrl(e,t={skipLocationChange:!1}){Ze()&&this.isNgZoneEnabled&&!Gs.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Nh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Nh(e))return Mu(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Mu(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new iu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class bd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new wd,this.attachRef=null}}class wd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new bd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Sd{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new vs,this.deactivateEvents=new vs,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new xd(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class xd{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===ch?this.route:e===wd?this.childContexts:this.parent.get(e,t)}}class Ed{}class Cd{preload(e,t){return t().pipe(Pl(()=>ll(null)))}}class Td{preload(e,t){return ll(null)}}class kd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new fd(t,n,t=>e.triggerEvent(new fu(t)),t=>e.triggerEvent(new pu(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(yl(e=>e instanceof iu),Zl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Le);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return q(n).pipe(Y(),z(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Dd{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof su?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof iu&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof vu&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new vu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Ad=new Te("ROUTER_CONFIGURATION"),Id=new Te("ROUTER_FORROOT_GUARD"),Nd=[la,{provide:Uu,useClass:zu},{provide:vd,useFactory:jd,deps:[di,Uu,wd,la,kt,pi,Ls,dd,Ad,[pd,new le],[ud,new le]]},wd,{provide:ch,useFactory:$d,deps:[vd]},{provide:pi,useClass:yi},kd,Td,Cd,{provide:Ad,useValue:{enableTracing:!1}}];function Rd(){return new ai("Router",vd)}class Od{constructor(e,t){}static forRoot(e,t){return{ngModule:Od,providers:[Nd,Ld(e),{provide:Id,useFactory:Fd,deps:[[vd,new le,new ue]]},{provide:Ad,useValue:t||{}},{provide:oa,useFactory:Md,deps:[sa,[new ae(aa),new le],Ad]},{provide:Dd,useFactory:Pd,deps:[vd,rl,Ad]},{provide:Ed,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Td},{provide:ai,multi:!0,useFactory:Rd},[Vd,{provide:Ss,multi:!0,useFactory:Ud,deps:[Vd]},{provide:Hd,useFactory:zd,deps:[Vd]},{provide:As,multi:!0,useExisting:Hd}]]}}static forChild(e){return{ngModule:Od,providers:[Ld(e)]}}}function Pd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Dd(e,t,n)}function Md(e,t,n={}){return n.useHash?new ua(e,t):new ha(e,t)}function Fd(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ld(e){return[{provide:Mt,multi:!0,useValue:e},{provide:dd,multi:!0,useValue:e}]}function jd(e,t,n,r,s,i,o,a,l={},c,u){const h=new vd(null,t,n,r,s,i,o,Nu(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Jl();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function $d(e){return e.routerState.root}class Vd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(ia,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(vd),r=this.injector.get(Ad);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?ll(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Ad),n=this.injector.get(kd),r=this.injector.get(Dd),s=this.injector.get(vd),i=this.injector.get(di);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Ud(e){return e.appInitializer.bind(e)}function zd(e){return e.bootstrapListener.bind(e)}const Hd=new Te("Router Initializer");var Bd=Hn({encapsulation:2,styles:[],data:{}});function Wd(e){return Gi(0,[(e()(),Ri(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Yr(1,212992,null,0,Sd,[wd,kn,Kt,[8,null],xt],null,null)],(function(e,t){e(t,1,0)}),null)}function qd(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ng-component",[],null,null,null,Wd,Bd)),Yr(1,49152,null,0,bu,[],null,null)],null,null)}var Qd=kr("ng-component",bu,qd,{},{},[]);const Gd=new Te("NgValueAccessor");class Zd{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}class Kd{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function Yd(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class Xd{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Yd(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Yd(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}const Jd=new Te("NgFormSelectorWarning");class ef{}class tf{static withConfig(e){return{ngModule:tf,providers:[{provide:Jd,useValue:e.warnOnDeprecatedNgFormSelector}]}}}function nf(e,t,n,s){return r(n)&&(s=n,n=void 0),s?nf(e,t,n).pipe(z(e=>l(e)?s(...e):s(e))):new w(r=>{!function e(t,n,r,s,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,r,i),o=()=>e.removeEventListener(n,r,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,r),o=()=>e.off(n,r)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,r),o=()=>e.removeListener(n,r)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,r,s,i)}s.add(o)}(e,t,(function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),r,n)})}function rf(e){return t=>t.lift(new sf(e))}class sf{constructor(e){this.notifier=e}call(e,t){const n=new of(e),r=V(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class of extends U{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,r,s){this.seenValue=!0,this.complete()}notifyComplete(){}}function af(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new lf(e,n))}}class lf{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new cf(e,this.observables,this.project))}}class cf extends U{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++){let e=t[s];this.add(V(this,e,e,s))}}notifyNext(e,t,n,r,s){this.values[n]=t;const i=this.toRespond;if(i.length>0){const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function uf(e){return parseInt(`${e}`,10)}function hf(e){return null!=e?`${e}`:""}function df(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function ff(e){return null!=e}function pf(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});class mf{}let gf=(()=>{class e{constructor(){this.dismissible=!0,this.type="warning"}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();class yf{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new vs,this.dismissible=e.dismissible,this.type=e.type}closeHandler(){this.close.emit(null)}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}class _f{}class vf{}class bf{}class wf{}class Sf{static from(e){return e instanceof Sf?e:e?new Sf(e.year,e.month,e.day):null}constructor(e,t,n){this.year=df(e)?e:null,this.month=df(t)?t:null,this.day=df(n)?n:null}equals(e){return e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day<e.day:this.month<e.month:this.year<e.year)}after(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day>e.day:this.month>e.month:this.year>e.year)}}function xf(e){return new Sf(e.getFullYear(),e.getMonth()+1,e.getDate())}function Ef(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function Cf(){return new kf}let Tf=(()=>{class e{}return e.ngInjectableDef=fe({factory:Cf,token:e,providedIn:"root"}),e})();class kf extends Tf{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let r=Ef(e),s=!0,i=r.getMonth();switch(t){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":i+=n,r.setMonth(i),i%=12,i<0&&(i+=12);break;case"d":r.setDate(r.getDate()+n),s=!1;break;default:return e}return s&&r.getMonth()!==i&&r.setDate(0),xf(r)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=Ef(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=Ef(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return xf(new Date)}isValid(e){if(!(e&&df(e.year)&&df(e.month)&&df(e.day)))return!1;if(0===e.year)return!1;const t=Ef(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}}function Df(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function Af(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function If(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e}function Nf(e,t){const{minDate:n,maxDate:r,disabled:s,markDisabled:i}=t;return!(!ff(e)||s||i&&i(e,{year:e.year,month:e.month})||n&&e.before(n)||r&&e.after(r))}let Rf=(()=>{class e{getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}}return e.ngInjectableDef=fe({factory:function(){return e=Oe(Ns),new Of(e);var e},token:e,providedIn:"root"}),e})();class Of extends Rf{constructor(e){super(),this._locale=e;const t=ya(e,fa.Standalone,pa.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=_a(e,fa.Standalone,pa.Abbreviated),this._monthsFull=_a(e,fa.Standalone,pa.Wide)}getWeekdayShortName(e){return this._weekdaysShort[e-1]}getMonthShortName(e){return this._monthsShort[e-1]}getMonthFullName(e){return this._monthsFull[e-1]}getDayAriaLabel(e){return function(e,t,n,r){let s=function(e){if(Va(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(Ta))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!Va(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return _s(e)[ms.LocaleId]}(t);if(ka[r]=ka[r]||{},ka[r][n])return ka[r][n];let s="";switch(n){case"shortDate":s=va(t,ma.Short);break;case"mediumDate":s=va(t,ma.Medium);break;case"longDate":s=va(t,ma.Long);break;case"fullDate":s=va(t,ma.Full);break;case"shortTime":s=ba(t,ma.Short);break;case"mediumTime":s=ba(t,ma.Medium);break;case"longTime":s=ba(t,ma.Long);break;case"fullTime":s=ba(t,ma.Full);break;case"short":const n=e(t,"shortTime"),r=e(t,"shortDate");s=Ra(wa(t,ma.Short),[n,r]);break;case"medium":const i=e(t,"mediumTime"),o=e(t,"mediumDate");s=Ra(wa(t,ma.Medium),[i,o]);break;case"long":const a=e(t,"longTime"),l=e(t,"longDate");s=Ra(wa(t,ma.Long),[a,l]);break;case"full":const c=e(t,"fullTime"),u=e(t,"fullDate");s=Ra(wa(t,ma.Full),[c,u])}return s&&(ka[r][n]=s),s}(n,t)||t;let i,o=[];for(;t;){if(i=Da.exec(t),!i){o.push(t);break}{o=o.concat(i.slice(1));const e=o.pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();r&&(a=$a(r,a),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*($a(t,r)-r))}(s,r));let l="";return o.forEach(e=>{const t=function(e){if(ja[e])return ja[e];let t;switch(e){case"G":case"GG":case"GGG":t=Ma(Na.Eras,pa.Abbreviated);break;case"GGGG":t=Ma(Na.Eras,pa.Wide);break;case"GGGGG":t=Ma(Na.Eras,pa.Narrow);break;case"y":t=Pa(Ia.FullYear,1,0,!1,!0);break;case"yy":t=Pa(Ia.FullYear,2,0,!0,!0);break;case"yyy":t=Pa(Ia.FullYear,3,0,!1,!0);break;case"yyyy":t=Pa(Ia.FullYear,4,0,!1,!0);break;case"M":case"L":t=Pa(Ia.Month,1,1);break;case"MM":case"LL":t=Pa(Ia.Month,2,1);break;case"MMM":t=Ma(Na.Months,pa.Abbreviated);break;case"MMMM":t=Ma(Na.Months,pa.Wide);break;case"MMMMM":t=Ma(Na.Months,pa.Narrow);break;case"LLL":t=Ma(Na.Months,pa.Abbreviated,fa.Standalone);break;case"LLLL":t=Ma(Na.Months,pa.Wide,fa.Standalone);break;case"LLLLL":t=Ma(Na.Months,pa.Narrow,fa.Standalone);break;case"w":t=La(1);break;case"ww":t=La(2);break;case"W":t=La(1,!0);break;case"d":t=Pa(Ia.Date,1);break;case"dd":t=Pa(Ia.Date,2);break;case"E":case"EE":case"EEE":t=Ma(Na.Days,pa.Abbreviated);break;case"EEEE":t=Ma(Na.Days,pa.Wide);break;case"EEEEE":t=Ma(Na.Days,pa.Narrow);break;case"EEEEEE":t=Ma(Na.Days,pa.Short);break;case"a":case"aa":case"aaa":t=Ma(Na.DayPeriods,pa.Abbreviated);break;case"aaaa":t=Ma(Na.DayPeriods,pa.Wide);break;case"aaaaa":t=Ma(Na.DayPeriods,pa.Narrow);break;case"b":case"bb":case"bbb":t=Ma(Na.DayPeriods,pa.Abbreviated,fa.Standalone,!0);break;case"bbbb":t=Ma(Na.DayPeriods,pa.Wide,fa.Standalone,!0);break;case"bbbbb":t=Ma(Na.DayPeriods,pa.Narrow,fa.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ma(Na.DayPeriods,pa.Abbreviated,fa.Format,!0);break;case"BBBB":t=Ma(Na.DayPeriods,pa.Wide,fa.Format,!0);break;case"BBBBB":t=Ma(Na.DayPeriods,pa.Narrow,fa.Format,!0);break;case"h":t=Pa(Ia.Hours,1,-12);break;case"hh":t=Pa(Ia.Hours,2,-12);break;case"H":t=Pa(Ia.Hours,1);break;case"HH":t=Pa(Ia.Hours,2);break;case"m":t=Pa(Ia.Minutes,1);break;case"mm":t=Pa(Ia.Minutes,2);break;case"s":t=Pa(Ia.Seconds,1);break;case"ss":t=Pa(Ia.Seconds,2);break;case"S":t=Pa(Ia.FractionalSeconds,1);break;case"SS":t=Pa(Ia.FractionalSeconds,2);break;case"SSS":t=Pa(Ia.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Fa(Aa.Short);break;case"ZZZZZ":t=Fa(Aa.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Fa(Aa.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Fa(Aa.Long);break;default:return null}return ja[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}class Pf{constructor(e,t){this._calendar=e,this._i18n=t,this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(df(e=uf(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(df(e=uf(e))&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{const t=this.toValidDate(e,null);if(Df(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(Df(this._state.minDate,t))return{minDate:t}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}}},this._model$=new k,this._dateSelect$=new k,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}get model$(){return this._model$.pipe(yl(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(yl(e=>null!==e))}set(e){let t=Object.keys(e).map(t=>this._VALIDATORS[t](e[t])).reduce((e,t)=>Object.assign({},e,t),{});Object.keys(t).length>0&&this._nextState(t)}focus(e){!this._state.disabled&&this._calendar.isValid(e)&&Df(this._state.focusDate,e)&&this._nextState({focusDate:e})}focusSelect(){Nf(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());this._state.disabled||this._state.firstDate&&!Af(this._state.firstDate,e)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);this._state.disabled||(Df(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&Nf(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=Sf.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:r,focusDate:s,focusVisible:i,disabled:o,outsideDays:a}=e;e.months.forEach(e=>{e.weeks.forEach(l=>{l.days.forEach(l=>{s&&(l.context.focused=s.equals(l.date)&&i),l.tabindex=!o&&l.date.equals(s)&&s.month===e.number?0:-1,!0===o&&(l.context.disabled=!0),void 0!==r&&(l.context.selected=null!==r&&r.equals(l.date)),e.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(t[0].firstDate)&&l.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}(t.minDate,t.maxDate),t.focusDate=If(t.focusDate,t.minDate,t.maxDate),t.firstDate=If(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=If(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=If(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const r=function(e,t,n,r,s){const{displayMonths:i,months:o}=n,a=o.splice(0,o.length);return Array.from({length:i},(n,r)=>{const i=Object.assign(e.getNext(t,"m",r),{day:1});if(o[r]=null,!s){const e=a.findIndex(e=>e.firstDate.equals(i));-1!==e&&(o[r]=a.splice(e,1)[0])}return i}).forEach((t,s)=>{null===o[s]&&(o[s]=function(e,t,n,r,s={}){const{dayTemplateData:i,minDate:o,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u}=n,h=e.getToday();s.firstDate=null,s.lastDate=null,s.number=t.month,s.year=t.year,s.weeks=s.weeks||[],s.weekdays=s.weekdays||[],t=function(e,t,n){const r=e.getDaysPerWeek(),s=new Sf(t.year,t.month,1),i=e.getWeekday(s)%r;return e.getPrev(s,"d",(r+i-n)%r)}(e,t,l);for(let d=0;d<e.getWeeksPerMonth();d++){let n=s.weeks[d];n||(n=s.weeks[d]={number:0,days:[],collapsed:!0});const f=n.days;for(let l=0;l<e.getDaysPerWeek();l++){0===d&&(s.weekdays[l]=e.getWeekday(t));const n=new Sf(t.year,t.month,t.day),u=e.getNext(n),p=r.getDayAriaLabel(n);let m=!!(o&&n.before(o)||a&&n.after(a));!m&&c&&(m=c(n,{month:s.number,year:s.year}));let g=n.equals(h),y=i?i(n,{month:s.number,year:s.year}):void 0;null===s.firstDate&&n.month===s.number&&(s.firstDate=n),n.month===s.number&&u.month!==s.number&&(s.lastDate=n);let _=f[l];_||(_=f[l]={}),_.date=n,_.context=Object.assign(_.context||{},{$implicit:n,date:n,data:y,currentMonth:s.number,currentYear:s.year,disabled:m,focused:!1,selected:!1,today:g}),_.tabindex=-1,_.ariaLabel=p,_.hidden=!1,t=u}n.number=e.getWeekNumber(f.map(e=>e.date),l),n.collapsed="collapsed"===u&&f[0].date.month!==s.number&&f[f.length-1].date.month!==s.number}return s}(e,t,n,r,a.shift()||{}))}),o}(this._calendar,n,t,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e);t.months=r,t.firstDate=r.length>0?r[0].firstDate:void 0,t.lastDate=r.length>0?r[r.length-1].lastDate:void 0,"selectedDate"in e&&!Nf(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(void 0===t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const s=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,i=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||s)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const r=t?Math.max(t.year,e.year-500):e.year-10,s=(n?Math.min(n.year,e.year+500):e.year+10)-r+1,i=Array(s);for(let o=0;o<s;o++)i[o]=r+o;return i}(t.firstDate,t.minDate,t.maxDate)),("minDate"in e||"maxDate"in e||0===t.selectBoxes.months.length||s)&&(t.selectBoxes.months=function(e,t,n,r){if(!t)return[];let s=e.getMonths(t.year);if(n&&t.year===n.year){const e=s.findIndex(e=>e===n.month);s=s.slice(e)}if(r&&t.year===r.year){const e=s.findIndex(e=>e===r.month);s=s.slice(0,e+1)}return s}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(i||s||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const r=Object.assign(e.getPrev(t,"m"),{day:1});return n&&(r.year===n.year&&r.month<n.month||r.year<n.year&&1===n.month)}(this._calendar,t.firstDate,t.minDate),t.nextDisabled=t.disabled||function(e,t,n){const r=Object.assign(e.getNext(t,"m"),{day:1});return n&&r.after(n)}(this._calendar,t.lastDate,t.maxDate))}return t}}const Mf=function(){var e={Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40};return e[e.Tab]="Tab",e[e.Enter]="Enter",e[e.Escape]="Escape",e[e.Space]="Space",e[e.PageUp]="PageUp",e[e.PageDown]="PageDown",e[e.End]="End",e[e.Home]="Home",e[e.ArrowLeft]="ArrowLeft",e[e.ArrowUp]="ArrowUp",e[e.ArrowRight]="ArrowRight",e[e.ArrowDown]="ArrowDown",e}();let Ff=(()=>{class e{processKey(e,t,n){const r=t.state;switch(e.which){case Mf.PageUp:t.focusDate(n.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case Mf.PageDown:t.focusDate(n.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case Mf.End:t.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case Mf.Home:t.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case Mf.ArrowLeft:t.focusDate(n.getPrev(r.focusedDate,"d",1));break;case Mf.ArrowUp:t.focusDate(n.getPrev(r.focusedDate,"d",n.getDaysPerWeek()));break;case Mf.ArrowRight:t.focusDate(n.getNext(r.focusedDate,"d",1));break;case Mf.ArrowDown:t.focusDate(n.getNext(r.focusedDate,"d",n.getDaysPerWeek()));break;case Mf.Enter:case Mf.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Lf=function(){var e={PREV:0,NEXT:1};return e[e.PREV]="PREV",e[e.NEXT]="NEXT",e}();let jf=(()=>{class e{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();function $f(){return new Uf}let Vf=(()=>{class e{}return e.ngInjectableDef=fe({factory:$f,token:e,providedIn:"root"}),e})();class Uf extends Vf{fromModel(e){return e&&df(e.year)&&df(e.month)&&df(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&df(e.year)&&df(e.month)&&df(e.day)?{year:e.year,month:e.month,day:e.day}:null}}class zf{constructor(e,t,n,r,s,i,o,a,l){this._service=e,this._calendar=t,this.i18n=n,this._keyboardService=s,this._elementRef=o,this._ngbDateAdapter=a,this._ngZone=l,this._destroyed$=new k,this._publicState={},this.navigate=new vs,this.dateSelect=new vs,this.select=this.dateSelect,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(e=>this[e]=r[e]),e.dateSelect$.pipe(rf(this._destroyed$)).subscribe(e=>{this.dateSelect.emit(e)}),e.model$.pipe(rf(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:e.maxDate,minDate:e.minDate,firstDate:e.firstDate,lastDate:e.lastDate,focusedDate:e.focusDate};let r=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const s=e.selectedDate,o=e.focusDate,a=this.model?this.model.focusDate:null;this.model=e,Df(s,this._controlValue)&&(this._controlValue=s,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(s))),Df(o,a)&&a&&e.focusVisible&&this.focus(),i.markForCheck()})}get state(){return this._publicState}focusDate(e){this._service.focus(Sf.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Ll(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Sf.from(e?e.day?e:Object.assign({},e,{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=nf(this._monthsEl.nativeElement,"focusin"),t=nf(this._monthsEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;X(e,t).pipe(yl(({target:e,relatedTarget:t})=>!(pf(e,"ngb-dp-day")&&pf(t,"ngb-dp-day")&&n.contains(e)&&n.contains(t))),rf(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===e})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(t=>e[t]=this[t]),this._service.set(e),this.navigateTo(this.startDate)}}ngOnChanges(e){const t={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(t=>t in e).forEach(e=>t[e]=this[e]),this._service.set(t),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;Af(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onKeyDown(e){this._keyboardService.processKey(e,this,this._calendar)}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Lf.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Lf.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=Sf.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}class Hf{constructor(e){this.i18n=e,this.select=new vs}doSelect(e){e.context.disabled||e.hidden||this.select.emit(e.date)}}class Bf{constructor(e){this.i18n=e,this.navigation=Lf,this.months=[],this.navigate=new vs,this.select=new vs}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}const Wf=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function qf(e){const t=Array.from(e.querySelectorAll(Wf)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}class Qf{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}class Gf{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new vs,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Sf(this.date.year,uf(e),1))}changeYear(e){this.select.emit(new Sf(uf(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}class Zf{}class Kf{}class Yf{}let Xf=(()=>{class e{constructor(){this.backdrop=!0,this.keyboard=!0}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Jf{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}const ep=()=>{};let tp=(()=>{class e{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):ep}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,r=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${r+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}return e.ngInjectableDef=fe({factory:function(){return new e(Oe(nl))},token:e,providedIn:"root"}),e})();class np{}class rp{close(e){}dismiss(e){}}class sp{constructor(e,t,n,r){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=r,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(e){this._windowCmptRef&&(this._resolve(e),this._removeModalElements())}_dismiss(e){this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.location.nativeElement;if(e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._backdropCmptRef){const e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}const ip=function(){var e={BACKDROP_CLICK:0,ESC:1};return e[e.BACKDROP_CLICK]="BACKDROP_CLICK",e[e.ESC]="ESC",e}();class op{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new k,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new vs}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{nf(e,"keydown").pipe(rf(this._closed$),yl(e=>e.which===Mf.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(ip.ESC))}));let t=!1;nf(this._dialogEl.nativeElement,"mousedown").pipe(rf(this._closed$),Cl(()=>t=!1),Hl(()=>nf(e,"mouseup").pipe(rf(this._closed$),Ll(1))),yl(({target:t})=>e===t)).subscribe(()=>{t=!0}),nf(e,"click").pipe(rf(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(ip.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=qf(e)[0];(t||n||e).focus()}}ngOnDestroy(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}}let ap=(()=>{class e{constructor(e,t,n,r,s,i){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=i,this._activeWindowCmptHasChanged=new k,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];((e,t,n,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const e=nf(t,"focusin").pipe(rf(n),z(e=>e.target));nf(t,"keydown").pipe(rf(n),yl(e=>e.which===Mf.Tab),af(e)).subscribe(([e,n])=>{const[r,s]=qf(t);n!==r&&n!==t||!e.shiftKey||(s.focus(),e.preventDefault()),n!==s||e.shiftKey||(r.focus(),e.preventDefault())}),r&&nf(t,"click").pipe(rf(n),af(e),z(e=>e[1])).subscribe(e=>e.focus())})})(0,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,r){const s=ff(r.container)?this._document.querySelector(r.container):this._document.body,i=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(i.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new rp,c=this._getContentRef(e,r.injector||t,n,l,r);let u=!1!==r.backdrop?this._attachBackdrop(e,s):null,h=this._attachWindowComponent(e,s,c),d=new sp(h,c,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=e=>{d.close(e)},l.dismiss=e=>{d.dismiss(e)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&i.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(np).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let r=e.resolveComponentFactory(op).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{ff(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{ff(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,s){return n?n instanceof Cn?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(e,t,n,r,s):new Jf([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new Jf([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new Jf([[t]])}_createFromComponent(e,t,n,r,s){const i=e.resolveComponentFactory(n),o=kt.create({providers:[{provide:rp,useValue:r}],parent:t}),a=i.create(o),l=a.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Jf([[l]],a.hostView,a)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&this._modalRefs.splice(t,1)};this._modalRefs.push(e),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}return e.ngInjectableDef=fe({factory:function(){return new e(Oe(di),Oe(ke),Oe(nl),Oe(tp),Oe(rn),Oe(Gs))},token:e,providedIn:"root"}),e})(),lp=(()=>{class e{constructor(e,t,n,r){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=r}open(e,t={}){const n=Object.assign({},this._config,t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.ngInjectableDef=fe({factory:function(){return new e(Oe(Kt),Oe(ke),Oe(ap),Oe(Xf))},token:e,providedIn:"root"}),e})();class cp{}class up{}class hp{}class dp{isTitleTemplate(){return this.title instanceof Cn}}class fp{}class pp{}class mp{}class gp{}class yp{}class _p{}class vp{}class bp{}class wp{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=hf(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>hf(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(e=>e);this.parts=n.length?t.split(new RegExp(`(${n.join("|")})`,"gmi")):[t]}}class Sp{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=hf,this.selectEvent=new vs,this.activeChangeEvent=new vs}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}class xp{}class Ep{}var Cp=Hn({encapsulation:2,styles:["ngb-alert{display:block}"],data:{}});function Tp(e){return Gi(0,[(e()(),Ri(0,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.closeHandler()&&r),r}),null,null)),(e()(),Ri(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),Wi(-1,null,["\xd7"]))],null,null)}function kp(e){return Gi(2,[zi(null,0),(e()(),Ni(16777216,null,null,1,null,Tp)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,t.component.dismissible)}),null)}function Dp(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-alert",[["class","alert"],["role","alert"]],[[2,"alert-dismissible",null]],null,null,kp,Cp)),Yr(1,638976,null,0,yf,[gf,on,en],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,jr(t,1).dismissible)}))}var Ap=kr("ngb-alert",yf,Dp,{dismissible:"dismissible",type:"type"},{close:"close"},["*"]),Ip=Hn({encapsulation:2,styles:['ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}.ngb-dp-day[tabindex="0"]{z-index:1}'],data:{}});function Np(e){return Gi(0,[(e()(),Ri(0,0,null,null,0,"div",[["class","ngb-dp-weekday ngb-dp-showweek"]],null,null,null,null,null))],null,null)}function Rp(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"div",[["class","ngb-dp-weekday small"],["role","columnheader"]],null,null,null,null,null)),(e()(),Wi(1,null,[" "," "]))],null,(function(e,t){e(t,1,0,t.component.i18n.getWeekdayShortName(t.context.$implicit))}))}function Op(e){return Gi(0,[(e()(),Ri(0,0,null,null,4,"div",[["class","ngb-dp-week ngb-dp-weekdays"],["role","row"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,Np)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(16777216,null,null,1,null,Rp)),Yr(4,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.showWeekNumbers),e(t,4,0,n.month.weekdays)}),null)}function Pp(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-muted"]],null,null,null,null,null)),(e()(),Wi(1,null,["",""]))],null,(function(e,t){e(t,1,0,t.component.i18n.getWeekNumerals(t.parent.parent.context.$implicit.number))}))}function Mp(e){return Gi(0,[(e()(),Ni(0,null,null,0))],null,null)}function Fp(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,Mp)),Yr(1,540672,null,0,el,[kn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),(e()(),Ni(0,null,null,0))],(function(e,t){e(t,1,0,t.parent.context.$implicit.context,t.component.dayTemplate)}),null)}function Lp(e){return Gi(0,[(e()(),Ri(0,0,null,null,2,"div",[["class","ngb-dp-day"],["role","gridcell"]],[[2,"disabled",null],[8,"tabIndex",0],[2,"hidden",null],[2,"ngb-dp-today",null],[1,"aria-label",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(e.component.doSelect(e.context.$implicit),r=!1!==n.preventDefault()&&r),r}),null,null)),(e()(),Ni(16777216,null,null,1,null,Fp)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,!t.context.$implicit.hidden)}),(function(e,t){e(t,0,0,t.context.$implicit.context.disabled,t.context.$implicit.tabindex,t.context.$implicit.hidden,t.context.$implicit.context.today,t.context.$implicit.ariaLabel)}))}function jp(e){return Gi(0,[(e()(),Ri(0,0,null,null,4,"div",[["class","ngb-dp-week"],["role","row"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,Pp)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(16777216,null,null,1,null,Lp)),Yr(4,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.showWeekNumbers),e(t,4,0,t.parent.context.$implicit.days)}),null)}function $p(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,jp)),Yr(1,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(0,null,null,0))],(function(e,t){e(t,1,0,!t.context.$implicit.collapsed)}),null)}function Vp(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,Op)),Yr(1,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(16777216,null,null,1,null,$p)),Yr(3,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.showWeekdays),e(t,3,0,n.month.weeks)}),null)}var Up=Hn({encapsulation:2,styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],data:{}});function zp(e){return Gi(2,[(e()(),Wi(0,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n.i18n.getDayNumerals(n.date))}))}var Hp=Hn({encapsulation:2,styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],data:{}});function Bp(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-datepicker-navigation-select",[["class","ngb-dp-navigation-select"]],null,[[null,"select"]],(function(e,t,n){var r=!0;return"select"===t&&(r=!1!==e.component.select.emit(n)&&r),r}),Jp,Kp)),Yr(1,8437760,null,0,Gf,[Rf,on],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],years:[3,"years"]},{select:"select"})],(function(e,t){var n=t.component;e(t,1,0,n.date,n.disabled,n.selectBoxes.months,n.selectBoxes.years)}),null)}function Wp(e){return Gi(0,[(e()(),Ri(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function qp(e){return Gi(0,[(e()(),Ri(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function Qp(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,Wp)),Yr(1,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ri(2,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),Wi(3,null,[" "," "," "])),(e()(),Ni(16777216,null,null,1,null,qp)),Yr(5,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(0,null,null,0))],(function(e,t){var n=t.component;e(t,1,0,t.context.index>0),e(t,5,0,t.context.index!==n.months.length-1)}),(function(e,t){var n=t.component;e(t,3,0,n.i18n.getMonthFullName(t.context.$implicit.number,t.context.$implicit.year),n.i18n.getYearNumerals(t.context.$implicit.year))}))}function Gp(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,Qp)),Yr(1,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null),(e()(),Ni(0,null,null,0))],(function(e,t){e(t,1,0,t.component.months)}),null)}function Zp(e){return Gi(2,[(e()(),Ri(0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickPrev(n)&&r),r}),null,null)),(e()(),Ri(2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,Bp)),Yr(4,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(16777216,null,null,1,null,Gp)),Yr(6,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ri(7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(e()(),Ri(8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickNext(n)&&r),r}),null,null)),(e()(),Ri(9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],(function(e,t){var n=t.component;e(t,4,0,n.showSelect),e(t,6,0,!n.showSelect)}),(function(e,t){var n=t.component;e(t,1,0,n.prevDisabled),e(t,8,0,n.nextDisabled)}))}var Kp=Hn({encapsulation:2,styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],data:{}});function Yp(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),Yr(1,147456,null,0,Kd,[en,on,[8,null]],{value:[0,"value"]},null),Yr(2,147456,null,0,Xd,[en,on,[8,null]],{value:[0,"value"]},null),(e()(),Wi(3,null,["",""]))],(function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)}),(function(e,t){var n=t.component;e(t,0,0,n.i18n.getMonthFullName(t.context.$implicit,null==n.date?null:n.date.year)),e(t,3,0,n.i18n.getMonthShortName(t.context.$implicit,null==n.date?null:n.date.year))}))}function Xp(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"option",[],null,null,null,null,null)),Yr(1,147456,null,0,Kd,[en,on,[8,null]],{value:[0,"value"]},null),Yr(2,147456,null,0,Xd,[en,on,[8,null]],{value:[0,"value"]},null),(e()(),Wi(3,null,["",""]))],(function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)}),(function(e,t){e(t,3,0,t.component.i18n.getYearNumerals(t.context.$implicit))}))}function Jp(e){return Gi(2,[Li(402653184,1,{monthSelect:0}),Li(402653184,2,{yearSelect:0}),(e()(),Ri(2,0,[[1,0],["month",1]],null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0]],[[null,"change"]],(function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeMonth(n.target.value)&&r),r}),null,null)),(e()(),Ni(16777216,null,null,1,null,Yp)),Yr(4,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null),(e()(),Ri(5,0,[[2,0],["year",1]],null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0]],[[null,"change"]],(function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeYear(n.target.value)&&r),r}),null,null)),(e()(),Ni(16777216,null,null,1,null,Xp)),Yr(7,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,4,0,n.months),e(t,7,0,n.years)}),(function(e,t){var n=t.component;e(t,2,0,n.disabled),e(t,5,0,n.disabled)}))}var em=Hn({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],data:{}});function tm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,zp,Up)),Yr(1,49152,null,0,Qf,[Rf],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],(function(e,t){e(t,1,0,t.context.currentMonth,t.context.date,t.context.disabled,t.context.focused,t.context.selected)}),(function(e,t){e(t,0,0,jr(t,1).selected,jr(t,1).selected,jr(t,1).isMuted(),jr(t,1).isMuted(),jr(t,1).focused)}))}function nm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],(function(e,t,n){var r=!0,s=e.component;return"navigate"===t&&(r=!1!==s.onNavigateEvent(n)&&r),"select"===t&&(r=!1!==s.onNavigateDateSelect(n)&&r),r}),Zp,Hp)),Yr(1,49152,null,0,Bf,[Rf],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],(function(e,t){var n=t.component;e(t,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)}),null)}function rm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),Wi(1,null,[" "," "," "]))],null,(function(e,t){var n=t.component;e(t,1,0,n.i18n.getMonthFullName(t.parent.context.$implicit.number,t.parent.context.$implicit.year),n.i18n.getYearNumerals(t.parent.context.$implicit.year))}))}function sm(e){return Gi(0,[(e()(),Ri(0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,rm)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ri(3,0,null,null,1,"ngb-datepicker-month-view",[["role","grid"]],null,[[null,"select"]],(function(e,t,n){var r=!0;return"select"===t&&(r=!1!==e.component.onDateSelect(n)&&r),r}),Vp,Ip)),Yr(4,49152,null,0,Hf,[Rf],{dayTemplate:[0,"dayTemplate"],month:[1,"month"],showWeekdays:[2,"showWeekdays"],showWeekNumbers:[3,"showWeekNumbers"]},{select:"select"})],(function(e,t){var n=t.component;e(t,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),e(t,4,0,n.dayTemplate||jr(t.parent,1),t.context.$implicit,n.showWeekdays,n.showWeekNumbers)}),null)}function im(e){return Gi(0,[(e()(),Ni(0,null,null,0))],null,null)}function om(e){return Gi(2,[Li(402653184,1,{_monthsEl:0}),(e()(),Ni(0,[["dt",2]],null,0,null,tm)),(e()(),Ri(2,0,null,null,2,"div",[["class","ngb-dp-header"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,nm)),Yr(4,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ri(5,0,[[1,0],["months",1]],null,2,"div",[["class","ngb-dp-months"]],null,[[null,"keydown"]],(function(e,t,n){var r=!0;return"keydown"===t&&(r=!1!==e.component.onKeyDown(n)&&r),r}),null,null)),(e()(),Ni(16777216,null,null,1,null,sm)),Yr(7,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null),(e()(),Ni(16777216,null,null,1,null,im)),Yr(9,540672,null,0,el,[kn],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],(function(e,t){var n=t.component;e(t,4,0,"none"!==n.navigation),e(t,7,0,n.model.months),e(t,9,0,n.footerTemplate)}),null)}function am(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"ngb-datepicker",[],null,null,null,om,em)),Xr(5120,null,Gd,(function(e){return[e]}),[zf]),Xr(512,null,Pf,Pf,[Tf,Rf]),Yr(3,4964352,null,0,zf,[Pf,Tf,Rf,jf,Ff,xt,en,Vf,Gs],null,null)],(function(e,t){e(t,3,0)}),null)}var lm=kr("ngb-datepicker",zf,am,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",dateSelect:"dateSelect",select:"select"},[]),cm=Hn({encapsulation:2,styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],data:{}});function um(e){return Gi(0,[(e()(),Wi(0,null,["",""]))],null,(function(e,t){e(t,0,0,t.component.title)}))}function hm(e){return Gi(0,[(e()(),Ni(0,null,null,0))],null,null)}function dm(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(e()(),Ni(0,[["simpleTitle",2]],null,0,null,um)),(e()(),Ni(16777216,null,null,1,null,hm)),Yr(3,540672,null,0,el,[kn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.context,n.isTitleTemplate()?n.title:jr(t,1))}),null)}function fm(e){return Gi(2,[(e()(),Ri(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,dm)),Yr(2,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ri(3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),zi(null,0)],(function(e,t){e(t,2,0,null!=t.component.title)}),null)}function pm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,fm,cm)),Yr(1,49152,null,0,dp,[],null,null)],null,(function(e,t){e(t,0,0,"popover"+(jr(t,1).popoverClass?" "+jr(t,1).popoverClass:""),jr(t,1).id)}))}var mm=kr("ngb-popover-window",dp,pm,{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),gm=Hn({encapsulation:2,styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],data:{}});function ym(e){return Gi(2,[(e()(),Ri(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),zi(null,0)],null,null)}function _m(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,ym,gm)),Yr(1,49152,null,0,vp,[],null,null)],null,(function(e,t){e(t,0,0,"tooltip show"+(jr(t,1).tooltipClass?" "+jr(t,1).tooltipClass:""),jr(t,1).id)}))}var vm=kr("ngb-tooltip-window",vp,_m,{id:"id",tooltipClass:"tooltipClass"},{},["*"]),bm=Hn({encapsulation:2,styles:[],data:{}});function wm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-highlight",[],null,null,null,Nm,km)),Yr(1,573440,null,0,wp,[],{result:[0,"result"],term:[1,"term"]},null)],(function(e,t){var n=t.context.formatter(t.context.result);e(t,1,0,n,t.context.term)}),null)}function Sm(e){return Gi(0,[(e()(),Ni(0,null,null,0))],null,null)}function xm(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],(function(e,t,n){var r=!0,s=e.component;return"mouseenter"===t&&(r=!1!==s.markActive(e.context.index)&&r),"click"===t&&(r=!1!==s.select(e.context.$implicit)&&r),r}),null,null)),(e()(),Ni(16777216,null,null,2,null,Sm)),Yr(2,540672,null,0,el,[kn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(3,{result:0,term:1,formatter:2})],(function(e,t){var n=t.component,r=e(t,3,0,t.context.$implicit,n.term,n.formatter);e(t,2,0,r,n.resultTemplate||jr(t.parent,0))}),(function(e,t){var n=t.component;e(t,0,0,n.id+"-"+t.context.index,t.context.index===n.activeIdx)}))}function Em(e){return Gi(0,[(e()(),Ni(0,[["rt",2]],null,0,null,wm)),(e()(),Ni(16777216,null,null,1,null,xm)),Yr(2,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.results)}),null)}function Cm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],[[null,"mousedown"]],(function(e,t,n){var r=!0;return"mousedown"===t&&(r=!1!==n.preventDefault()&&r),r}),Em,bm)),Yr(1,114688,null,0,Sp,[],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,jr(t,1).id)}))}var Tm=kr("ngb-typeahead-window",Sp,Cm,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),km=Hn({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function Dm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(e()(),Wi(1,null,["",""]))],null,(function(e,t){e(t,0,0,t.component.highlightClass),e(t,1,0,t.parent.context.$implicit)}))}function Am(e){return Gi(0,[(e()(),Wi(0,null,["",""]))],null,(function(e,t){e(t,0,0,t.parent.context.$implicit)}))}function Im(e){return Gi(0,[(e()(),Ni(16777216,null,null,1,null,Dm)),Yr(1,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Ni(0,[["even",2]],null,0,null,Am))],(function(e,t){e(t,1,0,t.context.odd,jr(t,2))}),null)}function Nm(e){return Gi(2,[(e()(),Ni(16777216,null,null,1,null,Im)),Yr(1,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,1,0,t.component.parts)}),null)}var Rm=Hn({encapsulation:2,styles:[],data:{}});function Om(e){return Gi(0,[],null,null)}function Pm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,Om,Rm)),Yr(1,49152,null,0,np,[],null,null)],null,(function(e,t){e(t,0,0,"modal-backdrop fade show"+(jr(t,1).backdropClass?" "+jr(t,1).backdropClass:""))}))}var Mm=kr("ngb-modal-backdrop",np,Pm,{backdropClass:"backdropClass"},{},[]),Fm=Hn({encapsulation:2,styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],data:{}});function Lm(e){return Gi(0,[Li(402653184,1,{_dialogEl:0}),(e()(),Ri(1,0,[[1,0],["dialog",1]],null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(e()(),Ri(2,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),zi(null,0)],null,(function(e,t){var n=t.component;e(t,1,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+(n.scrollable?" modal-dialog-scrollable":""))}))}function jm(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-modal",0],[1,"aria-labelledby",0]],null,null,Lm,Fm)),Yr(1,4440064,null,0,op,[nl,en,Gs],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,"modal fade show d-block"+(jr(t,1).windowClass?" "+jr(t,1).windowClass:""),!0,jr(t,1).ariaLabelledBy)}))}var $m=kr("ngb-modal-window",op,jm,{ariaLabelledBy:"ariaLabelledBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"]);function Vm(e){return(Vm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Um(e,t,n[t])}))}return e}function Hm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){s=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(s)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Bm={},Wm={};try{"undefined"!=typeof window&&(Bm=window),"undefined"!=typeof document&&(Wm=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(rb){}var qm=(Bm.navigator||{}).userAgent,Qm=void 0===qm?"":qm,Gm=Bm,Zm=Wm,Km=!!Zm.documentElement&&!!Zm.head&&"function"==typeof Zm.addEventListener&&"function"==typeof Zm.createElement,Ym=(~Qm.indexOf("MSIE")||Qm.indexOf("Trident/"),[1,2,3,4,5,6,7,8,9,10]),Xm=Ym.concat([11,12,13,14,15,16,17,18,19,20]),Jm={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},eg=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Jm.GROUP,Jm.SWAP_OPACITY,Jm.PRIMARY,Jm.SECONDARY].concat(Ym.map((function(e){return"".concat(e,"x")}))).concat(Xm.map((function(e){return"w-".concat(e)}))),Gm.FontAwesomeConfig||{});Zm&&"function"==typeof Zm.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Hm(e,2),n=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Zm.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(eg[n]=r)}));var tg=zm({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},eg);tg.autoReplaceSvg||(tg.observeMutations=!1);var ng=zm({},tg);Gm.FontAwesomeConfig=ng;var rg=Gm||{};rg.___FONT_AWESOME___||(rg.___FONT_AWESOME___={}),rg.___FONT_AWESOME___.styles||(rg.___FONT_AWESOME___.styles={}),rg.___FONT_AWESOME___.hooks||(rg.___FONT_AWESOME___.hooks={}),rg.___FONT_AWESOME___.shims||(rg.___FONT_AWESOME___.shims=[]);var sg=rg.___FONT_AWESOME___,ig=[];Km&&((Zm.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Zm.readyState)||Zm.addEventListener("DOMContentLoaded",(function e(){Zm.removeEventListener("DOMContentLoaded",e),ig.map((function(e){return e()}))})));var og,ag=function(){},lg="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,cg="undefined"==typeof setImmediate?setTimeout:setImmediate,ug=[];function hg(){for(var e=0;e<ug.length;e++)ug[e][0](ug[e][1]);ug=[],og=!1}function dg(e,t){ug.push([e,t]),og||(og=!0,cg(hg,0))}function fg(e){var t=e.owner,n=t._state,r=t._data,s=e[n],i=e.then;if("function"==typeof s){n="fulfilled";try{r=s(r)}catch(rb){yg(i,rb)}}pg(i,r)||("fulfilled"===n&&mg(i,r),"rejected"===n&&yg(i,r))}function pg(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===Vm(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?gg(e,r):mg(e,r))}),(function(t){n||(n=!0,yg(e,t))})),!0}}catch(rb){return n||yg(e,rb),!0}return!1}function mg(e,t){e!==t&&pg(e,t)||gg(e,t)}function gg(e,t){"pending"===e._state&&(e._state="settled",e._data=t,dg(vg,e))}function yg(e,t){"pending"===e._state&&(e._state="settled",e._data=t,dg(bg,e))}function _g(e){e._then=e._then.forEach(fg)}function vg(e){e._state="fulfilled",_g(e)}function bg(e){e._state="rejected",_g(e),!e._handled&&lg&&global.process.emit("unhandledRejection",e._data,e)}function wg(e){global.process.emit("rejectionHandled",e)}function Sg(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof Sg==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){yg(t,e)}try{e((function(e){mg(t,e)}),n)}catch(rb){n(rb)}}(e,this)}Sg.prototype={constructor:Sg,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(ag),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&lg&&dg(wg,this)),"fulfilled"===this._state||"rejected"===this._state?dg(fg,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},Sg.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Sg((function(t,n){var r=[],s=0;function i(e){return s++,function(n){r[e]=n,--s||t(r)}}for(var o,a=0;a<e.length;a++)(o=e[a])&&"function"==typeof o.then?o.then(i(a),n):r[a]=o;s||t(r)}))},Sg.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Sg((function(t,n){for(var r,s=0;s<e.length;s++)(r=e[s])&&"function"==typeof r.then?r.then(t,n):t(r)}))},Sg.resolve=function(e){return e&&"object"===Vm(e)&&e.constructor===Sg?e:new Sg((function(t){t(e)}))},Sg.reject=function(e){return new Sg((function(t,n){n(e)}))};var xg={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Eg(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Cg(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Tg(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function kg(e){return e.size!==xg.size||e.x!==xg.x||e.y!==xg.y||e.rotate!==xg.rotate||e.flipX||e.flipY}function Dg(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},s="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(s," ").concat(i," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var Ag={x:0,y:0,width:"100%",height:"100%"};function Ig(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Ng(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,i=e.iconName,o=e.transform,a=e.symbol,l=e.title,c=e.extra,u=e.watchable,h=void 0!==u&&u,d=r.found?r:n,f=d.width,p=d.height,m="fa-w-".concat(Math.ceil(f/p*16)),g=[ng.replacementClass,i?"".concat(ng.familyPrefix,"-").concat(i):"",m].filter((function(e){return-1===c.classes.indexOf(e)})).concat(c.classes).join(" "),y={children:[],attributes:zm({},c.attributes,{"data-prefix":s,"data-icon":i,class:g,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)})};h&&(y.attributes["data-fa-i2svg"]=""),l&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(Eg())},children:[l]});var _=zm({},y,{prefix:s,iconName:i,main:n,mask:r,transform:o,symbol:a,styles:c.styles}),v=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,s=e.main,i=e.mask,o=s.icon,a=i.icon,l=Dg({transform:e.transform,containerWidth:i.width,iconWidth:s.width}),c={tag:"rect",attributes:zm({},Ag,{fill:"white"})},u=o.children?{children:o.children.map(Ig)}:{},h={tag:"g",attributes:zm({},l.inner),children:[Ig(zm({tag:o.tag,attributes:zm({},o.attributes,l.path)},u))]},d={tag:"g",attributes:zm({},l.outer),children:[h]},f="mask-".concat(Eg()),p="clip-".concat(Eg()),m={tag:"mask",attributes:zm({},Ag,{id:f,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,d]},g={tag:"defs",children:[{tag:"clipPath",attributes:{id:p},children:(t=a,"g"===t.tag?t.children:[t])},m]};return n.push(g,{tag:"rect",attributes:zm({fill:"currentColor","clip-path":"url(#".concat(p,")"),mask:"url(#".concat(f,")")},Ag)}),{children:n,attributes:r}}(_):function(e){var t=e.children,n=e.attributes,r=e.main,s=e.transform,i=Tg(e.styles);if(i.length>0&&(n.style=i),kg(s)){var o=Dg({transform:s,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:zm({},o.outer),children:[{tag:"g",attributes:zm({},o.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:zm({},r.icon.attributes,o.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(_),b=v.attributes;return _.children=v.children,_.attributes=b,a?function(e){var t=e.iconName,n=e.children,r=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:zm({},e.attributes,{id:!0===r?"".concat(e.prefix,"-").concat(ng.familyPrefix,"-").concat(t):r}),children:n}]}]}(_):function(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,i=e.styles,o=e.transform;if(kg(o)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};s.style=Tg(zm({},i,{"transform-origin":"".concat(a.x+o.x/16,"em ").concat(a.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}(_)}var Rg=function(e,t,n,r){var s,i,o,a=Object.keys(e),l=a.length,c=void 0!==r?function(e,t){return function(n,r,s,i){return e.call(t,n,r,s,i)}}(t,r):t;for(void 0===n?(s=1,o=e[a[0]]):(s=0,o=n);s<l;s++)o=c(o,e[i=a[s]],i,e);return o};function Og(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,s=void 0!==r&&r,i=Object.keys(t).reduce((function(e,n){var r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof sg.hooks.addPack||s?sg.styles[e]=zm({},sg.styles[e]||{},i):sg.hooks.addPack(e,i),"fas"===e&&Og("fa",t)}var Pg=sg.styles,Mg=sg.shims,Fg=function(){var e=function(e){return Rg(Pg,(function(t,n,r){return t[r]=Rg(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Pg;Rg(Mg,(function(e,n){var r=n[1];return"far"!==r||t||(r="fas"),e[n[0]]={prefix:r,iconName:n[2]},e}),{})};function Lg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function jg(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,s=e.children,i=void 0===s?[]:s;return"string"==typeof e?Cg(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Cg(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(jg).join(""),"</").concat(t,">")}function $g(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}Fg(),($g.prototype=Object.create(Error.prototype)).constructor=$g;var Vg={fill:"currentColor"},Ug={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},zg=(zm({},Vg,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),zm({},Ug,{attributeName:"opacity"}));function Hg(e){var t=e[0],n=e[1],r=Hm(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ng.familyPrefix,"-").concat(Jm.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ng.familyPrefix,"-").concat(Jm.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ng.familyPrefix,"-").concat(Jm.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}function Bg(){ng.autoAddCss&&!Zg&&(function(e){if(e&&Km){var t=Zm.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Zm.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}Zm.head.insertBefore(t,r)}}(function(){var e="svg-inline--fa",t=ng.familyPrefix,n=ng.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==t||n!==e){var s=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),o=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(o,".".concat(n))}return r}()),Zg=!0)}function Wg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return jg(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Km){var t=Zm.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function qg(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return Lg(Gg.definitions,n,r)||Lg(sg.styles,n,r)}zm({},Vg,{cx:"256",cy:"364",r:"28"}),zm({},Ug,{attributeName:"r",values:"28;14;28;28;14;28;"}),zm({},zg,{values:"1;0;1;1;0;1;"}),zm({},Vg,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),zm({},zg,{values:"1;0;0;0;0;1;"}),zm({},Vg,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),zm({},zg,{values:"0;0;1;1;0;0;"});var Qg,Gg=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t;return(t=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n.reduce(this._pullDefinitions,{});Object.keys(s).forEach((function(t){e.definitions[t]=zm({},e.definitions[t]||{},s[t]),Og(t,s[t]),Fg()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],s=r.prefix,i=r.iconName,o=r.icon;e[s]||(e[s]={}),e[s][i]=o})),e}}])&&function(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)}}(e.prototype,t),e}()),Zg=!1,Kg=(Qg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?xg:n,s=t.symbol,i=void 0!==s&&s,o=t.mask,a=void 0===o?null:o,l=t.title,c=void 0===l?null:l,u=t.classes,h=void 0===u?[]:u,d=t.attributes,f=void 0===d?{}:d,p=t.styles,m=void 0===p?{}:p;if(e){var g=e.prefix,y=e.iconName,_=e.icon;return Wg(zm({type:"icon"},e),(function(){return Bg(),ng.autoA11y&&(c?f["aria-labelledby"]="".concat(ng.replacementClass,"-title-").concat(Eg()):(f["aria-hidden"]="true",f.focusable="false")),Ng({icons:{main:Hg(_),mask:a?Hg(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:y,transform:zm({},xg,r),symbol:i,title:c,extra:{attributes:f,styles:m,classes:h}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:qg(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:qg(r||{})),Qg(n,zm({},t,{mask:r}))});let Yg=(()=>{class e{constructor(){this.defaultPrefix="fas",this.globalLibrary="unset"}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Xg=(()=>{class e{constructor(){this.definitions={}}addIcons(...e){for(let t=0;t<e.length;t++){const n=e[t];n.prefix in this.definitions||(this.definitions[n.prefix]={}),this.definitions[n.prefix][n.iconName]=n}}addIconPacks(...e){for(let t=0;t<e.length;t++){const n=e[t],r=Object.keys(n).map(e=>n[e]);this.addIcons(...r)}}getIconDefinition(e,t){return e in this.definitions&&t in this.definitions[e]?this.definitions[e][t]:null}}return e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Jg=e=>{const t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(e=>t[e]?e:null).filter(e=>e)};class ey{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}class ty{constructor(e,t,n,r){this.sanitizer=e,this.config=t,this.iconLibrary=n,this.stackItem=r,this.classes=[]}get iconProp(){return this.icon}set iconProp(e){this.icon=e}ngOnChanges(e){if(null!=this.icon){if(e){const e=this.findIconDefinition(this.icon);if(null!=e){const t=this.buildParams();this.renderIcon(e,t)}}}else console.error("FontAwesome: Property `icon` is required for `fa-icon`/`fa-duotone-icon` components. This warning will become a hard error in 0.6.0.")}render(){this.ngOnChanges({})}findIconDefinition(e){const t=((e,t)=>{return void 0!==(n=e).prefix&&void 0!==n.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:t,iconName:e}:void 0;var n})(e,this.config.defaultPrefix);if("icon"in t)return t;const n=this.iconLibrary.getIconDefinition(t.prefix,t.iconName);if(null!=n)return n;const r=qg(t);if(null!=r){const e="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+e);else if(!this.config.globalLibrary)throw new Error(e);return r}var s;return s=t,console.error(`FontAwesome: Could not find icon with iconName=${s.iconName} and prefix=${s.prefix}. `+"This warning will become a hard error in 0.6.0."),null}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,listItem:this.listItem,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:this.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},t="string"==typeof this.transform?function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],s=n.slice(1).join("-");if(r&&"h"===s)return e.flipX=!0,e;if(r&&"v"===s)return e.flipY=!0,e;if(s=parseFloat(s),isNaN(s))return e;switch(r){case"grow":e.size=e.size+s;break;case"shrink":e.size=e.size-s;break;case"left":e.x=e.x-s;break;case"right":e.x=e.x+s;break;case"up":e.y=e.y-s;break;case"down":e.y=e.y+s;break;case"rotate":e.rotate=e.rotate+s}return e}),t):t}(this.transform):this.transform;return{title:this.title,transform:t,classes:[...Jg(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,t){const n=Kg(e,t);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}class ny extends ty{findIconDefinition(e){const t=super.findIconDefinition(e);if(null!=t&&"fad"!==t.prefix)throw new Error("The specified icon does not appear to be a Duotone icon. Check that you specified the correct style: "+`<fa-duotone-icon [icon]="['fab', '${t.iconName}']"></fa-duotone-icon> `+`or use: <fa-icon icon="${t.iconName}"></fa-icon> instead.`);return t}buildParams(){const e=super.buildParams();return!0!==this.swapOpacity&&"true"!==this.swapOpacity||e.classes.push("fa-swap-opacity"),null!=this.primaryOpacity&&(e.styles["--fa-primary-opacity"]=this.primaryOpacity.toString()),null!=this.secondaryOpacity&&(e.styles["--fa-secondary-opacity"]=this.secondaryOpacity.toString()),null!=this.primaryColor&&(e.styles["--fa-primary-color"]=this.primaryColor),null!=this.secondaryColor&&(e.styles["--fa-secondary-color"]=this.secondaryColor),e}}class ry{}var sy=Hn({encapsulation:2,styles:[],data:{}});function iy(e){return Gi(0,[],null,null)}function oy(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"fa-icon",[["class","ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,iy,sy)),Yr(1,573440,null,0,ty,[qc,Yg,Xg,[2,ey]],null,null)],null,(function(e,t){e(t,0,0,jr(t,1).title,jr(t,1).renderedIconHTML)}))}var ay=kr("fa-icon",ty,oy,{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",listItem:"listItem",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},{},[]),ly=Hn({encapsulation:2,styles:[],data:{}});function cy(e){return Gi(0,[],null,null)}function uy(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"fa-duotone-icon",[],[[8,"innerHTML",1]],null,null,cy,ly)),Yr(1,573440,null,0,ny,[qc,Yg,Xg,[2,ey]],null,null)],null,(function(e,t){e(t,0,0,jr(t,1).renderedIconHTML)}))}var hy=kr("fa-duotone-icon",ny,uy,{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",listItem:"listItem",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole",swapOpacity:"swapOpacity",primaryOpacity:"primaryOpacity",secondaryOpacity:"secondaryOpacity",primaryColor:"primaryColor",secondaryColor:"secondaryColor"},{},[]),dy={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},fy={prefix:"fas",iconName:"heart",icon:[512,512,[],"f004","M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"]},py={prefix:"fas",iconName:"paint-roller",icon:[512,512,[],"f5aa","M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"]};class my{constructor(){this.faPaintRoller=py}ngOnInit(){}}var gy=Hn({encapsulation:0,styles:[[".nav-logo[_ngcontent-%COMP%]{width:2em}.color-changer[_ngcontent-%COMP%]{-webkit-animation-name:colorChange;animation-name:colorChange;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:1s;animation-duration:1s}@-webkit-keyframes colorChange{0%{color:#fcba03}10%{color:#fc5603}20%{color:#fc0303}30%{color:#fc0394}40%{color:#f403fc}50%{color:#9d03fc}60%{color:#2403fc}70%{color:#03a5fc}80%{color:#03fcd3}90%{color:#03fc4a}100%{color:#73fc03}}@keyframes colorChange{0%{color:#fcba03}10%{color:#fc5603}20%{color:#fc0303}30%{color:#fc0394}40%{color:#f403fc}50%{color:#9d03fc}60%{color:#2403fc}70%{color:#03a5fc}80%{color:#03fcd3}90%{color:#03fc4a}100%{color:#73fc03}}.navbar[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;height:50px;z-index:1069}"]],data:{}});function yy(e){return Gi(0,[(e()(),Ri(0,0,null,null,11,"div",[],null,null,null,null,null)),(e()(),Ri(1,0,null,null,10,"nav",[["class","navbar navbar-expand-lg navbar-light bg-light"]],null,null,null,null,null)),Yr(2,16384,null,0,Kf,[],null,null),(e()(),Ri(3,0,null,null,4,"span",[["class","navbar-brand"]],null,null,null,null,null)),(e()(),Ri(4,0,null,null,1,"fa-icon",[["class","color-changer m-2 ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,iy,sy)),Yr(5,573440,null,0,ty,[qc,Yg,Xg,[2,ey]],{icon:[0,"icon"]},null),(e()(),Ri(6,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),Wi(-1,null,["Color Picker"])),(e()(),Ri(8,0,null,null,3,"ul",[["class","navbar-nav ml-auto"]],null,null,null,null,null)),(e()(),Ri(9,0,null,null,2,"li",[["class","nav-item"]],null,null,null,null,null)),(e()(),Ri(10,0,null,null,1,"a",[["href","https://thedevcorp.github.io/"],["rel","noopener noreferrer"],["tabindex","-1"],["target","_blank"]],null,null,null,null,null)),(e()(),Ri(11,0,null,null,0,"img",[["alt","TDC logo"],["class","nav-logo"],["src","assets/images/TDC.png"]],null,null,null,null,null))],(function(e,t){e(t,5,0,t.component.faPaintRoller)}),(function(e,t){e(t,4,0,jr(t,5).title,jr(t,5).renderedIconHTML)}))}class _y{constructor(e){this._clipboardService=e,this.snack=!1,this.colors_data=[{data:[{hex:"#3498DB",show_details:!1},{hex:"#2475B0",show_details:!1},{hex:"#74B9FF",show_details:!1},{hex:"#0A79DF",show_details:!1},{hex:"#4834DF",show_details:!1},{hex:"#30336B",show_details:!1},{hex:"#487EB0",show_details:!1},{hex:"#192A56",show_details:!1},{hex:"#6A89CC",show_details:!1},{hex:"#0A3D62",show_details:!1},{hex:"#4BCFFA",show_details:!1},{hex:"#0ABDE3",show_details:!1},{hex:"#25CCF7",show_details:!1},{hex:"#67E6DC",show_details:!1},{hex:"#3C40C6",show_details:!1}],name:"Blue"},{data:[{hex:"#7B8788",show_details:!1},{hex:"#99AAAB",show_details:!1},{hex:"#2C3335",show_details:!1},{hex:"#616C6F",show_details:!1},{hex:"#DAE0E2",show_details:!1},{hex:"#535C68",show_details:!1},{hex:"#333945",show_details:!1},{hex:"#2F363F",show_details:!1},{hex:"#586776",show_details:!1},{hex:"#8395A7",show_details:!1},{hex:"#A4B0BD",show_details:!1},{hex:"#777E8B",show_details:!1},{hex:"#758AA2",show_details:!1},{hex:"#47535E",show_details:!1},{hex:"#4C4B4B",show_details:!1}],name:"Grey"},{data:[{hex:"#EEC213",show_details:!1},{hex:"#F5C469",show_details:!1},{hex:"#F4C724",show_details:!1},{hex:"#F0DF87",show_details:!1},{hex:"#DFAF2B",show_details:!1},{hex:"#FAC42F",show_details:!1},{hex:"#F3B63A",show_details:!1},{hex:"#FBD28B",show_details:!1},{hex:"#F3B431",show_details:!1},{hex:"#FAD02E",show_details:!1},{hex:"#E5B143",show_details:!1},{hex:"#F3CC79",show_details:!1},{hex:"#F9DDA4",show_details:!1},{hex:"#FFF222",show_details:!1},{hex:"#E1DA00",show_details:!1}],name:"Yellow"},{data:[{hex:"#2ecc72",show_details:!1},{hex:"#26ae60",show_details:!1},{hex:"#6ab04c",show_details:!1},{hex:"#6AB04A",show_details:!1},{hex:"#badc57",show_details:!1},{hex:"#43BE31",show_details:!1},{hex:"#45CE30",show_details:!1},{hex:"#10A881",show_details:!1},{hex:"#1BCA9B",show_details:!1},{hex:"#7CEC9F",show_details:!1},{hex:"#019031",show_details:!1},{hex:"#A3CB37",show_details:!1},{hex:"#75DA8B",show_details:!1},{hex:"#53E0BC",show_details:!1},{hex:"#218F76",show_details:!1}],name:"Green"},{data:[{hex:"#E44236",show_details:!1},{hex:"#B83227",show_details:!1},{hex:"#D63031",show_details:!1},{hex:"#E84342",show_details:!1},{hex:"#FF3031",show_details:!1},{hex:"#BA2F16",show_details:!1},{hex:"#EC4849",show_details:!1},{hex:"#FF3E4D",show_details:!1},{hex:"#E71C23",show_details:!1},{hex:"#EA425C",show_details:!1},{hex:"#E8290B",show_details:!1},{hex:"#AE1438",show_details:!1},{hex:"#E83350",show_details:!1},{hex:"#FF4848",show_details:!1},{hex:"#FF362E",show_details:!1}],name:"Red"},{data:[{hex:"#EAF0F1",show_details:!1},{hex:"#E74292",show_details:!1},{hex:"#01CBC6",show_details:!1},{hex:"#BB2CD9",show_details:!1},{hex:"#8B78E6",show_details:!1},{hex:"#00CCCD",show_details:!1},{hex:"#1287A5",show_details:!1},{hex:"#EA7773",show_details:!1},{hex:"#2B2B52",show_details:!1},{hex:"#F5BCBA",show_details:!1}],name:"Misc"}]}rgb(e){return`${parseInt(e[1]+e[2],16)}, ${parseInt(e[3]+e[4],16)}, ${parseInt(e[5]+e[6],16)}`}reset(e){this.colors_data[e].data.map(e=>e.show_details=!1)}flip(e,t){this.colors_data[e].data[t].show_details=!0}showSnack(){this.snack=!0,setTimeout(()=>{this.snack=!1},3e3)}copy(e){this._clipboardService.copyFromContent(e),this.showSnack()}ngOnInit(){}}const vy=new Te("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:void 0);let by=(()=>{class e{constructor(e,t){this.document=e,this.window=t}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(e){try{this.selectTarget(e);const t=this.copyText();return this.clearSelection(e,this.window),t&&this.isCopySuccessInIE11()}catch(t){return!1}}isCopySuccessInIE11(){const e=this.window.clipboardData;return!(e&&e.getData&&!e.getData("Text"))}copyFromContent(e,t=this.window.document.body){if(this.tempTextArea&&!t.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{t.appendChild(this.tempTextArea)}catch(n){throw new Error("Container should be a Dom element")}}return this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)}destroy(e=this.window.document.body){this.tempTextArea&&(e.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(e,t){e&&e.focus(),t.getSelection().removeAllRanges()}createTempTextArea(e,t){const n="rtl"===e.documentElement.getAttribute("dir");let r;return r=e.createElement("textarea"),r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[n?"right":"left"]="-9999px",r.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",r.setAttribute("readonly",""),r}}return e.ngInjectableDef=pe({factory:function(){return new e(Pe(nl),Pe(vy))},token:e,providedIn:"root"}),e})();class wy{}var Sy=Hn({encapsulation:0,styles:[["hr[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%]{width:250px;height:180px}.alert[_ngcontent-%COMP%]{width:90%}.hover[_ngcontent-%COMP%]:hover{-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-transition-duration:.5s;transition-duration:.5s}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.modBorder[_ngcontent-%COMP%]{border:none!important}.depth[_ngcontent-%COMP%]{box-shadow:0 14px 37px -9px rgba(120,120,120,.75)}.copytext[_ngcontent-%COMP%]{-webkit-animation-name:copytext;animation-name:copytext;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:5s;animation-duration:5s}@-webkit-keyframes copytext{0%,100%{color:#fff}50%{color:#000}}@keyframes copytext{0%,100%{color:#fff}50%{color:#000}}.snack[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:250px}"]],data:{}});function xy(e){return Gi(0,[(e()(),Ri(0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),Ri(1,0,null,null,2,"strong",[],null,null,null,null,null)),(e()(),Ri(2,0,null,null,1,"span",[["class","text text-center copytext"]],null,null,null,null,null)),(e()(),Wi(-1,null,["Click to Copy!"]))],null,null)}function Ey(e){return Gi(0,[(e()(),Ri(0,0,null,null,6,"div",[["style","width: 100%;"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,2,"div",[["class","alert alert-success p-0 my-3 mx-auto text-center cursor-pointer hover"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.copy(e.parent.context.$implicit.hex)&&r),r}),null,null)),(e()(),Ri(2,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),Wi(-1,null,["HEX"])),(e()(),Ri(4,0,null,null,2,"div",[["class","alert alert-warning p-0 my-3 mx-auto text-center cursor-pointer hover"]],null,[[null,"click"]],(function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==s.copy(s.rgb(e.parent.context.$implicit.hex))&&r),r}),null,null)),(e()(),Ri(5,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),Wi(-1,null,["RGB"]))],null,null)}function Cy(e){return Gi(0,[(e()(),Ri(0,0,null,null,8,"div",[["class","m-2 depth"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,7,"div",[["class","card hover cursor-pointer justify-content-center align-items-center modBorder"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.flip(e.parent.context.index,e.context.index)&&r),r}),null,null)),Xr(512,null,Ka,Ya,[en,wn,on]),Yr(3,278528,null,0,Ja,[Ka],{ngStyle:[0,"ngStyle"]},null),Bi(4,{"background-color":0}),(e()(),Ni(16777216,null,null,1,null,xy)),Yr(6,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null),(e()(),Ni(16777216,null,null,1,null,Ey)),Yr(8,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=e(t,4,0,t.context.$implicit.hex);e(t,3,0,n),e(t,6,0,!t.context.$implicit.show_details),e(t,8,0,t.context.$implicit.show_details)}),null)}function Ty(e){return Gi(0,[(e()(),Ri(0,0,null,null,10,"div",[],null,null,null,null,null)),(e()(),Ri(1,0,null,null,5,"div",[["class","m-0"],["style","width: 100%;"]],null,null,null,null,null)),(e()(),Ri(2,0,null,null,1,"span",[["class","h2"]],null,null,null,null,null)),(e()(),Wi(3,null,["",""])),(e()(),Ri(4,0,null,null,2,"span",[["class","ml-auto float-right"]],null,null,null,null,null)),(e()(),Ri(5,0,null,null,1,"button",[["class","btn btn-outline-danger"],["tabindex","-1"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.reset(e.context.index)&&r),r}),null,null)),(e()(),Wi(-1,null,["Reset"])),(e()(),Ri(7,0,null,null,0,"hr",[["class","m-0 mx-auto my-1"]],null,null,null,null,null)),(e()(),Ri(8,0,null,null,2,"div",[["class","p-3 row justify-content-center"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,Cy)),Yr(10,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,10,0,t.context.$implicit.data)}),(function(e,t){e(t,3,0,t.context.$implicit.name)}))}function ky(e){return Gi(0,[(e()(),Ri(0,0,null,null,2,"div",[["class","alert alert-warning snack m-0 mx-auto text-center animated fadeIn"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,1,"span",[["class","text-center"]],null,null,null,null,null)),(e()(),Wi(-1,null,["Copied to Clipboard!"]))],null,null)}function Dy(e){return Gi(0,[(e()(),Ri(0,0,null,null,5,"div",[["style","margin-top: 50px !important;"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,2,"div",[["class","contianer-fluid my-2 px-4 py-3"]],null,null,null,null,null)),(e()(),Ni(16777216,null,null,1,null,Ty)),Yr(3,278528,null,0,Wa,[kn,Cn,bn],{ngForOf:[0,"ngForOf"]},null),(e()(),Ni(16777216,null,null,1,null,ky)),Yr(5,16384,null,0,Qa,[kn,Cn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.colors_data),e(t,5,0,n.snack)}),null)}class Ay{constructor(){this.faHeart=fy,this.faCode=dy}ngOnInit(){}}var Iy=Hn({encapsulation:0,styles:[[".footer[_ngcontent-%COMP%]{background-color:#f8f9fa;width:100%;height:50px}.beat[_ngcontent-%COMP%]{-webkit-animation:.8s infinite beatHeart;animation:.8s infinite beatHeart;color:#ff3031}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:active, a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:visited{text-decoration:none;color:#3c40c6;font-family:Pacifico,cursive}@-webkit-keyframes beatHeart{0%,100%,40%{-webkit-transform:scale(1);transform:scale(1)}25%,60%{-webkit-transform:scale(1.1);transform:scale(1.1)}}@keyframes beatHeart{0%,100%,40%{-webkit-transform:scale(1);transform:scale(1)}25%,60%{-webkit-transform:scale(1.1);transform:scale(1.1)}}"]],data:{}});function Ny(e){return Gi(0,[(e()(),Ri(0,0,null,null,9,"footer",[["class","footer row justify-content-center align-items-center"]],null,null,null,null,null)),(e()(),Ri(1,0,null,null,1,"fa-icon",[["class","m-2 ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,iy,sy)),Yr(2,573440,null,0,ty,[qc,Yg,Xg,[2,ey]],{icon:[0,"icon"]},null),(e()(),Wi(-1,null,[" with "])),(e()(),Ri(4,0,null,null,1,"fa-icon",[["class","beat m-2 ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,iy,sy)),Yr(5,573440,null,0,ty,[qc,Yg,Xg,[2,ey]],{icon:[0,"icon"]},null),(e()(),Wi(-1,null,[" by "])),(e()(),Ri(7,0,null,null,1,"a",[["class","mx-2"],["href","https://thedevcorp.github.io/"],["rel","noopener noreferrer"],["tabindex","-1"],["target","_blank"]],null,null,null,null,null)),(e()(),Wi(-1,null,["TDC"])),(e()(),Wi(-1,null,["!\n"]))],(function(e,t){var n=t.component;e(t,2,0,n.faCode),e(t,5,0,n.faHeart)}),(function(e,t){e(t,1,0,jr(t,2).title,jr(t,2).renderedIconHTML),e(t,4,0,jr(t,5).title,jr(t,5).renderedIconHTML)}))}var Ry=Hn({encapsulation:0,styles:[[""]],data:{}});function Oy(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"app-header",[],null,null,null,yy,gy)),Yr(1,114688,null,0,my,[],null,null),(e()(),Ri(2,0,null,null,1,"app-home",[],null,null,null,Dy,Sy)),Yr(3,114688,null,0,_y,[by],null,null),(e()(),Ri(4,0,null,null,1,"app-footer",[],null,null,null,Ny,Iy)),Yr(5,114688,null,0,Ay,[],null,null)],(function(e,t){e(t,1,0),e(t,3,0),e(t,5,0)}),null)}function Py(e){return Gi(0,[(e()(),Ri(0,0,null,null,1,"app-root",[],null,null,null,Oy,Ry)),Yr(1,49152,null,0,ra,[],null,null)],null,null)}var My=kr("app-root",ra,Py,{},{},[]);class Fy{}function Ly(e,t=null){return{type:2,steps:e,options:t}}function jy(e){return{type:6,styles:e,offset:null}}function $y(e){Promise.resolve(null).then(e)}class Vy{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$y(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Uy{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const s=this.players.length;0==s?$y(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function zy(){return"undefined"!=typeof process}function Hy(e){switch(e.length){case 0:return new Vy;case 1:return e[0];default:return new Uy(e)}}function By(e,t,n,r,s={},i={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(e=>{const n=e.offset,r=n==l,u=r&&c||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),a){case"!":a=s[n];break;case"*":a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function Wy(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&qy(n,"start",e)));break;case"done":e.onDone(()=>r(n&&qy(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&qy(n,"destroy",e)))}}function qy(e,t,n){const r=n.totalTime,s=Qy(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),i=e._data;return null!=i&&(s._data=i),s}function Qy(e,t,n,r,s="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Gy(e,t,n){let r;return e instanceof Map?(r=e.get(t),r||e.set(t,r=n)):(r=e[t],r||(r=e[t]=n)),r}function Zy(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Ky=(e,t)=>!1,Yy=(e,t)=>!1,Xy=(e,t,n)=>[];const Jy=zy();(Jy||"undefined"!=typeof Element)&&(Ky=(e,t)=>e.contains(t),Yy=(()=>{if(Jy||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):Yy}})(),Xy=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let e_=null,t_=!1;function n_(e){e_||(e_=("undefined"!=typeof document?document.body:null)||{},t_=!!e_.style&&"WebkitAppearance"in e_.style);let t=!0;return e_.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in e_.style,!t&&t_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in e_.style),t}const r_=Yy,s_=Ky,i_=Xy;function o_(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}class a_{validateStyleProperty(e){return n_(e)}matchesElement(e,t){return r_(e,t)}containsElement(e,t){return s_(e,t)}query(e,t,n){return i_(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,i=[],o){return new Vy(n,r)}}let l_=(()=>{class e{}return e.NOOP=new a_,e})();function c_(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:u_(parseFloat(t[1]),t[2])}function u_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=u_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=u_(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=e;if(!n){let n=!1,i=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:i}}(e,t,n)}function d_(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function f_(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else d_(e,n);return n}function p_(e,t,n){return n?t+":"+n+";":""}function m_(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=p_(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=p_(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function g_(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const s=E_(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),zy()&&m_(e))}function y_(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=E_(t);e.style[n]=""}),zy()&&m_(e))}function __(e){return Array.isArray(e)?1==e.length?e[0]:Ly(e):e}const v_=new RegExp("{{\\s*(.+?)\\s*}}","g");function b_(e){let t=[];if("string"==typeof e){const n=e.toString();let r;for(;r=v_.exec(n);)t.push(r[1]);v_.lastIndex=0}return t}function w_(e,t,n){const r=e.toString(),s=r.replace(v_,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function S_(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const x_=/-+([a-z0-9])/g;function E_(e){return e.replace(x_,(...e)=>e[1].toUpperCase())}function C_(e,t){return 0===e||0===t}function T_(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let i=t[0],o=[];if(r.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach((function(t){n[t]=D_(e,t)}))}}return t}function k_(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 #${t.type}`)}}function D_(e,t){return window.getComputedStyle(e)[t]}function A_(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],i=r[2],o=r[3];t.push(R_(s,o)),"<"!=i[0]||"*"==s&&"*"==o||t.push(R_(o,s))}(e,n,t)):n.push(e),n}const I_=new Set(["true","1"]),N_=new Set(["false","0"]);function R_(e,t){const n=I_.has(e)||N_.has(e),r=I_.has(t)||N_.has(t);return(s,i)=>{let o="*"==e||e==s,a="*"==t||t==i;return!o&&n&&"boolean"==typeof s&&(o=s?I_.has(e):N_.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?I_.has(t):N_.has(t)),o&&a}}const O_=new RegExp("s*:selfs*,?","g");function P_(e,t,n){return new M_(e).build(t,n)}class M_{constructor(e){this._driver=e}build(e,t){const n=new F_(t);return this._resetContextStyleTimingState(n),k_(this,__(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,i.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(e=>{if(L_(e)){const t=e;Object.keys(t).forEach(e=>{b_(t[e]).forEach(e=>{i.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=S_(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=k_(this,__(e.animation),t);return{type:1,matchers:A_(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:j_(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>k_(this,e,t)),options:j_(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=k_(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:j_(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return $_(h_(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=$_(0,0,"");return e.dynamic=!0,e.strValue=r,e}return n=n||h_(r,t),$_(n.duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:jy({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,i=!1;if(!s){i=!0;const e={};n.easing&&(e.easing=n.easing),s=jy(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=i,r=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(L_(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},s=b_(e);s.length&&s.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(L_(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(L_(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,s.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=t.currentTime,f=t.currentAnimateTimings,p=f.duration;return l.forEach((e,r)=>{const i=u>0?r==h?1:u*r:s[r],o=i*p;t.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:k_(this,__(e.animation),t),options:j_(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:j_(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:j_(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(O_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Gy(t.collectedStyles,t.currentQuerySelector,{});const o=k_(this,__(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:j_(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h_(e.timings,t.errors,!0);return{type:12,animation:k_(this,__(e.animation),t),timings:n,options:null}}}class F_{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function L_(e){return!Array.isArray(e)&&"object"==typeof e}function j_(e){var t;return e?(e=d_(e)).params&&(e.params=(t=e.params)?d_(t):null):e={},e}function $_(e,t,n){return{duration:e,delay:t,easing:n}}function V_(e,t,n,r,s,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class U_{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const z_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function B_(e,t,n,r,s,i={},o={},a,l,c=[]){return(new W_).buildKeyframes(e,t,n,r,s,i,o,a,l,c)}class W_{buildKeyframes(e,t,n,r,s,i,o,a,l,c=[]){l=l||new U_;const u=new Q_(e,t,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),k_(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[V_(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const s=null!=n.duration?c_(n.duration):null,i=null!=n.delay?c_(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),k_(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=q_);const e=c_(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>k_(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?c_(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),k_(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return h_(t.params?w_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*s),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?c_(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=q_);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(a=o.currentTimeline),k_(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,i=Math.abs(s.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;k_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const q_={};class Q_{constructor(e,t,n,r,s,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=q_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new G_(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=c_(n.duration)),null!=n.delay&&(r.delay=c_(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=w_(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,s=new Q_(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=q_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new Z_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,i){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(z_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return s||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class G_{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new G_(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},i=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t),r.forEach(e=>{n[e]="*"})):f_(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=w_(i[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=f_(s,!0);Object.keys(o).forEach(n=>{const r=o[n];"!"==r?e.add(n):"*"==r&&t.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=e.size?S_(e.values()):[],i=t.size?S_(t.values()):[];if(n){const e=r[0],t=d_(e);e.offset=0,t.offset=1,r=[e,t]}return V_(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Z_ extends G_{constructor(e,t,n,r,s,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],i=n+t,o=t/i,a=f_(e[0],!1);a.offset=0,s.push(a);const l=f_(e[0],!1);l.offset=K_(o),s.push(l);const c=e.length-1;for(let r=1;r<=c;r++){let o=f_(e[r],!1);o.offset=K_((t+o.offset*n)/i),s.push(o)}n=i,t=0,r="",e=s}return V_(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function K_(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Y_{}class X_ extends Y_{normalizePropertyName(e,t){return E_(e)}normalizeStyleValue(e,t,n,r){let s="";const i=n.toString().trim();if(J_[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+s}}const J_=(()=>function(e){const t={};return e.forEach(e=>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 ev(e,t,n,r,s,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const tv={};class nv{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):i}build(e,t,n,r,s,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||tv,d=this.buildStyles(n,o&&o.params||tv,u),f=a&&a.params||tv,p=this.buildStyles(r,f,u),m=new Set,g=new Map,y=new Map,_="void"===r,v={params:Object.assign({},h,f)},b=c?[]:B_(e,t,this.ast.animation,s,i,d,p,v,l,u);let w=0;if(b.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return ev(t,this._triggerName,n,r,_,d,p,[],[],g,y,w,u);b.forEach(e=>{const n=e.element,r=Gy(g,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=Gy(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&m.add(n)});const S=S_(m.values());return ev(t,this._triggerName,n,r,_,d,p,b,S,g,y,w)}}class rv{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=d_(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let i=s[e];i.length>1&&(i=w_(i,r,t)),n[e]=i})}}),n}}class sv{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new rv(e.style,e.options&&e.options.params||{})}),iv(this.states,"true","1"),iv(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new nv(e,t,this.states))}),this.fallbackTransition=new nv(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function iv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const ov=new U_;class av{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=P_(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,s=By(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let i;const o=new Map;if(s?(i=B_(this._driver,t,s,"ng-enter","ng-leave",{},{},n,ov,r),i.forEach(e=>{const t=Gy(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=Hy(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const s=Qy(t,"","","");return Wy(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const lv=[],cv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class hv{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=d_(e);delete t.value,this.options=t}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const dv=new hv("void");class fv{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,bv(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const i=Gy(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};i.push(o);const a=Gy(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(bv(e,"ng-trigger"),bv(e,"ng-trigger-"+t),a[t]=dv),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const s=this._getTrigger(t),i=new mv(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(bv(e,"ng-trigger"),bv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new hv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=dv),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),r=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{y_(e,n),g_(e,r)})}return}const c=Gy(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(bv(e,"ng-animate-queued"),i.onStart(()=>{wv(e,"ng-animate-queued")})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,".ng-trigger",!0).forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,r){const s=this._engine.statesByElement.get(e);if(s){const i=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Hy(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(e)[r]||dv,o=new hv("void"),a=new mv(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}this.prepareLeaveAnimationListeners(e),r?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){bv(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(t=>{if(t.name==n.triggerName){const r=Qy(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,Wy(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class pv{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new fv(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+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}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const s=n[e[r]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(gv(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!gv(t))return;const s=t.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),bv(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),wv(e,"ng-animate-disabled"))}removeNode(e,t,n,r){if(gv(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return gv(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Hy(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=cv,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)bv(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Hy(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new U_,r=[],s=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=vv(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((e,t)=>{const n="ng-enter"+p++;f.set(t,n),e.forEach(e=>bv(e,n))});const m=[],g=new Set,y=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const e=this.collectedLeaveElements[I],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):y.add(e))}const _=new Map,v=vv(h,Array.from(g));v.forEach((e,t)=>{const n="ng-leave"+p++;_.set(t,n),e.forEach(e=>bv(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=f.get(t);e.forEach(e=>wv(e,n))}),v.forEach((e,t)=>{const n=_.get(t);e.forEach(e=>wv(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const b=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(b.push(t),this.collectedEnterElements.length){const e=s.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,s),h=_.get(s),d=f.get(s),p=this._buildInstruction(e,n,d,h,c);if(!p.errors||!p.errors.length)return c?(t.onStart(()=>y_(s,p.fromStyles)),t.onDestroy(()=>g_(s,p.toStyles)),void r.push(t)):e.isFallbackTransition?(t.onStart(()=>y_(s,p.fromStyles)),t.onDestroy(()=>g_(s,p.toStyles)),void r.push(t)):(p.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,p.timelines),i.push({instruction:p,player:t,element:s}),p.queriedElements.forEach(e=>Gy(o,e,[]).push(t)),p.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void p.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))}));w.push(p)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),b.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,x=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Gy(S,t,[]).push(e),e.destroy()})});const E=m.filter(e=>xv(e,a,l)),C=new Map;_v(C,this.driver,y,l,"*").forEach(e=>{xv(e,a,l)&&E.push(e)});const T=new Map;d.forEach((e,t)=>{_v(T,this.driver,new Set(e),a,"!")}),E.forEach(e=>{const t=C.get(e),n=T.get(e);C.set(e,Object.assign({},t,n))});const k=[],D=[],A={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>g_(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let e=A;if(x.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>x.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,s,T,C);if(i.setRealPlayer(n),e===A)k.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Hy(t)),r.push(i)}}else y_(t,o.fromStyles),i.onDestroy(()=>g_(t,o.toStyles)),D.push(i),c.has(t)&&r.push(i)}),D.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Hy(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let I=0;I<m.length;I++){const e=m[I],t=e.__ng_removed;if(wv(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,".ng-animating",!0);for(let e=0;e<r.length;e++){let t=o.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?Sv(this,e,r):this.processLeaveNode(e)}return m.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const r=t.__ng_removed;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}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||"void"==s;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==r,l=Gy(n,e,[]);this._getPreviousPlayers(e,a,s,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}y_(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Vy(t.duration,t.delay);const f=h!==a,p=function(e){const t=[];return function e(t,n){for(let r=0;r<t.length;r++){const s=t[r];s instanceof Uy?e(s.players,n):n.push(s)}}(e,t),t}((n.get(h)||lv).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=s.get(h),g=i.get(h),y=By(0,this._normalizer,0,t.keyframes,m,g),_=this._buildPlayer(t,y,p);if(t.subTimeline&&r&&u.add(h),f){const t=new mv(e,o,h);t.setRealPlayer(_),l.push(t)}return _});l.forEach(e=>{Gy(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t),r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t],r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>bv(e,"ng-animating"));const d=Hy(h);return d.onDestroy(()=>{c.forEach(e=>wv(e,"ng-animating")),g_(a,t.toStyles)}),u.forEach(e=>{Gy(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Vy(e.duration,e.delay)}}class mv{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Vy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Wy(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Gy(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function gv(e){return e&&1===e.nodeType}function yv(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function _v(e,t,n,r,s){const i=[];n.forEach(e=>i.push(yv(e)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r.__ng_removed=uv,o.push(r))}),e.set(r,i)});let a=0;return n.forEach(e=>yv(e,i[a++])),o}function vv(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=s.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:r.has(o)?1:e(o),s.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function bv(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function wv(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Sv(e,t,n){Hy(n).onDone(()=>e.processLeaveNode(t))}function xv(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class Ev{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new pv(e,t,n),this._timelineEngine=new av(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,s){const i=e+"-"+r;let o=this._triggerCache[i];if(!o){const e=[],t=P_(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new sv(e,t)}(r,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=Zy(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=Zy(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Cv(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=kv(t[0]),t.length>1&&(r=kv(t[t.length-1]))):t&&(n=kv(t)),n||r?new Tv(e,n,r):null}let Tv=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&g_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(g_(this._element,this._initialStyles),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(y_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(y_(this._element,this._endStyles),this._endStyles=null),g_(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function kv(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=n[r];Dv(s)&&(t=t||{},t[s]=e[s])}return t}function Dv(e){return"display"===e||"position"===e}class Av{constructor(e,t,n,r,s,i,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=Mv(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),Pv(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Ov(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Iv(this._element,this._name,"paused")}resume(){Iv(this._element,this._name,"running")}setPosition(e){const t=Nv(this._element,this._name);this._position=e*this._duration,Pv(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const 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()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ov(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Mv(e,"").split(","),r=Rv(n,t);r>=0&&(n.splice(r,1),Pv(e,"",n.join(",")))}(this._element,this._name))}}function Iv(e,t,n){Pv(e,"PlayState",n,Nv(e,t))}function Nv(e,t){const n=Mv(e,"");return n.indexOf(",")>0?Rv(n.split(","),t):Rv([n],t)}function Rv(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Ov(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Pv(e,t,n,r){const s="animation"+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function Mv(e,t){return e.style["animation"+t]}class Fv{constructor(e,t,n,r,s,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Av(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:D_(this.element,n))})}this.currentSnapshot=e}}class Lv extends Vy{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=o_(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class jv{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return n_(e)}matchesElement(e,t){return r_(e,t)}containsElement(e,t){return s_(e,t)}query(e,t,n){return i_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>o_(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=" ";const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(e,t,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof Fv),l={};C_(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=T_(e,t,l));if(0==n)return new Lv(e,c);const u=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Cv(e,t),f=new Fv(e,t,u,n,r,s,c,d);return f.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class $v{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:D_(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Vv{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Uv().toString()),this._cssKeyframesDriver=new jv}validateStyleProperty(e){return n_(e)}matchesElement(e,t){return r_(e,t)}containsElement(e,t){return s_(e,t)}query(e,t,n){return i_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=i.filter(e=>e instanceof $v);C_(n,r)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Cv(e,t=T_(e,t=t.map(e=>f_(e,!1)),l));return new $v(e,t,a,u)}}function Uv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}class zv extends Fy{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Ue.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Ly(e):e;return Wv(this._renderer,null,t,"register",[n]),new Hv(t,this._renderer)}}class Hv extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new Bv(this._id,e,t||{},this._renderer)}}class Bv{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Wv(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function Wv(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}class qv{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Qv("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(r,s,e,t.name,t)),new Gv(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}class Qv{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Gv extends Qv{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),i="";return"@"!=s.charAt(0)&&([s,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}class Zv extends Ev{constructor(e,t,n){super(e.body,t,n)}}function Kv(){return"function"==typeof Uv()?new Vv:new jv}function Yv(){return new X_}function Xv(e,t,n){return new qv(e,t,n)}const Jv=new Te("AnimationModuleType");class eb{}class tb{}var nb=ea(na,[ra],(function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===Ct&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[zn(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([br(512,Kt,Yt,[[8,[Qd,Ap,lm,Mm,$m,mm,vm,Tm,ay,hy,My]],[3,Kt],Le]),br(5120,Ns,Di,[[3,Ns]]),br(4608,za,Ha,[Ns,[2,Ua]]),br(5120,fs,Ai,[Gs]),br(5120,Es,Cs,[]),br(5120,bn,Ti,[]),br(5120,wn,ki,[]),br(4608,qc,Qc,[nl]),br(6144,_t,null,[qc]),br(4608,$c,Uc,[]),br(5120,pc,(function(e,t,n,r,s,i,o,a){return[new Lc(e,t,n),new Wc(r),new zc(s,i,o,a)]}),[nl,Gs,Ds,nl,nl,$c,Is,[2,Vc]]),br(4608,mc,mc,[pc,Gs]),br(135680,_c,_c,[nl]),br(4608,xc,xc,[mc,_c,Es]),br(5120,l_,Kv,[]),br(5120,Y_,Yv,[]),br(4608,Ev,Zv,[nl,l_,Y_]),br(5120,rn,Xv,[xc,Ev,Gs]),br(6144,yc,null,[_c]),br(4608,ti,ti,[Gs]),br(5120,ch,$d,[vd]),br(4608,Td,Td,[]),br(6144,Ed,null,[Td]),br(135680,kd,kd,[vd,pi,Ls,kt,Ed]),br(4608,Cd,Cd,[]),br(5120,Dd,Pd,[vd,rl,Ad]),br(5120,Hd,zd,[Vd]),br(5120,As,(function(e){return[e]}),[Hd]),br(4608,Fy,zv,[rn,nl]),br(4608,Zd,Zd,[]),br(4608,lp,lp,[Kt,kt,ap,Xf]),br(1073742336,tl,tl,[]),br(1024,qe,tu,[]),br(1024,ai,(function(){return[Rd()]}),[]),br(512,Vd,Vd,[kt]),br(1024,Ss,(function(e,t){return[(n=e,hc("probe",fc),hc("coreTokens",Object.assign({},dc,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>fc),Ud(t)];var n}),[[2,ai],Vd]),br(512,xs,xs,[[2,Ss]]),br(131584,di,di,[Gs,Is,kt,qe,Kt,xs]),br(1073742336,Ii,Ii,[di]),br(1073742336,nu,nu,[[3,nu]]),br(1024,Id,Fd,[[3,vd]]),br(512,Uu,zu,[]),br(512,wd,wd,[]),br(256,Ad,{},[]),br(1024,oa,Md,[sa,[2,aa],Ad]),br(512,la,la,[oa,sa]),br(512,Ls,Ls,[]),br(512,pi,yi,[Ls,[2,mi]]),br(1024,dd,(function(){return[[]]}),[]),br(1024,vd,jd,[di,Uu,wd,la,kt,pi,Ls,dd,Ad,[2,pd],[2,ud]]),br(1073742336,Od,Od,[[2,Id],[2,vd]]),br(1073742336,tb,tb,[]),br(1073742336,eb,eb,[]),br(1073742336,mf,mf,[]),br(1073742336,_f,_f,[]),br(1073742336,vf,vf,[]),br(1073742336,bf,bf,[]),br(1073742336,wf,wf,[]),br(1073742336,ef,ef,[]),br(1073742336,tf,tf,[]),br(1073742336,Zf,Zf,[]),br(1073742336,Yf,Yf,[]),br(1073742336,cp,cp,[]),br(1073742336,up,up,[]),br(1073742336,hp,hp,[]),br(1073742336,fp,fp,[]),br(1073742336,pp,pp,[]),br(1073742336,mp,mp,[]),br(1073742336,gp,gp,[]),br(1073742336,yp,yp,[]),br(1073742336,_p,_p,[]),br(1073742336,bp,bp,[]),br(1073742336,xp,xp,[]),br(1073742336,Ep,Ep,[]),br(1073742336,ry,ry,[]),br(1073742336,wy,wy,[]),br(1073742336,na,na,[]),br(256,Ct,!0,[]),br(256,Jv,"BrowserAnimations",[])])}));(function(){if(Ge)throw new Error("Cannot enable prod mode after platform setup.");Qe=!1})(),eu().bootstrapModuleFactory(nb).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);