text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},yLV6:function(t,e,n){var l;!function(s,r,i,o){"use strict";var a,u=["","webkit","Moz","MS","ms","o"],c=r.createElement("div"),h="function",d=Math.round,p=Math.abs,m=Date.now;function g(t,e,n){return setTimeout(w(t,n),e)}function f(t,e,n){return!!Array.isArray(t)&&(_(t,n[e],n),!0)}function _(t,e,n){var l;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==o)for(l=0;l<t.length;)e.call(n,t[l],l,t),l++;else for(l in t)t.hasOwnProperty(l)&&e.call(n,t[l],l,t)}function y(t,e,n){var l="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=s.console&&(s.console.warn||s.console.log);return r&&r.call(s.console,l,n),t.apply(this,arguments)}}a="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var l=arguments[n];if(l!==o&&null!==l)for(var s in l)l.hasOwnProperty(s)&&(e[s]=l[s])}return e}:Object.assign;var v=y((function(t,e,n){for(var l=Object.keys(e),s=0;s<l.length;)(!n||n&&t[l[s]]===o)&&(t[l[s]]=e[l[s]]),s++;return t}),"extend","Use `assign`."),b=y((function(t,e){return v(t,e,!0)}),"merge","Use `assign`.");function C(t,e,n){var l,s=e.prototype;(l=t.prototype=Object.create(s)).constructor=t,l._super=s,n&&a(l,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function S(t,e){return typeof t==h?t.apply(e&&e[0]||o,e):t}function E(t,e){return t===o?e:t}function x(t,e,n){_(A(e),(function(e){t.addEventListener(e,n,!1)}))}function T(t,e,n){_(A(e),(function(e){t.removeEventListener(e,n,!1)}))}function D(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function k(t,e){return t.indexOf(e)>-1}function A(t){return t.trim().split(/\s+/g)}function P(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var l=0;l<t.length;){if(n&&t[l][n]==e||!n&&t[l]===e)return l;l++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){for(var l=[],s=[],r=0;r<t.length;){var i=e?t[r][e]:t[r];P(s,i)<0&&l.push(t[r]),s[r]=i,r++}return n&&(l=e?l.sort((function(t,n){return t[e]>n[e]})):l.sort()),l}function R(t,e){for(var n,l,s=e[0].toUpperCase()+e.slice(1),r=0;r<u.length;){if((l=(n=u[r])?n+s:e)in t)return l;r++}return o}var M=1;function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||s}var F="ontouchstart"in s,V=R(s,"PointerEvent")!==o,L=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U=25,j=1,$=2,B=4,z=8,H=1,q=2,W=4,Y=8,G=16,K=q|W,Z=Y|G,Q=K|Z,X=["x","y"],J=["clientX","clientY"];function tt(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){S(t.options.enable,[t])&&n.handler(e)},this.init()}function et(t,e,n){var l=n.pointers.length,s=n.changedPointers.length,r=e&j&&l-s==0,i=e&(B|z)&&l-s==0;n.isFirst=!!r,n.isFinal=!!i,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,l=e.pointers,s=l.length;n.firstInput||(n.firstInput=nt(e)),s>1&&!n.firstMultiple?n.firstMultiple=nt(e):1===s&&(n.firstMultiple=!1);var r=n.firstInput,i=n.firstMultiple,a=i?i.center:r.center,u=e.center=lt(l);e.timeStamp=m(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=ot(a,u),e.distance=it(a,u),function(t,e){var n=e.center,l=t.offsetDelta||{},s=t.prevDelta||{},r=t.prevInput||{};e.eventType!==j&&r.eventType!==B||(s=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},l=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=s.x+(n.x-l.x),e.deltaY=s.y+(n.y-l.y)}(n,e),e.offsetDirection=rt(e.deltaX,e.deltaY);var c,h,d=st(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,e.scale=i?(c=i.pointers,it((h=l)[0],h[1],J)/it(c[0],c[1],J)):1,e.rotation=i?function(t,e){return ot(e[1],e[0],J)+ot(t[1],t[0],J)}(i.pointers,l):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,l,s,r,i=t.lastInterval||e,a=e.timeStamp-i.timeStamp;if(e.eventType!=z&&(a>U||i.velocity===o)){var u=e.deltaX-i.deltaX,c=e.deltaY-i.deltaY,h=st(a,u,c);l=h.x,s=h.y,n=p(h.x)>p(h.y)?h.x:h.y,r=rt(u,c),t.lastInterval=e}else n=i.velocity,l=i.velocityX,s=i.velocityY,r=i.direction;e.velocity=n,e.velocityX=l,e.velocityY=s,e.direction=r}(n,e);var g=t.element;D(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function nt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:m(),pointers:e,center:lt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function lt(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,l=0,s=0;s<e;)n+=t[s].clientX,l+=t[s].clientY,s++;return{x:d(n/e),y:d(l/e)}}function st(t,e,n){return{x:e/t||0,y:n/t||0}}function rt(t,e){return t===e?H:p(t)>=p(e)?t<0?q:W:e<0?Y:G}function it(t,e,n){n||(n=X);var l=e[n[0]]-t[n[0]],s=e[n[1]]-t[n[1]];return Math.sqrt(l*l+s*s)}function ot(t,e,n){return n||(n=X),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}tt.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(N(this.element),this.evWin,this.domHandler)}};var at={mousedown:j,mousemove:$,mouseup:B},ut="mousedown",ct="mousemove mouseup";function ht(){this.evEl=ut,this.evWin=ct,this.pressed=!1,tt.apply(this,arguments)}C(ht,tt,{handler:function(t){var e=at[t.type];e&j&&0===t.button&&(this.pressed=!0),e&$&&1!==t.which&&(e=B),this.pressed&&(e&B&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var dt={pointerdown:j,pointermove:$,pointerup:B,pointercancel:z,pointerout:z},pt={2:"touch",3:"pen",4:"mouse",5:"kinect"},mt="pointerdown",gt="pointermove pointerup pointercancel";function ft(){this.evEl=mt,this.evWin=gt,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(mt="MSPointerDown",gt="MSPointerMove MSPointerUp MSPointerCancel"),C(ft,tt,{handler:function(t){var e=this.store,n=!1,l=t.type.toLowerCase().replace("ms",""),s=dt[l],r=pt[t.pointerType]||t.pointerType,i="touch"==r,o=P(e,t.pointerId,"pointerId");s&j&&(0===t.button||i)?o<0&&(e.push(t),o=e.length-1):s&(B|z)&&(n=!0),o<0||(e[o]=t,this.callback(this.manager,s,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(o,1))}});var _t={touchstart:j,touchmove:$,touchend:B,touchcancel:z},yt="touchstart",vt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=yt,this.evWin=vt,this.started=!1,tt.apply(this,arguments)}function Ct(t,e){var n=I(t.touches),l=I(t.changedTouches);return e&(B|z)&&(n=O(n.concat(l),"identifier",!0)),[n,l]}C(bt,tt,{handler:function(t){var e=_t[t.type];if(e===j&&(this.started=!0),this.started){var n=Ct.call(this,t,e);e&(B|z)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var wt={touchstart:j,touchmove:$,touchend:B,touchcancel:z},St="touchstart touchmove touchend touchcancel";function Et(){this.evTarget=St,this.targetIds={},tt.apply(this,arguments)}function xt(t,e){var n=I(t.touches),l=this.targetIds;if(e&(j|$)&&1===n.length)return l[n[0].identifier]=!0,[n,n];var s,r,i=I(t.changedTouches),o=[],a=this.target;if(r=n.filter((function(t){return D(t.target,a)})),e===j)for(s=0;s<r.length;)l[r[s].identifier]=!0,s++;for(s=0;s<i.length;)l[i[s].identifier]&&o.push(i[s]),e&(B|z)&&delete l[i[s].identifier],s++;return o.length?[O(r.concat(o),"identifier",!0),o]:void 0}C(Et,tt,{handler:function(t){var e=wt[t.type],n=xt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Tt=2500,Dt=25;function kt(){tt.apply(this,arguments);var t=w(this.handler,this);this.touch=new Et(this.manager,t),this.mouse=new ht(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function At(t,e){t&j?(this.primaryTouch=e.changedPointers[0].identifier,Pt.call(this,e)):t&(B|z)&&Pt.call(this,e)}function Pt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var l=this.lastTouches;setTimeout((function(){var t=l.indexOf(n);t>-1&&l.splice(t,1)}),Tt)}}function It(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,l=0;l<this.lastTouches.length;l++){var s=this.lastTouches[l],r=Math.abs(e-s.x),i=Math.abs(n-s.y);if(r<=Dt&&i<=Dt)return!0}return!1}C(kt,tt,{handler:function(t,e,n){var l="mouse"==n.pointerType;if(!(l&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)At.call(this,e,n);else if(l&&It.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ot=R(c.style,"touchAction"),Rt=Ot!==o,Mt=function(){if(!Rt)return!1;var t={},e=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||s.CSS.supports("touch-action",n)})),t}();function Nt(t,e){this.manager=t,this.set(e)}Nt.prototype={set:function(t){"compute"==t&&(t=this.compute()),Rt&&this.manager.element.style&&Mt[t]&&(this.manager.element.style[Ot]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return _(this.manager.recognizers,(function(e){S(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(k(t,"none"))return"none";var e=k(t,"pan-x"),n=k(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":k(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var l=this.actions,s=k(l,"none")&&!Mt.none,r=k(l,"pan-y")&&!Mt["pan-y"],i=k(l,"pan-x")&&!Mt["pan-x"];if(s&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!i||!r)return s||r&&n&K||i&&n&Z?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ft=1,Vt=2,Lt=4,Ut=8,jt=Ut,$t=16;function Bt(t){this.options=a({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Ft,this.simultaneous={},this.requireFail=[]}function zt(t){return t&$t?"cancel":t&Ut?"end":t&Lt?"move":t&Vt?"start":""}function Ht(t){return t==G?"down":t==Y?"up":t==q?"left":t==W?"right":""}function qt(t,e){var n=e.manager;return n?n.get(t):t}function Wt(){Bt.apply(this,arguments)}function Yt(){Wt.apply(this,arguments),this.pX=null,this.pY=null}function Gt(){Wt.apply(this,arguments)}function Kt(){Bt.apply(this,arguments),this._timer=null,this._input=null}function Zt(){Wt.apply(this,arguments)}function Qt(){Wt.apply(this,arguments)}function Xt(){Bt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Jt(t,e){return(e=e||{}).recognizers=E(e.recognizers,Jt.defaults.preset),new te(t,e)}function te(t,e){var n;this.options=a({},Jt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(V?ft:L?Et:F?kt:ht))(n,et),this.touchAction=new Nt(this,this.options.touchAction),ee(this,!0),_(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ee(t,e){var n,l=t.element;l.style&&(_(t.options.cssProps,(function(s,r){n=R(l.style,r),e?(t.oldCssProps[n]=l.style[n],l.style[n]=s):l.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Bt.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=qt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)?this:(t=qt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===P(e,t=qt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=qt(t,this);var e=P(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function l(n){e.manager.emit(n,t)}n<Ut&&l(e.options.event+zt(n)),l(e.options.event),t.additionalEvent&&l(t.additionalEvent),n>=Ut&&l(e.options.event+zt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Ft)))return!1;t++}return!0},recognize:function(t){var e=a({},t);if(!S(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(jt|$t|32)&&(this.state=Ft),this.state=this.process(e),this.state&(Vt|Lt|Ut|$t)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},C(Wt,Bt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,l=e&(Vt|Lt),s=this.attrTest(t);return l&&(n&z||!s)?e|$t:l||s?n&B?e|Ut:e&Vt?e|Lt:Vt:32}}),C(Yt,Wt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Q},getTouchAction:function(){var t=this.options.direction,e=[];return t&K&&e.push("pan-y"),t&Z&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,l=t.distance,s=t.direction,r=t.deltaX,i=t.deltaY;return s&e.direction||(e.direction&K?(s=0===r?H:r<0?q:W,n=r!=this.pX,l=Math.abs(t.deltaX)):(s=0===i?H:i<0?Y:G,n=i!=this.pY,l=Math.abs(t.deltaY))),t.direction=s,n&&l>e.threshold&&s&e.direction},attrTest:function(t){return Wt.prototype.attrTest.call(this,t)&&(this.state&Vt||!(this.state&Vt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ht(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),C(Gt,Wt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Vt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),C(Kt,Bt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,l=t.distance<e.threshold,s=t.deltaTime>e.time;if(this._input=t,!l||!n||t.eventType&(B|z)&&!s)this.reset();else if(t.eventType&j)this.reset(),this._timer=g((function(){this.state=jt,this.tryEmit()}),e.time,this);else if(t.eventType&B)return jt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===jt&&(t&&t.eventType&B?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),C(Zt,Wt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Vt)}}),C(Qt,Wt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Z,pointers:1},getTouchAction:function(){return Yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(K|Z)?e=t.overallVelocity:n&K?e=t.overallVelocityX:n&Z&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&t.eventType&B},emit:function(t){var e=Ht(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),C(Xt,Bt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,l=t.distance<e.threshold,s=t.deltaTime<e.time;if(this.reset(),t.eventType&j&&0===this.count)return this.failTimeout();if(l&&s&&n){if(t.eventType!=B)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,i=!this.pCenter||it(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,i&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=g((function(){this.state=jt,this.tryEmit()}),e.interval,this),Vt):jt}return 32},failTimeout:function(){return this._timer=g((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==jt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Jt.VERSION="2.0.7",Jt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Zt,{enable:!1}],[Gt,{enable:!1},["rotate"]],[Qt,{direction:K}],[Yt,{direction:K},["swipe"]],[Xt],[Xt,{event:"doubletap",taps:2},["tap"]],[Kt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},te.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var l=this.recognizers,s=e.curRecognizer;(!s||s&&s.state&jt)&&(s=e.curRecognizer=null);for(var r=0;r<l.length;)n=l[r],2===e.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(t),!s&&n.state&(Vt|Lt|Ut)&&(s=e.curRecognizer=n),r++}},get:function(t){if(t instanceof Bt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=P(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==o&&e!==o){var n=this.handlers;return _(A(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==o){var n=this.handlers;return _(A(t),(function(t){e?n[t]&&n[t].splice(P(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=r.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var l=0;l<n.length;)n[l](e),l++}},destroy:function(){this.element&&ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(Jt,{INPUT_START:j,INPUT_MOVE:$,INPUT_END:B,INPUT_CANCEL:z,STATE_POSSIBLE:Ft,STATE_BEGAN:Vt,STATE_CHANGED:Lt,STATE_ENDED:Ut,STATE_RECOGNIZED:jt,STATE_CANCELLED:$t,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:q,DIRECTION_RIGHT:W,DIRECTION_UP:Y,DIRECTION_DOWN:G,DIRECTION_HORIZONTAL:K,DIRECTION_VERTICAL:Z,DIRECTION_ALL:Q,Manager:te,Input:tt,TouchAction:Nt,TouchInput:Et,MouseInput:ht,PointerEventInput:ft,TouchMouseInput:kt,SingleTouchInput:bt,Recognizer:Bt,AttrRecognizer:Wt,Tap:Xt,Pan:Yt,Swipe:Qt,Pinch:Gt,Rotate:Zt,Press:Kt,on:x,off:T,each:_,merge:b,extend:v,assign:a,inherit:C,bindFn:w,prefixed:R}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Jt,(l=(function(){return Jt}).call(e,n,e,t))===o||(t.exports=l)}(window,document)},zUnb:function(t,e,n){"use strict";function l(t){return"function"==typeof t}n.r(e),n("yLV6");let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function i(t){setTimeout(()=>{throw t})}const o={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete(){}},a=Array.isArray||(t=>t&&"number"==typeof t.length);function u(t){return null!==t&&"object"==typeof t}function c(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class t{constructor(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t,e=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:r,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let o=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++o<c&&s[o]||null;if(l(r))try{r.call(this)}catch(d){e=!0,t=d instanceof h?p(d.errors):[d]}if(a(i))for(o=-1,c=i.length;++o<c;){const n=i[o];if(u(n))try{n.unsubscribe()}catch(d){e=!0,t=t||[],d instanceof h?t=t.concat(p(d.errors)):t.push(d)}}if(e)throw new h(t)}add(e){let n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;(n=new t)._subscriptions=[e]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){const t=this._subscriptions;t?t.push(n):this._subscriptions=[n]}return n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}_addParent(t){let{_parent:e,_parents:n}=this;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function p(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o;break;case 1:if(!t){this.destination=o;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[m](){return this}static create(t,e,n){const l=new g(t,e,n);return l.syncErrorThrowable=!1,l}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:t,_parents:e}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this}}class f extends g{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let i=this;l(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==o&&(l((i=Object.create(e)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(l){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=l,t.syncErrorThrown=!0,!0):(i(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(){}function v(...t){return b(t)}function b(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:y}let C=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:l}=this,s=function(t,e,n){if(t){if(t instanceof g)return t;if(t[m])return t[m]()}return t||e||n?new g(t,e,n):new g(o)}(t,e,n);if(s.add(l?l.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:l}=t;if(e||l)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let l;l=this.subscribe(e=>{try{t(e)}catch(s){n(s),l&&l.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:b(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}S.prototype=Object.create(Error.prototype);const E=S;class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class T extends g{constructor(t){super(t),this.destination=t}}let D=(()=>{class t extends C{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[m](){return new T(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new E;if(!this.isStopped){const{observers:e}=this,n=e.length,l=e.slice();for(let s=0;s<n;s++)l[s].next(t)}}error(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,l=e.slice();for(let s=0;s<n;s++)l[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let l=0;l<e;l++)n[l].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new E;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new x(this,t))}asObservable(){const t=new C;return t.source=this,t}}return t.create=(t,e)=>new k(t,e),t})();class k extends D{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function A(t){return t&&"function"==typeof t.schedule}class P extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const I=t=>e=>{for(let n=0,l=t.length;n<l&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()},O=t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i),e);function R(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=R(),N=t=>e=>{const n=t[M]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e},F=t=>e=>{const n=t[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)},V=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const U=t=>{if(t instanceof C)return e=>t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e);if(t&&"function"==typeof t[_])return F(t);if(V(t))return I(t);if(L(t))return O(t);if(t&&"function"==typeof t[M])return N(t);{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function j(t,e,n,l,s=new P(t,n,l)){if(!s.closed)return U(e)(s)}class $ extends g{notifyNext(t,e,n,l,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function B(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(t,e))}}class z{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new H(t,this.project,this.thisArg))}}class H extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function q(t,e){return new C(e?n=>{const l=new d;let s=0;return l.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||l.add(this.schedule())):n.complete()}))),l}:I(t))}function W(t,e){if(!e)return t instanceof C?t:new C(U(t));if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new C(e?n=>{const l=new d;return l.add(e.schedule(()=>{const s=t[_]();l.add(s.subscribe({next(t){l.add(e.schedule(()=>n.next(t)))},error(t){l.add(e.schedule(()=>n.error(t)))},complete(){l.add(e.schedule(()=>n.complete()))}}))})),l}:F(t))}(t,e);if(L(t))return function(t,e){return new C(e?n=>{const l=new d;return l.add(e.schedule(()=>t.then(t=>{l.add(e.schedule(()=>{n.next(t),l.add(e.schedule(()=>n.complete()))}))},t=>{l.add(e.schedule(()=>n.error(t)))}))),l}:O(t))}(t,e);if(V(t))return q(t,e);if(function(t){return t&&"function"==typeof t[M]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new C(e?n=>{const l=new d;let s;return l.add(()=>{s&&"function"==typeof s.return&&s.return()}),l.add(e.schedule(()=>{s=t[M](),l.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(l){return void n.error(l)}e?n.complete():(n.next(t),this.schedule())})))})),l}:N(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Y(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?l=>l.pipe(Y((n,l)=>W(t(n,l)).pipe(B((t,s)=>e(n,t,l,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new G(t,n)))}class G{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new K(t,this.project,this.concurrent))}}class K extends ${constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(l){return void this.destination.error(l)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const l=new P(this,void 0,void 0);this.destination.add(l),j(this,t,e,n,l)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,l,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Z(t){return t}function Q(t=Number.POSITIVE_INFINITY){return Y(Z,t)}function X(...t){let e=Number.POSITIVE_INFINITY,n=null,l=t[t.length-1];return A(l)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof l&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof C?t[0]:Q(e)(q(t,n))}function J(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const l=new et(t,n),s=e.subscribe(l);return l.closed||(l.connection=n.connect()),s}}class et extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,l=t._connection;this.connection=null,!l||n&&l!==n||l.unsubscribe()}}const nt=class extends C{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new st(this.getSubject(),this))),t.closed?(this._connection=null,t=d.EMPTY):this._connection=t),t}refCount(){return J()(this)}}.prototype,lt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:nt._subscribe},_isComplete:{value:nt._isComplete,writable:!0},getSubject:{value:nt.getSubject},connect:{value:nt.connect},refCount:{value:nt.refCount}};class st extends T{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function rt(){return new D}const it="__parameters__";function ot(t,e,n){const l=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return l.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,l){const s=t.hasOwnProperty(it)?t[it]:Object.defineProperty(t,it,{value:[]})[it];for(;s.length<=l;)s.push(null);return(s[l]=s[l]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}const at=ot("Inject",t=>({token:t})),ut=ot("Optional"),ct=ot("Self"),ht=ot("SkipSelf");var dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function pt(t){for(let e in t)if(t[e]===pt)return e;throw Error("Could not find renamed property on target object.")}function mt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function gt(t){const e=t[ft];return e&&e.token===t?e:null}const ft=pt({ngInjectableDef:pt});function _t(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(_t).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}const yt=pt({__forward_ref__:pt});function vt(t){return t.__forward_ref__=vt,t.toString=function(){return _t(this())},t}function bt(t){const e=t;return"function"==typeof e&&e.hasOwnProperty(yt)&&e.__forward_ref__===vt?e():t}const Ct="undefined"!=typeof globalThis&&globalThis,wt="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,xt=Ct||Et||wt||St;class Tt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.ngInjectableDef=mt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Dt=new Tt("INJECTOR",-1),kt=new Object,At="ngTempTokenPath",Pt="ngTokenPath",It=/\n/gm,Ot="\u0275",Rt="__source",Mt=pt({provide:String,useValue:pt});let Nt,Ft=void 0;function Vt(t){const e=Ft;return Ft=t,e}function Lt(t,e=dt.Default){if(void 0===Ft)throw new Error("inject() must be called from an injection context");return null===Ft?function(t,e,n){const l=gt(t);if(l&&"root"==l.providedIn)return void 0===l.value?l.value=l.factory():l.value;if(n&dt.Optional)return null;throw new Error(`Injector: NOT_FOUND [${_t(t)}]`)}(t,0,e):Ft.get(t,e&dt.Optional?null:void 0,e)}function Ut(t,e=dt.Default){return(Nt||Lt)(t,e)}const jt=Ut;class $t{get(t,e=kt){if(e===kt){const e=new Error(`NullInjectorError: No provider for ${_t(t)}!`);throw e.name="NullInjectorError",e}return e}}function Bt(t,e,n,l=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Ot?t.substr(2):t;let s=_t(e);if(e instanceof Array)s=e.map(_t).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let l=e[n];t.push(n+":"+("string"==typeof l?JSON.stringify(l):_t(l)))}s=`{${t.join(", ")}}`}return`${n}${l?"("+l+")":""}[${s}]: ${t.replace(It,"\n  ")}`}const zt=new Tt("The presence of this token marks an injector as being the root injector."),Ht=function(t,e,n){return new Qt(t,e,n)};let qt=(()=>{class t{static create(t,e){return Array.isArray(t)?Ht(t,e,""):Ht(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=kt,t.NULL=new $t,t.ngInjectableDef=mt({token:t,providedIn:"any",factory:()=>Ut(Dt)}),t.__NG_ELEMENT_ID__=-1,t})();const Wt=function(t){return t},Yt=[],Gt=Wt,Kt=function(){return Array.prototype.slice.call(arguments)},Zt="\u0275";class Qt{constructor(t,e=qt.NULL,n=null){this.parent=e,this.source=n;const l=this._records=new Map;l.set(qt,{token:qt,fn:Wt,deps:Yt,value:this,useNew:!1}),l.set(Dt,{token:Dt,fn:Wt,deps:Yt,value:this,useNew:!1}),function t(e,n){if(n)if((n=bt(n))instanceof Array)for(let l=0;l<n.length;l++)t(e,n[l]);else{if("function"==typeof n)throw Jt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Jt("Unexpected provider",n);{let t=bt(n.provide);const l=function(t){const e=function(t){let e=Yt;const n=t.deps;if(n&&n.length){e=[];for(let t=0;t<n.length;t++){let l=6,s=bt(n[t]);if(s instanceof Array)for(let t=0,e=s;t<e.length;t++){const n=e[t];n instanceof ut||n==ut?l|=1:n instanceof ht||n==ht?l&=-3:n instanceof ct||n==ct?l&=-5:s=n instanceof at?n.token:bt(n)}e.push({token:s,options:l})}}else if(t.useExisting)e=[{token:bt(t.useExisting),options:6}];else if(!(n||Mt in t))throw Jt("'deps' required",t);return e}(t);let n=Wt,l=Yt,s=!1,r=bt(t.provide);if(Mt in t)l=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)s=!0,n=bt(t.useClass);else{if("function"!=typeof r)throw Jt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);s=!0,n=r}return{deps:e,fn:n,useNew:s,value:l}}(n);if(!0===n.multi){let l=e.get(t);if(l){if(l.fn!==Kt)throw Xt(t)}else e.set(t,l={token:n.provide,deps:[],useNew:!1,fn:Kt,value:Yt});l.deps.push({token:t=n,options:6})}const s=e.get(t);if(s&&s.fn==Kt)throw Xt(t);e.set(t,l)}}}(l,t)}get(t,e,n=dt.Default){const l=this._records.get(t);try{return function t(e,n,l,s,r,i){try{return function(e,n,l,s,r,i){let o;if(!n||i&dt.SkipSelf)i&dt.Self||(o=s.get(e,r,dt.Default));else{if((o=n.value)==Gt)throw Error(Zt+"Circular dependency");if(o===Yt){n.value=Gt;let e=void 0,r=n.useNew,i=n.fn,a=n.deps,u=Yt;if(a.length){u=[];for(let e=0;e<a.length;e++){const n=a[e],r=n.options,i=2&r?l.get(n.token):void 0;u.push(t(n.token,i,l,i||4&r?s:qt.NULL,1&r?null:qt.THROW_IF_NOT_FOUND,dt.Default))}}n.value=o=r?new i(...u):i.apply(e,u)}}return o}(e,n,l,s,r,i)}catch(o){throw o instanceof Error||(o=new Error(o)),(o[At]=o[At]||[]).unshift(e),n&&n.value==Gt&&(n.value=Yt),o}}(t,l,this._records,this.parent,e,n)}catch(s){return function(t,e,n,l){const s=t[At];throw e[Rt]&&s.unshift(e[Rt]),t.message=Bt("\n"+t.message,s,"StaticInjectorError",l),t[Pt]=s,t[At]=null,t}(s,t,0,this.source)}}toString(){const t=[];return this._records.forEach((e,n)=>t.push(_t(n))),`StaticInjector[${t.join(", ")}]`}}function Xt(t){return Jt("Cannot mix multi providers and regular providers",t)}function Jt(t,e){return new Error(Bt(t,e,"StaticInjectorError"))}const te="ngDebugContext",ee="ngOriginalError",ne="ngErrorLogger",le=new Tt("AnalyzeForEntryComponents"),se=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),re=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();let ie=!0,oe=!1;function ae(){return oe=!0,ie}class ue{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(l){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(t){const e=t.attributes;for(let l=e.length-1;0<l;l--){const n=e.item(l).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,he=/^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 de(t){return(t=String(t)).match(ce)||t.match(he)?t:(ae()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function pe(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function me(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ge=pe("area,br,col,hr,img,wbr"),fe=pe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_e=pe("rp,rt"),ye=me(_e,fe),ve=me(ge,me(fe,pe("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")),me(_e,pe("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")),ye),be=pe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ce=pe("srcset"),we=me(be,Ce,pe("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"),pe("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")),Se=pe("script,style,template");class Ee{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ve.hasOwnProperty(e))return this.sanitizedSomething=!0,!Se.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!we.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let i=t.value;be[r]&&(i=de(i)),Ce[r]&&(l=i,i=(l=String(l)).split(",").map(t=>de(t.trim())).join(", ")),this.buf.push(" ",e,'="',De(i),'"')}var l;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ve.hasOwnProperty(e)&&!ge.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(De(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Te=/([^\#-~ |!])/g;function De(t){return t.replace(/&/g,"&amp;").replace(xe,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Te,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ke;function Ae(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Pe=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();class Ie{}const Oe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Re=/^url\(([^)]+)\)$/;function Me(t){return t[te]}function Ne(t){return t[ee]}function Fe(t,...e){t.error(...e)}class Ve{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),l=function(t){return t[ne]||Fe}(t);l(this._console,"ERROR",t),e&&l(this._console,"ORIGINAL ERROR",e),n&&l(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Me(t)?Me(t):this._findContext(Ne(t)):null}_findOriginalError(t){let e=Ne(t);for(;e&&Ne(e);)e=Ne(e);return e}}const Le=/([A-Z])/g;function Ue(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}let je=null;function $e(){if(!je){const t=xt.Symbol;if(t&&t.iterator)je=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(je=n)}}}return je}function Be(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function ze(t,e){const n=qe(t),l=qe(e);if(n&&l)return function(t,e,n){const l=t[$e()](),s=e[$e()]();for(;;){const t=l.next(),e=s.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,ze);{const s=t&&("object"==typeof t||"function"==typeof t),r=e&&("object"==typeof e||"function"==typeof e);return!(n||!s||l||!r)||Be(t,e)}}class He{constructor(t){this.wrapped=t}static wrap(t){return new He(t)}static unwrap(t){return He.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof He}}function qe(t){return!!We(t)&&(Array.isArray(t)||!(t instanceof Map)&&$e()in t)}function We(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ye(t){return!!t&&"function"==typeof t.then}function Ge(t){return!!t&&"function"==typeof t.subscribe}class Ke{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}class Ze{}class Qe{}function Xe(t){const e=Error(`No component factory found for ${_t(t)}. Did you add it to @NgModule.entryComponents?`);return e[Je]=t,e}const Je="ngComponent";class tn{resolveComponentFactory(t){throw Xe(t)}}let en=(()=>{class t{}return t.NULL=new tn,t})();class nn{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let l=0;l<t.length;l++){const e=t[l];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Xe(t);return new ln(e,this._ngModule)}}class ln extends Qe{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,l){return this.factory.create(t,e,n,l||this.ngModule)}}class sn{}class rn{}function on(...t){}let an=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>un(t),t})();const un=on;class cn{}class hn{}const dn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let pn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>mn(),t})();const mn=on;class gn{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fn=new gn("8.1.3");class _n{constructor(){}supports(t){return qe(t)}create(t){return new vn(t)}}const yn=(t,e)=>e;class vn{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||yn}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,l=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<Sn(n,l,s)?e:n,i=Sn(r,l,s),o=r.currentIndex;if(r===n)l--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)l++;else{s||(s=[]);const t=i-l,e=o-l;if(t!=e){for(let n=0;n<t;n++){const l=n<s.length?s[n]:s[n]=0,r=l+n;e<=r&&r<t&&(s[n]=l+1)}s[r.previousIndex]=e-t}}i!==o&&t(r,i,o)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!qe(t))throw new Error(`Error trying to diff '${_t(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,l,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)l=this._trackByFn(e,n=t[e]),null!==s&&Be(s.trackById,l)?(r&&(s=this._verifyReinsertion(s,n,l,e)),Be(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,l,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[$e()]();let l;for(;!(l=n.next()).done;)e(l.value)}}(t,t=>{l=this._trackByFn(e,t),null!==s&&Be(s.trackById,l)?(r&&(s=this._verifyReinsertion(s,t,l,e)),Be(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,l,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,l){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,l))?(Be(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,l)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Be(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,l)):t=this._addAfter(new bn(e,n),s,l),t}_verifyReinsertion(t,e,n,l){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,s=t._nextRemoved;return null===l?this._removalsHead=s:l._nextRemoved=s,null===s?this._removalsTail=l:s._prevRemoved=l,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const l=null===e?this._itHead:e._next;return t._next=l,t._prev=e,null===l?this._itTail=t:l._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new wn),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class bn{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Cn{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Be(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class wn{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Cn,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sn(t,e,n){const l=t.previousIndex;if(null===l)return l;let s=0;return n&&l<n.length&&(s=n[l]),l+e+s}class En{constructor(){}supports(t){return t instanceof Map||We(t)}create(){return new xn}}class xn{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||We(t)))throw new Error(`Error trying to diff '${_t(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const l=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,l)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const l=n._prev,s=n._next;return l&&(l._next=s),s&&(s._prev=l),n._next=null,n._prev=null,n}const n=new Tn(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Be(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Tn{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Dn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ht,new ut]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.ngInjectableDef=mt({token:t,providedIn:"root",factory:()=>new t([new _n])}),t})(),kn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ht,new ut]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.ngInjectableDef=mt({token:t,providedIn:"root",factory:()=>new t([new En])}),t})(),An=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Pn(),t})();const Pn=(...t)=>{},In=[new En],On=new Dn([new _n]),Rn=new kn(In);let Mn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Nn(t,an),t})();const Nn=on;let Fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Vn(t,an),t})();const Vn=on;function Ln(t,e,n,l){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return l&&(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(t,e){const n=new Error(t);return Un(n,e),n}(s,t)}function Un(t,e){t[te]=e,t[ne]=e.logError.bind(e)}function jn(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function $n(t,e,n){const l=t.state,s=1792&l;return s===e?(t.state=-1793&l|n,t.initIndex=-1,!0):s===n}function Bn(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function zn(t,e){return t.nodes[e]}function Hn(t,e){return t.nodes[e]}function qn(t,e){return t.nodes[e]}function Wn(t,e){return t.nodes[e]}function Yn(t,e){return t.nodes[e]}const Gn={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},Kn=()=>{},Zn=new Map;function Qn(t){let e=Zn.get(t);return e||(e=_t(t)+"_"+Zn.size,Zn.set(t,e)),e}function Xn(t,e,n,l){if(He.isWrapped(l)){l=He.unwrap(l);const s=t.def.nodes[e].bindingIndex+n,r=He.unwrap(t.oldValues[s]);t.oldValues[s]=new He(r)}return l}const Jn="$$undefined",tl="$$empty";function el(t){return{id:Jn,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let nl=0;function ll(t,e,n,l){return!(!(2&t.state)&&Be(t.oldValues[e.bindingIndex+n],l))}function sl(t,e,n,l){return!!ll(t,e,n,l)&&(t.oldValues[e.bindingIndex+n]=l,!0)}function rl(t,e,n,l){const s=t.oldValues[e.bindingIndex+n];if(1&t.state||!ze(s,l)){const r=e.bindings[n].name;throw Ln(Gn.createDebugContext(t,e.nodeIndex),`${r}: ${s}`,`${r}: ${l}`,0!=(1&t.state))}}function il(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function ol(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function al(t,e,n,l){try{return il(33554432&t.def.nodes[e].flags?Hn(t,e).componentView:t),Gn.handleEvent(t,e,n,l)}catch(s){t.root.errorHandler.handleError(s)}}function ul(t){return t.parent?Hn(t.parent,t.parentNodeDef.nodeIndex):null}function cl(t){return t.parent?t.parentNodeDef.parent:null}function hl(t,e){switch(201347067&e.flags){case 1:return Hn(t,e.nodeIndex).renderElement;case 2:return zn(t,e.nodeIndex).renderText}}function dl(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function pl(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ml(t){return 1<<t%32}function gl(t){const e={};let n=0;const l={};return t&&t.forEach(([t,s])=>{"number"==typeof t?(e[t]=s,n|=ml(t)):l[t]=s}),{matchedQueries:e,references:l,matchedQueryIds:n}}function fl(t,e){return t.map(t=>{let n,l;return Array.isArray(t)?[l,n]=t:(l=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,Rt,{value:e,configurable:!0}),{flags:l,token:n,tokenKey:Qn(n)}})}function _l(t,e,n){let l=n.renderParent;return l?0==(1&l.flags)||0==(33554432&l.flags)||l.element.componentRendererType&&l.element.componentRendererType.encapsulation===se.Native?Hn(t,n.renderParent.nodeIndex).renderElement:void 0:e}const yl=new WeakMap;function vl(t){let e=yl.get(t);return e||((e=t(()=>Kn)).factory=t,yl.set(t,e)),e}function bl(t,e,n,l,s){3===e&&(n=t.renderer.parentNode(hl(t,t.def.lastRenderRootNode))),Cl(t,e,0,t.def.nodes.length-1,n,l,s)}function Cl(t,e,n,l,s,r,i){for(let o=n;o<=l;o++){const n=t.def.nodes[o];11&n.flags&&Sl(t,n,e,s,r,i),o+=n.childCount}}function wl(t,e,n,l,s,r){let i=t;for(;i&&!dl(i);)i=i.parent;const o=i.parent,a=cl(i),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const t=o.def.nodes[c];t.ngContentIndex===e&&Sl(o,t,n,l,s,r),c+=t.childCount}if(!o.parent){const i=t.root.projectableNodes[e];if(i)for(let e=0;e<i.length;e++)El(t,i[e],n,l,s,r)}}function Sl(t,e,n,l,s,r){if(8&e.flags)wl(t,e.ngContent.index,n,l,s,r);else{const i=hl(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&El(t,i,n,l,s,r),32&e.bindingFlags&&El(Hn(t,e.nodeIndex).componentView,i,n,l,s,r)):El(t,i,n,l,s,r),16777216&e.flags){const i=Hn(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<i.length;t++)bl(i[t],n,l,s,r)}1&e.flags&&!e.element.name&&Cl(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,l,s,r)}}function El(t,e,n,l,s,r){const i=t.renderer;switch(n){case 1:i.appendChild(l,e);break;case 2:i.insertBefore(l,e,s);break;case 3:i.removeChild(l,e);break;case 0:r.push(e)}}const xl=/^:([^:]+):(.+)$/;function Tl(t){if(":"===t[0]){const e=t.match(xl);return[e[1],e[2]]}return["",t]}function Dl(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}function kl(t,e,n,l,s,r,i,o,a,u,c,h,d,p,m,g,f,_,y,v){switch(t){case 1:return e+Al(n)+l;case 2:return e+Al(n)+l+Al(s)+r;case 3:return e+Al(n)+l+Al(s)+r+Al(i)+o;case 4:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u;case 5:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u+Al(c)+h;case 6:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u+Al(c)+h+Al(d)+p;case 7:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u+Al(c)+h+Al(d)+p+Al(m)+g;case 8:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u+Al(c)+h+Al(d)+p+Al(m)+g+Al(f)+_;case 9:return e+Al(n)+l+Al(s)+r+Al(i)+o+Al(a)+u+Al(c)+h+Al(d)+p+Al(m)+g+Al(f)+_+Al(y)+v;default:throw new Error("Does not support more than 9 expressions")}}function Al(t){return null!=t?t.toString():""}const Pl=new Object,Il=Qn(qt),Ol=Qn(Dt),Rl=Qn(sn);function Ml(t,e,n,l){return n=bt(n),{index:-1,deps:fl(l,_t(e)),flags:t,token:e,value:n}}function Nl(t,e,n=qt.THROW_IF_NOT_FOUND){const l=Vt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const i=e.tokenKey;switch(i){case Il:case Ol:case Rl:return t}const o=t._def.providersByKey[i];let a;if(o){let e=t._providers[o.index];return void 0===e&&(e=t._providers[o.index]=Fl(t,o)),e===Pl?void 0:e}if((a=gt(e.token))&&(s=t,null!=(r=a).providedIn&&(function(t,e){return t._def.modules.indexOf(e)>-1}(s,r.providedIn)||"root"===r.providedIn&&s._def.isRoot))){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:e.token},t._providers[n]=Pl,t._providers[n]=Fl(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Vt(l)}var s,r}function Fl(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const l=n.length;switch(l){case 0:return new e;case 1:return new e(Nl(t,n[0]));case 2:return new e(Nl(t,n[0]),Nl(t,n[1]));case 3:return new e(Nl(t,n[0]),Nl(t,n[1]),Nl(t,n[2]));default:const s=new Array(l);for(let e=0;e<l;e++)s[e]=Nl(t,n[e]);return new e(...s)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const l=n.length;switch(l){case 0:return e();case 1:return e(Nl(t,n[0]));case 2:return e(Nl(t,n[0]),Nl(t,n[1]));case 3:return e(Nl(t,n[0]),Nl(t,n[1]),Nl(t,n[2]));default:const s=Array(l);for(let e=0;e<l;e++)s[e]=Nl(t,n[e]);return e(...s)}}(t,e.value,e.deps);break;case 2048:n=Nl(t,e.deps[0]);break;case 256:n=e.value}return n===Pl||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Pl:n}function Vl(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const l=n[e];return l.viewContainerParent=null,$l(n,e),Gn.dirtyParentQueries(l),Ul(l),l}function Ll(t,e,n){const l=e?hl(e,e.def.lastRenderRootNode):t.renderElement,s=n.renderer.parentNode(l),r=n.renderer.nextSibling(l);bl(n,2,s,r,void 0)}function Ul(t){bl(t,3,null,null,void 0)}function jl(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function $l(t,e){e>=t.length-1?t.pop():t.splice(e,1)}const Bl=new Object;function zl(t,e,n,l,s,r){return new Hl(t,e,n,l,s,r)}class Hl extends Qe{constructor(t,e,n,l,s,r){super(),this.selector=t,this.componentType=e,this._inputs=l,this._outputs=s,this.ngContentSelectors=r,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,l){if(!l)throw new Error("ngModule should be provided");const s=vl(this.viewDefFactory),r=s.nodes[0].element.componentProvider.nodeIndex,i=Gn.createRootView(t,e||[],n,s,l,Bl),o=qn(i,r).instance;return n&&i.renderer.setAttribute(Hn(i,0).renderElement,"ng-version",fn.full),new ql(i,new Kl(i),o)}}class ql extends Ze{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new an(Hn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Jl(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function Wl(t,e,n){return new Yl(t,e,n)}class Yl{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new an(this._data.renderElement)}get injector(){return new Jl(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=cl(t),t=t.parent;return t?new Jl(t,e):new Jl(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=Vl(this._data,t);Gn.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Kl(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const l=t.createEmbeddedView(e||{});return this.insert(l,n),l}createComponent(t,e,n,l,s){const r=n||this.parentInjector;s||t instanceof ln||(s=r.get(sn));const i=t.create(r,l,void 0,s);return this.insert(i.hostView,e),i}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,l){let s=e.viewContainer._embeddedViews;null==n&&(n=s.length),l.viewContainerParent=t,jl(s,n,l),function(t,e){const n=ul(e);if(!n||n===t||16&e.state)return;e.state|=16;let l=n.template._projectedViews;l||(l=n.template._projectedViews=[]),l.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,l),Gn.dirtyParentQueries(l),Ll(e,n>0?s[n-1]:null,l)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const l=t.viewContainer._embeddedViews,s=l[e];$l(l,e),null==n&&(n=l.length),jl(l,n,s),Gn.dirtyParentQueries(s),Ul(s),Ll(t,n>0?l[n-1]:null,s)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=Vl(this._data,t);e&&Gn.destroyView(e)}detach(t){const e=Vl(this._data,t);return e?new Kl(e):null}}function Gl(t){return new Kl(t)}class Kl{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return bl(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){il(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{Gn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){Gn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Gn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ul(this._view),Gn.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function Zl(t,e){return new Ql(t,e)}class Ql extends Mn{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Kl(Gn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new an(Hn(this._parentView,this._def.nodeIndex).renderElement)}}function Xl(t,e){return new Jl(t,e)}class Jl{constructor(t,e){this.view=t,this.elDef=e}get(t,e=qt.THROW_IF_NOT_FOUND){return Gn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Qn(t)},e)}}function ts(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=Hn(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return zn(t,n.nodeIndex).renderText;if(20240&n.flags)return qn(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function es(t){return new ns(t.renderer)}class ns{constructor(t){this.delegate=t}selectRootElement(t){return this.delegate.selectRootElement(t)}createElement(t,e){const[n,l]=Tl(e),s=this.delegate.createElement(l,n);return t&&this.delegate.appendChild(t,s),s}createViewRoot(t){return t}createTemplateAnchor(t){const e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e}createText(t,e){const n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n}projectNodes(t,e){for(let n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])}attachViewAfter(t,e){const n=this.delegate.parentNode(t),l=this.delegate.nextSibling(t);for(let s=0;s<e.length;s++)this.delegate.insertBefore(n,e[s],l)}detachView(t){for(let e=0;e<t.length;e++){const n=t[e],l=this.delegate.parentNode(n);this.delegate.removeChild(l,n)}}destroyView(t,e){for(let n=0;n<e.length;n++)this.delegate.destroyNode(e[n])}listen(t,e,n){return this.delegate.listen(t,e,n)}listenGlobal(t,e,n){return this.delegate.listen(t,e,n)}setElementProperty(t,e,n){this.delegate.setProperty(t,e,n)}setElementAttribute(t,e,n){const[l,s]=Tl(e);null!=n?this.delegate.setAttribute(t,s,n,l):this.delegate.removeAttribute(t,s,l)}setBindingDebugInfo(t,e,n){}setElementClass(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)}setElementStyle(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)}invokeElementMethod(t,e,n){t[e].apply(t,n)}setText(t,e){this.delegate.setValue(t,e)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function ls(t,e,n,l){return new ss(t,e,n,l)}class ss{constructor(t,e,n,l){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=l,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=new Array(e.providers.length);for(let l=0;l<e.providers.length;l++){const s=e.providers[l];4096&s.flags||void 0===n[l]&&(n[l]=Fl(t,s))}}(this)}get(t,e=qt.THROW_IF_NOT_FOUND,n=dt.Default){let l=0;return n&dt.SkipSelf?l|=1:n&dt.Self&&(l|=4),Nl(this,{token:t,tokenKey:Qn(t),flags:l},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(en)}destroy(){if(this._destroyed)throw new Error(`The ng module ${_t(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,l=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const e=t._providers[s];if(e&&e!==Pl){const t=e.ngOnDestroy;"function"!=typeof t||l.has(e)||(t.apply(e),l.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const rs=Qn(cn),is=Qn(pn),os=Qn(an),as=Qn(Fn),us=Qn(Mn),cs=Qn(An),hs=Qn(qt),ds=Qn(Dt);function ps(t,e,n,l,s,r,i,o){const a=[];if(i)for(let c in i){const[t,e]=i[c];a[t]={flags:8,name:c,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const u=[];if(o)for(let c in o)u.push({type:1,propName:c,target:null,eventName:o[c]});return fs(t,e|=16384,n,l,s,s,r,a,u)}function ms(t,e,n){return fs(-1,t|=16,null,0,e,e,n)}function gs(t,e,n,l,s){return fs(-1,t,e,0,n,l,s)}function fs(t,e,n,l,s,r,i,o,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=gl(n);a||(a=[]),o||(o=[]),r=bt(r);const d=fl(i,_t(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:l,bindings:o,bindingFlags:Dl(o),outputs:a,element:null,provider:{token:s,value:r,deps:d},text:null,query:null,ngContent:null}}function _s(t,e){return Cs(t,e)}function ys(t,e){let n=t;for(;n.parent&&!dl(n);)n=n.parent;return ws(n.parent,cl(n),!0,e.provider.value,e.provider.deps)}function vs(t,e){const n=ws(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let l=0;l<e.outputs.length;l++){const s=e.outputs[l],r=n[s.propName];if(!Ge(r))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=r.subscribe(bs(t,e.parent.nodeIndex,s.eventName));t.disposables[e.outputIndex+l]=n.unsubscribe.bind(n)}}return n}function bs(t,e,n){return l=>al(t,e,n,l)}function Cs(t,e){const n=(8192&e.flags)>0,l=e.provider;switch(201347067&e.flags){case 512:return ws(t,e.parent,n,l.value,l.deps);case 1024:return function(t,e,n,l,s){const r=s.length;switch(r){case 0:return l();case 1:return l(Es(t,e,n,s[0]));case 2:return l(Es(t,e,n,s[0]),Es(t,e,n,s[1]));case 3:return l(Es(t,e,n,s[0]),Es(t,e,n,s[1]),Es(t,e,n,s[2]));default:const i=Array(r);for(let l=0;l<r;l++)i[l]=Es(t,e,n,s[l]);return l(...i)}}(t,e.parent,n,l.value,l.deps);case 2048:return Es(t,e.parent,n,l.deps[0]);case 256:return l.value}}function ws(t,e,n,l,s){const r=s.length;switch(r){case 0:return new l;case 1:return new l(Es(t,e,n,s[0]));case 2:return new l(Es(t,e,n,s[0]),Es(t,e,n,s[1]));case 3:return new l(Es(t,e,n,s[0]),Es(t,e,n,s[1]),Es(t,e,n,s[2]));default:const i=new Array(r);for(let l=0;l<r;l++)i[l]=Es(t,e,n,s[l]);return new l(...i)}}const Ss={};function Es(t,e,n,l,s=qt.THROW_IF_NOT_FOUND){if(8&l.flags)return l.token;const r=t;2&l.flags&&(s=null);const i=l.tokenKey;i===cs&&(n=!(!e||!e.element.componentView)),e&&1&l.flags&&(n=!1,e=e.parent);let o=t;for(;o;){if(e)switch(i){case rs:return es(xs(o,e,n));case is:return xs(o,e,n).renderer;case os:return new an(Hn(o,e.nodeIndex).renderElement);case as:return Hn(o,e.nodeIndex).viewContainer;case us:if(e.element.template)return Hn(o,e.nodeIndex).template;break;case cs:return Gl(xs(o,e,n));case hs:case ds:return Xl(o,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[i];if(t){let e=qn(o,t.nodeIndex);return e||(e={instance:Cs(o,t)},o.nodes[t.nodeIndex]=e),e.instance}}n=dl(o),e=cl(o),o=o.parent,4&l.flags&&(o=null)}const a=r.root.injector.get(l.token,Ss);return a!==Ss||s===Ss?a:r.root.ngModule.injector.get(l.token,s)}function xs(t,e,n){let l;if(n)l=Hn(t,e.nodeIndex).componentView;else for(l=t;l.parent&&!dl(l);)l=l.parent;return l}function Ts(t,e,n,l,s,r){if(32768&n.flags){const e=Hn(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[l].name]=s,524288&n.flags){r=r||{};const e=He.unwrap(t.oldValues[n.bindingIndex+l]);r[n.bindings[l].nonMinifiedName]=new Ke(e,s,0!=(2&t.state))}return t.oldValues[n.bindingIndex+l]=s,r}function Ds(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let l=0;for(let s=0;s<n.length;s++){const r=n[s];let i=r.parent;for(!i&&r.flags&e&&As(t,s,r.flags&e,l++),0==(r.childFlags&e)&&(s+=r.childCount);i&&1&i.flags&&s===i.nodeIndex+i.childCount;)i.directChildFlags&e&&(l=ks(t,i,e,l)),i=i.parent}}function ks(t,e,n,l){for(let s=e.nodeIndex+1;s<=e.nodeIndex+e.childCount;s++){const e=t.def.nodes[s];e.flags&n&&As(t,s,e.flags&n,l++),s+=e.childCount}return l}function As(t,e,n,l){const s=qn(t,e);if(!s)return;const r=s.instance;r&&(Gn.setCurrentNode(t,e),1048576&n&&Bn(t,512,l)&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&Bn(t,768,l)&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}const Ps=new Tt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>re}),Is={},Os=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),Rs=void 0;var Ms=["en",[["a","p"],["AM","PM"],Rs],[["AM","PM"],Rs,Rs],[["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"]],Rs,[["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"]],Rs,[["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}",Rs,"{1} 'at' {0}",Rs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];function Ns(t){const e=t.toLowerCase().replace(/_/g,"-");let n=Is[e];if(n)return n;const l=e.split("-")[0];if(n=Is[l])return n;if("en"===l)return Ms;throw new Error(`Missing locale data for the locale "${t}".`)}let Fs="en-US";class Vs extends D{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let l,s=t=>null,r=()=>null;t&&"object"==typeof t?(l=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(l=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(l,s,r);return t instanceof d&&t.add(i),i}}function Ls(){return this._results[$e()]()}class Us{constructor(){this.dirty=!0,this._results=[],this.changes=new Vs,this.length=0;const t=$e(),e=Us.prototype;e[t]||(e[t]=Ls)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let l=0;l<e.length;l++){let s=e[l];Array.isArray(s)?(n===e&&(n=e.slice(0,l)),t(s,n)):n!==e&&n.push(s)}return n}(t),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 js=new Tt("Application Initializer");let $s=(()=>(class{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ye(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}))();const Bs=new Tt("AppId");function zs(){return`${Hs()}${Hs()}${Hs()}`}function Hs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qs=new Tt("Platform Initializer"),Ws=new Tt("Platform ID"),Ys=new Tt("appBootstrapListener");let Gs=(()=>(class{log(t){console.log(t)}warn(t){console.warn(t)}}))();const Ks=new Tt("LocaleId");function Zs(){throw new Error("Runtime compiler is not loaded")}const Qs=Zs,Xs=Zs,Js=Zs,tr=Zs;let er,nr,lr=(()=>(class{constructor(){this.compileModuleSync=Qs,this.compileModuleAsync=Xs,this.compileModuleAndAllComponentsSync=Js,this.compileModuleAndAllComponentsAsync=tr}clearCache(){}clearCacheFor(t){}getModuleId(t){}}))();class sr{}function rr(){const t=xt.wtf;return!(!t||!(er=t.trace)||(nr=er.events,0))}const ir=rr();function or(t,e){return null}const ar=ir?function(t,e=null){return nr.createScope(t,e)}:(t,e)=>or,ur=ir?function(t,e){return er.leaveScope(t,e),e}:(t,e)=>e,cr=(()=>Promise.resolve(0))();function hr(t){"undefined"==typeof Zone?cr.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class dr{constructor({enableLongStackTrace:t=!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 e;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)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,n,l,s,r,i)=>{try{return fr(e),t.invokeTask(l,s,r,i)}finally{_r(e)}},onInvoke:(t,n,l,s,r,i,o)=>{try{return fr(e),t.invoke(l,s,r,i,o)}finally{_r(e)}},onHasTask:(t,n,l,s)=>{t.hasTask(l,s),n===l&&("microTask"==s.change?(e.hasPendingMicrotasks=s.microTask,gr(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,l,s)=>(t.handleError(l,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(dr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,l){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+l,t,mr,pr,pr);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function pr(){}const mr={};function gr(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function fr(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _r(t){t._nesting--,gr(t)}class yr{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(t){return t()}runGuarded(t){return t()}runOutsideAngular(t){return t()}runTask(t){return t()}}let vr=(()=>(class{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{dr.assertNotInAngularZone(),hr(()=>{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())hr(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let l=-1;e&&e>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==l),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:l,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}))(),br=(()=>{class t{constructor(){this._applications=new Map,Sr.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sr.findTestabilityInTree(this,t,e)}}return t.ctorParameters=()=>[],t})();class Cr{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let wr,Sr=new Cr,Er=function(t){return t instanceof ln};const xr=new Tt("AllowMultipleToken");class Tr{constructor(t,e){this.name=t,this.token=e}}function Dr(t,e,n=[]){const l=`Platform: ${e}`,s=new Tt(l);return(e=[])=>{let r=kr();if(!r||r.injector.get(xr,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0});!function(t){if(wr&&!wr.destroyed&&!wr.injector.get(xr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wr=t.get(Ar);const e=t.get(qs,null);e&&e.forEach(t=>t())}(qt.create({providers:t,name:l}))}return function(t){const e=kr();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function kr(){return wr&&!wr.destroyed?wr:null}let Ar=(()=>(class{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n="noop"===(s=e?e.ngZone:void 0)?new yr:("zone.js"===s?void 0:s)||new dr({enableLongStackTrace:ae()}),l=[{provide:dr,useValue:n}];var s;return n.run(()=>{const e=qt.create({providers:l,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Ve,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(t){Fs=t.toLowerCase().replace(/_/g,"-")}(s.injector.get(Ks,"en-US")),s.onDestroy(()=>Or(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const l=n();return Ye(l)?l.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):l}catch(l){throw e.runOutsideAngular(()=>t.handleError(l)),l}}(r,n,()=>{const t=s.injector.get($s);return t.runInitializers(),t.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Pr({},e);return function(t,e,n){return t.get(sr).createCompiler([e]).compileModuleAsync(n)}(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Ir);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${_t(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function Pr(t,e){return Array.isArray(e)?e.reduce(Pr,t):Object.assign({},t,e)}let Ir=(()=>{class t{constructor(t,e,n,l,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ae(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new C(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new C(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{dr.assertNotInAngularZone(),hr(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{dr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=X(i,o.pipe(t=>J()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const l=Object.create(e,lt);return l.source=e,l.subjectFactory=n,l}}(rt)(t))))}bootstrap(t,e){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=t instanceof Qe?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const l=Er(n)?null:this._injector.get(sn),s=n.create(qt.NULL,[],e||n.selector,l);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(vr,null);return r&&s.injector.get(br).registerApplication(s.location.nativeElement,r),this._loadComponent(s),ae()&&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 e=t._tickScope();try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ur(e)}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Or(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ys,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Or(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t._tickScope=ar("ApplicationRef#tick()"),t})();function Or(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Rr{}class Mr{}const Nr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Fr=(()=>(class{constructor(t,e){this._compiler=t,this._config=e||Nr}load(t){return this._compiler instanceof lr?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,l]=t.split("#");return void 0===l&&(l="default"),n("zn8P")(e).then(t=>t[l]).then(t=>Vr(t,e,l)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,l]=t.split("#"),s="NgFactory";return void 0===l&&(l="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[l+s]).then(t=>Vr(t,e,l))}}))();function Vr(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Lr{constructor(t,e){this.name=t,this.callback=e}}class Ur{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof jr&&e.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 jr extends Ur{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,l){e.childNodes.forEach(e=>{e instanceof jr&&(n(e)&&l.push(e),t(e,n,l))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,l){e instanceof jr&&e.childNodes.forEach(e=>{n(e)&&l.push(e),e instanceof jr&&t(e,n,l)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof jr)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}const $r=new Map,Br=function(t){return $r.get(t)||null};function zr(t){$r.set(t.nativeNode,t)}const Hr=Dr(null,"core",[{provide:Ws,useValue:"unknown"},{provide:Ar,deps:[qt]},{provide:br,deps:[]},{provide:Gs,deps:[]}]);function qr(){return On}function Wr(){return Rn}function Yr(t){return t||"en-US"}function Gr(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}let Kr=(()=>(class{constructor(t){}}))();function Zr(t,e,n,l,s,r){t|=1;const{matchedQueries:i,references:o,matchedQueryIds:a}=gl(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:a,references:o,ngContentIndex:n,childCount:l,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:r?vl(r):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Kn},provider:null,text:null,query:null,ngContent:null}}function Qr(t,e,n,l,s,r,i=[],o,a,u,c,h){u||(u=Kn);const{matchedQueries:d,references:p,matchedQueryIds:m}=gl(n);let g=null,f=null;r&&([g,f]=Tl(r)),o=o||[];const _=new Array(o.length);for(let b=0;b<o.length;b++){const[t,e,n]=o[b],[l,s]=Tl(e);let r=void 0,i=void 0;switch(15&t){case 4:i=n;break;case 1:case 8:r=n}_[b]={flags:t,ns:l,name:s,nonMinifiedName:s,securityContext:r,suffix:i}}a=a||[];const y=new Array(a.length);for(let b=0;b<a.length;b++){const[t,e]=a[b];y[b]={type:0,target:t,eventName:e,propName:null}}const v=(i=i||[]).map(([t,e])=>{const[n,l]=Tl(t);return[n,l,e]});return h=function(t){if(t&&t.id===Jn){const e=null!=t.encapsulation&&t.encapsulation!==se.None||t.styles.length||Object.keys(t.data).length;t.id=e?`c${nl++}`:tl}return t&&t.id===tl&&(t=null),t||null}(h),c&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:m,references:p,ngContentIndex:l,childCount:s,bindings:_,bindingFlags:Dl(_),outputs:y,element:{ns:g,name:f,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Kn},provider:null,text:null,query:null,ngContent:null}}function Xr(t,e,n){const l=n.element,s=t.root.selectorOrNode,r=t.renderer;let i;if(t.parent||!s){i=l.name?r.createElement(l.name,l.ns):r.createComment("");const s=_l(t,e,n);s&&r.appendChild(s,i)}else i=r.selectRootElement(s,!!l.componentRendererType&&l.componentRendererType.encapsulation===se.ShadowDom);if(l.attrs)for(let o=0;o<l.attrs.length;o++){const[t,e,n]=l.attrs[o];r.setAttribute(i,e,n,t)}return i}function Jr(t,e,n,l){for(let i=0;i<n.outputs.length;i++){const o=n.outputs[i],a=ti(t,n.nodeIndex,(r=o.eventName,(s=o.target)?`${s}:${r}`:r));let u=o.target,c=t;"component"===o.target&&(u=null,c=e);const h=c.renderer.listen(u||l,o.eventName,a);t.disposables[n.outputIndex+i]=h}var s,r}function ti(t,e,n){return l=>al(t,e,n,l)}function ei(t,e,n,l){if(!sl(t,e,n,l))return!1;const s=e.bindings[n],r=Hn(t,e.nodeIndex),i=r.renderElement,o=s.name;switch(15&s.flags){case 1:!function(t,e,n,l,s,r){const i=e.securityContext;let o=i?t.root.sanitizer.sanitize(i,r):r;o=null!=o?o.toString():null;const a=t.renderer;null!=r?a.setAttribute(n,s,o,l):a.removeAttribute(n,s,l)}(t,s,i,s.ns,o,l);break;case 2:!function(t,e,n,l){const s=t.renderer;l?s.addClass(e,n):s.removeClass(e,n)}(t,i,o,l);break;case 4:!function(t,e,n,l,s){let r=t.root.sanitizer.sanitize(Pe.STYLE,s);if(null!=r){r=r.toString();const t=e.suffix;null!=t&&(r+=t)}else r=null;const i=t.renderer;null!=r?i.setStyle(n,l,r):i.removeStyle(n,l)}(t,s,i,o,l);break;case 8:!function(t,e,n,l,s){const r=e.securityContext;let i=r?t.root.sanitizer.sanitize(r,s):s;t.renderer.setProperty(n,l,i)}(33554432&e.flags&&32&s.flags?r.componentView:t,s,i,o,l)}return!0}function ni(t,e,n){let l=[];for(let s in n)l.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ml(e),bindings:l},ngContent:null}}function li(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&pl(t);){let n=t.parentNodeDef;t=t.parent;const l=n.nodeIndex+n.childCount;for(let s=0;s<=l;s++){const l=t.def.nodes[s];67108864&l.flags&&536870912&l.flags&&(l.query.filterId&e)===l.query.filterId&&Yn(t,s).setDirty(),!(1&l.flags&&s+l.childCount<n.nodeIndex)&&67108864&l.childFlags&&536870912&l.childFlags||(s+=l.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&Yn(t,n).setDirty(),n+=e.childCount}}function si(t,e){const n=Yn(t,e.nodeIndex);if(!n.dirty)return;let l,s=void 0;if(67108864&e.flags){const n=e.parent.parent;s=ri(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),l=qn(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(s=ri(t,0,t.def.nodes.length-1,e.query,[]),l=t.component);n.reset(s);const r=e.query.bindings;let i=!1;for(let o=0;o<r.length;o++){const t=r[o];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,i=!0}l[t.propName]=e}i&&n.notifyOnChanges()}function ri(t,e,n,l,s){for(let r=e;r<=n;r++){const e=t.def.nodes[r],n=e.matchedQueries[l.id];if(null!=n&&s.push(ii(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&l.filterId)===l.filterId){const n=Hn(t,r);if((e.childMatchedQueries&l.filterId)===l.filterId&&(ri(t,r+1,r+e.childCount,l,s),r+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const r=t[e],i=ul(r);i&&i===n&&ri(r,0,r.def.nodes.length-1,l,s)}}const i=n.template._projectedViews;if(i)for(let t=0;t<i.length;t++){const e=i[t];ri(e,0,e.def.nodes.length-1,l,s)}}(e.childMatchedQueries&l.filterId)!==l.filterId&&(r+=e.childCount)}return s}function ii(t,e,n){if(null!=n)switch(n){case 1:return Hn(t,e.nodeIndex).renderElement;case 0:return new an(Hn(t,e.nodeIndex).renderElement);case 2:return Hn(t,e.nodeIndex).template;case 3:return Hn(t,e.nodeIndex).viewContainer;case 4:return qn(t,e.nodeIndex).instance}}function oi(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function ai(t,e,n){const l=_l(t,e,n);l&&wl(t,n.ngContent.index,1,l,null,void 0)}function ui(t,e){return di(128,t,new Array(e+1))}function ci(t,e){return di(32,t,new Array(e))}function hi(t,e){const n=Object.keys(e),l=n.length,s=new Array(l);for(let r=0;r<l;r++){const t=n[r];s[e[t]]=t}return di(64,t,s)}function di(t,e,n){const l=new Array(n.length);for(let s=0;s<n.length;s++){const t=n[s];l[s]={flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:l,bindingFlags:Dl(l),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function pi(t,e,n){const l=new Array(n.length-1);for(let s=1;s<n.length;s++)l[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:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:l,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function mi(t,e,n){let l;const s=t.renderer;l=s.createText(n.text.prefix);const r=_l(t,e,n);return r&&s.appendChild(r,l),{renderText:l}}function gi(t,e){return(null!=t?t.toString():"")+e.suffix}function fi(t,e,n,l){let s=0,r=0,i=0,o=0,a=0,u=null,c=null,h=!1,d=!1,p=null;for(let m=0;m<e.length;m++){const t=e[m];if(t.nodeIndex=m,t.parent=u,t.bindingIndex=s,t.outputIndex=r,t.renderParent=c,i|=t.flags,a|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=u?u.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,h=!1,d=!1,t.element.template&&(a|=t.element.template.nodeMatchedQueries)}if(yi(u,t,e.length),s+=t.bindings.length,r+=t.outputs.length,!c&&3&t.flags&&(p=t),20224&t.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?u.element.publicProviders[Qn(t.provider.token)]=t:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Qn(t.provider.token)]=t),e&&(u.element.componentProvider=t)}if(u?(u.childFlags|=t.flags,u.directChildFlags|=t.flags,u.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(u.childMatchedQueries|=t.element.template.nodeMatchedQueries)):o|=t.flags,t.childCount>0)u=t,_i(t)||(c=t);else for(;u&&m===u.nodeIndex+u.childCount;){const t=u.parent;t&&(t.childFlags|=u.childFlags,t.childMatchedQueries|=u.childMatchedQueries),c=(u=t)&&_i(u)?u.renderParent:u}}return{factory:null,nodeFlags:i,rootNodeFlags:o,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Kn,updateRenderer:l||Kn,handleEvent:(t,n,l,s)=>e[n].element.handleEvent(t,l,s),bindingCount:s,outputCount:r,lastRenderRootNode:p}}function _i(t){return 0!=(1&t.flags)&&null===t.element.name}function yi(t,e,n){const l=e.element&&e.element.template;if(l){if(!l.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(l.lastRenderRootNode&&16777216&l.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const l=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=l&&e.nodeIndex+e.childCount>l)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function vi(t,e,n,l){const s=wi(t.root,t.renderer,t,e,n);return Si(s,t.component,l),Ei(s),s}function bi(t,e,n){const l=wi(t,t.renderer,null,null,e);return Si(l,n,n),Ei(l),l}function Ci(t,e,n,l){const s=e.element.componentRendererType;let r;return r=s?t.root.rendererFactory.createRenderer(l,s):t.root.renderer,wi(t.root,r,t,e.element.componentProvider,n)}function wi(t,e,n,l,s){const r=new Array(s.nodes.length),i=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:l,context:null,component:null,nodes:r,state:13,root:t,renderer:e,oldValues:new Array(s.bindingCount),disposables:i,initIndex:-1}}function Si(t,e,n){t.component=e,t.context=n}function Ei(t){let e;dl(t)&&(e=Hn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,l=t.nodes;for(let s=0;s<n.nodes.length;s++){const r=n.nodes[s];let i;switch(Gn.setCurrentNode(t,s),201347067&r.flags){case 1:const n=Xr(t,e,r);let o=void 0;if(33554432&r.flags){const e=vl(r.element.componentView);o=Gn.createComponentView(t,r,e,n)}Jr(t,o,r,n),i={renderElement:n,componentView:o,viewContainer:null,template:r.element.template?Zl(t,r):void 0},16777216&r.flags&&(i.viewContainer=Wl(t,r,i));break;case 2:i=mi(t,e,r);break;case 512:case 1024:case 2048:case 256:(i=l[s])||4096&r.flags||(i={instance:_s(t,r)});break;case 16:i={instance:ys(t,r)};break;case 16384:(i=l[s])||(i={instance:vs(t,r)}),32768&r.flags&&Si(Hn(t,r.parent.nodeIndex).componentView,i.instance,i.instance);break;case 32:case 64:case 128:i={value:void 0};break;case 67108864:case 134217728:i=new Us;break;case 8:ai(t,e,r),i=void 0}l[s]=i}Ri(t,Oi.CreateViewNodes),Vi(t,201326592,268435456,0)}function xi(t){ki(t),Gn.updateDirectives(t,1),Mi(t,Oi.CheckNoChanges),Gn.updateRenderer(t,1),Ri(t,Oi.CheckNoChanges),t.state&=-97}function Ti(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,$n(t,0,256),ki(t),Gn.updateDirectives(t,0),Mi(t,Oi.CheckAndUpdate),Vi(t,67108864,536870912,0);let e=$n(t,256,512);Ds(t,2097152|(e?1048576:0)),Gn.updateRenderer(t,0),Ri(t,Oi.CheckAndUpdate),Vi(t,134217728,536870912,0),Ds(t,8388608|((e=$n(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,$n(t,768,1024)}function Di(t,e,n,l,s,r,i,o,a,u,c,h,d){return 0===n?function(t,e,n,l,s,r,i,o,a,u,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,l,s,r,i,o,a,u,c,h){const d=e.bindings.length;let p=!1;return d>0&&ei(t,e,0,n)&&(p=!0),d>1&&ei(t,e,1,l)&&(p=!0),d>2&&ei(t,e,2,s)&&(p=!0),d>3&&ei(t,e,3,r)&&(p=!0),d>4&&ei(t,e,4,i)&&(p=!0),d>5&&ei(t,e,5,o)&&(p=!0),d>6&&ei(t,e,6,a)&&(p=!0),d>7&&ei(t,e,7,u)&&(p=!0),d>8&&ei(t,e,8,c)&&(p=!0),d>9&&ei(t,e,9,h)&&(p=!0),p}(t,e,n,l,s,r,i,o,a,u,c,h);case 2:return function(t,e,n,l,s,r,i,o,a,u,c,h){let d=!1;const p=e.bindings,m=p.length;if(m>0&&sl(t,e,0,n)&&(d=!0),m>1&&sl(t,e,1,l)&&(d=!0),m>2&&sl(t,e,2,s)&&(d=!0),m>3&&sl(t,e,3,r)&&(d=!0),m>4&&sl(t,e,4,i)&&(d=!0),m>5&&sl(t,e,5,o)&&(d=!0),m>6&&sl(t,e,6,a)&&(d=!0),m>7&&sl(t,e,7,u)&&(d=!0),m>8&&sl(t,e,8,c)&&(d=!0),m>9&&sl(t,e,9,h)&&(d=!0),d){let d=e.text.prefix;m>0&&(d+=gi(n,p[0])),m>1&&(d+=gi(l,p[1])),m>2&&(d+=gi(s,p[2])),m>3&&(d+=gi(r,p[3])),m>4&&(d+=gi(i,p[4])),m>5&&(d+=gi(o,p[5])),m>6&&(d+=gi(a,p[6])),m>7&&(d+=gi(u,p[7])),m>8&&(d+=gi(c,p[8])),m>9&&(d+=gi(h,p[9]));const g=zn(t,e.nodeIndex).renderText;t.renderer.setValue(g,d)}return d}(t,e,n,l,s,r,i,o,a,u,c,h);case 16384:return function(t,e,n,l,s,r,i,o,a,u,c,h){const d=qn(t,e.nodeIndex),p=d.instance;let m=!1,g=void 0;const f=e.bindings.length;return f>0&&ll(t,e,0,n)&&(m=!0,g=Ts(t,d,e,0,n,g)),f>1&&ll(t,e,1,l)&&(m=!0,g=Ts(t,d,e,1,l,g)),f>2&&ll(t,e,2,s)&&(m=!0,g=Ts(t,d,e,2,s,g)),f>3&&ll(t,e,3,r)&&(m=!0,g=Ts(t,d,e,3,r,g)),f>4&&ll(t,e,4,i)&&(m=!0,g=Ts(t,d,e,4,i,g)),f>5&&ll(t,e,5,o)&&(m=!0,g=Ts(t,d,e,5,o,g)),f>6&&ll(t,e,6,a)&&(m=!0,g=Ts(t,d,e,6,a,g)),f>7&&ll(t,e,7,u)&&(m=!0,g=Ts(t,d,e,7,u,g)),f>8&&ll(t,e,8,c)&&(m=!0,g=Ts(t,d,e,8,c,g)),f>9&&ll(t,e,9,h)&&(m=!0,g=Ts(t,d,e,9,h,g)),g&&p.ngOnChanges(g),65536&e.flags&&Bn(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),m}(t,e,n,l,s,r,i,o,a,u,c,h);case 32:case 64:case 128:return function(t,e,n,l,s,r,i,o,a,u,c,h){const d=e.bindings;let p=!1;const m=d.length;if(m>0&&sl(t,e,0,n)&&(p=!0),m>1&&sl(t,e,1,l)&&(p=!0),m>2&&sl(t,e,2,s)&&(p=!0),m>3&&sl(t,e,3,r)&&(p=!0),m>4&&sl(t,e,4,i)&&(p=!0),m>5&&sl(t,e,5,o)&&(p=!0),m>6&&sl(t,e,6,a)&&(p=!0),m>7&&sl(t,e,7,u)&&(p=!0),m>8&&sl(t,e,8,c)&&(p=!0),m>9&&sl(t,e,9,h)&&(p=!0),p){const p=Wn(t,e.nodeIndex);let g;switch(201347067&e.flags){case 32:g=new Array(d.length),m>0&&(g[0]=n),m>1&&(g[1]=l),m>2&&(g[2]=s),m>3&&(g[3]=r),m>4&&(g[4]=i),m>5&&(g[5]=o),m>6&&(g[6]=a),m>7&&(g[7]=u),m>8&&(g[8]=c),m>9&&(g[9]=h);break;case 64:g={},m>0&&(g[d[0].name]=n),m>1&&(g[d[1].name]=l),m>2&&(g[d[2].name]=s),m>3&&(g[d[3].name]=r),m>4&&(g[d[4].name]=i),m>5&&(g[d[5].name]=o),m>6&&(g[d[6].name]=a),m>7&&(g[d[7].name]=u),m>8&&(g[d[8].name]=c),m>9&&(g[d[9].name]=h);break;case 128:const t=n;switch(m){case 1:g=t.transform(n);break;case 2:g=t.transform(l);break;case 3:g=t.transform(l,s);break;case 4:g=t.transform(l,s,r);break;case 5:g=t.transform(l,s,r,i);break;case 6:g=t.transform(l,s,r,i,o);break;case 7:g=t.transform(l,s,r,i,o,a);break;case 8:g=t.transform(l,s,r,i,o,a,u);break;case 9:g=t.transform(l,s,r,i,o,a,u,c);break;case 10:g=t.transform(l,s,r,i,o,a,u,c,h)}}p.value=g}return p}(t,e,n,l,s,r,i,o,a,u,c,h);default:throw"unreachable"}}(t,e,l,s,r,i,o,a,u,c,h,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let l=!1;for(let s=0;s<n.length;s++)ei(t,e,s,n[s])&&(l=!0);return l}(t,e,n);case 2:return function(t,e,n){const l=e.bindings;let s=!1;for(let r=0;r<n.length;r++)sl(t,e,r,n[r])&&(s=!0);if(s){let s="";for(let t=0;t<n.length;t++)s+=gi(n[t],l[t]);s=e.text.prefix+s;const r=zn(t,e.nodeIndex).renderText;t.renderer.setValue(r,s)}return s}(t,e,n);case 16384:return function(t,e,n){const l=qn(t,e.nodeIndex),s=l.instance;let r=!1,i=void 0;for(let o=0;o<n.length;o++)ll(t,e,o,n[o])&&(r=!0,i=Ts(t,l,e,o,n[o],i));return i&&s.ngOnChanges(i),65536&e.flags&&Bn(t,256,e.nodeIndex)&&s.ngOnInit(),262144&e.flags&&s.ngDoCheck(),r}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const l=e.bindings;let s=!1;for(let r=0;r<n.length;r++)sl(t,e,r,n[r])&&(s=!0);if(s){const s=Wn(t,e.nodeIndex);let r;switch(201347067&e.flags){case 32:r=n;break;case 64:r={};for(let s=0;s<n.length;s++)r[l[s].name]=n[s];break;case 128:const t=n[0],e=n.slice(1);r=t.transform(...e)}s.value=r}return s}(t,e,n);default:throw"unreachable"}}(t,e,l)}function ki(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const l=e.nodes[n];if(4&l.flags){const e=Hn(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const l=e[n];l.state|=32,ol(l,t)}}else 0==(4&l.childFlags)&&(n+=l.childCount)}}function Ai(t,e,n,l,s,r,i,o,a,u,c,h,d){return 0===n?function(t,e,n,l,s,r,i,o,a,u,c,h){const d=e.bindings.length;d>0&&rl(t,e,0,n),d>1&&rl(t,e,1,l),d>2&&rl(t,e,2,s),d>3&&rl(t,e,3,r),d>4&&rl(t,e,4,i),d>5&&rl(t,e,5,o),d>6&&rl(t,e,6,a),d>7&&rl(t,e,7,u),d>8&&rl(t,e,8,c),d>9&&rl(t,e,9,h)}(t,e,l,s,r,i,o,a,u,c,h,d):function(t,e,n){for(let l=0;l<n.length;l++)rl(t,e,l,n[l])}(t,e,l),!1}function Pi(t,e){if(Yn(t,e.nodeIndex).dirty)throw Ln(Gn.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function Ii(t){if(!(128&t.state)){if(Mi(t,Oi.Destroy),Ri(t,Oi.Destroy),Ds(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=ul(t);if(e){const n=e.template._projectedViews;n&&($l(n,n.indexOf(t)),Gn.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(Hn(t,n).renderElement):2&e.flags?t.renderer.destroyNode(zn(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&Yn(t,n).destroy()}}(t),dl(t)&&t.renderer.destroy(),t.state|=128}}const Oi=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function Ri(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let l=0;l<n.nodes.length;l++){const s=n.nodes[l];33554432&s.flags?Ni(Hn(t,l).componentView,e):0==(33554432&s.childFlags)&&(l+=s.childCount)}}function Mi(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let l=0;l<n.nodes.length;l++){const s=n.nodes[l];if(16777216&s.flags){const n=Hn(t,l).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)Ni(n[t],e)}else 0==(16777216&s.childFlags)&&(l+=s.childCount)}}function Ni(t,e){const n=t.state;switch(e){case Oi.CheckNoChanges:0==(128&n)&&(12==(12&n)?xi(t):64&n&&Fi(t,Oi.CheckNoChangesProjectedViews));break;case Oi.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?xi(t):64&n&&Fi(t,e));break;case Oi.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Ti(t):64&n&&Fi(t,Oi.CheckAndUpdateProjectedViews));break;case Oi.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Ti(t):64&n&&Fi(t,e));break;case Oi.Destroy:Ii(t);break;case Oi.CreateViewNodes:Ei(t)}}function Fi(t,e){Mi(t,e),Ri(t,e)}function Vi(t,e,n,l){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const s=t.def.nodes.length;for(let r=0;r<s;r++){const s=t.def.nodes[r];if(s.flags&e&&s.flags&n)switch(Gn.setCurrentNode(t,s.nodeIndex),l){case 0:si(t,s);break;case 1:Pi(t,s)}s.childFlags&e&&s.childFlags&n||(r+=s.childCount)}}let Li=!1;function Ui(t,e,n,l,s,r){const i=s.injector.get(hn);return bi($i(t,s,i,e,n),l,r)}function ji(t,e,n,l,s,r){const i=s.injector.get(hn),o=$i(t,s,new bo(i),e,n),a=Qi(l);return yo(lo.create,bi,null,[o,a,r])}function $i(t,e,n,l,s){const r=e.injector.get(Ie),i=e.injector.get(Ve),o=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:l,selectorOrNode:s,sanitizer:r,rendererFactory:n,renderer:o,errorHandler:i}}function Bi(t,e,n,l){const s=Qi(n);return yo(lo.create,vi,null,[t,e,s,l])}function zi(t,e,n,l){return n=Yi.get(e.element.componentProvider.provider.token)||Qi(n),yo(lo.create,Ci,null,[t,e,n,l])}function Hi(t,e,n,l){return ls(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===qi.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(t=>{const l=qi.get(t.token);3840&t.flags&&l&&(e=!0,n=n||l.deprecatedBehavior)}),t.modules.forEach(t=>{Wi.forEach((l,s)=>{gt(s).providedIn===t&&(e=!0,n=n||l.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const l=t.providers[e];n&&(l.flags|=4096);const s=qi.get(l.token);s&&(l.flags=-3841&l.flags|s.flags,l.deps=fl(s.deps),l.value=s.value)}if(Wi.size>0){let e=new Set(t.modules);Wi.forEach((l,s)=>{if(e.has(gt(s).providedIn)){let e={token:s,flags:l.flags|(n?4096:0),deps:fl(l.deps),value:l.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Qn(s)]=e}})}}(t=t.factory(()=>Kn)),t):t}(l))}const qi=new Map,Wi=new Map,Yi=new Map;function Gi(t){let e;qi.set(t.token,t),"function"==typeof t.token&&(e=gt(t.token))&&"function"==typeof e.providedIn&&Wi.set(t.token,t)}function Ki(t,e){const n=vl(e.viewDefFactory),l=vl(n.nodes[0].element.componentView);Yi.set(t,l)}function Zi(){qi.clear(),Wi.clear(),Yi.clear()}function Qi(t){if(0===qi.size)return t;const e=function(t){const e=[];let n=null;for(let l=0;l<t.nodes.length;l++){const s=t.nodes[l];1&s.flags&&(n=s),n&&3840&s.flags&&qi.has(s.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>Kn);for(let l=0;l<e.length;l++)n(t,e[l]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=qi.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=fl(n.deps),t.value=n.value)}}}}function Xi(t,e,n,l,s,r,i,o,a,u,c,h,d){const p=t.def.nodes[e];return Di(t,p,n,l,s,r,i,o,a,u,c,h,d),224&p.flags?Wn(t,e).value:void 0}function Ji(t,e,n,l,s,r,i,o,a,u,c,h,d){const p=t.def.nodes[e];return Ai(t,p,n,l,s,r,i,o,a,u,c,h,d),224&p.flags?Wn(t,e).value:void 0}function to(t){return yo(lo.detectChanges,Ti,null,[t])}function eo(t){return yo(lo.checkNoChanges,xi,null,[t])}function no(t){return yo(lo.destroy,Ii,null,[t])}const lo=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();let so,ro,io;function oo(t,e){ro=t,io=e}function ao(t,e,n,l){return oo(t,e),yo(lo.handleEvent,t.def.handleEvent,null,[t,e,n,l])}function uo(t,e){if(128&t.state)throw jn(lo[so]);return oo(t,mo(t,0)),t.def.updateDirectives((function(t,n,l,...s){const r=t.def.nodes[n];return 0===e?ho(t,r,l,s):po(t,r,l,s),16384&r.flags&&oo(t,mo(t,n)),224&r.flags?Wn(t,r.nodeIndex).value:void 0}),t)}function co(t,e){if(128&t.state)throw jn(lo[so]);return oo(t,go(t,0)),t.def.updateRenderer((function(t,n,l,...s){const r=t.def.nodes[n];return 0===e?ho(t,r,l,s):po(t,r,l,s),3&r.flags&&oo(t,go(t,n)),224&r.flags?Wn(t,r.nodeIndex).value:void 0}),t)}function ho(t,e,n,l){if(Di(t,e,n,...l)){const i=1===n?l[0]:l;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const l=e.bindings[t],o=i[t];8&l.flags&&(n[(s=l.nonMinifiedName,r=void 0,r=s.replace(/[$@]/g,"_"),`ng-reflect-${s=r.replace(Le,(...t)=>"-"+t[1].toLowerCase())}`)]=Ue(o))}const l=e.parent,o=Hn(t,l.nodeIndex).renderElement;if(l.element.name)for(let e in n){const l=n[e];null!=l?t.renderer.setAttribute(o,e,l):t.renderer.removeAttribute(o,e)}else t.renderer.setValue(o,`bindings=${JSON.stringify(n,null,2)}`)}}var s,r}function po(t,e,n,l){Ai(t,e,n,...l)}function mo(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function go(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class fo{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,l=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&l;)n=cl(l),l=l.parent;this.elDef=n,this.elView=l}get elOrCompView(){return Hn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Xl(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){_o(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&_o(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!dl(t);)t=t.parent;return t.parent?Hn(t.parent,cl(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?hl(this.view,this.nodeDef):hl(this.elView,this.elDef)}logError(t,...e){let n,l;2&this.nodeDef.flags?(n=this.view.def,l=this.nodeDef.nodeIndex):(n=this.elView.def,l=this.elDef.nodeIndex);const s=function(t,e){let n=-1;for(let l=0;l<=e;l++)3&t.nodes[l].flags&&n++;return n}(n,l);let r=-1;n.factory(()=>++r===s?t.error.bind(t,...e):Kn),r<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function _o(t,e,n){for(let l in e.references)n[l]=ii(t,e,e.references[l])}function yo(t,e,n,l){const s=so,r=ro,i=io;try{so=t;const o=e.apply(n,l);return ro=r,io=i,so=s,o}catch(o){if(Me(o)||!ro)throw o;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Un(t,e),t}(o,vo())}}function vo(){return ro?new fo(ro,io):null}class bo{constructor(t){this.delegate=t}createRenderer(t,e){return new Co(this.delegate.createRenderer(t,e))}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 Co{constructor(t){this.delegate=t,this.debugContextFactory=vo,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){!function(t){$r.delete(t.nativeNode)}(Br(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),l=this.createDebugContext(n);if(l){const e=new jr(n,null,l);e.name=t,zr(e)}return n}createComment(t){const e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&zr(new Ur(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&zr(new Ur(e,null,n)),e}appendChild(t,e){const n=Br(t),l=Br(e);n&&l&&n instanceof jr&&n.addChild(l),this.delegate.appendChild(t,e)}insertBefore(t,e,n){const l=Br(t),s=Br(e),r=Br(n);l&&s&&l instanceof jr&&l.insertBefore(r,s),this.delegate.insertBefore(t,e,n)}removeChild(t,e){const n=Br(t),l=Br(e);n&&l&&n instanceof jr&&n.removeChild(l),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),l=vo();return l&&zr(new jr(n,null,l)),n}setAttribute(t,e,n,l){const s=Br(t);s&&s instanceof jr&&(s.attributes[l?l+":"+e:e]=n),this.delegate.setAttribute(t,e,n,l)}removeAttribute(t,e,n){const l=Br(t);l&&l instanceof jr&&(l.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=Br(t);n&&n instanceof jr&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=Br(t);n&&n instanceof jr&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,l){const s=Br(t);s&&s instanceof jr&&(s.styles[e]=n),this.delegate.setStyle(t,e,n,l)}removeStyle(t,e,n){const l=Br(t);l&&l instanceof jr&&(l.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const l=Br(t);l&&l instanceof jr&&(l.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const l=Br(t);l&&l.listeners.push(new Lr(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function wo(t,e,n){return new So(t,e,n)}class So extends rn{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){!function(){if(Li)return;Li=!0;const t=ae()?{setCurrentNode:oo,createRootView:ji,createEmbeddedView:Bi,createComponentView:zi,createNgModuleRef:Hi,overrideProvider:Gi,overrideComponentView:Ki,clearOverrides:Zi,checkAndUpdateView:to,checkNoChangesView:eo,destroyView:no,createDebugContext:(t,e)=>new fo(t,e),handleEvent:ao,updateDirectives:uo,updateRenderer:co}:{setCurrentNode:()=>{},createRootView:Ui,createEmbeddedView:vi,createComponentView:Ci,createNgModuleRef:ls,overrideProvider:Kn,overrideComponentView:Kn,clearOverrides:Kn,checkAndUpdateView:Ti,checkNoChangesView:xi,destroyView:Ii,createDebugContext:(t,e)=>new fo(t,e),handleEvent:(t,e,n,l)=>t.def.handleEvent(t,e,n,l),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Xi:Ji,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Xi:Ji,t)};Gn.setCurrentNode=t.setCurrentNode,Gn.createRootView=t.createRootView,Gn.createEmbeddedView=t.createEmbeddedView,Gn.createComponentView=t.createComponentView,Gn.createNgModuleRef=t.createNgModuleRef,Gn.overrideProvider=t.overrideProvider,Gn.overrideComponentView=t.overrideComponentView,Gn.clearOverrides=t.clearOverrides,Gn.checkAndUpdateView=t.checkAndUpdateView,Gn.checkNoChangesView=t.checkNoChangesView,Gn.destroyView=t.destroyView,Gn.resolveDep=Es,Gn.createDebugContext=t.createDebugContext,Gn.handleEvent=t.handleEvent,Gn.updateDirectives=t.updateDirectives,Gn.updateRenderer=t.updateRenderer,Gn.dirtyParentQueries=li}();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),l={};for(const s in t.providersByKey)l[s]=t.providersByKey[s];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:l}}(vl(this._ngModuleDefFactory));return Gn.createNgModuleRef(this.moduleType,t||qt.NULL,this._bootstrapComponents,e)}}class Eo{constructor(){this.title="Invoice"}}var xo;class To{transform(t,e){return t?e?(xo=[],e=e.toString().toLowerCase(),t.filter(t=>{var n=JSON.stringify(t).toLowerCase().includes(e);return n&&xo.push(t),n})):t:[]}}class Do{constructor(t,e){this.http=t,this.router=e,this.proformas=new Array,this.preventSingleClick=!1,this.sortUp=new Array}ngOnInit(){this.http.get("/api/Proforma/").toPromise().then(t=>{this.proformas=t})}doubleClick(t){this.preventSingleClick=!0,clearTimeout(this.timer),this.router.navigate(["/edit/"],{queryParams:{id:t.currentTarget.children[0].innerText}})}getColor(t){var e=!1,n=t.Paid-t.TotalUsd*t.ExchangeRate,l=t.Paid-t.TotalUsd;if("Lira"===t.Currency&&(e=!0),!1===e){if(l<-1)return"red";if(l>1)return"green"}else{if(n<-1)return"red";if(n>1)return"green"}return""}getDifference(t){return"Lira"===t.Currency?t.Paid-t.TotalUsd*t.ExchangeRate:t.Paid-t.TotalUsd}calculateTotalWeight(){this.totalPaid=0,this.totalDebt=0;var t=xo;xo||(t=this.proformas);for(var e=0;e<t.length;e++)this.totalPaid+="Lira"!==t[e].Currency?t[e].ExchangeRate*t[e].Paid:Number(t[e].Paid),this.totalDebt+=Number(t[e].TotalUsd)*t[e].ExchangeRate}Sort(t){switch(t){case"ProformaId":this.sortUp[0]=!this.sortUp[0],this.proformas.sort(this.sortUp[0]?(t,e)=>t.ProformaId-e.ProformaId:(t,e)=>e.ProformaId-t.ProformaId);break;case"CustomerName":this.sortUp[1]=!this.sortUp[1],this.proformas.sort(this.sortUp[1]?(t,e)=>t.Customer.CustomerName.toLocaleLowerCase().localeCompare(e.Customer.CustomerName.toLocaleLowerCase()):(t,e)=>e.Customer.CustomerName.toLocaleLowerCase().localeCompare(t.Customer.CustomerName.toLocaleLowerCase()));break;case"ProformaDate":this.sortUp[2]=!this.sortUp[2],this.proformas.sort(this.sortUp[2]?(t,e)=>t.ProformaDate.localeCompare(e.ProformaDate):(t,e)=>e.ProformaDate.localeCompare(t.ProformaDate));break;case"TotalUsd":this.sortUp[4]=!this.sortUp[4],this.proformas.sort(this.sortUp[4]?(t,e)=>t.TotalUsd-e.TotalUsd:(t,e)=>e.TotalUsd-t.TotalUsd);break;case"Paid":this.sortUp[5]=!this.sortUp[5],this.proformas.sort(this.sortUp[5]?(t,e)=>t.Paid-e.Paid:(t,e)=>e.Paid-t.Paid)}}}class ko{}class Ao{}const Po=new Tt("Location Initialized");class Io{}const Oo=new Tt("appBaseHref");let Ro=(()=>{class t{constructor(e,n){this._subject=new Vs,this._urlChangeListeners=[],this._platformStrategy=e;const l=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=t.stripTrailingSlash(Mo(l)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+t.normalizeQueryParams(n))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Mo(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(e,n="",l=null){this._platformStrategy.pushState(l,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),l)}replaceState(e,n="",l=null){this._platformStrategy.replaceState(l,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),l)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}static normalizeQueryParams(t){return t&&"?"!==t[0]?"?"+t:t}static joinWithSlash(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}static stripTrailingSlash(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}}return t})();function Mo(t){return t.replace(/\/index.html$/,"")}let No=(()=>(class extends Io{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Ro.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,l){let s=this.prepareExternalUrl(n+Ro.normalizeQueryParams(l));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,l){let s=this.prepareExternalUrl(n+Ro.normalizeQueryParams(l));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),Fo=(()=>(class extends Io{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ro.joinWithSlash(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Ro.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,l){const s=this.prepareExternalUrl(n+Ro.normalizeQueryParams(l));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,l){const s=this.prepareExternalUrl(n+Ro.normalizeQueryParams(l));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))();const Vo=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),Lo=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Uo=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),jo=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),$o=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),Bo=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function zo(t,e){return Go(Ns(t)[Os.DateFormat],e)}function Ho(t,e){return Go(Ns(t)[Os.TimeFormat],e)}function qo(t,e){return Go(Ns(t)[Os.DateTimeFormat],e)}function Wo(t,e){const n=Ns(t),l=n[Os.NumberSymbols][e];if(void 0===l){if(e===Bo.CurrencyDecimal)return n[Os.NumberSymbols][Bo.Decimal];if(e===Bo.CurrencyGroup)return n[Os.NumberSymbols][Bo.Group]}return l}function Yo(t){if(!t[Os.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Os.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Go(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Ko(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Zo=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qo={},Xo=/((?:[^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]*)/,Jo=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),ta=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),ea=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function na(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function la(t,e,n="-",l,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let i=String(t);for(;i.length<e;)i="0"+i;return l&&(i=i.substr(i.length-e)),r+i}function sa(t,e,n=0,l=!1,s=!1){return function(r,i){let o=function(t,e){switch(t){case ta.FullYear:return e.getFullYear();case ta.Month:return e.getMonth();case ta.Date:return e.getDate();case ta.Hours:return e.getHours();case ta.Minutes:return e.getMinutes();case ta.Seconds:return e.getSeconds();case ta.FractionalSeconds:return e.getMilliseconds();case ta.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||o>-n)&&(o+=n),t===ta.Hours)0===o&&-12===n&&(o=12);else if(t===ta.FractionalSeconds)return a=e,la(o,3).substr(0,a);var a;const u=Wo(i,Bo.MinusSign);return la(o,e,u,l,s)}}function ra(t,e,n=Uo.Format,l=!1){return function(s,r){return function(t,e,n,l,s,r){switch(n){case ea.Months:return function(t,e,n){const l=Ns(t),s=Go([l[Os.MonthsFormat],l[Os.MonthsStandalone]],e);return Go(s,n)}(e,s,l)[t.getMonth()];case ea.Days:return function(t,e,n){const l=Ns(t),s=Go([l[Os.DaysFormat],l[Os.DaysStandalone]],e);return Go(s,n)}(e,s,l)[t.getDay()];case ea.DayPeriods:const i=t.getHours(),o=t.getMinutes();if(r){const t=function(t){const e=Ns(t);return Yo(e),(e[Os.ExtraData][2]||[]).map(t=>"string"==typeof t?Ko(t):[Ko(t[0]),Ko(t[1])])}(e),n=function(t,e,n){const l=Ns(t);Yo(l);const s=Go([l[Os.ExtraData][0],l[Os.ExtraData][1]],e)||[];return Go(s,n)||[]}(e,s,l);let r;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:l,minutes:s}=t[0],{hours:a,minutes:u}=t[1];i>=l&&o>=s&&(i<a||i===a&&o<u)&&(r=n[e])}else{const{hours:l,minutes:s}=t;l===i&&s===o&&(r=n[e])}}),r)return r}return function(t,e,n){const l=Ns(t),s=Go([l[Os.DayPeriodsFormat],l[Os.DayPeriodsStandalone]],e);return Go(s,n)}(e,s,l)[i<12?0:1];case ea.Eras:return function(t,e){return Go(Ns(t)[Os.Eras],e)}(e,l)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,r,t,e,n,l)}}function ia(t){return function(e,n,l){const s=-1*l,r=Wo(n,Bo.MinusSign),i=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Jo.Short:return(s>=0?"+":"")+la(i,2,r)+la(Math.abs(s%60),2,r);case Jo.ShortGMT:return"GMT"+(s>=0?"+":"")+la(i,1,r);case Jo.Long:return"GMT"+(s>=0?"+":"")+la(i,2,r)+":"+la(Math.abs(s%60),2,r);case Jo.Extended:return 0===l?"Z":(s>=0?"+":"")+la(i,2,r)+":"+la(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}const oa=0,aa=4;function ua(t,e=!1){return function(n,l){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,oa,1).getDay();return new Date(t,0,1+(e<=aa?aa:aa+7)-e)}(n.getFullYear()),e=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(aa-r.getDay()))).getTime()-t.getTime();s=1+Math.round(e/6048e5)}var r;return la(s,t,Wo(l,Bo.MinusSign))}}const ca={};function ha(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function da(t){return t instanceof Date&&!isNaN(t.valueOf())}const pa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ma=22,ga=".",fa="0",_a=";",ya=",",va="#";function ba(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}const Ca=new Tt("UseV4Plurals");class wa{}let Sa=(()=>(class extends wa{constructor(t,e){super(),this.locale=t,this.deprecatedPluralFn=e}getPluralCategory(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Ns(t)[Os.PluralCase]}(e||this.locale)(t)){case Lo.Zero:return"zero";case Lo.One:return"one";case Lo.Two:return"two";case Lo.Few:return"few";case Lo.Many:return"many";default:return"other"}}}))();function Ea(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[l,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(l.trim()===e)return decodeURIComponent(s)}return null}class xa{}let Ta=(()=>(class{constructor(t,e,n,l){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=l,this._initialClasses=[]}getValue(){return null}setClass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(qe(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_t(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}))(),Da=(()=>{class t{constructor(t){this._delegate=t}getValue(){return this._delegate.getValue()}}return t.ngDirectiveDef=void 0,t})(),ka=(()=>(class extends Da{constructor(t){super(t)}set klass(t){this._delegate.setClass(t)}set ngClass(t){this._delegate.setNgClass(t)}ngDoCheck(){this._delegate.applyChanges()}}))();class Aa{constructor(t,e,n,l){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=l}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}}let Pa=(()=>(class{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){ae()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}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(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,l)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Aa(null,this._ngForOf,-1,-1),l),s=new Ia(t,n);e.push(s)}else if(null==l)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,l);const r=new Ia(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,l=this._viewContainer.length;n<l;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=l,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}))();class Ia{constructor(t,e){this.record=t,this.view=e}}let Oa=(()=>(class{constructor(t,e){this._viewContainer=t,this._context=new Ra,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ma("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ma("ngIfElse",t),this._elseTemplateRef=t,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 Ra{constructor(){this.$implicit=null,this.ngIf=null}}function Ma(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}class Na{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Fa=(()=>(class{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}))(),Va=(()=>(class{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Na(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}))();function La(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${_t(t)}'`)}let Ua=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",l,s){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,l){let s=function(t){if(da(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,l]=t.split("-").map(t=>+t);return new Date(e,n-1,l)}let n;if(n=t.match(Zo))return function(t){const e=new Date(0);let n=0,l=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),l=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const i=Number(t[4]||0)-n,o=Number(t[5]||0)-l,a=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,i,o,a,u),e}(n)}const e=new Date(t);if(!da(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const l=function(t){return Ns(t)[Os.LocaleId]}(e);if(Qo[l]=Qo[l]||{},Qo[l][n])return Qo[l][n];let s="";switch(n){case"shortDate":s=zo(e,$o.Short);break;case"mediumDate":s=zo(e,$o.Medium);break;case"longDate":s=zo(e,$o.Long);break;case"fullDate":s=zo(e,$o.Full);break;case"shortTime":s=Ho(e,$o.Short);break;case"mediumTime":s=Ho(e,$o.Medium);break;case"longTime":s=Ho(e,$o.Long);break;case"fullTime":s=Ho(e,$o.Full);break;case"short":const n=t(e,"shortTime"),l=t(e,"shortDate");s=na(qo(e,$o.Short),[n,l]);break;case"medium":const r=t(e,"mediumTime"),i=t(e,"mediumDate");s=na(qo(e,$o.Medium),[r,i]);break;case"long":const o=t(e,"longTime"),a=t(e,"longDate");s=na(qo(e,$o.Long),[o,a]);break;case"full":const u=t(e,"fullTime"),c=t(e,"fullDate");s=na(qo(e,$o.Full),[u,c])}return s&&(Qo[l][n]=s),s}(n,e)||e;let r,i=[];for(;e;){if(!(r=Xo.exec(e))){i.push(e);break}{const t=(i=i.concat(r.slice(1))).pop();if(!t)break;e=t}}let o=s.getTimezoneOffset();l&&(o=ha(l,o),s=function(t,e,n){const l=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ha(e,l)-l))}(s,l));let a="";return i.forEach(t=>{const e=function(t){if(ca[t])return ca[t];let e;switch(t){case"G":case"GG":case"GGG":e=ra(ea.Eras,jo.Abbreviated);break;case"GGGG":e=ra(ea.Eras,jo.Wide);break;case"GGGGG":e=ra(ea.Eras,jo.Narrow);break;case"y":e=sa(ta.FullYear,1,0,!1,!0);break;case"yy":e=sa(ta.FullYear,2,0,!0,!0);break;case"yyy":e=sa(ta.FullYear,3,0,!1,!0);break;case"yyyy":e=sa(ta.FullYear,4,0,!1,!0);break;case"M":case"L":e=sa(ta.Month,1,1);break;case"MM":case"LL":e=sa(ta.Month,2,1);break;case"MMM":e=ra(ea.Months,jo.Abbreviated);break;case"MMMM":e=ra(ea.Months,jo.Wide);break;case"MMMMM":e=ra(ea.Months,jo.Narrow);break;case"LLL":e=ra(ea.Months,jo.Abbreviated,Uo.Standalone);break;case"LLLL":e=ra(ea.Months,jo.Wide,Uo.Standalone);break;case"LLLLL":e=ra(ea.Months,jo.Narrow,Uo.Standalone);break;case"w":e=ua(1);break;case"ww":e=ua(2);break;case"W":e=ua(1,!0);break;case"d":e=sa(ta.Date,1);break;case"dd":e=sa(ta.Date,2);break;case"E":case"EE":case"EEE":e=ra(ea.Days,jo.Abbreviated);break;case"EEEE":e=ra(ea.Days,jo.Wide);break;case"EEEEE":e=ra(ea.Days,jo.Narrow);break;case"EEEEEE":e=ra(ea.Days,jo.Short);break;case"a":case"aa":case"aaa":e=ra(ea.DayPeriods,jo.Abbreviated);break;case"aaaa":e=ra(ea.DayPeriods,jo.Wide);break;case"aaaaa":e=ra(ea.DayPeriods,jo.Narrow);break;case"b":case"bb":case"bbb":e=ra(ea.DayPeriods,jo.Abbreviated,Uo.Standalone,!0);break;case"bbbb":e=ra(ea.DayPeriods,jo.Wide,Uo.Standalone,!0);break;case"bbbbb":e=ra(ea.DayPeriods,jo.Narrow,Uo.Standalone,!0);break;case"B":case"BB":case"BBB":e=ra(ea.DayPeriods,jo.Abbreviated,Uo.Format,!0);break;case"BBBB":e=ra(ea.DayPeriods,jo.Wide,Uo.Format,!0);break;case"BBBBB":e=ra(ea.DayPeriods,jo.Narrow,Uo.Format,!0);break;case"h":e=sa(ta.Hours,1,-12);break;case"hh":e=sa(ta.Hours,2,-12);break;case"H":e=sa(ta.Hours,1);break;case"HH":e=sa(ta.Hours,2);break;case"m":e=sa(ta.Minutes,1);break;case"mm":e=sa(ta.Minutes,2);break;case"s":e=sa(ta.Seconds,1);break;case"ss":e=sa(ta.Seconds,2);break;case"S":e=sa(ta.FractionalSeconds,1);break;case"SS":e=sa(ta.FractionalSeconds,2);break;case"SSS":e=sa(ta.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ia(Jo.Short);break;case"ZZZZZ":e=ia(Jo.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ia(Jo.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ia(Jo.Long);break;default:return null}return ca[t]=e,e}(t);a+=e?e(s,n,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(e,n,s||this.locale,l)}catch(r){throw La(t,r.message)}}}return t})(),ja=(()=>{class t{constructor(t){this._locale=t}transform(e,n,l){if(function(t){return null==t||""===t||t!=t}(e))return null;l=l||this._locale;try{return function(t,e,n){return function(t,e,n,l,s,r,i=!1){let o="",a=!1;if(isFinite(t)){let u=function(t){let e,n,l,s,r,i=Math.abs(t)+"",o=0;for((n=i.indexOf(ga))>-1&&(i=i.replace(ga,"")),(l=i.search(/e/i))>0?(n<0&&(n=l),n+=+i.slice(l+1),i=i.substring(0,l)):n<0&&(n=i.length),l=0;i.charAt(l)===fa;l++);if(l===(r=i.length))e=[0],n=1;else{for(r--;i.charAt(r)===fa;)r--;for(n-=l,e=[],s=0;l<=r;l++,s++)e[s]=Number(i.charAt(l))}return n>ma&&(e=e.splice(0,ma-1),o=n-1,n=1),{digits:e,exponent:o,integerLen:n}}(t);i&&(u=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));let c=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(pa);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],l=t[5];null!=e&&(c=ba(e)),null!=n&&(h=ba(n)),null!=l?d=ba(l):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let l=t.digits,s=l.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let i=r+t.integerLen,o=l[i];if(i>0){l.splice(Math.max(t.integerLen,i));for(let t=i;t<l.length;t++)l[t]=0}else{s=Math.max(0,s),t.integerLen=1,l.length=Math.max(1,i=r+1),l[0]=0;for(let t=1;t<i;t++)l[t]=0}if(o>=5)if(i-1<0){for(let e=0;e>i;e--)l.unshift(0),t.integerLen++;l.unshift(1),t.integerLen++}else l[i-1]++;for(;s<Math.max(0,r);s++)l.push(0);let a=0!==r;const u=e+t.integerLen,c=l.reduceRight((function(t,e,n,l){return l[n]=(e+=t)<10?e:e-10,a&&(0===l[n]&&n>=u?l.pop():a=!1),e>=10?1:0}),0);c&&(l.unshift(c),t.integerLen++)}(u,h,d);let p=u.digits,m=u.integerLen;const g=u.exponent;let f=[];for(a=p.every(t=>!t);m<c;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?f=p.splice(m,p.length):(f=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),o=_.join(Wo(n,l)),f.length&&(o+=Wo(n,s)+f.join("")),g&&(o+=Wo(n,Bo.Exponential)+"+"+g)}else o=Wo(n,Bo.Infinity);return t<0&&!a?e.negPre+o+e.negSuf:e.posPre+o+e.posSuf}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},l=t.split(_a),s=l[0],r=l[1],i=-1!==s.indexOf(ga)?s.split(ga):[s.substring(0,s.lastIndexOf(fa)+1),s.substring(s.lastIndexOf(fa)+1)],o=i[0],a=i[1]||"";n.posPre=o.substr(0,o.indexOf(va));for(let c=0;c<a.length;c++){const t=a.charAt(c);t===fa?n.minFrac=n.maxFrac=c+1:t===va?n.maxFrac=c+1:n.posSuf+=t}const u=o.split(ya);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,r){const t=s.length-n.posPre.length-n.posSuf.length,e=r.indexOf(va);n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Ns(t)[Os.NumberFormats][e]}(e,Vo.Decimal),Wo(e,Bo.MinusSign)),e,Bo.Group,Bo.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),l,n)}catch(s){throw La(t,s.message)}}}return t})(),$a=(()=>{class t{transform(e,n,l){if(null==e)return e;if(!this.supports(e))throw La(t,e);return e.slice(n,l)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t})(),Ba=(()=>(class{}))();const za=new Tt("DocumentToken"),Ha="browser";let qa=(()=>{class t{}return t.ngInjectableDef=mt({token:t,providedIn:"root",factory:()=>new Wa(Ut(za),window,Ut(Ve))}),t})();class Wa{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,l=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],l-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}let Ya=null;function Ga(){return Ya}class Ka{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(t){this._attrToPropMap=t}}class Za extends Ka{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(e).forEach(n=>{null!=this.getStyle(t,n)&&(this._transitionEnd=e[n])})}catch(t){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(t){return t.getDistributedNodes()}resolveAndSetHref(t,e,n){t.href=null==n?e:e+"/../"+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}}const Qa={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Xa=3,Ja={"\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"},tu={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"},eu=(()=>{if(xt.Node)return xt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))}})();class nu extends Za{parse(t){throw new Error("parse not implemented")}static makeCurrent(){var t;t=new nu,Ya||(Ya=t)}hasProperty(t,e){return e in t}setProperty(t,e,n){t[e]=n}getProperty(t,e){return t[e]}invoke(t,e,n){t[e](...n)}logError(t){window.console&&(console.error?console.error(t):console.log(t))}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Qa}contains(t,e){return eu.call(t,e)}querySelector(t,e){return t.querySelector(e)}querySelectorAll(t,e){return t.querySelectorAll(e)}on(t,e,n){t.addEventListener(e,n,!1)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}createMouseEvent(t){const e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e}createEvent(t){const e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e}preventDefault(t){t.preventDefault(),t.returnValue=!1}isPrevented(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue}getInnerHTML(t){return t.innerHTML}getTemplateContent(t){return"content"in t&&this.isTemplateElement(t)?t.content:null}getOuterHTML(t){return t.outerHTML}nodeName(t){return t.nodeName}nodeValue(t){return t.nodeValue}type(t){return t.type}content(t){return this.hasProperty(t,"content")?t.content:t}firstChild(t){return t.firstChild}nextSibling(t){return t.nextSibling}parentElement(t){return t.parentNode}childNodes(t){return t.childNodes}childNodesAsList(t){const e=t.childNodes,n=new Array(e.length);for(let l=0;l<e.length;l++)n[l]=e[l];return n}clearNodes(t){for(;t.firstChild;)t.removeChild(t.firstChild)}appendChild(t,e){t.appendChild(e)}removeChild(t,e){t.removeChild(e)}replaceChild(t,e,n){t.replaceChild(e,n)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}insertBefore(t,e,n){t.insertBefore(n,e)}insertAllBefore(t,e,n){n.forEach(n=>t.insertBefore(n,e))}insertAfter(t,e,n){t.insertBefore(n,e.nextSibling)}setInnerHTML(t,e){t.innerHTML=e}getText(t){return t.textContent}setText(t,e){t.textContent=e}getValue(t){return t.value}setValue(t,e){t.value=e}getChecked(t){return t.checked}setChecked(t,e){t.checked=e}createComment(t){return this.getDefaultDocument().createComment(t)}createTemplate(t){const e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createElementNS(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)}createTextNode(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)}createScriptTag(t,e,n){const l=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return l.setAttribute(t,e),l}createStyleElement(t,e){const n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n}createShadowRoot(t){return t.createShadowRoot()}getShadowRoot(t){return t.shadowRoot}getHost(t){return t.host}clone(t){return t.cloneNode(!0)}getElementsByClassName(t,e){return t.getElementsByClassName(e)}getElementsByTagName(t,e){return t.getElementsByTagName(e)}classList(t){return Array.prototype.slice.call(t.classList,0)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}hasClass(t,e){return t.classList.contains(e)}setStyle(t,e,n){t.style[e]=n}removeStyle(t,e){t.style[e]=""}getStyle(t,e){return t.style[e]}hasStyle(t,e,n){const l=this.getStyle(t,e)||"";return n?l==n:l.length>0}tagName(t){return t.tagName}attributeMap(t){const e=new Map,n=t.attributes;for(let l=0;l<n.length;l++){const t=n.item(l);e.set(t.name,t.value)}return e}hasAttribute(t,e){return t.hasAttribute(e)}hasAttributeNS(t,e,n){return t.hasAttributeNS(e,n)}getAttribute(t,e){return t.getAttribute(e)}getAttributeNS(t,e,n){return t.getAttributeNS(e,n)}setAttribute(t,e,n){t.setAttribute(e,n)}setAttributeNS(t,e,n,l){t.setAttributeNS(e,n,l)}removeAttribute(t,e){t.removeAttribute(e)}removeAttributeNS(t,e,n){t.removeAttributeNS(e,n)}templateAwareRoot(t){return this.isTemplateElement(t)?this.content(t):t}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(t){return t.title}setTitle(t,e){t.title=e||""}elementMatches(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))}isTemplateElement(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName}isTextNode(t){return t.nodeType===Node.TEXT_NODE}isCommentNode(t){return t.nodeType===Node.COMMENT_NODE}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}hasShadowRoot(t){return null!=t.shadowRoot&&t instanceof HTMLElement}isShadowRoot(t){return t instanceof DocumentFragment}importIntoDoc(t){return document.importNode(this.templateAwareRoot(t),!0)}adoptNode(t){return document.adoptNode(t)}getHref(t){return t.getAttribute("href")}getEventKey(t){let e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===Xa&&tu.hasOwnProperty(e)&&(e=tu[e]))}return Ja[e]||e}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=su||(su=document.querySelector("base"))?su.getAttribute("href"):null;return null==e?null:(n=e,lu||(lu=document.createElement("a")),lu.setAttribute("href",n),"/"===lu.pathname.charAt(0)?lu.pathname:"/"+lu.pathname);var n}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}setData(t,e,n){this.setAttribute(t,"data-"+e,n)}getData(t,e){return this.getAttribute(t,"data-"+e)}getComputedStyle(t){return getComputedStyle(t)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Ea(document.cookie,t)}setCookie(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)}}let lu,su=null;function ru(){return!!window.history.pushState}let iu=(()=>{class t extends Ao{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Ga().getLocation(),this._history=Ga().getHistory()}getBaseHrefFromDOM(){return Ga().getBaseHref(this._doc)}onPopState(t){Ga().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Ga().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!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(t){this.location.pathname=t}pushState(t,e,n){ru()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ru()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.ctorParameters=()=>[{type:void 0,decorators:[{type:at,args:[za]}]}],t})();const ou=new Tt("TRANSITION_ID"),au=[{provide:js,useFactory:function(t,e,n){return()=>{n.get($s).donePromise.then(()=>{const n=Ga();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(e=>n.getAttribute(e,"ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ou,za,qt],multi:!0}];class uu{static init(){var t;t=new uu,Sr=t}addToWindow(t){xt.getAngularTestability=(e,n=!0)=>{const l=t.findTestabilityInTree(e,n);if(null==l)throw new Error("Could not find testability for element.");return l},xt.getAllAngularTestabilities=()=>t.getAllTestabilities(),xt.getAllAngularRootElements=()=>t.getAllRootElements(),xt.frameworkStabilizers||(xt.frameworkStabilizers=[]),xt.frameworkStabilizers.push(t=>{const e=xt.getAllAngularTestabilities();let n=e.length,l=!1;const s=function(e){l=l||e,0==--n&&t(l)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const l=t.getTestability(e);return null!=l?l:n?Ga().isShadowRoot(e)?this.findTestabilityInTree(t,Ga().getHost(e),!0):this.findTestabilityInTree(t,Ga().parentElement(e),!0):null}}function cu(t,e){"undefined"!=typeof COMPILED&&COMPILED||((xt.ng=xt.ng||{})[t]=e)}const hu=(()=>({ApplicationRef:Ir,NgZone:dr}))();function du(t){return Br(t)}const pu=new Tt("EventManagerPlugins");let mu=(()=>(class{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let l=0;l<n.length;l++){const e=n[l];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}))();class gu{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const l=Ga().getGlobalEventTarget(this._doc,t);if(!l)throw new Error(`Unsupported event target ${l} for event ${e}`);return this.addEventListener(l,e,n)}}let fu=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}))(),_u=(()=>(class extends fu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Ga().remove(t))}}))();const yu={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/"},vu=/%COMP%/g,bu="_nghost-%COMP%",Cu="_ngcontent-%COMP%";function wu(t,e,n){for(let l=0;l<e.length;l++){let s=e[l];Array.isArray(s)?wu(t,s,n):(s=s.replace(vu,t),n.push(s))}return n}function Su(t){return e=>{!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Eu=(()=>(class{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new xu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case se.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ku(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case se.Native:case se.ShadowDom:return new Au(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=wu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class xu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,l){if(l){e=l+":"+e;const s=yu[l];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const l=yu[n];l?t.removeAttributeNS(l,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,l){l&dn.DashCase?t.style.setProperty(e,n,l&dn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&dn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){Du(e,"property"),t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return Du(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Su(n)):this.eventManager.addEventListener(t,e,Su(n))}}const Tu=(()=>"@".charCodeAt(0))();function Du(t,e){if(t.charCodeAt(0)===Tu)throw new Error(`Found the synthetic ${e} ${t}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class ku extends xu{constructor(t,e,n,l){super(t),this.component=n;const s=wu(l+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr=Cu.replace(vu,l+"-"+n.id),this.hostAttr=function(t){return bu.replace(vu,t)}(l+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Au extends xu{constructor(t,e,n,l){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=l,this.shadowRoot=l.encapsulation===se.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=wu(l.id,l.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}const Pu=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t})(),Iu=Pu("addEventListener"),Ou=Pu("removeEventListener"),Ru={},Mu="__zone_symbol__propagationStopped",Nu=(()=>{const t="undefined"!=typeof Zone&&Zone[Pu("BLACK_LISTED_EVENTS")];if(t){const e={};return t.forEach(t=>{e[t]=t}),e}})(),Fu=function(t){return!!Nu&&Nu.hasOwnProperty(t)},Vu=function(t){const e=Ru[t.type];if(!e)return;const n=this[e];if(!n)return;const l=[t];if(1===n.length){const t=n[0];return t.zone!==Zone.current?t.zone.run(t.handler,this,l):t.handler.apply(this,l)}{const e=n.slice();for(let n=0;n<e.length&&!0!==t[Mu];n++){const t=e[n];t.zone!==Zone.current?t.zone.run(t.handler,this,l):t.handler.apply(this,l)}}};let Lu=(()=>(class extends gu{constructor(t,e,n){super(t),this.ngZone=e,n&&function(t){return"server"===t}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Mu]=!0),t&&t.apply(this,arguments)}}supports(t){return!0}addEventListener(t,e,n){let l=n;if(!t[Iu]||dr.isInAngularZone()&&!Fu(e))t.addEventListener(e,l,!1);else{let n=Ru[e];n||(n=Ru[e]=Pu("ANGULAR"+e+"FALSE"));let s=t[n];const r=s&&s.length>0;s||(s=t[n]=[]);const i=Fu(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:i,handler:l});else{let t=!1;for(let e=0;e<s.length;e++)if(s[e].handler===l){t=!0;break}t||s.push({zone:i,handler:l})}r||t[Iu](e,Vu,!1)}return()=>this.removeEventListener(t,e,l)}removeEventListener(t,e,n){let l=t[Ou];if(!l)return t.removeEventListener.apply(t,[e,n,!1]);let s=Ru[e],r=s&&t[s];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);let i=!1;for(let o=0;o<r.length;o++)if(r[o].handler===n){i=!0,r.splice(o,1);break}i?0===r.length&&l.apply(t,[e,Vu,!1]):t.removeEventListener.apply(t,[e,n,!1])}}))();const Uu={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},ju=new Tt("HammerGestureConfig"),$u=new Tt("HammerLoader");let Bu=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}))(),zu=(()=>(class extends gu{constructor(t,e,n,l){super(t),this._config=e,this.console=n,this.loader=l}supports(t){return!(!Uu.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(t,e,n){const l=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let l=!1,s=()=>{l=!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=()=>{});l||(s=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return l.runOutsideAngular(()=>{const s=this._config.buildHammer(t),r=function(t){l.runGuarded((function(){n(t)}))};return s.on(e,r),()=>{s.off(e,r),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}))();const Hu=["alt","control","meta","shift"],qu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Wu=(()=>{class t extends gu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,l){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,l,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ga().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),l=n.shift();if(0===n.length||"keydown"!==l&&"keyup"!==l)return null;const s=t._normalizeKey(n.pop());let r="";if(Hu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=l,i.fullKey=r,i}static getEventFullKey(t){let e="",n=Ga().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Hu.forEach(l=>{l!=n&&(0,qu[l])(t)&&(e+=l+".")}),e+=n}static eventCallback(e,n,l){return s=>{t.getEventFullKey(s)===e&&l.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t})();class Yu{}let Gu=(()=>(class extends Yu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Pe.NONE:return e;case Pe.HTML:return e instanceof Zu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){let n=null;try{ke=ke||new ue(t);let l=e?String(e):"";n=ke.getInertBodyElement(l);let s=5,r=l;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,l=r,r=n.innerHTML,n=ke.getInertBodyElement(l)}while(l!==r);const i=new Ee,o=i.sanitizeChildren(Ae(n)||n);return ae()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),o}finally{if(n){const t=Ae(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e)));case Pe.STYLE:return e instanceof Qu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";const e=t.match(Re);return e&&de(e[1])===e[1]||t.match(Oe)&&function(t){let e=!0,n=!0;for(let l=0;l<t.length;l++){const s=t.charAt(l);"'"===s&&n?e=!e:'"'===s&&e&&(n=!n)}return e&&n}(t)?t:(ae()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}(e));case Pe.SCRIPT:if(e instanceof Xu)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Pe.URL:return e instanceof tc||e instanceof Ju?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),de(String(e)));case Pe.RESOURCE_URL:if(e instanceof tc)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(t,e){if(t instanceof Ku)throw new Error(`Required a safe ${e}, got a ${t.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(t){return new Zu(t)}bypassSecurityTrustStyle(t){return new Qu(t)}bypassSecurityTrustScript(t){return new Xu(t)}bypassSecurityTrustUrl(t){return new Ju(t)}bypassSecurityTrustResourceUrl(t){return new tc(t)}}))();class Ku{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Zu extends Ku{getTypeName(){return"HTML"}}class Qu extends Ku{getTypeName(){return"Style"}}class Xu extends Ku{getTypeName(){return"Script"}}class Ju extends Ku{getTypeName(){return"URL"}}class tc extends Ku{getTypeName(){return"ResourceURL"}}const ec=Dr(Hr,"browser",[{provide:Ws,useValue:Ha},{provide:qs,useValue:function(){nu.makeCurrent(),uu.init()},multi:!0},{provide:Ao,useClass:iu,deps:[za]},{provide:za,useFactory:function(){return document},deps:[]}]);function nc(){return new Ve}let lc=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Bs,useValue:e.appId},{provide:ou,useExisting:Bs},au]}}}return t})();"undefined"!=typeof window&&window;const sc=new C(t=>t.complete());function rc(t){return t?function(t){return new C(e=>t.schedule(()=>e.complete()))}(t):sc}class ic extends ${constructor(t,e){super(t),this.sources=e,this.completed=0,this.haveValues=0;const n=e.length;this.values=new Array(n);for(let l=0;l<n;l++){const t=j(this,e[l],null,l);t&&this.add(t)}}notifyNext(t,e,n,l,s){this.values[n]=e,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(t){const{destination:e,haveValues:n,values:l}=this,s=l.length;t._hasValue?(this.completed++,this.completed===s&&(n===s&&e.next(l),e.complete())):e.complete()}}const oc=new Tt("NgValueAccessor");let ac=(()=>(class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}))();const uc=new Tt("CompositionEventMode");let cc=(()=>(class{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Ga()?Ga().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}))();class hc{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class dc extends hc{get formDirective(){return null}get path(){return null}}function pc(){throw new Error("unimplemented")}class mc extends hc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return pc()}get asyncValidator(){return pc()}}class gc{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let fc=(()=>(class extends gc{constructor(t){super(t)}}))(),_c=(()=>(class extends gc{constructor(t){super(t)}}))();function yc(t){return null==t||0===t.length}const vc=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class bc{static min(t){return e=>{if(yc(e.value)||yc(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(yc(e.value)||yc(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return yc(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return yc(t.value)?null:vc.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(yc(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return bc.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(yc(t.value))return null;const l=t.value;return e.test(l)?null:{pattern:{requiredPattern:n,actualValue:l}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Cc);return 0==e.length?null:function(t){return Sc(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Cc);return 0==e.length?null:function(t){return function t(...e){let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),0===e.length?sc:n?t(e).pipe(B(t=>n(...t))):new C(t=>new ic(t,e))}(function(t,e){return e.map(e=>e(t))}(t,e).map(wc)).pipe(B(Sc))}}}function Cc(t){return null!=t}function wc(t){const e=Ye(t)?W(t):t;if(!Ge(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Sc(t){const e=t.reduce((t,e)=>null!=e?Object.assign({},t,e):t,{});return 0===Object.keys(e).length?null:e}function Ec(t){return t.validate?e=>t.validate(e):t}function xc(t){return t.validate?e=>t.validate(e):t}let Tc=(()=>(class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}))(),Dc=(()=>(class{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}))(),kc=(()=>(class{constructor(t,e,n,l){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=l,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(mc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}))();const Ac={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '};function Pc(t,e){return[...e.path,t]}function Ic(t,e){t||Nc(e,"Cannot find control with"),e.valueAccessor||Nc(e,"No value accessor for form control with"),t.validator=bc.compose([t.validator,e.validator]),t.asyncValidator=bc.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Oc(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Oc(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Oc(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Rc(t,e){null==t&&Nc(e,"Cannot find control with"),t.validator=bc.compose([t.validator,e.validator]),t.asyncValidator=bc.composeAsync([t.asyncValidator,e.asyncValidator])}function Mc(t){return Nc(t,"There is no FormControl instance attached to form control element with")}function Nc(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Fc(t){return null!=t?bc.compose(t.map(Ec)):null}function Vc(t){return null!=t?bc.composeAsync(t.map(xc)):null}const Lc=[ac,(()=>(class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}))(),Tc,(()=>(class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Be}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}))(),(()=>(class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Be}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const l=t.item(e),s=this._getOptionValue(l.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const l=t.item(e);if(l.selected){const t=this._getOptionValue(l.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}))(),kc];function Uc(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function jc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const $c="VALID",Bc="INVALID",zc="PENDING",Hc="DISABLED";function qc(t){const e=Yc(t)?t.validators:t;return Array.isArray(e)?Fc(e):e||null}function Wc(t,e){const n=Yc(e)?e.asyncValidators:t;return Array.isArray(n)?Vc(n):n||null}function Yc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Gc{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===$c}get invalid(){return this.status===Bc}get pending(){return this.status==zc}get disabled(){return this.status===Hc}get enabled(){return this.status!==Hc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=qc(t)}setAsyncValidators(t){this.asyncValidator=Wc(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Hc,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$c,this._forEachChild(e=>{e.enable(Object.assign({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==$c&&this.status!==zc||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hc:$c}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zc;const e=wc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce((t,e)=>t instanceof Zc?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Qc&&t.at(e)||null,t))}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Vs,this.statusChanges=new Vs}_calculateStatus(){return this._allControlsDisabled()?Hc:this.errors?Bc:this._anyControlsHaveStatus(zc)?zc:this._anyControlsHaveStatus(Bc)?Bc:$c}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Yc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Kc extends Gc{constructor(t=null,e,n){super(qc(e),Wc(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Zc extends Gc{constructor(t,e,n){super(qc(e),Wc(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,l)=>{n.reset(t[l],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Kc?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,l)=>{e=e||this.contains(l)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,l)=>{n=e(n,t,l)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Qc extends Gc{constructor(t,e,n){super(qc(e),Wc(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,l)=>{n.reset(t[l],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Kc?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Xc=(()=>Promise.resolve(null))();let Jc=(()=>(class extends dc{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Vs,this.form=new Zc({},Fc(t),Vc(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Xc.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Ic(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Xc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),jc(this._directives,t)})}addFormGroup(t){Xc.then(()=>{const e=this._findContainer(t.path),n=new Zc({});Rc(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Xc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Xc.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Uc(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}))();class th{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${Ac.formControlName}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ${Ac.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${Ac.formGroupName}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${Ac.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${Ac.formGroupName}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${Ac.ngModelGroup}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const eh=new Tt("NgFormSelectorWarning");class nh extends dc{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Pc(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Fc(this._validators)}get asyncValidator(){return Vc(this._asyncValidators)}_checkParentType(){}}let lh=(()=>{class t extends nh{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof Jc||th.modelGroupParentException()}}return t})();const sh=(()=>Promise.resolve(null))();let rh=(()=>(class extends mc{constructor(t,e,n,l){super(),this.control=new Kc,this._registered=!1,this.update=new Vs,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Nc(t,"Value accessor was not provided as an array for form control with");let n=void 0,l=void 0,s=void 0;return e.forEach(e=>{e.constructor===cc?n=e:function(t){return Lc.some(e=>t.constructor===e)}(e)?(l&&Nc(t,"More than one built-in value accessor matches form control with"),l=e):(s&&Nc(t,"More than one custom value accessor matches form control with"),s=e)}),s||l||n||(Nc(t,"No valid value accessor for form control with"),null)}(this,l)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Be(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Pc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Fc(this._rawValidators)}get asyncValidator(){return Vc(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ic(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof lh)&&this._parent instanceof nh?th.formGroupNameException():this._parent instanceof lh||this._parent instanceof Jc||th.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||th.missingNameException()}_updateValue(t){sh.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;sh.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),ih=(()=>(class{}))();const oh=new Tt("NgModelWithFormControlWarning");let ah=(()=>(class extends dc{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Vs}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Ic(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){jc(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Rc(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Rc(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Uc(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>Mc(e)),e.valueAccessor.registerOnTouched(()=>Mc(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Ic(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Fc(this._validators);this.form.validator=bc.compose([this.form.validator,t]);const e=Vc(this._asyncValidators);this.form.asyncValidator=bc.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||class{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${Ac.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${Ac.formGroupName}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${Ac.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ${Ac.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${Ac.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        ${Ac.formArrayName}`)}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}. \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}.missingFormException()}}))(),uh=(()=>(class{}))(),ch=(()=>(class{group(t,e=null){const n=this._reduceControls(t);let l=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(l=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(l=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Zc(n,{asyncValidators:s,updateOn:r,validators:l})}control(t,e,n){return new Kc(t,e,n)}array(t,e,n){const l=t.map(t=>this._createControl(t));return new Qc(l,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Kc||t instanceof Zc||t instanceof Qc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}))(),hh=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:eh,useValue:e.warnOnDeprecatedNgFormSelector}]}}}return t})(),dh=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:oh,useValue:e.warnOnNgModelWithFormControl}]}}}return t})();class ph{}function mh(t){const e=new C(e=>{e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function gh(...t){let e=t[t.length-1];switch(A(e)?t.pop():e=void 0,t.length){case 0:return rc(e);case 1:return e?q(t,e):mh(t[0]);default:return q(t,e)}}function fh(){return Q(1)}function _h(...t){return e=>{let n=t[t.length-1];A(n)?t.pop():n=null;const l=t.length;return function(...t){return fh()(gh(...t))}(1!==l||n?l>0?q(t,n):rc(n):mh(t[0]),e)}}class yh{constructor(){this.Weight=0,this.Price=0,this.ProformaId=0,this.ProformaItemId=0}}class vh{constructor(){}}class bh{constructor(){this.ProformaId=0,this.DocumentFileId=0}}class Ch{}class wh{constructor(t,e,n,l){this.http=t,this.route=e,this.router=n,this.fb=l,this.proforma=new ko,this.showSuccess=!1,this.showError=!1,this.CustomerControl=new Kc,this.PalletsControl=new Kc,this.BoxesControl=new Kc,this.customers=new Array,this.ProformaItems=new Array,this.newProformaItem=new Ch,this.proformaProformaItems=new Array,this.files=new Array,this.filteredProformas=new Array,this.searchObserve=new C,this.autocomplete="list-group collapse hide",this.customerAutocomplete="list-group collapse hide",this.proforma.Customer=new ph,this.proforma.Kdv=8,this.TotalUsd=0,this.TotalLira=0,this.proforma.Discount=0,this.proforma.Paid=0,this.ExchangeRate=5.7,this.createForm()}createForm(){this.form=this.fb.group({name:["",bc.required],fatura:null})}ngOnInit(){this.exchangeApi="/api/exchange/",this.id=this.route.snapshot.queryParamMap.get("id"),this.errorCustomer=!1,this.http.get("/api/Customer/").subscribe(t=>{this.customers=t,this.customerFilteredOptions=this.CustomerControl.valueChanges.pipe(_h(""),B(t=>this._customerFilter(t)))}),this.http.get("/api/ProformaItem/").subscribe(t=>{this.ProformaItems=t.Items,this.filteredProformas=t.Items,this.filteredOptions=this.PalletsControl.valueChanges.pipe(_h(""),B(t=>this._filter(t)))}),this.http.get(this.exchangeApi).subscribe(t=>{this.ExchangeRate=t}),new Date,this.proforma.ProformaNumber=Math.floor(1e3+9e3*Math.random()).toString(),this.ProformaReportUrl="/ProformaReport/print/?id="+this.id}Add(t){var e=this.ProformaItems.find(e=>e.ProformaItemId==t),n=new yh;n.ProformaItemId=e.ProformaItemId,n.ProformaItem=e,n.ProformaId=this.proforma.ProformaId,n.Proforma=this.proforma,this.proformaProformaItems.push(n),this.autocomplete="list-group collapse hide",this.searchText="",this.Calculate()}_filter(t){const e=t.toString().toLowerCase();return this.ProformaItems.filter(t=>t.ProformaItemId.toString().includes(e)||t.Description.includes(e))}_customerFilter(t){const e=t.toString().toLowerCase();return this.customers.filter(t=>t.CustomerName.toLocaleLowerCase().includes(e))}Delete(){this.showSuccess=!1,this.http.delete("/api/Proforma/Delete/?proformaId="+this.proforma.ProformaId).toPromise().then(t=>{this.showSuccess=!0,this.router.navigateByUrl("/home")})}RemoveItem(t){const e=this.proformaProformaItems.indexOf(t);-1!==e&&this.proformaProformaItems.splice(e,1),this.Calculate()}Calculate(){this.TotalUsd=0;for(var t=0;t<this.proformaProformaItems.length;t++)this.TotalUsd=this.proformaProformaItems[t].Weight*this.proformaProformaItems[t].Price+this.TotalUsd;this.TotalUsd=this.TotalUsd-this.proforma.Discount,this.TotalUsd=Math.round(1e3*this.TotalUsd)/1e3,this.Tax=this.TotalUsd*this.proforma.Kdv/100,this.Tax=Math.round(1e3*this.Tax)/1e3,this.TotalUsd=this.TotalUsd+this.Tax,this.TotalLira=this.TotalUsd*this.ExchangeRate,this.TotalLira=Math.round(1e3*this.TotalLira)/1e3}Save(t){if(this.Calculate(),this.showSuccess=!1,this.saving=!0,this.proforma.ProformaProformaItems=new Array,t.Customer&&t.Customer.CustomerName){this.errorCustomer=!1;for(var e=0;e<this.proformaProformaItems.length;e++){var n=new yh;n.ProformaId=this.proforma.ProformaId,n.ProformaItemId=this.proformaProformaItems[e].ProformaItemId,n.Weight=this.proformaProformaItems[e].Weight,n.Price=this.proformaProformaItems[e].Price,n.ProformaItem=this.proformaProformaItems[e].ProformaItem,t.ProformaProformaItems.push(n)}for(this.proforma.Files=new Array,e=0;e<this.files.length;e++){var l=new bh;l.ProformaId=this.proforma.ProformaId,l.DocumentFileId=this.files[e].DocumentFileId,l.File=new vh,l.File.FileName=this.files[e].File.FileName,this.proforma.Files.push(l)}t.ExchangeRate=this.ExchangeRate,t.TotalUsd=this.TotalUsd,t.Tax=this.Tax,this.http.post("/api/Proforma/Insert",t).toPromise().then(t=>{this.showSuccess=!0,this.saving=!1})}else this.errorCustomer=!0}UpdateCustomer(t){this.proforma.Customer=t}OnUploadFile(){this.form.value.fatura.filename="inv-"+this.id+"-"+this.form.value.fatura.filename;const t=this.form.value.fatura;this.uploading=!0,this.http.post("/api/AwsStorage/UploadFile/",t).toPromise().then(()=>{var t=new bh;t.ProformaId=Number(this.id);var e=new vh;e.FileName=this.form.value.fatura.filename,t.File=e,this.files.push(t),this.uploading=!1})}onFileChange(t){let e=new FileReader;if(t.target.files&&t.target.files.length>0){let n=t.target.files[0];e.readAsDataURL(n),e.onload=()=>{this.form.get("fatura").setValue({filename:n.name,filetype:n.type,value:e.result})}}}RemoveFileItem(t){const e=this.files.indexOf(t);-1!==e&&this.files.splice(e,1)}Cancel(){this.router.navigateByUrl("/home")}searchChange(){this.autocomplete=this.searchText.length<1?"list-group collapse hide":"list-group collapse show"}AddNewItem(){var t=new yh,e=new Ch;e.Description=this.searchText,e.ProformaItemId=-1,t.ProformaId=this.proforma.ProformaId,t.ProformaItemId=-1,t.ProformaItem=e,t.Proforma=this.proforma,this.proformaProformaItems.push(t)}AddCustomer(t){this.proforma.Customer=this.customers.find(e=>e.CustomerId==t),this.customerAutocomplete="list-group collapse hide",this.customerSearchText=this.proforma.Customer.CustomerName}customerSearchChange(){this.customerAutocomplete="list-group collapse show"}}class Sh{constructor(t,e,n,l){this.http=t,this.route=e,this.router=n,this.fb=l,this.proforma=new ko,this.showSuccess=!1,this.showError=!1,this.CustomerControl=new Kc,this.PalletsControl=new Kc,this.BoxesControl=new Kc,this.customers=new Array,this.ProformaItems=new Array,this.newProformaItem=new Ch,this.proformaProformaItems=new Array,this.files=new Array,this.deletemodal=!1,this.filteredProformas=new Array,this.searchObserve=new C,this.autocomplete="list-group collapse hide",this.customerAutocomplete="list-group collapse hide",this.proforma.Customer=new ph,this.proforma.Kdv=8,this.TotalUsd=0,this.TotalLira=0,this.ExchangeRate=5.7,this.createForm()}createForm(){this.form=this.fb.group({name:["",bc.required],fatura:null})}ngOnInit(){this.id=this.route.snapshot.queryParamMap.get("id"),this.errorCustomer=!1,this.http.get("/api/Customer/").subscribe(t=>{this.customers=t,this.customerFilteredOptions=this.CustomerControl.valueChanges.pipe(_h(""),B(t=>this._customerFilter(t)))}),this.http.get("/api/ProformaItem/").subscribe(t=>{this.ProformaItems=t.Items,this.filteredProformas=t.Items,this.filteredOptions=this.PalletsControl.valueChanges.pipe(_h(""),B(t=>this._filter(t)))}),this.http.get("/api/Proforma/GetProforma/"+this.id).subscribe(t=>{this.proforma=t;for(var e=0;e<t.ProformaProformaItems.length;e++)this.proformaProformaItems.push(t.ProformaProformaItems[e]);for(e=0;e<t.Files.length;e++)this.files.push(t.Files[e]);this.customerSearchText=this.proforma.Customer.CustomerName,this.ExchangeRate=this.proforma.ExchangeRate,this.TotalUsd=this.proforma.TotalUsd,this.Tax=this.proforma.Tax,this.Calculate()}),this.ProformaReportUrl="/ProformaReport/print/?id="+this.id}Add(t){var e=this.ProformaItems.find(e=>e.ProformaItemId==t),n=new yh;n.ProformaItemId=e.ProformaItemId,n.ProformaItem=e,n.ProformaId=this.proforma.ProformaId,n.Proforma=this.proforma,this.proformaProformaItems.push(n),this.autocomplete="list-group collapse hide",this.searchText="",this.Calculate()}_filter(t){const e=t.toString().toLowerCase();return this.ProformaItems.filter(t=>t.ProformaItemId.toString().includes(e)||t.Description.includes(e))}_customerFilter(t){const e=t.toString().toLowerCase();return this.customers.filter(t=>t.CustomerName.toLocaleLowerCase().includes(e))}Delete(){this.showSuccess=!1,this.http.delete("/api/Proforma/Delete/?proformaId="+this.proforma.ProformaId).toPromise().then(t=>{this.showSuccess=!0,this.router.navigateByUrl("/home")})}RemoveItem(t){const e=this.proformaProformaItems.indexOf(t);-1!==e&&this.proformaProformaItems.splice(e,1),this.Calculate()}Calculate(){this.TotalUsd=0;for(var t=0;t<this.proformaProformaItems.length;t++)this.TotalUsd=this.proformaProformaItems[t].Weight*this.proformaProformaItems[t].Price+this.TotalUsd;this.TotalUsd=this.TotalUsd-this.proforma.Discount,this.TotalUsd=Math.round(1e3*this.TotalUsd)/1e3,this.Tax=this.TotalUsd*this.proforma.Kdv/100,this.Tax=Math.round(1e3*this.Tax)/1e3,this.TotalUsd=this.TotalUsd+this.Tax,this.TotalLira=this.TotalUsd*this.ExchangeRate,this.TotalLira=Math.round(1e3*this.TotalLira)/1e3}Save(t){if(this.Calculate(),this.showSuccess=!1,this.saving=!0,t.Customer&&t.Customer.CustomerName){this.errorCustomer=!1,this.proforma.ProformaProformaItems=new Array;for(var e=0;e<this.proformaProformaItems.length;e++){var n=new yh;n.ProformaId=this.proforma.ProformaId,n.ProformaItemId=this.proformaProformaItems[e].ProformaItemId,n.Weight=this.proformaProformaItems[e].Weight,n.Price=this.proformaProformaItems[e].Price,n.ProformaItem=this.proformaProformaItems[e].ProformaItem,t.ProformaProformaItems.push(n)}for(this.proforma.Files=new Array,e=0;e<this.files.length;e++){var l=new bh;l.ProformaId=this.proforma.ProformaId,l.DocumentFileId=this.files[e].DocumentFileId,l.File=new vh,l.File.FileName=this.files[e].File.FileName,this.proforma.Files.push(l)}t.ExchangeRate=this.ExchangeRate,t.TotalUsd=this.TotalUsd,t.Tax=this.Tax,this.http.post("/api/Proforma/Update",t).toPromise().then(t=>{this.showSuccess=!0,this.saving=!1})}else this.errorCustomer=!0}UpdateCustomer(t){this.proforma.Customer=t}OnUploadFile(){this.form.value.fatura.filename="pro -"+this.id+"-"+this.form.value.fatura.filename;const t=this.form.value.fatura;this.uploading=!0,this.http.post("/api/AwsStorage/UploadFile/",t).toPromise().then(()=>{var t=new bh;t.ProformaId=Number(this.id);var e=new vh;e.FileName=this.form.value.fatura.filename,t.File=e,this.files.push(t),this.uploading=!1})}onFileChange(t){let e=new FileReader;if(t.target.files&&t.target.files.length>0){let n=t.target.files[0];e.readAsDataURL(n),e.onload=()=>{this.form.get("fatura").setValue({filename:n.name,filetype:n.type,value:e.result})}}}RemoveFileItem(t){const e=this.files.indexOf(t);-1!==e&&this.files.splice(e,1)}Cancel(){this.router.navigateByUrl("/home")}ConfirmDelete(){this.deletemodal=!0}CloseModal(){this.deletemodal=!1}searchChange(){this.autocomplete=this.searchText.length<1?"list-group collapse hide":"list-group collapse show"}AddNewItem(){var t=new yh,e=new Ch;e.Description=this.searchText,e.ProformaItemId=-1,t.ProformaId=this.proforma.ProformaId,t.ProformaItemId=-1,t.ProformaItem=e,t.Proforma=this.proforma,this.proformaProformaItems.push(t)}AddCustomer(t){this.proforma.Customer=this.customers.find(e=>e.CustomerId==t),this.customerAutocomplete="list-group collapse hide",this.customerSearchText=this.proforma.Customer.CustomerName}customerSearchChange(){this.customerAutocomplete="list-group collapse show"}}class Eh extends D{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(t){super.next(this._value=t)}}function xh(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}xh.prototype=Object.create(Error.prototype);const Th=xh,Dh={};class kh{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ah(t,this.resultSelector))}}class Ah extends ${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Dh),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(j(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,l,s){const r=this.values,i=this.toRespond?r[n]===Dh?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function Ph(t){return new C(e=>{let n;try{n=t()}catch(l){return void e.error(l)}return(n?W(n):rc()).subscribe(e)})}function Ih(t,e){return function(n){return n.lift(new Oh(t,e))}}class Oh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Rh(t,this.predicate,this.thisArg))}}class Rh extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Mh(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Mh.prototype=Object.create(Error.prototype);const Nh=Mh;function Fh(t){return function(e){return 0===t?rc():e.lift(new Vh(t))}}class Vh{constructor(t){if(this.total=t,this.total<0)throw new Nh}call(t,e){return e.subscribe(new Lh(t,this.total))}}class Lh extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,l=this.count++;e.length<n?e.push(t):e[l%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,l=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(l[s])}}t.complete()}}function Uh(t,e,n){return function(l){return l.lift(new jh(t,e,n))}}class jh{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new $h(t,this.nextOrObserver,this.error,this.complete))}}class $h extends g{constructor(t,e,n,s){super(t),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=n||y,this._tapComplete=s||y,l(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||y,this._tapError=e.error||y,this._tapComplete=e.complete||y)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Bh=(t=zh)=>Uh({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw t()}});function zh(){return new Th}function Hh(t=null){return e=>e.lift(new qh(t))}class qh{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Wh(t,this.defaultValue))}}class Wh extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Yh(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Ih((e,n)=>t(e,n,l)):Z,Fh(1),n?Hh(e):Bh(()=>new Th))}function Gh(t){return function(e){const n=new Kh(t),l=e.lift(n);return n.caught=l}}class Kh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Zh(t,this.selector,this.caught))}}class Zh extends ${constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const l=new P(this,void 0,void 0);this.add(l),j(this,n,void 0,void 0,l)}}}function Qh(t){return e=>0===t?rc():e.lift(new Xh(t))}class Xh{constructor(t){if(this.total=t,this.total<0)throw new Nh}call(t,e){return e.subscribe(new Jh(t,this.total))}}class Jh extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function td(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Ih((e,n)=>t(e,n,l)):Z,Qh(1),n?Hh(e):Bh(()=>new Th))}class ed{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new nd(t,this.predicate,this.thisArg,this.source))}}class nd extends g{constructor(t,e,n,l){super(t),this.predicate=e,this.thisArg=n,this.source=l,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function ld(t,e){return"function"==typeof e?n=>n.pipe(ld((n,l)=>W(t(n,l)).pipe(B((t,s)=>e(n,t,l,s))))):e=>e.lift(new sd(t))}class sd{constructor(t){this.project=t}call(t,e){return e.subscribe(new rd(t,this.project))}}class rd extends ${constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(l){return void this.destination.error(l)}this._innerSub(e,t,n)}_innerSub(t,e,n){const l=this.innerSubscription;l&&l.unsubscribe();const s=new P(this,void 0,void 0);this.destination.add(s),this.innerSubscription=j(this,t,e,n,s)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,l,s){this.destination.next(e)}}function id(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(l){return l.lift(new od(t,e,n))}}class od{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new ad(t,this.accumulator,this.seed,this.hasSeed))}}class ad extends g{constructor(t,e,n,l){super(t),this.accumulator=e,this._seed=n,this.hasSeed=l,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(l){this.destination.error(l)}this.seed=n,this.destination.next(n)}}function ud(t,e){return Y(t,e,1)}class cd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hd(t,this.callback))}}class hd extends g{constructor(t,e){super(t),this.add(new d(e))}}class dd{constructor(t,e){this.id=t,this.url=e}}class pd extends dd{constructor(t,e,n="imperative",l=null){super(t,e),this.navigationTrigger=n,this.restoredState=l}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class md extends dd{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class gd extends dd{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fd extends dd{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _d extends dd{constructor(t,e,n,l){super(t,e),this.urlAfterRedirects=n,this.state=l}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yd extends dd{constructor(t,e,n,l){super(t,e),this.urlAfterRedirects=n,this.state=l}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vd extends dd{constructor(t,e,n,l,s){super(t,e),this.urlAfterRedirects=n,this.state=l,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class bd extends dd{constructor(t,e,n,l){super(t,e),this.urlAfterRedirects=n,this.state=l}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cd extends dd{constructor(t,e,n,l){super(t,e),this.urlAfterRedirects=n,this.state=l}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sd{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ed{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xd{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Td{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dd{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kd{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Ad=(()=>(class{}))();const Pd="primary";class Id{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Od(t){return new Id(t)}const Rd="ngNavigationCancelingError";function Md(t){const e=Error("NavigationCancelingError: "+t);return e[Rd]=!0,e}function Nd(t,e,n){const l=n.path.split("/");if(l.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||l.length<t.length))return null;const s={};for(let r=0;r<l.length;r++){const e=l[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,l.length),posParams:s}}class Fd{constructor(t,e){this.routes=t,this.module=e}}function Vd(t,e=""){for(let n=0;n<t.length;n++){const l=t[n];Ld(l,Ud(e,l))}}function Ld(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==Pd)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Vd(t.children,e)}function Ud(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function jd(t){const e=t.children&&t.children.map(jd),n=e?Object.assign({},t,{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Pd&&(n.component=Ad),n}function $d(t,e){const n=Object.keys(t),l=Object.keys(e);if(!n||!l||n.length!=l.length)return!1;let s;for(let r=0;r<n.length;r++)if(t[s=n[r]]!==e[s])return!1;return!0}function Bd(t){return Array.prototype.concat.apply([],t)}function zd(t){return t.length>0?t[t.length-1]:null}function Hd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function qd(t){return Ge(t)?t:Ye(t)?W(Promise.resolve(t)):gh(t)}function Wd(t,e,n){return n?function(t,e){return $d(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Zd(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const l in n.children){if(!e.children[l])return!1;if(!t(e.children[l],n.children[l]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>e[n]===t[n])}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,l,s){if(n.segments.length>s.length)return!!Zd(n.segments.slice(0,s.length),s)&&!l.hasChildren();if(n.segments.length===s.length){if(!Zd(n.segments,s))return!1;for(const e in l.children){if(!n.children[e])return!1;if(!t(n.children[e],l.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!Zd(n.segments,t)&&!!n.children[Pd]&&e(n.children[Pd],l,r)}}(e,n,n.segments)}(t.root,e.root)}class Yd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Od(this.queryParams)),this._queryParamMap}toString(){return tp.serialize(this)}}class Gd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Hd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ep(this)}}class Kd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Od(this.parameters)),this._parameterMap}toString(){return op(this)}}function Zd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Qd(t,e){let n=[];return Hd(t.children,(t,l)=>{l===Pd&&(n=n.concat(e(t,l)))}),Hd(t.children,(t,l)=>{l!==Pd&&(n=n.concat(e(t,l)))}),n}class Xd{}class Jd{parse(t){const e=new dp(t);return new Yd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return ep(e);if(n){const n=e.children[Pd]?t(e.children[Pd],!1):"",l=[];return Hd(e.children,(e,n)=>{n!==Pd&&l.push(`${n}:${t(e,!1)}`)}),l.length>0?`${n}(${l.join("//")})`:n}{const n=Qd(e,(n,l)=>l===Pd?[t(e.children[Pd],!1)]:[`${l}:${t(n,!1)}`]);return`${ep(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${lp(e)}=${lp(t)}`).join("&"):`${lp(e)}=${lp(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const tp=new Jd;function ep(t){return t.segments.map(t=>op(t)).join("/")}function np(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lp(t){return np(t).replace(/%3B/gi,";")}function sp(t){return np(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rp(t){return decodeURIComponent(t)}function ip(t){return rp(t.replace(/\+/g,"%20"))}function op(t){return`${sp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${sp(t)}=${sp(e[t])}`).join("")}`;var e}const ap=/^[^\/()?;=#]+/;function up(t){const e=t.match(ap);return e?e[0]:""}const cp=/^[^=?&#]+/,hp=/^[^?&#]+/;class dp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gd([],{}):new Gd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Pd]=new Gd(t,e)),n}parseSegment(){const t=up(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Kd(rp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=up(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=up(this.remaining);t&&this.capture(n=t)}t[rp(e)]=rp(n)}parseQueryParam(t){const e=function(t){const e=t.match(cp);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(hp);return e?e[0]:""}(this.remaining);t&&this.capture(n=t)}const l=ip(e),s=ip(n);if(t.hasOwnProperty(l)){let e=t[l];Array.isArray(e)||(t[l]=e=[e]),e.push(s)}else t[l]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=up(this.remaining),l=this.remaining[n.length];if("/"!==l&&")"!==l&&";"!==l)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(":")):t&&(s=Pd);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Pd]:new Gd([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class pp{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=mp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=mp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=gp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return gp(t,this._root).map(t=>t.value)}}function mp(t,e){if(t===e.value)return e;for(const n of e.children){const e=mp(t,n);if(e)return e}return null}function gp(t,e){if(t===e.value)return[e];for(const n of e.children){const l=gp(t,n);if(l.length)return l.unshift(e),l}return[]}class fp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function _p(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yp extends pp{constructor(t,e){super(t),this.snapshot=e,Ep(this,t)}toString(){return this.snapshot.toString()}}function vp(t,e){const n=function(t,e){const n=new wp([],{},{},"",{},Pd,e,null,t.root,-1,{});return new Sp("",new fp(n,[]))}(t,e),l=new Eh([new Kd("",{})]),s=new Eh({}),r=new Eh({}),i=new Eh({}),o=new Eh(""),a=new bp(l,s,i,o,r,Pd,e,n.root);return a.snapshot=n.root,new yp(new fp(a,[]),n)}class bp{constructor(t,e,n,l,s,r,i,o){this.url=t,this.params=e,this.queryParams=n,this.fragment=l,this.data=s,this.outlet=r,this.component=i,this._futureSnapshot=o}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(B(t=>Od(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(t=>Od(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Cp(t,e="emptyOnly"){const n=t.pathFromRoot;let l=0;if("always"!==e)for(l=n.length-1;l>=1;){const t=n[l],e=n[l-1];if(t.routeConfig&&""===t.routeConfig.path)l--;else{if(e.component)break;l--}}return function(t){return t.reduce((t,e)=>({params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(l))}class wp{constructor(t,e,n,l,s,r,i,o,a,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=l,this.data=s,this.outlet=r,this.component=i,this.routeConfig=o,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}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=Od(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Od(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sp extends pp{constructor(t,e){super(e),this.url=t,Ep(this,e)}toString(){return xp(this._root)}}function Ep(t,e){e.value._routerState=t,e.children.forEach(e=>Ep(t,e))}function xp(t){const e=t.children.length>0?` { ${t.children.map(xp).join(", ")} } `:"";return`${t.value}${e}`}function Tp(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,$d(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),$d(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!$d(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),$d(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Dp(t,e){var n,l;return $d(t.params,e.params)&&Zd(n=t.url,l=e.url)&&n.every((t,e)=>$d(t.parameters,l[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Dp(t.parent,e.parent))}function kp(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ap(t,e,n,l,s){let r={};return l&&Hd(l,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Yd(n.root===t?e:function t(e,n,l){const s={};return Hd(e.children,(e,r)=>{s[r]=e===n?l:t(e,n,l)}),new Gd(e.segments,s)}(n.root,t,e),r,s)}class Pp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kp(n[0]))throw new Error("Root segment cannot have matrix parameters");const l=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(l&&l!==zd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ip{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Op(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Pd]:`${t}`}function Rp(t,e,n){if(t||(t=new Gd([],{})),0===t.segments.length&&t.hasChildren())return Mp(t,e,n);const l=function(t,e,n){let l=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(l>=n.length)return r;const e=t.segments[s],i=Op(n[l]),o=l<n.length-1?n[l+1]:null;if(s>0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!Lp(i,o,e))return r;l+=2}else{if(!Lp(i,{},e))return r;l++}s++}return{match:!0,pathIndex:s,commandIndex:l}}(t,e,n),s=n.slice(l.commandIndex);if(l.match&&l.pathIndex<t.segments.length){const e=new Gd(t.segments.slice(0,l.pathIndex),{});return e.children[Pd]=new Gd(t.segments.slice(l.pathIndex),t.children),Mp(e,0,s)}return l.match&&0===s.length?new Gd(t.segments,{}):l.match&&!t.hasChildren()?Np(t,e,n):l.match?Mp(t,0,s):Np(t,e,n)}function Mp(t,e,n){if(0===n.length)return new Gd(t.segments,{});{const l=function(t){return"object"!=typeof t[0]?{[Pd]:t}:void 0===t[0].outlets?{[Pd]:t}:t[0].outlets}(n),s={};return Hd(l,(n,l)=>{null!==n&&(s[l]=Rp(t.children[l],e,n))}),Hd(t.children,(t,e)=>{void 0===l[e]&&(s[e]=t)}),new Gd(t.segments,s)}}function Np(t,e,n){const l=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=Fp(n[s].outlets);return new Gd(l,t)}if(0===s&&kp(n[0])){l.push(new Kd(t.segments[e].path,n[0])),s++;continue}const r=Op(n[s]),i=s<n.length-1?n[s+1]:null;r&&i&&kp(i)?(l.push(new Kd(r,Vp(i))),s+=2):(l.push(new Kd(r,{})),s++)}return new Gd(l,{})}function Fp(t){const e={};return Hd(t,(t,n)=>{null!==t&&(e[n]=Np(new Gd([],{}),0,t))}),e}function Vp(t){const e={};return Hd(t,(t,n)=>e[n]=`${t}`),e}function Lp(t,e,n){return t==n.path&&$d(e,n.parameters)}const Up=(t,e,n)=>B(l=>(new jp(e,l.targetRouterState,l.currentRouterState,n).activate(t),l));class jp{constructor(t,e,n,l){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=l}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Tp(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const l=_p(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,l[e],n),delete l[e]}),Hd(l,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const l=t.value,s=e?e.value:null;if(l===s)if(l.component){const s=n.getContext(l.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),l=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:l})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const l=_p(t),s=t.value.component?n.children:e;Hd(l,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const l=_p(e);t.children.forEach(t=>{this.activateRoutes(t,l[t.value.outlet],n),this.forwardEvent(new Dd(t.value.snapshot))}),t.children.length&&this.forwardEvent(new xd(t.value.snapshot))}activateRoutes(t,e,n){const l=t.value,s=e?e.value:null;if(Tp(l),l===s)if(l.component){const s=n.getOrCreateContext(l.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(l.component){const e=n.getOrCreateContext(l.outlet);if(this.routeReuseStrategy.shouldAttach(l.snapshot)){const t=this.routeReuseStrategy.retrieve(l.snapshot);this.routeReuseStrategy.store(l.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),$p(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(l.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=l,e.resolver=s,e.outlet&&e.outlet.activateWith(l,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function $p(t){Tp(t.value),t.children.forEach($p)}function Bp(t){return"function"==typeof t}function zp(t){return t instanceof Yd}class Hp{constructor(t){this.segmentGroup=t||null}}class qp{constructor(t){this.urlTree=t}}function Wp(t){return new C(e=>e.error(new Hp(t)))}function Yp(t){return new C(e=>e.error(new qp(t)))}function Gp(t){return new C(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Kp{constructor(t,e,n,l,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=l,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(sn)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Pd).pipe(B(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Gh(t=>{if(t instanceof qp)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Hp)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Pd).pipe(B(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Gh(t=>{if(t instanceof Hp)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const l=t.segments.length>0?new Gd([],{[Pd]:t}):t;return new Yd(l,e,n)}expandSegmentGroup(t,e,n,l){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(B(t=>new Gd([],t))):this.expandSegment(t,n,e,n.segments,l,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return gh({});const n=[],l=[],s={};return Hd(t,(t,r)=>{const i=e(r,t).pipe(B(t=>s[r]=t));r===Pd?n.push(i):l.push(i)}),gh.apply(null,n.concat(l)).pipe(fh(),Yh(),B(()=>s))}(n.children,(n,l)=>this.expandSegmentGroup(t,e,l,n))}expandSegment(t,e,n,l,s,r){return gh(...n).pipe(B(i=>this.expandSegmentAgainstRoute(t,e,n,i,l,s,r).pipe(Gh(t=>{if(t instanceof Hp)return gh(null);throw t}))),fh(),td(t=>!!t),Gh((t,n)=>{if(t instanceof Th||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,l,s))return gh(new Gd([],{}));throw new Hp(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,l,s,r,i){return Jp(l)!==r?Wp(e):void 0===l.redirectTo?this.matchSegmentAgainstRoute(t,e,l,s):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,l,s,r):Wp(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,l,s,r){return"**"===l.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,l,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,l,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,l){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Yp(s):this.lineralizeSegments(n,s).pipe(Y(n=>{const s=new Gd(n,{});return this.expandSegment(t,s,e,n,l,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,l,s,r){const{matched:i,consumedSegments:o,lastChild:a,positionalParamSegments:u}=Zp(e,l,s);if(!i)return Wp(e);const c=this.applyRedirectCommands(o,l.redirectTo,u);return l.redirectTo.startsWith("/")?Yp(c):this.lineralizeSegments(l,c).pipe(Y(l=>this.expandSegment(t,e,n,l.concat(s.slice(a)),r,!1)))}matchSegmentAgainstRoute(t,e,n,l){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(B(t=>(n._loadedConfig=t,new Gd(l,{})))):gh(new Gd(l,{}));const{matched:s,consumedSegments:r,lastChild:i}=Zp(e,n,l);if(!s)return Wp(e);const o=l.slice(i);return this.getChildConfig(t,n,l).pipe(Y(t=>{const n=t.module,l=t.routes,{segmentGroup:s,slicedSegments:i}=function(t,e,n,l){return n.length>0&&function(t,e,n){return n.some(n=>Xp(t,e,n)&&Jp(n)!==Pd)}(t,n,l)?{segmentGroup:Qp(new Gd(e,function(t,e){const n={};n[Pd]=e;for(const l of t)""===l.path&&Jp(l)!==Pd&&(n[Jp(l)]=new Gd([],{}));return n}(l,new Gd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Xp(t,e,n))}(t,n,l)?{segmentGroup:Qp(new Gd(t.segments,function(t,e,n,l){const s={};for(const r of n)Xp(t,e,r)&&!l[Jp(r)]&&(s[Jp(r)]=new Gd([],{}));return Object.assign({},l,s)}(t,n,l,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,o,l);return 0===i.length&&s.hasChildren()?this.expandChildren(n,l,s).pipe(B(t=>new Gd(r,t))):0===l.length&&0===i.length?gh(new Gd(r,{})):this.expandSegment(n,s,l,i,Pd,!0).pipe(B(t=>new Gd(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?gh(new Fd(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?gh(e._loadedConfig):function(t,e,n){const l=e.canLoad;return l&&0!==l.length?W(l).pipe(B(l=>{const s=t.get(l);let r;if(function(t){return t&&Bp(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!Bp(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return qd(r)})).pipe(fh(),(s=t=>!0===t,t=>t.lift(new ed(s,void 0,t)))):gh(!0);var s}(t.injector,e,n).pipe(Y(n=>n?this.configLoader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,t))):function(t){return new C(e=>e.error(Md(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):gh(new Fd([],t))}lineralizeSegments(t,e){let n=[],l=e.root;for(;;){if(n=n.concat(l.segments),0===l.numberOfChildren)return gh(n);if(l.numberOfChildren>1||!l.children[Pd])return Gp(t.redirectTo);l=l.children[Pd]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,l){const s=this.createSegmentGroup(t,e.root,n,l);return new Yd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Hd(t,(t,l)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[l]=e[s]}else n[l]=t}),n}createSegmentGroup(t,e,n,l){const s=this.createSegments(t,e.segments,n,l);let r={};return Hd(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,l)}),new Gd(s,r)}createSegments(t,e,n,l){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,l):this.findOrReturn(e,n))}findPosParam(t,e,n){const l=n[e.path.substring(1)];if(!l)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return l}findOrReturn(t,e){let n=0;for(const l of e){if(l.path===t.path)return e.splice(n),l;n++}return t}}function Zp(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const l=(e.matcher||Nd)(n,t,e);return l?{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,positionalParamSegments:l.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Qp(t){if(1===t.numberOfChildren&&t.children[Pd]){const e=t.children[Pd];return new Gd(t.segments.concat(e.segments),e.children)}return t}function Xp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Jp(t){return t.outlet||Pd}class tm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class em{constructor(t,e){this.component=t,this.route=e}}function nm(t,e,n){const l=t._root;return function t(e,n,l,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=_p(n);return e.children.forEach(e=>{!function(e,n,l,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,o=n?n.value:null,a=l?l.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Zd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Zd(t.url,e.url)||!$d(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dp(t,e)||!$d(t.queryParams,e.queryParams);case"paramsChange":default:return!Dp(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new tm(s)):(i.data=o.data,i._resolvedData=o._resolvedData),t(e,n,i.component?a?a.children:null:l,s,r),u&&r.canDeactivateChecks.push(new em(a&&a.outlet&&a.outlet.component||null,o))}else o&&sm(n,a,r),r.canActivateChecks.push(new tm(s)),t(e,null,i.component?a?a.children:null:l,s,r)}(e,i[e.value.outlet],l,s.concat([e.value]),r),delete i[e.value.outlet]}),Hd(i,(t,e)=>sm(t,l.getContext(e),r)),r}(l,e?e._root:null,n,[l.value])}function lm(t,e,n){const l=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(l?l.module.injector:n).get(t)}function sm(t,e,n){const l=_p(t),s=t.value;Hd(l,(t,l)=>{sm(t,s.component?e?e.children.getContext(l):null:e,n)}),n.canDeactivateChecks.push(new em(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const rm=Symbol("INITIAL_VALUE");function im(){return ld(t=>(function(...t){let e=null,n=null;return A(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),q(t,n).lift(new kh(e))})(...t.map(t=>t.pipe(Qh(1),_h(rm)))).pipe(id((t,e)=>{let n=!1;return e.reduce((t,l,s)=>{if(t!==rm)return t;if(l===rm&&(n=!0),!n){if(!1===l)return l;if(s===e.length-1||zp(l))return l}return t},t)},rm),Ih(t=>t!==rm),B(t=>zp(t)?t:!0===t),Qh(1)))}function om(t,e){return null!==t&&e&&e(new Td(t)),gh(!0)}function am(t,e){return null!==t&&e&&e(new Ed(t)),gh(!0)}function um(t,e,n){const l=e.routeConfig?e.routeConfig.canActivate:null;return l&&0!==l.length?gh(l.map(l=>Ph(()=>{const s=lm(l,e,n);let r;if(function(t){return t&&Bp(t.canActivate)}(s))r=qd(s.canActivate(e,t));else{if(!Bp(s))throw new Error("Invalid CanActivate guard");r=qd(s(e,t))}return r.pipe(td())}))).pipe(im()):gh(!0)}function cm(t,e,n){const l=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>(function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null})(t)).filter(t=>null!==t).map(e=>Ph(()=>gh(e.guards.map(s=>{const r=lm(s,e.node,n);let i;if(function(t){return t&&Bp(t.canActivateChild)}(r))i=qd(r.canActivateChild(l,t));else{if(!Bp(r))throw new Error("Invalid CanActivateChild guard");i=qd(r(l,t))}return i.pipe(td())})).pipe(im())));return gh(s).pipe(im())}class hm{}class dm{constructor(t,e,n,l,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=gm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Pd),n=new wp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Pd,this.rootComponentType,null,this.urlTree.root,-1,{}),l=new fp(n,e),s=new Sp(this.url,l);return this.inheritParamsAndData(s._root),gh(s)}catch(t){return new C(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Cp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Qd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),l=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${l}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===Pd?-1:e.value.outlet===Pd?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,l){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,l)}catch(s){if(!(s instanceof hm))throw s}if(this.noLeftoversInUrl(e,n,l))return[];throw new hm}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,l){if(t.redirectTo)throw new hm;if((t.outlet||Pd)!==l)throw new hm;let s,r=[],i=[];if("**"===t.path){const r=n.length>0?zd(n).parameters:{};s=new wp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ym(t),l,t.component,t,pm(e),mm(e)+n.length,vm(t))}else{const o=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new hm;return{consumedSegments:[],lastChild:0,parameters:{}}}const l=(e.matcher||Nd)(n,t,e);if(!l)throw new hm;const s={};Hd(l.posParams,(t,e)=>{s[e]=t.path});const r=l.consumed.length>0?Object.assign({},s,l.consumed[l.consumed.length-1].parameters):s;return{consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:r}}(e,t,n);r=o.consumedSegments,i=n.slice(o.lastChild),s=new wp(r,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ym(t),l,t.component,t,pm(e),mm(e)+r.length,vm(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:a,slicedSegments:u}=gm(e,r,i,o,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const t=this.processChildren(o,a);return[new fp(s,t)]}if(0===o.length&&0===u.length)return[new fp(s,[])];const c=this.processSegment(o,a,u,Pd);return[new fp(s,c)]}}function pm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function mm(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function gm(t,e,n,l,s){if(n.length>0&&function(t,e,n){return n.some(n=>fm(t,e,n)&&_m(n)!==Pd)}(t,n,l)){const s=new Gd(e,function(t,e,n,l){const s={};s[Pd]=l,l._sourceSegment=t,l._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&_m(r)!==Pd){const n=new Gd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[_m(r)]=n}return s}(t,e,l,new Gd(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>fm(t,e,n))}(t,n,l)){const r=new Gd(t.segments,function(t,e,n,l,s,r){const i={};for(const o of l)if(fm(t,n,o)&&!s[_m(o)]){const n=new Gd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,i[_m(o)]=n}return Object.assign({},s,i)}(t,e,n,l,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Gd(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function fm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function _m(t){return t.outlet||Pd}function ym(t){return t.data||{}}function vm(t){return t.resolve||{}}function bm(t,e,n,l){const s=lm(t,e,l);return qd(s.resolve?s.resolve(e,n):s(e,n))}function Cm(t){return function(e){return e.pipe(ld(e=>{const n=t(e);return n?W(n).pipe(B(()=>e)):W([e])}))}}class wm{}class Sm{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Em=new Tt("ROUTES");class xm{constructor(t,e,n,l){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=l}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(B(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const l=n.create(t);return new Fd(Bd(l.injector.get(Em)).map(jd),l)}))}loadModuleFactory(t){return"string"==typeof t?W(this.loader.load(t)):qd(t()).pipe(Y(t=>t instanceof rn?gh(t):W(this.compiler.compileModuleAsync(t))))}}class Tm{}class Dm{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function km(t){throw t}function Am(t,e,n){return e.parse("/")}function Pm(t,e){return gh(null)}class Im{constructor(t,e,n,l,s,r,i,o){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new D,this.errorHandler=km,this.malformedUriErrorHandler=Am,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Pm,afterPreactivation:Pm},this.urlHandlingStrategy=new Dm,this.routeReuseStrategy=new Sm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(sn),this.console=s.get(Gs);const a=s.get(dr);this.isNgZoneEnabled=a instanceof dr,this.resetConfig(o),this.currentUrlTree=new Yd(new Gd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new xm(r,i,t=>this.triggerEvent(new wd(t)),t=>this.triggerEvent(new Sd(t))),this.routerState=vp(this.currentUrlTree,this.rootComponentType),this.transitions=new Eh({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(t){const e=this.events;return t.pipe(Ih(t=>0!==t.id),B(t=>Object.assign({},t,{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),ld(t=>{let n=!1,l=!1;return gh(t).pipe(Uh(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),ld(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return gh(t).pipe(ld(t=>{const n=this.transitions.getValue();return e.next(new pd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?sc:[t]}),ld(t=>Promise.resolve(t)),function(t,e,n,l){return function(s){return s.pipe(ld(s=>(function(t,e,n,l,s){return new Kp(t,e,n,l,s).apply()})(t,e,n,s.extractedUrl,l).pipe(B(t=>Object.assign({},s,{urlAfterRedirects:t})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Uh(t=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,e,n,l,s){return function(r){return r.pipe(Y(r=>(function(t,e,n,l,s="emptyOnly",r="legacy"){return new dm(t,e,n,l,s,r).recognize()})(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),l,s).pipe(B(t=>Object.assign({},r,{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Uh(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Uh(t=>{const n=new _d(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:l,source:s,restoredState:r,extras:i}=t,o=new pd(n,this.serializeUrl(l),s,r);e.next(o);const a=vp(l,this.rootComponentType).snapshot;return gh(Object.assign({},t,{targetSnapshot:a,urlAfterRedirects:l,extras:Object.assign({},i,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),sc}),Cm(t=>{const{targetSnapshot:e,id:n,extractedUrl:l,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:i}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:l,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!i})}),Uh(t=>{const e=new yd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),B(t=>Object.assign({},t,{guards:nm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Y(n=>{const{targetSnapshot:l,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:i}}=n;return 0===i.length&&0===r.length?gh(Object.assign({},n,{guardsResult:!0})):function(t,e,n,l){return W(t).pipe(Y(t=>(function(t,e,n,l,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?gh(r.map(r=>{const i=lm(r,e,s);let o;if(function(t){return t&&Bp(t.canDeactivate)}(i))o=qd(i.canDeactivate(t,e,n,l));else{if(!Bp(i))throw new Error("Invalid CanDeactivate guard");o=qd(i(t,e,n,l))}return o.pipe(td())})).pipe(im()):gh(!0)})(t.component,t.route,n,e,l)),td(t=>!0!==t,!0))}(i,l,s,t).pipe(Y(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,l){return W(e).pipe(ud(e=>W([am(e.route.parent,l),om(e.route,l),cm(t,e.path,n),um(t,e.route,n)]).pipe(fh(),td(t=>!0!==t,!0))),td(t=>!0!==t,!0))}(l,r,t,e):gh(n)),B(t=>Object.assign({},n,{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Uh(t=>{if(zp(t.guardsResult)){const e=Md(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Uh(t=>{const e=new vd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ih(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new gd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Cm(t=>{if(t.guards.canActivateChecks.length)return gh(t).pipe(Uh(t=>{const e=new bd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),function(t,e){return function(n){return n.pipe(Y(n=>{const{targetSnapshot:l,guards:{canActivateChecks:s}}=n;return s.length?W(s).pipe(ud(n=>(function(t,e,n,l){return function(t,e,n,l){const s=Object.keys(t);if(0===s.length)return gh({});if(1===s.length){const r=s[0];return bm(t[r],e,n,l).pipe(B(t=>({[r]:t})))}const r={};return W(s).pipe(Y(s=>bm(t[s],e,n,l).pipe(B(t=>(r[s]=t,t))))).pipe(Yh(),B(()=>r))}(t._resolve,t,e,l).pipe(B(e=>(t._resolvedData=e,t.data=Object.assign({},t.data,Cp(t,n).resolve),null)))})(n.route,l,t,e)),function(t,e){return arguments.length>=2?function(n){return v(id(t,e),Fh(1),Hh(e))(n)}:function(e){return v(id((e,n,l)=>t(e,n,l+1)),Fh(1))(e)}}((t,e)=>t),B(t=>n)):gh(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Uh(t=>{const e=new Cd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Cm(t=>{const{targetSnapshot:e,id:n,extractedUrl:l,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:i}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:l,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!i})}),B(t=>{const e=function(t,e,n){const l=function t(e,n,l){if(l&&e.shouldReuseRoute(n.value,l.value.snapshot)){const s=l.value;s._futureSnapshot=n.value;const r=function(e,n,l){return n.children.map(n=>{for(const s of l.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,l);return new fp(s,r)}{const l=e.retrieve(n.value);if(l){const t=l.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let l=0;l<e.children.length;++l)t(e.children[l],n.children[l])}(n,t),t}{const l=new bp(new Eh((s=n.value).url),new Eh(s.params),new Eh(s.queryParams),new Eh(s.fragment),new Eh(s.data),s.outlet,s.component,s),r=n.children.map(n=>t(e,n));return new fp(l,r)}}var s}(t,e._root,n?n._root:void 0);return new yp(l,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign({},t,{targetRouterState:e})}),Uh(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Up(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),Uh({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new cd(t))}(()=>{if(!n&&!l){this.resetUrlToCurrentUrlTree();const n=new gd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Gh(n=>{if(l=!0,function(t){return t&&t[Rd]}(n)){const l=zp(n.url);l||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new gd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),t.resolve(!1),l&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const l=new fd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(l);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return sc}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign({},this.getTransition(),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",l=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,l,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Vd(t),this.config=t.map(jd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:l,fragment:s,preserveQueryParams:r,queryParamsHandling:i,preserveFragment:o}=e;ae()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=o?this.currentUrlTree.fragment:s;let c=null;if(i)switch(i){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,l);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=l||null}else c=r?this.currentUrlTree.queryParams:l||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,l,s){if(0===n.length)return Ap(e.root,e.root,e,l,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Pp(!0,0,t);let e=0,n=!1;const l=t.reduce((t,l,s)=>{if("object"==typeof l&&null!=l){if(l.outlets){const e={};return Hd(l.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(l.segmentPath)return[...t,l.segmentPath]}return"string"!=typeof l?[...t,l]:0===s?(l.split("/").forEach((l,s)=>{0==s&&"."===l||(0==s&&""===l?n=!0:".."===l?e++:""!=l&&t.push(l))}),t):[...t,l]},[]);return new Pp(n,e,l)}(n);if(r.toRoot())return Ap(e.root,new Gd([],{}),e,l,s);const i=function(t,e,n){if(t.isAbsolute)return new Ip(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Ip(n.snapshot._urlSegment,!0,0);const l=kp(t.commands[0])?0:1;return function(t,e,n){let l=t,s=e,r=n;for(;r>s;){if(r-=s,!(l=l.parent))throw new Error("Invalid number of '../'");s=l.segments.length}return new Ip(l,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+l,t.numberOfDoubleDots)}(r,e,t),o=i.processChildren?Mp(i.segmentGroup,i.index,r.commands):Rp(i.segmentGroup,i.index,r.commands);return Ap(i.segmentGroup,o,e,l,s)}(a,this.currentUrlTree,t,c,u)}navigateByUrl(t,e={skipLocationChange:!1}){ae()&&this.isNgZoneEnabled&&!dr.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=zp(t)?t:this.parseUrl(t),l=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(zp(t))return Wd(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Wd(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const l=t[n];return null!=l&&(e[n]=l),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new md(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,l){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let r=null,i=null;const o=new Promise((t,e)=>{r=t,i=e}),a=++this.navigationId;return this.setTransition({id:a,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:l,resolve:r,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,l){const s=this.urlSerializer.serialize(t);l=l||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign({},l,{navigationId:n})):this.location.go(s,"",Object.assign({},l,{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}let Om=(()=>(class{constructor(t,e,n,l,s){this.router=t,this.route=e,this.commands=[],null==n&&l.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){ae()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Mm(this.skipLocationChange),replaceUrl:Mm(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Mm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mm(this.preserveFragment)})}}))(),Rm=(()=>(class{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof md&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){ae()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,l){if(0!==t||e||n||l)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Mm(this.skipLocationChange),replaceUrl:Mm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Mm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mm(this.preserveFragment)})}}))();function Mm(t){return""===t||!!t}class Nm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Fm,this.attachRef=null}}class Fm{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Nm,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Vm=(()=>(class{constructor(t,e,n,l,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Vs,this.deactivateEvents=new Vs,this.name=l||Pd,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),l=this.parentContexts.getOrCreateContext(this.name).children,s=new Lm(t,l,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class Lm{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===bp?this.route:t===Fm?this.childContexts:this.parent.get(t,e)}}class Um{}class jm{preload(t,e){return e().pipe(Gh(()=>gh(null)))}}class $m{preload(t,e){return gh(null)}}let Bm=(()=>(class{constructor(t,e,n,l,s){this.router=t,this.injector=l,this.preloadingStrategy=s,this.loader=new xm(e,n,e=>t.triggerEvent(new wd(e)),e=>t.triggerEvent(new Sd(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ih(t=>t instanceof md),ud(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(sn);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const l of e)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const t=l._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else l.loadChildren&&!l.canLoad?n.push(this.preloadConfig(t,l)):l.children&&n.push(this.processRoutes(t,l.children));return W(n).pipe(Q(),B(t=>void 0))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Y(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}))();class zm{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof pd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof md&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kd&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new kd(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Hm=new Tt("ROUTER_CONFIGURATION"),qm=new Tt("ROUTER_FORROOT_GUARD"),Wm=[Ro,{provide:Xd,useClass:Jd},{provide:Im,useFactory:Jm,deps:[Ir,Xd,Fm,Ro,qt,Rr,lr,Em,Hm,[Tm,new ut],[wm,new ut]]},Fm,{provide:bp,useFactory:tg,deps:[Im]},{provide:Rr,useClass:Fr},Bm,$m,jm,{provide:Hm,useValue:{enableTracing:!1}}];function Ym(){return new Tr("Router",Im)}let Gm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Wm,Xm(e),{provide:qm,useFactory:Qm,deps:[[Im,new ut,new ht]]},{provide:Hm,useValue:n||{}},{provide:Io,useFactory:Zm,deps:[Ao,[new at(Oo),new ut],Hm]},{provide:zm,useFactory:Km,deps:[Im,qa,Hm]},{provide:Um,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:$m},{provide:Tr,multi:!0,useFactory:Ym},[eg,{provide:js,multi:!0,useFactory:ng,deps:[eg]},{provide:sg,useFactory:lg,deps:[eg]},{provide:Ys,multi:!0,useExisting:sg}]]}}static forChild(e){return{ngModule:t,providers:[Xm(e)]}}}return t})();function Km(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new zm(t,e,n)}function Zm(t,e,n={}){return n.useHash?new No(t,e):new Fo(t,e)}function Qm(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Xm(t){return[{provide:le,multi:!0,useValue:t},{provide:Em,multi:!0,useValue:t}]}function Jm(t,e,n,l,s,r,i,o,a={},u,c){const h=new Im(null,e,n,l,s,r,i,Bd(o));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Ga();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function tg(t){return t.routerState.root}let eg=(()=>(class{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new D}appInitializer(){return this.injector.get(Po,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Im),l=this.injector.get(Hm);if(this.isLegacyDisabled(l)||this.isLegacyEnabled(l))t(!0);else if("disabled"===l.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==l.initialNavigation)throw new Error(`Invalid initialNavigation options: '${l.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?gh(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Hm),n=this.injector.get(Bm),l=this.injector.get(zm),s=this.injector.get(Im),r=this.injector.get(Ir);t===r.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),l.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}))();function ng(t){return t.appInitializer.bind(t)}function lg(t){return t.bootstrapListener.bind(t)}const sg=new Tt("Router Initializer");class rg{}class ig{}class og{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),l=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,l),this.headers.has(l)?this.headers.get(l).push(s):this.headers.set(l,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const l=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(l,n),this.maybeSetNormalizedName(e,l))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof og?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new og;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof og?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const l=("a"===t.op?this.headers.get(e):void 0)||[];l.push(...n),this.headers.set(e,l);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;0===(t=t.filter(t=>-1===s.indexOf(t))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class ag{encodeKey(t){return ug(t)}encodeValue(t){return ug(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function ug(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class cg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ag,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const l=t.indexOf("="),[s,r]=-1==l?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,l)),e.decodeValue(t.slice(l+1))],i=n.get(s)||[];i.push(r),n.set(s,i)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).join("&")}clone(t){const e=new cg({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function hg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function dg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function pg(t){return"undefined"!=typeof FormData&&t instanceof FormData}class mg{constructor(t,e,n,l){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,s=l):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new og),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new cg,this.urlWithParams=e}serializeBody(){return null===this.body?null:hg(this.body)||dg(this.body)||pg(this.body)||"string"==typeof this.body?this.body:this.body instanceof cg?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:pg(this.body)?null:dg(this.body)?this.body.type||null:hg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof cg?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,l=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,i=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let o=t.headers||this.headers,a=t.params||this.params;return void 0!==t.setHeaders&&(o=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),o)),t.setParams&&(a=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),a)),new mg(e,n,s,{params:a,headers:o,reportProgress:i,responseType:l,withCredentials:r})}}const gg=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class fg{constructor(t,e=200,n="OK"){this.headers=t.headers||new og,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _g extends fg{constructor(t={}){super(t),this.type=gg.ResponseHeader}clone(t={}){return new _g({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class yg extends fg{constructor(t={}){super(t),this.type=gg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new yg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class vg extends fg{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Cg=(()=>(class{constructor(t){this.handler=t}request(t,e,n={}){let l;if(t instanceof mg)l=t;else{let s=void 0;s=n.headers instanceof og?n.headers:new og(n.headers);let r=void 0;n.params&&(r=n.params instanceof cg?n.params:new cg({fromObject:n.params})),l=new mg(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=gh(l).pipe(ud(t=>this.handler.handle(t)));if(t instanceof mg||"events"===n.observe)return s;const r=s.pipe(Ih(t=>t instanceof yg));switch(n.observe||"body"){case"body":switch(l.responseType){case"arraybuffer":return r.pipe(B(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(B(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(B(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(B(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new cg).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,bg(n,e))}post(t,e,n={}){return this.request("POST",t,bg(n,e))}put(t,e,n={}){return this.request("PUT",t,bg(n,e))}}))();class wg{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Sg=new Tt("HTTP_INTERCEPTORS");let Eg=(()=>(class{intercept(t,e){return e.handle(t)}}))();const xg=/^\)\]\}',?\n/;class Tg{}let Dg=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),kg=(()=>(class{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new C(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const l=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,l=n.statusText||"OK",r=new og(n.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new _g({headers:r,status:e,statusText:l,url:i})},i=()=>{let{headers:l,status:s,statusText:i,url:o}=r(),a=null;204!==s&&(a=void 0===n.response?n.responseText:n.response),0===s&&(s=a?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof a){const t=a;a=a.replace(xg,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=t,u&&(u=!1,a={error:c,text:a})}}u?(e.next(new yg({body:a,headers:l,status:s,statusText:i,url:o||void 0})),e.complete()):e.error(new vg({error:a,headers:l,status:s,statusText:i,url:o||void 0}))},o=t=>{const{url:l}=r(),s=new vg({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:l||void 0});e.error(s)};let a=!1;const u=l=>{a||(e.next(r()),a=!0);let s={type:gg.DownloadProgress,loaded:l.loaded};l.lengthComputable&&(s.total=l.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:gg.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",i),n.addEventListener("error",o),t.reportProgress&&(n.addEventListener("progress",u),null!==l&&n.upload&&n.upload.addEventListener("progress",c)),n.send(l),e.next({type:gg.Sent}),()=>{n.removeEventListener("error",o),n.removeEventListener("load",i),t.reportProgress&&(n.removeEventListener("progress",u),null!==l&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))();const Ag=new Tt("XSRF_COOKIE_NAME"),Pg=new Tt("XSRF_HEADER_NAME");class Ig{}let Og=(()=>(class{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ea(t,this.cookieName),this.lastCookieString=t),this.lastToken}}))(),Rg=(()=>(class{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const l=this.tokenService.getToken();return null===l||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,l)})),e.handle(t)}}))(),Mg=(()=>(class{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Sg,[]);this.chain=t.reduceRight((t,e)=>new wg(t,e),this.backend)}return this.chain.handle(t)}}))(),Ng=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Rg,useClass:Eg}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Ag,useValue:e.cookieName}:[],e.headerName?{provide:Pg,useValue:e.headerName}:[]]}}}return t})(),Fg=(()=>(class{}))(),Vg=(()=>{class t{constructor(t,e){this.router=t,this.http=e}canActivate(t,e){return this.http.get(window.location.origin+"/api/check/").toPromise().then(t=>{t||(window.location.href=window.location.origin+"/Account/Login")}).catch(t=>{t.url.includes("Account/Login")&&(window.location.href=window.location.origin+"/Account/Login")}),!0}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Im),Ut(Cg))},token:t,providedIn:"root"}),t})();class Lg{}class Ug{}class jg{constructor(t,e){this.shareService=t,this.http=e,this.menus=Array(),this.toggleMenu=!1}ngOnInit(){this.http.get("/api/nav/").toPromise().then(t=>{for(var e=0;e<t.length;e++){var n=new Ug;n.Text=t[e],n.Url="/"+t[e]+"/Index/index.html",this.menus.push(n)}}).catch(t=>{200==t.status&&(window.location.href=window.location.origin+"/Account/login")}),this.shareService.currentMessage.subscribe(t=>this.toggleMenu=t)}}class $g{constructor(t,e){this.shareService=t,this.http=e,this.toggleButton=!0}ngOnInit(){this.shareService.changeMessage(this.toggleButton)}toggle(){this.toggleButton=!this.toggleButton,this.shareService.changeMessage(this.toggleButton)}signOut(){this.http.post("/Account/Logout",null).toPromise().then(t=>{window.location.href=window.location.origin+"/Account/Login"}).catch(()=>{window.location.href=window.location.origin+"/Account/Login"})}}var Bg=el({encapsulation:2,styles:[],data:{}});function zg(t){return fi(0,[(t()(),Qr(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ps(1,212992,null,0,Vm,[Fm,Fn,en,[8,null],An],null,null)],(function(t,e){t(e,1,0)}),null)}function Hg(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"ng-component",[],null,null,null,zg,Bg)),ps(1,49152,null,0,Ad,[],null,null)],null,null)}var qg=zl("ng-component",Ad,Hg,{},{},[]);class Wg{}class Yg{}const Gg="*";function Kg(t,e=null){return{type:2,steps:t,options:e}}function Zg(t){return{type:6,styles:t,offset:null}}function Qg(t){Promise.resolve(null).then(t)}class Xg{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Qg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Jg{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,l=0;const s=this.players.length;0==s?Qg(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++l==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const tf="!";function ef(){throw Error("Host already has a portal attached")}class nf{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&ef(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class lf extends nf{constructor(t,e,n,l){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=l}}class sf extends nf{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class rf{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ef(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof lf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof sf?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class of extends rf{constructor(t,e,n,l){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=l}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let af=(()=>(class extends rf{constructor(t,e){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Vs}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),l=e.createComponent(n,e.length,t.injector||e.injector);return super.setDisposeFn(()=>l.destroy()),this._attachedPortal=t,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}}))(),uf=(()=>(class{}))();class cf{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}const hf=27,df=new Tt("cdk-dir-doc",{providedIn:"root",factory:function(){return jt(za)}});let pf=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Vs,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(df,8))},token:t,providedIn:"root"}),t})(),mf=(()=>(class{}))();function gf(t){return null!=t&&"false"!==`${t}`}function ff(t){return Array.isArray(t)?t:[t]}function _f(t){return null==t?"":"string"==typeof t?t:`${t}px`}function yf(t){return t instanceof an?t.nativeElement:t}function vf(t,e,n,s){return l(n)&&(s=n,n=void 0),s?vf(t,e,n).pipe(B(t=>a(t)?s(...t):s(t))):new C(l=>{!function t(e,n,l,s,r){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,l,r),i=()=>t.removeEventListener(n,l,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,l),i=()=>t.off(n,l)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,l),i=()=>t.removeListener(n,l)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let i=0,o=e.length;i<o;i++)t(e[i],n,l,s,r)}s.add(i)}(t,e,(function(t){l.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),l,n)})}class bf extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class Cf extends bf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,l=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(l,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(l,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,l=void 0;try{this.work(t)}catch(s){n=!0,l=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),l}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,l=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==l&&n.splice(l,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let wf=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Sf extends wf{constructor(t,e=wf.now){super(t,()=>Sf.delegate&&Sf.delegate!==this?Sf.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Sf.delegate&&Sf.delegate!==this?Sf.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Ef=new Sf(Cf);class xf{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Tf(t,this.durationSelector))}}class Tf extends ${constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const l=j(this,n);!l||l.closed?this.clearThrottle():this.add(this.throttled=l)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,l){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Df(t){return!a(t)&&t-parseFloat(t)+1>=0}function kf(t){const{index:e,period:n,subscriber:l}=t;if(l.next(e),!l.closed){if(-1===n)return l.complete();t.index=e+1,this.schedule(t,n)}}function Af(t,e=Ef){return n=()=>(function(t=0,e,n){let l=-1;return Df(e)?l=Number(e)<1?1:Number(e):A(e)&&(n=e),A(n)||(n=Ef),new C(e=>{const s=Df(t)?t:+t-n.now();return n.schedule(kf,s,{index:0,period:l,subscriber:e})})})(t,e),function(t){return t.lift(new xf(n))};var n}class Pf{constructor(t){this.notifier=t}call(t,e){const n=new If(t),l=j(n,this.notifier);return l&&!n.seenValue?(n.add(l),e.subscribe(n)):n}}class If extends ${constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,l,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Of;try{Of="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_S){Of=!1}let Rf,Mf=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===Ha:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Of)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Ws,8))},token:t,providedIn:"root"}),t})(),Nf=(()=>(class{}))();function Ff(t){return function(){if(null==Rf&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rf=!0}))}finally{Rf=Rf||!1}return Rf}()?t:!!t.capture}const Vf=20;let Lf=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new D,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Vf){return this._platform.isBrowser?new C(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Af(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):gh()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ih(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,l)=>{this._scrollableContainsElement(l,t)&&e.push(l)}),e}_scrollableContainsElement(t,e){let n=e.nativeElement,l=t.getElementRef().nativeElement;do{if(n==l)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vf(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(dr),Ut(Mf))},token:t,providedIn:"root"}),t})(),Uf=(()=>(class{}))();const jf=20;let $f=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?X(vf(window,"resize"),vf(window,"orientationchange")):gh(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=jf){return t>0?this._change.pipe(Af(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Mf),Ut(dr))},token:t,providedIn:"root"}),t})();class Bf{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_f(-this._previousScrollPosition.left),t.style.top=_f(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,l=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=l,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function zf(){return Error("Scroll strategy has already been attached.")}class Hf{constructor(t,e,n,l){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw zf();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class qf{enable(){}disable(){}attach(){}}function Wf(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function Yf(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Gf{constructor(t,e,n,l){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=l,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw zf();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Wf(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Kf=(()=>{class t{constructor(t,e,n,l){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new qf,this.close=t=>new Hf(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Bf(this._viewportRuler,this._document),this.reposition=t=>new Gf(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=l}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Lf),Ut($f),Ut(dr),Ut(za))},token:t,providedIn:"root"}),t})();class Zf{constructor(t){if(this.scrollStrategy=new qf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Qf{constructor(t,e,n,l,s){this.offsetX=n,this.offsetY=l,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}let Xf=(()=>(class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}))();function Jf(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function t_(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let e_=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(za))},token:t,providedIn:"root"}),t})(),n_=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.getElementsByClassName("cdk-overlay-container");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(za))},token:t,providedIn:"root"}),t})();class l_{constructor(t,e,n,l,s,r,i,o){this._portalOutlet=t,this._host=e,this._pane=n,this._config=l,this._ngZone=s,this._keyboardDispatcher=r,this._document=i,this._location=o,this._backdropElement=null,this._backdropClick=new D,this._attachments=new D,this._detachments=new D,this._locationChanges=d.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEventsObservable=new C(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new D,this._keydownEventSubscriptions=0,l.scrollStrategy&&(this._scrollStrategy=l.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=l.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Qh(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign({},this._config,t),this._updateElementSize()}setDirection(t){this._config=Object.assign({},this._config,{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=_f(this._config.width),t.height=_f(this._config.height),t.minWidth=_f(this._config.minWidth),t.minHeight=_f(this._config.minHeight),t.maxWidth=_f(this._config.maxWidth),t.maxHeight=_f(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const l=t.classList;ff(e).forEach(t=>{t&&(n?l.add(t):l.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(function(t){return e=>e.lift(new Pf(t))}(X(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const s_="cdk-overlay-connected-position-bounding-box";class r_{constructor(t,e,n,l,s){this._viewportRuler=e,this._document=n,this._platform=l,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new D,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add(s_),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,l=[];let s;for(let r of this._preferredPositions){let i=this._getOriginPoint(t,r),o=this._getOverlayPoint(i,e,r),a=this._getOverlayFit(o,e,n,r);if(a.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,i);this._canFitWithFlexibleDimensions(a,o,n)?l.push({position:r,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,r)}):(!s||s.overlayFit.visibleArea<a.visibleArea)&&(s={overlayFit:a,overlayPoint:o,originPoint:i,position:r,overlayRect:e})}if(l.length){let t=null,e=-1;for(const n of l){const l=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);l>e&&(e=l,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&i_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(s_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,l;if("center"==e.originX)n=t.left+t.width/2;else{const l=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?l:s}return{x:n,y:l="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}_getOverlayPoint(t,e,n){let l,s;return l="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+l,y:t.y+(s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}_getOverlayFit(t,e,n,l){let{x:s,y:r}=t,i=this._getOffset(l,"x"),o=this._getOffset(l,"y");i&&(s+=i),o&&(r+=o);let a=0-r,u=r+e.height-n.height,c=this._subtractOverflows(e.width,0-s,s+e.width-n.width),h=this._subtractOverflows(e.height,a,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const l=n.bottom-e.y,s=n.right-e.x,r=this._overlayRef.getConfig().minHeight,i=this._overlayRef.getConfig().minWidth,o=t.fitsInViewportHorizontally||null!=i&&i<=s;return(t.fitsInViewportVertically||null!=r&&r<=l)&&o}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const l=this._viewportRect,s=Math.max(t.x+e.width-l.right,0),r=Math.max(t.y+e.height-l.bottom,0),i=Math.max(l.top-n.top-t.y,0),o=Math.max(l.left-n.left-t.x,0);let a=0,u=0;return this._previousPushAmount={x:a=e.width<=l.width?o||-s:t.x<this._viewportMargin?l.left-n.left-t.x:0,y:u=e.height<=l.height?i||-r:t.y<this._viewportMargin?l.top-n.top-t.y:0},{x:t.x+a,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new Xf(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,l=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${l}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,l=this._isRtl();let s,r,i,o,a,u;if("top"===e.overlayY)s=n.height-(r=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)s=n.height-(i=n.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),l=this._lastBoundingBoxSize.height;r=t.y-e,(s=2*e)>l&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-l/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)u=n.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)a=t.x,o=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),l=this._lastBoundingBoxSize.width;a=t.x-e,(o=2*e)>l&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-l/2)}return{top:r,left:a,bottom:i,right:u,width:o,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const l={};if(this._hasExactPosition())l.top=l.left="0",l.bottom=l.right="",l.width=l.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;l.height=_f(n.height),l.top=_f(n.top),l.bottom=_f(n.bottom),l.width=_f(n.width),l.left=_f(n.left),l.right=_f(n.right),l.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",l.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(l.maxHeight=_f(t)),s&&(l.maxWidth=_f(s))}this._lastBoundingBoxSize=n,i_(this._boundingBox.style,l)}_resetBoundingBoxStyles(){i_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){i_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={};if(this._hasExactPosition()){const l=this._viewportRuler.getViewportScrollPosition();i_(n,this._getExactOverlayY(e,t,l)),i_(n,this._getExactOverlayX(e,t,l))}else n.position="static";let l="",s=this._getOffset(e,"x"),r=this._getOffset(e,"y");s&&(l+=`translateX(${s}px) `),r&&(l+=`translateY(${r}px)`),n.transform=l.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),i_(this._pane.style,n)}_getExactOverlayY(t,e,n){let l={top:null,bottom:null},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?l.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:l.top=_f(s.y),l}_getExactOverlayX(t,e,n){let l,s={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(l=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?s.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}px`:s.left=_f(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Yf(t,n),isOriginOutsideView:Wf(t,n),isOverlayClipped:Yf(e,n),isOverlayOutsideView:Wf(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{t_("originX",t.originX),Jf("originY",t.originY),t_("overlayX",t.overlayX),Jf("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&ff(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof an)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function i_(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}class o_{constructor(t,e,n,l,s,r,i){this._preferredPositions=[],this._positionStrategy=new r_(n,l,s,r,i).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,l){const s=new Qf(t,e,n,l);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const a_="cdk-global-overlay-wrapper";class u_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(a_),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===n.width?"0":this._leftOffset,t.marginTop="100%"===n.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,"100%"===n.width?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems="100%"===n.height?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(a_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let c_=(()=>{class t{constructor(t,e,n,l){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=l}global(){return new u_}connectedTo(t,e,n){return new o_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new r_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut($f),Ut(za),Ut(Mf),Ut(n_))},token:t,providedIn:"root"}),t})(),h_=0,d_=(()=>(class{constructor(t,e,n,l,s,r,i,o,a,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=l,this._keyboardDispatcher=s,this._injector=r,this._ngZone=i,this._document=o,this._directionality=a,this._location=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),l=this._createPortalOutlet(n),s=new Zf(t);return s.direction=s.direction||this._directionality.value,new l_(l,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${h_++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ir)),new of(t,this._componentFactoryResolver,this._appRef,this._injector)}}))();const p_=new Tt("cdk-connected-overlay-scroll-strategy");function m_(t){return()=>t.scrollStrategies.reposition()}let g_=(()=>(class{}))();class f_{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}function __(){throw Error("Attempting to attach dialog content after content is already attached")}let y_=(()=>(class extends rf{constructor(t,e,n,l,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._document=l,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new Vs,this._ariaLabelledBy=s.ariaLabelledBy||null}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&__(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&__(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}))(),v_=0;class b_{constructor(t,e,n,l=`mat-dialog-${v_++}`){this._overlayRef=t,this._containerInstance=e,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new D,this._afterClosed=new D,this._beforeClosed=new D,this._state=0,e._id=l,e._animationStateChanged.pipe(Ih(t=>"done"===t.phaseName&&"enter"===t.toState),Qh(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Ih(t=>"done"===t.phaseName&&"exit"===t.toState),Qh(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Ih(t=>t.keyCode===hf&&!this.disableClose&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ih(t=>"start"===t.phaseName),Qh(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}afterOpen(){return this.afterOpened()}beforeClose(){return this.beforeClosed()}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const C_=new Tt("MatDialogData"),w_=new Tt("mat-dialog-default-options"),S_=new Tt("mat-dialog-scroll-strategy");function E_(t){return()=>t.scrollStrategies.block()}let x_=(()=>(class{constructor(t,e,n,l,s,r,i){this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=l,this._parentDialog=r,this._overlayContainer=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new D,this._afterOpenedAtThisLevel=new D,this._ariaHiddenElements=new Map,this.afterAllClosed=Ph(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(_h(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get afterOpen(){return this.afterOpened}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign({},e,t)}(e,this._defaultOptions||new f_)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),l=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,l,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Zf({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=new cf(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[f_,e]])),l=new lf(y_,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,e,n,l){const s=new b_(n,e,this._location,l.id);if(l.hasBackdrop&&n.backdropClick().subscribe(()=>{s.disableClose||s.close()}),t instanceof Mn)e.attachTemplatePortal(new sf(t,null,{$implicit:l.data,dialogRef:s}));else{const n=this._createInjector(l,s,e),r=e.attachComponentPortal(new lf(t,void 0,n));s.componentInstance=r.instance}return s.updateSize(l.width,l.height).updatePosition(l.position),s}_createInjector(t,e,n){const l=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=new WeakMap([[y_,n],[C_,t.data],[b_,e]]);return!t.direction||l&&l.get(pf,null)||s.set(pf,{value:t.direction,change:gh()}),new cf(l||this._injector,s)}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let l=e[n];l===t||"SCRIPT"===l.nodeName||"STYLE"===l.nodeName||l.hasAttribute("aria-live")||(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}))(),T_=(()=>(class{}))();const D_=new gn("8.2.3");let k_=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(_S){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===P_(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let l=t.nodeName.toLowerCase(),s=P_(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===l)return!1;if("audio"===l){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===l){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==l||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||A_(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Mf))},token:t,providedIn:"root"}),t})();function A_(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function P_(t){if(!A_(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I_{constructor(t,e,n,l,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated `+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated attribute `+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),ae()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Qh(1)).subscribe(t)}}let O_=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new I_(t,this._checker,this._ngZone,this._document,e)}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(k_),Ut(dr),Ut(za))},token:t,providedIn:"root"}),t})(),R_=(()=>(class{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=gf(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=gf(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}))();const M_=new Tt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),N_=new Tt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F_=(()=>{class t{constructor(t,e,n,l){this._ngZone=e,this._defaultOptions=l,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let l,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[l,s]=e,this.clear(),clearTimeout(this._previousTimeout),l||(l=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(M_,8),Ut(dr),Ut(za),Ut(N_,8))},token:t,providedIn:"root"}),t})(),V_=(()=>(class{constructor(t,e,n,l){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=l,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}))();const L_=650,U_=Ff({passive:!0,capture:!0});let j_=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,L_)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(t,e=!1){if(!this._platform.isBrowser)return gh(null);const n=yf(t);if(this._elementInfo.has(n)){let t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}let l={unlisten:()=>{},checkChildren:e,subject:new D};this._elementInfo.set(n,l),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,n),r=t=>this._onBlur(t,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",s,!0),n.addEventListener("blur",r,!0)}),l.unlisten=()=>{n.removeEventListener("focus",s,!0),n.removeEventListener("blur",r,!0)},l.subject.asObservable()}stopMonitoring(t){const e=yf(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,n){const l=yf(t);this._setOriginForCurrentEventQueue(e),"function"==typeof l.focus&&l.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==t.target)return;let l=this._origin;l||(l=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,l),this._emitOrigin(n.subject,l),this._lastFocusOrigin=l}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,U_),document.addEventListener("mousedown",this._documentMousedownListener,U_),document.addEventListener("touchstart",this._documentTouchstartListener,U_),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,U_),document.removeEventListener("mousedown",this._documentMousedownListener,U_),document.removeEventListener("touchstart",this._documentTouchstartListener,U_),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(dr),Ut(Mf))},token:t,providedIn:"root"}),t})(),$_=(()=>(class{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Vs,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}))(),B_=(()=>(class{}))();const z_=new gn("8.2.3"),H_=new Tt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let q_=(()=>(class{constructor(t,e){this._sanityChecksEnabled=t,this._hammerLoader=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_areChecksEnabled(){return this._sanityChecksEnabled&&ae()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._document||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){z_.full!==D_.full&&console.warn("The Angular Material version ("+z_.full+") does not match the Angular CDK version ("+D_.full+").\nPlease ensure the versions of these two packages exactly match.")}_checkHammerIsAvailable(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)}}))();function W_(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=gf(t)}}}function Y_(t,e){return class extends t{get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...t){super(...t),this.color=e}}}function G_(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=gf(t)}}}const K_=new Tt("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return jt(Ks)}});class Z_{constructor(){this._localeChanges=new D}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),l=this.isValid(e);return n&&l?!this.compareDate(t,e):n==l}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Q_=new Tt("mat-date-formats");let X_;try{X_="undefined"!=typeof Intl}catch(_S){X_=!1}const J_={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ty=ly(31,t=>String(t+1)),ey={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ny=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ly(t,e){const n=Array(t);for(let l=0;l<t;l++)n[l]=e(l);return n}let sy=(()=>(class extends Z_{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(X_){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return ly(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return J_[t]}getDateNames(){if(X_){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ly(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return ty}getDayOfWeekNames(t){if(X_){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return ly(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return ey[t]}getYearName(t){if(X_){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let l=this._createDateWithOverflow(t,e,n);if(l.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return l}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(X_){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign({},e,{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(ny.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const l=new Date(t,e,n);return t>=0&&t<100&&l.setFullYear(this.getYear(l)-1900),l}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}))();const ry={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let iy=(()=>(class{}))(),oy=(()=>(class{}))(),ay=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const uy=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}();class cy{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=uy.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const hy={enterDuration:450,exitDuration:400},dy=800,py=Ff({passive:!0});class my{constructor(t,e,n,l){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=function(t){return 0===t.buttons}(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+dy;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},this._onTouchStart=t=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(t.state===uy.VISIBLE||t.config.terminateOnPointerUp&&t.state===uy.FADING_IN)&&t.fadeOut()}))},l.isBrowser&&(this._containerElement=yf(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,n={}){const l=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign({},hy,n.animation);n.centered&&(t=l.left+l.width/2,e=l.top+l.height/2);const r=n.radius||function(t,e,n){const l=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(l*l+s*s)}(t,e,l),i=t-l.left,o=e-l.top,a=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${i-r}px`,u.style.top=`${o-r}px`,u.style.height=`${2*r}px`,u.style.width=`${2*r}px`,u.style.backgroundColor=n.color||null,u.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const c=new cy(this,u,n);return c.state=uy.FADING_IN,this._activeRipples.add(c),n.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const t=c===this._mostRecentTransientRipple;c.state=uy.VISIBLE,n.persistent||t&&this._isPointerDown||c.fadeOut()},a),c}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,l=Object.assign({},hy,t.config.animation);n.style.transitionDuration=`${l.exitDuration}ms`,n.style.opacity="0",t.state=uy.FADING_OUT,this._runTimeoutOutsideZone(()=>{t.state=uy.HIDDEN,n.parentNode.removeChild(n)},l.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=yf(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,n)=>{e.addEventListener(n,t,py)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,py)})}}const gy=new Tt("mat-ripple-global-options");let fy=(()=>(class{constructor(t,e,n,l,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new my(this,e,t,n),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign({},this.rippleConfig,t))}}))(),_y=(()=>(class{}))(),yy=(()=>(class{}))(),vy=(()=>(class{}))();var by=el({encapsulation:2,styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function Cy(t){return fi(0,[(t()(),Zr(0,null,null,0))],null,null)}function wy(t){return fi(0,[ni(402653184,1,{_portalOutlet:0}),(t()(),Zr(16777216,null,null,1,null,Cy)),ps(2,212992,[[1,4]],0,af,[en,Fn],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function Sy(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],(function(t,e,n){var l=!0;return"component:@dialogContainer.start"===e&&(l=!1!==ts(t,1)._onAnimationStart(n)&&l),"component:@dialogContainer.done"===e&&(l=!1!==ts(t,1)._onAnimationDone(n)&&l),l}),wy,by)),ps(1,49152,null,0,y_,[an,O_,An,[2,za],f_],null,null)],null,(function(t,e){t(e,0,0,ts(e,1)._id,ts(e,1)._config.role,ts(e,1)._config.ariaLabel?null:ts(e,1)._ariaLabelledBy,ts(e,1)._config.ariaLabel,ts(e,1)._config.ariaDescribedBy||null,ts(e,1)._state)}))}var Ey=zl("mat-dialog-container",y_,Sy,{},{},[]);function xy(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let Ty=(()=>{class t{constructor(){this.changes=new D,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Dy{constructor(t,e,n,l,s){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=l,this.cssClasses=s}}let ky=(()=>(class{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Vs}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:l}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?l-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/l}%`),!e&&this._cellWidth||(this._cellWidth=`${100/l}%`)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Qh(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}))(),Ay=(()=>(class{constructor(t,e,n,l){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=l,this.selectedChange=new Vs,this._userSelection=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw xy("DateAdapter");if(!this._dateFormats)throw xy("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(l)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,l=this._firstWeekOffset;n<t;n++,l++){7==l&&(this._weeks.push([]),l=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),s=this._shouldEnableDate(t),r=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),i=this.dateClass?this.dateClass(t):void 0;this._weeks[this._weeks.length-1].push(new Dy(n+1,e[n],r,s,i))}}_shouldEnableDate(t){return!!t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();const Py=24;let Iy=(()=>(class{constructor(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new Vs,this.yearSelected=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw xy("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Oy(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Ry(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<Py;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ry(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Py-Ry(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*-Py:-Py);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*Py:Py);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return Ry(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new Dy(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();function Oy(t,e,n,l,s){const r=t.getYear(e),i=t.getYear(n),o=My(t,l,s);return Math.floor((r-o)/Py)===Math.floor((i-o)/Py)}function Ry(t,e,n,l){return((t.getYear(e)-My(t,n,l))%(s=Py)+s)%s;var s}function My(t,e,n){let l=0;return n?l=t.getYear(n)-Py+1:e&&(l=t.getYear(e)),l}let Ny=(()=>(class{constructor(t,e,n,l){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=l,this.selectedChange=new Vs,this.monthSelected=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw xy("DateAdapter");if(!this._dateFormats)throw xy("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const n=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new Dy(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>l}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<l}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))(),Fy=(()=>(class{constructor(t,e,n,l,s){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=l,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-Ry(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+Py-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),l=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,l)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Py)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Py)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Oy(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}))(),Vy=(()=>(class{constructor(t,e,n,l){if(this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Vs,this.yearSelected=new Vs,this.monthSelected=new Vs,this._userSelection=new Vs,this.stateChanges=new D,!this._dateAdapter)throw xy("DateAdapter");if(!this._dateFormats)throw xy("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new lf(this.headerComponent||Fy),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(t){this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}))();const Ly=new Tt("mat-datepicker-scroll-strategy");function Uy(t){return()=>t.scrollStrategies.reposition()}class jy{constructor(t){this._elementRef=t}}const $y=Y_(jy);let By=(()=>(class extends $y{constructor(t){super(t)}ngAfterViewInit(){this._calendar.focusActiveCell()}}))(),zy=(()=>(class{}))(),Hy=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),qy=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=yf(t);return new C(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new D,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.ngInjectableDef=mt({factory:function(){return new t(Ut(Hy))},token:t,providedIn:"root"}),t})(),Wy=(()=>(class{}))();const Yy=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Gy{constructor(t){this._elementRef=t}}const Ky=Y_(W_(G_(Gy)));let Zy=(()=>(class extends Ky{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Yy)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}))(),Qy=(()=>(class{}))();function Xy(){return"undefined"!=typeof process}function Jy(t){switch(t.length){case 0:return new Xg;case 1:return t[0];default:return new Jg(t)}}function tv(t,e,n,l,s={},r={}){const i=[],o=[];let a=-1,u=null;if(l.forEach(t=>{const n=t.offset,l=n==a,c=l&&u||{};Object.keys(t).forEach(n=>{let l=n,o=t[n];if("offset"!==n)switch(l=e.normalizePropertyName(l,i),o){case tf:o=s[n];break;case Gg:o=r[n];break;default:o=e.normalizeStyleValue(n,l,o,i)}c[l]=o}),l||o.push(c),u=c,a=n}),i.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${i.join(t)}`)}return o}function ev(t,e,n,l){switch(e){case"start":t.onStart(()=>l(n&&nv(n,"start",t)));break;case"done":t.onDone(()=>l(n&&nv(n,"done",t)));break;case"destroy":t.onDestroy(()=>l(n&&nv(n,"destroy",t)))}}function nv(t,e,n){const l=n.totalTime,s=lv(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==l?t.totalTime:l,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function lv(t,e,n,l,s="",r=0,i){return{element:t,triggerName:e,fromState:n,toState:l,phaseName:s,totalTime:r,disabled:!!i}}function sv(t,e,n){let l;return t instanceof Map?(l=t.get(e))||t.set(e,l=n):(l=t[e])||(l=t[e]=n),l}function rv(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let iv=(t,e)=>!1,ov=(t,e)=>!1,av=(t,e,n)=>[];const uv=Xy();(uv||"undefined"!=typeof Element)&&(iv=(t,e)=>t.contains(e),ov=(()=>{if(uv||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):ov}})(),av=(t,e,n)=>{let l=[];if(n)l.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&l.push(n)}return l});let cv=null,hv=!1;function dv(t){cv||(cv=("undefined"!=typeof document?document.body:null)||{},hv=!!cv.style&&"WebkitAppearance"in cv.style);let e=!0;return cv.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in cv.style)&&hv&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in cv.style),e}const pv=ov,mv=iv,gv=av;function fv(t){const e={};return Object.keys(t).forEach(n=>{const l=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[l]=t[n]}),e}let _v=(()=>(class{validateStyleProperty(t){return dv(t)}matchesElement(t,e){return pv(t,e)}containsElement(t,e){return mv(t,e)}query(t,e,n){return gv(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,l,s,r=[],i){return new Xg(n,l)}}))(),yv=(()=>{class t{}return t.NOOP=new _v,t})();const vv=1e3,bv="{{",Cv="ng-enter",wv="ng-leave",Sv="ng-trigger",Ev=".ng-trigger",xv="ng-animating",Tv=".ng-animating";function Dv(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kv(parseFloat(e[1]),e[2])}function kv(t,e){switch(e){case"s":return t*vv;default:return t}}function Av(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let l,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};l=kv(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(s=kv(parseFloat(i),n[4]));const o=n[5];o&&(r=o)}else l=t;if(!n){let n=!1,r=e.length;l<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:l,delay:s,easing:r}}(t,e,n)}function Pv(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Iv(t,e,n={}){if(e)for(let l in t)n[l]=t[l];else Pv(t,n);return n}function Ov(t,e,n){return n?e+":"+n+";":""}function Rv(t){let e="";for(let n=0;n<t.style.length;n++){const l=t.style.item(n);e+=Ov(0,l,t.style.getPropertyValue(l))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Ov(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Mv(t,e,n){t.style&&(Object.keys(e).forEach(l=>{const s=Bv(l);n&&!n.hasOwnProperty(l)&&(n[l]=t.style[s]),t.style[s]=e[l]}),Xy()&&Rv(t))}function Nv(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Bv(e);t.style[n]=""}),Xy()&&Rv(t))}function Fv(t){return Array.isArray(t)?1==t.length?t[0]:Kg(t):t}const Vv=new RegExp(`${bv}\\s*(.+?)\\s*}}`,"g");function Lv(t){let e=[];if("string"==typeof t){const n=t.toString();let l;for(;l=Vv.exec(n);)e.push(l[1]);Vv.lastIndex=0}return e}function Uv(t,e,n){const l=t.toString(),s=l.replace(Vv,(t,l)=>{let s=e[l];return e.hasOwnProperty(l)||(n.push(`Please provide a value for the animation param ${l}`),s=""),s.toString()});return s==l?t:s}function jv(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const $v=/-+([a-z0-9])/g;function Bv(t){return t.replace($v,(...t)=>t[1].toUpperCase())}function zv(t,e){return 0===t||0===e}function Hv(t,e,n){const l=Object.keys(n);if(l.length&&e.length){let r=e[0],i=[];if(l.forEach(t=>{r.hasOwnProperty(t)||i.push(t),r[t]=n[t]}),i.length)for(var s=1;s<e.length;s++){let n=e[s];i.forEach((function(e){n[e]=Wv(t,e)}))}}return e}function qv(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function Wv(t,e){return window.getComputedStyle(t)[e]}const Yv="*";function Gv(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>(function(t,e,n){if(":"==t[0]){const l=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const l=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=l[1],r=l[2],i=l[3];e.push(Qv(s,i)),"<"!=r[0]||s==Yv&&i==Yv||e.push(Qv(i,s))})(t,n,e)):n.push(t),n}const Kv=new Set(["true","1"]),Zv=new Set(["false","0"]);function Qv(t,e){const n=Kv.has(t)||Zv.has(t),l=Kv.has(e)||Zv.has(e);return(s,r)=>{let i=t==Yv||t==s,o=e==Yv||e==r;return!i&&n&&"boolean"==typeof s&&(i=s?Kv.has(t):Zv.has(t)),!o&&l&&"boolean"==typeof r&&(o=r?Kv.has(e):Zv.has(e)),i&&o}}const Xv=":self",Jv=new RegExp(`s*${Xv}s*,?`,"g");function tb(t,e,n){return new nb(t).build(e,n)}const eb="";class nb{constructor(t){this._driver=t}build(t,e){const n=new lb(e);return this._resetContextStyleTimingState(n),qv(this,Fv(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector=eb,t.collectedStyles={},t.collectedStyles[eb]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,l=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,l=n.name;l.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=l}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,l+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:l,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),l=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=l||{};if(n.styles.forEach(t=>{if(sb(t)){const e=t;Object.keys(e).forEach(t=>{Lv(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=jv(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:l?{params:l}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=qv(this,Fv(t.animation),e);return{type:1,matchers:Gv(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:rb(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>qv(this,t,e)),options:rb(t.options)}}visitGroup(t,e){const n=e.currentTime;let l=0;const s=t.steps.map(t=>{e.currentTime=n;const s=qv(this,t,e);return l=Math.max(l,e.currentTime),s});return e.currentTime=l,{type:3,steps:s,options:rb(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ib(Av(t,e).duration,0,"");const l=t;if(l.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ib(0,0,"");return t.dynamic=!0,t.strValue=l,t}return ib((n=n||Av(l,e)).duration,n.delay,n.easing)}(t.timings,e.errors);let l;e.currentAnimateTimings=n;let s=t.styles?t.styles:Zg({});if(5==s.type)l=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Zg(t)}e.currentTime+=n.duration+n.delay;const i=this.visitStyle(s,e);i.isEmptyStep=r,l=i}return e.currentAnimateTimings=null,{type:4,timings:n,style:l,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Gg?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let l=!1,s=null;return n.forEach(t=>{if(sb(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!l)for(let t in e)if(e[t].toString().indexOf(bv)>=0){l=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let l=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],i=r[n];let o=!0;i&&(s!=l&&s>=i.startTime&&l<=i.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${l}ms"`),o=!1),s=i.startTime),o&&(r[n]={startTime:s,endTime:l}),e.options&&function(t,e,n){const l=e.params||{},s=Lv(t);s.length&&s.forEach(t=>{l.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let l=0;const s=[];let r=!1,i=!1,o=0;const a=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let a=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(sb(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(sb(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=a&&(l++,u=n.offset=a),i=i||u<0||u>1,r=r||u<o,o=u,s.push(u),n});i&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const u=t.steps.length;let c=0;l>0&&l<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==l&&(c=1/(u-1));const h=u-1,d=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return a.forEach((t,l)=>{const r=c>0?l==h?1:c*l:s[l],i=r*m;e.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:qv(this,Fv(t.animation),e),options:rb(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:rb(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:rb(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,l=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>t==Xv);return e&&(t=t.replace(Jv,"")),[t=t.replace(/@\*/g,Ev).replace(/@\w+/g,t=>Ev+"-"+t.substr(1)).replace(/:animating/g,Tv),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,sv(e.collectedStyles,e.currentQuerySelector,{});const i=qv(this,Fv(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:l.limit||0,optional:!!l.optional,includeSelf:r,animation:i,originalSelector:t.selector,options:rb(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Av(t.timings,e.errors,!0);return{type:12,animation:qv(this,Fv(t.animation),e),timings:n,options:null}}}class lb{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function sb(t){return!Array.isArray(t)&&"object"==typeof t}function rb(t){var e;return t?(t=Pv(t)).params&&(t.params=(e=t.params)?Pv(e):null):t={},t}function ib(t,e,n){return{duration:t,delay:e,easing:n}}function ob(t,e,n,l,s,r,i=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:l,duration:s,delay:r,totalTime:s+r,easing:i,subTimeline:o}}class ab{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ub=1,cb=new RegExp(":enter","g"),hb=new RegExp(":leave","g");function db(t,e,n,l,s,r={},i={},o,a,u=[]){return(new pb).buildKeyframes(t,e,n,l,s,r,i,o,a,u)}class pb{buildKeyframes(t,e,n,l,s,r,i,o,a,u=[]){a=a||new ab;const c=new gb(t,e,a,l,s,u,[]);c.options=o,c.currentTimeline.setStyles([r],null,c.errors,o),qv(this,n,c);const h=c.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(i).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([i],null,c.errors,o)}return h.length?h.map(t=>t.buildKeyframes()):[ob(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const l=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,l,l.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let l=e.currentTimeline.currentTime;const s=null!=n.duration?Dv(n.duration):null,r=null!=n.delay?Dv(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);l=Math.max(l,n.duration+n.delay)}),l}visitReference(t,e){e.updateOptions(t.options,!0),qv(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let l=e;const s=t.options;if(s&&(s.params||s.delay)&&((l=e.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==l.previousNode.type&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=mb);const t=Dv(s.delay);l.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>qv(this,t,l)),l.currentTimeline.applyStylesToKeyframe(),l.subContextCount>n&&l.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let l=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Dv(t.options.delay):0;t.steps.forEach(r=>{const i=e.createSubContext(t.options);s&&i.delayNextStep(s),qv(this,r,i),l=Math.max(l,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(l),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Av(e.params?Uv(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),l=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),l.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),l.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,l=e.currentAnimateTimings;!l&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=l&&l.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,l=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(l+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,l=t.options||{},s=l.delay?Dv(l.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=mb);let r=n;const i=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!l.optional,e.errors);e.currentQueryTotal=i.length;let o=null;i.forEach((n,l)=>{e.currentQueryIndex=l;const i=e.createSubContext(t.options,n);s&&i.delayNextStep(s),n===e.element&&(o=i.currentTimeline),qv(this,t.animation,i),i.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,i.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,l=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),i=r*(e.currentQueryTotal-1);let o=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=i-o;break;case"full":o=n.currentStaggerTime}const a=e.currentTimeline;o&&a.delayNextStep(o);const u=a.currentTime;qv(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=l.currentTime-u+(l.startTime-n.currentTimeline.startTime)}}const mb={};class gb{constructor(t,e,n,l,s,r,i,o){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=s,this.errors=r,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new fb(this._driver,e,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let l=this.options;null!=n.duration&&(l.duration=Dv(n.duration)),null!=n.delay&&(l.delay=Dv(n.delay));const s=n.params;if(s){let t=l.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Uv(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const l=e||this.element,s=new gb(this._driver,l,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(l,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=mb,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const l={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new _b(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,l,t.stretchStartingKeyframe);return this.timelines.push(s),l}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,l,s,r){let i=[];if(l&&i.push(this.element),t.length>0){t=(t=t.replace(cb,"."+this._enterClassName)).replace(hb,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),i.push(...e)}return s||0!=i.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),i}}class fb{constructor(t,e,n,l){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=l,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new fb(this._driver,t,e||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+=ub,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Gg,this._currentKeyframe[t]=Gg}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,l){e&&(this._previousKeyframe.easing=e);const s=l&&l.params||{},r=function(t,e){const n={};let l;return t.forEach(t=>{"*"===t?(l=l||Object.keys(e)).forEach(t=>{n[t]=Gg}):Iv(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Uv(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Gg),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],l=t._styleSummary[e];(!n||l.time>n.time)&&this._updateStyle(e,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let l=[];this._keyframes.forEach((s,r)=>{const i=Iv(s,!0);Object.keys(i).forEach(n=>{const l=i[n];l==tf?t.add(n):l==Gg&&e.add(n)}),n||(i.offset=r/this.duration),l.push(i)});const s=t.size?jv(t.values()):[],r=e.size?jv(e.values()):[];if(n){const t=l[0],e=Pv(t);t.offset=0,e.offset=1,l=[t,e]}return ob(this.element,l,s,r,this.duration,this.startTime,this.easing,!1)}}class _b extends fb{constructor(t,e,n,l,s,r,i=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=l,this.postStyleProps=s,this._stretchStartingKeyframe=i,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:l}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,i=e/r,o=Iv(t[0],!1);o.offset=0,s.push(o);const a=Iv(t[0],!1);a.offset=yb(i),s.push(a);const u=t.length-1;for(let l=1;l<=u;l++){let i=Iv(t[l],!1);i.offset=yb((e+i.offset*n)/r),s.push(i)}n=r,e=0,l="",t=s}return ob(this.element,t,this.preStyleProps,this.postStyleProps,n,e,l,!0)}}function yb(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class vb{}class bb extends vb{normalizePropertyName(t,e){return Bv(t)}normalizeStyleValue(t,e,n,l){let s="";const r=n.toString().trim();if(Cb[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&l.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Cb=(()=>(function(t){const e={};return t.forEach(t=>e[t]=!0),e})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function wb(t,e,n,l,s,r,i,o,a,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:l,toStyles:i,timelines:o,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const Sb={};class Eb{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,l){return function(t,e,n,l,s){return t.some(t=>t(e,n,l,s))}(this.ast.matchers,t,e,n,l)}buildStyles(t,e,n){const l=this._stateStyles["*"],s=this._stateStyles[t],r=l?l.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,l,s,r,i,o,a,u){const c=[],h=this.ast.options&&this.ast.options.params||Sb,d=this.buildStyles(n,i&&i.params||Sb,c),p=o&&o.params||Sb,m=this.buildStyles(l,p,c),g=new Set,f=new Map,_=new Map,y="void"===l,v={params:Object.assign({},h,p)},b=u?[]:db(t,e,this.ast.animation,s,r,d,m,v,a,c);let C=0;if(b.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),c.length)return wb(e,this._triggerName,n,l,y,d,m,[],[],f,_,C,c);b.forEach(t=>{const n=t.element,l=sv(f,n,{});t.preStyleProps.forEach(t=>l[t]=!0);const s=sv(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const w=jv(g.values());return wb(e,this._triggerName,n,l,y,d,m,b,w,f,_,C)}}class xb{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},l=Pv(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(l[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Uv(r,l,e)),n[t]=r})}}),n}}class Tb{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new xb(t.style,t.options&&t.options.params||{})}),Db(this.states,"true","1"),Db(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Eb(t,e,this.states))}),this.fallbackTransition=new Eb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,l){return this.transitionFactories.find(s=>s.match(t,e,n,l))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Db(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const kb=new ab;class Ab{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],l=tb(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=l}_buildPlayer(t,e,n){const l=t.element,s=tv(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(l,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const l=[],s=this._animations[t];let r;const i=new Map;if(s?(r=db(this._driver,e,s,Cv,wv,{},{},n,kb,l)).forEach(t=>{const e=sv(i,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)}):(l.push("The requested animation doesn't exist or has already been destroyed"),r=[]),l.length)throw new Error(`Unable to create the animation due to the following errors: ${l.join("\n")}`);i.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Gg)})});const o=Jy(r.map(t=>{const e=i.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=o,o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,l){const s=lv(e,"","","");return ev(this._getPlayer(t),n,s,l),()=>{}}command(t,e,n,l){if("register"==n)return void this.register(t,l[0]);if("create"==n)return void this.create(t,e,l[0]||{});const s=this._getPlayer(t);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(l[0]));break;case"destroy":this.destroy(t)}}}const Pb="ng-animate-queued",Ib=".ng-animate-queued",Ob="ng-animate-disabled",Rb=".ng-animate-disabled",Mb="ng-star-inserted",Nb=".ng-star-inserted",Fb=[],Vb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ub="__ng_removed";class jb{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(l=n?t.value:t)?l:null,n){const e=Pv(t);delete e.value,this.options=e}else this.options={};var l;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const $b="void",Bb=new jb($b);class zb{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Qb(e,this._hostClassName)}listen(t,e,n,l){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" 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 "${e}" is not supported!`);var s;const r=sv(this._elementListeners,t,[]),i={name:e,phase:n,callback:l};r.push(i);const o=sv(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Qb(t,Sv),Qb(t,Sv+"-"+e),o[e]=Bb),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(i);t>=0&&r.splice(t,1),this._triggers[e]||delete o[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,l=!0){const s=this._getTrigger(e),r=new qb(this.id,e,t);let i=this._engine.statesByElement.get(t);i||(Qb(t,Sv),Qb(t,Sv+"-"+e),this._engine.statesByElement.set(t,i={}));let o=i[e];const a=new jb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&o&&a.absorbOptions(o.options),i[e]=a,o||(o=Bb),a.value!==$b&&o.value===a.value){if(!function(t,e){const n=Object.keys(t),l=Object.keys(e);if(n.length!=l.length)return!1;for(let s=0;s<n.length;s++){const l=n[s];if(!e.hasOwnProperty(l)||t[l]!==e[l])return!1}return!0}(o.params,a.params)){const e=[],n=s.matchStyles(o.value,o.params,e),l=s.matchStyles(a.value,a.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Nv(t,n),Mv(t,l)})}return}const u=sv(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let c=s.matchTransition(o.value,a.value,t,a.params),h=!1;if(!c){if(!l)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:o,toState:a,player:r,isFallbackTransition:h}),h||(Qb(t,Pb),r.onStart(()=>{Xb(t,Pb)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e,n=!1){this._engine.driver.query(t,Ev,!0).forEach(t=>{if(t[Ub])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)})}triggerLeaveAnimation(t,e,n,l){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,$b,l);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Jy(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const l=e.name;if(n.has(l))return;n.add(l);const s=this._triggers[l].fallbackTransition,r=this._engine.statesByElement.get(t)[l]||Bb,i=new jb($b),o=new qb(this.id,l,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:l,transition:s,fromState:r,toState:i,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),this.triggerLeaveAnimation(t,e,!0))return;let l=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)l=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){l=!0;break}}}this.prepareLeaveAnimationListeners(t),l?n.markElementAsRemoved(this.id,t,!1,e):(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}insertNode(t,e){Qb(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const l=n.player;if(l.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const l=lv(s,n.triggerName,n.fromState.value,n.toState.value);l._data=t,ev(n.player,e.phase,l,e.callback)}}),l.markedForDestroy?this._engine.afterFlush(()=>{l.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,l=e.transition.ast.depCount;return 0==n||0==l?n-l:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(e=>e.element===t)||e}}class Hb{constructor(t,e,n){this.bodyNode=t,this.driver=e,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new zb(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let l=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),l=!0;break}l||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let l=this._namespaceLookup[t];l&&l.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let l=0;l<t.length;l++){const s=n[t[l]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,l){if(Wb(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,l),!0}return!1}insertNode(t,e,n,l){if(!Wb(e))return;const s=e[Ub];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const l=this._fetchNamespace(t);l&&l.insertNode(e,n)}l&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qb(t,Ob)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xb(t,Ob))}removeNode(t,e,n,l){if(Wb(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,l):this.markElementAsRemoved(t,e,!1,l),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,l)}}else this._onRemovalComplete(e,l)}markElementAsRemoved(t,e,n,l){this.collectedLeaveElements.push(e),e[Ub]={namespaceId:t,setForRemoval:l,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,l,s){return Wb(e)?this._fetchNamespace(t).listen(e,n,l,s):()=>{}}_buildInstruction(t,e,n,l,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,l,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ev,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Tv,!0)).forEach(t=>this.finishActiveQueriedAnimationOnElement(t))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Jy(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ub];if(e&&e.setForRemoval){if(t[Ub]=Vb,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Rb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Rb,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Qb(this.collectedEnterElements[n],Mb);if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}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(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Jy(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ab,l=[],s=new Map,r=[],i=new Map,o=new Map,a=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,Ib,!0);for(let n=0;n<e.length;n++)u.add(e[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Kb(h,this.collectedEnterElements),p=new Map;let m=0;d.forEach((t,e)=>{const n=Cv+m++;p.set(e,n),t.forEach(t=>Qb(t,n))});const g=[],f=new Set,_=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const t=this.collectedLeaveElements[P],e=t[Ub];e&&e.setForRemoval&&(g.push(t),f.add(t),e.hasAnimation?this.driver.query(t,Nb,!0).forEach(t=>f.add(t)):_.add(t))}const y=new Map,v=Kb(h,Array.from(f));v.forEach((t,e)=>{const n=wv+m++;y.set(e,n),t.forEach(t=>Qb(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Xb(t,n))}),v.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Xb(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],C=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s[Ub];if(t&&t.setForMove)return void e.destroy()}const u=!c||!this.driver.containsElement(c,s),h=y.get(s),d=p.get(s),m=this._buildInstruction(t,n,d,h,u);if(!m.errors||!m.errors.length)return u?(e.onStart(()=>Nv(s,m.fromStyles)),e.onDestroy(()=>Mv(s,m.toStyles)),void l.push(e)):t.isFallbackTransition?(e.onStart(()=>Nv(s,m.fromStyles)),e.onDestroy(()=>Mv(s,m.toStyles)),void l.push(e)):(m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>sv(i,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=o.get(e);t||o.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let l=a.get(e);l||a.set(e,l=new Set),n.forEach(t=>l.add(t))}));C.push(m)});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const w=new Map,S=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,w))}),l.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{sv(w,e,[]).push(t),t.destroy()})});const E=g.filter(t=>tC(t,o,a)),x=new Map;Gb(x,this.driver,_,a,Gg).forEach(t=>{tC(t,o,a)&&E.push(t)});const T=new Map;d.forEach((t,e)=>{Gb(T,this.driver,new Set(t),o,tf)}),E.forEach(t=>{const e=x.get(t),n=T.get(t);x.set(t,Object.assign({},e,n))});const D=[],k=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:i}=t;if(n.has(e)){if(u.has(e))return r.onDestroy(()=>Mv(e,i.toStyles)),r.disabled=!0,r.overrideTotalTime(i.totalTime),void l.push(r);let t=A;if(S.size>1){let n=e;const l=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}l.push(n)}l.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,i,w,s,T,x);if(r.setRealPlayer(n),t===A)D.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Jy(e)),l.push(r)}}else Nv(e,i.fromStyles),r.onDestroy(()=>Mv(e,i.toStyles)),k.push(r),u.has(e)&&l.push(r)}),k.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Jy(e);t.setRealPlayer(n)}}),l.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P<g.length;P++){const t=g[P],e=t[Ub];if(Xb(t,wv),e&&e.hasAnimation)continue;let n=[];if(i.size){let e=i.get(t);e&&e.length&&n.push(...e);let l=this.driver.query(t,Tv,!0);for(let t=0;t<l.length;t++){let e=i.get(l[t]);e&&e.length&&n.push(...e)}}const l=n.filter(t=>!t.destroyed);l.length?Jb(this,t,l):this.processLeaveNode(t)}return g.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const l=e[Ub];return l&&l.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,l,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==$b;e.forEach(e=>{e.queued||(t||e.triggerName==l)&&r.push(e)})}}return(n||l)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||l&&l!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const l=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const t=i.element,o=t!==l,a=sv(n,t,[]);this._getPreviousPlayers(t,o,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),a.push(t)})}Nv(l,e.fromStyles)}_buildAnimation(t,e,n,l,s,r){const i=e.triggerName,o=e.element,a=[],u=new Set,c=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h[Ub];if(d&&d.removedBeforeQueried)return new Xg(e.duration,e.delay);const p=h!==o,m=function(t){const e=[];return function t(e,n){for(let l=0;l<e.length;l++){const s=e[l];s instanceof Jg?t(s.players,n):n.push(s)}}(t,e),e}((n.get(h)||Fb).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),f=r.get(h),_=tv(0,this._normalizer,0,e.keyframes,g,f),y=this._buildPlayer(e,_,m);if(e.subTimeline&&l&&c.add(h),p){const e=new qb(t,i,h);e.setRealPlayer(y),a.push(e)}return y});a.forEach(t=>{sv(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>(function(t,e,n){let l;if(t instanceof Map){if(l=t.get(e)){if(l.length){const t=l.indexOf(n);l.splice(t,1)}0==l.length&&t.delete(e)}}else if(l=t[e]){if(l.length){const t=l.indexOf(n);l.splice(t,1)}0==l.length&&delete t[e]}return l})(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>Qb(t,xv));const d=Jy(h);return d.onDestroy(()=>{u.forEach(t=>Xb(t,xv)),Mv(o,e.toStyles)}),c.forEach(t=>{sv(l,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Xg(t.duration,t.delay)}}class qb{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Xg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>ev(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){sv(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wb(t){return t&&1===t.nodeType}function Yb(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gb(t,e,n,l,s){const r=[];n.forEach(t=>r.push(Yb(t)));const i=[];l.forEach((n,l)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(l,t,s);n&&0!=n.length||(l[Ub]=Lb,i.push(l))}),t.set(l,r)});let o=0;return n.forEach(t=>Yb(t,r[o++])),i}function Kb(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const l=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const i=e.parentNode;return r=n.has(i)?i:l.has(i)?1:t(i),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}const Zb="$$classes";function Qb(t,e){if(t.classList)t.classList.add(e);else{let n=t[Zb];n||(n=t[Zb]={}),n[e]=!0}}function Xb(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Zb];n&&delete n[e]}}function Jb(t,e,n){Jy(n).onDone(()=>t.processLeaveNode(e))}function tC(t,e,n){const l=n.get(t);if(!l)return!1;let s=e.get(t);return s?l.forEach(t=>s.add(t)):e.set(t,l),n.delete(t),!0}class eC{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Hb(t,e,n),this._timelineEngine=new Ab(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,l,s){const r=t+"-"+l;let i=this._triggerCache[r];if(!i){const t=[],e=tb(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${l}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);i=function(t,e){return new Tb(t,e)}(l,e),this._triggerCache[r]=i}this._transitionEngine.registerTrigger(e,l,i)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,l){this._transitionEngine.insertNode(t,e,n,l)}onRemove(t,e,n,l){this._transitionEngine.removeNode(t,e,l||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,l){if("@"==n.charAt(0)){const[t,s]=rv(n);this._timelineEngine.command(t,e,s,l)}else this._transitionEngine.trigger(t,e,n,l)}listen(t,e,n,l,s){if("@"==n.charAt(0)){const[t,l]=rv(n);return this._timelineEngine.listen(t,e,l,s)}return this._transitionEngine.listen(t,e,n,l,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nC(t,e){let n=null,l=null;return Array.isArray(e)&&e.length?(n=sC(e[0]),e.length>1&&(l=sC(e[e.length-1]))):e&&(n=sC(e)),n||l?new lC(t,n,l):null}let lC=(()=>{class t{constructor(e,n,l){this._element=e,this._startStyles=n,this._endStyles=l,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Mv(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mv(this._element,this._initialStyles),this._endStyles&&(Mv(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Nv(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nv(this._element,this._endStyles),this._endStyles=null),Mv(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sC(t){let e=null;const n=Object.keys(t);for(let l=0;l<n.length;l++){const s=n[l];rC(s)&&((e=e||{})[s]=t[s])}return e}function rC(t){return"display"===t||"position"===t}const iC=3,oC="animation",aC="animationend",uC=1e3;class cC{constructor(t,e,n,l,s,r,i){this._element=t,this._name=e,this._duration=n,this._delay=l,this._easing=s,this._fillMode=r,this._onDoneFn=i,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=fC(t,"").trim();n.length&&(function(t,e){let n=0;for(let l=0;l<t.length;l++)","===t.charAt(l)&&n++}(n),e=`${n}, ${e}`),gC(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),mC(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){hC(this._element,this._name,"paused")}resume(){hC(this._element,this._name,"running")}setPosition(t){const e=dC(this._element,this._name);this._position=t*this._duration,gC(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=parseFloat(t.elapsedTime.toFixed(iC))*uC;t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),mC(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=fC(t,"").split(","),l=pC(n,e);l>=0&&(n.splice(l,1),gC(t,"",n.join(",")))}(this._element,this._name))}}function hC(t,e,n){gC(t,"PlayState",n,dC(t,e))}function dC(t,e){const n=fC(t,"");return n.indexOf(",")>0?pC(n.split(","),e):pC([n],e)}function pC(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function mC(t,e,n){n?t.removeEventListener(aC,e):t.addEventListener(aC,e)}function gC(t,e,n,l){const s=oC+e;if(null!=l){const e=t.style[s];if(e.length){const t=e.split(",");t[l]=n,n=t.join(",")}}t.style[s]=n}function fC(t,e){return t.style[oC+e]}const _C="forwards",yC="linear";class vC{constructor(t,e,n,l,s,r,i,o){this.element=t,this.keyframes=e,this.animationName=n,this._duration=l,this._delay=s,this._finalStyles=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||yC,this.totalTime=l+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}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 cC(this.element,this.animationName,this._duration,this._delay,this.easing,_C,()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Wv(this.element,n))})}this.currentSnapshot=t}}class bC extends Xg{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=fv(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}const CC="gen_css_kf_",wC=" ";class SC{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return dv(t)}matchesElement(t,e){return pv(t,e)}containsElement(t,e){return mv(t,e)}query(t,e,n){return gv(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>fv(t));let l=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=wC;const e=parseFloat(t.offset);l+=`${s}${100*e}% {\n`,s+=wC,Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(l+=`${s}animation-timing-function: ${n};\n`));default:return void(l+=`${s}${e}: ${n};\n`)}}),l+=`${s}}\n`}),l+="}\n";const r=document.createElement("style");return r.innerHTML=l,r}animate(t,e,n,l,s,r=[],i){i&&this._notifyFaultyScrubber();const o=r.filter(t=>t instanceof vC),a={};zv(n,l)&&o.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>a[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Hv(t,e,a));if(0==n)return new bC(t,u);const c=`${CC}${this._count++}`,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);const d=nC(t,e),p=new vC(t,e,c,n,l,s,u,d);return p.onDestroy(()=>(function(t){t.parentNode.removeChild(t)})(h)),p}_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 EC{constructor(t,e,n,l){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=l,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Wv(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xC{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(TC().toString()),this._cssKeyframesDriver=new SC}validateStyleProperty(t){return dv(t)}matchesElement(t,e){return pv(t,e)}containsElement(t,e){return mv(t,e)}query(t,e,n){return gv(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,l,s,r=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,l,s,r);const o={duration:n,delay:l,fill:0==l?"both":"forwards"};s&&(o.easing=s);const a={},u=r.filter(t=>t instanceof EC);zv(n,l)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>a[t]=e[t])});const c=nC(t,e=Hv(t,e=e.map(t=>Iv(t,!1)),a));return new EC(t,e,o,c)}}function TC(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let DC=(()=>(class extends Wg{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:se.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Kg(t):t;return PC(this._renderer,null,e,"register",[n]),new kC(e,this._renderer)}}))();class kC extends Yg{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new AC(this._id,t,e||{},this._renderer)}}class AC{constructor(t,e,n,l){this.id=t,this.element=e,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return PC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return 0}}function PC(t,e,n,l,s){return t.setProperty(e,`@@${n}:${l}`,s)}const IC="@",OC="@.disabled";let RC=(()=>(class{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new MC("",n,this.engine),this._rendererCache.set(n,t)),t}const l=e.id,s=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,t),e.data.animation.forEach(e=>this.engine.registerTrigger(l,s,t,e.name,e)),new NC(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,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 MC{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,l){this.delegate.setAttribute(t,e,n,l)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,l){this.delegate.setStyle(t,e,n,l)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==IC&&e==OC?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class NC extends MC{constructor(t,e,n,l){super(e,n,l),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==IC?"."==e.charAt(1)&&e==OC?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==IC){const l=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=IC&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,l,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let FC=(()=>(class extends eC{constructor(t,e,n){super(t.body,e,n)}}))();function VC(){return"function"==typeof TC()?new xC:new SC}function LC(){return new bb}function UC(t,e,n){return new RC(t,e,n)}const jC=new Tt("AnimationModuleType");let $C=(()=>(class{}))();var BC=el({encapsulation:2,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:#fff}}@media (-ms-high-contrast:black-on-white){.mat-button-focus-overlay{background-color:#000}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function zC(t){return fi(2,[ni(671088640,1,{ripple:0}),(t()(),Qr(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),oi(null,0),(t()(),Qr(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),ps(4,212992,[[1,4]],0,fy,[an,dr,Mf,[2,gy],[2,jC]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Qr(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())}),(function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,ts(e,4).unbounded)}))}var HC=el({encapsulation:2,styles:[],data:{}});function qC(t){return fi(2,[(t()(),Qr(0,0,null,null,12,"div",[["class","mat-calendar-header"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,11,"div",[["class","mat-calendar-controls"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,4,"button",[["cdkAriaLive","polite"],["class","mat-calendar-period-button"],["mat-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.currentPeriodClicked()&&l),l}),zC,BC)),ps(3,180224,null,0,Zy,[an,j_,[2,jC]],null,null),ps(4,147456,null,0,V_,[an,F_,qy,dr],{politeness:[0,"politeness"]},null),(t()(),pi(5,0,["",""])),(t()(),Qr(6,0,null,0,0,"div",[["class","mat-calendar-arrow"]],[[2,"mat-calendar-invert",null]],null,null,null,null)),(t()(),Qr(7,0,null,null,0,"div",[["class","mat-calendar-spacer"]],null,null,null,null,null)),oi(null,0),(t()(),Qr(9,0,null,null,1,"button",[["class","mat-calendar-previous-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.previousClicked()&&l),l}),zC,BC)),ps(10,180224,null,0,Zy,[an,j_,[2,jC]],{disabled:[0,"disabled"]},null),(t()(),Qr(11,0,null,null,1,"button",[["class","mat-calendar-next-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.nextClicked()&&l),l}),zC,BC)),ps(12,180224,null,0,Zy,[an,j_,[2,jC]],{disabled:[0,"disabled"]},null)],(function(t,e){var n=e.component;t(e,4,0,"polite"),t(e,10,0,!n.previousEnabled()),t(e,12,0,!n.nextEnabled())}),(function(t,e){var n=e.component;t(e,2,0,n.periodButtonLabel,ts(e,3).disabled||null,"NoopAnimations"===ts(e,3)._animationMode),t(e,5,0,n.periodButtonText),t(e,6,0,"month"!=n.calendar.currentView),t(e,9,0,n.prevButtonLabel,ts(e,10).disabled||null,"NoopAnimations"===ts(e,10)._animationMode),t(e,11,0,n.nextButtonLabel,ts(e,12).disabled||null,"NoopAnimations"===ts(e,12)._animationMode)}))}function WC(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-calendar-header",[],null,null,null,qC,HC)),ps(1,49152,null,0,Fy,[Ty,Vy,[2,Z_],[2,Q_],An],null,null)],null,null)}var YC=zl("mat-calendar-header",Fy,WC,{},{},["*"]),GC=el({encapsulation:2,styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],data:{}});function KC(t){return fi(0,[(t()(),Zr(0,null,null,0))],null,null)}function ZC(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-month-view",[],null,[[null,"activeDateChange"],[null,"selectedChange"],[null,"_userSelection"]],(function(t,e,n){var l=!0,s=t.component;return"activeDateChange"===e&&(l=!1!==(s.activeDate=n)&&l),"selectedChange"===e&&(l=!1!==s._dateSelected(n)&&l),"_userSelection"===e&&(l=!1!==s._userSelected()&&l),l}),dw,cw)),ps(1,1097728,[[1,4]],0,Ay,[An,[2,Q_],[2,Z_],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"],dateClass:[5,"dateClass"]},{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter,n.dateClass)}),null)}function QC(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-year-view",[],null,[[null,"activeDateChange"],[null,"monthSelected"],[null,"selectedChange"]],(function(t,e,n){var l=!0,s=t.component;return"activeDateChange"===e&&(l=!1!==(s.activeDate=n)&&l),"monthSelected"===e&&(l=!1!==s._monthSelectedInYearView(n)&&l),"selectedChange"===e&&(l=!1!==s._goToDateInView(n,"month")&&l),l}),mw,pw)),ps(1,1097728,[[2,4]],0,Ny,[An,[2,Q_],[2,Z_],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function XC(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-multi-year-view",[],null,[[null,"activeDateChange"],[null,"yearSelected"],[null,"selectedChange"]],(function(t,e,n){var l=!0,s=t.component;return"activeDateChange"===e&&(l=!1!==(s.activeDate=n)&&l),"yearSelected"===e&&(l=!1!==s._yearSelectedInMultiYearView(n)&&l),"selectedChange"===e&&(l=!1!==s._goToDateInView(n,"year")&&l),l}),fw,gw)),ps(1,1097728,[[3,4]],0,Iy,[An,[2,Z_],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function JC(t){return fi(2,[ni(671088640,1,{monthView:0}),ni(671088640,2,{yearView:0}),ni(671088640,3,{multiYearView:0}),(t()(),Zr(16777216,null,null,1,null,KC)),ps(4,212992,null,0,af,[en,Fn],{portal:[0,"portal"]},null),(t()(),Qr(5,0,null,null,8,"div",[["cdkMonitorSubtreeFocus",""],["class","mat-calendar-content"],["tabindex","-1"]],null,null,null,null,null)),ps(6,16384,null,0,Fa,[],{ngSwitch:[0,"ngSwitch"]},null),ps(7,147456,null,0,$_,[an,j_],null,null),(t()(),Zr(16777216,null,null,1,null,ZC)),ps(9,278528,null,0,Va,[Fn,Mn,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zr(16777216,null,null,1,null,QC)),ps(11,278528,null,0,Va,[Fn,Mn,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zr(16777216,null,null,1,null,XC)),ps(13,278528,null,0,Va,[Fn,Mn,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,4,0,n._calendarHeaderPortal),t(e,6,0,n.currentView),t(e,9,0,"month"),t(e,11,0,"year"),t(e,13,0,"multi-year")}),null)}var tw=el({encapsulation:2,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}@media (-ms-high-contrast:active){.mat-calendar-body-cell-content{border:none}}@media (-ms-high-contrast:active){.mat-calendar-body-selected,.mat-datepicker-popup:not(:empty){outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],data:{}});function ew(t){return fi(0,[(t()(),Qr(0,0,null,null,2,"tr",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,1,"td",[["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),pi(2,null,["",""]))],null,(function(t,e){var n=e.component;t(e,1,0,n.numCols,n._cellPadding,n._cellPadding),t(e,2,0,n.label)}))}function nw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"td",[["aria-hidden","true"],["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),pi(1,null,["",""]))],null,(function(t,e){var n=e.component;t(e,0,0,n._firstRowOffset,n._cellPadding,n._cellPadding),t(e,1,0,n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}))}function lw(t){return fi(0,[(t()(),Qr(0,0,null,null,4,"td",[["class","mat-calendar-body-cell"],["role","button"]],[[8,"tabIndex",0],[2,"mat-calendar-body-disabled",null],[2,"mat-calendar-body-active",null],[1,"aria-label",0],[1,"aria-disabled",0],[1,"aria-selected",0],[4,"width",null],[4,"paddingTop",null],[4,"paddingBottom",null]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component._cellClicked(t.context.$implicit)&&l),l}),null,null)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(2,278528,null,0,ka,[xa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Qr(3,0,null,null,1,"div",[["class","mat-calendar-body-cell-content"]],[[2,"mat-calendar-body-selected",null],[2,"mat-calendar-body-today",null]],null,null,null,null)),(t()(),pi(4,null,["",""]))],(function(t,e){t(e,2,0,"mat-calendar-body-cell",e.context.$implicit.cssClasses)}),(function(t,e){var n=e.component;t(e,0,0,n._isActiveCell(e.parent.context.index,e.context.index)?0:-1,!e.context.$implicit.enabled,n._isActiveCell(e.parent.context.index,e.context.index),e.context.$implicit.ariaLabel,!e.context.$implicit.enabled||null,n.selectedValue===e.context.$implicit.value,n._cellWidth,n._cellPadding,n._cellPadding),t(e,3,0,n.selectedValue===e.context.$implicit.value,n.todayValue===e.context.$implicit.value),t(e,4,0,e.context.$implicit.displayValue)}))}function sw(t){return fi(0,[(t()(),Qr(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,nw)),ps(2,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Zr(16777216,null,null,1,null,lw)),ps(4,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,0===e.context.index&&e.component._firstRowOffset),t(e,4,0,e.context.$implicit)}),null)}function rw(t){return fi(2,[(t()(),Zr(16777216,null,null,1,null,ew)),ps(1,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Zr(16777216,null,null,1,null,sw)),ps(3,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,1,0,n._firstRowOffset<n.labelMinRequiredCells),t(e,3,0,n.rows)}),null)}var iw=el({encapsulation:2,styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(1, 0.8)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms linear"},options:null}],options:{}},{type:7,name:"fadeInCalendar",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null}],options:{}}]}});function ow(t){return fi(2,[ni(671088640,1,{_calendar:0}),(t()(),Qr(1,0,null,null,4,"mat-calendar",[["cdkTrapFocus",""],["class","mat-calendar"]],[[8,"id",0],[24,"@fadeInCalendar",0]],[[null,"selectedChange"],[null,"yearSelected"],[null,"monthSelected"],[null,"_userSelection"]],(function(t,e,n){var l=!0,s=t.component;return"selectedChange"===e&&(l=!1!==s.datepicker.select(n)&&l),"yearSelected"===e&&(l=!1!==s.datepicker._selectYear(n)&&l),"monthSelected"===e&&(l=!1!==s.datepicker._selectMonth(n)&&l),"_userSelection"===e&&(l=!1!==s.datepicker.close()&&l),l}),JC,GC)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(3,278528,null,0,ka,[xa],{ngClass:[0,"ngClass"]},null),ps(4,1458176,null,0,R_,[an,O_,za],{enabled:[0,"enabled"]},null),ps(5,10141696,[[1,4]],0,Vy,[Ty,[2,Z_],[2,Q_],An],{headerComponent:[0,"headerComponent"],startAt:[1,"startAt"],startView:[2,"startView"],selected:[3,"selected"],minDate:[4,"minDate"],maxDate:[5,"maxDate"],dateFilter:[6,"dateFilter"],dateClass:[7,"dateClass"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"})],(function(t,e){var n=e.component;t(e,3,0,n.datepicker.panelClass),t(e,4,0,""),t(e,5,0,n.datepicker.calendarHeaderComponent,n.datepicker.startAt,n.datepicker.startView,n.datepicker._selected,n.datepicker._minDate,n.datepicker._maxDate,n.datepicker._dateFilter,n.datepicker.dateClass)}),(function(t,e){t(e,1,0,e.component.datepicker.id,"enter")}))}function aw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"mat-datepicker-content",[["class","mat-datepicker-content"]],[[40,"@transformPanel",0],[2,"mat-datepicker-content-touch",null]],null,null,ow,iw)),ps(1,4243456,null,0,By,[an],null,null)],null,(function(t,e){t(e,0,0,"enter",ts(e,1).datepicker.touchUi)}))}var uw=zl("mat-datepicker-content",By,aw,{color:"color"},{},[]),cw=el({encapsulation:2,styles:[],data:{}});function hw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"th",[["scope","col"]],[[1,"aria-label",0]],null,null,null,null)),(t()(),pi(1,null,["",""]))],null,(function(t,e){t(e,0,0,e.context.$implicit.long),t(e,1,0,e.context.$implicit.narrow)}))}function dw(t){return fi(2,[ni(671088640,1,{_matCalendarBody:0}),(t()(),Qr(1,0,null,null,8,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,5,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Qr(3,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,hw)),ps(5,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),(t()(),Qr(6,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Qr(7,0,null,null,0,"th",[["aria-hidden","true"],["class","mat-calendar-table-header-divider"],["colspan","7"]],null,null,null,null,null)),(t()(),Qr(8,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var l=!0,s=t.component;return"selectedValueChange"===e&&(l=!1!==s._dateSelected(n)&&l),"keydown"===e&&(l=!1!==s._handleCalendarBodyKeydown(n)&&l),l}),rw,tw)),ps(9,573440,[[1,4]],0,ky,[an,dr],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],activeCell:[5,"activeCell"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,5,0,n._weekdays),t(e,9,0,n._monthLabel,n._weeks,n._todayDate,n._selectedDate,3,n._dateAdapter.getDate(n.activeDate)-1)}),null)}var pw=el({encapsulation:2,styles:[],data:{}});function mw(t){return fi(2,[ni(671088640,1,{_matCalendarBody:0}),(t()(),Qr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Qr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Qr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Qr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var l=!0,s=t.component;return"selectedValueChange"===e&&(l=!1!==s._monthSelected(n)&&l),"keydown"===e&&(l=!1!==s._handleCalendarBodyKeydown(n)&&l),l}),rw,tw)),ps(6,573440,[[1,4]],0,ky,[an,dr],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],numCols:[5,"numCols"],activeCell:[6,"activeCell"],cellAspectRatio:[7,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._yearLabel,n._months,n._todayMonth,n._selectedMonth,2,4,n._dateAdapter.getMonth(n.activeDate),4/7)}),null)}var gw=el({encapsulation:2,styles:[],data:{}});function fw(t){return fi(2,[ni(671088640,1,{_matCalendarBody:0}),(t()(),Qr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Qr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Qr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Qr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var l=!0,s=t.component;return"selectedValueChange"===e&&(l=!1!==s._yearSelected(n)&&l),"keydown"===e&&(l=!1!==s._handleCalendarBodyKeydown(n)&&l),l}),rw,tw)),ps(6,573440,[[1,4]],0,ky,[an,dr],{rows:[0,"rows"],todayValue:[1,"todayValue"],selectedValue:[2,"selectedValue"],numCols:[3,"numCols"],activeCell:[4,"activeCell"],cellAspectRatio:[5,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._years,n._todayYear,n._selectedYear,4,n._getActiveCell(),4/7)}),null)}var _w=el({encapsulation:0,styles:[["@media (max-width:768px){.hide-on-small[_ngcontent-%COMP%]{display:none}}@media (min-width:768px){.hide-on-large[_ngcontent-%COMP%]{display:none}}td[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:350px}"]],data:{}});function yw(t){return fi(0,[(t()(),Qr(0,0,null,null,26,"tr",[],null,[[null,"dblclick"]],(function(t,e,n){var l=!0;return"dblclick"===e&&(l=!1!==t.component.doubleClick(n)&&l),l}),null,null)),(t()(),Qr(1,0,null,null,4,"td",[["scope","col"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,3,"a",[["routerLink","/edit"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==ts(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),ps(3,671744,null,0,Rm,[Im,bp,Io],{queryParams:[0,"queryParams"],routerLink:[1,"routerLink"]},null),hi(4,{id:0}),(t()(),pi(5,null,[" ",""])),(t()(),Qr(6,0,null,null,6,"td",[["class","hide-on-large"],["scope","col"]],null,null,null,null,null)),(t()(),Qr(7,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),pi(8,null,["",", ",", ",", ",", ",""])),ms(0,$a,[]),ui(10,1),ui(11,2),ui(12,2),(t()(),Qr(13,0,null,null,1,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(14,null,["",""])),(t()(),Qr(15,0,null,null,2,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(16,null,["",""])),ms(0,$a,[]),(t()(),Qr(18,0,null,null,2,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(19,null,["",""])),ui(20,1),(t()(),Qr(21,0,null,null,2,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(22,null,["",""])),ui(23,2),(t()(),Qr(24,0,null,null,2,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(25,null,["",""])),ui(26,2)],(function(t,e){var n=t(e,4,0,e.context.$implicit.ProformaId);t(e,3,0,n,"/edit")}),(function(t,e){t(e,2,0,ts(e,3).target,ts(e,3).href),t(e,5,0,e.context.$implicit.ProformaId);var n=e.context.$implicit.Customer.CustomerName,l=Xn(e,8,1,ts(e,9).transform(e.context.$implicit.Comment,0,20)),s=Xn(e,8,2,t(e,10,0,ts(e.parent,1),e.context.$implicit.ProformaDate)),r=Xn(e,8,3,t(e,11,0,ts(e.parent,2),e.context.$implicit.TotalUsd,"1.2-3")),i=Xn(e,8,4,t(e,12,0,ts(e.parent,2),e.context.$implicit.Paid,"1.2-3"));t(e,8,0,n,l,s,r,i),t(e,14,0,e.context.$implicit.Customer.CustomerName),t(e,16,0,Xn(e,16,0,ts(e,17).transform(e.context.$implicit.Comment,0,20)));var o=Xn(e,19,0,t(e,20,0,ts(e.parent,1),e.context.$implicit.ProformaDate));t(e,19,0,o);var a=Xn(e,22,0,t(e,23,0,ts(e.parent,2),e.context.$implicit.TotalUsd,"1.2-3"));t(e,22,0,a);var u=Xn(e,25,0,t(e,26,0,ts(e.parent,2),e.context.$implicit.Paid,"1.2-3"));t(e,25,0,u)}))}function vw(t){return fi(0,[ms(0,To,[]),ms(0,Ua,[Ks]),ms(0,ja,[Ks]),(t()(),Qr(3,0,null,null,32,"div",[["class"," box-header with-border"]],null,null,null,null,null)),(t()(),Qr(4,0,null,null,5,"input",[["class","form-control col-md-3 ml-2 mb-3"],["placeholder","search text goes here"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,5)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,5).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,5)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,5)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.searchText=n)&&l),l}),null,null)),ps(5,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(7,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(9,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(10,0,null,null,3,"a",[["class","btn btn-success btn-md btn-block col-md-1 ml-2 mb-3"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==ts(t,11).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),ps(11,671744,null,0,Rm,[Im,bp,Io],{routerLink:[0,"routerLink"]},null),ci(12,1),(t()(),pi(-1,null,["Add"])),(t()(),Qr(14,0,null,null,20,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(t()(),Qr(15,0,null,null,15,"thead",[["class","thead-dark"]],null,null,null,null,null)),(t()(),Qr(16,0,null,null,14,"tr",[],null,null,null,null,null)),(t()(),Qr(17,0,null,null,1,"th",[["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("InvoiceId")&&l),l}),null,null)),(t()(),pi(-1,null,["#"])),(t()(),Qr(19,0,null,null,1,"th",[["class","hide-on-large"],["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("CustomerName")&&l),l}),null,null)),(t()(),pi(-1,null,["Customer Name"])),(t()(),Qr(21,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("CustomerName")&&l),l}),null,null)),(t()(),pi(-1,null,["Customer Name"])),(t()(),Qr(23,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Comment"])),(t()(),Qr(25,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("ProformaDate")&&l),l}),null,null)),(t()(),pi(-1,null,["Proforma Date"])),(t()(),Qr(27,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("TotalUsd")&&l),l}),null,null)),(t()(),pi(-1,null,["Total USD"])),(t()(),Qr(29,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Sort("Paid")&&l),l}),null,null)),(t()(),pi(-1,null,["Total Payment"])),(t()(),Qr(31,0,null,null,3,"tbody",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,2,null,yw)),ps(33,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),ui(34,2),(t()(),Qr(35,0,null,null,0,"hr",[],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,7,0,n.searchText);var l=t(e,12,0,"../insert");t(e,11,0,l);var s=Xn(e,33,0,t(e,34,0,ts(e,0),n.proformas,n.searchText));t(e,33,0,s)}),(function(t,e){t(e,4,0,ts(e,9).ngClassUntouched,ts(e,9).ngClassTouched,ts(e,9).ngClassPristine,ts(e,9).ngClassDirty,ts(e,9).ngClassValid,ts(e,9).ngClassInvalid,ts(e,9).ngClassPending),t(e,10,0,ts(e,11).target,ts(e,11).href)}))}function bw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-home",[],null,null,null,vw,_w)),ps(1,114688,null,0,Do,[Cg,Im],null,null)],(function(t,e){t(e,1,0)}),null)}var Cw=zl("app-home",Do,bw,{},{},[]),ww=el({encapsulation:0,styles:[[""]],data:{}});function Sw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"li",[["class","list-group-item"],["href","#"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.AddCustomer(t.context.$implicit.CustomerId)&&l),l}),null,null)),(t()(),pi(1,null,[""," "]))],null,(function(t,e){t(e,1,0,e.context.$implicit.CustomerName)}))}function Ew(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"p",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(t()(),pi(-1,null,["*"]))],null,null)}function xw(t){return fi(0,[(t()(),Qr(0,0,null,null,22,"tr",[],null,null,null,null,null)),(t()(),Qr(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),pi(2,null,["",""])),(t()(),Qr(3,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),pi(4,null,["",""])),(t()(),Qr(5,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),Qr(6,0,null,null,6,"input",[["class","form-control"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0;return"input"===e&&(l=!1!==ts(t,7)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,7).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,7)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,7)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,8).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,8).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,8).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(t.context.$implicit.Weight=n)&&l),l}),null,null)),ps(7,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(8,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(10,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(12,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(13,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),Qr(14,0,null,null,6,"input",[["class","form-control"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0;return"input"===e&&(l=!1!==ts(t,15)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,15).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,15)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,15)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,16).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,16).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,16).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(t.context.$implicit.Price=n)&&l),l}),null,null)),ps(15,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(16,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(18,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(20,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Qr(22,0,null,null,0,"input",[["class","btn btn-danger float-xl-right"],["type","button"],["value","X"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.RemoveItem(t.context.$implicit)&&l),l}),null,null))],(function(t,e){t(e,10,0,e.context.$implicit.Weight),t(e,18,0,e.context.$implicit.Price)}),(function(t,e){t(e,2,0,e.context.$implicit.ProformaItemId),t(e,4,0,e.context.$implicit.ProformaItem.Description),t(e,6,0,ts(e,12).ngClassUntouched,ts(e,12).ngClassTouched,ts(e,12).ngClassPristine,ts(e,12).ngClassDirty,ts(e,12).ngClassValid,ts(e,12).ngClassInvalid,ts(e,12).ngClassPending),t(e,14,0,ts(e,20).ngClassUntouched,ts(e,20).ngClassTouched,ts(e,20).ngClassPristine,ts(e,20).ngClassDirty,ts(e,20).ngClassValid,ts(e,20).ngClassInvalid,ts(e,20).ngClassPending)}))}function Tw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"li",[["class","list-group-item"],["href","#"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Add(t.context.$implicit.ProformaItemId)&&l),l}),null,null)),(t()(),pi(1,null,["",""]))],null,(function(t,e){t(e,1,0,e.context.$implicit.Description)}))}function Dw(t){return fi(0,[(t()(),Qr(0,0,null,null,0,"span",[["aria-hidden","true"],["class","spinner-border spinner-border-sm"],["role","status"]],null,null,null,null,null))],null,null)}function kw(t){return fi(0,[(t()(),Qr(0,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Qr(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Qr(2,0,null,null,1,"a",[["target","blank"]],[[8,"href",4]],null,null,null,null)),(t()(),pi(3,null,["",""])),(t()(),Qr(4,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Qr(5,0,null,null,0,"input",[["class","btn btn-danger float-xl-right"],["type","button"],["value","X"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.RemoveFileItem(t.context.$implicit)&&l),l}),null,null))],null,(function(t,e){t(e,2,0,kl(1,"/api/AwsStorage/DownloadFile/",e.context.$implicit.File.FileName,"")),t(e,3,0,e.context.$implicit.File.FileName)}))}function Aw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"p",[["class","bg-success p-3 mb-2"]],null,null,null,null,null)),(t()(),pi(-1,null,["Successfully Saved!"]))],null,null)}function Pw(t){return fi(0,[(t()(),Qr(0,0,null,null,0,"span",[["aria-hidden","true"],["class","spinner-border spinner-border-sm"],["role","status"]],null,null,null,null,null))],null,null)}function Iw(t){return fi(0,[(t()(),Qr(0,0,null,null,0,"div",[["class","modal-backdrop fade show"]],null,null,null,null,null))],null,null)}function Ow(t){return fi(0,[(t()(),Qr(0,0,null,null,15,"div",[["class","modal fade show"],["id","exampleModalCenter"],["role","dialog"],["style","display: block; padding-right: 12px;"],["tabindex","-1"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,14,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(t()(),Qr(2,0,null,null,13,"div",[["class","modal-content"]],null,null,null,null,null)),(t()(),Qr(3,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(t()(),Qr(4,0,null,null,1,"h5",[["class","modal-title"]],null,null,null,null,null)),(t()(),pi(-1,null,["Delete"])),(t()(),Qr(6,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(t()(),Qr(7,0,null,null,1,"span",[["aria-hidden","true"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.CloseModal()&&l),l}),null,null)),(t()(),pi(-1,null,["\xd7"])),(t()(),Qr(9,0,null,null,1,"div",[["class","modal-body"]],null,null,null,null,null)),(t()(),pi(-1,null,[" Are you sure? "])),(t()(),Qr(11,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(t()(),Qr(12,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.CloseModal()&&l),l}),null,null)),(t()(),pi(-1,null,["No"])),(t()(),Qr(14,0,null,null,1,"button",[["class","btn btn-danger"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Delete()&&l),l}),null,null)),(t()(),pi(-1,null,["Yes"]))],null,null)}function Rw(t){return fi(0,[ms(0,To,[]),ms(0,Ua,[Ks]),ms(0,ja,[Ks]),(t()(),Qr(3,0,null,null,387,"div",[["class","container mb-3"]],null,null,null,null,null)),(t()(),Qr(4,0,null,null,4,"div",[["class","row ml-1 mr-1 mt-3 mb-5 text-light "]],null,null,null,null,null)),(t()(),Qr(5,0,null,null,3,"button",[["class","btn bg-secondary  btn-block col-md-3"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==ts(t,6).onClick()&&l),l}),null,null)),ps(6,16384,null,0,Om,[Im,bp,[8,null],pn,an],{routerLink:[0,"routerLink"]},null),ci(7,1),(t()(),pi(-1,null,[" back "])),(t()(),Qr(9,0,null,null,207,"div",[["class","table ml-3"]],null,null,null,null,null)),(t()(),Qr(10,0,null,null,44,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(11,0,null,null,21,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(12,0,null,null,14,"div",[["class","d-group mb-3"]],null,null,null,null,null)),(t()(),Qr(13,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Customer:"])),(t()(),Qr(15,0,null,null,5,"input",[["aria-describedby","inputGroup-sizing-default"],["aria-label","Sizing example input"],["class","form-control col-lg"],["placeholder","Select a customer"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"click"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,16)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,16).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,16)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,16)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.customerSearchText=n)&&l),"keyup"===e&&(l=!1!==s.customerSearchChange()&&l),"click"===e&&(l=!1!==s.customerSearchChange()&&l),l}),null,null)),ps(16,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(18,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(20,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(21,0,null,null,5,"input",[["id","invoice.Customer.CustomerId"],["name","invoice.Customer.CustomerId"],["type","hidden"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0;return"input"===e&&(l=!1!==ts(t,22)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,22).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,22)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,22)._compositionEnd(n.target.value)&&l),l}),null,null)),ps(22,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(24,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},null),gs(2048,null,mc,null,[rh]),ps(26,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(27,0,null,null,5,"ul",[],null,null,null,null,null)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(29,278528,null,0,ka,[xa],{ngClass:[0,"ngClass"]},null),(t()(),Zr(16777216,null,null,2,null,Sw)),ps(31,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),ui(32,2),(t()(),Zr(16777216,null,null,1,null,Ew)),ps(34,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(35,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(36,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Proforma Date:"])),(t()(),Qr(38,0,null,null,6,"input",[["class","form-control"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,39)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,39).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,39)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,39)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ProformaDate=n)&&l),l}),null,null)),ps(39,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(41,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),ui(42,2),gs(2048,null,mc,null,[rh]),ps(44,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(45,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(46,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Valid Until:"])),(t()(),Qr(48,0,null,null,6,"input",[["class","form-control"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,49)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,49).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,49)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,49)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ValidUntil=n)&&l),l}),null,null)),ps(49,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(51,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),ui(52,2),gs(2048,null,mc,null,[rh]),ps(54,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(55,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(56,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(57,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Proforma number:"])),(t()(),Qr(59,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,60)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,60).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,60)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,60)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ProformaNumber=n)&&l),l}),null,null)),ps(60,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(62,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(64,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(65,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(66,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(67,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Buyer:"])),(t()(),Qr(69,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,70)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,70).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,70)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,70)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Buyer=n)&&l),l}),null,null)),ps(70,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(72,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(74,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(75,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(76,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Seller:"])),(t()(),Qr(78,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,79)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,79).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,79)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,79)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Seller=n)&&l),l}),null,null)),ps(79,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(81,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(83,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(84,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(85,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(86,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Consignee:"])),(t()(),Qr(88,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,89)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,89).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,89)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,89)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Consignee=n)&&l),l}),null,null)),ps(89,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(91,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(93,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(94,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(95,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Beneficiary:"])),(t()(),Qr(97,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,98)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,98).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,98)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,98)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfBeneficiary=n)&&l),l}),null,null)),ps(98,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(100,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(102,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(103,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(104,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(105,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Destination:"])),(t()(),Qr(107,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,108)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,108).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,108)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,108)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfDestination=n)&&l),l}),null,null)),ps(108,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(110,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(112,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(113,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(114,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Origin:"])),(t()(),Qr(116,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,117)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,117).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,117)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,117)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfOrigin=n)&&l),l}),null,null)),ps(117,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(119,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(121,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(122,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(123,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(124,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["HsCode:"])),(t()(),Qr(126,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,127)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,127).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,127)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,127)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.HsCode=n)&&l),l}),null,null)),ps(127,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(129,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(131,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(132,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(133,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Package Description:"])),(t()(),Qr(135,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,136)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,136).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,136)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,136)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.PackageDescription=n)&&l),l}),null,null)),ps(136,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(138,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(140,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(141,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(142,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(143,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Freight Forwarder:"])),(t()(),Qr(145,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,146)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,146).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,146)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,146)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.FreightForwarder=n)&&l),l}),null,null)),ps(146,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(148,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(150,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(151,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(152,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Partial Shipment:"])),(t()(),Qr(154,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,155)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,155).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,155)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,155)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.PartialShipment=n)&&l),l}),null,null)),ps(155,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(157,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(159,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(160,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(161,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(162,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Relevant Location:"])),(t()(),Qr(164,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,165)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,165).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,165)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,165)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.RelevantLocation=n)&&l),l}),null,null)),ps(165,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(167,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(169,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(170,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(171,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Size:"])),(t()(),Qr(173,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,174)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,174).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,174)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,174)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Size=n)&&l),l}),null,null)),ps(174,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(176,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(178,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(179,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(180,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(181,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Port:"])),(t()(),Qr(183,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,184)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,184).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,184)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,184)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Port=n)&&l),l}),null,null)),ps(184,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(186,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(188,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(189,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(190,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Terms Of Delivery:"])),(t()(),Qr(192,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,193)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,193).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,193)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,193)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.TermsOfDelivery=n)&&l),l}),null,null)),ps(193,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(195,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(197,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(198,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(199,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(200,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Terms Of Payment:"])),(t()(),Qr(202,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,203)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,203).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,203)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,203)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.TermsOfPayment=n)&&l),l}),null,null)),ps(203,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(205,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(207,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(208,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(209,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Bank accounts:"])),(t()(),Qr(211,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,212)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,212).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,212)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,212)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.BankAccounts=n)&&l),l}),null,null)),ps(212,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(214,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(216,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(217,0,null,null,32,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(t()(),Qr(218,0,null,null,10,"thead",[["class","thead-dark"]],null,null,null,null,null)),(t()(),Qr(219,0,null,null,9,"tr",[],null,null,null,null,null)),(t()(),Qr(220,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["#"])),(t()(),Qr(222,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Description"])),(t()(),Qr(224,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Weight"])),(t()(),Qr(226,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Price"])),(t()(),Qr(228,0,null,null,0,"th",[],null,null,null,null,null)),(t()(),Qr(229,0,null,null,20,"tbody",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,xw)),ps(231,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),(t()(),Qr(232,0,null,null,17,"tr",[],null,null,null,null,null)),(t()(),Qr(233,0,null,null,16,"td",[["colspan","9"]],null,null,null,null,null)),(t()(),Qr(234,0,null,null,9,"div",[["class","input-group mb-3"]],null,null,null,null,null)),(t()(),Qr(235,0,null,null,5,"input",[["aria-describedby","inputGroup-sizing-default"],["aria-label","Sizing example input"],["class","form-control col-lg"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,236)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,236).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,236)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,236)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.searchText=n)&&l),"keyup"===e&&(l=!1!==s.searchChange()&&l),l}),null,null)),ps(236,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(238,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(240,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(241,0,null,null,2,"div",[["class","input-group-prepend"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.AddNewItem()&&l),l}),null,null)),(t()(),Qr(242,0,null,null,1,"span",[["class","btn-success input-group-text"],["id","inputGroup-sizing-default"]],null,null,null,null,null)),(t()(),pi(-1,null,["+"])),(t()(),Qr(244,0,null,null,5,"ul",[],null,null,null,null,null)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(246,278528,null,0,ka,[xa],{ngClass:[0,"ngClass"]},null),(t()(),Zr(16777216,null,null,2,null,Tw)),ps(248,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),ui(249,2),(t()(),Qr(250,0,null,null,12,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(t,e,n){var l=!0,s=t.component;return"submit"===e&&(l=!1!==ts(t,252).onSubmit(n)&&l),"reset"===e&&(l=!1!==ts(t,252).onReset()&&l),"ngSubmit"===e&&(l=!1!==s.OnUploadFile()&&l),l}),null,null)),ps(251,16384,null,0,ih,[],null,null),ps(252,540672,null,0,ah,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),gs(2048,null,dc,null,[ah]),ps(254,16384,null,0,_c,[[4,dc]],null,null),(t()(),Qr(255,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Qr(256,0,null,null,1,"label",[["for","fatura"]],null,null,null,null,null)),(t()(),pi(-1,null,["Fatura"])),(t()(),Qr(258,0,[["fileInput",1]],null,0,"input",[["id","fatura"],["type","file"]],null,[[null,"change"]],(function(t,e,n){var l=!0;return"change"===e&&(l=!1!==t.component.onFileChange(n)&&l),l}),null,null)),(t()(),Qr(259,0,null,null,3,"button",[["class","btn btn-success"],["type","submit"]],null,null,null,null,null)),(t()(),pi(-1,null,["Upload "])),(t()(),Zr(16777216,null,null,1,null,Dw)),ps(262,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(263,0,null,null,8,"table",[["class","table table-borderless"]],null,null,null,null,null)),(t()(),Qr(264,0,null,null,4,"thead",[],null,null,null,null,null)),(t()(),Qr(265,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Qr(266,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),pi(-1,null,["File name"])),(t()(),Qr(268,0,null,null,0,"th",[],null,null,null,null,null)),(t()(),Qr(269,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,kw)),ps(271,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),(t()(),Qr(272,0,null,null,101,"div",[],null,null,null,null,null)),(t()(),Qr(273,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["KDV %:"])),(t()(),Qr(275,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.KDV"],["placeholder","KDV"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,276)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,276).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,276)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,276)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,277).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,277).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,277).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Kdv=n)&&l),l}),null,null)),ps(276,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(277,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(279,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(281,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(282,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Discount:"])),(t()(),Qr(284,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.Discount"],["placeholder","Discount"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,285)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,285).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,285)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,285)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,286).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,286).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,286).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Discount=n)&&l),l}),null,null)),ps(285,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(286,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(288,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(290,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(291,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Exchange Rate:"])),(t()(),Qr(293,0,null,null,6,"input",[["class","ml-1 form-control"],["placeholder","Exchange Rate"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,294)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,294).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,294)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,294)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,295).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,295).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,295).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.ExchangeRate=n)&&l),l}),null,null)),ps(294,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(295,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(297,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(299,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(300,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Qr(301,0,null,null,72,"div",[["class","table"]],null,null,null,null,null)),(t()(),Qr(302,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(303,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(304,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["KDV:"])),(t()(),Qr(306,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(307,null,["",""])),ui(308,2),(t()(),Qr(309,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(310,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(311,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total:"])),(t()(),Qr(313,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(314,null,["",""])),ui(315,2),(t()(),Qr(316,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(317,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(318,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total Lira:"])),(t()(),Qr(320,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(321,null,["",""])),ui(322,2),(t()(),Qr(323,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Qr(324,0,null,null,1,"label",[["for","comment"]],null,null,null,null,null)),(t()(),pi(-1,null,["Comment:"])),(t()(),Qr(326,0,null,null,5,"textarea",[["class","form-control"],["id","proforma.Comment"],["name","proforma.Comment"],["rows","5"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,327)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,327).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,327)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,327)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Comment=n)&&l),l}),null,null)),ps(327,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(329,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(331,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(332,0,null,null,30,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(333,0,null,null,9,"div",[["class","form-check form-check-inline ml-4"]],null,null,null,null,null)),(t()(),Qr(334,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio1"],["name","inlineRadioOptions"],["type","radio"],["value","Usd"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,335)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,335).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,335)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,335)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,336).onChange()&&l),"blur"===e&&(l=!1!==ts(t,336).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(335,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(336,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(338,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(340,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(341,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio1"]],null,null,null,null,null)),(t()(),pi(-1,null,["Usd"])),(t()(),Qr(343,0,null,null,9,"div",[["class","form-check form-check-inline ml-4"]],null,null,null,null,null)),(t()(),Qr(344,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio1"],["name","inlineRadioOptions"],["type","radio"],["value","Euro"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,345)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,345).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,345)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,345)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,346).onChange()&&l),"blur"===e&&(l=!1!==ts(t,346).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(345,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(346,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(348,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(350,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(351,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio1"]],null,null,null,null,null)),(t()(),pi(-1,null,["Euro"])),(t()(),Qr(353,0,null,null,9,"div",[["class","form-check form-check-inline"]],null,null,null,null,null)),(t()(),Qr(354,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio2"],["name","inlineRadioOptions"],["type","radio"],["value","Lira"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,355)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,355).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,355)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,355)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,356).onChange()&&l),"blur"===e&&(l=!1!==ts(t,356).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(355,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(356,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(358,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(360,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(361,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio2"]],null,null,null,null,null)),(t()(),pi(-1,null,["Lira"])),(t()(),Qr(363,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(364,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(365,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total payment:"])),(t()(),Qr(367,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.Paid"],["placeholder","Total payment"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,368)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,368).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,368)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,368)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,369).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,369).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,369).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Paid=n)&&l),l}),null,null)),ps(368,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(369,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(371,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(373,16384,null,0,fc,[[4,mc]],null,null),(t()(),Zr(16777216,null,null,1,null,Aw)),ps(375,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(376,0,null,null,14,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(377,0,null,null,2,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(378,0,null,null,1,"button",[["class","btn btn-secondary btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Cancel()&&l),l}),null,null)),(t()(),pi(-1,null,[" Cancel "])),(t()(),Qr(380,0,null,null,2,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(381,0,null,null,1,"button",[["class","btn btn-danger btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.ConfirmDelete()&&l),l}),null,null)),(t()(),pi(-1,null,[" Delete "])),(t()(),Qr(383,0,null,null,2,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(384,0,null,null,1,"a",[["class","btn btn-primary btn-lg btn-block"],["download",""]],[[8,"href",4]],null,null,null,null)),(t()(),pi(-1,null,[" Download PDF "])),(t()(),Qr(386,0,null,null,4,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(387,0,null,null,3,"button",[["class","btn btn-success btn-lg btn-block"],["type","button"],["value","Save"]],null,[[null,"click"]],(function(t,e,n){var l=!0,s=t.component;return"click"===e&&(l=!1!==s.Save(s.proforma)&&l),l}),null,null)),(t()(),pi(-1,null,[" Save "])),(t()(),Zr(16777216,null,null,1,null,Pw)),ps(390,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Zr(16777216,null,null,1,null,Iw)),ps(392,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Zr(16777216,null,null,1,null,Ow)),ps(394,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component,l=t(e,7,0,"../home");t(e,6,0,l),t(e,18,0,n.customerSearchText),t(e,24,0,"invoice.Customer.CustomerId",n.proforma.Customer.CustomerId),t(e,29,0,n.customerAutocomplete);var s=Xn(e,31,0,t(e,32,0,ts(e,0),n.customers,n.customerSearchText));t(e,31,0,s),t(e,34,0,n.errorCustomer);var r=Xn(e,41,0,t(e,42,0,ts(e,1),n.proforma.ProformaDate,"yyyy-MM-dd"));t(e,41,0,r);var i=Xn(e,51,0,t(e,52,0,ts(e,1),n.proforma.ValidUntil,"yyyy-MM-dd"));t(e,51,0,i),t(e,62,0,n.proforma.ProformaNumber),t(e,72,0,n.proforma.Buyer),t(e,81,0,n.proforma.Seller),t(e,91,0,n.proforma.Consignee),t(e,100,0,n.proforma.CountryOfBeneficiary),t(e,110,0,n.proforma.CountryOfDestination),t(e,119,0,n.proforma.CountryOfOrigin),t(e,129,0,n.proforma.HsCode),t(e,138,0,n.proforma.PackageDescription),t(e,148,0,n.proforma.FreightForwarder),t(e,157,0,n.proforma.PartialShipment),t(e,167,0,n.proforma.RelevantLocation),t(e,176,0,n.proforma.Size),t(e,186,0,n.proforma.Port),t(e,195,0,n.proforma.TermsOfDelivery),t(e,205,0,n.proforma.TermsOfPayment),t(e,214,0,n.proforma.BankAccounts),t(e,231,0,n.proformaProformaItems),t(e,238,0,n.searchText),t(e,246,0,n.autocomplete);var o=Xn(e,248,0,t(e,249,0,ts(e,0),n.filteredProformas,n.searchText));t(e,248,0,o),t(e,252,0,n.form),t(e,262,0,n.uploading),t(e,271,0,n.files),t(e,279,0,"proforma.KDV",n.proforma.Kdv),t(e,288,0,"proforma.Discount",n.proforma.Discount),t(e,297,0,n.ExchangeRate),t(e,329,0,"proforma.Comment",n.proforma.Comment),t(e,336,0,"inlineRadioOptions","Usd"),t(e,338,0,"inlineRadioOptions",n.proforma.Currency),t(e,346,0,"inlineRadioOptions","Euro"),t(e,348,0,"inlineRadioOptions",n.proforma.Currency),t(e,356,0,"inlineRadioOptions","Lira"),t(e,358,0,"inlineRadioOptions",n.proforma.Currency),t(e,371,0,"proforma.Paid",n.proforma.Paid),t(e,375,0,n.showSuccess),t(e,390,0,n.saving),t(e,392,0,n.deletemodal),t(e,394,0,n.deletemodal)}),(function(t,e){var n=e.component;t(e,15,0,ts(e,20).ngClassUntouched,ts(e,20).ngClassTouched,ts(e,20).ngClassPristine,ts(e,20).ngClassDirty,ts(e,20).ngClassValid,ts(e,20).ngClassInvalid,ts(e,20).ngClassPending),t(e,21,0,ts(e,26).ngClassUntouched,ts(e,26).ngClassTouched,ts(e,26).ngClassPristine,ts(e,26).ngClassDirty,ts(e,26).ngClassValid,ts(e,26).ngClassInvalid,ts(e,26).ngClassPending),t(e,38,0,ts(e,44).ngClassUntouched,ts(e,44).ngClassTouched,ts(e,44).ngClassPristine,ts(e,44).ngClassDirty,ts(e,44).ngClassValid,ts(e,44).ngClassInvalid,ts(e,44).ngClassPending),t(e,48,0,ts(e,54).ngClassUntouched,ts(e,54).ngClassTouched,ts(e,54).ngClassPristine,ts(e,54).ngClassDirty,ts(e,54).ngClassValid,ts(e,54).ngClassInvalid,ts(e,54).ngClassPending),t(e,59,0,ts(e,64).ngClassUntouched,ts(e,64).ngClassTouched,ts(e,64).ngClassPristine,ts(e,64).ngClassDirty,ts(e,64).ngClassValid,ts(e,64).ngClassInvalid,ts(e,64).ngClassPending),t(e,69,0,ts(e,74).ngClassUntouched,ts(e,74).ngClassTouched,ts(e,74).ngClassPristine,ts(e,74).ngClassDirty,ts(e,74).ngClassValid,ts(e,74).ngClassInvalid,ts(e,74).ngClassPending),t(e,78,0,ts(e,83).ngClassUntouched,ts(e,83).ngClassTouched,ts(e,83).ngClassPristine,ts(e,83).ngClassDirty,ts(e,83).ngClassValid,ts(e,83).ngClassInvalid,ts(e,83).ngClassPending),t(e,88,0,ts(e,93).ngClassUntouched,ts(e,93).ngClassTouched,ts(e,93).ngClassPristine,ts(e,93).ngClassDirty,ts(e,93).ngClassValid,ts(e,93).ngClassInvalid,ts(e,93).ngClassPending),t(e,97,0,ts(e,102).ngClassUntouched,ts(e,102).ngClassTouched,ts(e,102).ngClassPristine,ts(e,102).ngClassDirty,ts(e,102).ngClassValid,ts(e,102).ngClassInvalid,ts(e,102).ngClassPending),t(e,107,0,ts(e,112).ngClassUntouched,ts(e,112).ngClassTouched,ts(e,112).ngClassPristine,ts(e,112).ngClassDirty,ts(e,112).ngClassValid,ts(e,112).ngClassInvalid,ts(e,112).ngClassPending),t(e,116,0,ts(e,121).ngClassUntouched,ts(e,121).ngClassTouched,ts(e,121).ngClassPristine,ts(e,121).ngClassDirty,ts(e,121).ngClassValid,ts(e,121).ngClassInvalid,ts(e,121).ngClassPending),t(e,126,0,ts(e,131).ngClassUntouched,ts(e,131).ngClassTouched,ts(e,131).ngClassPristine,ts(e,131).ngClassDirty,ts(e,131).ngClassValid,ts(e,131).ngClassInvalid,ts(e,131).ngClassPending),t(e,135,0,ts(e,140).ngClassUntouched,ts(e,140).ngClassTouched,ts(e,140).ngClassPristine,ts(e,140).ngClassDirty,ts(e,140).ngClassValid,ts(e,140).ngClassInvalid,ts(e,140).ngClassPending),t(e,145,0,ts(e,150).ngClassUntouched,ts(e,150).ngClassTouched,ts(e,150).ngClassPristine,ts(e,150).ngClassDirty,ts(e,150).ngClassValid,ts(e,150).ngClassInvalid,ts(e,150).ngClassPending),t(e,154,0,ts(e,159).ngClassUntouched,ts(e,159).ngClassTouched,ts(e,159).ngClassPristine,ts(e,159).ngClassDirty,ts(e,159).ngClassValid,ts(e,159).ngClassInvalid,ts(e,159).ngClassPending),t(e,164,0,ts(e,169).ngClassUntouched,ts(e,169).ngClassTouched,ts(e,169).ngClassPristine,ts(e,169).ngClassDirty,ts(e,169).ngClassValid,ts(e,169).ngClassInvalid,ts(e,169).ngClassPending),t(e,173,0,ts(e,178).ngClassUntouched,ts(e,178).ngClassTouched,ts(e,178).ngClassPristine,ts(e,178).ngClassDirty,ts(e,178).ngClassValid,ts(e,178).ngClassInvalid,ts(e,178).ngClassPending),t(e,183,0,ts(e,188).ngClassUntouched,ts(e,188).ngClassTouched,ts(e,188).ngClassPristine,ts(e,188).ngClassDirty,ts(e,188).ngClassValid,ts(e,188).ngClassInvalid,ts(e,188).ngClassPending),t(e,192,0,ts(e,197).ngClassUntouched,ts(e,197).ngClassTouched,ts(e,197).ngClassPristine,ts(e,197).ngClassDirty,ts(e,197).ngClassValid,ts(e,197).ngClassInvalid,ts(e,197).ngClassPending),t(e,202,0,ts(e,207).ngClassUntouched,ts(e,207).ngClassTouched,ts(e,207).ngClassPristine,ts(e,207).ngClassDirty,ts(e,207).ngClassValid,ts(e,207).ngClassInvalid,ts(e,207).ngClassPending),t(e,211,0,ts(e,216).ngClassUntouched,ts(e,216).ngClassTouched,ts(e,216).ngClassPristine,ts(e,216).ngClassDirty,ts(e,216).ngClassValid,ts(e,216).ngClassInvalid,ts(e,216).ngClassPending),t(e,235,0,ts(e,240).ngClassUntouched,ts(e,240).ngClassTouched,ts(e,240).ngClassPristine,ts(e,240).ngClassDirty,ts(e,240).ngClassValid,ts(e,240).ngClassInvalid,ts(e,240).ngClassPending),t(e,250,0,ts(e,254).ngClassUntouched,ts(e,254).ngClassTouched,ts(e,254).ngClassPristine,ts(e,254).ngClassDirty,ts(e,254).ngClassValid,ts(e,254).ngClassInvalid,ts(e,254).ngClassPending),t(e,275,0,ts(e,281).ngClassUntouched,ts(e,281).ngClassTouched,ts(e,281).ngClassPristine,ts(e,281).ngClassDirty,ts(e,281).ngClassValid,ts(e,281).ngClassInvalid,ts(e,281).ngClassPending),t(e,284,0,ts(e,290).ngClassUntouched,ts(e,290).ngClassTouched,ts(e,290).ngClassPristine,ts(e,290).ngClassDirty,ts(e,290).ngClassValid,ts(e,290).ngClassInvalid,ts(e,290).ngClassPending),t(e,293,0,ts(e,299).ngClassUntouched,ts(e,299).ngClassTouched,ts(e,299).ngClassPristine,ts(e,299).ngClassDirty,ts(e,299).ngClassValid,ts(e,299).ngClassInvalid,ts(e,299).ngClassPending);var l=Xn(e,307,0,t(e,308,0,ts(e,2),n.Tax,"1.2-3"));t(e,307,0,l);var s=Xn(e,314,0,t(e,315,0,ts(e,2),n.TotalUsd,"1.2-3"));t(e,314,0,s);var r=Xn(e,321,0,t(e,322,0,ts(e,2),n.TotalLira,"1.2-3"));t(e,321,0,r),t(e,326,0,ts(e,331).ngClassUntouched,ts(e,331).ngClassTouched,ts(e,331).ngClassPristine,ts(e,331).ngClassDirty,ts(e,331).ngClassValid,ts(e,331).ngClassInvalid,ts(e,331).ngClassPending),t(e,334,0,ts(e,340).ngClassUntouched,ts(e,340).ngClassTouched,ts(e,340).ngClassPristine,ts(e,340).ngClassDirty,ts(e,340).ngClassValid,ts(e,340).ngClassInvalid,ts(e,340).ngClassPending),t(e,344,0,ts(e,350).ngClassUntouched,ts(e,350).ngClassTouched,ts(e,350).ngClassPristine,ts(e,350).ngClassDirty,ts(e,350).ngClassValid,ts(e,350).ngClassInvalid,ts(e,350).ngClassPending),t(e,354,0,ts(e,360).ngClassUntouched,ts(e,360).ngClassTouched,ts(e,360).ngClassPristine,ts(e,360).ngClassDirty,ts(e,360).ngClassValid,ts(e,360).ngClassInvalid,ts(e,360).ngClassPending),t(e,367,0,ts(e,373).ngClassUntouched,ts(e,373).ngClassTouched,ts(e,373).ngClassPristine,ts(e,373).ngClassDirty,ts(e,373).ngClassValid,ts(e,373).ngClassInvalid,ts(e,373).ngClassPending),t(e,384,0,kl(1,"",n.ProformaReportUrl,""))}))}function Mw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-edit",[],null,null,null,Rw,ww)),ps(1,114688,null,0,Sh,[Cg,bp,Im,ch],null,null)],(function(t,e){t(e,1,0)}),null)}var Nw=zl("app-edit",Sh,Mw,{},{},[]),Fw=el({encapsulation:0,styles:[[""]],data:{}});function Vw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"li",[["class","list-group-item"],["href","#"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.AddCustomer(t.context.$implicit.CustomerId)&&l),l}),null,null)),(t()(),pi(1,null,[""," "]))],null,(function(t,e){t(e,1,0,e.context.$implicit.CustomerName)}))}function Lw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"p",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(t()(),pi(-1,null,["*"]))],null,null)}function Uw(t){return fi(0,[(t()(),Qr(0,0,null,null,22,"tr",[],null,null,null,null,null)),(t()(),Qr(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),pi(2,null,["",""])),(t()(),Qr(3,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),pi(4,null,["",""])),(t()(),Qr(5,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),Qr(6,0,null,null,6,"input",[["class","form-control"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0;return"input"===e&&(l=!1!==ts(t,7)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,7).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,7)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,7)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,8).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,8).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,8).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(t.context.$implicit.Weight=n)&&l),l}),null,null)),ps(7,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(8,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(10,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(12,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(13,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),Qr(14,0,null,null,6,"input",[["class","form-control"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0;return"input"===e&&(l=!1!==ts(t,15)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,15).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,15)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,15)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,16).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,16).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,16).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(t.context.$implicit.Price=n)&&l),l}),null,null)),ps(15,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(16,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(18,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(20,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Qr(22,0,null,null,0,"input",[["class","btn btn-danger float-xl-right"],["type","button"],["value","X"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.RemoveItem(t.context.$implicit)&&l),l}),null,null))],(function(t,e){t(e,10,0,e.context.$implicit.Weight),t(e,18,0,e.context.$implicit.Price)}),(function(t,e){t(e,2,0,e.context.$implicit.ProformaItemId),t(e,4,0,e.context.$implicit.ProformaItem.Description),t(e,6,0,ts(e,12).ngClassUntouched,ts(e,12).ngClassTouched,ts(e,12).ngClassPristine,ts(e,12).ngClassDirty,ts(e,12).ngClassValid,ts(e,12).ngClassInvalid,ts(e,12).ngClassPending),t(e,14,0,ts(e,20).ngClassUntouched,ts(e,20).ngClassTouched,ts(e,20).ngClassPristine,ts(e,20).ngClassDirty,ts(e,20).ngClassValid,ts(e,20).ngClassInvalid,ts(e,20).ngClassPending)}))}function jw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"li",[["class","list-group-item"],["href","#"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Add(t.context.$implicit.ProformaItemId)&&l),l}),null,null)),(t()(),pi(1,null,["",""]))],null,(function(t,e){t(e,1,0,e.context.$implicit.Description)}))}function $w(t){return fi(0,[(t()(),Qr(0,0,null,null,0,"span",[["aria-hidden","true"],["class","spinner-border spinner-border-sm"],["role","status"]],null,null,null,null,null))],null,null)}function Bw(t){return fi(0,[(t()(),Qr(0,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Qr(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Qr(2,0,null,null,1,"a",[["target","blank"]],[[8,"href",4]],null,null,null,null)),(t()(),pi(3,null,["",""])),(t()(),Qr(4,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Qr(5,0,null,null,0,"input",[["class","btn btn-danger float-xl-right"],["type","button"],["value","X"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.RemoveFileItem(t.context.$implicit)&&l),l}),null,null))],null,(function(t,e){t(e,2,0,kl(1,"/api/AwsStorage/DownloadFile/",e.context.$implicit.File.FileName,"")),t(e,3,0,e.context.$implicit.File.FileName)}))}function zw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"p",[["class","bg-success p-3 mb-2"]],null,null,null,null,null)),(t()(),pi(-1,null,["Successfully Saved!"]))],null,null)}function Hw(t){return fi(0,[(t()(),Qr(0,0,null,null,0,"span",[["aria-hidden","true"],["class","spinner-border spinner-border-sm"],["role","status"]],null,null,null,null,null))],null,null)}function qw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"p",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(t()(),pi(-1,null,["Fill up the customer field before saving"]))],null,null)}function Ww(t){return fi(0,[ms(0,To,[]),ms(0,Ua,[Ks]),ms(0,ja,[Ks]),(t()(),Qr(3,0,null,null,380,"div",[["class","container mb-3"]],null,null,null,null,null)),(t()(),Qr(4,0,null,null,4,"div",[["class","row ml-1 mr-1 mt-3 mb-5 text-light "]],null,null,null,null,null)),(t()(),Qr(5,0,null,null,3,"button",[["class","btn bg-secondary  btn-block col-md-3"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==ts(t,6).onClick()&&l),l}),null,null)),ps(6,16384,null,0,Om,[Im,bp,[8,null],pn,an],{routerLink:[0,"routerLink"]},null),ci(7,1),(t()(),pi(-1,null,[" back "])),(t()(),Qr(9,0,null,null,201,"div",[["class","table ml-3"]],null,null,null,null,null)),(t()(),Qr(10,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(11,0,null,null,15,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(12,0,null,null,8,"div",[["class","d-group mb-3"]],null,null,null,null,null)),(t()(),Qr(13,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Customer:"])),(t()(),Qr(15,0,null,null,5,"input",[["aria-describedby","inputGroup-sizing-default"],["aria-label","Sizing example input"],["class","form-control col-lg"],["placeholder","Select a customer"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"click"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,16)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,16).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,16)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,16)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.customerSearchText=n)&&l),"keyup"===e&&(l=!1!==s.customerSearchChange()&&l),"click"===e&&(l=!1!==s.customerSearchChange()&&l),l}),null,null)),ps(16,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(18,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(20,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(21,0,null,null,5,"ul",[],null,null,null,null,null)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(23,278528,null,0,ka,[xa],{ngClass:[0,"ngClass"]},null),(t()(),Zr(16777216,null,null,2,null,Vw)),ps(25,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),ui(26,2),(t()(),Zr(16777216,null,null,1,null,Lw)),ps(28,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(29,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(30,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Proforma Date:"])),(t()(),Qr(32,0,null,null,6,"input",[["class","form-control"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,33)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,33).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,33)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,33)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ProformaDate=n)&&l),l}),null,null)),ps(33,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(35,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),ui(36,2),gs(2048,null,mc,null,[rh]),ps(38,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(39,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(40,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Valid Until:"])),(t()(),Qr(42,0,null,null,6,"input",[["class","form-control"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,43)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,43).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,43)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,43)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ValidUntil=n)&&l),l}),null,null)),ps(43,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(45,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),ui(46,2),gs(2048,null,mc,null,[rh]),ps(48,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(49,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(50,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(51,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Proforma number:"])),(t()(),Qr(53,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,54)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,54).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,54)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,54)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.ProformaNumber=n)&&l),l}),null,null)),ps(54,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(56,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(58,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(59,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(60,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(61,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Buyer:"])),(t()(),Qr(63,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,64)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,64).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,64)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,64)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Buyer=n)&&l),l}),null,null)),ps(64,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(66,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(68,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(69,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(70,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Seller:"])),(t()(),Qr(72,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,73)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,73).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,73)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,73)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Seller=n)&&l),l}),null,null)),ps(73,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(75,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(77,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(78,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(79,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(80,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Consignee:"])),(t()(),Qr(82,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,83)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,83).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,83)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,83)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Consignee=n)&&l),l}),null,null)),ps(83,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(85,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(87,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(88,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(89,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Beneficiary:"])),(t()(),Qr(91,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,92)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,92).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,92)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,92)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfBeneficiary=n)&&l),l}),null,null)),ps(92,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(94,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(96,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(97,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(98,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(99,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Destination:"])),(t()(),Qr(101,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,102)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,102).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,102)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,102)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfDestination=n)&&l),l}),null,null)),ps(102,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(104,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(106,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(107,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(108,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Country Of Origin:"])),(t()(),Qr(110,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,111)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,111).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,111)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,111)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.CountryOfOrigin=n)&&l),l}),null,null)),ps(111,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(113,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(115,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(116,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(117,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(118,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["HsCode:"])),(t()(),Qr(120,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,121)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,121).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,121)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,121)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.HsCode=n)&&l),l}),null,null)),ps(121,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(123,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(125,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(126,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(127,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Package Description:"])),(t()(),Qr(129,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,130)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,130).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,130)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,130)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.PackageDescription=n)&&l),l}),null,null)),ps(130,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(132,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(134,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(135,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(136,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(137,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Freight Forwarder:"])),(t()(),Qr(139,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,140)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,140).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,140)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,140)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.FreightForwarder=n)&&l),l}),null,null)),ps(140,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(142,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(144,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(145,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(146,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Partial Shipment:"])),(t()(),Qr(148,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,149)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,149).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,149)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,149)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.PartialShipment=n)&&l),l}),null,null)),ps(149,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(151,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(153,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(154,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(155,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(156,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Relevant Location:"])),(t()(),Qr(158,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,159)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,159).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,159)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,159)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.RelevantLocation=n)&&l),l}),null,null)),ps(159,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(161,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(163,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(164,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(165,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Size:"])),(t()(),Qr(167,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,168)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,168).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,168)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,168)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Size=n)&&l),l}),null,null)),ps(168,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(170,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(172,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(173,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(174,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(175,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Port:"])),(t()(),Qr(177,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,178)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,178).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,178)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,178)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Port=n)&&l),l}),null,null)),ps(178,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(180,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(182,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(183,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(184,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Terms Of Delivery:"])),(t()(),Qr(186,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,187)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,187).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,187)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,187)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.TermsOfDelivery=n)&&l),l}),null,null)),ps(187,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(189,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(191,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(192,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(193,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(194,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Terms Of Payment:"])),(t()(),Qr(196,0,null,null,5,"input",[["class","form-control"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,197)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,197).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,197)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,197)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.TermsOfPayment=n)&&l),l}),null,null)),ps(197,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(199,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(201,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(202,0,null,null,8,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(203,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Bank accounts:"])),(t()(),Qr(205,0,null,null,5,"textarea",[["class","form-control"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,206)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,206).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,206)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,206)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.BankAccounts=n)&&l),l}),null,null)),ps(206,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(208,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(210,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(211,0,null,null,32,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(t()(),Qr(212,0,null,null,10,"thead",[["class","thead-dark"]],null,null,null,null,null)),(t()(),Qr(213,0,null,null,9,"tr",[],null,null,null,null,null)),(t()(),Qr(214,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["#"])),(t()(),Qr(216,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Description"])),(t()(),Qr(218,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Weight"])),(t()(),Qr(220,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),pi(-1,null,["Price"])),(t()(),Qr(222,0,null,null,0,"th",[["scope","col"]],null,null,null,null,null)),(t()(),Qr(223,0,null,null,20,"tbody",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,Uw)),ps(225,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),(t()(),Qr(226,0,null,null,17,"tr",[],null,null,null,null,null)),(t()(),Qr(227,0,null,null,16,"td",[["colspan","9"]],null,null,null,null,null)),(t()(),Qr(228,0,null,null,9,"div",[["class","input-group mb-3"]],null,null,null,null,null)),(t()(),Qr(229,0,null,null,5,"input",[["aria-describedby","inputGroup-sizing-default"],["aria-label","Sizing example input"],["class","form-control col-lg"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,230)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,230).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,230)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,230)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.searchText=n)&&l),"keyup"===e&&(l=!1!==s.searchChange()&&l),l}),null,null)),ps(230,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(232,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(234,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(235,0,null,null,2,"div",[["class","input-group-prepend"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.AddNewItem()&&l),l}),null,null)),(t()(),Qr(236,0,null,null,1,"span",[["class","input-group-text btn-success"],["id","inputGroup-sizing-default"]],null,null,null,null,null)),(t()(),pi(-1,null,["+"])),(t()(),Qr(238,0,null,null,5,"ul",[],null,null,null,null,null)),gs(512,null,xa,Ta,[Dn,kn,an,pn]),ps(240,278528,null,0,ka,[xa],{ngClass:[0,"ngClass"]},null),(t()(),Zr(16777216,null,null,2,null,jw)),ps(242,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),ui(243,2),(t()(),Qr(244,0,null,null,12,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(t,e,n){var l=!0,s=t.component;return"submit"===e&&(l=!1!==ts(t,246).onSubmit(n)&&l),"reset"===e&&(l=!1!==ts(t,246).onReset()&&l),"ngSubmit"===e&&(l=!1!==s.OnUploadFile()&&l),l}),null,null)),ps(245,16384,null,0,ih,[],null,null),ps(246,540672,null,0,ah,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),gs(2048,null,dc,null,[ah]),ps(248,16384,null,0,_c,[[4,dc]],null,null),(t()(),Qr(249,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Qr(250,0,null,null,1,"label",[["for","fatura"]],null,null,null,null,null)),(t()(),pi(-1,null,["Fatura"])),(t()(),Qr(252,0,[["fileInput",1]],null,0,"input",[["id","fatura"],["type","file"]],null,[[null,"change"]],(function(t,e,n){var l=!0;return"change"===e&&(l=!1!==t.component.onFileChange(n)&&l),l}),null,null)),(t()(),Qr(253,0,null,null,3,"button",[["class","btn btn-success"],["type","submit"]],null,null,null,null,null)),(t()(),pi(-1,null,["Upload "])),(t()(),Zr(16777216,null,null,1,null,$w)),ps(256,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(257,0,null,null,8,"table",[["class","table table-borderless"]],null,null,null,null,null)),(t()(),Qr(258,0,null,null,4,"thead",[],null,null,null,null,null)),(t()(),Qr(259,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Qr(260,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),pi(-1,null,["File name"])),(t()(),Qr(262,0,null,null,0,"th",[],null,null,null,null,null)),(t()(),Qr(263,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,Bw)),ps(265,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null),(t()(),Qr(266,0,null,null,101,"div",[],null,null,null,null,null)),(t()(),Qr(267,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["KDV %:"])),(t()(),Qr(269,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.KDV"],["placeholder","KDV"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,270)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,270).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,270)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,270)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,271).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,271).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,271).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Kdv=n)&&l),l}),null,null)),ps(270,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(271,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(273,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(275,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(276,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Discount:"])),(t()(),Qr(278,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.Discount"],["placeholder","Discount"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,279)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,279).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,279)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,279)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,280).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,280).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,280).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Discount=n)&&l),l}),null,null)),ps(279,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(280,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(282,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(284,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(285,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Exchange Rate:"])),(t()(),Qr(287,0,null,null,6,"input",[["class","ml-1 form-control"],["placeholder","Exchange Rate"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,288)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,288).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,288)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,288)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,289).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,289).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,289).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.ExchangeRate=n)&&l),l}),null,null)),ps(288,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(289,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(291,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{model:[0,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(293,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(294,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Qr(295,0,null,null,72,"div",[["class","table"]],null,null,null,null,null)),(t()(),Qr(296,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(297,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(298,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["KDV:"])),(t()(),Qr(300,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(301,null,["",""])),ui(302,2),(t()(),Qr(303,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(304,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(305,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total:"])),(t()(),Qr(307,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(308,null,["",""])),ui(309,2),(t()(),Qr(310,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(311,0,null,null,5,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(312,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total Lira:"])),(t()(),Qr(314,0,null,null,2,"label",[["class","ml-3"]],null,null,null,null,null)),(t()(),pi(315,null,["",""])),ui(316,2),(t()(),Qr(317,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Qr(318,0,null,null,1,"label",[["for","comment"]],null,null,null,null,null)),(t()(),pi(-1,null,["Comment:"])),(t()(),Qr(320,0,null,null,5,"textarea",[["class","form-control"],["id","proforma.Comment"],["name","proforma.Comment"],["rows","5"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,321)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,321).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,321)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,321)._compositionEnd(n.target.value)&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Comment=n)&&l),l}),null,null)),ps(321,16384,null,0,cc,[pn,an,[2,uc]],null,null),gs(1024,null,oc,(function(t){return[t]}),[cc]),ps(323,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(325,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(326,0,null,null,30,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(327,0,null,null,9,"div",[["class","form-check form-check-inline ml-4"]],null,null,null,null,null)),(t()(),Qr(328,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio1"],["name","inlineRadioOptions"],["type","radio"],["value","Usd"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,329)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,329).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,329)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,329)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,330).onChange()&&l),"blur"===e&&(l=!1!==ts(t,330).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(329,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(330,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(332,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(334,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(335,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio1"]],null,null,null,null,null)),(t()(),pi(-1,null,["Usd"])),(t()(),Qr(337,0,null,null,9,"div",[["class","form-check form-check-inline ml-4"]],null,null,null,null,null)),(t()(),Qr(338,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio1"],["name","inlineRadioOptions"],["type","radio"],["value","Euro"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,339)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,339).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,339)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,339)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,340).onChange()&&l),"blur"===e&&(l=!1!==ts(t,340).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(339,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(340,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(342,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(344,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(345,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio1"]],null,null,null,null,null)),(t()(),pi(-1,null,["Euro"])),(t()(),Qr(347,0,null,null,9,"div",[["class","form-check form-check-inline"]],null,null,null,null,null)),(t()(),Qr(348,0,null,null,6,"input",[["class","form-check-input"],["id","inlineRadio2"],["name","inlineRadioOptions"],["type","radio"],["value","Lira"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,349)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,349).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,349)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,349)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,350).onChange()&&l),"blur"===e&&(l=!1!==ts(t,350).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Currency=n)&&l),l}),null,null)),ps(349,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(350,212992,null,0,kc,[pn,an,Dc,qt],{name:[0,"name"],value:[1,"value"]},null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,kc]),ps(352,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(354,16384,null,0,fc,[[4,mc]],null,null),(t()(),Qr(355,0,null,null,1,"label",[["class","form-check-label"],["for","inlineRadio2"]],null,null,null,null,null)),(t()(),pi(-1,null,["Lira"])),(t()(),Qr(357,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(358,0,null,null,9,"div",[["class","col"]],null,null,null,null,null)),(t()(),Qr(359,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),pi(-1,null,["Total payment:"])),(t()(),Qr(361,0,null,null,6,"input",[["class","ml-1 form-control"],["name","proforma.Paid"],["placeholder","Total payment"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(t,e,n){var l=!0,s=t.component;return"input"===e&&(l=!1!==ts(t,362)._handleInput(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,362).onTouched()&&l),"compositionstart"===e&&(l=!1!==ts(t,362)._compositionStart()&&l),"compositionend"===e&&(l=!1!==ts(t,362)._compositionEnd(n.target.value)&&l),"change"===e&&(l=!1!==ts(t,363).onChange(n.target.value)&&l),"input"===e&&(l=!1!==ts(t,363).onChange(n.target.value)&&l),"blur"===e&&(l=!1!==ts(t,363).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(s.proforma.Paid=n)&&l),l}),null,null)),ps(362,16384,null,0,cc,[pn,an,[2,uc]],null,null),ps(363,16384,null,0,Tc,[pn,an],null,null),gs(1024,null,oc,(function(t,e){return[t,e]}),[cc,Tc]),ps(365,671744,null,0,rh,[[8,null],[8,null],[8,null],[6,oc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),gs(2048,null,mc,null,[rh]),ps(367,16384,null,0,fc,[[4,mc]],null,null),(t()(),Zr(16777216,null,null,1,null,zw)),ps(369,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Qr(370,0,null,null,11,"div",[["class","row"]],null,null,null,null,null)),(t()(),Qr(371,0,null,null,2,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(372,0,null,null,1,"button",[["class","btn btn-secondary btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.Cancel()&&l),l}),null,null)),(t()(),pi(-1,null,[" Cancel "])),(t()(),Qr(374,0,null,null,2,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(375,0,null,null,1,"a",[["class","btn btn-primary btn-lg btn-block"],["download",""]],[[8,"href",4]],null,null,null,null)),(t()(),pi(-1,null,[" Download PDF "])),(t()(),Qr(377,0,null,null,4,"div",[["class","col-md-2 mb-3"]],null,null,null,null,null)),(t()(),Qr(378,0,null,null,3,"button",[["class","btn btn-success btn-lg btn-block"],["type","button"],["value","Save"]],null,[[null,"click"]],(function(t,e,n){var l=!0,s=t.component;return"click"===e&&(l=!1!==s.Save(s.proforma)&&l),l}),null,null)),(t()(),pi(-1,null,[" Save "])),(t()(),Zr(16777216,null,null,1,null,Hw)),ps(381,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Zr(16777216,null,null,1,null,qw)),ps(383,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component,l=t(e,7,0,"../home");t(e,6,0,l),t(e,18,0,n.customerSearchText),t(e,23,0,n.customerAutocomplete);var s=Xn(e,25,0,t(e,26,0,ts(e,0),n.customers,n.customerSearchText));t(e,25,0,s),t(e,28,0,n.errorCustomer);var r=Xn(e,35,0,t(e,36,0,ts(e,1),n.proforma.ProformaDate,"yyyy-MM-dd"));t(e,35,0,r);var i=Xn(e,45,0,t(e,46,0,ts(e,1),n.proforma.ValidUntil,"yyyy-MM-dd"));t(e,45,0,i),t(e,56,0,n.proforma.ProformaNumber),t(e,66,0,n.proforma.Buyer),t(e,75,0,n.proforma.Seller),t(e,85,0,n.proforma.Consignee),t(e,94,0,n.proforma.CountryOfBeneficiary),t(e,104,0,n.proforma.CountryOfDestination),t(e,113,0,n.proforma.CountryOfOrigin),t(e,123,0,n.proforma.HsCode),t(e,132,0,n.proforma.PackageDescription),t(e,142,0,n.proforma.FreightForwarder),t(e,151,0,n.proforma.PartialShipment),t(e,161,0,n.proforma.RelevantLocation),t(e,170,0,n.proforma.Size),t(e,180,0,n.proforma.Port),t(e,189,0,n.proforma.TermsOfDelivery),t(e,199,0,n.proforma.TermsOfPayment),t(e,208,0,n.proforma.BankAccounts),t(e,225,0,n.proformaProformaItems),t(e,232,0,n.searchText),t(e,240,0,n.autocomplete);var o=Xn(e,242,0,t(e,243,0,ts(e,0),n.filteredProformas,n.searchText));t(e,242,0,o),t(e,246,0,n.form),t(e,256,0,n.uploading),t(e,265,0,n.files),t(e,273,0,"proforma.KDV",n.proforma.Kdv),t(e,282,0,"proforma.Discount",n.proforma.Discount),t(e,291,0,n.ExchangeRate),t(e,323,0,"proforma.Comment",n.proforma.Comment),t(e,330,0,"inlineRadioOptions","Usd"),t(e,332,0,"inlineRadioOptions",n.proforma.Currency),t(e,340,0,"inlineRadioOptions","Euro"),t(e,342,0,"inlineRadioOptions",n.proforma.Currency),t(e,350,0,"inlineRadioOptions","Lira"),t(e,352,0,"inlineRadioOptions",n.proforma.Currency),t(e,365,0,"proforma.Paid",n.proforma.Paid),t(e,369,0,n.showSuccess),t(e,381,0,n.saving),t(e,383,0,n.errorCustomer)}),(function(t,e){var n=e.component;t(e,15,0,ts(e,20).ngClassUntouched,ts(e,20).ngClassTouched,ts(e,20).ngClassPristine,ts(e,20).ngClassDirty,ts(e,20).ngClassValid,ts(e,20).ngClassInvalid,ts(e,20).ngClassPending),t(e,32,0,ts(e,38).ngClassUntouched,ts(e,38).ngClassTouched,ts(e,38).ngClassPristine,ts(e,38).ngClassDirty,ts(e,38).ngClassValid,ts(e,38).ngClassInvalid,ts(e,38).ngClassPending),t(e,42,0,ts(e,48).ngClassUntouched,ts(e,48).ngClassTouched,ts(e,48).ngClassPristine,ts(e,48).ngClassDirty,ts(e,48).ngClassValid,ts(e,48).ngClassInvalid,ts(e,48).ngClassPending),t(e,53,0,ts(e,58).ngClassUntouched,ts(e,58).ngClassTouched,ts(e,58).ngClassPristine,ts(e,58).ngClassDirty,ts(e,58).ngClassValid,ts(e,58).ngClassInvalid,ts(e,58).ngClassPending),t(e,63,0,ts(e,68).ngClassUntouched,ts(e,68).ngClassTouched,ts(e,68).ngClassPristine,ts(e,68).ngClassDirty,ts(e,68).ngClassValid,ts(e,68).ngClassInvalid,ts(e,68).ngClassPending),t(e,72,0,ts(e,77).ngClassUntouched,ts(e,77).ngClassTouched,ts(e,77).ngClassPristine,ts(e,77).ngClassDirty,ts(e,77).ngClassValid,ts(e,77).ngClassInvalid,ts(e,77).ngClassPending),t(e,82,0,ts(e,87).ngClassUntouched,ts(e,87).ngClassTouched,ts(e,87).ngClassPristine,ts(e,87).ngClassDirty,ts(e,87).ngClassValid,ts(e,87).ngClassInvalid,ts(e,87).ngClassPending),t(e,91,0,ts(e,96).ngClassUntouched,ts(e,96).ngClassTouched,ts(e,96).ngClassPristine,ts(e,96).ngClassDirty,ts(e,96).ngClassValid,ts(e,96).ngClassInvalid,ts(e,96).ngClassPending),t(e,101,0,ts(e,106).ngClassUntouched,ts(e,106).ngClassTouched,ts(e,106).ngClassPristine,ts(e,106).ngClassDirty,ts(e,106).ngClassValid,ts(e,106).ngClassInvalid,ts(e,106).ngClassPending),t(e,110,0,ts(e,115).ngClassUntouched,ts(e,115).ngClassTouched,ts(e,115).ngClassPristine,ts(e,115).ngClassDirty,ts(e,115).ngClassValid,ts(e,115).ngClassInvalid,ts(e,115).ngClassPending),t(e,120,0,ts(e,125).ngClassUntouched,ts(e,125).ngClassTouched,ts(e,125).ngClassPristine,ts(e,125).ngClassDirty,ts(e,125).ngClassValid,ts(e,125).ngClassInvalid,ts(e,125).ngClassPending),t(e,129,0,ts(e,134).ngClassUntouched,ts(e,134).ngClassTouched,ts(e,134).ngClassPristine,ts(e,134).ngClassDirty,ts(e,134).ngClassValid,ts(e,134).ngClassInvalid,ts(e,134).ngClassPending),t(e,139,0,ts(e,144).ngClassUntouched,ts(e,144).ngClassTouched,ts(e,144).ngClassPristine,ts(e,144).ngClassDirty,ts(e,144).ngClassValid,ts(e,144).ngClassInvalid,ts(e,144).ngClassPending),t(e,148,0,ts(e,153).ngClassUntouched,ts(e,153).ngClassTouched,ts(e,153).ngClassPristine,ts(e,153).ngClassDirty,ts(e,153).ngClassValid,ts(e,153).ngClassInvalid,ts(e,153).ngClassPending),t(e,158,0,ts(e,163).ngClassUntouched,ts(e,163).ngClassTouched,ts(e,163).ngClassPristine,ts(e,163).ngClassDirty,ts(e,163).ngClassValid,ts(e,163).ngClassInvalid,ts(e,163).ngClassPending),t(e,167,0,ts(e,172).ngClassUntouched,ts(e,172).ngClassTouched,ts(e,172).ngClassPristine,ts(e,172).ngClassDirty,ts(e,172).ngClassValid,ts(e,172).ngClassInvalid,ts(e,172).ngClassPending),t(e,177,0,ts(e,182).ngClassUntouched,ts(e,182).ngClassTouched,ts(e,182).ngClassPristine,ts(e,182).ngClassDirty,ts(e,182).ngClassValid,ts(e,182).ngClassInvalid,ts(e,182).ngClassPending),t(e,186,0,ts(e,191).ngClassUntouched,ts(e,191).ngClassTouched,ts(e,191).ngClassPristine,ts(e,191).ngClassDirty,ts(e,191).ngClassValid,ts(e,191).ngClassInvalid,ts(e,191).ngClassPending),t(e,196,0,ts(e,201).ngClassUntouched,ts(e,201).ngClassTouched,ts(e,201).ngClassPristine,ts(e,201).ngClassDirty,ts(e,201).ngClassValid,ts(e,201).ngClassInvalid,ts(e,201).ngClassPending),t(e,205,0,ts(e,210).ngClassUntouched,ts(e,210).ngClassTouched,ts(e,210).ngClassPristine,ts(e,210).ngClassDirty,ts(e,210).ngClassValid,ts(e,210).ngClassInvalid,ts(e,210).ngClassPending),t(e,229,0,ts(e,234).ngClassUntouched,ts(e,234).ngClassTouched,ts(e,234).ngClassPristine,ts(e,234).ngClassDirty,ts(e,234).ngClassValid,ts(e,234).ngClassInvalid,ts(e,234).ngClassPending),t(e,244,0,ts(e,248).ngClassUntouched,ts(e,248).ngClassTouched,ts(e,248).ngClassPristine,ts(e,248).ngClassDirty,ts(e,248).ngClassValid,ts(e,248).ngClassInvalid,ts(e,248).ngClassPending),t(e,269,0,ts(e,275).ngClassUntouched,ts(e,275).ngClassTouched,ts(e,275).ngClassPristine,ts(e,275).ngClassDirty,ts(e,275).ngClassValid,ts(e,275).ngClassInvalid,ts(e,275).ngClassPending),t(e,278,0,ts(e,284).ngClassUntouched,ts(e,284).ngClassTouched,ts(e,284).ngClassPristine,ts(e,284).ngClassDirty,ts(e,284).ngClassValid,ts(e,284).ngClassInvalid,ts(e,284).ngClassPending),t(e,287,0,ts(e,293).ngClassUntouched,ts(e,293).ngClassTouched,ts(e,293).ngClassPristine,ts(e,293).ngClassDirty,ts(e,293).ngClassValid,ts(e,293).ngClassInvalid,ts(e,293).ngClassPending);var l=Xn(e,301,0,t(e,302,0,ts(e,2),n.Tax,"1.2-3"));t(e,301,0,l);var s=Xn(e,308,0,t(e,309,0,ts(e,2),n.TotalUsd,"1.2-3"));t(e,308,0,s);var r=Xn(e,315,0,t(e,316,0,ts(e,2),n.TotalLira,"1.2-3"));t(e,315,0,r),t(e,320,0,ts(e,325).ngClassUntouched,ts(e,325).ngClassTouched,ts(e,325).ngClassPristine,ts(e,325).ngClassDirty,ts(e,325).ngClassValid,ts(e,325).ngClassInvalid,ts(e,325).ngClassPending),t(e,328,0,ts(e,334).ngClassUntouched,ts(e,334).ngClassTouched,ts(e,334).ngClassPristine,ts(e,334).ngClassDirty,ts(e,334).ngClassValid,ts(e,334).ngClassInvalid,ts(e,334).ngClassPending),t(e,338,0,ts(e,344).ngClassUntouched,ts(e,344).ngClassTouched,ts(e,344).ngClassPristine,ts(e,344).ngClassDirty,ts(e,344).ngClassValid,ts(e,344).ngClassInvalid,ts(e,344).ngClassPending),t(e,348,0,ts(e,354).ngClassUntouched,ts(e,354).ngClassTouched,ts(e,354).ngClassPristine,ts(e,354).ngClassDirty,ts(e,354).ngClassValid,ts(e,354).ngClassInvalid,ts(e,354).ngClassPending),t(e,361,0,ts(e,367).ngClassUntouched,ts(e,367).ngClassTouched,ts(e,367).ngClassPristine,ts(e,367).ngClassDirty,ts(e,367).ngClassValid,ts(e,367).ngClassInvalid,ts(e,367).ngClassPending),t(e,375,0,kl(1,"",n.ProformaReportUrl,""))}))}function Yw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-insert",[],null,null,null,Ww,Fw)),ps(1,114688,null,0,wh,[Cg,bp,Im,ch],null,null)],(function(t,e){t(e,1,0)}),null)}var Gw=zl("app-insert",wh,Yw,{},{},[]),Kw=el({encapsulation:0,styles:[[""]],data:{}});function Zw(t){return fi(0,[(t()(),Qr(0,0,null,null,3,"section",[["class","content"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(t()(),Qr(2,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ps(3,212992,null,0,Vm,[Fm,Fn,en,[8,null],An],null,null)],(function(t,e){t(e,3,0)}),null)}function Qw(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-root",[],null,null,null,Zw,Kw)),ps(1,49152,null,0,Eo,[],null,null)],null,null)}var Xw=zl("app-root",Eo,Qw,{},{},[]);let Jw=(()=>{class t{constructor(){this.messageSource=new Eh(!1),this.currentMessage=this.messageSource.asObservable()}changeMessage(t){this.messageSource.next(t)}}return t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var tS=el({encapsulation:0,styles:[[".nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:small}"]],data:{}});function eS(t){return fi(0,[(t()(),Qr(0,0,null,null,2,"li",[["class","nav-item ml-1 mr-1 mt-1 mb-1"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,1,"a",[["class","btn btn-dark w-100 text-left"]],[[8,"href",4]],null,null,null,null)),(t()(),pi(2,null,[" "," "]))],null,(function(t,e){t(e,1,0,kl(1,"",e.context.$implicit.Url,"")),t(e,2,0,e.context.$implicit.Text)}))}function nS(t){return fi(0,[(t()(),Qr(0,0,null,null,3,"div",[["class","col-md d-md-block  sidebar-sticky sticky-top mt-4 "]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,2,"ul",[["class","nav flex-column"]],null,null,null,null,null)),(t()(),Zr(16777216,null,null,1,null,eS)),ps(3,278528,null,0,Pa,[Fn,Mn,Dn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,3,0,e.component.menus)}),null)}function lS(t){return fi(0,[(t()(),Zr(16777216,null,null,1,null,nS)),ps(1,16384,null,0,Oa,[Fn,Mn],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,1,0,e.component.toggleMenu)}),null)}function sS(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-nav",[],null,null,null,lS,tS)),ps(1,114688,null,0,jg,[Jw,Cg],null,null)],(function(t,e){t(e,1,0)}),null)}var rS=zl("app-nav",jg,sS,{},{},[]),iS=el({encapsulation:0,styles:[[""]],data:{}});function oS(t){return fi(0,[(t()(),Qr(0,0,null,null,17,"nav",[["class","navbar navbar-dark sticky-top flex-md-nowrap p-0 shadow row"],["style","background-color:#ff6600"]],null,null,null,null,null)),(t()(),Qr(1,0,null,null,2,"button",[["class","navbar-brand btn d-none d-sm-block"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.toggle()&&l),l}),null,null)),(t()(),Qr(2,0,null,null,1,":svg:svg",[["class","bi bi-list"],["fill","currentColor"],["height","1em"],["viewBox","0 0 16 16"],["width","1em"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Qr(3,0,null,null,0,":svg:path",[["d","M2.5 11.5A.5.5 0 0 1 3 11h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 3h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"],["fill-rule","evenodd"]],null,null,null,null,null)),(t()(),Qr(4,0,null,null,1,"a",[["class","navbar-brand d-none d-sm-block"],["href","#"]],null,null,null,null,null)),(t()(),pi(-1,null,["NewKi"])),(t()(),Qr(6,0,null,null,1,"button",[["class","navbar-toggler position-absolute d-md-none collapsed"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.toggle()&&l),l}),null,null)),(t()(),Qr(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(t()(),Qr(8,0,null,null,9,"ul",[["class","navbar-nav px-3 mr-0 ml-auto"]],null,null,null,null,null)),(t()(),Qr(9,0,null,null,8,"form",[["asp-action","Logout"],["asp-area",""],["asp-controller","Account"],["id","logoutForm"],["method","post"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(t,e,n){var l=!0;return"submit"===e&&(l=!1!==ts(t,11).onSubmit(n)&&l),"reset"===e&&(l=!1!==ts(t,11).onReset()&&l),l}),null,null)),ps(10,16384,null,0,ih,[],null,null),ps(11,4210688,null,0,Jc,[[8,null],[8,null]],null,null),gs(2048,null,dc,null,[Jc]),ps(13,16384,null,0,_c,[[4,dc]],null,null),(t()(),Qr(14,0,null,null,3,"li",[["class","nav-item text-nowrap"]],null,null,null,null,null)),(t()(),Qr(15,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Qr(16,0,null,null,1,"button",[["class","btn"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var l=!0;return"click"===e&&(l=!1!==t.component.signOut()&&l),l}),null,null)),(t()(),pi(-1,null,["Sign out"]))],null,(function(t,e){t(e,9,0,ts(e,13).ngClassUntouched,ts(e,13).ngClassTouched,ts(e,13).ngClassPristine,ts(e,13).ngClassDirty,ts(e,13).ngClassValid,ts(e,13).ngClassInvalid,ts(e,13).ngClassPending)}))}function aS(t){return fi(0,[(t()(),Qr(0,0,null,null,1,"app-header",[],null,null,null,oS,iS)),ps(1,114688,null,0,$g,[Jw,Cg],null,null)],(function(t,e){t(e,1,0)}),null)}var uS=zl("app-header",$g,aS,{},{},[]);const cS=new Tt("mat-autocomplete-scroll-strategy");function hS(t){return()=>t.scrollStrategies.reposition()}let dS=(()=>(class{}))(),pS=(()=>(class{}))(),mS=(()=>(class{}))(),gS=(()=>(class{}))();var fS=wo(Lg,[Eo,jg,$g],(function(t){return function(t){const e={},n=[];let l=!1;for(let s=0;s<t.length;s++){const r=t[s];r.token===zt&&!0===r.value&&(l=!0),1073741824&r.flags&&n.push(r.token),r.index=s,e[Qn(r.token)]=r}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:l}}([Ml(512,en,nn,[[8,[qg,Ey,uw,YC,Cw,Nw,Gw,Xw,rS,uS]],[3,en],sn]),Ml(5120,Ks,Yr,[[3,Ks]]),Ml(4608,wa,Sa,[Ks,[2,Ca]]),Ml(5120,Ps,Gr,[dr]),Ml(5120,Bs,zs,[]),Ml(5120,Dn,qr,[]),Ml(5120,kn,Wr,[]),Ml(4608,Yu,Gu,[za]),Ml(6144,Ie,null,[Yu]),Ml(4608,ju,Bu,[]),Ml(5120,pu,(function(t,e,n,l,s,r,i,o){return[new Lu(t,e,n),new Wu(l),new zu(s,r,i,o)]}),[za,dr,Ws,za,za,ju,Gs,[2,$u]]),Ml(4608,mu,mu,[pu,dr]),Ml(135680,_u,_u,[za]),Ml(4608,Eu,Eu,[mu,_u,Bs]),Ml(5120,yv,VC,[]),Ml(5120,vb,LC,[]),Ml(4608,eC,FC,[za,yv,vb]),Ml(5120,hn,UC,[Eu,eC,dr]),Ml(6144,fu,null,[_u]),Ml(4608,vr,vr,[dr]),Ml(4608,Ig,Og,[za,Ws,Ag]),Ml(4608,Rg,Rg,[Ig,Pg]),Ml(5120,Sg,(function(t){return[t]}),[Rg]),Ml(4608,Dg,Dg,[]),Ml(6144,Tg,null,[Dg]),Ml(4608,kg,kg,[Tg]),Ml(6144,ig,null,[kg]),Ml(4608,rg,Mg,[ig,qt]),Ml(4608,Cg,Cg,[rg]),Ml(4608,Hy,Hy,[]),Ml(4608,d_,d_,[Kf,n_,en,c_,e_,qt,dr,za,pf,[2,Ro]]),Ml(5120,p_,m_,[d_]),Ml(5120,cS,hS,[d_]),Ml(5120,S_,E_,[d_]),Ml(135680,x_,x_,[d_,qt,[2,Ro],[2,w_],S_,[3,x_],n_]),Ml(4608,Ty,Ty,[]),Ml(5120,Ly,Uy,[d_]),Ml(4608,Z_,sy,[[2,K_],Mf]),Ml(4608,Dc,Dc,[]),Ml(4608,Wg,DC,[hn,za]),Ml(4608,ay,ay,[]),Ml(4608,ch,ch,[]),Ml(5120,bp,tg,[Im]),Ml(4608,$m,$m,[]),Ml(6144,Um,null,[$m]),Ml(135680,Bm,Bm,[Im,Rr,lr,qt,Um]),Ml(4608,jm,jm,[]),Ml(5120,zm,Km,[Im,qa,Hm]),Ml(5120,sg,lg,[eg]),Ml(5120,Ys,(function(t){return[t]}),[sg]),Ml(4608,Jw,Jw,[]),Ml(1073742336,Ba,Ba,[]),Ml(1024,Ve,nc,[]),Ml(1024,Tr,(function(){return[Ym()]}),[]),Ml(512,eg,eg,[qt]),Ml(1024,js,(function(t,e){return[(n=t,cu("probe",du),cu("coreTokens",Object.assign({},hu,(n||[]).reduce((t,e)=>(t[e.name]=e.token,t),{}))),()=>du),ng(e)];var n}),[[2,Tr],eg]),Ml(512,$s,$s,[[2,js]]),Ml(131584,Ir,Ir,[dr,Gs,qt,Ve,en,$s]),Ml(1073742336,Kr,Kr,[Ir]),Ml(1073742336,lc,lc,[[3,lc]]),Ml(1024,qm,Qm,[[3,Im]]),Ml(512,Xd,Jd,[]),Ml(512,Fm,Fm,[]),Ml(256,Hm,{useHash:!0},[]),Ml(1024,Io,Zm,[Ao,[2,Oo],Hm]),Ml(512,Ro,Ro,[Io,Ao]),Ml(512,lr,lr,[]),Ml(512,Rr,Fr,[lr,[2,Mr]]),Ml(1024,Em,(function(){return[[{path:"home",component:Do,canActivate:[Vg]},{path:"edit",component:Sh,canActivate:[Vg]},{path:"insert",component:wh,canActivate:[Vg]},{path:"",redirectTo:"/home",pathMatch:"full"},{path:"**",component:Eo}]]}),[]),Ml(1024,Im,Jm,[Ir,Xd,Fm,Ro,qt,Rr,lr,Em,Hm,[2,Tm],[2,wm]]),Ml(1073742336,Gm,Gm,[[2,qm],[2,Im]]),Ml(1073742336,Ng,Ng,[]),Ml(1073742336,Fg,Fg,[]),Ml(1073742336,Wy,Wy,[]),Ml(1073742336,pS,pS,[]),Ml(1073742336,mf,mf,[]),Ml(1073742336,q_,q_,[[2,H_],[2,$u]]),Ml(1073742336,Nf,Nf,[]),Ml(1073742336,_y,_y,[]),Ml(1073742336,yy,yy,[]),Ml(1073742336,vy,vy,[]),Ml(1073742336,uf,uf,[]),Ml(1073742336,Uf,Uf,[]),Ml(1073742336,g_,g_,[]),Ml(1073742336,dS,dS,[]),Ml(1073742336,Qy,Qy,[]),Ml(1073742336,T_,T_,[]),Ml(1073742336,B_,B_,[]),Ml(1073742336,zy,zy,[]),Ml(1073742336,iy,iy,[]),Ml(1073742336,oy,oy,[]),Ml(1073742336,uh,uh,[]),Ml(1073742336,hh,hh,[]),Ml(1073742336,$C,$C,[]),Ml(1073742336,mS,mS,[]),Ml(1073742336,gS,gS,[]),Ml(1073742336,dh,dh,[]),Ml(1073742336,Lg,Lg,[]),Ml(256,zt,!0,[]),Ml(256,Ag,"XSRF-TOKEN",[]),Ml(256,Pg,"X-XSRF-TOKEN",[]),Ml(256,Q_,ry,[]),Ml(256,jC,"BrowserAnimations",[])])}));(function(){if(oe)throw new Error("Cannot enable prod mode after platform setup.");ie=!1})(),ec().bootstrapModuleFactory(fS).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);