From 4f1b16c75a0d657b95b66cb68d5794854d2d7e81 Mon Sep 17 00:00:00 2001 From: Shankar Mathiah Nanjundan Date: Sun, 1 Sep 2019 16:25:02 -0700 Subject: [PATCH] Increase number of questions to 25. --- docs/404.html | 2 +- docs/index.html | 2 +- ...e7ad3d384a0965348.js => main-es2015.14608bcd7ebd19c38d35.js} | 2 +- ...4bcf32ac7e93bc83330a.js => main-es5.e7773bfd10c849bacfe7.js} | 2 +- src/app/questionBoard.component.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename docs/{main-es2015.df7e7ad3d384a0965348.js => main-es2015.14608bcd7ebd19c38d35.js} (94%) rename docs/{main-es5.4bcf32ac7e93bc83330a.js => main-es5.e7773bfd10c849bacfe7.js} (95%) diff --git a/docs/404.html b/docs/404.html index 658e8ed..2c168a9 100644 --- a/docs/404.html +++ b/docs/404.html @@ -9,5 +9,5 @@ - + diff --git a/docs/index.html b/docs/index.html index 658e8ed..2c168a9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/main-es2015.df7e7ad3d384a0965348.js b/docs/main-es2015.14608bcd7ebd19c38d35.js similarity index 94% rename from docs/main-es2015.df7e7ad3d384a0965348.js rename to docs/main-es2015.14608bcd7ebd19c38d35.js index 7a515a9..df0853c 100644 --- a/docs/main-es2015.df7e7ad3d384a0965348.js +++ b/docs/main-es2015.14608bcd7ebd19c38d35.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},bmOm:function(e){e.exports=JSON.parse('[{"id":0,"question":"What does SLPR stand for?","answer":"Slow, Look, Press, Roll","options":["Slow, Lean, Power, Ride","See, Lean, Push, Race","Slide, Load, Power, Rock"],"explanation":"These are the four action steps for making a basic turn. You have to slow down, look at the corner, press the side of the handle bar, and gently roll the accelerator.","image":null,"usersAnswer":""},{"id":1,"question":"What is the friction zone?","answer":"The area where the clutch starts to engage and transfer power to the drive train.","options":["The part of the tire that meets the road.","The area where brake pads meet the wheel.","The part of the road with most grip."],"image":null,"explanation":"A small area in the travel of the clutch lever that controls the connection between the engine and the rear wheel.","usersAnswer":""},{"id":2,"question":"What is choke control used for?","answer":"It provides an enriched fuel mixture to help start a cold engine.","options":["It allows you to shut off the engine without removing your hand from the handgrip.","Slows the vehicle by cutting off fuel to the engine.","Connects power from engine to the rear wheel."],"image":null,"explanation":"Located on the handlebars or near the engine. it also raises the idle to permit the engine to warm quickly. It shuold be turned off as soon as not needed.","usersAnswer":""},{"id":3,"question":"Which of the following is NOT TRUE about rear view mirrors?","answer":"They are flat mirrors.","options":["They are convex mirrors that are curved to provide a wider view.","They make objects appear farther than they actually are.","Reduce the size of blind spot, but they do not eliminate them."],"image":null,"explanation":"Remember, objects in the mirror are closer than they appear in the mirror and there will be blind spots.","usersAnswer":""},{"id":4,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":5,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":6,"question":"Which of the following is used to control engine speed?","answer":"Throttle.","options":["Clutch lever.","Fuel supply valve.","Choke control."],"image":null,"explanation":"To increase engine speed, twist in toward you (roll on). To decrease engine speed, twist it away from you (roll off).","usersAnswer":""},{"id":7,"question":"Which of the following indicates engine speed?","answer":"Tachometer.","options":["Odometer.","Speedometer.","Barometer."],"image":null,"explanation":"Indicates engine speed in revolutions per minute (rpm). It has a red line for maximum engine speed that should never be exceeded.","usersAnswer":""},{"id":8,"question":"Which of the following indicates road speed?","answer":"Speedometer.","options":["Odometer.","Tachometer.","Barometer."],"image":null,"explanation":"Indicates road speed.","usersAnswer":""},{"id":9,"question":"Which of the following indicates distance travelled?","answer":"Odometer.","options":["Speedometer.","Tachometer.","Barometer."],"image":null,"explanation":"Shows distance ridden. There may also be a re-settable trip meter, which can be used to display distance since last fill-up or the last stopping point.","usersAnswer":""},{"id":10,"question":"What are the five steps of the engine pre-start routine?","answer":"Fuel, Ignition, Neutral, Engine cut-off switch, Choke/Clutch.","options":["Forward, Unlock, Geardown, Engine-On, Start.","Forward, Unlock, Gear-up, Engine-On, Start.","Fuel, Ignition, Gear-up, Engine-On, Lights."],"image":null,"explanation":"This is shortened as FINE-C. Hold the clutch for additional safety, in case the vehicle is in gear by accident/malfunction.","usersAnswer":""},{"id":11,"question":"What are the three steps for shutting off the engine?","answer":"Engine cut-off switch to off, Ignition key off, Fuel valve off.","options":["Ignition key off, Bike stand on, Lights off.","Fuel valve off, Neutral gear, Ignition key off.","Engine cut-off switch off, Neutral gear, Fuel valve off."],"image":null,"explanation":"This can be remembered as: Thumb (shut off engine), Key (ignition off), Valve (fuel off). Always follow this order for maximum safety.","usersAnswer":""},{"id":12,"question":"What is the position of the right wrist for good riding posture?","answer":"Flat wrist with fingers around the throttle.","options":["Slightly bent wrist with knuckles pointing to the sky.","Slightly bent wrist with knuckles pointing to the ground.","Bent wrist with knuckles pointing to the ground."],"image":null,"explanation":"Arms should be relaxed and bent. Keep your fingers around the throttle with your wrist flat.","usersAnswer":""},{"id":13,"question":"How do you initiate motorcycle lean at speeds HIGHER than walking speed?","answer":"Press (forward or down) the handgrip on the same side of the intended turn.","options":["Lean the motorcycle and turn the handlebars in the direction you want to go.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"This is called countersteering because the handlebars are initially moved opposite the direction of the turn.","usersAnswer":""},{"id":14,"question":"How do you initiate motorcycle lean at speeds LOWER THAN OR EQUAL TO walking speed?","answer":"Lean the motorcycle and turn the handlebars in the direction you want to go.","options":["Press (forward or down) the handgrip on the same side of the intended turn.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"At lower speeds, lean the motorcycle and turn the handlebars in the direction you want to go.","usersAnswer":""},{"id":15,"question":"What is the three-step strategy for curves?","answer":"Search, Setup, Smooth","options":["Stop, Look, Go.","Swing, Swerve, Speed.","Slow, Swing, Speed."],"image":null,"explanation":"Search: while approaching and in curve (for obstacles, vehicles, etc.), Setup: Adjust speed, lane position, Smooth: No jerky movements.","usersAnswer":""},{"id":16,"question":"In what type of turn does counterweighting help?","answer":"For slow, tight turns.","options":["For fast, wide turns.","For graveled roads.","For off roads."],"image":null,"explanation":"Counterweighting (leaning independently from motorcycle) permits more motorcycle lean for a sharper turning radius. Suitable for slow, tight turns.","usersAnswer":""},{"id":17,"question":"What gear should you be in when coming to a stop?","answer":"First gear.","options":["Neutral.","Gear at the time of braking.","Second gear."],"image":null,"explanation":"You should be in first gear by the time you stop. It allows us to move again quickly if required.","usersAnswer":""},{"id":18,"question":"How should the handlebars be positioned when coming to a stop?","answer":"Handlebars should be centered.","options":["Turn the handlebars to the right.","Turn the handlebars to the left.","Handlebars can be in any direction."],"image":null,"explanation":"Handlebars should be squared (center the steering) so the motorcycle is easier to hold up.","usersAnswer":""},{"id":19,"question":"Which of the following statements is TRUE?","answer":"Front brake has more stopping power than rear brake.","options":["Rear brake has more stopping power than front brake.","Both brakes have equal stopping power.","None of the above."],"image":null,"explanation":"Front brake provides 70% or more stopping power because, forward weight shift pushes the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":20,"question":"How does the motorcycle\'s weight shift during braking?","answer":"Weight shifts forwards.","options":["Weight shifts backwards.","There is no weight shift.","Weight shifts to the right."],"image":null,"explanation":"During braking weight shifts forward, pushing the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":21,"question":"How do you stop in a curve?","answer":"Apply both brakes and straighten the motorcycle.","options":["Use rear brakes only.","Use front brakes only.","Use engine braking for stopping in curves."],"image":null,"explanation":"When braking to stop in a curve, gradually apply both brakes as you straighten the motorcycle.","usersAnswer":""},{"id":22,"question":"Why do you change gears?","answer":"To match engine speed (RPM) to road speed.","options":["To save fuel.","To gain traction.","To stop the motorcycle from tipping over."],"image":null,"explanation":"Lower gears are used for lower speeds, and higher gears are used for higher speeds.","usersAnswer":""},{"id":23,"question":"What is engine braking?","answer":"Slowing down by shifting to a lower gear and easing out the clutch lever.","options":["Shutting down the engine using engine cut-ff switch.","Slowing down by using clutch and rear brake.","Slowing down by using clutch and front brake."],"image":null,"explanation":"To use engine braking, shift down one gear at a time and ease out the clutch lever through the friction zone.","usersAnswer":""},{"id":24,"question":"What is the position of the clutch lever when making a stop?","answer":"Fully squeezed.","options":["Any position.","Squeezed halfway through.","Fully open."],"image":null,"explanation":"When making a complete stop, the clutch lever must be fully squeezed to disconnect power to the rear wheel.","usersAnswer":""},{"id":25,"question":"What does each letter in T-CLOCS stand for?","answer":"Tires and Wheels, Controls, Lights and Mirrors, Oil, Chasis, Stands.","options":["Tires, Clutch, Level, Outdoor conditions, Chase, Swerve.","Try Close Leaning Or Close Swerving.","Temperature, Coolant, Liquid, Oil, Clutch, Stands."],"image":null,"explanation":"T-CLOCS is a pre-ride inspection routine to ensure safety.","usersAnswer":""},{"id":26,"question":"What type of injury accounts for the majority of motorcycle-related deaths?","answer":"Head injury.","options":["Shoulder injury.","Chest injury.","Injuries to arms and legs."],"image":null,"explanation":"A head injury is the primary cause of deatch for riders.","usersAnswer":""},{"id":27,"question":"What is hypothermia?","answer":"Lower than normal body temperature.","options":["Higher than normal body temperature.","Normal body temperature.","Cyclical rise and drop in body temperature."],"image":null,"explanation":"Hypothermia is lower than normal body temperature and causes loss of concentration and slower reactions.","usersAnswer":""},{"id":28,"question":"Where do most crashes occur?","answer":"Curves and intersections.","options":["Straight highways.","When entering road from driveways.","Parking lots."],"image":null,"explanation":"Crashes mostly occur in curves and intersections because, the vehicle is less stable, you are more vulnerable and less visible.","usersAnswer":""},{"id":29,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":30,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":31,"question":"Which of the following is NOT a visual lead time of RiderRadar?","answer":"7-second braking time and distance.","options":["2-second following time and distance.","4-second urgent time and distance.","12-secoond anticipation time and distance."],"image":null,"explanation":"These times help under what is doiong on all around. Consider using greater times and distance.","usersAnswer":""},{"id":32,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":33,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":34,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":35,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":36,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":37,"question":"What should you NOT do when changing lanes?","answer":"Rush into the open spot by increasing the speed sharply.","options":["Check to see the space you want remains open.","Use a head check to see what is not seen in your mirrors.","Signal in advance and encourage driver behind to give you space."],"image":null,"explanation":"Never rush into any empty spot. Safety must not be compromised for speed.","usersAnswer":""},{"id":38,"question":"What should you NOT do when there is a tailgater?","answer":"Brake check the tailgater.","options":["Use one of the brake controls to flash the brake light.","Change lanes.","Increase your distance from vehicles ahead of you so you have more time and space to stop."],"image":null,"explanation":"Brake checking the tailgater is unsafe and should never be attempted.","usersAnswer":""},{"id":39,"question":"When riding in groups, what formation should be used on straights?","answer":"Staggered.","options":["Single-file.","Side by Side.","Any formation."],"image":null,"explanation":"Use a staggered formation unless there is a need for other formations.","usersAnswer":""},{"id":40,"question":"When riding in groups, what formation should be used in curves?","answer":"Single-file with 2-second following distance.","options":["Staggered.","Side by Side.","Any formation."],"image":null,"explanation":"Single-file formation with 2-second following distance gives more maneuvering room and increases safety.","usersAnswer":""},{"id":41,"question":"What is the best way to achieve the shortest braking distance in straight line?","answer":"Squeeze the clutch lever and apply both brakes at the same time.","options":["Apply the rear brake firmly.","Apply the front brake firmly.","Apply the rear brake first and then the front brake."],"image":null,"explanation":"This way of use of controls produces maximum braking without skidding either wheel.","usersAnswer":""},{"id":42,"question":"What is threshold braking?","answer":"The ability to use the brakes fully without producing a skid.","options":["Firmly applying the brakes at the shortest time.","Gently tapping the brakes multiple times.","Applying partial brakes without using clutch."],"image":null,"explanation":"This kind of braking takes a special feel. It is important to squeeze, not grab, the front brake lever and press, not jab, the rear brake pedal.","usersAnswer":""},{"id":43,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""},{"id":44,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""}]')},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++le.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==l&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const w="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function y(...e){return b(e)}function b(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:v}let _=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(l)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[w](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const S=x;class E extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends g{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(e){const t=new A(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew A(e,t),e})();class A extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}class R extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=P(),M=e=>t=>{const n=e[D]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},U=e=>t=>{const n=e[w]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const V=e=>{if(e instanceof _)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[w])return U(e);if(L(e))return N(e);if(j(e))return O(e);if(e&&"function"==typeof e[D])return M(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new R(e,n,r)){if(!s.closed)return V(t)(s)}class H extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function $(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new q(e,t))}}class q{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new z(e,this.project,this.thisArg))}}class z extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function B(e,t){return new _(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:N(e))}function W(e,t){if(!t)return e instanceof _?e:new _(V(e));if(null!=e){if(function(e){return e&&"function"==typeof e[w]}(e))return function(e,t){return new _(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[w]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:U(e))}(e,t);if(j(e))return function(e,t){return new _(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:O(e))}(e,t);if(L(e))return B(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new _(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const i=s.next();e=i.value,t=i.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Q((n,r)=>W(e(n,r)).pipe($((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Z(e,this.project,this.concurrent))}}class Z extends H{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return Q(K,e)}function J(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends _{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const le=oe("Inject",e=>({token:e})),ae=oe("Optional"),ue=oe("Self"),ce=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const we=de({__forward_ref__:de});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return me(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(we)&&t.__forward_ref__===ve?t():e}const be="undefined"!=typeof globalThis&&globalThis,_e="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Se=be||xe||_e||Ce;class Ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new Ee("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ie="ngTokenPath",Re=/\n/gm,Ne="\u0275",Oe="__source",Pe=de({provide:String,useValue:de});let De,Me=void 0;function Ue(e){const t=Me;return Me=e,t}function Le(e,t=he.Default){return(De||function(e,t=he.Default){if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):Me.get(e,t&he.Optional?null:void 0,t)})(e,t)}class je{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function Ve(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Re,"\n ")}`}class Fe{}class He{}function $e(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const ze=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Be=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))(),We="ngDebugContext",Qe="ngOriginalError",Ge="ngErrorLogger";function Ze(e){return e[We]}function Ke(e){return e[Qe]}function Ye(e,...t){e.error(...t)}class Je{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ge]||Ye}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ze(e)?Ze(e):this._findContext(Ke(e)):null}_findOriginalError(e){let t=Ke(e);for(;t&&Ke(t);)t=Ke(t);return t}}let Xe=!0,et=!1;function tt(){return et=!0,Xe}class nt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0it(e.trim())).join(", ")),this.buf.push(" ",t,'="',bt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();dt.hasOwnProperty(t)&&!at.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(bt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const vt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yt=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(vt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let _t;function Ct(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const xt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class St{}const Et=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Tt=/^url\(([^)]+)\)$/,kt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let It=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Rt(),e})();const Rt=(...e)=>{},Nt=new Ee("The presence of this token marks an injector as being the root injector."),Ot=function(e,t,n){return new Vt(e,t,n)};let Pt=(()=>{class e{static create(e,t){return Array.isArray(e)?Ot(e,t,""):Ot(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new je,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>Le(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Dt=function(e){return e},Mt=[],Ut=Dt,Lt=function(){return Array.prototype.slice.call(arguments)},jt="\u0275";class Vt{constructor(e,t=Pt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Pt,{token:Pt,fn:Dt,deps:Mt,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Dt,deps:Mt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;re.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ft(e){return Ht("Cannot mix multi providers and regular providers",e)}function Ht(e,t){return new Error(Ve(e,t,"StaticInjectorError"))}const $t=new Ee("AnalyzeForEntryComponents");let qt=null;function zt(){if(!qt){const e=Se.Symbol;if(e&&e.iterator)qt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new rn,e})();class on{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>cn(e),e})();const cn=an;class hn{}class dn{}const pn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gn(),e})();const gn=an;class mn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const wn=new mn("8.2.0");class vn{constructor(){}supports(e){return Gt(e)}create(e){return new bn(e)}}const yn=(e,t)=>t;class bn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Bt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Bt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Bt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Bt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new _n(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new xn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class _n{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Cn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Bt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class xn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Cn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new kn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Bt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class kn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let An=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new vn])}),e})(),In=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new En])}),e})();const Rn=[new En],Nn=new An([new vn]),On=new In(Rn);let Pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Dn(e,un),e})();const Dn=an;let Mn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Un(e,un),e})();const Un=an;function Ln(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return jn(n,t),n}(s,e)}function jn(e,t){e[We]=t,e[Ge]=t.logError.bind(t)}function Vn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Fn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function Hn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function $n(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}const Qn={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},Gn=()=>{},Zn=new Map;function Kn(e){let t=Zn.get(e);return t||(t=me(e)+"_"+Zn.size,Zn.set(e,t)),t}const Yn="$$undefined",Jn="$$empty";function Xn(e){return{id:Yn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let er=0;function tr(e,t,n,r){return!(!(2&e.state)&&Bt(e.oldValues[t.bindingIndex+n],r))}function nr(e,t,n,r){return!!tr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function rr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Wt(s,r)){const i=t.bindings[n].name;throw Ln(Qn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function sr(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ir(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function or(e,t,n,r){try{return sr(33554432&e.def.nodes[t].flags?qn(e,t).componentView:e),Qn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function lr(e){return e.parent?qn(e.parent,e.parentNodeDef.nodeIndex):null}function ar(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return qn(e,t.nodeIndex).renderElement;case 2:return $n(e,t.nodeIndex).renderText}}function cr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function hr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function dr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Oe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Kn(n)}})}function fr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===ze.Native?qn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const gr=new WeakMap;function mr(e){let t=gr.get(e);return t||((t=e(()=>Gn)).factory=e,gr.set(e,t)),t}function wr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),vr(e,t,0,e.def.nodes.length-1,n,r,s)}function vr(e,t,n,r,s,i,o){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&br(e,n,t,s,i,o),l+=n.childCount}}function yr(e,t,n,r,s,i){let o=e;for(;o&&!cr(o);)o=o.parent;const l=o.parent,a=ar(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&br(l,e,n,r,s,i),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=kr,e._providers[n]=Pr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ue(r)}var s,i}function Pr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Or(e,n[0]));case 2:return new t(Or(e,n[0]),Or(e,n[1]));case 3:return new t(Or(e,n[0]),Or(e,n[1]),Or(e,n[2]));default:const s=new Array(r);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,qe(n,t),Qn.dirtyParentQueries(r),Ur(r),r}function Mr(e,t,n){const r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);wr(n,2,s,i,void 0)}function Ur(e){wr(e,3,null,null,void 0)}const Lr=new Object;function jr(e,t,n,r,s,i){return new Vr(e,t,n,r,s,i)}class Vr extends en{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=mr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Qn.createRootView(e,t||[],n,s,r,Lr),l=zn(o,i).instance;return n&&o.renderer.setAttribute(qn(o,0).renderElement,"ng-version",wn.full),new Fr(o,new zr(o),l)}}class Fr extends Xt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new un(qn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Hr(e,t,n){return new $r(e,t,n)}class $r{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new un(this._data.renderElement)}get injector(){return new Gr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ar(e),e=e.parent;return e?new Gr(e,t):new Gr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Dr(this._data,e);Qn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new zr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof ln||(s=i.get(Fe));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,$e(s,n,r),function(e,t){const n=lr(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),Qn.dirtyParentQueries(r),Mr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const s=e.viewContainer._embeddedViews,i=s[n];qe(s,n),null==r&&(r=s.length),$e(s,r,i),Qn.dirtyParentQueries(i),Ur(i),Mr(e,r>0?s[r-1]:null,i)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Dr(this._data,e);t&&Qn.destroyView(t)}detach(e){const t=Dr(this._data,e);return t?new zr(t):null}}function qr(e){return new zr(e)}class zr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return wr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){sr(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Qn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ur(this._view),Qn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Br(e,t){return new Wr(e,t)}class Wr extends Pn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new zr(Qn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new un(qn(this._parentView,this._def.nodeIndex).renderElement)}}function Qr(e,t){return new Gr(e,t)}class Gr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Pt.THROW_IF_NOT_FOUND){return Qn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Kn(e)},t)}}function Zr(e){return new Kr(e.renderer)}class Kr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=xr(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const Xr=Kn(hn),es=Kn(fn),ts=Kn(un),ns=Kn(Mn),rs=Kn(Pn),ss=Kn(It),is=Kn(Pt),os=Kn(Te);function ls(e,t,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return us(e,t|=16384,n,r,s,s,i,a,u)}function as(e,t,n,r,s){return us(-1,e,t,0,n,r,s)}function us(e,t,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=dr(n);a||(a=[]),l||(l=[]),i=ye(i);const d=pr(o,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Sr(l),outputs:a,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function cs(e,t){return fs(e,t)}function hs(e,t){let n=e;for(;n.parent&&!cr(n);)n=n.parent;return gs(n.parent,ar(n),!0,t.provider.value,t.provider.deps)}function ds(e,t){const n=gs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;ror(e,t,n,r)}function fs(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return gs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ws(e,t,n,s[0]));case 2:return r(ws(e,t,n,s[0]),ws(e,t,n,s[1]));case 3:return r(ws(e,t,n,s[0]),ws(e,t,n,s[1]),ws(e,t,n,s[2]));default:const o=Array(i);for(let r=0;rBe}),Ss={},Es=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ts=void 0;var ks=["en",[["a","p"],["AM","PM"],Ts],[["AM","PM"],Ts,Ts],[["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"]],Ts,[["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"]],Ts,[["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}",Ts,"{1} 'at' {0}",Ts],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function As(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Ss[t];if(n)return n;const r=t.split("-")[0];if(n=Ss[r])return n;if("en"===r)return ks;throw new Error(`Missing locale data for the locale "${e}".`)}const Is="en-US";let Rs=Is;class Ns extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Os(){return this._results[zt()]()}class Ps{constructor(){this.dirty=!0,this._results=[],this.changes=new Ns,this.length=0;const e=zt(),t=Ps.prototype;t[e]||(t[e]=Os)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Us=new Ee("AppId");function Ls(){return`${js()}${js()}${js()}`}function js(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vs=new Ee("Platform Initializer"),Fs=new Ee("Platform ID"),Hs=new Ee("appBootstrapListener");class $s{log(e){console.log(e)}warn(e){console.warn(e)}}const qs=new Ee("LocaleId");function zs(){throw new Error("Runtime compiler is not loaded")}const Bs=zs,Ws=zs,Qs=zs,Gs=zs;class Zs{constructor(){this.compileModuleSync=Bs,this.compileModuleAsync=Ws,this.compileModuleAndAllComponentsSync=Qs,this.compileModuleAndAllComponentsAsync=Gs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ks{}let Ys,Js;function Xs(){const e=Se.wtf;return!(!e||!(Ys=e.trace)||(Js=Ys.events,0))}const ei=Xs(),ti=ei?function(e,t=null){return Js.createScope(e,t)}:(e,t)=>(function(e,t){return null}),ni=ei?function(e,t){return Ys.leaveScope(e,t),t}:(e,t)=>t,ri=(()=>Promise.resolve(0))();function si(e){"undefined"==typeof Zone?ri.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ii{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ns(!1),this.onMicrotaskEmpty=new Ns(!1),this.onStable=new Ns(!1),this.onError=new Ns(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return ui(t),e.invokeTask(r,s,i,o)}finally{ci(t)}},onInvoke:(e,n,r,s,i,o,l)=>{try{return ui(t),e.invoke(r,s,i,o,l)}finally{ci(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,ai(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ii.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ii.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,li,oi,oi);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function oi(){}const li={};function ai(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ui(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ci(e){e._nesting--,ai(e)}class hi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ns,this.onMicrotaskEmpty=new Ns,this.onStable=new Ns,this.onError=new Ns}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class di{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ii.assertNotInAngularZone(),si(()=>{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())si(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}let pi=(()=>{class e{constructor(){this._applications=new Map,mi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return mi.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class fi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let gi,mi=new fi,wi=function(e,t,n){return e.get(Ks).createCompiler([t]).compileModuleAsync(n)},vi=function(e){return e instanceof ln};const yi=new Ee("AllowMultipleToken");class bi{constructor(e,t){this.name=e,this.token=t}}function _i(e,t,n=[]){const r=`Platform: ${t}`,s=new Ee(r);return(t=[])=>{let i=Ci();if(!i||i.injector.get(yi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(gi&&!gi.destroyed&&!gi.injector.get(yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gi=e.get(xi);const t=e.get(Vs,null);t&&t.forEach(e=>e())}(Pt.create({providers:e,name:r}))}return function(e){const t=Ci();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Ci(){return gi&&!gi.destroyed?gi:null}class xi{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new hi:("zone.js"===s?void 0:s)||new ii({enableLongStackTrace:tt()}),r=[{provide:ii,useValue:n}];var s;return n.run(()=>{const t=Pt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Je,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(e){Rs=e.toLowerCase().replace(/_/g,"-")}(s.injector.get(qs,Is)),s.onDestroy(()=>Ti(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Kt(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Ms);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Si({},t);return wi(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ei);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Si(e,t){return Array.isArray(t)?t.reduce(Si,e):Object.assign({},e,t)}let Ei=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new _(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ii.assertNotInAngularZone(),si(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ii.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof _?e[0]:Y(t)(B(e,n))}(o,l.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=vi(n)?null:this._injector.get(Fe),s=n.create(Pt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(di,null);return i&&s.injector.get(pi).registerApplication(s.location.nativeElement,i),this._loadComponent(s),tt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ni(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ti(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Hs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ti(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ti("ApplicationRef#tick()"),e})();function Ti(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ki{}const Ai=!1,Ii="#",Ri="NgFactory";class Ni{}const Oi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Pi{constructor(e,t){this._compiler=e,this._config=t||Oi}load(e){return!Ai&&this._compiler instanceof Zs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split(Ii);return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Di(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split(Ii),s=Ri;return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Di(e,t,r))}}function Di(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Mi{constructor(e,t){this.name=e,this.callback=t}}class Ui{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Li&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Li extends Ui{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Li&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Li&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Li&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Li)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ji=new Map,Vi=function(e){return ji.get(e)||null};function Fi(e){ji.set(e.nativeNode,e)}const Hi=_i(null,"core",[{provide:Fs,useValue:"unknown"},{provide:xi,deps:[Pt]},{provide:pi,deps:[]},{provide:$s,deps:[]}]);function $i(){return Nn}function qi(){return On}function zi(e){return e||"en-US"}function Bi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Wi{constructor(e){}}function Qi(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=dr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?mr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Gn},provider:null,text:null,query:null,ngContent:null}}function Gi(e,t,n,r,s,i,o=[],l,a,u,c,h){u||(u=Gn);const{matchedQueries:d,references:p,matchedQueryIds:f}=dr(n);let g=null,m=null;i&&([g,m]=xr(i)),l=l||[];const w=new Array(l.length);for(let b=0;b{const[n,r]=xr(e);return[n,r,t]});return h=function(e){if(e&&e.id===Yn){const t=null!=e.encapsulation&&e.encapsulation!==ze.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${er++}`:Jn}return e&&e.id===Jn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:w,bindingFlags:Sr(w),outputs:v,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Gn},provider:null,text:null,query:null,ngContent:null}}function Zi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=fr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===ze.ShadowDom);if(r.attrs)for(let l=0;lor(e,t,n,r)}function Ji(e,t,n,r){if(!nr(e,t,n,r))return!1;const s=t.bindings[n],i=qn(e,t.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=e.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,o,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(xt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,l,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,l,r)}return!0}function Xi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&hr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Wn(e,s).setDirty(),!(1&r.flags&&s+r.childCount0)u=e,co(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&co(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Gn,updateRenderer:r||Gn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function co(e){return 0!=(1&e.flags)&&null===e.element.name}function ho(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function po(e,t,n,r){const s=mo(e.root,e.renderer,e,t,n);return wo(s,e.component,r),vo(s),s}function fo(e,t,n){const r=mo(e,e.renderer,null,null,t);return wo(r,n,n),vo(r),r}function go(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,mo(e.root,i,e,t.element.componentProvider,n)}function mo(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function wo(e,t,n){e.component=t,e.context=n}function vo(e){let t;cr(e)&&(t=qn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s0&&Ji(e,t,0,n)&&(p=!0),d>1&&Ji(e,t,1,r)&&(p=!0),d>2&&Ji(e,t,2,s)&&(p=!0),d>3&&Ji(e,t,3,i)&&(p=!0),d>4&&Ji(e,t,4,o)&&(p=!0),d>5&&Ji(e,t,5,l)&&(p=!0),d>6&&Ji(e,t,6,a)&&(p=!0),d>7&&Ji(e,t,7,u)&&(p=!0),d>8&&Ji(e,t,8,c)&&(p=!0),d>9&&Ji(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,l,a,u,c,h);case 2:return function(e,t,n,r,s,i,o,l,a,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&nr(e,t,0,n)&&(d=!0),f>1&&nr(e,t,1,r)&&(d=!0),f>2&&nr(e,t,2,s)&&(d=!0),f>3&&nr(e,t,3,i)&&(d=!0),f>4&&nr(e,t,4,o)&&(d=!0),f>5&&nr(e,t,5,l)&&(d=!0),f>6&&nr(e,t,6,a)&&(d=!0),f>7&&nr(e,t,7,u)&&(d=!0),f>8&&nr(e,t,8,c)&&(d=!0),f>9&&nr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ao(n,p[0])),f>1&&(d+=ao(r,p[1])),f>2&&(d+=ao(s,p[2])),f>3&&(d+=ao(i,p[3])),f>4&&(d+=ao(o,p[4])),f>5&&(d+=ao(l,p[5])),f>6&&(d+=ao(a,p[6])),f>7&&(d+=ao(u,p[7])),f>8&&(d+=ao(c,p[8])),f>9&&(d+=ao(h,p[9]));const g=$n(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,l,a,u,c,h);case 16384:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=zn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&tr(e,t,0,n)&&(f=!0,g=ys(e,d,t,0,n,g)),m>1&&tr(e,t,1,r)&&(f=!0,g=ys(e,d,t,1,r,g)),m>2&&tr(e,t,2,s)&&(f=!0,g=ys(e,d,t,2,s,g)),m>3&&tr(e,t,3,i)&&(f=!0,g=ys(e,d,t,3,i,g)),m>4&&tr(e,t,4,o)&&(f=!0,g=ys(e,d,t,4,o,g)),m>5&&tr(e,t,5,l)&&(f=!0,g=ys(e,d,t,5,l,g)),m>6&&tr(e,t,6,a)&&(f=!0,g=ys(e,d,t,6,a,g)),m>7&&tr(e,t,7,u)&&(f=!0,g=ys(e,d,t,7,u,g)),m>8&&tr(e,t,8,c)&&(f=!0,g=ys(e,d,t,8,c,g)),m>9&&tr(e,t,9,h)&&(f=!0,g=ys(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Hn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&nr(e,t,0,n)&&(p=!0),f>1&&nr(e,t,1,r)&&(p=!0),f>2&&nr(e,t,2,s)&&(p=!0),f>3&&nr(e,t,3,i)&&(p=!0),f>4&&nr(e,t,4,o)&&(p=!0),f>5&&nr(e,t,5,l)&&(p=!0),f>6&&nr(e,t,6,a)&&(p=!0),f>7&&nr(e,t,7,u)&&(p=!0),f>8&&nr(e,t,8,c)&&(p=!0),f>9&&nr(e,t,9,h)&&(p=!0),p){const p=Bn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=l),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=l),f>6&&(g[d[6].name]=a),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,l);break;case 7:g=e.transform(r,s,i,o,l,a);break;case 8:g=e.transform(r,s,i,o,l,a,u);break;case 9:g=e.transform(r,s,i,o,l,a,u,c);break;case 10:g=e.transform(r,s,i,o,l,a,u,c,h)}}p.value=g}return p}(e,t,n,r,s,i,o,l,a,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s0&&rr(e,t,0,n),d>1&&rr(e,t,1,r),d>2&&rr(e,t,2,s),d>3&&rr(e,t,3,i),d>4&&rr(e,t,4,o),d>5&&rr(e,t,5,l),d>6&&rr(e,t,6,a),d>7&&rr(e,t,7,u),d>8&&rr(e,t,8,c),d>9&&rr(e,t,9,h)}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){for(let r=0;r{const r=Vo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Fo.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Fo.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:pr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Kn(s)]=t}})}}(e=e.factory(()=>Gn)),e):e}(r))}const Vo=new Map,Fo=new Map,Ho=new Map;function $o(e){let t;Vo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Fo.set(e.token,e)}function qo(e,t){const n=mr(t.viewDefFactory),r=mr(n.nodes[0].element.componentView);Ho.set(e,r)}function zo(){Vo.clear(),Fo.clear(),Ho.clear()}function Bo(e){if(0===Vo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rGn);for(let r=0;r"-"+e[1].toLowerCase())}`)]=At(l))}const r=t.parent,l=qn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function ol(e,t,n,r){xo(e,t,n,...r)}function ll(e,t){for(let n=t;n++i===s?e.error.bind(e,...t):Gn),inew ul(e,t),handleEvent:nl,updateDirectives:rl,updateRenderer:sl}:{setCurrentNode:()=>{},createRootView:Po,createEmbeddedView:po,createComponentView:go,createNgModuleRef:Yr,overrideProvider:Gn,overrideComponentView:Gn,clearOverrides:Gn,checkAndUpdateView:bo,checkNoChangesView:yo,destroyView:Eo,createDebugContext:(e,t)=>new ul(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Wo:Qo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Wo:Qo,e)};Qn.setCurrentNode=e.setCurrentNode,Qn.createRootView=e.createRootView,Qn.createEmbeddedView=e.createEmbeddedView,Qn.createComponentView=e.createComponentView,Qn.createNgModuleRef=e.createNgModuleRef,Qn.overrideProvider=e.overrideProvider,Qn.overrideComponentView=e.overrideComponentView,Qn.clearOverrides=e.clearOverrides,Qn.checkAndUpdateView=e.checkAndUpdateView,Qn.checkNoChangesView=e.checkNoChangesView,Qn.destroyView=e.destroyView,Qn.resolveDep=ws,Qn.createDebugContext=e.createDebugContext,Qn.handleEvent=e.handleEvent,Qn.updateDirectives=e.updateDirectives,Qn.updateRenderer=e.updateRenderer,Qn.dirtyParentQueries=Xi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(mr(this._ngModuleDefFactory));return Qn.createNgModuleRef(this.moduleType,e||Pt.NULL,this._bootstrapComponents,t)}}class wl{}class vl{constructor(){this.title="Welcome to Motorcycle Tests!",this.termsAgreed=!1,this.termsReadAndAgreed=!1}startTestButtonClicked(){this.termsReadAndAgreed&&(this.title="Basic Rider Knowledge Practice Test",this.termsAgreed=!0)}checked(){this.termsReadAndAgreed=!this.termsReadAndAgreed}}class yl{}const bl=new Ee("Location Initialized");class _l{}const Cl=new Ee("appBaseHref");class xl{constructor(e,t){this._subject=new Ns,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=xl.stripTrailingSlash(Sl(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+xl.normalizeQueryParams(t))}normalize(e){return xl.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Sl(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xl.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xl.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function Sl(e){return e.replace(/\/index.html$/,"")}class El extends _l{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=xl.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class Tl extends _l{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return xl.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+xl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const kl=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),Al=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Il=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Rl(e,t){const n=As(e),r=n[Es.NumberSymbols][t];if(void 0===r){if(t===Il.CurrencyDecimal)return n[Es.NumberSymbols][Il.Decimal];if(t===Il.CurrencyGroup)return n[Es.NumberSymbols][Il.Group]}return r}const Nl=function(e){return As(e)[Es.PluralCase]},Ol=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Pl=22,Dl=".",Ml="0",Ul=";",Ll=",",jl="#";function Vl(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}const Fl=new Ee("UseV4Plurals");class Hl{}class $l extends Hl{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Nl(t||this.locale)(e)){case Al.Zero:return"zero";case Al.One:return"one";case Al.Two:return"two";case Al.Few:return"few";case Al.Many:return"many";default:return"other"}}}class ql{}class zl{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Gt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let Bl=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Wl extends Bl{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class Ql{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Gl{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){tt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ql(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Zl(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new Zl(e,s);t.push(i)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class Zl{constructor(e,t){this.record=e,this.view=t}}class Kl{constructor(e,t){this._viewContainer=e,this._context=new Yl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Jl("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Jl("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}class Yl{constructor(){this.$implicit=null,this.ngIf=null}}function Jl(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}class Xl{constructor(e){this._locale=e}transform(e,t,n){if(function(e){return null==e||""===e||e!=e}(e))return null;n=n||this._locale;try{return function(e,t,n){return function(e,t,n,r,s,i,o=!1){let l="",a=!1;if(isFinite(e)){let u=function(t){let n,r,s,i,o,l=Math.abs(e)+"",a=0;for((r=l.indexOf(Dl))>-1&&(l=l.replace(Dl,"")),(s=l.search(/e/i))>0?(r<0&&(r=s),r+=+l.slice(s+1),l=l.substring(0,s)):r<0&&(r=l.length),s=0;l.charAt(s)===Ml;s++);if(s===(o=l.length))n=[0],r=1;else{for(o--;l.charAt(o)===Ml;)o--;for(r-=s,n=[],i=0;s<=o;s++,i++)n[i]=Number(l.charAt(s))}return r>Pl&&(n=n.splice(0,Pl-1),a=r-1,r=1),{digits:n,exponent:a,integerLen:r}}();o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let c=t.minInt,h=t.minFrac,d=t.maxFrac;if(i){const e=i.match(Ol);if(null===e)throw new Error(`${i} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(c=Vl(t)),null!=n&&(h=Vl(n)),null!=r?d=Vl(r):null!=n&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,s=r.length-e.integerLen;const i=Math.min(Math.max(t,s),n);let o=i+e.integerLen,l=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;s=u?r.pop():a=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(u,h,d);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(a=p.every(e=>!e);f0?m=p.splice(f,p.length):(m=p,p=[0]);const w=[];for(p.length>=t.lgSize&&w.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)w.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&w.unshift(p.join("")),l=w.join(Rl(n,r)),m.length&&(l+=Rl(n,s)+m.join("")),g&&(l+=Rl(n,Il.Exponential)+"+"+g)}else l=Rl(n,Il.Infinity);return e<0&&!a?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Ul),s=r[0],i=r[1],o=-1!==s.indexOf(Dl)?s.split(Dl):[s.substring(0,s.lastIndexOf(Ml)+1),s.substring(s.lastIndexOf(Ml)+1)],l=o[0],a=o[1]||"";n.posPre=l.substr(0,l.indexOf(jl));for(let c=0;c{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new sa(Le(ta),window,Le(Je))}),e})();class sa{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const ia=new _(e=>e.complete());function oa(e){return e?function(e){return new _(t=>e.schedule(()=>t.complete()))}(e):ia}function la(e){const t=new _(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function aa(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return oa(t);case 1:return t?B(e,t):la(e[0]);default:return B(e,t)}}class ua extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}function ca(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ca.prototype=Object.create(Error.prototype);const ha=ca,da={};class pa{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new fa(e,this.resultSelector))}}class fa extends H{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(da),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(r){return void t.error(r)}return(n?W(n):oa()).subscribe(t)})}function ma(){return Y(1)}function wa(e,t){return function(n){return n.lift(new va(e,t))}}class va{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new ya(e,this.predicate,this.thisArg))}}class ya extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function ba(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ba.prototype=Object.create(Error.prototype);const _a=ba;function Ca(e){return function(t){return 0===e?oa():t.lift(new xa(e))}}class xa{constructor(e){if(this.total=e,this.total<0)throw new _a}call(e,t){return t.subscribe(new Sa(e,this.total))}}class Sa extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;sEa({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function Ia(e=null){return t=>t.lift(new Ra(e))}class Ra{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Na(e,this.defaultValue))}}class Na extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Oa(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wa((t,n)=>e(t,n,r)):K,Ca(1),n?Ia(t):Aa(()=>new ha))}function Pa(e){return function(t){const n=new Da(e),r=t.lift(n);return n.caught=r}}class Da{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Ma(e,this.selector,this.caught))}}class Ma extends H{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new R(this,void 0,void 0);this.add(r),F(this,n,void 0,void 0,r)}}}function Ua(e){return t=>0===e?oa():t.lift(new La(e))}class La{constructor(e){if(this.total=e,this.total<0)throw new _a}call(e,t){return t.subscribe(new ja(e,this.total))}}class ja extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Va(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wa((t,n)=>e(t,n,r)):K,Ua(1),n?Ia(t):Aa(()=>new ha))}class Fa{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Ha(e,this.predicate,this.thisArg,this.source))}}class Ha extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function $a(e,t){return"function"==typeof t?n=>n.pipe($a((n,r)=>W(e(n,r)).pipe($((e,s)=>t(n,e,r,s))))):t=>t.lift(new qa(e))}class qa{constructor(e){this.project=e}call(e,t){return t.subscribe(new za(e,this.project))}}class za extends H{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new R(this,void 0,void 0);this.destination.add(s),this.innerSubscription=F(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function Ba(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Wa(e,t,n))}}class Wa{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Qa(e,this.accumulator,this.seed,this.hasSeed))}}class Qa extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Ga(e,t){return Q(e,t,1)}class Za{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Ka(e,this.callback))}}class Ka extends g{constructor(e,t){super(e),this.add(new d(t))}}let Ya=null;function Ja(){return Ya}class Xa{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class eu extends Xa{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{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const tu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},nu=3,ru={"\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"},su={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"},iu=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class ou extends eu{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new ou,Ya||(Ya=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return tu}contains(e,t){return iu.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{class e extends yl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Ja().getLocation(),this._history=Ja().getHistory()}getBaseHrefFromDOM(){return Ja().getBaseHref(this._doc)}onPopState(e){Ja().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Ja().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){uu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){uu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=()=>[{type:void 0,decorators:[{type:le,args:[ta]}]}],e})();const hu=new Ee("TRANSITION_ID"),du=[{provide:Ds,useFactory:function(e,t,n){return()=>{n.get(Ms).donePromise.then(()=>{const n=Ja();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[hu,ta,Pt],multi:!0}];class pu{static init(){var e;e=new pu,mi=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Ja().isShadowRoot(t)?this.findTestabilityInTree(e,Ja().getHost(t),!0):this.findTestabilityInTree(e,Ja().parentElement(t),!0):null}}function fu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const gu=(()=>({ApplicationRef:Ei,NgZone:ii}))();function mu(e){return Vi(e)}const wu=new Ee("EventManagerPlugins");class vu{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class _u extends bu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Ja().remove(e))}}const Cu={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/"},xu=/%COMP%/g,Su="_nghost-%COMP%",Eu="_ngcontent-%COMP%";function Tu(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class Au{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Iu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ze.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Ou(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case ze.Native:case ze.ShadowDom:return new Pu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Tu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class Iu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Cu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Cu[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Cu[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&pn.DashCase?e.style.setProperty(t,n,r&pn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&pn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Nu(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Nu(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,ku(n)):this.eventManager.addEventListener(e,t,ku(n))}}const Ru=(()=>"@".charCodeAt(0))();function Nu(e,t){if(e.charCodeAt(0)===Ru)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Ou extends Iu{constructor(e,t,n,r){super(e),this.component=n;const s=Tu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=Eu.replace(xu,r+"-"+n.id),this.hostAttr=Su.replace(xu,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Pu extends Iu{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ze.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Tu(r.id,r.styles,[]);for(let i=0;i"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Mu=Du("addEventListener"),Uu=Du("removeEventListener"),Lu={},ju="FALSE",Vu="ANGULAR",Fu="addEventListener",Hu="removeEventListener",$u="__zone_symbol__propagationStopped",qu="__zone_symbol__stopImmediatePropagation",zu=(()=>{const e="undefined"!=typeof Zone&&Zone[Du("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Bu=function(e){return!!zu&&zu.hasOwnProperty(e)},Wu=function(e){const t=Lu[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n0;s||(s=e[n]=[]);const o=Bu(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Uu];if(!r)return e[Hu].apply(e,[t,n,!1]);let s=Lu[t],i=s&&e[s];if(!i)return e[Hu].apply(e,[t,n,!1]);let o=!1;for(let l=0;l{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Xu=["alt","control","meta","shift"],ec={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class tc extends yu{constructor(e){super(e)}supports(e){return null!=tc.parseEventName(e)}addEventListener(e,t,n){const r=tc.parseEventName(t),s=tc.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ja().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=tc._normalizeKey(t.pop());let s="";if(Xu.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=Ja().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Xu.forEach(r=>{r!=n&&(0,ec[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{tc.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class nc{}class rc extends nc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case xt.NONE:return t;case xt.HTML:return t instanceof ic?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{_t=_t||new nt(e);let r=t?String(t):"";n=_t.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=_t.getInertBodyElement(r)}while(r!==i);const o=new wt,l=o.sanitizeChildren(Ct(n)||n);return tt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const e=Ct(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case xt.STYLE:return t instanceof oc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Tt);return t&&it(t[1])===t[1]||e.match(Et)&&function(e){let t=!0,n=!0;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Bc(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Wc(e){return Yt(e)?e:Kt(e)?W(Promise.resolve(e)):aa(e)}function Qc(e,t,n){return n?function(e,t){return $c(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Yc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length){return!!Yc(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Yc(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Yc(n.segments,e)&&!!n.children[Nc]&&t(n.children[Nc],r,i)}}(t,n,n.segments)}(e.root,t.root)}class Gc{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pc(this.queryParams)),this._queryParamMap}toString(){return th.serialize(this)}}class Zc{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Bc(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nh(this)}}class Kc{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Pc(this.parameters)),this._parameterMap}toString(){return ah(this)}}function Yc(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Jc(e,t){let n=[];return Bc(e.children,(e,r)=>{r===Nc&&(n=n.concat(t(e,r)))}),Bc(e.children,(e,r)=>{r!==Nc&&(n=n.concat(t(e,r)))}),n}class Xc{}class eh{parse(e){const t=new ph(e);return new Gc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return nh(t);if(n){const n=t.children[Nc]?e(t.children[Nc],!1):"",r=[];return Bc(t.children,(t,n)=>{n!==Nc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Jc(t,(n,r)=>r===Nc?[e(t.children[Nc],!1)]:[`${r}:${e(n,!1)}`]);return`${nh(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${sh(t)}=${sh(e)}`).join("&"):`${sh(t)}=${sh(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const th=new eh;function nh(e){return e.segments.map(e=>ah(e)).join("/")}function rh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sh(e){return rh(e).replace(/%3B/gi,";")}function ih(e){return rh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oh(e){return decodeURIComponent(e)}function lh(e){return oh(e.replace(/\+/g,"%20"))}function ah(e){return`${ih(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${ih(e)}=${ih(t[e])}`).join("")}`;var t}const uh=/^[^\/()?;=#]+/;function ch(e){const t=e.match(uh);return t?t[0]:""}const hh=/^[^=?&#]+/,dh=/^[^?&#]+/;class ph{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zc([],{}):new Zc([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Nc]=new Zc(e,t)),n}parseSegment(){const e=ch(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Kc(oh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ch(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=ch(this.remaining);e&&this.capture(n=e)}e[oh(t)]=oh(n)}parseQueryParam(e){const t=function(e){const t=e.match(hh);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(dh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=lh(t),s=lh(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ch(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Nc);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[Nc]:new Zc([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class fh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=gh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=gh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=mh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return mh(e,this._root).map(e=>e.value)}}function gh(e,t){if(e===t.value)return t;for(const n of t.children){const t=gh(e,n);if(t)return t}return null}function mh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=mh(e,n);if(r.length)return r.unshift(t),r}return[]}class wh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function vh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class yh extends fh{constructor(e,t){super(e),this.snapshot=t,Eh(this,e)}toString(){return this.snapshot.toString()}}function bh(e,t){const n=function(e,t){const n=new xh([],{},{},"",{},Nc,t,null,e.root,-1,{});return new Sh("",new wh(n,[]))}(e,t),r=new ua([new Kc("",{})]),s=new ua({}),i=new ua({}),o=new ua({}),l=new ua(""),a=new _h(r,s,o,l,i,Nc,t,n.root);return a.snapshot=n.root,new yh(new wh(a,[]),n)}class _h{constructor(e,t,n,r,s,i,o,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=l}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($(e=>Pc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>Pc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ch(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class xh{constructor(e,t,n,r,s,i,o,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=l,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=Pc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sh extends fh{constructor(e,t){super(t),this.url=e,Eh(this,t)}toString(){return Th(this._root)}}function Eh(e,t){t.value._routerState=e,t.children.forEach(t=>Eh(e,t))}function Th(e){const t=e.children.length>0?` { ${e.children.map(Th).join(", ")} } `:"";return`${e.value}${t}`}function kh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,$c(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),$c(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n$c(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Ah(e.parent,t.parent))}function Ih(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Rh(e,t,n,r,s){let i={};return r&&Bc(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Gc(n.root===e?t:function e(t,n,r){const s={};return Bc(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Zc(t.segments,s)}(n.root,e,t),i,s)}class Nh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ih(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==zc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Oh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ph(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Nc]:`${e}`}function Dh(e,t,n){if(e||(e=new Zc([],{})),0===e.segments.length&&e.hasChildren())return Mh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const t=e.segments[s],o=Ph(n[r]),l=r0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!Vh(o,l,t))return i;r+=2}else{if(!Vh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=Dh(e.children[r],t,n))}),Bc(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Zc(e.segments,s)}}function Uh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s{null!==e&&(t[n]=Uh(new Zc([],{}),0,e))}),t}function jh(e){const t={};return Bc(e,(e,n)=>t[n]=`${e}`),t}function Vh(e,t,n){return e==n.path&&$c(t,n.parameters)}const Fh=(e,t,n)=>$(r=>(new Hh(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Hh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),kh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=vh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Bc(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=vh(e),s=e.value.component?n.children:t;Bc(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=vh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new Ac(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Tc(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(kh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),$h(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function $h(e){kh(e.value),e.children.forEach($h)}function qh(e){return"function"==typeof e}function zh(e){return e instanceof Gc}class Bh{constructor(e){this.segmentGroup=e||null}}class Wh{constructor(e){this.urlTree=e}}function Qh(e){return new _(t=>t.error(new Bh(e)))}function Gh(e){return new _(t=>t.error(new Wh(e)))}function Zh(e){return new _(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Kh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Fe)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Nc).pipe($(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pa(e=>{if(e instanceof Wh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Bh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Nc).pipe($(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Pa(e=>{if(e instanceof Bh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Zc([],{[Nc]:e}):e;return new Gc(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($(e=>new Zc([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return aa({});const n=[],r=[],s={};return Bc(e,(e,i)=>{const o=t(i,e).pipe($(e=>s[i]=e));i===Nc?n.push(o):r.push(o)}),aa.apply(null,n.concat(r)).pipe(ma(),Oa(),$(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return aa(...n).pipe($(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(Pa(e=>{if(e instanceof Bh)return aa(null);throw e}))),ma(),Va(e=>!!e),Pa((e,n)=>{if(e instanceof ha||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return aa(new Zc([],{}));throw new Bh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return ed(r)!==i?Qh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Qh(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Gh(s):this.lineralizeSegments(n,s).pipe(Q(n=>{const s=new Zc(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Yh(t,r,s);if(!o)return Qh(t);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Gh(c):this.lineralizeSegments(r,c).pipe(Q(r=>this.expandSegment(e,t,n,r.concat(s.slice(a)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($(e=>(n._loadedConfig=e,new Zc(r,{})))):aa(new Zc(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Yh(t,n,r);if(!s)return Qh(t);const l=r.slice(o);return this.getChildConfig(e,n,r).pipe(Q(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>Xh(e,t,n)&&ed(n)!==Nc)}(e,n)?{segmentGroup:Jh(new Zc(t,function(e,t){const n={};n[Nc]=t;for(const r of e)""===r.path&&ed(r)!==Nc&&(n[ed(r)]=new Zc([],{}));return n}(r,new Zc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>Xh(e,t,n))}(e,n)?{segmentGroup:Jh(new Zc(e.segments,function(e,t,n,r){const s={};for(const i of n)Xh(e,t,i)&&!r[ed(i)]&&(s[ed(i)]=new Zc([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,l,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe($(e=>new Zc(i,e))):0===r.length&&0===o.length?aa(new Zc(i,{})):this.expandSegment(n,s,r,o,Nc,!0).pipe($(e=>new Zc(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?aa(new Lc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?aa(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?W(r).pipe($(r=>{const s=e.get(r);let i;if(function(e){return e&&qh(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!qh(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Wc(i)})).pipe(ma(),(s=e=>!0===e,e=>e.lift(new Fa(s,void 0,e)))):aa(!0);var s}(e.injector,t,n).pipe(Q(n=>n?this.configLoader.load(e.injector,t).pipe($(e=>(t._loadedConfig=e,e))):function(e){return new _(t=>t.error(Mc(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):aa(new Lc([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return aa(n);if(r.numberOfChildren>1||!r.children[Nc])return Zh(e.redirectTo);r=r.children[Nc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Gc(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Bc(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return Bc(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Zc(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Yh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Uc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Jh(e){if(1===e.numberOfChildren&&e.children[Nc]){const t=e.children[Nc];return new Zc(e.segments.concat(t.segments),t.children)}return e}function Xh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ed(e){return e.outlet||Nc}class td{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class nd{constructor(e,t){this.component=e,this.route=t}}function rd(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=vh(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,l=n?n.value:null,a=r?r.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Yc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Yc(e.url,t.url)||!$c(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ah(e,t)||!$c(e.queryParams,t.queryParams);case"paramsChange":default:return!Ah(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new td(s)):(o.data=l.data,o._resolvedData=l._resolvedData),e(t,n,o.component?a?a.children:null:r,s,i),u&&i.canDeactivateChecks.push(new nd(a&&a.outlet&&a.outlet.component||null,l))}else l&&id(n,a,i),i.canActivateChecks.push(new td(s)),e(t,null,o.component?a?a.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),Bc(o,(e,t)=>id(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function sd(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function id(e,t,n){const r=vh(e),s=e.value;Bc(r,(e,r)=>{id(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new nd(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const od=Symbol("INITIAL_VALUE");function ld(){return $a(e=>(function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),B(e,n).lift(new pa(t))})(...e.map(e=>e.pipe(Ua(1),function(...e){return t=>{let n=e[e.length-1];I(n)?e.pop():n=null;const r=e.length;return function(...e){return ma()(aa(...e))}(1!==r||n?r>0?B(e,n):oa(n):la(e[0]),t)}}(od)))).pipe(Ba((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==od)return e;if(r===od&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||zh(r))return r}return e},e)},od),wa(e=>e!==od),$(e=>zh(e)?e:!0===e),Ua(1)))}function ad(e,t){return null!==e&&t&&t(new kc(e)),aa(!0)}function ud(e,t){return null!==e&&t&&t(new Ec(e)),aa(!0)}function cd(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?aa(r.map(r=>ga(()=>{const s=sd(r,t,n);let i;if(function(e){return e&&qh(e.canActivate)}(s))i=Wc(s.canActivate(t,e));else{if(!qh(s))throw new Error("Invalid CanActivate guard");i=Wc(s(t,e))}return i.pipe(Va())}))).pipe(ld()):aa(!0)}function hd(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>ga(()=>aa(t.guards.map(s=>{const i=sd(s,t.node,n);let o;if(function(e){return e&&qh(e.canActivateChild)}(i))o=Wc(i.canActivateChild(r,e));else{if(!qh(i))throw new Error("Invalid CanActivateChild guard");o=Wc(i(r,e))}return o.pipe(Va())})).pipe(ld())));return aa(s).pipe(ld())}class dd{}class pd{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=md(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Nc),r=new xh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Nc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new wh(r,n),i=new Sh(this.url,s);return this.inheritParamsAndData(i._root),aa(i)}catch(e){return new _(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Ch(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Jc(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===Nc?-1:t.value.outlet===Nc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof dd))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new dd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new dd;if((e.outlet||Nc)!==r)throw new dd;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?zc(n).parameters:{};s=new xh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yd(e),r,e.component,e,fd(t),gd(t)+n.length,bd(e))}else{const l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new dd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Uc)(n,e,t);if(!r)throw new dd;const s={};Bc(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=l.consumedSegments,o=n.slice(l.lastChild),s=new xh(i,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yd(e),r,e.component,e,fd(t),gd(t)+i.length,bd(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=md(t,i,o,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return[new wh(s,e)]}if(0===l.length&&0===u.length)return[new wh(s,[])];const c=this.processSegment(l,a,u,Nc);return[new wh(s,c)]}}function fd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function gd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function md(e,t,n,r,s){if(n.length>0&&function(e,t,n){return r.some(n=>wd(e,t,n)&&vd(n)!==Nc)}(e,n)){const s=new Zc(t,function(e,t,n,r){const s={};s[Nc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&vd(i)!==Nc){const n=new Zc([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[vd(i)]=n}return s}(e,t,r,new Zc(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>wd(e,t,n))}(e,n)){const i=new Zc(e.segments,function(e,t,n,r,s,i){const o={};for(const l of r)if(wd(e,n,l)&&!s[vd(l)]){const n=new Zc([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[vd(l)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Zc(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function wd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function vd(e){return e.outlet||Nc}function yd(e){return e.data||{}}function bd(e){return e.resolve||{}}function _d(e,t,n,r){const s=sd(e,t,r);return Wc(s.resolve?s.resolve(t,n):s(t,n))}function Cd(e){return function(t){return t.pipe($a(t=>{const n=e(t);return n?W(n).pipe($(()=>t)):W([t])}))}}class xd{}class Sd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const Ed=new Ee("ROUTES");class Td{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Lc(qc(r.injector.get(Ed)).map(Hc),r)}))}loadModuleFactory(e){return"string"==typeof e?W(this.loader.load(e)):Wc(e()).pipe(Q(e=>e instanceof He?aa(e):W(this.compiler.compileModuleAsync(e))))}}class kd{}class Ad{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Id(e){throw e}function Rd(e,t,n){return t.parse("/")}function Nd(e,t){return aa(null)}class Od{constructor(e,t,n,r,s,i,o,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=Id,this.malformedUriErrorHandler=Rd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Nd,afterPreactivation:Nd},this.urlHandlingStrategy=new Ad,this.routeReuseStrategy=new Sd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Fe),this.console=s.get($s);const a=s.get(ii);this.isNgZoneEnabled=a instanceof ii,this.resetConfig(l),this.currentUrlTree=new Gc(new Zc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Td(i,o,e=>this.triggerEvent(new xc(e)),e=>this.triggerEvent(new Sc(e))),this.routerState=bh(this.currentUrlTree,this.rootComponentType),this.transitions=new ua({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(wa(e=>0!==e.id),$(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),$a(e=>{let n=!1,r=!1;return aa(e).pipe(Ea(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),$a(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return aa(e).pipe($a(e=>{const n=this.transitions.getValue();return t.next(new fc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ia:[e]}),$a(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe($a(s=>(function(e,t,n,r,i){return new Kh(e,t,n,s.extractedUrl,i).apply()})(e,t,n,0,r).pipe($(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ea(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Q(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new pd(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe($(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ea(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Ea(e=>{const n=new vc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,l=new fc(n,this.serializeUrl(r),s,i);t.next(l);const a=bh(r,this.rootComponentType).snapshot;return aa(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ia}),Cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Ea(e=>{const t=new yc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$(e=>Object.assign({},e,{guards:rd(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?aa(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return W(o).pipe(Q(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?aa(i.map(i=>{const o=sd(i,t,s);let l;if(function(e){return e&&qh(e.canDeactivate)}(o))l=Wc(o.canDeactivate(e,t,n,r));else{if(!qh(o))throw new Error("Invalid CanDeactivate guard");l=Wc(o(e,t,n,r))}return l.pipe(Va())})).pipe(ld()):aa(!0)})(e.component,e.route,n,t,r)),Va(e=>!0!==e,!0))}(0,r,s,e).pipe(Q(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return W(i).pipe(Ga(t=>W([ud(t.route.parent,r),ad(t.route,r),hd(e,t.path,n),cd(e,t.route,n)]).pipe(ma(),Va(e=>!0!==e,!0))),Va(e=>!0!==e,!0))}(r,0,e,t):aa(n)),$(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Ea(e=>{if(zh(e.guardsResult)){const t=Mc(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Ea(e=>{const t=new bc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),wa(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new mc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Cd(e=>{if(e.guards.canActivateChecks.length)return aa(e).pipe(Ea(e=>{const t=new _c(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?W(s).pipe(Ga(n=>(function(e,t,n,s){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return aa({});if(1===s.length){const i=s[0];return _d(e[i],t,n,r).pipe($(e=>({[i]:e})))}const i={};return W(s).pipe(Q(s=>_d(e[s],t,n,r).pipe($(e=>(i[s]=e,e))))).pipe(Oa(),$(()=>i))}(e._resolve,e,r,s).pipe($(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Ch(e,n).resolve),null)))})(n.route,0,e,t)),function(e,t){return arguments.length>=2?function(n){return y(Ba(e,t),Ca(1),Ia(t))(n)}:function(t){return y(Ba((t,n,r)=>e(t,n,r+1)),Ca(1))(t)}}((e,t)=>e),$(e=>n)):aa(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Ea(e=>{const t=new Cc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),$(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new wh(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;re(t,n));return new wh(r,i)}}var s}(e,t._root,n?n._root:void 0);return new yh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Ea(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Fh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),Ea({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Za(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new mc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Pa(n=>{if(r=!0,function(e){return n&&n[Dc]}()){const r=zh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new mc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new wc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return ia}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){jc(e),this.config=e.map(Hc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:l}=t;tt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return Rh(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Nh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Bc(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new Nh(n,t,r)}(n);if(i.toRoot())return Rh(t.root,new Zc([],{}),t,r,s);const o=function(e,n,r){if(e.isAbsolute)return new Oh(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Oh(r.snapshot._urlSegment,!0,0);const s=Ih(e.commands[0])?0:1;return function(t,n,i){let o=r.snapshot._urlSegment,l=r.snapshot._lastPathIndex+s,a=e.numberOfDoubleDots;for(;a>l;){if(a-=l,!(o=o.parent))throw new Error("Invalid number of '../'");l=o.segments.length}return new Oh(o,!1,l-a)}()}(i,0,e),l=o.processChildren?Mh(o.segmentGroup,o.index,i.commands):Dh(o.segmentGroup,o.index,i.commands);return Rh(o.segmentGroup,l,t,r,s)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){tt()&&this.isNgZoneEnabled&&!ii.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=zh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new gc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const l=new Promise((e,t)=>{i=e,o=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Pd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dd,this.attachRef=null}}class Dd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Pd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Md{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ns,this.deactivateEvents=new Ns,this.name=r||Nc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Ud(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Ud{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===_h?this.route:e===Dd?this.childContexts:this.parent.get(e,t)}}class Ld{}class jd{preload(e,t){return t().pipe(Pa(()=>aa(null)))}}class Vd{preload(e,t){return aa(null)}}class Fd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new Td(t,n,t=>e.triggerEvent(new xc(t)),t=>e.triggerEvent(new Sc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(wa(e=>e instanceof gc),Ga(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fe);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return W(n).pipe(Y(),$(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Hd{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof gc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ic&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ic(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const $d=new Ee("ROUTER_CONFIGURATION"),qd=new Ee("ROUTER_FORROOT_GUARD"),zd=[xl,{provide:Xc,useClass:eh},{provide:Od,useFactory:Yd,deps:[Ei,Xc,Dd,xl,Pt,ki,Zs,Ed,$d,[kd,new ae],[xd,new ae]]},Dd,{provide:_h,useFactory:Jd,deps:[Od]},{provide:ki,useClass:Pi},Fd,Vd,jd,{provide:$d,useValue:{enableTracing:!1}}];function Bd(){return new bi("Router",Od)}class Wd{constructor(e,t){}static forRoot(e,t){return{ngModule:Wd,providers:[zd,Kd(e),{provide:qd,useFactory:Zd,deps:[[Od,new ae,new ce]]},{provide:$d,useValue:t||{}},{provide:_l,useFactory:Gd,deps:[yl,[new le(Cl),new ae],$d]},{provide:Hd,useFactory:Qd,deps:[Od,ra,$d]},{provide:Ld,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Vd},{provide:bi,multi:!0,useFactory:Bd},[Xd,{provide:Ds,multi:!0,useFactory:ep,deps:[Xd]},{provide:np,useFactory:tp,deps:[Xd]},{provide:Hs,multi:!0,useExisting:np}]]}}static forChild(e){return{ngModule:Wd,providers:[Kd(e)]}}}function Qd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Hd(e,t,n)}function Gd(e,t,n={}){return n.useHash?new El(e,t):new Tl(e,t)}function Zd(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Kd(e){return[{provide:$t,multi:!0,useValue:e},{provide:Ed,multi:!0,useValue:e}]}function Yd(e,t,n,r,s,i,o,l,a={},u,c){const h=new Od(null,t,n,r,s,i,o,qc(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=Ja();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.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 Jd(e){return e.routerState.root}class Xd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(bl,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Od),r=this.injector.get($d);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?aa(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get($d),n=this.injector.get(Fd),r=this.injector.get(Hd),s=this.injector.get(Od),i=this.injector.get(Ei);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function ep(e){return e.appInitializer.bind(e)}function tp(e){return e.bootstrapListener.bind(e)}const np=new Ee("Router Initializer");var rp=Xn({encapsulation:2,styles:[],data:{}});function sp(e){return uo(0,[(e()(),Gi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(1,212992,null,0,Md,[Dd,Mn,sn,[8,null],It],null,null)],function(e,t){e(t,1,0)},null)}function ip(e){return uo(0,[(e()(),Gi(0,0,null,null,1,"ng-component",[],null,null,null,sp,rp)),ls(1,49152,null,0,Rc,[],null,null)],null,null)}var op=jr("ng-component",Rc,ip,{},{},[]);class lp{constructor(e=0,t="Do you want to learn to ride a bike?",n="Yes",r=["Yes","No","May be"],s="Obviously!",i=null,o=""){this.id=e,this.question=t,this.answer=n,this.options=r,this.explanation=s,this.image=i,this.usersAnswer=o}}class ap{constructor(){this.isEnabled=!0,this.shouldShowExplanation=!1,this.questionModel=new lp}highlightAnswer(e){this.isEnabled&&(this.highlightedAnswer=e)}clearHighlightAnswer(e){this.isEnabled&&this.highlightedAnswer==e&&(this.highlightedAnswer="")}answerSelected(e){this.isEnabled&&(this.questionModel.usersAnswer=e)}}var up=Xn({encapsulation:0,styles:[[".questionClass[_ngcontent-%COMP%]{font-weight:700;color:#000;font-size:larger}.explanationTitleClass[_ngcontent-%COMP%]{font-weight:700;color:#000;font-size:medium;margin-left:12px}.explanationClass[_ngcontent-%COMP%]{margin-left:12px}.fullQuestionView[_ngcontent-%COMP%]{width:100%}.halfQuestionView[_ngcontent-%COMP%]{width:50%}.emptyQuestionView[_ngcontent-%COMP%]{width:0%}table[_ngcontent-%COMP%] tr.correctAnswer[_ngcontent-%COMP%]{background-color:#4caf50!important;color:#fff}table[_ngcontent-%COMP%] tr.actualAnswer[_ngcontent-%COMP%]{background-color:#ace6ae!important;color:#000}table[_ngcontent-%COMP%] tr.wrongAnswer[_ngcontent-%COMP%]{background-color:#db5621!important;color:#fff}table[_ngcontent-%COMP%] tr.selectedAnswer[_ngcontent-%COMP%]{background-color:#56d1f7!important;color:#fff}table[_ngcontent-%COMP%] tr.highlight[_ngcontent-%COMP%]{background-color:#eee!important;color:#000}"]],data:{}});function cp(e){return uo(0,[(e()(),Gi(0,0,null,null,0,"img",[],[[8,"src",4],[8,"height",0],[8,"width",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,Er(1,"",n.questionModel.image.url,""),Er(1,"",n.questionModel.image.height,""),Er(1,"",n.questionModel.image.width,""))})}function hp(e){return uo(0,[(e()(),Gi(0,0,null,null,8,"tr",[],null,[[null,"click"],[null,"mouseover"],[null,"mouseleave"]],function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==s.answerSelected(e.context.$implicit)&&r),"mouseover"===t&&(r=!1!==s.highlightAnswer(e.context.$implicit)&&r),"mouseleave"===t&&(r=!1!==s.clearHighlightAnswer(e.context.$implicit)&&r),r},null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(2,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(3,{selectedAnswer:0,highlight:1,correctAnswer:2,actualAnswer:3,wrongAnswer:4}),(e()(),Gi(4,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),Gi(5,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),oo(6,null,["",". \xa0"])),(e()(),Gi(7,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),oo(8,null,[" "," "]))],function(e,t){var n=t.component,r=e(t,3,0,!n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer,!n.shouldShowExplanation&&t.context.$implicit==n.highlightedAnswer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer&&t.context.$implicit==n.questionModel.answer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.answer&&t.context.$implicit!=n.questionModel.usersAnswer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer&&t.context.$implicit!=n.questionModel.answer);e(t,2,0,r)},function(e,t){e(t,6,0,t.context.index+1),e(t,8,0,t.context.$implicit)})}function dp(e){return uo(0,[(e()(),Gi(0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"div",[["class","explanationTitleClass"]],null,null,null,null,null)),(e()(),oo(-1,null,["Explanation:"])),(e()(),Gi(3,0,null,null,1,"div",[["class","explanationClass"]],null,null,null,null,null)),(e()(),oo(4,null,[" "," "]))],null,function(e,t){e(t,4,0,t.component.questionModel.explanation)})}function pp(e){return uo(0,[(e()(),Gi(0,0,null,null,22,"div",[["style","text-align: left; width: 800px; align-self: centre; margin: 0 auto;"]],null,null,null,null,null)),(e()(),Gi(1,0,null,null,21,"table",[],null,null,null,null,null)),(e()(),Gi(2,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(3,0,null,null,5,"td",[["colspan","2"]],null,null,null,null,null)),(e()(),Gi(4,0,null,null,4,"div",[["class","questionClass"]],null,null,null,null,null)),(e()(),oo(5,null,[" "," "])),(e()(),Gi(6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,cp)),ls(8,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(9,0,null,null,13,"tr",[],null,null,null,null,null)),(e()(),Gi(10,0,null,null,6,"td",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(12,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(13,{fullQuestionView:0,halfQuestionsView:1}),(e()(),Gi(14,0,null,null,2,"table",[["class","table-hover"]],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,hp)),ls(16,278528,null,0,Gl,[Mn,Pn,An],{ngForOf:[0,"ngForOf"]},null),(e()(),Gi(17,0,null,null,5,"td",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(19,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(20,{halfQuestionView:0,emptyQuestionView:1}),(e()(),Qi(16777216,null,null,1,null,dp)),ls(22,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,8,0,n.questionModel.image);var r=e(t,13,0,!n.shouldShowExplanation,n.shouldShowExplanation);e(t,12,0,r),e(t,16,0,n.questionModel.options);var s=e(t,20,0,n.shouldShowExplanation,!n.shouldShowExplanation);e(t,19,0,s),e(t,22,0,n.shouldShowExplanation)},function(e,t){e(t,5,0,t.component.questionModel.question)})}class fp{static getRandomIntFromInterval(e,t){return Math.floor(Math.random()*(t-e+1)+e)}}var gp=n("bmOm");class mp{constructor(){this.questions=gp,this.totalNumberOfQuestions=this.questions.length,this.questions.forEach(e=>{e.options.push(e.answer)})}randomizeAnswers(e){const t=e.options.length-1;for(let n=0;n<10;++n){let n=fp.getRandomIntFromInterval(0,t),r=fp.getRandomIntFromInterval(0,t);for(;n==r;)r=fp.getRandomIntFromInterval(0,t);const s=e.options[n];e.options[n]=e.options[r],e.options[r]=s}}getNextQuestionExcludingMasks(e){const t=this.totalNumberOfQuestions-1;let n=fp.getRandomIntFromInterval(0,t);if(null!=e)for(;e.includes(n);)n=fp.getRandomIntFromInterval(0,t);return this.getQuestionAtIndex(n)}getQuestionAtIndex(e){return this.questions[e%this.totalNumberOfQuestions]}refresh(){this.questions.forEach(e=>{this.randomizeAnswers(e),e.usersAnswer=""})}}class wp{constructor(){this.countOfCorrectAnswers=0,this.idsOfQuestionsAsked=null,this.currentQuestionNumber=-1,this.showAnswers=!1,this.maxNumberOfQuestions=2,this.secondButtonText="Next",this.questionBankService=new mp,this.startTest()}startTest(){this.questionsAsked=new Array(this.maxNumberOfQuestions),this.idsOfQuestionsAsked=new Array,this.questionBankService.refresh(),this.countOfCorrectAnswers=0,this.currentQuestionNumber=-1,this.showAnswers=!1,this.getNextQuestion()}isCurrentQuestionAnswered(){return""!=this.questionsAsked[this.currentQuestionNumber].usersAnswer}getScore(){return 0==this.maxNumberOfQuestions?0:this.countOfCorrectAnswers/this.maxNumberOfQuestions*100}calculateFinalScore(){this.countOfCorrectAnswers=0,this.questionsAsked.forEach(e=>{e.answer==e.usersAnswer&&++this.countOfCorrectAnswers}),this.showAnswers=!0}getNextQuestion(){if(this.currentQuestionNumber>=this.maxNumberOfQuestions-1)this.calculateFinalScore();else{if(null==this.questionsAsked[this.currentQuestionNumber+1]){const e=this.questionBankService.getNextQuestionExcludingMasks(this.idsOfQuestionsAsked);this.idsOfQuestionsAsked.push(e.id),this.questionsAsked[this.currentQuestionNumber+1]=e}this.currentQuestion=this.questionsAsked[++this.currentQuestionNumber],this.secondButtonText=this.currentQuestionNumber==this.maxNumberOfQuestions-1?"Calculate Score":"Next"}}goToPreviousQuestion(){this.currentQuestionNumber<=0||(this.currentQuestion=this.questionsAsked[--this.currentQuestionNumber])}restart(){this.startTest()}}var vp=Xn({encapsulation:0,styles:[[".questionBoardMainDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:centre;margin:0 auto}.progressDiv[_ngcontent-%COMP%]{width:600px;align-self:centre;margin:0 auto}.buttonsDiv[_ngcontent-%COMP%]{width:720px;align-self:center;margin:0 auto;text-align:center}.buttonsTable[_ngcontent-%COMP%]{align-self:center;margin:0 auto}progress[_ngcontent-%COMP%]{width:600px}.retryButtonDiv[_ngcontent-%COMP%]{width:600px;align-self:center;margin:0 auto;text-align:center}button[_ngcontent-%COMP%]{height:40px;font-size:16px;width:140px}.correctAnswersDiv[_ngcontent-%COMP%], .scoreDiv[_ngcontent-%COMP%]{font-size:large}.greenColor[_ngcontent-%COMP%]{color:green}.redColor[_ngcontent-%COMP%]{color:red}"]],data:{}});function yp(e){return uo(0,[(e()(),Gi(0,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"div",[["class","progressDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,0,"progress",[],[[8,"value",0],[8,"max",0]],null,null,null,null)),(e()(),Gi(3,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),oo(4,null,[" Question Number: "," "])),(e()(),Gi(5,0,null,null,1,"Question",[],null,null,null,pp,up)),ls(6,49152,null,0,ap,[],{questionModel:[0,"questionModel"]},null),(e()(),Gi(7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(9,0,null,null,8,"div",[["class","buttonsDiv"]],null,null,null,null,null)),(e()(),Gi(10,0,null,null,7,"table",[["class","buttonsTable"]],null,null,null,null,null)),(e()(),Gi(11,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(12,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Gi(13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToPreviousQuestion()&&r),r},null,null)),(e()(),oo(-1,null,[" Back "])),(e()(),Gi(15,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,1,"button",[],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getNextQuestion()&&r),r},null,null)),(e()(),oo(17,null,[" "," "]))],function(e,t){e(t,6,0,t.component.currentQuestion)},function(e,t){var n=t.component;e(t,2,0,Er(1,"",n.currentQuestionNumber+1,""),Er(1,"",n.maxNumberOfQuestions,"")),e(t,4,0,n.currentQuestionNumber+1),e(t,16,0,!n.isCurrentQuestionAnswered()),e(t,17,0,n.secondButtonText)})}function bp(e){return uo(0,[(e()(),Gi(0,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,5,"td",[],null,null,null,null,null)),(e()(),Gi(2,0,null,null,2,"div",[["style","margin-top: 8px"]],null,null,null,null,null)),(e()(),Gi(3,0,null,null,1,"Question",[],null,null,null,pp,up)),ls(4,49152,null,0,ap,[],{isEnabled:[0,"isEnabled"],shouldShowExplanation:[1,"shouldShowExplanation"],questionModel:[2,"questionModel"]},null),(e()(),Gi(5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(6,0,null,null,0,"hr",[],null,null,null,null,null))],function(e,t){e(t,4,0,!1,!0,t.context.$implicit)},null)}function _p(e){return uo(0,[(e()(),Gi(0,0,null,null,20,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,2,"div",[["class","retryButtonDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restart()&&r),r},null,null)),(e()(),oo(-1,null,["Retry"])),(e()(),Gi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(5,0,null,null,1,"div",[["class","correctAnswersDiv"]],null,null,null,null,null)),(e()(),oo(6,null,[" Correct Answers: "," / "," "])),(e()(),Gi(7,0,null,null,7,"div",[["class","scoreDiv"]],null,null,null,null,null)),(e()(),oo(-1,null,[" Score: "])),(e()(),Gi(9,0,null,null,5,"span",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(11,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(12,{redColor:0,greenColor:1}),(e()(),oo(13,null,[" "," % "])),io(128,14,new Array(3)),(e()(),Gi(15,0,null,null,5,"table",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Gi(17,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Gi(18,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,bp)),ls(20,278528,null,0,Gl,[Mn,Pn,An],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component,r=e(t,12,0,n.getScore()<75,n.getScore()>=75);e(t,11,0,r),e(t,20,0,n.questionsAsked)},function(e,t){var n=t.component;e(t,6,0,n.countOfCorrectAnswers,n.maxNumberOfQuestions);var r=function(e,t,n,r){if(Qt.isWrapped(r)){r=Qt.unwrap(r);const t=e.def.nodes[13].bindingIndex+0,n=Qt.unwrap(e.oldValues[t]);e.oldValues[t]=new Qt(n)}return r}(t,0,0,e(t,14,0,function(e,t){const n=e.def.nodes[0];if(1&n.flags){const t=qn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return $n(e,n.nodeIndex).renderText;if(20240&n.flags)return zn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index 0")}(t.parent),n.getScore(),"1.2-2"));e(t,13,0,r)})}function Cp(e){return uo(0,[(t=0,n=Xl,r=[qs],us(-1,t|=16,null,0,n,n,r)),(e()(),Gi(1,0,null,null,5,"div",[["class","questionBoardMainDiv"]],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,yp)),ls(3,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,_p)),ls(6,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,!n.showAnswers),e(t,6,0,n.showAnswers)},null);var t,n,r}var xp=Xn({encapsulation:0,styles:[[".rootDiv[_ngcontent-%COMP%]{width:816px;align-self:center;margin:0 auto;text-align:center;background:#fff;height:100%;font-family:'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif}.paddingDiv[_ngcontent-%COMP%]{height:20px}.instructionsDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:center;margin:0 auto}.termsAgreedStatementDiv[_ngcontent-%COMP%]{margin-top:20px}.agreementTable[_ngcontent-%COMP%]{width:600px;text-align:center;align-self:center;margin:0 auto}.termsAgreedButtonDiv[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:20px}.termsAgreedButton[_ngcontent-%COMP%]{height:40px;font-size:large}.importantWarning[_ngcontent-%COMP%]{font-weight:700;color:red}"]],data:{}});function Sp(e){return uo(0,[(e()(),Gi(0,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,5,"div",[["style","text-align: left; margin-left: 8px; margin-right: 8px"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),oo(-1,null,[" This site offers practice tests to prepare for "])),(e()(),Gi(4,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),oo(-1,null,["Motorcycle Safety Foundation"])),(e()(),oo(-1,null,["'s Basic RiderCourse Knowledge test. Study the materials provided by the Motorcycle Safety Foundation diligently. The information provided there will help you ride safer. Once you've studied, practice taking tests here as many times as you'd like! "])),(e()(),Gi(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),oo(-1,null,[" All the best! "])),(e()(),Gi(9,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),oo(-1,null,["TERMS OF AGREEMENT"])),(e()(),Gi(11,0,null,null,11,"div",[["class","instructionsDiv"]],null,null,null,null,null)),(e()(),Gi(12,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Gi(13,0,null,null,1,"span",[["class","importantWarning"]],null,null,null,null,null)),(e()(),oo(-1,null,[" THIS IS NOT AN OFFICIAL TEST. PASSING THIS TEST DOESN'T GIVE YOU ANY ENDORSEMENTS."])),(e()(),Gi(15,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),oo(-1,null,[" THIS IS FOR PRACTICE AND PRACTICE ONLY! "])),(e()(),Gi(18,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),oo(-1,null,[" For further information, go to "])),(e()(),Gi(20,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),oo(-1,null,["Motorcycle Safety Foundation"])),(e()(),oo(-1,null,["."])),(e()(),Gi(23,0,null,null,10,"table",[["class","agreementTable"]],null,null,null,null,null)),(e()(),Gi(24,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Gi(25,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Gi(26,0,null,null,2,"div",[["class","termsAgreedStatementDiv"]],null,null,null,null,null)),(e()(),Gi(27,0,null,null,0,"input",[["type","checkbox"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.checked()&&r),r},null,null)),(e()(),oo(-1,null,[" I've read and accept the above mentioned terms of agreement. "])),(e()(),Gi(29,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Gi(30,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Gi(31,0,null,null,2,"div",[["class","termsAgreedButtonDiv"]],null,null,null,null,null)),(e()(),Gi(32,0,null,null,1,"button",[["class","termsAgreedButton"]],[[8,"disabled",0]],[[null,"click"],[null,"disabledChange"]],function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==s.startTestButtonClicked()&&r),"disabledChange"===t&&(r=0!=!(s.termsReadAndAgreed=n)&&r),r},null,null)),(e()(),oo(-1,null,["Start the test!"]))],null,function(e,t){e(t,32,0,!t.component.termsReadAndAgreed)})}function Ep(e){return uo(0,[(e()(),Gi(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"QuestionBoard",[],null,null,null,Cp,vp)),ls(2,49152,null,0,wp,[],null,null)],null,null)}function Tp(e){return uo(0,[(e()(),Gi(0,0,null,null,9,"div",[["class","rootDiv"]],null,null,null,null,null)),(e()(),Gi(1,0,null,null,0,"div",[["class","paddingDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),oo(3,null,[" "," "])),(e()(),Qi(16777216,null,null,1,null,Sp)),ls(5,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Qi(16777216,null,null,1,null,Ep)),ls(7,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(9,212992,null,0,Md,[Dd,Mn,sn,[8,null],It],null,null)],function(e,t){var n=t.component;e(t,5,0,!n.termsAgreed),e(t,7,0,n.termsAgreed),e(t,9,0)},function(e,t){e(t,3,0,t.component.title)})}function kp(e){return uo(0,[(e()(),Gi(0,0,null,null,1,"app-root",[],null,null,null,Tp,xp)),ls(1,49152,null,0,vl,[],null,null)],null,null)}var Ap=jr("app-root",vl,kp,{},{},[]);class Ip{}var Rp=gl(wl,[vl],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s(e[t.name]=t.token,e),{}))),()=>mu),ep(t)];var n},[[2,bi],Xd]),Nr(512,Ms,Ms,[[2,Ds]]),Nr(131584,Ei,Ei,[ii,$s,Pt,Je,sn,Ms]),Nr(1073742336,Wi,Wi,[Ei]),Nr(1073742336,dc,dc,[[3,dc]]),Nr(1024,qd,Zd,[[3,Od]]),Nr(512,Xc,eh,[]),Nr(512,Dd,Dd,[]),Nr(256,$d,{},[]),Nr(1024,_l,Gd,[yl,[2,Cl],$d]),Nr(512,xl,xl,[_l,yl]),Nr(512,Zs,Zs,[]),Nr(512,ki,Pi,[Zs,[2,Ni]]),Nr(1024,Ed,function(){return[[]]},[]),Nr(1024,Od,Yd,[Ei,Xc,Dd,xl,Pt,ki,Zs,Ed,$d,[2,kd],[2,xd]]),Nr(1073742336,Wd,Wd,[[2,qd],[2,Od]]),Nr(1073742336,Ip,Ip,[]),Nr(1073742336,wl,wl,[]),Nr(256,Nt,!0,[])])});(function(){if(et)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1})(),cc().bootstrapModuleFactory(Rp).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},bmOm:function(e){e.exports=JSON.parse('[{"id":0,"question":"What does SLPR stand for?","answer":"Slow, Look, Press, Roll","options":["Slow, Lean, Power, Ride","See, Lean, Push, Race","Slide, Load, Power, Rock"],"explanation":"These are the four action steps for making a basic turn. You have to slow down, look at the corner, press the side of the handle bar, and gently roll the accelerator.","image":null,"usersAnswer":""},{"id":1,"question":"What is the friction zone?","answer":"The area where the clutch starts to engage and transfer power to the drive train.","options":["The part of the tire that meets the road.","The area where brake pads meet the wheel.","The part of the road with most grip."],"image":null,"explanation":"A small area in the travel of the clutch lever that controls the connection between the engine and the rear wheel.","usersAnswer":""},{"id":2,"question":"What is choke control used for?","answer":"It provides an enriched fuel mixture to help start a cold engine.","options":["It allows you to shut off the engine without removing your hand from the handgrip.","Slows the vehicle by cutting off fuel to the engine.","Connects power from engine to the rear wheel."],"image":null,"explanation":"Located on the handlebars or near the engine. it also raises the idle to permit the engine to warm quickly. It shuold be turned off as soon as not needed.","usersAnswer":""},{"id":3,"question":"Which of the following is NOT TRUE about rear view mirrors?","answer":"They are flat mirrors.","options":["They are convex mirrors that are curved to provide a wider view.","They make objects appear farther than they actually are.","Reduce the size of blind spot, but they do not eliminate them."],"image":null,"explanation":"Remember, objects in the mirror are closer than they appear in the mirror and there will be blind spots.","usersAnswer":""},{"id":4,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":5,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":6,"question":"Which of the following is used to control engine speed?","answer":"Throttle.","options":["Clutch lever.","Fuel supply valve.","Choke control."],"image":null,"explanation":"To increase engine speed, twist in toward you (roll on). To decrease engine speed, twist it away from you (roll off).","usersAnswer":""},{"id":7,"question":"Which of the following indicates engine speed?","answer":"Tachometer.","options":["Odometer.","Speedometer.","Barometer."],"image":null,"explanation":"Indicates engine speed in revolutions per minute (rpm). It has a red line for maximum engine speed that should never be exceeded.","usersAnswer":""},{"id":8,"question":"Which of the following indicates road speed?","answer":"Speedometer.","options":["Odometer.","Tachometer.","Barometer."],"image":null,"explanation":"Indicates road speed.","usersAnswer":""},{"id":9,"question":"Which of the following indicates distance travelled?","answer":"Odometer.","options":["Speedometer.","Tachometer.","Barometer."],"image":null,"explanation":"Shows distance ridden. There may also be a re-settable trip meter, which can be used to display distance since last fill-up or the last stopping point.","usersAnswer":""},{"id":10,"question":"What are the five steps of the engine pre-start routine?","answer":"Fuel, Ignition, Neutral, Engine cut-off switch, Choke/Clutch.","options":["Forward, Unlock, Geardown, Engine-On, Start.","Forward, Unlock, Gear-up, Engine-On, Start.","Fuel, Ignition, Gear-up, Engine-On, Lights."],"image":null,"explanation":"This is shortened as FINE-C. Hold the clutch for additional safety, in case the vehicle is in gear by accident/malfunction.","usersAnswer":""},{"id":11,"question":"What are the three steps for shutting off the engine?","answer":"Engine cut-off switch to off, Ignition key off, Fuel valve off.","options":["Ignition key off, Bike stand on, Lights off.","Fuel valve off, Neutral gear, Ignition key off.","Engine cut-off switch off, Neutral gear, Fuel valve off."],"image":null,"explanation":"This can be remembered as: Thumb (shut off engine), Key (ignition off), Valve (fuel off). Always follow this order for maximum safety.","usersAnswer":""},{"id":12,"question":"What is the position of the right wrist for good riding posture?","answer":"Flat wrist with fingers around the throttle.","options":["Slightly bent wrist with knuckles pointing to the sky.","Slightly bent wrist with knuckles pointing to the ground.","Bent wrist with knuckles pointing to the ground."],"image":null,"explanation":"Arms should be relaxed and bent. Keep your fingers around the throttle with your wrist flat.","usersAnswer":""},{"id":13,"question":"How do you initiate motorcycle lean at speeds HIGHER than walking speed?","answer":"Press (forward or down) the handgrip on the same side of the intended turn.","options":["Lean the motorcycle and turn the handlebars in the direction you want to go.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"This is called countersteering because the handlebars are initially moved opposite the direction of the turn.","usersAnswer":""},{"id":14,"question":"How do you initiate motorcycle lean at speeds LOWER THAN OR EQUAL TO walking speed?","answer":"Lean the motorcycle and turn the handlebars in the direction you want to go.","options":["Press (forward or down) the handgrip on the same side of the intended turn.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"At lower speeds, lean the motorcycle and turn the handlebars in the direction you want to go.","usersAnswer":""},{"id":15,"question":"What is the three-step strategy for curves?","answer":"Search, Setup, Smooth","options":["Stop, Look, Go.","Swing, Swerve, Speed.","Slow, Swing, Speed."],"image":null,"explanation":"Search: while approaching and in curve (for obstacles, vehicles, etc.), Setup: Adjust speed, lane position, Smooth: No jerky movements.","usersAnswer":""},{"id":16,"question":"In what type of turn does counterweighting help?","answer":"For slow, tight turns.","options":["For fast, wide turns.","For graveled roads.","For off roads."],"image":null,"explanation":"Counterweighting (leaning independently from motorcycle) permits more motorcycle lean for a sharper turning radius. Suitable for slow, tight turns.","usersAnswer":""},{"id":17,"question":"What gear should you be in when coming to a stop?","answer":"First gear.","options":["Neutral.","Gear at the time of braking.","Second gear."],"image":null,"explanation":"You should be in first gear by the time you stop. It allows us to move again quickly if required.","usersAnswer":""},{"id":18,"question":"How should the handlebars be positioned when coming to a stop?","answer":"Handlebars should be centered.","options":["Turn the handlebars to the right.","Turn the handlebars to the left.","Handlebars can be in any direction."],"image":null,"explanation":"Handlebars should be squared (center the steering) so the motorcycle is easier to hold up.","usersAnswer":""},{"id":19,"question":"Which of the following statements is TRUE?","answer":"Front brake has more stopping power than rear brake.","options":["Rear brake has more stopping power than front brake.","Both brakes have equal stopping power.","None of the above."],"image":null,"explanation":"Front brake provides 70% or more stopping power because, forward weight shift pushes the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":20,"question":"How does the motorcycle\'s weight shift during braking?","answer":"Weight shifts forwards.","options":["Weight shifts backwards.","There is no weight shift.","Weight shifts to the right."],"image":null,"explanation":"During braking weight shifts forward, pushing the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":21,"question":"How do you stop in a curve?","answer":"Apply both brakes and straighten the motorcycle.","options":["Use rear brakes only.","Use front brakes only.","Use engine braking for stopping in curves."],"image":null,"explanation":"When braking to stop in a curve, gradually apply both brakes as you straighten the motorcycle.","usersAnswer":""},{"id":22,"question":"Why do you change gears?","answer":"To match engine speed (RPM) to road speed.","options":["To save fuel.","To gain traction.","To stop the motorcycle from tipping over."],"image":null,"explanation":"Lower gears are used for lower speeds, and higher gears are used for higher speeds.","usersAnswer":""},{"id":23,"question":"What is engine braking?","answer":"Slowing down by shifting to a lower gear and easing out the clutch lever.","options":["Shutting down the engine using engine cut-ff switch.","Slowing down by using clutch and rear brake.","Slowing down by using clutch and front brake."],"image":null,"explanation":"To use engine braking, shift down one gear at a time and ease out the clutch lever through the friction zone.","usersAnswer":""},{"id":24,"question":"What is the position of the clutch lever when making a stop?","answer":"Fully squeezed.","options":["Any position.","Squeezed halfway through.","Fully open."],"image":null,"explanation":"When making a complete stop, the clutch lever must be fully squeezed to disconnect power to the rear wheel.","usersAnswer":""},{"id":25,"question":"What does each letter in T-CLOCS stand for?","answer":"Tires and Wheels, Controls, Lights and Mirrors, Oil, Chasis, Stands.","options":["Tires, Clutch, Level, Outdoor conditions, Chase, Swerve.","Try Close Leaning Or Close Swerving.","Temperature, Coolant, Liquid, Oil, Clutch, Stands."],"image":null,"explanation":"T-CLOCS is a pre-ride inspection routine to ensure safety.","usersAnswer":""},{"id":26,"question":"What type of injury accounts for the majority of motorcycle-related deaths?","answer":"Head injury.","options":["Shoulder injury.","Chest injury.","Injuries to arms and legs."],"image":null,"explanation":"A head injury is the primary cause of deatch for riders.","usersAnswer":""},{"id":27,"question":"What is hypothermia?","answer":"Lower than normal body temperature.","options":["Higher than normal body temperature.","Normal body temperature.","Cyclical rise and drop in body temperature."],"image":null,"explanation":"Hypothermia is lower than normal body temperature and causes loss of concentration and slower reactions.","usersAnswer":""},{"id":28,"question":"Where do most crashes occur?","answer":"Curves and intersections.","options":["Straight highways.","When entering road from driveways.","Parking lots."],"image":null,"explanation":"Crashes mostly occur in curves and intersections because, the vehicle is less stable, you are more vulnerable and less visible.","usersAnswer":""},{"id":29,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":30,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":31,"question":"Which of the following is NOT a visual lead time of RiderRadar?","answer":"7-second braking time and distance.","options":["2-second following time and distance.","4-second urgent time and distance.","12-secoond anticipation time and distance."],"image":null,"explanation":"These times help under what is doiong on all around. Consider using greater times and distance.","usersAnswer":""},{"id":32,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":33,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":34,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":35,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":36,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":37,"question":"What should you NOT do when changing lanes?","answer":"Rush into the open spot by increasing the speed sharply.","options":["Check to see the space you want remains open.","Use a head check to see what is not seen in your mirrors.","Signal in advance and encourage driver behind to give you space."],"image":null,"explanation":"Never rush into any empty spot. Safety must not be compromised for speed.","usersAnswer":""},{"id":38,"question":"What should you NOT do when there is a tailgater?","answer":"Brake check the tailgater.","options":["Use one of the brake controls to flash the brake light.","Change lanes.","Increase your distance from vehicles ahead of you so you have more time and space to stop."],"image":null,"explanation":"Brake checking the tailgater is unsafe and should never be attempted.","usersAnswer":""},{"id":39,"question":"When riding in groups, what formation should be used on straights?","answer":"Staggered.","options":["Single-file.","Side by Side.","Any formation."],"image":null,"explanation":"Use a staggered formation unless there is a need for other formations.","usersAnswer":""},{"id":40,"question":"When riding in groups, what formation should be used in curves?","answer":"Single-file with 2-second following distance.","options":["Staggered.","Side by Side.","Any formation."],"image":null,"explanation":"Single-file formation with 2-second following distance gives more maneuvering room and increases safety.","usersAnswer":""},{"id":41,"question":"What is the best way to achieve the shortest braking distance in straight line?","answer":"Squeeze the clutch lever and apply both brakes at the same time.","options":["Apply the rear brake firmly.","Apply the front brake firmly.","Apply the rear brake first and then the front brake."],"image":null,"explanation":"This way of use of controls produces maximum braking without skidding either wheel.","usersAnswer":""},{"id":42,"question":"What is threshold braking?","answer":"The ability to use the brakes fully without producing a skid.","options":["Firmly applying the brakes at the shortest time.","Gently tapping the brakes multiple times.","Applying partial brakes without using clutch."],"image":null,"explanation":"This kind of braking takes a special feel. It is important to squeeze, not grab, the front brake lever and press, not jab, the rear brake pedal.","usersAnswer":""},{"id":43,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""},{"id":44,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""}]')},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++le.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==l&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const w="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function y(...e){return b(e)}function b(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:v}let _=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(l)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[w](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const S=x;class E extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends g{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(e){const t=new A(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew A(e,t),e})();class A extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}class R extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=P(),M=e=>t=>{const n=e[D]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},U=e=>t=>{const n=e[w]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const V=e=>{if(e instanceof _)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[w])return U(e);if(L(e))return N(e);if(j(e))return O(e);if(e&&"function"==typeof e[D])return M(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new R(e,n,r)){if(!s.closed)return V(t)(s)}class H extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function $(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new q(e,t))}}class q{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new z(e,this.project,this.thisArg))}}class z extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function B(e,t){return new _(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:N(e))}function W(e,t){if(!t)return e instanceof _?e:new _(V(e));if(null!=e){if(function(e){return e&&"function"==typeof e[w]}(e))return function(e,t){return new _(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[w]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:U(e))}(e,t);if(j(e))return function(e,t){return new _(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:O(e))}(e,t);if(L(e))return B(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new _(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const i=s.next();e=i.value,t=i.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Q((n,r)=>W(e(n,r)).pipe($((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Z(e,this.project,this.concurrent))}}class Z extends H{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return Q(K,e)}function J(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends _{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const le=oe("Inject",e=>({token:e})),ae=oe("Optional"),ue=oe("Self"),ce=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const we=de({__forward_ref__:de});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return me(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(we)&&t.__forward_ref__===ve?t():e}const be="undefined"!=typeof globalThis&&globalThis,_e="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Se=be||xe||_e||Ce;class Ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new Ee("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ie="ngTokenPath",Re=/\n/gm,Ne="\u0275",Oe="__source",Pe=de({provide:String,useValue:de});let De,Me=void 0;function Ue(e){const t=Me;return Me=e,t}function Le(e,t=he.Default){return(De||function(e,t=he.Default){if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):Me.get(e,t&he.Optional?null:void 0,t)})(e,t)}class je{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function Ve(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Re,"\n ")}`}class Fe{}class He{}function $e(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const ze=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Be=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))(),We="ngDebugContext",Qe="ngOriginalError",Ge="ngErrorLogger";function Ze(e){return e[We]}function Ke(e){return e[Qe]}function Ye(e,...t){e.error(...t)}class Je{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ge]||Ye}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ze(e)?Ze(e):this._findContext(Ke(e)):null}_findOriginalError(e){let t=Ke(e);for(;t&&Ke(t);)t=Ke(t);return t}}let Xe=!0,et=!1;function tt(){return et=!0,Xe}class nt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0it(e.trim())).join(", ")),this.buf.push(" ",t,'="',bt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();dt.hasOwnProperty(t)&&!at.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(bt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const vt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yt=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(vt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let _t;function Ct(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const xt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class St{}const Et=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Tt=/^url\(([^)]+)\)$/,kt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let It=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Rt(),e})();const Rt=(...e)=>{},Nt=new Ee("The presence of this token marks an injector as being the root injector."),Ot=function(e,t,n){return new Vt(e,t,n)};let Pt=(()=>{class e{static create(e,t){return Array.isArray(e)?Ot(e,t,""):Ot(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new je,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>Le(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Dt=function(e){return e},Mt=[],Ut=Dt,Lt=function(){return Array.prototype.slice.call(arguments)},jt="\u0275";class Vt{constructor(e,t=Pt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Pt,{token:Pt,fn:Dt,deps:Mt,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Dt,deps:Mt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;re.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ft(e){return Ht("Cannot mix multi providers and regular providers",e)}function Ht(e,t){return new Error(Ve(e,t,"StaticInjectorError"))}const $t=new Ee("AnalyzeForEntryComponents");let qt=null;function zt(){if(!qt){const e=Se.Symbol;if(e&&e.iterator)qt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new rn,e})();class on{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>cn(e),e})();const cn=an;class hn{}class dn{}const pn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gn(),e})();const gn=an;class mn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const wn=new mn("8.2.0");class vn{constructor(){}supports(e){return Gt(e)}create(e){return new bn(e)}}const yn=(e,t)=>t;class bn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Bt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Bt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Bt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Bt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new _n(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new xn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class _n{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Cn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Bt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class xn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Cn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new kn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Bt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class kn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let An=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new vn])}),e})(),In=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new En])}),e})();const Rn=[new En],Nn=new An([new vn]),On=new In(Rn);let Pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Dn(e,un),e})();const Dn=an;let Mn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Un(e,un),e})();const Un=an;function Ln(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return jn(n,t),n}(s,e)}function jn(e,t){e[We]=t,e[Ge]=t.logError.bind(t)}function Vn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Fn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function Hn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function $n(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}const Qn={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},Gn=()=>{},Zn=new Map;function Kn(e){let t=Zn.get(e);return t||(t=me(e)+"_"+Zn.size,Zn.set(e,t)),t}const Yn="$$undefined",Jn="$$empty";function Xn(e){return{id:Yn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let er=0;function tr(e,t,n,r){return!(!(2&e.state)&&Bt(e.oldValues[t.bindingIndex+n],r))}function nr(e,t,n,r){return!!tr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function rr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Wt(s,r)){const i=t.bindings[n].name;throw Ln(Qn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function sr(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ir(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function or(e,t,n,r){try{return sr(33554432&e.def.nodes[t].flags?qn(e,t).componentView:e),Qn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function lr(e){return e.parent?qn(e.parent,e.parentNodeDef.nodeIndex):null}function ar(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return qn(e,t.nodeIndex).renderElement;case 2:return $n(e,t.nodeIndex).renderText}}function cr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function hr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function dr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Oe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Kn(n)}})}function fr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===ze.Native?qn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const gr=new WeakMap;function mr(e){let t=gr.get(e);return t||((t=e(()=>Gn)).factory=e,gr.set(e,t)),t}function wr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),vr(e,t,0,e.def.nodes.length-1,n,r,s)}function vr(e,t,n,r,s,i,o){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&br(e,n,t,s,i,o),l+=n.childCount}}function yr(e,t,n,r,s,i){let o=e;for(;o&&!cr(o);)o=o.parent;const l=o.parent,a=ar(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&br(l,e,n,r,s,i),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=kr,e._providers[n]=Pr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ue(r)}var s,i}function Pr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Or(e,n[0]));case 2:return new t(Or(e,n[0]),Or(e,n[1]));case 3:return new t(Or(e,n[0]),Or(e,n[1]),Or(e,n[2]));default:const s=new Array(r);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,qe(n,t),Qn.dirtyParentQueries(r),Ur(r),r}function Mr(e,t,n){const r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);wr(n,2,s,i,void 0)}function Ur(e){wr(e,3,null,null,void 0)}const Lr=new Object;function jr(e,t,n,r,s,i){return new Vr(e,t,n,r,s,i)}class Vr extends en{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=mr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Qn.createRootView(e,t||[],n,s,r,Lr),l=zn(o,i).instance;return n&&o.renderer.setAttribute(qn(o,0).renderElement,"ng-version",wn.full),new Fr(o,new zr(o),l)}}class Fr extends Xt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new un(qn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Hr(e,t,n){return new $r(e,t,n)}class $r{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new un(this._data.renderElement)}get injector(){return new Gr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ar(e),e=e.parent;return e?new Gr(e,t):new Gr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Dr(this._data,e);Qn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new zr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof ln||(s=i.get(Fe));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,$e(s,n,r),function(e,t){const n=lr(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),Qn.dirtyParentQueries(r),Mr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const s=e.viewContainer._embeddedViews,i=s[n];qe(s,n),null==r&&(r=s.length),$e(s,r,i),Qn.dirtyParentQueries(i),Ur(i),Mr(e,r>0?s[r-1]:null,i)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Dr(this._data,e);t&&Qn.destroyView(t)}detach(e){const t=Dr(this._data,e);return t?new zr(t):null}}function qr(e){return new zr(e)}class zr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return wr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){sr(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Qn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ur(this._view),Qn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Br(e,t){return new Wr(e,t)}class Wr extends Pn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new zr(Qn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new un(qn(this._parentView,this._def.nodeIndex).renderElement)}}function Qr(e,t){return new Gr(e,t)}class Gr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Pt.THROW_IF_NOT_FOUND){return Qn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Kn(e)},t)}}function Zr(e){return new Kr(e.renderer)}class Kr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=xr(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const Xr=Kn(hn),es=Kn(fn),ts=Kn(un),ns=Kn(Mn),rs=Kn(Pn),ss=Kn(It),is=Kn(Pt),os=Kn(Te);function ls(e,t,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return us(e,t|=16384,n,r,s,s,i,a,u)}function as(e,t,n,r,s){return us(-1,e,t,0,n,r,s)}function us(e,t,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=dr(n);a||(a=[]),l||(l=[]),i=ye(i);const d=pr(o,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Sr(l),outputs:a,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function cs(e,t){return fs(e,t)}function hs(e,t){let n=e;for(;n.parent&&!cr(n);)n=n.parent;return gs(n.parent,ar(n),!0,t.provider.value,t.provider.deps)}function ds(e,t){const n=gs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;ror(e,t,n,r)}function fs(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return gs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ws(e,t,n,s[0]));case 2:return r(ws(e,t,n,s[0]),ws(e,t,n,s[1]));case 3:return r(ws(e,t,n,s[0]),ws(e,t,n,s[1]),ws(e,t,n,s[2]));default:const o=Array(i);for(let r=0;rBe}),Ss={},Es=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ts=void 0;var ks=["en",[["a","p"],["AM","PM"],Ts],[["AM","PM"],Ts,Ts],[["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"]],Ts,[["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"]],Ts,[["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}",Ts,"{1} 'at' {0}",Ts],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function As(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Ss[t];if(n)return n;const r=t.split("-")[0];if(n=Ss[r])return n;if("en"===r)return ks;throw new Error(`Missing locale data for the locale "${e}".`)}const Is="en-US";let Rs=Is;class Ns extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Os(){return this._results[zt()]()}class Ps{constructor(){this.dirty=!0,this._results=[],this.changes=new Ns,this.length=0;const e=zt(),t=Ps.prototype;t[e]||(t[e]=Os)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Us=new Ee("AppId");function Ls(){return`${js()}${js()}${js()}`}function js(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vs=new Ee("Platform Initializer"),Fs=new Ee("Platform ID"),Hs=new Ee("appBootstrapListener");class $s{log(e){console.log(e)}warn(e){console.warn(e)}}const qs=new Ee("LocaleId");function zs(){throw new Error("Runtime compiler is not loaded")}const Bs=zs,Ws=zs,Qs=zs,Gs=zs;class Zs{constructor(){this.compileModuleSync=Bs,this.compileModuleAsync=Ws,this.compileModuleAndAllComponentsSync=Qs,this.compileModuleAndAllComponentsAsync=Gs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ks{}let Ys,Js;function Xs(){const e=Se.wtf;return!(!e||!(Ys=e.trace)||(Js=Ys.events,0))}const ei=Xs(),ti=ei?function(e,t=null){return Js.createScope(e,t)}:(e,t)=>(function(e,t){return null}),ni=ei?function(e,t){return Ys.leaveScope(e,t),t}:(e,t)=>t,ri=(()=>Promise.resolve(0))();function si(e){"undefined"==typeof Zone?ri.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ii{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ns(!1),this.onMicrotaskEmpty=new Ns(!1),this.onStable=new Ns(!1),this.onError=new Ns(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return ui(t),e.invokeTask(r,s,i,o)}finally{ci(t)}},onInvoke:(e,n,r,s,i,o,l)=>{try{return ui(t),e.invoke(r,s,i,o,l)}finally{ci(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,ai(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ii.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ii.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,li,oi,oi);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function oi(){}const li={};function ai(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ui(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ci(e){e._nesting--,ai(e)}class hi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ns,this.onMicrotaskEmpty=new Ns,this.onStable=new Ns,this.onError=new Ns}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class di{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ii.assertNotInAngularZone(),si(()=>{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())si(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}let pi=(()=>{class e{constructor(){this._applications=new Map,mi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return mi.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class fi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let gi,mi=new fi,wi=function(e,t,n){return e.get(Ks).createCompiler([t]).compileModuleAsync(n)},vi=function(e){return e instanceof ln};const yi=new Ee("AllowMultipleToken");class bi{constructor(e,t){this.name=e,this.token=t}}function _i(e,t,n=[]){const r=`Platform: ${t}`,s=new Ee(r);return(t=[])=>{let i=Ci();if(!i||i.injector.get(yi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(gi&&!gi.destroyed&&!gi.injector.get(yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gi=e.get(xi);const t=e.get(Vs,null);t&&t.forEach(e=>e())}(Pt.create({providers:e,name:r}))}return function(e){const t=Ci();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Ci(){return gi&&!gi.destroyed?gi:null}class xi{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new hi:("zone.js"===s?void 0:s)||new ii({enableLongStackTrace:tt()}),r=[{provide:ii,useValue:n}];var s;return n.run(()=>{const t=Pt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Je,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(e){Rs=e.toLowerCase().replace(/_/g,"-")}(s.injector.get(qs,Is)),s.onDestroy(()=>Ti(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Kt(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Ms);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Si({},t);return wi(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ei);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Si(e,t){return Array.isArray(t)?t.reduce(Si,e):Object.assign({},e,t)}let Ei=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new _(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ii.assertNotInAngularZone(),si(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ii.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof _?e[0]:Y(t)(B(e,n))}(o,l.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=vi(n)?null:this._injector.get(Fe),s=n.create(Pt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(di,null);return i&&s.injector.get(pi).registerApplication(s.location.nativeElement,i),this._loadComponent(s),tt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ni(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ti(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Hs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ti(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ti("ApplicationRef#tick()"),e})();function Ti(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ki{}const Ai=!1,Ii="#",Ri="NgFactory";class Ni{}const Oi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Pi{constructor(e,t){this._compiler=e,this._config=t||Oi}load(e){return!Ai&&this._compiler instanceof Zs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split(Ii);return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Di(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split(Ii),s=Ri;return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Di(e,t,r))}}function Di(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Mi{constructor(e,t){this.name=e,this.callback=t}}class Ui{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Li&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Li extends Ui{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Li&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Li&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Li&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Li)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ji=new Map,Vi=function(e){return ji.get(e)||null};function Fi(e){ji.set(e.nativeNode,e)}const Hi=_i(null,"core",[{provide:Fs,useValue:"unknown"},{provide:xi,deps:[Pt]},{provide:pi,deps:[]},{provide:$s,deps:[]}]);function $i(){return Nn}function qi(){return On}function zi(e){return e||"en-US"}function Bi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Wi{constructor(e){}}function Qi(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=dr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?mr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Gn},provider:null,text:null,query:null,ngContent:null}}function Gi(e,t,n,r,s,i,o=[],l,a,u,c,h){u||(u=Gn);const{matchedQueries:d,references:p,matchedQueryIds:f}=dr(n);let g=null,m=null;i&&([g,m]=xr(i)),l=l||[];const w=new Array(l.length);for(let b=0;b{const[n,r]=xr(e);return[n,r,t]});return h=function(e){if(e&&e.id===Yn){const t=null!=e.encapsulation&&e.encapsulation!==ze.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${er++}`:Jn}return e&&e.id===Jn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:w,bindingFlags:Sr(w),outputs:v,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Gn},provider:null,text:null,query:null,ngContent:null}}function Zi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=fr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===ze.ShadowDom);if(r.attrs)for(let l=0;lor(e,t,n,r)}function Ji(e,t,n,r){if(!nr(e,t,n,r))return!1;const s=t.bindings[n],i=qn(e,t.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=e.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,o,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(xt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,l,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,l,r)}return!0}function Xi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&hr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Wn(e,s).setDirty(),!(1&r.flags&&s+r.childCount0)u=e,co(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&co(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Gn,updateRenderer:r||Gn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function co(e){return 0!=(1&e.flags)&&null===e.element.name}function ho(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function po(e,t,n,r){const s=mo(e.root,e.renderer,e,t,n);return wo(s,e.component,r),vo(s),s}function fo(e,t,n){const r=mo(e,e.renderer,null,null,t);return wo(r,n,n),vo(r),r}function go(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,mo(e.root,i,e,t.element.componentProvider,n)}function mo(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function wo(e,t,n){e.component=t,e.context=n}function vo(e){let t;cr(e)&&(t=qn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s0&&Ji(e,t,0,n)&&(p=!0),d>1&&Ji(e,t,1,r)&&(p=!0),d>2&&Ji(e,t,2,s)&&(p=!0),d>3&&Ji(e,t,3,i)&&(p=!0),d>4&&Ji(e,t,4,o)&&(p=!0),d>5&&Ji(e,t,5,l)&&(p=!0),d>6&&Ji(e,t,6,a)&&(p=!0),d>7&&Ji(e,t,7,u)&&(p=!0),d>8&&Ji(e,t,8,c)&&(p=!0),d>9&&Ji(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,l,a,u,c,h);case 2:return function(e,t,n,r,s,i,o,l,a,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&nr(e,t,0,n)&&(d=!0),f>1&&nr(e,t,1,r)&&(d=!0),f>2&&nr(e,t,2,s)&&(d=!0),f>3&&nr(e,t,3,i)&&(d=!0),f>4&&nr(e,t,4,o)&&(d=!0),f>5&&nr(e,t,5,l)&&(d=!0),f>6&&nr(e,t,6,a)&&(d=!0),f>7&&nr(e,t,7,u)&&(d=!0),f>8&&nr(e,t,8,c)&&(d=!0),f>9&&nr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ao(n,p[0])),f>1&&(d+=ao(r,p[1])),f>2&&(d+=ao(s,p[2])),f>3&&(d+=ao(i,p[3])),f>4&&(d+=ao(o,p[4])),f>5&&(d+=ao(l,p[5])),f>6&&(d+=ao(a,p[6])),f>7&&(d+=ao(u,p[7])),f>8&&(d+=ao(c,p[8])),f>9&&(d+=ao(h,p[9]));const g=$n(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,l,a,u,c,h);case 16384:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=zn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&tr(e,t,0,n)&&(f=!0,g=ys(e,d,t,0,n,g)),m>1&&tr(e,t,1,r)&&(f=!0,g=ys(e,d,t,1,r,g)),m>2&&tr(e,t,2,s)&&(f=!0,g=ys(e,d,t,2,s,g)),m>3&&tr(e,t,3,i)&&(f=!0,g=ys(e,d,t,3,i,g)),m>4&&tr(e,t,4,o)&&(f=!0,g=ys(e,d,t,4,o,g)),m>5&&tr(e,t,5,l)&&(f=!0,g=ys(e,d,t,5,l,g)),m>6&&tr(e,t,6,a)&&(f=!0,g=ys(e,d,t,6,a,g)),m>7&&tr(e,t,7,u)&&(f=!0,g=ys(e,d,t,7,u,g)),m>8&&tr(e,t,8,c)&&(f=!0,g=ys(e,d,t,8,c,g)),m>9&&tr(e,t,9,h)&&(f=!0,g=ys(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Hn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&nr(e,t,0,n)&&(p=!0),f>1&&nr(e,t,1,r)&&(p=!0),f>2&&nr(e,t,2,s)&&(p=!0),f>3&&nr(e,t,3,i)&&(p=!0),f>4&&nr(e,t,4,o)&&(p=!0),f>5&&nr(e,t,5,l)&&(p=!0),f>6&&nr(e,t,6,a)&&(p=!0),f>7&&nr(e,t,7,u)&&(p=!0),f>8&&nr(e,t,8,c)&&(p=!0),f>9&&nr(e,t,9,h)&&(p=!0),p){const p=Bn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=l),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=l),f>6&&(g[d[6].name]=a),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,l);break;case 7:g=e.transform(r,s,i,o,l,a);break;case 8:g=e.transform(r,s,i,o,l,a,u);break;case 9:g=e.transform(r,s,i,o,l,a,u,c);break;case 10:g=e.transform(r,s,i,o,l,a,u,c,h)}}p.value=g}return p}(e,t,n,r,s,i,o,l,a,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s0&&rr(e,t,0,n),d>1&&rr(e,t,1,r),d>2&&rr(e,t,2,s),d>3&&rr(e,t,3,i),d>4&&rr(e,t,4,o),d>5&&rr(e,t,5,l),d>6&&rr(e,t,6,a),d>7&&rr(e,t,7,u),d>8&&rr(e,t,8,c),d>9&&rr(e,t,9,h)}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){for(let r=0;r{const r=Vo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Fo.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Fo.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:pr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Kn(s)]=t}})}}(e=e.factory(()=>Gn)),e):e}(r))}const Vo=new Map,Fo=new Map,Ho=new Map;function $o(e){let t;Vo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Fo.set(e.token,e)}function qo(e,t){const n=mr(t.viewDefFactory),r=mr(n.nodes[0].element.componentView);Ho.set(e,r)}function zo(){Vo.clear(),Fo.clear(),Ho.clear()}function Bo(e){if(0===Vo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rGn);for(let r=0;r"-"+e[1].toLowerCase())}`)]=At(l))}const r=t.parent,l=qn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function ol(e,t,n,r){xo(e,t,n,...r)}function ll(e,t){for(let n=t;n++i===s?e.error.bind(e,...t):Gn),inew ul(e,t),handleEvent:nl,updateDirectives:rl,updateRenderer:sl}:{setCurrentNode:()=>{},createRootView:Po,createEmbeddedView:po,createComponentView:go,createNgModuleRef:Yr,overrideProvider:Gn,overrideComponentView:Gn,clearOverrides:Gn,checkAndUpdateView:bo,checkNoChangesView:yo,destroyView:Eo,createDebugContext:(e,t)=>new ul(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Wo:Qo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Wo:Qo,e)};Qn.setCurrentNode=e.setCurrentNode,Qn.createRootView=e.createRootView,Qn.createEmbeddedView=e.createEmbeddedView,Qn.createComponentView=e.createComponentView,Qn.createNgModuleRef=e.createNgModuleRef,Qn.overrideProvider=e.overrideProvider,Qn.overrideComponentView=e.overrideComponentView,Qn.clearOverrides=e.clearOverrides,Qn.checkAndUpdateView=e.checkAndUpdateView,Qn.checkNoChangesView=e.checkNoChangesView,Qn.destroyView=e.destroyView,Qn.resolveDep=ws,Qn.createDebugContext=e.createDebugContext,Qn.handleEvent=e.handleEvent,Qn.updateDirectives=e.updateDirectives,Qn.updateRenderer=e.updateRenderer,Qn.dirtyParentQueries=Xi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(mr(this._ngModuleDefFactory));return Qn.createNgModuleRef(this.moduleType,e||Pt.NULL,this._bootstrapComponents,t)}}class wl{}class vl{constructor(){this.title="Welcome to Motorcycle Tests!",this.termsAgreed=!1,this.termsReadAndAgreed=!1}startTestButtonClicked(){this.termsReadAndAgreed&&(this.title="Basic Rider Knowledge Practice Test",this.termsAgreed=!0)}checked(){this.termsReadAndAgreed=!this.termsReadAndAgreed}}class yl{}const bl=new Ee("Location Initialized");class _l{}const Cl=new Ee("appBaseHref");class xl{constructor(e,t){this._subject=new Ns,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=xl.stripTrailingSlash(Sl(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+xl.normalizeQueryParams(t))}normalize(e){return xl.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Sl(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xl.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xl.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function Sl(e){return e.replace(/\/index.html$/,"")}class El extends _l{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=xl.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class Tl extends _l{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return xl.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+xl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+xl.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const kl=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),Al=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Il=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Rl(e,t){const n=As(e),r=n[Es.NumberSymbols][t];if(void 0===r){if(t===Il.CurrencyDecimal)return n[Es.NumberSymbols][Il.Decimal];if(t===Il.CurrencyGroup)return n[Es.NumberSymbols][Il.Group]}return r}const Nl=function(e){return As(e)[Es.PluralCase]},Ol=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Pl=22,Dl=".",Ml="0",Ul=";",Ll=",",jl="#";function Vl(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}const Fl=new Ee("UseV4Plurals");class Hl{}class $l extends Hl{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Nl(t||this.locale)(e)){case Al.Zero:return"zero";case Al.One:return"one";case Al.Two:return"two";case Al.Few:return"few";case Al.Many:return"many";default:return"other"}}}class ql{}class zl{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Gt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let Bl=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Wl extends Bl{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class Ql{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Gl{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){tt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ql(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Zl(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new Zl(e,s);t.push(i)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class Zl{constructor(e,t){this.record=e,this.view=t}}class Kl{constructor(e,t){this._viewContainer=e,this._context=new Yl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Jl("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Jl("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}class Yl{constructor(){this.$implicit=null,this.ngIf=null}}function Jl(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}class Xl{constructor(e){this._locale=e}transform(e,t,n){if(function(e){return null==e||""===e||e!=e}(e))return null;n=n||this._locale;try{return function(e,t,n){return function(e,t,n,r,s,i,o=!1){let l="",a=!1;if(isFinite(e)){let u=function(t){let n,r,s,i,o,l=Math.abs(e)+"",a=0;for((r=l.indexOf(Dl))>-1&&(l=l.replace(Dl,"")),(s=l.search(/e/i))>0?(r<0&&(r=s),r+=+l.slice(s+1),l=l.substring(0,s)):r<0&&(r=l.length),s=0;l.charAt(s)===Ml;s++);if(s===(o=l.length))n=[0],r=1;else{for(o--;l.charAt(o)===Ml;)o--;for(r-=s,n=[],i=0;s<=o;s++,i++)n[i]=Number(l.charAt(s))}return r>Pl&&(n=n.splice(0,Pl-1),a=r-1,r=1),{digits:n,exponent:a,integerLen:r}}();o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let c=t.minInt,h=t.minFrac,d=t.maxFrac;if(i){const e=i.match(Ol);if(null===e)throw new Error(`${i} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(c=Vl(t)),null!=n&&(h=Vl(n)),null!=r?d=Vl(r):null!=n&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,s=r.length-e.integerLen;const i=Math.min(Math.max(t,s),n);let o=i+e.integerLen,l=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;s=u?r.pop():a=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(u,h,d);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(a=p.every(e=>!e);f0?m=p.splice(f,p.length):(m=p,p=[0]);const w=[];for(p.length>=t.lgSize&&w.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)w.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&w.unshift(p.join("")),l=w.join(Rl(n,r)),m.length&&(l+=Rl(n,s)+m.join("")),g&&(l+=Rl(n,Il.Exponential)+"+"+g)}else l=Rl(n,Il.Infinity);return e<0&&!a?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Ul),s=r[0],i=r[1],o=-1!==s.indexOf(Dl)?s.split(Dl):[s.substring(0,s.lastIndexOf(Ml)+1),s.substring(s.lastIndexOf(Ml)+1)],l=o[0],a=o[1]||"";n.posPre=l.substr(0,l.indexOf(jl));for(let c=0;c{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new sa(Le(ta),window,Le(Je))}),e})();class sa{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const ia=new _(e=>e.complete());function oa(e){return e?function(e){return new _(t=>e.schedule(()=>t.complete()))}(e):ia}function la(e){const t=new _(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function aa(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return oa(t);case 1:return t?B(e,t):la(e[0]);default:return B(e,t)}}class ua extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}function ca(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ca.prototype=Object.create(Error.prototype);const ha=ca,da={};class pa{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new fa(e,this.resultSelector))}}class fa extends H{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(da),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(r){return void t.error(r)}return(n?W(n):oa()).subscribe(t)})}function ma(){return Y(1)}function wa(e,t){return function(n){return n.lift(new va(e,t))}}class va{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new ya(e,this.predicate,this.thisArg))}}class ya extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function ba(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ba.prototype=Object.create(Error.prototype);const _a=ba;function Ca(e){return function(t){return 0===e?oa():t.lift(new xa(e))}}class xa{constructor(e){if(this.total=e,this.total<0)throw new _a}call(e,t){return t.subscribe(new Sa(e,this.total))}}class Sa extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;sEa({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function Ia(e=null){return t=>t.lift(new Ra(e))}class Ra{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Na(e,this.defaultValue))}}class Na extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Oa(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wa((t,n)=>e(t,n,r)):K,Ca(1),n?Ia(t):Aa(()=>new ha))}function Pa(e){return function(t){const n=new Da(e),r=t.lift(n);return n.caught=r}}class Da{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Ma(e,this.selector,this.caught))}}class Ma extends H{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new R(this,void 0,void 0);this.add(r),F(this,n,void 0,void 0,r)}}}function Ua(e){return t=>0===e?oa():t.lift(new La(e))}class La{constructor(e){if(this.total=e,this.total<0)throw new _a}call(e,t){return t.subscribe(new ja(e,this.total))}}class ja extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Va(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wa((t,n)=>e(t,n,r)):K,Ua(1),n?Ia(t):Aa(()=>new ha))}class Fa{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Ha(e,this.predicate,this.thisArg,this.source))}}class Ha extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function $a(e,t){return"function"==typeof t?n=>n.pipe($a((n,r)=>W(e(n,r)).pipe($((e,s)=>t(n,e,r,s))))):t=>t.lift(new qa(e))}class qa{constructor(e){this.project=e}call(e,t){return t.subscribe(new za(e,this.project))}}class za extends H{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new R(this,void 0,void 0);this.destination.add(s),this.innerSubscription=F(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function Ba(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Wa(e,t,n))}}class Wa{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Qa(e,this.accumulator,this.seed,this.hasSeed))}}class Qa extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Ga(e,t){return Q(e,t,1)}class Za{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Ka(e,this.callback))}}class Ka extends g{constructor(e,t){super(e),this.add(new d(t))}}let Ya=null;function Ja(){return Ya}class Xa{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class eu extends Xa{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{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const tu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},nu=3,ru={"\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"},su={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"},iu=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class ou extends eu{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new ou,Ya||(Ya=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return tu}contains(e,t){return iu.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{class e extends yl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Ja().getLocation(),this._history=Ja().getHistory()}getBaseHrefFromDOM(){return Ja().getBaseHref(this._doc)}onPopState(e){Ja().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Ja().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){uu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){uu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=()=>[{type:void 0,decorators:[{type:le,args:[ta]}]}],e})();const hu=new Ee("TRANSITION_ID"),du=[{provide:Ds,useFactory:function(e,t,n){return()=>{n.get(Ms).donePromise.then(()=>{const n=Ja();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[hu,ta,Pt],multi:!0}];class pu{static init(){var e;e=new pu,mi=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Ja().isShadowRoot(t)?this.findTestabilityInTree(e,Ja().getHost(t),!0):this.findTestabilityInTree(e,Ja().parentElement(t),!0):null}}function fu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const gu=(()=>({ApplicationRef:Ei,NgZone:ii}))();function mu(e){return Vi(e)}const wu=new Ee("EventManagerPlugins");class vu{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class _u extends bu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Ja().remove(e))}}const Cu={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/"},xu=/%COMP%/g,Su="_nghost-%COMP%",Eu="_ngcontent-%COMP%";function Tu(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class Au{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Iu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ze.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Ou(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case ze.Native:case ze.ShadowDom:return new Pu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Tu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class Iu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Cu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Cu[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Cu[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&pn.DashCase?e.style.setProperty(t,n,r&pn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&pn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Nu(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Nu(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,ku(n)):this.eventManager.addEventListener(e,t,ku(n))}}const Ru=(()=>"@".charCodeAt(0))();function Nu(e,t){if(e.charCodeAt(0)===Ru)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Ou extends Iu{constructor(e,t,n,r){super(e),this.component=n;const s=Tu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=Eu.replace(xu,r+"-"+n.id),this.hostAttr=Su.replace(xu,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Pu extends Iu{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ze.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Tu(r.id,r.styles,[]);for(let i=0;i"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Mu=Du("addEventListener"),Uu=Du("removeEventListener"),Lu={},ju="FALSE",Vu="ANGULAR",Fu="addEventListener",Hu="removeEventListener",$u="__zone_symbol__propagationStopped",qu="__zone_symbol__stopImmediatePropagation",zu=(()=>{const e="undefined"!=typeof Zone&&Zone[Du("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Bu=function(e){return!!zu&&zu.hasOwnProperty(e)},Wu=function(e){const t=Lu[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n0;s||(s=e[n]=[]);const o=Bu(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Uu];if(!r)return e[Hu].apply(e,[t,n,!1]);let s=Lu[t],i=s&&e[s];if(!i)return e[Hu].apply(e,[t,n,!1]);let o=!1;for(let l=0;l{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Xu=["alt","control","meta","shift"],ec={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class tc extends yu{constructor(e){super(e)}supports(e){return null!=tc.parseEventName(e)}addEventListener(e,t,n){const r=tc.parseEventName(t),s=tc.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ja().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=tc._normalizeKey(t.pop());let s="";if(Xu.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=Ja().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Xu.forEach(r=>{r!=n&&(0,ec[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{tc.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class nc{}class rc extends nc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case xt.NONE:return t;case xt.HTML:return t instanceof ic?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{_t=_t||new nt(e);let r=t?String(t):"";n=_t.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=_t.getInertBodyElement(r)}while(r!==i);const o=new wt,l=o.sanitizeChildren(Ct(n)||n);return tt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const e=Ct(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case xt.STYLE:return t instanceof oc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Tt);return t&&it(t[1])===t[1]||e.match(Et)&&function(e){let t=!0,n=!0;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Bc(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Wc(e){return Yt(e)?e:Kt(e)?W(Promise.resolve(e)):aa(e)}function Qc(e,t,n){return n?function(e,t){return $c(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Yc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length){return!!Yc(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Yc(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Yc(n.segments,e)&&!!n.children[Nc]&&t(n.children[Nc],r,i)}}(t,n,n.segments)}(e.root,t.root)}class Gc{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pc(this.queryParams)),this._queryParamMap}toString(){return th.serialize(this)}}class Zc{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Bc(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nh(this)}}class Kc{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Pc(this.parameters)),this._parameterMap}toString(){return ah(this)}}function Yc(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Jc(e,t){let n=[];return Bc(e.children,(e,r)=>{r===Nc&&(n=n.concat(t(e,r)))}),Bc(e.children,(e,r)=>{r!==Nc&&(n=n.concat(t(e,r)))}),n}class Xc{}class eh{parse(e){const t=new ph(e);return new Gc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return nh(t);if(n){const n=t.children[Nc]?e(t.children[Nc],!1):"",r=[];return Bc(t.children,(t,n)=>{n!==Nc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Jc(t,(n,r)=>r===Nc?[e(t.children[Nc],!1)]:[`${r}:${e(n,!1)}`]);return`${nh(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${sh(t)}=${sh(e)}`).join("&"):`${sh(t)}=${sh(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const th=new eh;function nh(e){return e.segments.map(e=>ah(e)).join("/")}function rh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sh(e){return rh(e).replace(/%3B/gi,";")}function ih(e){return rh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oh(e){return decodeURIComponent(e)}function lh(e){return oh(e.replace(/\+/g,"%20"))}function ah(e){return`${ih(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${ih(e)}=${ih(t[e])}`).join("")}`;var t}const uh=/^[^\/()?;=#]+/;function ch(e){const t=e.match(uh);return t?t[0]:""}const hh=/^[^=?&#]+/,dh=/^[^?&#]+/;class ph{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zc([],{}):new Zc([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Nc]=new Zc(e,t)),n}parseSegment(){const e=ch(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Kc(oh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ch(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=ch(this.remaining);e&&this.capture(n=e)}e[oh(t)]=oh(n)}parseQueryParam(e){const t=function(e){const t=e.match(hh);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(dh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=lh(t),s=lh(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ch(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Nc);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[Nc]:new Zc([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class fh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=gh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=gh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=mh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return mh(e,this._root).map(e=>e.value)}}function gh(e,t){if(e===t.value)return t;for(const n of t.children){const t=gh(e,n);if(t)return t}return null}function mh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=mh(e,n);if(r.length)return r.unshift(t),r}return[]}class wh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function vh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class yh extends fh{constructor(e,t){super(e),this.snapshot=t,Eh(this,e)}toString(){return this.snapshot.toString()}}function bh(e,t){const n=function(e,t){const n=new xh([],{},{},"",{},Nc,t,null,e.root,-1,{});return new Sh("",new wh(n,[]))}(e,t),r=new ua([new Kc("",{})]),s=new ua({}),i=new ua({}),o=new ua({}),l=new ua(""),a=new _h(r,s,o,l,i,Nc,t,n.root);return a.snapshot=n.root,new yh(new wh(a,[]),n)}class _h{constructor(e,t,n,r,s,i,o,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=l}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($(e=>Pc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>Pc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ch(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class xh{constructor(e,t,n,r,s,i,o,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=l,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=Pc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sh extends fh{constructor(e,t){super(t),this.url=e,Eh(this,t)}toString(){return Th(this._root)}}function Eh(e,t){t.value._routerState=e,t.children.forEach(t=>Eh(e,t))}function Th(e){const t=e.children.length>0?` { ${e.children.map(Th).join(", ")} } `:"";return`${e.value}${t}`}function kh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,$c(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),$c(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n$c(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Ah(e.parent,t.parent))}function Ih(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Rh(e,t,n,r,s){let i={};return r&&Bc(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Gc(n.root===e?t:function e(t,n,r){const s={};return Bc(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Zc(t.segments,s)}(n.root,e,t),i,s)}class Nh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ih(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==zc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Oh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ph(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Nc]:`${e}`}function Dh(e,t,n){if(e||(e=new Zc([],{})),0===e.segments.length&&e.hasChildren())return Mh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const t=e.segments[s],o=Ph(n[r]),l=r0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!Vh(o,l,t))return i;r+=2}else{if(!Vh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=Dh(e.children[r],t,n))}),Bc(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Zc(e.segments,s)}}function Uh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s{null!==e&&(t[n]=Uh(new Zc([],{}),0,e))}),t}function jh(e){const t={};return Bc(e,(e,n)=>t[n]=`${e}`),t}function Vh(e,t,n){return e==n.path&&$c(t,n.parameters)}const Fh=(e,t,n)=>$(r=>(new Hh(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Hh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),kh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=vh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Bc(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=vh(e),s=e.value.component?n.children:t;Bc(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=vh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new Ac(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Tc(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(kh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),$h(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function $h(e){kh(e.value),e.children.forEach($h)}function qh(e){return"function"==typeof e}function zh(e){return e instanceof Gc}class Bh{constructor(e){this.segmentGroup=e||null}}class Wh{constructor(e){this.urlTree=e}}function Qh(e){return new _(t=>t.error(new Bh(e)))}function Gh(e){return new _(t=>t.error(new Wh(e)))}function Zh(e){return new _(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Kh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Fe)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Nc).pipe($(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pa(e=>{if(e instanceof Wh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Bh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Nc).pipe($(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Pa(e=>{if(e instanceof Bh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Zc([],{[Nc]:e}):e;return new Gc(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($(e=>new Zc([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return aa({});const n=[],r=[],s={};return Bc(e,(e,i)=>{const o=t(i,e).pipe($(e=>s[i]=e));i===Nc?n.push(o):r.push(o)}),aa.apply(null,n.concat(r)).pipe(ma(),Oa(),$(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return aa(...n).pipe($(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(Pa(e=>{if(e instanceof Bh)return aa(null);throw e}))),ma(),Va(e=>!!e),Pa((e,n)=>{if(e instanceof ha||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return aa(new Zc([],{}));throw new Bh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return ed(r)!==i?Qh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Qh(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Gh(s):this.lineralizeSegments(n,s).pipe(Q(n=>{const s=new Zc(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Yh(t,r,s);if(!o)return Qh(t);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Gh(c):this.lineralizeSegments(r,c).pipe(Q(r=>this.expandSegment(e,t,n,r.concat(s.slice(a)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($(e=>(n._loadedConfig=e,new Zc(r,{})))):aa(new Zc(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Yh(t,n,r);if(!s)return Qh(t);const l=r.slice(o);return this.getChildConfig(e,n,r).pipe(Q(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>Xh(e,t,n)&&ed(n)!==Nc)}(e,n)?{segmentGroup:Jh(new Zc(t,function(e,t){const n={};n[Nc]=t;for(const r of e)""===r.path&&ed(r)!==Nc&&(n[ed(r)]=new Zc([],{}));return n}(r,new Zc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>Xh(e,t,n))}(e,n)?{segmentGroup:Jh(new Zc(e.segments,function(e,t,n,r){const s={};for(const i of n)Xh(e,t,i)&&!r[ed(i)]&&(s[ed(i)]=new Zc([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,l,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe($(e=>new Zc(i,e))):0===r.length&&0===o.length?aa(new Zc(i,{})):this.expandSegment(n,s,r,o,Nc,!0).pipe($(e=>new Zc(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?aa(new Lc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?aa(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?W(r).pipe($(r=>{const s=e.get(r);let i;if(function(e){return e&&qh(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!qh(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Wc(i)})).pipe(ma(),(s=e=>!0===e,e=>e.lift(new Fa(s,void 0,e)))):aa(!0);var s}(e.injector,t,n).pipe(Q(n=>n?this.configLoader.load(e.injector,t).pipe($(e=>(t._loadedConfig=e,e))):function(e){return new _(t=>t.error(Mc(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):aa(new Lc([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return aa(n);if(r.numberOfChildren>1||!r.children[Nc])return Zh(e.redirectTo);r=r.children[Nc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Gc(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Bc(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return Bc(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Zc(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Yh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Uc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Jh(e){if(1===e.numberOfChildren&&e.children[Nc]){const t=e.children[Nc];return new Zc(e.segments.concat(t.segments),t.children)}return e}function Xh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ed(e){return e.outlet||Nc}class td{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class nd{constructor(e,t){this.component=e,this.route=t}}function rd(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=vh(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,l=n?n.value:null,a=r?r.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Yc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Yc(e.url,t.url)||!$c(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ah(e,t)||!$c(e.queryParams,t.queryParams);case"paramsChange":default:return!Ah(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new td(s)):(o.data=l.data,o._resolvedData=l._resolvedData),e(t,n,o.component?a?a.children:null:r,s,i),u&&i.canDeactivateChecks.push(new nd(a&&a.outlet&&a.outlet.component||null,l))}else l&&id(n,a,i),i.canActivateChecks.push(new td(s)),e(t,null,o.component?a?a.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),Bc(o,(e,t)=>id(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function sd(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function id(e,t,n){const r=vh(e),s=e.value;Bc(r,(e,r)=>{id(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new nd(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const od=Symbol("INITIAL_VALUE");function ld(){return $a(e=>(function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),B(e,n).lift(new pa(t))})(...e.map(e=>e.pipe(Ua(1),function(...e){return t=>{let n=e[e.length-1];I(n)?e.pop():n=null;const r=e.length;return function(...e){return ma()(aa(...e))}(1!==r||n?r>0?B(e,n):oa(n):la(e[0]),t)}}(od)))).pipe(Ba((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==od)return e;if(r===od&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||zh(r))return r}return e},e)},od),wa(e=>e!==od),$(e=>zh(e)?e:!0===e),Ua(1)))}function ad(e,t){return null!==e&&t&&t(new kc(e)),aa(!0)}function ud(e,t){return null!==e&&t&&t(new Ec(e)),aa(!0)}function cd(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?aa(r.map(r=>ga(()=>{const s=sd(r,t,n);let i;if(function(e){return e&&qh(e.canActivate)}(s))i=Wc(s.canActivate(t,e));else{if(!qh(s))throw new Error("Invalid CanActivate guard");i=Wc(s(t,e))}return i.pipe(Va())}))).pipe(ld()):aa(!0)}function hd(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>ga(()=>aa(t.guards.map(s=>{const i=sd(s,t.node,n);let o;if(function(e){return e&&qh(e.canActivateChild)}(i))o=Wc(i.canActivateChild(r,e));else{if(!qh(i))throw new Error("Invalid CanActivateChild guard");o=Wc(i(r,e))}return o.pipe(Va())})).pipe(ld())));return aa(s).pipe(ld())}class dd{}class pd{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=md(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Nc),r=new xh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Nc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new wh(r,n),i=new Sh(this.url,s);return this.inheritParamsAndData(i._root),aa(i)}catch(e){return new _(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Ch(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Jc(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===Nc?-1:t.value.outlet===Nc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof dd))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new dd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new dd;if((e.outlet||Nc)!==r)throw new dd;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?zc(n).parameters:{};s=new xh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yd(e),r,e.component,e,fd(t),gd(t)+n.length,bd(e))}else{const l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new dd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Uc)(n,e,t);if(!r)throw new dd;const s={};Bc(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=l.consumedSegments,o=n.slice(l.lastChild),s=new xh(i,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yd(e),r,e.component,e,fd(t),gd(t)+i.length,bd(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=md(t,i,o,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return[new wh(s,e)]}if(0===l.length&&0===u.length)return[new wh(s,[])];const c=this.processSegment(l,a,u,Nc);return[new wh(s,c)]}}function fd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function gd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function md(e,t,n,r,s){if(n.length>0&&function(e,t,n){return r.some(n=>wd(e,t,n)&&vd(n)!==Nc)}(e,n)){const s=new Zc(t,function(e,t,n,r){const s={};s[Nc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&vd(i)!==Nc){const n=new Zc([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[vd(i)]=n}return s}(e,t,r,new Zc(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>wd(e,t,n))}(e,n)){const i=new Zc(e.segments,function(e,t,n,r,s,i){const o={};for(const l of r)if(wd(e,n,l)&&!s[vd(l)]){const n=new Zc([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[vd(l)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Zc(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function wd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function vd(e){return e.outlet||Nc}function yd(e){return e.data||{}}function bd(e){return e.resolve||{}}function _d(e,t,n,r){const s=sd(e,t,r);return Wc(s.resolve?s.resolve(t,n):s(t,n))}function Cd(e){return function(t){return t.pipe($a(t=>{const n=e(t);return n?W(n).pipe($(()=>t)):W([t])}))}}class xd{}class Sd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const Ed=new Ee("ROUTES");class Td{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Lc(qc(r.injector.get(Ed)).map(Hc),r)}))}loadModuleFactory(e){return"string"==typeof e?W(this.loader.load(e)):Wc(e()).pipe(Q(e=>e instanceof He?aa(e):W(this.compiler.compileModuleAsync(e))))}}class kd{}class Ad{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Id(e){throw e}function Rd(e,t,n){return t.parse("/")}function Nd(e,t){return aa(null)}class Od{constructor(e,t,n,r,s,i,o,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=Id,this.malformedUriErrorHandler=Rd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Nd,afterPreactivation:Nd},this.urlHandlingStrategy=new Ad,this.routeReuseStrategy=new Sd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Fe),this.console=s.get($s);const a=s.get(ii);this.isNgZoneEnabled=a instanceof ii,this.resetConfig(l),this.currentUrlTree=new Gc(new Zc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Td(i,o,e=>this.triggerEvent(new xc(e)),e=>this.triggerEvent(new Sc(e))),this.routerState=bh(this.currentUrlTree,this.rootComponentType),this.transitions=new ua({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(wa(e=>0!==e.id),$(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),$a(e=>{let n=!1,r=!1;return aa(e).pipe(Ea(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),$a(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return aa(e).pipe($a(e=>{const n=this.transitions.getValue();return t.next(new fc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ia:[e]}),$a(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe($a(s=>(function(e,t,n,r,i){return new Kh(e,t,n,s.extractedUrl,i).apply()})(e,t,n,0,r).pipe($(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ea(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Q(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new pd(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe($(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ea(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Ea(e=>{const n=new vc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,l=new fc(n,this.serializeUrl(r),s,i);t.next(l);const a=bh(r,this.rootComponentType).snapshot;return aa(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ia}),Cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Ea(e=>{const t=new yc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$(e=>Object.assign({},e,{guards:rd(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?aa(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return W(o).pipe(Q(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?aa(i.map(i=>{const o=sd(i,t,s);let l;if(function(e){return e&&qh(e.canDeactivate)}(o))l=Wc(o.canDeactivate(e,t,n,r));else{if(!qh(o))throw new Error("Invalid CanDeactivate guard");l=Wc(o(e,t,n,r))}return l.pipe(Va())})).pipe(ld()):aa(!0)})(e.component,e.route,n,t,r)),Va(e=>!0!==e,!0))}(0,r,s,e).pipe(Q(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return W(i).pipe(Ga(t=>W([ud(t.route.parent,r),ad(t.route,r),hd(e,t.path,n),cd(e,t.route,n)]).pipe(ma(),Va(e=>!0!==e,!0))),Va(e=>!0!==e,!0))}(r,0,e,t):aa(n)),$(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Ea(e=>{if(zh(e.guardsResult)){const t=Mc(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Ea(e=>{const t=new bc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),wa(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new mc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Cd(e=>{if(e.guards.canActivateChecks.length)return aa(e).pipe(Ea(e=>{const t=new _c(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?W(s).pipe(Ga(n=>(function(e,t,n,s){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return aa({});if(1===s.length){const i=s[0];return _d(e[i],t,n,r).pipe($(e=>({[i]:e})))}const i={};return W(s).pipe(Q(s=>_d(e[s],t,n,r).pipe($(e=>(i[s]=e,e))))).pipe(Oa(),$(()=>i))}(e._resolve,e,r,s).pipe($(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Ch(e,n).resolve),null)))})(n.route,0,e,t)),function(e,t){return arguments.length>=2?function(n){return y(Ba(e,t),Ca(1),Ia(t))(n)}:function(t){return y(Ba((t,n,r)=>e(t,n,r+1)),Ca(1))(t)}}((e,t)=>e),$(e=>n)):aa(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Ea(e=>{const t=new Cc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),$(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new wh(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;re(t,n));return new wh(r,i)}}var s}(e,t._root,n?n._root:void 0);return new yh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Ea(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Fh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),Ea({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Za(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new mc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Pa(n=>{if(r=!0,function(e){return n&&n[Dc]}()){const r=zh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new mc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new wc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return ia}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){jc(e),this.config=e.map(Hc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:l}=t;tt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return Rh(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Nh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Bc(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new Nh(n,t,r)}(n);if(i.toRoot())return Rh(t.root,new Zc([],{}),t,r,s);const o=function(e,n,r){if(e.isAbsolute)return new Oh(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Oh(r.snapshot._urlSegment,!0,0);const s=Ih(e.commands[0])?0:1;return function(t,n,i){let o=r.snapshot._urlSegment,l=r.snapshot._lastPathIndex+s,a=e.numberOfDoubleDots;for(;a>l;){if(a-=l,!(o=o.parent))throw new Error("Invalid number of '../'");l=o.segments.length}return new Oh(o,!1,l-a)}()}(i,0,e),l=o.processChildren?Mh(o.segmentGroup,o.index,i.commands):Dh(o.segmentGroup,o.index,i.commands);return Rh(o.segmentGroup,l,t,r,s)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){tt()&&this.isNgZoneEnabled&&!ii.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=zh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new gc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const l=new Promise((e,t)=>{i=e,o=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Pd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dd,this.attachRef=null}}class Dd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Pd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Md{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ns,this.deactivateEvents=new Ns,this.name=r||Nc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Ud(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Ud{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===_h?this.route:e===Dd?this.childContexts:this.parent.get(e,t)}}class Ld{}class jd{preload(e,t){return t().pipe(Pa(()=>aa(null)))}}class Vd{preload(e,t){return aa(null)}}class Fd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new Td(t,n,t=>e.triggerEvent(new xc(t)),t=>e.triggerEvent(new Sc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(wa(e=>e instanceof gc),Ga(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fe);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return W(n).pipe(Y(),$(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Hd{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof gc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ic&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ic(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const $d=new Ee("ROUTER_CONFIGURATION"),qd=new Ee("ROUTER_FORROOT_GUARD"),zd=[xl,{provide:Xc,useClass:eh},{provide:Od,useFactory:Yd,deps:[Ei,Xc,Dd,xl,Pt,ki,Zs,Ed,$d,[kd,new ae],[xd,new ae]]},Dd,{provide:_h,useFactory:Jd,deps:[Od]},{provide:ki,useClass:Pi},Fd,Vd,jd,{provide:$d,useValue:{enableTracing:!1}}];function Bd(){return new bi("Router",Od)}class Wd{constructor(e,t){}static forRoot(e,t){return{ngModule:Wd,providers:[zd,Kd(e),{provide:qd,useFactory:Zd,deps:[[Od,new ae,new ce]]},{provide:$d,useValue:t||{}},{provide:_l,useFactory:Gd,deps:[yl,[new le(Cl),new ae],$d]},{provide:Hd,useFactory:Qd,deps:[Od,ra,$d]},{provide:Ld,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Vd},{provide:bi,multi:!0,useFactory:Bd},[Xd,{provide:Ds,multi:!0,useFactory:ep,deps:[Xd]},{provide:np,useFactory:tp,deps:[Xd]},{provide:Hs,multi:!0,useExisting:np}]]}}static forChild(e){return{ngModule:Wd,providers:[Kd(e)]}}}function Qd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Hd(e,t,n)}function Gd(e,t,n={}){return n.useHash?new El(e,t):new Tl(e,t)}function Zd(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Kd(e){return[{provide:$t,multi:!0,useValue:e},{provide:Ed,multi:!0,useValue:e}]}function Yd(e,t,n,r,s,i,o,l,a={},u,c){const h=new Od(null,t,n,r,s,i,o,qc(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=Ja();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.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 Jd(e){return e.routerState.root}class Xd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(bl,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Od),r=this.injector.get($d);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?aa(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get($d),n=this.injector.get(Fd),r=this.injector.get(Hd),s=this.injector.get(Od),i=this.injector.get(Ei);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function ep(e){return e.appInitializer.bind(e)}function tp(e){return e.bootstrapListener.bind(e)}const np=new Ee("Router Initializer");var rp=Xn({encapsulation:2,styles:[],data:{}});function sp(e){return uo(0,[(e()(),Gi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(1,212992,null,0,Md,[Dd,Mn,sn,[8,null],It],null,null)],function(e,t){e(t,1,0)},null)}function ip(e){return uo(0,[(e()(),Gi(0,0,null,null,1,"ng-component",[],null,null,null,sp,rp)),ls(1,49152,null,0,Rc,[],null,null)],null,null)}var op=jr("ng-component",Rc,ip,{},{},[]);class lp{constructor(e=0,t="Do you want to learn to ride a bike?",n="Yes",r=["Yes","No","May be"],s="Obviously!",i=null,o=""){this.id=e,this.question=t,this.answer=n,this.options=r,this.explanation=s,this.image=i,this.usersAnswer=o}}class ap{constructor(){this.isEnabled=!0,this.shouldShowExplanation=!1,this.questionModel=new lp}highlightAnswer(e){this.isEnabled&&(this.highlightedAnswer=e)}clearHighlightAnswer(e){this.isEnabled&&this.highlightedAnswer==e&&(this.highlightedAnswer="")}answerSelected(e){this.isEnabled&&(this.questionModel.usersAnswer=e)}}var up=Xn({encapsulation:0,styles:[[".questionClass[_ngcontent-%COMP%]{font-weight:700;color:#000;font-size:larger}.explanationTitleClass[_ngcontent-%COMP%]{font-weight:700;color:#000;font-size:medium;margin-left:12px}.explanationClass[_ngcontent-%COMP%]{margin-left:12px}.fullQuestionView[_ngcontent-%COMP%]{width:100%}.halfQuestionView[_ngcontent-%COMP%]{width:50%}.emptyQuestionView[_ngcontent-%COMP%]{width:0%}table[_ngcontent-%COMP%] tr.correctAnswer[_ngcontent-%COMP%]{background-color:#4caf50!important;color:#fff}table[_ngcontent-%COMP%] tr.actualAnswer[_ngcontent-%COMP%]{background-color:#ace6ae!important;color:#000}table[_ngcontent-%COMP%] tr.wrongAnswer[_ngcontent-%COMP%]{background-color:#db5621!important;color:#fff}table[_ngcontent-%COMP%] tr.selectedAnswer[_ngcontent-%COMP%]{background-color:#56d1f7!important;color:#fff}table[_ngcontent-%COMP%] tr.highlight[_ngcontent-%COMP%]{background-color:#eee!important;color:#000}"]],data:{}});function cp(e){return uo(0,[(e()(),Gi(0,0,null,null,0,"img",[],[[8,"src",4],[8,"height",0],[8,"width",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,Er(1,"",n.questionModel.image.url,""),Er(1,"",n.questionModel.image.height,""),Er(1,"",n.questionModel.image.width,""))})}function hp(e){return uo(0,[(e()(),Gi(0,0,null,null,8,"tr",[],null,[[null,"click"],[null,"mouseover"],[null,"mouseleave"]],function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==s.answerSelected(e.context.$implicit)&&r),"mouseover"===t&&(r=!1!==s.highlightAnswer(e.context.$implicit)&&r),"mouseleave"===t&&(r=!1!==s.clearHighlightAnswer(e.context.$implicit)&&r),r},null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(2,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(3,{selectedAnswer:0,highlight:1,correctAnswer:2,actualAnswer:3,wrongAnswer:4}),(e()(),Gi(4,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),Gi(5,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),oo(6,null,["",". \xa0"])),(e()(),Gi(7,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),oo(8,null,[" "," "]))],function(e,t){var n=t.component,r=e(t,3,0,!n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer,!n.shouldShowExplanation&&t.context.$implicit==n.highlightedAnswer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer&&t.context.$implicit==n.questionModel.answer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.answer&&t.context.$implicit!=n.questionModel.usersAnswer,n.shouldShowExplanation&&t.context.$implicit==n.questionModel.usersAnswer&&t.context.$implicit!=n.questionModel.answer);e(t,2,0,r)},function(e,t){e(t,6,0,t.context.index+1),e(t,8,0,t.context.$implicit)})}function dp(e){return uo(0,[(e()(),Gi(0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"div",[["class","explanationTitleClass"]],null,null,null,null,null)),(e()(),oo(-1,null,["Explanation:"])),(e()(),Gi(3,0,null,null,1,"div",[["class","explanationClass"]],null,null,null,null,null)),(e()(),oo(4,null,[" "," "]))],null,function(e,t){e(t,4,0,t.component.questionModel.explanation)})}function pp(e){return uo(0,[(e()(),Gi(0,0,null,null,22,"div",[["style","text-align: left; width: 800px; align-self: centre; margin: 0 auto;"]],null,null,null,null,null)),(e()(),Gi(1,0,null,null,21,"table",[],null,null,null,null,null)),(e()(),Gi(2,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(3,0,null,null,5,"td",[["colspan","2"]],null,null,null,null,null)),(e()(),Gi(4,0,null,null,4,"div",[["class","questionClass"]],null,null,null,null,null)),(e()(),oo(5,null,[" "," "])),(e()(),Gi(6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,cp)),ls(8,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(9,0,null,null,13,"tr",[],null,null,null,null,null)),(e()(),Gi(10,0,null,null,6,"td",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(12,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(13,{fullQuestionView:0,halfQuestionsView:1}),(e()(),Gi(14,0,null,null,2,"table",[["class","table-hover"]],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,hp)),ls(16,278528,null,0,Gl,[Mn,Pn,An],{ngForOf:[0,"ngForOf"]},null),(e()(),Gi(17,0,null,null,5,"td",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(19,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(20,{halfQuestionView:0,emptyQuestionView:1}),(e()(),Qi(16777216,null,null,1,null,dp)),ls(22,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,8,0,n.questionModel.image);var r=e(t,13,0,!n.shouldShowExplanation,n.shouldShowExplanation);e(t,12,0,r),e(t,16,0,n.questionModel.options);var s=e(t,20,0,n.shouldShowExplanation,!n.shouldShowExplanation);e(t,19,0,s),e(t,22,0,n.shouldShowExplanation)},function(e,t){e(t,5,0,t.component.questionModel.question)})}class fp{static getRandomIntFromInterval(e,t){return Math.floor(Math.random()*(t-e+1)+e)}}var gp=n("bmOm");class mp{constructor(){this.questions=gp,this.totalNumberOfQuestions=this.questions.length,this.questions.forEach(e=>{e.options.push(e.answer)})}randomizeAnswers(e){const t=e.options.length-1;for(let n=0;n<10;++n){let n=fp.getRandomIntFromInterval(0,t),r=fp.getRandomIntFromInterval(0,t);for(;n==r;)r=fp.getRandomIntFromInterval(0,t);const s=e.options[n];e.options[n]=e.options[r],e.options[r]=s}}getNextQuestionExcludingMasks(e){const t=this.totalNumberOfQuestions-1;let n=fp.getRandomIntFromInterval(0,t);if(null!=e)for(;e.includes(n);)n=fp.getRandomIntFromInterval(0,t);return this.getQuestionAtIndex(n)}getQuestionAtIndex(e){return this.questions[e%this.totalNumberOfQuestions]}refresh(){this.questions.forEach(e=>{this.randomizeAnswers(e),e.usersAnswer=""})}}class wp{constructor(){this.countOfCorrectAnswers=0,this.idsOfQuestionsAsked=null,this.currentQuestionNumber=-1,this.showAnswers=!1,this.maxNumberOfQuestions=25,this.secondButtonText="Next",this.questionBankService=new mp,this.startTest()}startTest(){this.questionsAsked=new Array(this.maxNumberOfQuestions),this.idsOfQuestionsAsked=new Array,this.questionBankService.refresh(),this.countOfCorrectAnswers=0,this.currentQuestionNumber=-1,this.showAnswers=!1,this.getNextQuestion()}isCurrentQuestionAnswered(){return""!=this.questionsAsked[this.currentQuestionNumber].usersAnswer}getScore(){return 0==this.maxNumberOfQuestions?0:this.countOfCorrectAnswers/this.maxNumberOfQuestions*100}calculateFinalScore(){this.countOfCorrectAnswers=0,this.questionsAsked.forEach(e=>{e.answer==e.usersAnswer&&++this.countOfCorrectAnswers}),this.showAnswers=!0}getNextQuestion(){if(this.currentQuestionNumber>=this.maxNumberOfQuestions-1)this.calculateFinalScore();else{if(null==this.questionsAsked[this.currentQuestionNumber+1]){const e=this.questionBankService.getNextQuestionExcludingMasks(this.idsOfQuestionsAsked);this.idsOfQuestionsAsked.push(e.id),this.questionsAsked[this.currentQuestionNumber+1]=e}this.currentQuestion=this.questionsAsked[++this.currentQuestionNumber],this.secondButtonText=this.currentQuestionNumber==this.maxNumberOfQuestions-1?"Calculate Score":"Next"}}goToPreviousQuestion(){this.currentQuestionNumber<=0||(this.currentQuestion=this.questionsAsked[--this.currentQuestionNumber])}restart(){this.startTest()}}var vp=Xn({encapsulation:0,styles:[[".questionBoardMainDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:centre;margin:0 auto}.progressDiv[_ngcontent-%COMP%]{width:600px;align-self:centre;margin:0 auto}.buttonsDiv[_ngcontent-%COMP%]{width:720px;align-self:center;margin:0 auto;text-align:center}.buttonsTable[_ngcontent-%COMP%]{align-self:center;margin:0 auto}progress[_ngcontent-%COMP%]{width:600px}.retryButtonDiv[_ngcontent-%COMP%]{width:600px;align-self:center;margin:0 auto;text-align:center}button[_ngcontent-%COMP%]{height:40px;font-size:16px;width:140px}.correctAnswersDiv[_ngcontent-%COMP%], .scoreDiv[_ngcontent-%COMP%]{font-size:large}.greenColor[_ngcontent-%COMP%]{color:green}.redColor[_ngcontent-%COMP%]{color:red}"]],data:{}});function yp(e){return uo(0,[(e()(),Gi(0,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"div",[["class","progressDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,0,"progress",[],[[8,"value",0],[8,"max",0]],null,null,null,null)),(e()(),Gi(3,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),oo(4,null,[" Question Number: "," "])),(e()(),Gi(5,0,null,null,1,"Question",[],null,null,null,pp,up)),ls(6,49152,null,0,ap,[],{questionModel:[0,"questionModel"]},null),(e()(),Gi(7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(9,0,null,null,8,"div",[["class","buttonsDiv"]],null,null,null,null,null)),(e()(),Gi(10,0,null,null,7,"table",[["class","buttonsTable"]],null,null,null,null,null)),(e()(),Gi(11,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(12,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Gi(13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToPreviousQuestion()&&r),r},null,null)),(e()(),oo(-1,null,[" Back "])),(e()(),Gi(15,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,1,"button",[],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getNextQuestion()&&r),r},null,null)),(e()(),oo(17,null,[" "," "]))],function(e,t){e(t,6,0,t.component.currentQuestion)},function(e,t){var n=t.component;e(t,2,0,Er(1,"",n.currentQuestionNumber+1,""),Er(1,"",n.maxNumberOfQuestions,"")),e(t,4,0,n.currentQuestionNumber+1),e(t,16,0,!n.isCurrentQuestionAnswered()),e(t,17,0,n.secondButtonText)})}function bp(e){return uo(0,[(e()(),Gi(0,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,5,"td",[],null,null,null,null,null)),(e()(),Gi(2,0,null,null,2,"div",[["style","margin-top: 8px"]],null,null,null,null,null)),(e()(),Gi(3,0,null,null,1,"Question",[],null,null,null,pp,up)),ls(4,49152,null,0,ap,[],{isEnabled:[0,"isEnabled"],shouldShowExplanation:[1,"shouldShowExplanation"],questionModel:[2,"questionModel"]},null),(e()(),Gi(5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(6,0,null,null,0,"hr",[],null,null,null,null,null))],function(e,t){e(t,4,0,!1,!0,t.context.$implicit)},null)}function _p(e){return uo(0,[(e()(),Gi(0,0,null,null,20,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,2,"div",[["class","retryButtonDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restart()&&r),r},null,null)),(e()(),oo(-1,null,["Retry"])),(e()(),Gi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Gi(5,0,null,null,1,"div",[["class","correctAnswersDiv"]],null,null,null,null,null)),(e()(),oo(6,null,[" Correct Answers: "," / "," "])),(e()(),Gi(7,0,null,null,7,"div",[["class","scoreDiv"]],null,null,null,null,null)),(e()(),oo(-1,null,[" Score: "])),(e()(),Gi(9,0,null,null,5,"span",[],null,null,null,null,null)),as(512,null,ql,zl,[An,In,un,fn]),ls(11,278528,null,0,Wl,[ql],{ngClass:[0,"ngClass"]},null),so(12,{redColor:0,greenColor:1}),(e()(),oo(13,null,[" "," % "])),io(128,14,new Array(3)),(e()(),Gi(15,0,null,null,5,"table",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Gi(17,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Gi(18,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,bp)),ls(20,278528,null,0,Gl,[Mn,Pn,An],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component,r=e(t,12,0,n.getScore()<75,n.getScore()>=75);e(t,11,0,r),e(t,20,0,n.questionsAsked)},function(e,t){var n=t.component;e(t,6,0,n.countOfCorrectAnswers,n.maxNumberOfQuestions);var r=function(e,t,n,r){if(Qt.isWrapped(r)){r=Qt.unwrap(r);const t=e.def.nodes[13].bindingIndex+0,n=Qt.unwrap(e.oldValues[t]);e.oldValues[t]=new Qt(n)}return r}(t,0,0,e(t,14,0,function(e,t){const n=e.def.nodes[0];if(1&n.flags){const t=qn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return $n(e,n.nodeIndex).renderText;if(20240&n.flags)return zn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index 0")}(t.parent),n.getScore(),"1.2-2"));e(t,13,0,r)})}function Cp(e){return uo(0,[(t=0,n=Xl,r=[qs],us(-1,t|=16,null,0,n,n,r)),(e()(),Gi(1,0,null,null,5,"div",[["class","questionBoardMainDiv"]],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,yp)),ls(3,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Qi(16777216,null,null,1,null,_p)),ls(6,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,!n.showAnswers),e(t,6,0,n.showAnswers)},null);var t,n,r}var xp=Xn({encapsulation:0,styles:[[".rootDiv[_ngcontent-%COMP%]{width:816px;align-self:center;margin:0 auto;text-align:center;background:#fff;height:100%;font-family:'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif}.paddingDiv[_ngcontent-%COMP%]{height:20px}.instructionsDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:center;margin:0 auto}.termsAgreedStatementDiv[_ngcontent-%COMP%]{margin-top:20px}.agreementTable[_ngcontent-%COMP%]{width:600px;text-align:center;align-self:center;margin:0 auto}.termsAgreedButtonDiv[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:20px}.termsAgreedButton[_ngcontent-%COMP%]{height:40px;font-size:large}.importantWarning[_ngcontent-%COMP%]{font-weight:700;color:red}"]],data:{}});function Sp(e){return uo(0,[(e()(),Gi(0,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,5,"div",[["style","text-align: left; margin-left: 8px; margin-right: 8px"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),oo(-1,null,[" This site offers practice tests to prepare for "])),(e()(),Gi(4,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),oo(-1,null,["Motorcycle Safety Foundation"])),(e()(),oo(-1,null,["'s Basic RiderCourse Knowledge test. Study the materials provided by the Motorcycle Safety Foundation diligently. The information provided there will help you ride safer. Once you've studied, practice taking tests here as many times as you'd like! "])),(e()(),Gi(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),oo(-1,null,[" All the best! "])),(e()(),Gi(9,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),oo(-1,null,["TERMS OF AGREEMENT"])),(e()(),Gi(11,0,null,null,11,"div",[["class","instructionsDiv"]],null,null,null,null,null)),(e()(),Gi(12,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Gi(13,0,null,null,1,"span",[["class","importantWarning"]],null,null,null,null,null)),(e()(),oo(-1,null,[" THIS IS NOT AN OFFICIAL TEST. PASSING THIS TEST DOESN'T GIVE YOU ANY ENDORSEMENTS."])),(e()(),Gi(15,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Gi(16,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),oo(-1,null,[" THIS IS FOR PRACTICE AND PRACTICE ONLY! "])),(e()(),Gi(18,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),oo(-1,null,[" For further information, go to "])),(e()(),Gi(20,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),oo(-1,null,["Motorcycle Safety Foundation"])),(e()(),oo(-1,null,["."])),(e()(),Gi(23,0,null,null,10,"table",[["class","agreementTable"]],null,null,null,null,null)),(e()(),Gi(24,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Gi(25,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Gi(26,0,null,null,2,"div",[["class","termsAgreedStatementDiv"]],null,null,null,null,null)),(e()(),Gi(27,0,null,null,0,"input",[["type","checkbox"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.checked()&&r),r},null,null)),(e()(),oo(-1,null,[" I've read and accept the above mentioned terms of agreement. "])),(e()(),Gi(29,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Gi(30,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Gi(31,0,null,null,2,"div",[["class","termsAgreedButtonDiv"]],null,null,null,null,null)),(e()(),Gi(32,0,null,null,1,"button",[["class","termsAgreedButton"]],[[8,"disabled",0]],[[null,"click"],[null,"disabledChange"]],function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==s.startTestButtonClicked()&&r),"disabledChange"===t&&(r=0!=!(s.termsReadAndAgreed=n)&&r),r},null,null)),(e()(),oo(-1,null,["Start the test!"]))],null,function(e,t){e(t,32,0,!t.component.termsReadAndAgreed)})}function Ep(e){return uo(0,[(e()(),Gi(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),Gi(1,0,null,null,1,"QuestionBoard",[],null,null,null,Cp,vp)),ls(2,49152,null,0,wp,[],null,null)],null,null)}function Tp(e){return uo(0,[(e()(),Gi(0,0,null,null,9,"div",[["class","rootDiv"]],null,null,null,null,null)),(e()(),Gi(1,0,null,null,0,"div",[["class","paddingDiv"]],null,null,null,null,null)),(e()(),Gi(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),oo(3,null,[" "," "])),(e()(),Qi(16777216,null,null,1,null,Sp)),ls(5,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Qi(16777216,null,null,1,null,Ep)),ls(7,16384,null,0,Kl,[Mn,Pn],{ngIf:[0,"ngIf"]},null),(e()(),Gi(8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(9,212992,null,0,Md,[Dd,Mn,sn,[8,null],It],null,null)],function(e,t){var n=t.component;e(t,5,0,!n.termsAgreed),e(t,7,0,n.termsAgreed),e(t,9,0)},function(e,t){e(t,3,0,t.component.title)})}function kp(e){return uo(0,[(e()(),Gi(0,0,null,null,1,"app-root",[],null,null,null,Tp,xp)),ls(1,49152,null,0,vl,[],null,null)],null,null)}var Ap=jr("app-root",vl,kp,{},{},[]);class Ip{}var Rp=gl(wl,[vl],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s(e[t.name]=t.token,e),{}))),()=>mu),ep(t)];var n},[[2,bi],Xd]),Nr(512,Ms,Ms,[[2,Ds]]),Nr(131584,Ei,Ei,[ii,$s,Pt,Je,sn,Ms]),Nr(1073742336,Wi,Wi,[Ei]),Nr(1073742336,dc,dc,[[3,dc]]),Nr(1024,qd,Zd,[[3,Od]]),Nr(512,Xc,eh,[]),Nr(512,Dd,Dd,[]),Nr(256,$d,{},[]),Nr(1024,_l,Gd,[yl,[2,Cl],$d]),Nr(512,xl,xl,[_l,yl]),Nr(512,Zs,Zs,[]),Nr(512,ki,Pi,[Zs,[2,Ni]]),Nr(1024,Ed,function(){return[[]]},[]),Nr(1024,Od,Yd,[Ei,Xc,Dd,xl,Pt,ki,Zs,Ed,$d,[2,kd],[2,xd]]),Nr(1073742336,Wd,Wd,[[2,qd],[2,Od]]),Nr(1073742336,Ip,Ip,[]),Nr(1073742336,wl,wl,[]),Nr(256,Nt,!0,[])])});(function(){if(et)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1})(),cc().bootstrapModuleFactory(Rp).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/docs/main-es5.4bcf32ac7e93bc83330a.js b/docs/main-es5.e7773bfd10c849bacfe7.js similarity index 95% rename from docs/main-es5.4bcf32ac7e93bc83330a.js rename to docs/main-es5.e7773bfd10c849bacfe7.js index 08d26fc..d51713d 100644 --- a/docs/main-es5.4bcf32ac7e93bc83330a.js +++ b/docs/main-es5.e7773bfd10c849bacfe7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},bmOm:function(e){e.exports=JSON.parse('[{"id":0,"question":"What does SLPR stand for?","answer":"Slow, Look, Press, Roll","options":["Slow, Lean, Power, Ride","See, Lean, Push, Race","Slide, Load, Power, Rock"],"explanation":"These are the four action steps for making a basic turn. You have to slow down, look at the corner, press the side of the handle bar, and gently roll the accelerator.","image":null,"usersAnswer":""},{"id":1,"question":"What is the friction zone?","answer":"The area where the clutch starts to engage and transfer power to the drive train.","options":["The part of the tire that meets the road.","The area where brake pads meet the wheel.","The part of the road with most grip."],"image":null,"explanation":"A small area in the travel of the clutch lever that controls the connection between the engine and the rear wheel.","usersAnswer":""},{"id":2,"question":"What is choke control used for?","answer":"It provides an enriched fuel mixture to help start a cold engine.","options":["It allows you to shut off the engine without removing your hand from the handgrip.","Slows the vehicle by cutting off fuel to the engine.","Connects power from engine to the rear wheel."],"image":null,"explanation":"Located on the handlebars or near the engine. it also raises the idle to permit the engine to warm quickly. It shuold be turned off as soon as not needed.","usersAnswer":""},{"id":3,"question":"Which of the following is NOT TRUE about rear view mirrors?","answer":"They are flat mirrors.","options":["They are convex mirrors that are curved to provide a wider view.","They make objects appear farther than they actually are.","Reduce the size of blind spot, but they do not eliminate them."],"image":null,"explanation":"Remember, objects in the mirror are closer than they appear in the mirror and there will be blind spots.","usersAnswer":""},{"id":4,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":5,"question":"What does squeezing the clutch lever do?","answer":"Disconnects power from the engine to the rear wheel.","options":["Supplies power from engine to the rear wheel.","Shuts off the engine.","Provides an enriched fuel mixture to help start a cold engine."],"image":null,"explanation":"In front of the left handgrip, it connects power from the engine to the rear wheel. The lever is squeezed in to disconnect and eased out to connect.","usersAnswer":""},{"id":6,"question":"Which of the following is used to control engine speed?","answer":"Throttle.","options":["Clutch lever.","Fuel supply valve.","Choke control."],"image":null,"explanation":"To increase engine speed, twist in toward you (roll on). To decrease engine speed, twist it away from you (roll off).","usersAnswer":""},{"id":7,"question":"Which of the following indicates engine speed?","answer":"Tachometer.","options":["Odometer.","Speedometer.","Barometer."],"image":null,"explanation":"Indicates engine speed in revolutions per minute (rpm). It has a red line for maximum engine speed that should never be exceeded.","usersAnswer":""},{"id":8,"question":"Which of the following indicates road speed?","answer":"Speedometer.","options":["Odometer.","Tachometer.","Barometer."],"image":null,"explanation":"Indicates road speed.","usersAnswer":""},{"id":9,"question":"Which of the following indicates distance travelled?","answer":"Odometer.","options":["Speedometer.","Tachometer.","Barometer."],"image":null,"explanation":"Shows distance ridden. There may also be a re-settable trip meter, which can be used to display distance since last fill-up or the last stopping point.","usersAnswer":""},{"id":10,"question":"What are the five steps of the engine pre-start routine?","answer":"Fuel, Ignition, Neutral, Engine cut-off switch, Choke/Clutch.","options":["Forward, Unlock, Geardown, Engine-On, Start.","Forward, Unlock, Gear-up, Engine-On, Start.","Fuel, Ignition, Gear-up, Engine-On, Lights."],"image":null,"explanation":"This is shortened as FINE-C. Hold the clutch for additional safety, in case the vehicle is in gear by accident/malfunction.","usersAnswer":""},{"id":11,"question":"What are the three steps for shutting off the engine?","answer":"Engine cut-off switch to off, Ignition key off, Fuel valve off.","options":["Ignition key off, Bike stand on, Lights off.","Fuel valve off, Neutral gear, Ignition key off.","Engine cut-off switch off, Neutral gear, Fuel valve off."],"image":null,"explanation":"This can be remembered as: Thumb (shut off engine), Key (ignition off), Valve (fuel off). Always follow this order for maximum safety.","usersAnswer":""},{"id":12,"question":"What is the position of the right wrist for good riding posture?","answer":"Flat wrist with fingers around the throttle.","options":["Slightly bent wrist with knuckles pointing to the sky.","Slightly bent wrist with knuckles pointing to the ground.","Bent wrist with knuckles pointing to the ground."],"image":null,"explanation":"Arms should be relaxed and bent. Keep your fingers around the throttle with your wrist flat.","usersAnswer":""},{"id":13,"question":"How do you initiate motorcycle lean at speeds HIGHER than walking speed?","answer":"Press (forward or down) the handgrip on the same side of the intended turn.","options":["Lean the motorcycle and turn the handlebars in the direction you want to go.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"This is called countersteering because the handlebars are initially moved opposite the direction of the turn.","usersAnswer":""},{"id":14,"question":"How do you initiate motorcycle lean at speeds LOWER THAN OR EQUAL TO walking speed?","answer":"Lean the motorcycle and turn the handlebars in the direction you want to go.","options":["Press (forward or down) the handgrip on the same side of the intended turn.","Always initiate turn by dropping to the next lower gear.","Squeeze the clutch fully in."],"image":null,"explanation":"At lower speeds, lean the motorcycle and turn the handlebars in the direction you want to go.","usersAnswer":""},{"id":15,"question":"What is the three-step strategy for curves?","answer":"Search, Setup, Smooth","options":["Stop, Look, Go.","Swing, Swerve, Speed.","Slow, Swing, Speed."],"image":null,"explanation":"Search: while approaching and in curve (for obstacles, vehicles, etc.), Setup: Adjust speed, lane position, Smooth: No jerky movements.","usersAnswer":""},{"id":16,"question":"In what type of turn does counterweighting help?","answer":"For slow, tight turns.","options":["For fast, wide turns.","For graveled roads.","For off roads."],"image":null,"explanation":"Counterweighting (leaning independently from motorcycle) permits more motorcycle lean for a sharper turning radius. Suitable for slow, tight turns.","usersAnswer":""},{"id":17,"question":"What gear should you be in when coming to a stop?","answer":"First gear.","options":["Neutral.","Gear at the time of braking.","Second gear."],"image":null,"explanation":"You should be in first gear by the time you stop. It allows us to move again quickly if required.","usersAnswer":""},{"id":18,"question":"How should the handlebars be positioned when coming to a stop?","answer":"Handlebars should be centered.","options":["Turn the handlebars to the right.","Turn the handlebars to the left.","Handlebars can be in any direction."],"image":null,"explanation":"Handlebars should be squared (center the steering) so the motorcycle is easier to hold up.","usersAnswer":""},{"id":19,"question":"Which of the following statements is TRUE?","answer":"Front brake has more stopping power than rear brake.","options":["Rear brake has more stopping power than front brake.","Both brakes have equal stopping power.","None of the above."],"image":null,"explanation":"Front brake provides 70% or more stopping power because, forward weight shift pushes the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":20,"question":"How does the motorcycle\'s weight shift during braking?","answer":"Weight shifts forwards.","options":["Weight shifts backwards.","There is no weight shift.","Weight shifts to the right."],"image":null,"explanation":"During braking weight shifts forward, pushing the front tire down onto the road, giving it more grip than the rear tire.","usersAnswer":""},{"id":21,"question":"How do you stop in a curve?","answer":"Apply both brakes and straighten the motorcycle.","options":["Use rear brakes only.","Use front brakes only.","Use engine braking for stopping in curves."],"image":null,"explanation":"When braking to stop in a curve, gradually apply both brakes as you straighten the motorcycle.","usersAnswer":""},{"id":22,"question":"Why do you change gears?","answer":"To match engine speed (RPM) to road speed.","options":["To save fuel.","To gain traction.","To stop the motorcycle from tipping over."],"image":null,"explanation":"Lower gears are used for lower speeds, and higher gears are used for higher speeds.","usersAnswer":""},{"id":23,"question":"What is engine braking?","answer":"Slowing down by shifting to a lower gear and easing out the clutch lever.","options":["Shutting down the engine using engine cut-ff switch.","Slowing down by using clutch and rear brake.","Slowing down by using clutch and front brake."],"image":null,"explanation":"To use engine braking, shift down one gear at a time and ease out the clutch lever through the friction zone.","usersAnswer":""},{"id":24,"question":"What is the position of the clutch lever when making a stop?","answer":"Fully squeezed.","options":["Any position.","Squeezed halfway through.","Fully open."],"image":null,"explanation":"When making a complete stop, the clutch lever must be fully squeezed to disconnect power to the rear wheel.","usersAnswer":""},{"id":25,"question":"What does each letter in T-CLOCS stand for?","answer":"Tires and Wheels, Controls, Lights and Mirrors, Oil, Chasis, Stands.","options":["Tires, Clutch, Level, Outdoor conditions, Chase, Swerve.","Try Close Leaning Or Close Swerving.","Temperature, Coolant, Liquid, Oil, Clutch, Stands."],"image":null,"explanation":"T-CLOCS is a pre-ride inspection routine to ensure safety.","usersAnswer":""},{"id":26,"question":"What type of injury accounts for the majority of motorcycle-related deaths?","answer":"Head injury.","options":["Shoulder injury.","Chest injury.","Injuries to arms and legs."],"image":null,"explanation":"A head injury is the primary cause of deatch for riders.","usersAnswer":""},{"id":27,"question":"What is hypothermia?","answer":"Lower than normal body temperature.","options":["Higher than normal body temperature.","Normal body temperature.","Cyclical rise and drop in body temperature."],"image":null,"explanation":"Hypothermia is lower than normal body temperature and causes loss of concentration and slower reactions.","usersAnswer":""},{"id":28,"question":"Where do most crashes occur?","answer":"Curves and intersections.","options":["Straight highways.","When entering road from driveways.","Parking lots."],"image":null,"explanation":"Crashes mostly occur in curves and intersections because, the vehicle is less stable, you are more vulnerable and less visible.","usersAnswer":""},{"id":29,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":30,"question":"Which of the following is not a safety margin?","answer":"Having multiple lanes to ride in.","options":["Having riding skill and motorcycle maneuverability beyond what is actually needed.","Having traction beyond what is actually needed.","Having time and space beyond what is actually needed."],"image":null,"explanation":"Rider skill, traction and time and space provide safety margins reducing risk.","usersAnswer":""},{"id":31,"question":"Which of the following is NOT a visual lead time of RiderRadar?","answer":"7-second braking time and distance.","options":["2-second following time and distance.","4-second urgent time and distance.","12-secoond anticipation time and distance."],"image":null,"explanation":"These times help under what is doiong on all around. Consider using greater times and distance.","usersAnswer":""},{"id":32,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":33,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":34,"question":"Which of the following is NOT a part of stopping distance?","answer":"Warming distance.","options":["Perception distance.","Reaction distance.","Braking distance."],"image":null,"explanation":"Combined, these three are the total stopping distance.","usersAnswer":""},{"id":35,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":36,"question":"In the context of blind spots, what is No-Zone?","answer":"Blind spots around large trucks.","options":["Blind spots around stationary objects.","Highways at night.","Gravel roads."],"image":null,"explanation":"The No-Zone refers to blind spots around large trucks. These spots are on the sides, in the rear, and in the front.","usersAnswer":""},{"id":37,"question":"What should you NOT do when changing lanes?","answer":"Rush into the open spot by increasing the speed sharply.","options":["Check to see the space you want remains open.","Use a head check to see what is not seen in your mirrors.","Signal in advance and encourage driver behind to give you space."],"image":null,"explanation":"Never rush into any empty spot. Safety must not be compromised for speed.","usersAnswer":""},{"id":38,"question":"What should you NOT do when there is a tailgater?","answer":"Brake check the tailgater.","options":["Use one of the brake controls to flash the brake light.","Change lanes.","Increase your distance from vehicles ahead of you so you have more time and space to stop."],"image":null,"explanation":"Brake checking the tailgater is unsafe and should never be attempted.","usersAnswer":""},{"id":39,"question":"When riding in groups, what formation should be used on straights?","answer":"Staggered.","options":["Single-file.","Side by Side.","Any formation."],"image":null,"explanation":"Use a staggered formation unless there is a need for other formations.","usersAnswer":""},{"id":40,"question":"When riding in groups, what formation should be used in curves?","answer":"Single-file with 2-second following distance.","options":["Staggered.","Side by Side.","Any formation."],"image":null,"explanation":"Single-file formation with 2-second following distance gives more maneuvering room and increases safety.","usersAnswer":""},{"id":41,"question":"What is the best way to achieve the shortest braking distance in straight line?","answer":"Squeeze the clutch lever and apply both brakes at the same time.","options":["Apply the rear brake firmly.","Apply the front brake firmly.","Apply the rear brake first and then the front brake."],"image":null,"explanation":"This way of use of controls produces maximum braking without skidding either wheel.","usersAnswer":""},{"id":42,"question":"What is threshold braking?","answer":"The ability to use the brakes fully without producing a skid.","options":["Firmly applying the brakes at the shortest time.","Gently tapping the brakes multiple times.","Applying partial brakes without using clutch."],"image":null,"explanation":"This kind of braking takes a special feel. It is important to squeeze, not grab, the front brake lever and press, not jab, the rear brake pedal.","usersAnswer":""},{"id":43,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""},{"id":44,"question":"What should you do if the rear tire skids because of too much brake pressure?","answer":"Continue to apply brake if the back moves sideway, else release the brake pedal and reapply as needed.","options":["Continue to apply brake.","Gently tap the brake levers multiple times.","Apply partial brakes without using clutch."],"image":null,"explanation":"Do not release the rear brake pedal when the rear wheel is not in line with the front wheel. If the rear wheel starts to roll, it might straighten quickly and throw you off.","usersAnswer":""}]')},mrSG:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return s}),n.d(t,"__metadata",function(){return l}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return h}),n.d(t,"__exportStar",function(){return f}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return g}),n.d(t,"__spreadArrays",function(){return v}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return m}),n.d(t,"__asyncDelegator",function(){return w}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return x}),n.d(t,"__importDefault",function(){return C});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(r){c(i[0][3],r)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),o=Array.isArray||function(e){return e&&"number"==typeof e.length};function i(e){return null!==e&&"object"==typeof e}function a(e){return"function"==typeof e}function u(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);var s=u,l=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,u=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=r?r.length:0;n;)n.remove(this),n=++h0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(q);function Y(e){return e}function J(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Z(Y,e)}function X(){return function(e){return e.lift(new ee(e))}}var ee=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new te(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(v),ne=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l).add(this.source.subscribe(new oe(this.getSubject(),this))),e.closed?(this._connection=null,e=l.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return X()(this)},t}(x).prototype,re={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ne._subscribe},_isComplete:{value:ne._isComplete,writable:!0},getSubject:{value:ne.getSubject},connect:{value:ne.connect},refCount:{value:ne.refCount}},oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(O);function ie(){return new k}var ae="__parameters__";function ue(e,t,n){var o=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];i.push(a+":"+("string"==typeof u?JSON.stringify(u):ye(u)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+e.replace(Ie,"\n ")}var Ve=function(){return function(){}}(),Fe=function(){return function(){}}();function He(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var ze=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Be=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te)}(),Qe="ngDebugContext",We="ngOriginalError",Ge="ngErrorLogger";function Ze(e){return e[Qe]}function Ke(e){return e[We]}function $e(e){for(var t=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();ft.hasOwnProperty(t)&&!st.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(bt(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),mt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wt=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(mt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(wt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _t(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Ct=function(){return function(){}}(),St=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Et=/^url\(([^)]+)\)$/,Tt=/([A-Z])/g;function Ot(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var kt=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return At()},e}(),At=function(){for(var e=[],t=0;t-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Sr,e._providers[c]=Ir(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{De(i)}}function Ir(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var o=n.length;switch(o){case 0:return new t;case 1:return new t(Ar(e,n[0]));case 2:return new t(Ar(e,n[0]),Ar(e,n[1]));case 3:return new t(Ar(e,n[0]),Ar(e,n[1]),Ar(e,n[2]));default:for(var i=new Array(o),a=0;a=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qe(n,t),Bn.dirtyParentQueries(r),Nr(r),r}function Pr(e,t,n){var r=t?ar(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);dr(n,2,o,i,void 0)}function Nr(e){dr(e,3,null,null,void 0)}var jr=new Object;function Dr(e,t,n,r,o,i){return new Mr(e,t,n,r,o,i)}var Mr=function(e){function t(t,n,r,o,i,a){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=a,u.viewDefFactory=r,u}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=pr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Bn.createRootView(e,t||[],n,o,r,jr),u=Hn(a,i).instance;return n&&a.renderer.setAttribute(Fn(a,0).renderElement,"ng-version",dn.full),new Ur(a,new Hr(a),u)},t}(Jt),Ur=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new un(Fn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Qr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Yt);function Lr(e,t,n){return new Vr(e,t,n)}var Vr=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new un(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Qr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ir(e),e=e.parent;return e?new Qr(e,t):new Qr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Rr(this._data,e);Bn.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Hr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof on||(o=i.get(Ve));var a=e.create(i,r,void 0,o);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=e;return i=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=i.length),(o=a._view).viewContainerParent=this._view,He(i,r,o),function(e,t){var n=or(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Bn.dirtyParentQueries(o),Pr(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,u=this._embeddedViews.indexOf(e._view);return o=t,a=(i=(n=this._data).viewContainer._embeddedViews)[r=u],qe(i,r),null==o&&(o=i.length),He(i,o,a),Bn.dirtyParentQueries(a),Nr(a),Pr(n,o>0?i[o-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Rr(this._data,e);t&&Bn.destroyView(t)},e.prototype.detach=function(e){var t=Rr(this._data,e);return t?new Hr(t):null},e}();function Fr(e){return new Hr(e)}var Hr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return dr(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){tr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Bn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Bn.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Bn.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Nr(this._view),Bn.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function qr(e,t){return new zr(e,t)}var zr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Hr(Bn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new un(Fn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(In);function Br(e,t){return new Qr(e,t)}var Qr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Pt.THROW_IF_NOT_FOUND),Bn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Gn(e)},t)},e}();function Wr(e){return new Gr(e.renderer)}var Gr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Object(r.__read)(br(t),2),o=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,o=t.provider;switch(201347067&t.flags){case 512:return fo(e,t.parent,n,o.value,o.deps);case 1024:return function(e,t,n,o,i){var a=i.length;switch(a){case 0:return o();case 1:return o(go(e,t,n,i[0]));case 2:return o(go(e,t,n,i[0]),go(e,t,n,i[1]));case 3:return o(go(e,t,n,i[0]),go(e,t,n,i[1]),go(e,t,n,i[2]));default:for(var u=Array(a),s=0;s0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),hi=function(){function e(){this._applications=new Map,fi.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),fi.findTestabilityInTree(this,e,t)},Object(r.__decorate)([Object(r.__metadata)("design:paramtypes",[])],e)}(),fi=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),pi=new Oe("AllowMultipleToken"),di=function(){return function(e,t){this.name=e,this.token=t}}();function gi(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new Oe(r);return function(t){void 0===t&&(t=[]);var i=vi();if(!i||i.injector.get(pi,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var a=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(si&&!si.destroyed&&!si.injector.get(pi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");si=e.get(yi);var t=e.get(Do,null);t&&t.forEach(function(e){return e()})}(Pt.create({providers:a,name:r}))}return function(e){var t=vi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function vi(){return si&&!si.destroyed?si:null}var yi=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new li:("zone.js"===n?void 0:n)||new ni({enableLongStackTrace:et()}),i=[{provide:ni,useValue:o}];return o.run(function(){var t=Pt.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),a=n.injector.get(Ye,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.injector.get(Vo,"en-US").toLowerCase().replace(/_/g,"-"),n.onDestroy(function(){return bi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){a.handleError(e)}})}),function(e,t,o){try{var i=((a=n.injector.get(Ro)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Zt(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var a}(a,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=mi({},t);return function(e,t,n){return e.get(Zo).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(wi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ye(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function mi(e,t){return Array.isArray(t)?t.reduce(mi,e):Object(r.__assign)({},e,t)}var wi=function(){function e(e,t,n,r,o,i){var a=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=et(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new x(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),s=new x(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){ni.assertNotInAngularZone(),ti(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){ni.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof x?e[0]:J(n)(W(e,r))}(u,s.pipe(function(e){return X()((t=ie,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,re);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Jt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof on?null:this._injector.get(Ve),i=n.create(Pt.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(ci,null);return a&&i.injector.get(hi).registerApplication(i.location.nativeElement,a),this._loadComponent(i),et()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e,n,o,i,a=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var u=t._tickScope();try{this._runningTick=!0;try{for(var s=Object(r.__values)(this._views),l=s.next();!l.done;l=s.next())l.value.detectChanges()}catch(f){e={error:f}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=Object(r.__values)(this._views),h=c.next();!h.done;h=c.next())h.value.checkNoChanges()}catch(p){o={error:p}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}}catch(d){this._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,Xo(u)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;bi(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Uo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),bi(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Jo("ApplicationRef#tick()"),e}();function bi(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var _i=function(){return function(){}}(),xi=function(){return function(){}}(),Ci={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Si=function(){function e(e,t){this._compiler=e,this._config=t||Ci}return e.prototype.load=function(e){return this._compiler instanceof Go?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,o=Object(r.__read)(e.split("#"),2),i=o[0],a=o[1];return void 0===a&&(a="default"),n("zn8P")(i).then(function(e){return e[a]}).then(function(e){return Ei(e,i,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.__read)(e.split("#"),2),o=t[0],i=t[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("zn8P")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(e){return e[i+a]}).then(function(e){return Ei(e,o,i)})},e}();function Ei(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Ti=function(){return function(e,t){this.name=e,this.callback=t}}(),Oi=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof ki&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),ki=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,o=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,Object(r.__spread)([i+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=o}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof ki&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof ki&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof ki&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Oi),Ai=new Map,Ii=function(e){return Ai.get(e)||null};function Ri(e){Ai.set(e.nativeNode,e)}var Pi=gi(null,"core",[{provide:Mo,useValue:"unknown"},{provide:yi,deps:[Pt]},{provide:hi,deps:[]},{provide:Lo,deps:[]}]);function Ni(){return kn}function ji(){return An}function Di(e){return e||"en-US"}function Mi(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var Ui=function(){return function(e){}}();function Li(e,t,n,r,o,i){e|=1;var a=lr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?pr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Qn},provider:null,text:null,query:null,ngContent:null}}function Vi(e,t,n,o,i,a,u,s,l,c,h,f){var p;void 0===u&&(u=[]),c||(c=Qn);var d=lr(n),g=d.matchedQueries,v=d.references,y=d.matchedQueryIds,m=null,w=null;a&&(m=(p=Object(r.__read)(br(a),2))[0],w=p[1]),s=s||[];for(var b=new Array(s.length),_=0;_0)l=g,ta(g)||(c=g);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&ta(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function ta(e){return 0!=(1&e.flags)&&null===e.element.name}function na(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function ra(e,t,n,r){var o=aa(e.root,e.renderer,e,t,n);return ua(o,e.component,r),sa(o),o}function oa(e,t,n){var r=aa(e,e.renderer,null,null,t);return ua(r,n,n),sa(r),r}function ia(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,aa(e.root,o,e,t.element.componentProvider,n)}function aa(e,t,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function ua(e,t,n){e.component=t,e.context=n}function sa(e){var t;ur(e)&&(t=Fn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&zi(e,t,0,n)&&(p=!0),f>1&&zi(e,t,1,r)&&(p=!0),f>2&&zi(e,t,2,o)&&(p=!0),f>3&&zi(e,t,3,i)&&(p=!0),f>4&&zi(e,t,4,a)&&(p=!0),f>5&&zi(e,t,5,u)&&(p=!0),f>6&&zi(e,t,6,s)&&(p=!0),f>7&&zi(e,t,7,l)&&(p=!0),f>8&&zi(e,t,8,c)&&(p=!0),f>9&&zi(e,t,9,h)&&(p=!0),p}(e,t,n,r,o,i,a,u,s,l,c,h);case 2:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=!1,p=t.bindings,d=p.length;if(d>0&&Xn(e,t,0,n)&&(f=!0),d>1&&Xn(e,t,1,r)&&(f=!0),d>2&&Xn(e,t,2,o)&&(f=!0),d>3&&Xn(e,t,3,i)&&(f=!0),d>4&&Xn(e,t,4,a)&&(f=!0),d>5&&Xn(e,t,5,u)&&(f=!0),d>6&&Xn(e,t,6,s)&&(f=!0),d>7&&Xn(e,t,7,l)&&(f=!0),d>8&&Xn(e,t,8,c)&&(f=!0),d>9&&Xn(e,t,9,h)&&(f=!0),f){var g=t.text.prefix;d>0&&(g+=Xi(n,p[0])),d>1&&(g+=Xi(r,p[1])),d>2&&(g+=Xi(o,p[2])),d>3&&(g+=Xi(i,p[3])),d>4&&(g+=Xi(a,p[4])),d>5&&(g+=Xi(u,p[5])),d>6&&(g+=Xi(s,p[6])),d>7&&(g+=Xi(l,p[7])),d>8&&(g+=Xi(c,p[8])),d>9&&(g+=Xi(h,p[9]));var v=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return f}(e,t,n,r,o,i,a,u,s,l,c,h);case 16384:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=Hn(e,t.nodeIndex),p=f.instance,d=!1,g=void 0,v=t.bindings.length;return v>0&&Jn(e,t,0,n)&&(d=!0,g=yo(e,f,t,0,n,g)),v>1&&Jn(e,t,1,r)&&(d=!0,g=yo(e,f,t,1,r,g)),v>2&&Jn(e,t,2,o)&&(d=!0,g=yo(e,f,t,2,o,g)),v>3&&Jn(e,t,3,i)&&(d=!0,g=yo(e,f,t,3,i,g)),v>4&&Jn(e,t,4,a)&&(d=!0,g=yo(e,f,t,4,a,g)),v>5&&Jn(e,t,5,u)&&(d=!0,g=yo(e,f,t,5,u,g)),v>6&&Jn(e,t,6,s)&&(d=!0,g=yo(e,f,t,6,s,g)),v>7&&Jn(e,t,7,l)&&(d=!0,g=yo(e,f,t,7,l,g)),v>8&&Jn(e,t,8,c)&&(d=!0,g=yo(e,f,t,8,c,g)),v>9&&Jn(e,t,9,h)&&(d=!0,g=yo(e,f,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Ln(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),d}(e,t,n,r,o,i,a,u,s,l,c,h);case 32:case 64:case 128:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=t.bindings,p=!1,d=f.length;if(d>0&&Xn(e,t,0,n)&&(p=!0),d>1&&Xn(e,t,1,r)&&(p=!0),d>2&&Xn(e,t,2,o)&&(p=!0),d>3&&Xn(e,t,3,i)&&(p=!0),d>4&&Xn(e,t,4,a)&&(p=!0),d>5&&Xn(e,t,5,u)&&(p=!0),d>6&&Xn(e,t,6,s)&&(p=!0),d>7&&Xn(e,t,7,l)&&(p=!0),d>8&&Xn(e,t,8,c)&&(p=!0),d>9&&Xn(e,t,9,h)&&(p=!0),p){var g=qn(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=a),d>5&&(v[5]=u),d>6&&(v[6]=s),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=o),d>3&&(v[f[3].name]=i),d>4&&(v[f[4].name]=a),d>5&&(v[f[5].name]=u),d>6&&(v[f[6].name]=s),d>7&&(v[f[7].name]=l),d>8&&(v[f[8].name]=c),d>9&&(v[f[9].name]=h);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,a);break;case 6:v=y.transform(r,o,i,a,u);break;case 7:v=y.transform(r,o,i,a,u,s);break;case 8:v=y.transform(r,o,i,a,u,s,l);break;case 9:v=y.transform(r,o,i,a,u,s,l,c);break;case 10:v=y.transform(r,o,i,a,u,s,l,c,h)}}g.value=v}return p}(e,t,n,r,o,i,a,u,s,l,c,h);default:throw"unreachable"}}(e,t,o,i,a,u,s,l,c,h,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&er(e,t,0,n),f>1&&er(e,t,1,r),f>2&&er(e,t,2,o),f>3&&er(e,t,3,i),f>4&&er(e,t,4,a),f>5&&er(e,t,5,u),f>6&&er(e,t,6,s),f>7&&er(e,t,7,l),f>8&&er(e,t,8,c),f>9&&er(e,t,9,h)}(e,t,r,o,i,a,u,s,l,c,h,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);Ia.forEach(function(t,r){if(i.has(ge(r).providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:cr(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[Gn(r)]=o}})}}(e=e.factory(function(){return Qn})),e):e}(r))}var Aa=new Map,Ia=new Map,Ra=new Map;function Pa(e){var t;Aa.set(e.token,e),"function"==typeof e.token&&(t=ge(e.token))&&"function"==typeof t.providedIn&&Ia.set(e.token,e)}function Na(e,t){var n=pr(t.viewDefFactory),r=pr(n.nodes[0].element.componentView);Ra.set(e,r)}function ja(){Aa.clear(),Ia.clear(),Ra.clear()}function Da(e){if(0===Aa.size)return e;var t=function(e){for(var t=[],n=null,r=0;r0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=du.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(fu),yu=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(r.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return du.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+du.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(fu),mu=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),wu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),bu=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function _u(e,t){var n=To(e),r=n[Co.NumberSymbols][t];if(void 0===r){if(t===bu.CurrencyDecimal)return n[Co.NumberSymbols][bu.Decimal];if(t===bu.CurrencyGroup)return n[Co.NumberSymbols][bu.Group]}return r}var xu=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Cu(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var Su=new Oe("UseV4Plurals"),Eu=function(){return function(){}}(),Tu=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(r.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return To(e)[Co.PluralCase]}(t||this.locale)(e)){case wu.Zero:return"zero";case wu.One:return"one";case wu.Two:return"two";case wu.Few:return"few";case wu.Many:return"many";default:return"other"}},t}(Eu),Ou=function(){return function(){}}(),ku=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return e.prototype.getValue=function(){return null},e.prototype.setClass=function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},e.prototype.setNgClass=function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Wt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},e.prototype.applyChanges=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ye(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),Au=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"klass",{set:function(e){this._delegate.setClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(e){this._delegate.setNgClass(e)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this._delegate.applyChanges()},t}(function(){function e(e){this._delegate=e}return e.prototype.getValue=function(){return this._delegate.getValue()},e.ngDirectiveDef=void 0,e}()),Iu=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),Ru=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){et()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new Iu(null,t._ngForOf,-1,-1),null===o?void 0:o),a=new Pu(e,i);n.push(a)}else null==o?t._viewContainer.remove(null===r?void 0:r):null!==r&&(i=t._viewContainer.get(r),t._viewContainer.move(i,o),a=new Pu(e,i),n.push(a))});for(var r=0;r-1&&(u=u.replace(".","")),(o=u.search(/e/i))>0?(r<0&&(r=o),r+=+u.slice(o+1),u=u.substring(0,o)):r<0&&(r=u.length),o=0;"0"===u.charAt(o);o++);if(o===(a=u.length))n=[0],r=1;else{for(a--;"0"===u.charAt(a);)a--;for(r-=o,n=[],i=0;o<=a;o++,i++)n[i]=Number(u.charAt(o))}return r>22&&(n=n.splice(0,21),s=r-1,r=1),{digits:n,exponent:s,integerLen:r}}();a&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var c=t.minInt,h=t.minFrac,f=t.maxFrac;if(i){var p=i.match(xu);if(null===p)throw new Error(i+" is not a valid digit info");var d=p[1],g=p[3],v=p[5];null!=d&&(c=Cu(d)),null!=g&&(h=Cu(g)),null!=v?f=Cu(v):null!=g&&h>f&&(f=h)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),a=i+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;o=f?r.pop():h=!1),t>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}(l,h,f);var y=l.digits,m=l.integerLen,w=l.exponent,b=[];for(s=y.every(function(e){return!e});m0?b=y.splice(m,y.length):(b=y,y=[0]);var _=[];for(y.length>=t.lgSize&&_.unshift(y.splice(-t.lgSize,y.length).join(""));y.length>t.gSize;)_.unshift(y.splice(-t.gSize,y.length).join(""));y.length&&_.unshift(y.join("")),u=_.join(_u(n,r)),b.length&&(u+=_u(n,o)+b.join("")),w&&(u+=_u(n,bu.Exponential)+"+"+w)}else u=_u(n,bu.Infinity);return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}(e,function(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],i=r[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var l=0;l0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(e?es(function(t,n){return e(t,n,r)}):Y,is(1),n?ps(t):hs(function(){return new Zu}))}}function ys(e){return function(t){var n=new ms(e),r=t.lift(n);return n.caught=r}}var ms=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new ws(e,this.selector,this.caught))},e}(),ws=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.selector=n,o.caught=r,o}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(o){return void e.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new R(this,void 0,void 0);this.add(r),H(this,n,void 0,void 0,r)}},t}(q);function bs(e){return function(t){return 0===e?zu():t.lift(new _s(e))}}var _s=function(){function e(e){if(this.total=e,this.total<0)throw new os}return e.prototype.call=function(e,t){return t.subscribe(new xs(e,this.total))},e}(),xs=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function Cs(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?es(function(t,n){return e(t,n,r)}):Y,bs(1),n?ps(t):hs(function(){return new Zu}))}}var Ss=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Es(e,this.predicate,this.thisArg,this.source))},e}(),Es=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return r.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Ts(e,t){return"function"==typeof t?function(n){return n.pipe(Ts(function(n,r){return G(e(n,r)).pipe(z(function(e,o){return t(n,e,r,o)}))}))}:function(t){return t.lift(new Os(e))}}var Os=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ks(e,this.project))},e}(),ks=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new R(this,void 0,void 0);this.destination.add(o),this.innerSubscription=H(this,e,t,n,o)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t}(q);function As(){for(var e=[],t=0;t=2&&(n=!0),function(r){return r.lift(new Rs(e,t,n))}}var Rs=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Ps(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ps=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(v);function Ns(e,t){return Z(e,t,1)}var js=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Ds(e,this.callback))},e}(),Ds=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new l(n)),r}return r.__extends(t,e),t}(v),Ms=null;function Us(){return Ms}var Ls,Vs=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;a||(a=e[i]=[]);var s=Cl(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:s,handler:o});else{for(var l=!1,c=0;c-1},t}(nl),Rl=["alt","control","meta","shift"],Pl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Nl=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Us().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(Rl.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},t.getEventFullKey=function(e){var t="",n=Us().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rl.forEach(function(r){r!=n&&(0,Pl[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(nl),jl=function(){return function(){}}(),Dl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case xt.NONE:return t;case xt.HTML:return t instanceof Ul?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ut=ut||new tt(e);var r=t?String(t):"";n=ut.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ut.getInertBodyElement(r)}while(r!==i);var a=new yt,u=a.sanitizeChildren(_t(n)||n);return et()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=_t(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(t)));case xt.STYLE:return t instanceof Ll?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Et);return t&&ot(t[1])===t[1]||e.match(St)&&function(e){for(var t=!0,n=!0,r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Cc(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sc(e){return Kt(e)?e:Zt(e)?G(Promise.resolve(e)):Qu(e)}function Ec(e,t,n){return n?function(e,t){return bc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ac(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,o){if(n.segments.length>o.length)return!!Ac(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Ac(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!e(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!Ac(n.segments,a)&&!!n.children[lc]&&t(n.children[lc],r,u)}(t,n,n.segments)}(e.root,t.root)}var Tc=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Nc.serialize(this)},e}(),Oc=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Cc(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return jc(this)},e}(),kc=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=hc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Fc(this)},e}();function Ac(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Ic(e,t){var n=[];return Cc(e.children,function(e,r){r===lc&&(n=n.concat(t(e,r)))}),Cc(e.children,function(e,r){r!==lc&&(n=n.concat(t(e,r)))}),n}var Rc=function(){return function(){}}(),Pc=function(){function e(){}return e.prototype.parse=function(e){var t=new Qc(e);return new Tc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return jc(t);if(n){var r=t.children[lc]?e(t.children[lc],!1):"",o=[];return Cc(t.children,function(t,n){n!==lc&&o.push(n+":"+e(t,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Ic(t,function(n,r){return r===lc?[e(t.children[lc],!1)]:[r+":"+e(n,!1)]});return jc(t)+"/("+i.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Mc(e)+"="+Mc(t)}).join("&"):Mc(e)+"="+Mc(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Nc=new Pc;function jc(e){return e.segments.map(function(e){return Fc(e)}).join("/")}function Dc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mc(e){return Dc(e).replace(/%3B/gi,";")}function Uc(e){return Dc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lc(e){return decodeURIComponent(e)}function Vc(e){return Lc(e.replace(/\+/g,"%20"))}function Fc(e){return""+Uc(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+Uc(e)+"="+Uc(t[e])}).join(""));var t}var Hc=/^[^\/()?;=#]+/;function qc(e){var t=e.match(Hc);return t?t[0]:""}var zc=/^[^=?&#]+/,Bc=/^[^?&#]+/,Qc=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oc([],{}):new Oc([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[lc]=new Oc(e,t)),n},e.prototype.parseSegment=function(){var e=qc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new kc(Lc(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=qc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=qc(this.remaining);r&&this.capture(n=r)}e[Lc(t)]=Lc(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(zc))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(Bc);return t?t[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Vc(n),a=Vc(r);if(e.hasOwnProperty(i)){var u=e[i];Array.isArray(u)||(e[i]=u=[u]),u.push(a)}else e[i]=a}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=lc);var i=this.parseChildren();t[o]=1===Object.keys(i).length?i[lc]:new Oc([],i),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Wc=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Gc(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Gc(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Zc(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Zc(e,this._root).map(function(e){return e.value})},e}();function Gc(e,t){var n,o;if(e===t.value)return t;try{for(var i=Object(r.__values)(t.children),a=i.next();!a.done;a=i.next()){var u=Gc(e,a.value);if(u)return u}}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}function Zc(e,t){var n,o;if(e===t.value)return[t];try{for(var i=Object(r.__values)(t.children),a=i.next();!a.done;a=i.next()){var u=Zc(e,a.value);if(u.length)return u.unshift(t),u}}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return[]}var Kc=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function $c(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Yc=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,rh(r,t),r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Wc);function Jc(e,t){var n=function(e,t){var n=new th([],{},{},"",{},lc,t,null,e.root,-1,{});return new nh("",new Kc(n,[]))}(e,t),r=new Wu([new kc("",{})]),o=new Wu({}),i=new Wu({}),a=new Wu({}),u=new Wu(""),s=new Xc(r,o,a,u,i,lc,t,n.root);return s.snapshot=n.root,new Yc(new Kc(s,[]),n)}var Xc=function(){function e(e,t,n,r,o,i,a,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(z(function(e){return hc(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(function(e){return hc(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function eh(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,o=0;if("always"!==t)for(o=n.length-1;o>=1;){var i=n[o],a=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var th=function(){function e(e,t,n,r,o,i,a,u,s,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=hc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),nh=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,rh(r,n),r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return oh(this._root)},t}(Wc);function rh(e,t){t.value._routerState=e,t.children.forEach(function(t){return rh(e,t)})}function oh(e){var t=e.children.length>0?" { "+e.children.map(oh).join(", ")+" } ":"";return""+e.value+t}function ih(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),bc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&uh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==xc(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),ch=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function hh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[lc]:""+e}function fh(e,t,n){if(e||(e=new Oc([],{})),0===e.segments.length&&e.hasChildren())return ph(e,t,n);var r=function(e,t,n){for(var r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=e.segments[o],u=hh(n[r]),s=r0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!yh(u,s,a))return i;r+=2}else{if(!yh(u,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Oc([],((r={})[lc]=e,r)):e;return new Tc(o,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(z(function(e){return new Oc([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Qu({});var i=[],a=[],u={};return Cc(n,function(n,o){var s,l,c=(s=o,l=n,r.expandSegmentGroup(e,t,l,s)).pipe(z(function(e){return u[o]=e}));o===lc?i.push(c):a.push(c)}),Qu.apply(null,i.concat(a)).pipe(Xu(),vs(),z(function(){return u}))}(n.children)},e.prototype.expandSegment=function(e,t,n,o,i,a){var u=this;return Qu.apply(void 0,Object(r.__spread)(n)).pipe(z(function(r){return u.expandSegmentAgainstRoute(e,t,n,r,o,i,a).pipe(ys(function(e){if(e instanceof xh)return Qu(null);throw e}))}),Xu(),Cs(function(e){return!!e}),ys(function(e,n){if(e instanceof Zu||"EmptyError"===e.name){if(u.noLeftoversInUrl(t,o,i))return Qu(new Oc([],{}));throw new xh(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,o,i,a){return Rh(r)!==i?Sh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i):Sh(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Eh(i):this.lineralizeSegments(n,i).pipe(Z(function(n){var i=new Oc(n,{});return o.expandSegment(e,i,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){var a=this,u=kh(t,r,o),s=u.consumedSegments,l=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Sh(t);var h=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?Eh(h):this.lineralizeSegments(r,h).pipe(Z(function(r){return a.expandSegment(e,t,n,r.concat(o.slice(l)),i,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,o){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(z(function(e){return n._loadedConfig=e,new Oc(o,{})})):Qu(new Oc(o,{}));var a=kh(t,n,o),u=a.consumedSegments,s=a.lastChild;if(!a.matched)return Sh(t);var l=o.slice(s);return this.getChildConfig(e,n,o).pipe(Z(function(e){var n=e.module,o=e.routes,a=function(e,t,n,o){return n.length>0&&function(e,t,n){return o.some(function(n){return Ih(e,t,n)&&Rh(n)!==lc})}(e,n)?{segmentGroup:Ah(new Oc(t,function(e,t){var n,o,i={};i[lc]=t;try{for(var a=Object(r.__values)(e),u=a.next();!u.done;u=a.next()){var s=u.value;""===s.path&&Rh(s)!==lc&&(i[Rh(s)]=new Oc([],{}))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}(o,new Oc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return o.some(function(n){return Ih(e,t,n)})}(e,n)?{segmentGroup:Ah(new Oc(e.segments,function(e,t,n,o){var i,a,u={};try{for(var s=Object(r.__values)(n),l=s.next();!l.done;l=s.next()){var c=l.value;Ih(e,t,c)&&!o[Rh(c)]&&(u[Rh(c)]=new Oc([],{}))}}catch(h){i={error:h}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return Object(r.__assign)({},o,u)}(e,n,o,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,l,o),s=a.segmentGroup,c=a.slicedSegments;return 0===c.length&&s.hasChildren()?i.expandChildren(n,o,s).pipe(z(function(e){return new Oc(u,e)})):0===o.length&&0===c.length?Qu(new Oc(u,{})):i.expandSegment(n,s,o,c,lc,!0).pipe(z(function(e){return new Oc(u.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?Qu(new gc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Qu(t._loadedConfig):function(e,t,n){var r,o=t.canLoad;return o&&0!==o.length?G(o).pipe(z(function(r){var o,i=e.get(r);if(function(e){return e&&bh(e.canLoad)}(i))o=i.canLoad(t,n);else{if(!bh(i))throw new Error("Invalid CanLoad guard");o=i(t,n)}return Sc(o)})).pipe(Xu(),(r=function(e){return!0===e},function(e){return e.lift(new Ss(r,void 0,e))})):Qu(!0)}(e.injector,t,n).pipe(Z(function(n){return n?r.configLoader.load(e.injector,t).pipe(z(function(e){return t._loadedConfig=e,e})):function(e){return new x(function(t){return t.error(pc("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(t)})):Qu(new gc([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Qu(n);if(r.numberOfChildren>1||!r.children[lc])return Th(e.redirectTo);r=r.children[lc]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var o=this.createSegmentGroup(e,t.root,n,r);return new Tc(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Cc(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[r]=t[o]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var o=this,i=this.createSegments(e,t.segments,n,r),a={};return Cc(t.children,function(t,i){a[i]=o.createSegmentGroup(e,t,n,r)}),new Oc(i,a)},e.prototype.createSegments=function(e,t,n,r){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,r):o.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,o,i=0;try{for(var a=Object(r.__values)(t),u=a.next();!u.done;u=a.next()){var s=u.value;if(s.path===e.path)return t.splice(i),s;i++}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return e},e}();function kh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||dc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ah(e){if(1===e.numberOfChildren&&e.children[lc]){var t=e.children[lc];return new Oc(e.segments.concat(t.segments),t.children)}return e}function Ih(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Rh(e){return e.outlet||lc}var Ph=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),Nh=function(){return function(e,t){this.component=e,this.route=t}}();function jh(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Dh(e,t,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=$c(t);return e.children.forEach(function(e){!function(e,t,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=e.value,a=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var s=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ac(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ac(e.url,t.url)||!bc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ah(e,t)||!bc(e.queryParams,t.queryParams);case"paramsChange":default:return!ah(e,t)}}(a,i,i.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new Ph(r)):(i.data=a.data,i._resolvedData=a._resolvedData),Dh(e,t,i.component?u?u.children:null:n,r,o),s&&o.canDeactivateChecks.push(new Nh(u&&u.outlet&&u.outlet.component||null,a))}else a&&Mh(t,u,o),o.canActivateChecks.push(new Ph(r)),Dh(e,null,i.component?u?u.children:null:n,r,o)}(e,i[e.value.outlet],n,r.concat([e.value]),o),delete i[e.value.outlet]}),Cc(i,function(e,t){return Mh(e,n.getContext(t),o)}),o}function Mh(e,t,n){var r=$c(e),o=e.value;Cc(r,function(e,r){Mh(e,o.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Nh(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}var Uh=Symbol("INITIAL_VALUE");function Lh(){return Ts(function(e){return(function(){for(var e=[],t=0;t0?W(e,n):zu(n):Bu(e[0]),t)}}(Uh))}))).pipe(Is(function(e,t){var n=!1;return t.reduce(function(e,r,o){if(e!==Uh)return e;if(r===Uh&&(n=!0),!n){if(!1===r)return r;if(o===t.length-1||_h(r))return r}return e},e)},Uh),es(function(e){return e!==Uh}),z(function(e){return _h(e)?e:!0===e}),bs(1))})}function Vh(e,t){return null!==e&&t&&t(new ic(e)),Qu(!0)}function Fh(e,t){return null!==e&&t&&t(new rc(e)),Qu(!0)}function Hh(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Qu(r.map(function(r){return Ju(function(){var o,i=jh(r,t,n);if(function(e){return e&&bh(e.canActivate)}(i))o=Sc(i.canActivate(t,e));else{if(!bh(i))throw new Error("Invalid CanActivate guard");o=Sc(i(t,e))}return o.pipe(Cs())})})).pipe(Lh()):Qu(!0)}function qh(e,t,n){var r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Ju(function(){return Qu(t.guards.map(function(o){var i,a=jh(o,t.node,n);if(function(e){return e&&bh(e.canActivateChild)}(a))i=Sc(a.canActivateChild(r,e));else{if(!bh(a))throw new Error("Invalid CanActivateChild guard");i=Sc(a(r,e))}return i.pipe(Cs())})).pipe(Lh())})});return Qu(o).pipe(Lh())}var zh=function(){return function(){}}(),Bh=function(){function e(e,t,n,r,o,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return e.prototype.recognize=function(){try{var e=Gh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,lc),n=new th([],Object.freeze({}),Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,{},lc,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Kc(n,t),i=new nh(this.url,o);return this.inheritParamsAndData(i._root),Qu(i)}catch(a){return new x(function(e){return e.error(a)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=eh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,o=Ic(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},o.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),o=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[e.value.outlet]=e.value}),o.sort(function(e,t){return e.value.outlet===lc?-1:t.value.outlet===lc?1:e.value.outlet.localeCompare(t.value.outlet)}),o},e.prototype.processSegment=function(e,t,n,o){var i,a;try{for(var u=Object(r.__values)(e),s=u.next();!s.done;s=u.next()){var l=s.value;try{return this.processSegmentAgainstRoute(l,t,n,o)}catch(c){if(!(c instanceof zh))throw c}}}catch(h){i={error:h}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,o))return[];throw new zh},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,o){if(e.redirectTo)throw new zh;if((e.outlet||lc)!==o)throw new zh;var i,a=[],u=[];if("**"===e.path){var s=n.length>0?xc(n).parameters:{};i=new th(n,s,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,$h(e),o,e.component,e,Qh(t),Wh(t)+n.length,Yh(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new zh;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(t.matcher||dc)(n,e,t);if(!o)throw new zh;var i={};Cc(o.posParams,function(e,t){i[t]=e.path});var a=o.consumed.length>0?Object(r.__assign)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(t,e,n);a=l.consumedSegments,u=n.slice(l.lastChild),i=new th(a,l.parameters,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,$h(e),o,e.component,e,Qh(t),Wh(t)+a.length,Yh(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),h=Gh(t,a,u,c,this.relativeLinkResolution),f=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&f.hasChildren()){var d=this.processChildren(c,f);return[new Kc(i,d)]}if(0===c.length&&0===p.length)return[new Kc(i,[])];var g=this.processSegment(c,f,p,lc);return[new Kc(i,g)]},e}();function Qh(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Wh(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Gh(e,t,n,o,i){if(n.length>0&&function(e,t,n){return o.some(function(n){return Zh(e,t,n)&&Kh(n)!==lc})}(e,n)){var a=new Oc(t,function(e,t,n,o){var i,a,u={};u[lc]=o,o._sourceSegment=e,o._segmentIndexShift=t.length;try{for(var s=Object(r.__values)(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(""===c.path&&Kh(c)!==lc){var h=new Oc([],{});h._sourceSegment=e,h._segmentIndexShift=t.length,u[Kh(c)]=h}}}catch(f){i={error:f}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u}(e,t,o,new Oc(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return o.some(function(n){return Zh(e,t,n)})}(e,n)){var u=new Oc(e.segments,function(e,t,n,o,i,a){var u,s,l={};try{for(var c=Object(r.__values)(o),h=c.next();!h.done;h=c.next()){var f=h.value;if(Zh(e,n,f)&&!i[Kh(f)]){var p=new Oc([],{});p._sourceSegment=e,p._segmentIndexShift="legacy"===a?e.segments.length:t.length,l[Kh(f)]=p}}}catch(d){u={error:d}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(u)throw u.error}}return Object(r.__assign)({},i,l)}(e,t,n,o,e.children,i));return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}var s=new Oc(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Zh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Kh(e){return e.outlet||lc}function $h(e){return e.data||{}}function Yh(e){return e.resolve||{}}function Jh(e,t,n,r){var o=jh(e,t,r);return Sc(o.resolve?o.resolve(t,n):o(t,n))}function Xh(e){return function(t){return t.pipe(Ts(function(t){var n=e(t);return n?G(n).pipe(z(function(){return t})):G([t])}))}}var ef=function(){return function(){}}(),tf=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),nf=new Oe("ROUTES"),rf=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(z(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var o=r.create(e);return new gc(_c(o.injector.get(nf)).map(wc),o)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?G(this.loader.load(e)):Sc(e()).pipe(Z(function(e){return e instanceof Fe?Qu(e):G(t.compiler.compileModuleAsync(e))}))},e}(),of=function(){return function(){}}(),af=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function uf(e){throw e}function sf(e,t,n){return t.parse("/")}function lf(e,t){return Qu(null)}var cf=function(){function e(e,t,n,r,o,i,a,u){var s=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=uf,this.malformedUriErrorHandler=sf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lf,afterPreactivation:lf},this.urlHandlingStrategy=new af,this.routeReuseStrategy=new tf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Ve),this.console=o.get(Lo);var l=o.get(ni);this.isNgZoneEnabled=l instanceof ni,this.resetConfig(u),this.currentUrlTree=new Tc(new Oc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rf(i,a,function(e){return s.triggerEvent(new tc(e))},function(e){return s.triggerEvent(new nc(e))}),this.routerState=Jc(this.currentUrlTree,this.rootComponentType),this.transitions=new Wu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(es(function(e){return 0!==e.id}),z(function(e){return Object(r.__assign)({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Ts(function(e){var o,i,a,u,s=!1,l=!1;return Qu(e).pipe(ss(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(r.__assign)({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Ts(function(e){var o,i,a,u,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Qu(e).pipe(Ts(function(e){var r=t.transitions.getValue();return n.next(new Wl(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?qu:[e]}),Ts(function(e){return Promise.resolve(e)}),(o=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,u=t.config,function(e){return e.pipe(Ts(function(e){return function(t,n,r,o,i){return new Oh(t,n,r,e.extractedUrl,i).apply()}(o,i,a,0,u).pipe(z(function(t){return Object(r.__assign)({},e,{urlAfterRedirects:t})}))}))}),ss(function(e){t.currentNavigation=Object(r.__assign)({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,n,o,i,a){return function(o){return o.pipe(Z(function(o){return function(e,t,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Bh(e,t,n,r,o,i).recognize()}(e,n,o.urlAfterRedirects,(u=o.urlAfterRedirects,t.serializeUrl(u)),i,a).pipe(z(function(e){return Object(r.__assign)({},o,{targetSnapshot:e})}));var u}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),ss(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),ss(function(e){var r=new $l(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,p=new Wl(e.id,t.serializeUrl(l),c,h);n.next(p);var d=Jc(l,t.rootComponentType).snapshot;return Qu(Object(r.__assign)({},e,{targetSnapshot:d,urlAfterRedirects:l,extras:Object(r.__assign)({},f,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),qu}),Xh(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),ss(function(e){var n=new Yl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),z(function(e){return Object(r.__assign)({},e,{guards:(n=e.targetSnapshot,o=e.currentSnapshot,i=t.rootContexts,a=n._root,Dh(a,o?o._root:null,i,[a.value]))});var n,o,i,a}),function(e,t){return function(n){return n.pipe(Z(function(n){var o=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,u=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===u.length?Qu(Object(r.__assign)({},n,{guardsResult:!0})):function(e,t,n,r){return G(s).pipe(Z(function(e){return function(e,t,n,r,o){var i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?Qu(i.map(function(i){var a,u=jh(i,t,o);if(function(e){return e&&bh(e.canDeactivate)}(u))a=Sc(u.canDeactivate(e,t,n,r));else{if(!bh(u))throw new Error("Invalid CanDeactivate guard");a=Sc(u(e,t,n,r))}return a.pipe(Cs())})).pipe(Lh()):Qu(!0)}(e.component,e.route,n,t,r)}),Cs(function(e){return!0!==e},!0))}(0,o,i,e).pipe(Z(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return G(u).pipe(Ns(function(t){return G([Fh(t.route.parent,r),Vh(t.route,r),qh(e,t.path,n),Hh(e,t.route,n)]).pipe(Xu(),Cs(function(e){return!0!==e},!0))}),Cs(function(e){return!0!==e},!0))}(o,0,e,t):Qu(n)}),z(function(e){return Object(r.__assign)({},n,{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),ss(function(e){if(_h(e.guardsResult)){var n=pc('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}}),ss(function(e){var n=new Jl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),es(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Zl(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Xh(function(e){if(e.guards.canActivateChecks.length)return Qu(e).pipe(ss(function(e){var n=new Xl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(n=t.paramsInheritanceStrategy,o=t.ngModule.injector,function(e){return e.pipe(Z(function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?G(i).pipe(Ns(function(e){return function(e,n,o,i){return function(e,t,n,r){var o=Object.keys(e);if(0===o.length)return Qu({});if(1===o.length){var i=o[0];return Jh(e[i],t,n,r).pipe(z(function(e){var t;return(t={})[i]=e,t}))}var a={};return G(o).pipe(Z(function(o){return Jh(e[o],t,n,r).pipe(z(function(e){return a[o]=e,e}))})).pipe(vs(),z(function(){return a}))}(e._resolve,e,t,i).pipe(z(function(t){return e._resolvedData=t,e.data=Object(r.__assign)({},e.data,eh(e,o).resolve),null}))}(e.route,0,n,o)}),function(e,t){return arguments.length>=2?function(n){return b(Is(e,t),is(1),ps(t))(n)}:function(t){return b(Is(function(t,n,r){return e(t,n,r+1)}),is(1))(t)}}(function(e,t){return e}),z(function(t){return e})):Qu(e)}))}),ss(function(e){var n=new ec(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}));var n,o}),Xh(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),z(function(e){var n,o,i,a=(i=function e(t,n,o){if(o&&t.shouldReuseRoute(n.value,o.value.snapshot)){(l=o.value)._futureSnapshot=n.value;var i=function(t,n,o){return n.children.map(function(n){var i,a;try{for(var u=Object(r.__values)(o.children),s=u.next();!s.done;s=u.next()){var l=s.value;if(t.shouldReuseRoute(l.value.snapshot,n.value))return e(t,n,l)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return e(t,n)})}(t,n,o);return new Kc(l,i)}var a=t.retrieve(n.value);if(a){var u=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;ru;){if(s-=u,!(a=a.parent))throw new Error("Invalid number of '../'");u=a.segments.length}return new ch(a,!1,u-s)}()}(a,0,e),s=u.processChildren?ph(u.segmentGroup,u.index,a.commands):fh(u.segmentGroup,u.index,a.commands);return sh(u.segmentGroup,s,t,o,i)}(l,this.currentUrlTree,e,h,c)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),et()&&this.isNgZoneEnabled&&!ni.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=_h(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t=this.maxNumberOfQuestions-1)this.calculateFinalScore();else{if(null==this.questionsAsked[this.currentQuestionNumber+1]){var e=this.questionBankService.getNextQuestionExcludingMasks(this.idsOfQuestionsAsked);this.idsOfQuestionsAsked.push(e.id),this.questionsAsked[this.currentQuestionNumber+1]=e}this.currentQuestion=this.questionsAsked[++this.currentQuestionNumber],this.secondButtonText=this.currentQuestionNumber==this.maxNumberOfQuestions-1?"Calculate Score":"Next"}},e.prototype.goToPreviousQuestion=function(){this.currentQuestionNumber<=0||(this.currentQuestion=this.questionsAsked[--this.currentQuestionNumber])},e.prototype.restart=function(){this.startTest()},e}(),$f=$n({encapsulation:0,styles:[[".questionBoardMainDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:centre;margin:0 auto}.progressDiv[_ngcontent-%COMP%]{width:600px;align-self:centre;margin:0 auto}.buttonsDiv[_ngcontent-%COMP%]{width:720px;align-self:center;margin:0 auto;text-align:center}.buttonsTable[_ngcontent-%COMP%]{align-self:center;margin:0 auto}progress[_ngcontent-%COMP%]{width:600px}.retryButtonDiv[_ngcontent-%COMP%]{width:600px;align-self:center;margin:0 auto;text-align:center}button[_ngcontent-%COMP%]{height:40px;font-size:16px;width:140px}.correctAnswersDiv[_ngcontent-%COMP%], .scoreDiv[_ngcontent-%COMP%]{font-size:large}.greenColor[_ngcontent-%COMP%]{color:green}.redColor[_ngcontent-%COMP%]{color:red}"]],data:{}});function Yf(e){return ea(0,[(e()(),Vi(0,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,1,"div",[["class","progressDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,0,"progress",[],[[8,"value",0],[8,"max",0]],null,null,null,null)),(e()(),Vi(3,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),Yi(4,null,[" Question Number: "," "])),(e()(),Vi(5,0,null,null,1,"Question",[],null,null,null,Qf,Hf)),oo(6,49152,null,0,Ff,[],{questionModel:[0,"questionModel"]},null),(e()(),Vi(7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(9,0,null,null,8,"div",[["class","buttonsDiv"]],null,null,null,null,null)),(e()(),Vi(10,0,null,null,7,"table",[["class","buttonsTable"]],null,null,null,null,null)),(e()(),Vi(11,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Vi(12,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Vi(13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToPreviousQuestion()&&r),r},null,null)),(e()(),Yi(-1,null,[" Back "])),(e()(),Vi(15,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,1,"button",[],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getNextQuestion()&&r),r},null,null)),(e()(),Yi(17,null,[" "," "]))],function(e,t){e(t,6,0,t.component.currentQuestion)},function(e,t){var n=t.component;e(t,2,0,xr(1,"",n.currentQuestionNumber+1,""),xr(1,"",n.maxNumberOfQuestions,"")),e(t,4,0,n.currentQuestionNumber+1),e(t,16,0,!n.isCurrentQuestionAnswered()),e(t,17,0,n.secondButtonText)})}function Jf(e){return ea(0,[(e()(),Vi(0,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,5,"td",[],null,null,null,null,null)),(e()(),Vi(2,0,null,null,2,"div",[["style","margin-top: 8px"]],null,null,null,null,null)),(e()(),Vi(3,0,null,null,1,"Question",[],null,null,null,Qf,Hf)),oo(4,49152,null,0,Ff,[],{isEnabled:[0,"isEnabled"],shouldShowExplanation:[1,"shouldShowExplanation"],questionModel:[2,"questionModel"]},null),(e()(),Vi(5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(6,0,null,null,0,"hr",[],null,null,null,null,null))],function(e,t){e(t,4,0,!1,!0,t.context.$implicit)},null)}function Xf(e){return ea(0,[(e()(),Vi(0,0,null,null,20,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,2,"div",[["class","retryButtonDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restart()&&r),r},null,null)),(e()(),Yi(-1,null,["Retry"])),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(5,0,null,null,1,"div",[["class","correctAnswersDiv"]],null,null,null,null,null)),(e()(),Yi(6,null,[" Correct Answers: "," / "," "])),(e()(),Vi(7,0,null,null,7,"div",[["class","scoreDiv"]],null,null,null,null,null)),(e()(),Yi(-1,null,[" Score: "])),(e()(),Vi(9,0,null,null,5,"span",[],null,null,null,null,null)),io(512,null,Ou,ku,[En,Tn,un,fn]),oo(11,278528,null,0,Au,[Ou],{ngClass:[0,"ngClass"]},null),Ki(12,{redColor:0,greenColor:1}),(e()(),Yi(13,null,[" "," % "])),$i(128,14,new Array(3)),(e()(),Vi(15,0,null,null,5,"table",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Vi(17,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Vi(18,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Jf)),oo(20,278528,null,0,Ru,[Pn,In,En],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component,r=e(t,12,0,n.getScore()<75,n.getScore()>=75);e(t,11,0,r),e(t,20,0,n.questionsAsked)},function(e,t){var n=t.component;e(t,6,0,n.countOfCorrectAnswers,n.maxNumberOfQuestions);var r=function(e,t,n,r){if(Qt.isWrapped(r)){r=Qt.unwrap(r);var o=e.def.nodes[13].bindingIndex+0,i=Qt.unwrap(e.oldValues[o]);e.oldValues[o]=new Qt(i)}return r}(t,0,0,e(t,14,0,function(e,t){var n=e.def.nodes[0];if(1&n.flags){var r=Fn(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vn(e,n.nodeIndex).renderText;if(20240&n.flags)return Hn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index 0")}(t.parent),n.getScore(),"1.2-2"));e(t,13,0,r)})}function ep(e){return ea(0,[(t=0,n=Mu,r=[Vo],ao(-1,t|=16,null,0,n,n,r)),(e()(),Vi(1,0,null,null,5,"div",[["class","questionBoardMainDiv"]],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Yf)),oo(3,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Xf)),oo(6,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,!n.showAnswers),e(t,6,0,n.showAnswers)},null);var t,n,r}var tp=$n({encapsulation:0,styles:[[".rootDiv[_ngcontent-%COMP%]{width:816px;align-self:center;margin:0 auto;text-align:center;background:#fff;height:100%;font-family:'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif}.paddingDiv[_ngcontent-%COMP%]{height:20px}.instructionsDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:center;margin:0 auto}.termsAgreedStatementDiv[_ngcontent-%COMP%]{margin-top:20px}.agreementTable[_ngcontent-%COMP%]{width:600px;text-align:center;align-self:center;margin:0 auto}.termsAgreedButtonDiv[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:20px}.termsAgreedButton[_ngcontent-%COMP%]{height:40px;font-size:large}.importantWarning[_ngcontent-%COMP%]{font-weight:700;color:red}"]],data:{}});function np(e){return ea(0,[(e()(),Vi(0,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,5,"div",[["style","text-align: left; margin-left: 8px; margin-right: 8px"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" This site offers practice tests to prepare for "])),(e()(),Vi(4,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),Yi(-1,null,["Motorcycle Safety Foundation"])),(e()(),Yi(-1,null,["'s Basic RiderCourse Knowledge test. Study the materials provided by the Motorcycle Safety Foundation diligently. The information provided there will help you ride safer. Once you've studied, practice taking tests here as many times as you'd like! "])),(e()(),Vi(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" All the best! "])),(e()(),Vi(9,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Yi(-1,null,["TERMS OF AGREEMENT"])),(e()(),Vi(11,0,null,null,11,"div",[["class","instructionsDiv"]],null,null,null,null,null)),(e()(),Vi(12,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Vi(13,0,null,null,1,"span",[["class","importantWarning"]],null,null,null,null,null)),(e()(),Yi(-1,null,[" THIS IS NOT AN OFFICIAL TEST. PASSING THIS TEST DOESN'T GIVE YOU ANY ENDORSEMENTS."])),(e()(),Vi(15,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" THIS IS FOR PRACTICE AND PRACTICE ONLY! "])),(e()(),Vi(18,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" For further information, go to "])),(e()(),Vi(20,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),Yi(-1,null,["Motorcycle Safety Foundation"])),(e()(),Yi(-1,null,["."])),(e()(),Vi(23,0,null,null,10,"table",[["class","agreementTable"]],null,null,null,null,null)),(e()(),Vi(24,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Vi(25,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Vi(26,0,null,null,2,"div",[["class","termsAgreedStatementDiv"]],null,null,null,null,null)),(e()(),Vi(27,0,null,null,0,"input",[["type","checkbox"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.checked()&&r),r},null,null)),(e()(),Yi(-1,null,[" I've read and accept the above mentioned terms of agreement. "])),(e()(),Vi(29,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Vi(30,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Vi(31,0,null,null,2,"div",[["class","termsAgreedButtonDiv"]],null,null,null,null,null)),(e()(),Vi(32,0,null,null,1,"button",[["class","termsAgreedButton"]],[[8,"disabled",0]],[[null,"click"],[null,"disabledChange"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.startTestButtonClicked()&&r),"disabledChange"===t&&(r=0!=!(o.termsReadAndAgreed=n)&&r),r},null,null)),(e()(),Yi(-1,null,["Start the test!"]))],null,function(e,t){e(t,32,0,!t.component.termsReadAndAgreed)})}function rp(e){return ea(0,[(e()(),Vi(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,1,"QuestionBoard",[],null,null,null,ep,$f)),oo(2,49152,null,0,Kf,[],null,null)],null,null)}function op(e){return ea(0,[(e()(),Vi(0,0,null,null,9,"div",[["class","rootDiv"]],null,null,null,null,null)),(e()(),Vi(1,0,null,null,0,"div",[["class","paddingDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Yi(3,null,[" "," "])),(e()(),Li(16777216,null,null,1,null,np)),oo(5,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Li(16777216,null,null,1,null,rp)),oo(7,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Vi(8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oo(9,212992,null,0,pf,[ff,Pn,nn,[8,null],kt],null,null)],function(e,t){var n=t.component;e(t,5,0,!n.termsAgreed),e(t,7,0,n.termsAgreed),e(t,9,0)},function(e,t){e(t,3,0,t.component.title)})}function ip(e){return ea(0,[(e()(),Vi(0,0,null,null,1,"app-root",[],null,null,null,op,tp)),oo(1,49152,null,0,lu,[],null,null)],null,null)}var ap=Dr("app-root",lu,ip,{},{},[]),up=function(){return function(){}}(),sp=au(su,[lu],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(r){c(i[0][3],r)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),o=Array.isArray||function(e){return e&&"number"==typeof e.length};function i(e){return null!==e&&"object"==typeof e}function a(e){return"function"==typeof e}function u(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);var s=u,l=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,u=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=r?r.length:0;n;)n.remove(this),n=++h0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(q);function Y(e){return e}function J(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Z(Y,e)}function X(){return function(e){return e.lift(new ee(e))}}var ee=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new te(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(v),ne=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l).add(this.source.subscribe(new oe(this.getSubject(),this))),e.closed?(this._connection=null,e=l.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return X()(this)},t}(x).prototype,re={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ne._subscribe},_isComplete:{value:ne._isComplete,writable:!0},getSubject:{value:ne.getSubject},connect:{value:ne.connect},refCount:{value:ne.refCount}},oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(O);function ie(){return new k}var ae="__parameters__";function ue(e,t,n){var o=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];i.push(a+":"+("string"==typeof u?JSON.stringify(u):ye(u)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+e.replace(Ie,"\n ")}var Ve=function(){return function(){}}(),Fe=function(){return function(){}}();function He(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var ze=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Be=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te)}(),Qe="ngDebugContext",We="ngOriginalError",Ge="ngErrorLogger";function Ze(e){return e[Qe]}function Ke(e){return e[We]}function $e(e){for(var t=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();ft.hasOwnProperty(t)&&!st.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(bt(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),mt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wt=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(mt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(wt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _t(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Ct=function(){return function(){}}(),St=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Et=/^url\(([^)]+)\)$/,Tt=/([A-Z])/g;function Ot(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var kt=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return At()},e}(),At=function(){for(var e=[],t=0;t-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Sr,e._providers[c]=Ir(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{De(i)}}function Ir(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var o=n.length;switch(o){case 0:return new t;case 1:return new t(Ar(e,n[0]));case 2:return new t(Ar(e,n[0]),Ar(e,n[1]));case 3:return new t(Ar(e,n[0]),Ar(e,n[1]),Ar(e,n[2]));default:for(var i=new Array(o),a=0;a=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qe(n,t),Bn.dirtyParentQueries(r),Nr(r),r}function Pr(e,t,n){var r=t?ar(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);dr(n,2,o,i,void 0)}function Nr(e){dr(e,3,null,null,void 0)}var jr=new Object;function Dr(e,t,n,r,o,i){return new Mr(e,t,n,r,o,i)}var Mr=function(e){function t(t,n,r,o,i,a){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=a,u.viewDefFactory=r,u}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=pr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Bn.createRootView(e,t||[],n,o,r,jr),u=Hn(a,i).instance;return n&&a.renderer.setAttribute(Fn(a,0).renderElement,"ng-version",dn.full),new Ur(a,new Hr(a),u)},t}(Jt),Ur=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new un(Fn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Qr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Yt);function Lr(e,t,n){return new Vr(e,t,n)}var Vr=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new un(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Qr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ir(e),e=e.parent;return e?new Qr(e,t):new Qr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Rr(this._data,e);Bn.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Hr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof on||(o=i.get(Ve));var a=e.create(i,r,void 0,o);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=e;return i=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=i.length),(o=a._view).viewContainerParent=this._view,He(i,r,o),function(e,t){var n=or(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Bn.dirtyParentQueries(o),Pr(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,u=this._embeddedViews.indexOf(e._view);return o=t,a=(i=(n=this._data).viewContainer._embeddedViews)[r=u],qe(i,r),null==o&&(o=i.length),He(i,o,a),Bn.dirtyParentQueries(a),Nr(a),Pr(n,o>0?i[o-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Rr(this._data,e);t&&Bn.destroyView(t)},e.prototype.detach=function(e){var t=Rr(this._data,e);return t?new Hr(t):null},e}();function Fr(e){return new Hr(e)}var Hr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return dr(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){tr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Bn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Bn.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Bn.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Nr(this._view),Bn.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function qr(e,t){return new zr(e,t)}var zr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Hr(Bn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new un(Fn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(In);function Br(e,t){return new Qr(e,t)}var Qr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Pt.THROW_IF_NOT_FOUND),Bn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Gn(e)},t)},e}();function Wr(e){return new Gr(e.renderer)}var Gr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Object(r.__read)(br(t),2),o=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,o=t.provider;switch(201347067&t.flags){case 512:return fo(e,t.parent,n,o.value,o.deps);case 1024:return function(e,t,n,o,i){var a=i.length;switch(a){case 0:return o();case 1:return o(go(e,t,n,i[0]));case 2:return o(go(e,t,n,i[0]),go(e,t,n,i[1]));case 3:return o(go(e,t,n,i[0]),go(e,t,n,i[1]),go(e,t,n,i[2]));default:for(var u=Array(a),s=0;s0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),hi=function(){function e(){this._applications=new Map,fi.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),fi.findTestabilityInTree(this,e,t)},Object(r.__decorate)([Object(r.__metadata)("design:paramtypes",[])],e)}(),fi=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),pi=new Oe("AllowMultipleToken"),di=function(){return function(e,t){this.name=e,this.token=t}}();function gi(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new Oe(r);return function(t){void 0===t&&(t=[]);var i=vi();if(!i||i.injector.get(pi,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var a=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(si&&!si.destroyed&&!si.injector.get(pi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");si=e.get(yi);var t=e.get(Do,null);t&&t.forEach(function(e){return e()})}(Pt.create({providers:a,name:r}))}return function(e){var t=vi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function vi(){return si&&!si.destroyed?si:null}var yi=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new li:("zone.js"===n?void 0:n)||new ni({enableLongStackTrace:et()}),i=[{provide:ni,useValue:o}];return o.run(function(){var t=Pt.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),a=n.injector.get(Ye,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.injector.get(Vo,"en-US").toLowerCase().replace(/_/g,"-"),n.onDestroy(function(){return bi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){a.handleError(e)}})}),function(e,t,o){try{var i=((a=n.injector.get(Ro)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Zt(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var a}(a,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=mi({},t);return function(e,t,n){return e.get(Zo).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(wi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ye(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function mi(e,t){return Array.isArray(t)?t.reduce(mi,e):Object(r.__assign)({},e,t)}var wi=function(){function e(e,t,n,r,o,i){var a=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=et(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new x(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),s=new x(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){ni.assertNotInAngularZone(),ti(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){ni.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof x?e[0]:J(n)(W(e,r))}(u,s.pipe(function(e){return X()((t=ie,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,re);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Jt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof on?null:this._injector.get(Ve),i=n.create(Pt.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(ci,null);return a&&i.injector.get(hi).registerApplication(i.location.nativeElement,a),this._loadComponent(i),et()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e,n,o,i,a=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var u=t._tickScope();try{this._runningTick=!0;try{for(var s=Object(r.__values)(this._views),l=s.next();!l.done;l=s.next())l.value.detectChanges()}catch(f){e={error:f}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=Object(r.__values)(this._views),h=c.next();!h.done;h=c.next())h.value.checkNoChanges()}catch(p){o={error:p}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}}catch(d){this._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,Xo(u)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;bi(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Uo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),bi(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Jo("ApplicationRef#tick()"),e}();function bi(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var _i=function(){return function(){}}(),xi=function(){return function(){}}(),Ci={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Si=function(){function e(e,t){this._compiler=e,this._config=t||Ci}return e.prototype.load=function(e){return this._compiler instanceof Go?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,o=Object(r.__read)(e.split("#"),2),i=o[0],a=o[1];return void 0===a&&(a="default"),n("zn8P")(i).then(function(e){return e[a]}).then(function(e){return Ei(e,i,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.__read)(e.split("#"),2),o=t[0],i=t[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("zn8P")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(e){return e[i+a]}).then(function(e){return Ei(e,o,i)})},e}();function Ei(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Ti=function(){return function(e,t){this.name=e,this.callback=t}}(),Oi=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof ki&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),ki=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,o=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,Object(r.__spread)([i+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=o}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof ki&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof ki&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof ki&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Oi),Ai=new Map,Ii=function(e){return Ai.get(e)||null};function Ri(e){Ai.set(e.nativeNode,e)}var Pi=gi(null,"core",[{provide:Mo,useValue:"unknown"},{provide:yi,deps:[Pt]},{provide:hi,deps:[]},{provide:Lo,deps:[]}]);function Ni(){return kn}function ji(){return An}function Di(e){return e||"en-US"}function Mi(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var Ui=function(){return function(e){}}();function Li(e,t,n,r,o,i){e|=1;var a=lr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?pr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Qn},provider:null,text:null,query:null,ngContent:null}}function Vi(e,t,n,o,i,a,u,s,l,c,h,f){var p;void 0===u&&(u=[]),c||(c=Qn);var d=lr(n),g=d.matchedQueries,v=d.references,y=d.matchedQueryIds,m=null,w=null;a&&(m=(p=Object(r.__read)(br(a),2))[0],w=p[1]),s=s||[];for(var b=new Array(s.length),_=0;_0)l=g,ta(g)||(c=g);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&ta(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function ta(e){return 0!=(1&e.flags)&&null===e.element.name}function na(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function ra(e,t,n,r){var o=aa(e.root,e.renderer,e,t,n);return ua(o,e.component,r),sa(o),o}function oa(e,t,n){var r=aa(e,e.renderer,null,null,t);return ua(r,n,n),sa(r),r}function ia(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,aa(e.root,o,e,t.element.componentProvider,n)}function aa(e,t,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function ua(e,t,n){e.component=t,e.context=n}function sa(e){var t;ur(e)&&(t=Fn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&zi(e,t,0,n)&&(p=!0),f>1&&zi(e,t,1,r)&&(p=!0),f>2&&zi(e,t,2,o)&&(p=!0),f>3&&zi(e,t,3,i)&&(p=!0),f>4&&zi(e,t,4,a)&&(p=!0),f>5&&zi(e,t,5,u)&&(p=!0),f>6&&zi(e,t,6,s)&&(p=!0),f>7&&zi(e,t,7,l)&&(p=!0),f>8&&zi(e,t,8,c)&&(p=!0),f>9&&zi(e,t,9,h)&&(p=!0),p}(e,t,n,r,o,i,a,u,s,l,c,h);case 2:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=!1,p=t.bindings,d=p.length;if(d>0&&Xn(e,t,0,n)&&(f=!0),d>1&&Xn(e,t,1,r)&&(f=!0),d>2&&Xn(e,t,2,o)&&(f=!0),d>3&&Xn(e,t,3,i)&&(f=!0),d>4&&Xn(e,t,4,a)&&(f=!0),d>5&&Xn(e,t,5,u)&&(f=!0),d>6&&Xn(e,t,6,s)&&(f=!0),d>7&&Xn(e,t,7,l)&&(f=!0),d>8&&Xn(e,t,8,c)&&(f=!0),d>9&&Xn(e,t,9,h)&&(f=!0),f){var g=t.text.prefix;d>0&&(g+=Xi(n,p[0])),d>1&&(g+=Xi(r,p[1])),d>2&&(g+=Xi(o,p[2])),d>3&&(g+=Xi(i,p[3])),d>4&&(g+=Xi(a,p[4])),d>5&&(g+=Xi(u,p[5])),d>6&&(g+=Xi(s,p[6])),d>7&&(g+=Xi(l,p[7])),d>8&&(g+=Xi(c,p[8])),d>9&&(g+=Xi(h,p[9]));var v=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return f}(e,t,n,r,o,i,a,u,s,l,c,h);case 16384:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=Hn(e,t.nodeIndex),p=f.instance,d=!1,g=void 0,v=t.bindings.length;return v>0&&Jn(e,t,0,n)&&(d=!0,g=yo(e,f,t,0,n,g)),v>1&&Jn(e,t,1,r)&&(d=!0,g=yo(e,f,t,1,r,g)),v>2&&Jn(e,t,2,o)&&(d=!0,g=yo(e,f,t,2,o,g)),v>3&&Jn(e,t,3,i)&&(d=!0,g=yo(e,f,t,3,i,g)),v>4&&Jn(e,t,4,a)&&(d=!0,g=yo(e,f,t,4,a,g)),v>5&&Jn(e,t,5,u)&&(d=!0,g=yo(e,f,t,5,u,g)),v>6&&Jn(e,t,6,s)&&(d=!0,g=yo(e,f,t,6,s,g)),v>7&&Jn(e,t,7,l)&&(d=!0,g=yo(e,f,t,7,l,g)),v>8&&Jn(e,t,8,c)&&(d=!0,g=yo(e,f,t,8,c,g)),v>9&&Jn(e,t,9,h)&&(d=!0,g=yo(e,f,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Ln(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),d}(e,t,n,r,o,i,a,u,s,l,c,h);case 32:case 64:case 128:return function(e,t,n,r,o,i,a,u,s,l,c,h){var f=t.bindings,p=!1,d=f.length;if(d>0&&Xn(e,t,0,n)&&(p=!0),d>1&&Xn(e,t,1,r)&&(p=!0),d>2&&Xn(e,t,2,o)&&(p=!0),d>3&&Xn(e,t,3,i)&&(p=!0),d>4&&Xn(e,t,4,a)&&(p=!0),d>5&&Xn(e,t,5,u)&&(p=!0),d>6&&Xn(e,t,6,s)&&(p=!0),d>7&&Xn(e,t,7,l)&&(p=!0),d>8&&Xn(e,t,8,c)&&(p=!0),d>9&&Xn(e,t,9,h)&&(p=!0),p){var g=qn(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=a),d>5&&(v[5]=u),d>6&&(v[6]=s),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=o),d>3&&(v[f[3].name]=i),d>4&&(v[f[4].name]=a),d>5&&(v[f[5].name]=u),d>6&&(v[f[6].name]=s),d>7&&(v[f[7].name]=l),d>8&&(v[f[8].name]=c),d>9&&(v[f[9].name]=h);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,a);break;case 6:v=y.transform(r,o,i,a,u);break;case 7:v=y.transform(r,o,i,a,u,s);break;case 8:v=y.transform(r,o,i,a,u,s,l);break;case 9:v=y.transform(r,o,i,a,u,s,l,c);break;case 10:v=y.transform(r,o,i,a,u,s,l,c,h)}}g.value=v}return p}(e,t,n,r,o,i,a,u,s,l,c,h);default:throw"unreachable"}}(e,t,o,i,a,u,s,l,c,h,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&er(e,t,0,n),f>1&&er(e,t,1,r),f>2&&er(e,t,2,o),f>3&&er(e,t,3,i),f>4&&er(e,t,4,a),f>5&&er(e,t,5,u),f>6&&er(e,t,6,s),f>7&&er(e,t,7,l),f>8&&er(e,t,8,c),f>9&&er(e,t,9,h)}(e,t,r,o,i,a,u,s,l,c,h,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);Ia.forEach(function(t,r){if(i.has(ge(r).providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:cr(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[Gn(r)]=o}})}}(e=e.factory(function(){return Qn})),e):e}(r))}var Aa=new Map,Ia=new Map,Ra=new Map;function Pa(e){var t;Aa.set(e.token,e),"function"==typeof e.token&&(t=ge(e.token))&&"function"==typeof t.providedIn&&Ia.set(e.token,e)}function Na(e,t){var n=pr(t.viewDefFactory),r=pr(n.nodes[0].element.componentView);Ra.set(e,r)}function ja(){Aa.clear(),Ia.clear(),Ra.clear()}function Da(e){if(0===Aa.size)return e;var t=function(e){for(var t=[],n=null,r=0;r0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=du.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(fu),yu=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(r.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return du.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+du.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+du.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(fu),mu=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),wu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),bu=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function _u(e,t){var n=To(e),r=n[Co.NumberSymbols][t];if(void 0===r){if(t===bu.CurrencyDecimal)return n[Co.NumberSymbols][bu.Decimal];if(t===bu.CurrencyGroup)return n[Co.NumberSymbols][bu.Group]}return r}var xu=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Cu(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var Su=new Oe("UseV4Plurals"),Eu=function(){return function(){}}(),Tu=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(r.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return To(e)[Co.PluralCase]}(t||this.locale)(e)){case wu.Zero:return"zero";case wu.One:return"one";case wu.Two:return"two";case wu.Few:return"few";case wu.Many:return"many";default:return"other"}},t}(Eu),Ou=function(){return function(){}}(),ku=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return e.prototype.getValue=function(){return null},e.prototype.setClass=function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},e.prototype.setNgClass=function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Wt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},e.prototype.applyChanges=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ye(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),Au=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"klass",{set:function(e){this._delegate.setClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(e){this._delegate.setNgClass(e)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this._delegate.applyChanges()},t}(function(){function e(e){this._delegate=e}return e.prototype.getValue=function(){return this._delegate.getValue()},e.ngDirectiveDef=void 0,e}()),Iu=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),Ru=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){et()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new Iu(null,t._ngForOf,-1,-1),null===o?void 0:o),a=new Pu(e,i);n.push(a)}else null==o?t._viewContainer.remove(null===r?void 0:r):null!==r&&(i=t._viewContainer.get(r),t._viewContainer.move(i,o),a=new Pu(e,i),n.push(a))});for(var r=0;r-1&&(u=u.replace(".","")),(o=u.search(/e/i))>0?(r<0&&(r=o),r+=+u.slice(o+1),u=u.substring(0,o)):r<0&&(r=u.length),o=0;"0"===u.charAt(o);o++);if(o===(a=u.length))n=[0],r=1;else{for(a--;"0"===u.charAt(a);)a--;for(r-=o,n=[],i=0;o<=a;o++,i++)n[i]=Number(u.charAt(o))}return r>22&&(n=n.splice(0,21),s=r-1,r=1),{digits:n,exponent:s,integerLen:r}}();a&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var c=t.minInt,h=t.minFrac,f=t.maxFrac;if(i){var p=i.match(xu);if(null===p)throw new Error(i+" is not a valid digit info");var d=p[1],g=p[3],v=p[5];null!=d&&(c=Cu(d)),null!=g&&(h=Cu(g)),null!=v?f=Cu(v):null!=g&&h>f&&(f=h)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),a=i+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;o=f?r.pop():h=!1),t>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}(l,h,f);var y=l.digits,m=l.integerLen,w=l.exponent,b=[];for(s=y.every(function(e){return!e});m0?b=y.splice(m,y.length):(b=y,y=[0]);var _=[];for(y.length>=t.lgSize&&_.unshift(y.splice(-t.lgSize,y.length).join(""));y.length>t.gSize;)_.unshift(y.splice(-t.gSize,y.length).join(""));y.length&&_.unshift(y.join("")),u=_.join(_u(n,r)),b.length&&(u+=_u(n,o)+b.join("")),w&&(u+=_u(n,bu.Exponential)+"+"+w)}else u=_u(n,bu.Infinity);return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}(e,function(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],i=r[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var l=0;l0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(e?es(function(t,n){return e(t,n,r)}):Y,is(1),n?ps(t):hs(function(){return new Zu}))}}function ys(e){return function(t){var n=new ms(e),r=t.lift(n);return n.caught=r}}var ms=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new ws(e,this.selector,this.caught))},e}(),ws=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.selector=n,o.caught=r,o}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(o){return void e.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new R(this,void 0,void 0);this.add(r),H(this,n,void 0,void 0,r)}},t}(q);function bs(e){return function(t){return 0===e?zu():t.lift(new _s(e))}}var _s=function(){function e(e){if(this.total=e,this.total<0)throw new os}return e.prototype.call=function(e,t){return t.subscribe(new xs(e,this.total))},e}(),xs=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function Cs(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?es(function(t,n){return e(t,n,r)}):Y,bs(1),n?ps(t):hs(function(){return new Zu}))}}var Ss=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Es(e,this.predicate,this.thisArg,this.source))},e}(),Es=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return r.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Ts(e,t){return"function"==typeof t?function(n){return n.pipe(Ts(function(n,r){return G(e(n,r)).pipe(z(function(e,o){return t(n,e,r,o)}))}))}:function(t){return t.lift(new Os(e))}}var Os=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ks(e,this.project))},e}(),ks=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new R(this,void 0,void 0);this.destination.add(o),this.innerSubscription=H(this,e,t,n,o)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t}(q);function As(){for(var e=[],t=0;t=2&&(n=!0),function(r){return r.lift(new Rs(e,t,n))}}var Rs=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Ps(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ps=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(v);function Ns(e,t){return Z(e,t,1)}var js=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Ds(e,this.callback))},e}(),Ds=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new l(n)),r}return r.__extends(t,e),t}(v),Ms=null;function Us(){return Ms}var Ls,Vs=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;a||(a=e[i]=[]);var s=Cl(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:s,handler:o});else{for(var l=!1,c=0;c-1},t}(nl),Rl=["alt","control","meta","shift"],Pl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Nl=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Us().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(Rl.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},t.getEventFullKey=function(e){var t="",n=Us().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rl.forEach(function(r){r!=n&&(0,Pl[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(nl),jl=function(){return function(){}}(),Dl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case xt.NONE:return t;case xt.HTML:return t instanceof Ul?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ut=ut||new tt(e);var r=t?String(t):"";n=ut.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ut.getInertBodyElement(r)}while(r!==i);var a=new yt,u=a.sanitizeChildren(_t(n)||n);return et()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=_t(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(t)));case xt.STYLE:return t instanceof Ll?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Et);return t&&ot(t[1])===t[1]||e.match(St)&&function(e){for(var t=!0,n=!0,r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Cc(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sc(e){return Kt(e)?e:Zt(e)?G(Promise.resolve(e)):Qu(e)}function Ec(e,t,n){return n?function(e,t){return bc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ac(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,o){if(n.segments.length>o.length)return!!Ac(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Ac(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!e(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!Ac(n.segments,a)&&!!n.children[lc]&&t(n.children[lc],r,u)}(t,n,n.segments)}(e.root,t.root)}var Tc=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Nc.serialize(this)},e}(),Oc=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Cc(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return jc(this)},e}(),kc=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=hc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Fc(this)},e}();function Ac(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Ic(e,t){var n=[];return Cc(e.children,function(e,r){r===lc&&(n=n.concat(t(e,r)))}),Cc(e.children,function(e,r){r!==lc&&(n=n.concat(t(e,r)))}),n}var Rc=function(){return function(){}}(),Pc=function(){function e(){}return e.prototype.parse=function(e){var t=new Qc(e);return new Tc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return jc(t);if(n){var r=t.children[lc]?e(t.children[lc],!1):"",o=[];return Cc(t.children,function(t,n){n!==lc&&o.push(n+":"+e(t,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Ic(t,function(n,r){return r===lc?[e(t.children[lc],!1)]:[r+":"+e(n,!1)]});return jc(t)+"/("+i.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Mc(e)+"="+Mc(t)}).join("&"):Mc(e)+"="+Mc(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Nc=new Pc;function jc(e){return e.segments.map(function(e){return Fc(e)}).join("/")}function Dc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mc(e){return Dc(e).replace(/%3B/gi,";")}function Uc(e){return Dc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lc(e){return decodeURIComponent(e)}function Vc(e){return Lc(e.replace(/\+/g,"%20"))}function Fc(e){return""+Uc(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+Uc(e)+"="+Uc(t[e])}).join(""));var t}var Hc=/^[^\/()?;=#]+/;function qc(e){var t=e.match(Hc);return t?t[0]:""}var zc=/^[^=?&#]+/,Bc=/^[^?&#]+/,Qc=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oc([],{}):new Oc([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[lc]=new Oc(e,t)),n},e.prototype.parseSegment=function(){var e=qc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new kc(Lc(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=qc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=qc(this.remaining);r&&this.capture(n=r)}e[Lc(t)]=Lc(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(zc))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(Bc);return t?t[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Vc(n),a=Vc(r);if(e.hasOwnProperty(i)){var u=e[i];Array.isArray(u)||(e[i]=u=[u]),u.push(a)}else e[i]=a}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=lc);var i=this.parseChildren();t[o]=1===Object.keys(i).length?i[lc]:new Oc([],i),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Wc=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Gc(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Gc(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Zc(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Zc(e,this._root).map(function(e){return e.value})},e}();function Gc(e,t){var n,o;if(e===t.value)return t;try{for(var i=Object(r.__values)(t.children),a=i.next();!a.done;a=i.next()){var u=Gc(e,a.value);if(u)return u}}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}function Zc(e,t){var n,o;if(e===t.value)return[t];try{for(var i=Object(r.__values)(t.children),a=i.next();!a.done;a=i.next()){var u=Zc(e,a.value);if(u.length)return u.unshift(t),u}}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return[]}var Kc=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function $c(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Yc=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,rh(r,t),r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Wc);function Jc(e,t){var n=function(e,t){var n=new th([],{},{},"",{},lc,t,null,e.root,-1,{});return new nh("",new Kc(n,[]))}(e,t),r=new Wu([new kc("",{})]),o=new Wu({}),i=new Wu({}),a=new Wu({}),u=new Wu(""),s=new Xc(r,o,a,u,i,lc,t,n.root);return s.snapshot=n.root,new Yc(new Kc(s,[]),n)}var Xc=function(){function e(e,t,n,r,o,i,a,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(z(function(e){return hc(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(function(e){return hc(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function eh(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,o=0;if("always"!==t)for(o=n.length-1;o>=1;){var i=n[o],a=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var th=function(){function e(e,t,n,r,o,i,a,u,s,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=hc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),nh=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,rh(r,n),r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return oh(this._root)},t}(Wc);function rh(e,t){t.value._routerState=e,t.children.forEach(function(t){return rh(e,t)})}function oh(e){var t=e.children.length>0?" { "+e.children.map(oh).join(", ")+" } ":"";return""+e.value+t}function ih(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),bc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&uh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==xc(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),ch=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function hh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[lc]:""+e}function fh(e,t,n){if(e||(e=new Oc([],{})),0===e.segments.length&&e.hasChildren())return ph(e,t,n);var r=function(e,t,n){for(var r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=e.segments[o],u=hh(n[r]),s=r0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!yh(u,s,a))return i;r+=2}else{if(!yh(u,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Oc([],((r={})[lc]=e,r)):e;return new Tc(o,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(z(function(e){return new Oc([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Qu({});var i=[],a=[],u={};return Cc(n,function(n,o){var s,l,c=(s=o,l=n,r.expandSegmentGroup(e,t,l,s)).pipe(z(function(e){return u[o]=e}));o===lc?i.push(c):a.push(c)}),Qu.apply(null,i.concat(a)).pipe(Xu(),vs(),z(function(){return u}))}(n.children)},e.prototype.expandSegment=function(e,t,n,o,i,a){var u=this;return Qu.apply(void 0,Object(r.__spread)(n)).pipe(z(function(r){return u.expandSegmentAgainstRoute(e,t,n,r,o,i,a).pipe(ys(function(e){if(e instanceof xh)return Qu(null);throw e}))}),Xu(),Cs(function(e){return!!e}),ys(function(e,n){if(e instanceof Zu||"EmptyError"===e.name){if(u.noLeftoversInUrl(t,o,i))return Qu(new Oc([],{}));throw new xh(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,o,i,a){return Rh(r)!==i?Sh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i):Sh(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Eh(i):this.lineralizeSegments(n,i).pipe(Z(function(n){var i=new Oc(n,{});return o.expandSegment(e,i,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){var a=this,u=kh(t,r,o),s=u.consumedSegments,l=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Sh(t);var h=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?Eh(h):this.lineralizeSegments(r,h).pipe(Z(function(r){return a.expandSegment(e,t,n,r.concat(o.slice(l)),i,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,o){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(z(function(e){return n._loadedConfig=e,new Oc(o,{})})):Qu(new Oc(o,{}));var a=kh(t,n,o),u=a.consumedSegments,s=a.lastChild;if(!a.matched)return Sh(t);var l=o.slice(s);return this.getChildConfig(e,n,o).pipe(Z(function(e){var n=e.module,o=e.routes,a=function(e,t,n,o){return n.length>0&&function(e,t,n){return o.some(function(n){return Ih(e,t,n)&&Rh(n)!==lc})}(e,n)?{segmentGroup:Ah(new Oc(t,function(e,t){var n,o,i={};i[lc]=t;try{for(var a=Object(r.__values)(e),u=a.next();!u.done;u=a.next()){var s=u.value;""===s.path&&Rh(s)!==lc&&(i[Rh(s)]=new Oc([],{}))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}(o,new Oc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return o.some(function(n){return Ih(e,t,n)})}(e,n)?{segmentGroup:Ah(new Oc(e.segments,function(e,t,n,o){var i,a,u={};try{for(var s=Object(r.__values)(n),l=s.next();!l.done;l=s.next()){var c=l.value;Ih(e,t,c)&&!o[Rh(c)]&&(u[Rh(c)]=new Oc([],{}))}}catch(h){i={error:h}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return Object(r.__assign)({},o,u)}(e,n,o,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,l,o),s=a.segmentGroup,c=a.slicedSegments;return 0===c.length&&s.hasChildren()?i.expandChildren(n,o,s).pipe(z(function(e){return new Oc(u,e)})):0===o.length&&0===c.length?Qu(new Oc(u,{})):i.expandSegment(n,s,o,c,lc,!0).pipe(z(function(e){return new Oc(u.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?Qu(new gc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Qu(t._loadedConfig):function(e,t,n){var r,o=t.canLoad;return o&&0!==o.length?G(o).pipe(z(function(r){var o,i=e.get(r);if(function(e){return e&&bh(e.canLoad)}(i))o=i.canLoad(t,n);else{if(!bh(i))throw new Error("Invalid CanLoad guard");o=i(t,n)}return Sc(o)})).pipe(Xu(),(r=function(e){return!0===e},function(e){return e.lift(new Ss(r,void 0,e))})):Qu(!0)}(e.injector,t,n).pipe(Z(function(n){return n?r.configLoader.load(e.injector,t).pipe(z(function(e){return t._loadedConfig=e,e})):function(e){return new x(function(t){return t.error(pc("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(t)})):Qu(new gc([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Qu(n);if(r.numberOfChildren>1||!r.children[lc])return Th(e.redirectTo);r=r.children[lc]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var o=this.createSegmentGroup(e,t.root,n,r);return new Tc(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Cc(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[r]=t[o]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var o=this,i=this.createSegments(e,t.segments,n,r),a={};return Cc(t.children,function(t,i){a[i]=o.createSegmentGroup(e,t,n,r)}),new Oc(i,a)},e.prototype.createSegments=function(e,t,n,r){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,r):o.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,o,i=0;try{for(var a=Object(r.__values)(t),u=a.next();!u.done;u=a.next()){var s=u.value;if(s.path===e.path)return t.splice(i),s;i++}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return e},e}();function kh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||dc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ah(e){if(1===e.numberOfChildren&&e.children[lc]){var t=e.children[lc];return new Oc(e.segments.concat(t.segments),t.children)}return e}function Ih(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Rh(e){return e.outlet||lc}var Ph=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),Nh=function(){return function(e,t){this.component=e,this.route=t}}();function jh(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Dh(e,t,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=$c(t);return e.children.forEach(function(e){!function(e,t,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=e.value,a=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var s=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ac(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ac(e.url,t.url)||!bc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ah(e,t)||!bc(e.queryParams,t.queryParams);case"paramsChange":default:return!ah(e,t)}}(a,i,i.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new Ph(r)):(i.data=a.data,i._resolvedData=a._resolvedData),Dh(e,t,i.component?u?u.children:null:n,r,o),s&&o.canDeactivateChecks.push(new Nh(u&&u.outlet&&u.outlet.component||null,a))}else a&&Mh(t,u,o),o.canActivateChecks.push(new Ph(r)),Dh(e,null,i.component?u?u.children:null:n,r,o)}(e,i[e.value.outlet],n,r.concat([e.value]),o),delete i[e.value.outlet]}),Cc(i,function(e,t){return Mh(e,n.getContext(t),o)}),o}function Mh(e,t,n){var r=$c(e),o=e.value;Cc(r,function(e,r){Mh(e,o.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Nh(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}var Uh=Symbol("INITIAL_VALUE");function Lh(){return Ts(function(e){return(function(){for(var e=[],t=0;t0?W(e,n):zu(n):Bu(e[0]),t)}}(Uh))}))).pipe(Is(function(e,t){var n=!1;return t.reduce(function(e,r,o){if(e!==Uh)return e;if(r===Uh&&(n=!0),!n){if(!1===r)return r;if(o===t.length-1||_h(r))return r}return e},e)},Uh),es(function(e){return e!==Uh}),z(function(e){return _h(e)?e:!0===e}),bs(1))})}function Vh(e,t){return null!==e&&t&&t(new ic(e)),Qu(!0)}function Fh(e,t){return null!==e&&t&&t(new rc(e)),Qu(!0)}function Hh(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Qu(r.map(function(r){return Ju(function(){var o,i=jh(r,t,n);if(function(e){return e&&bh(e.canActivate)}(i))o=Sc(i.canActivate(t,e));else{if(!bh(i))throw new Error("Invalid CanActivate guard");o=Sc(i(t,e))}return o.pipe(Cs())})})).pipe(Lh()):Qu(!0)}function qh(e,t,n){var r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Ju(function(){return Qu(t.guards.map(function(o){var i,a=jh(o,t.node,n);if(function(e){return e&&bh(e.canActivateChild)}(a))i=Sc(a.canActivateChild(r,e));else{if(!bh(a))throw new Error("Invalid CanActivateChild guard");i=Sc(a(r,e))}return i.pipe(Cs())})).pipe(Lh())})});return Qu(o).pipe(Lh())}var zh=function(){return function(){}}(),Bh=function(){function e(e,t,n,r,o,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return e.prototype.recognize=function(){try{var e=Gh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,lc),n=new th([],Object.freeze({}),Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,{},lc,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Kc(n,t),i=new nh(this.url,o);return this.inheritParamsAndData(i._root),Qu(i)}catch(a){return new x(function(e){return e.error(a)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=eh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,o=Ic(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},o.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),o=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[e.value.outlet]=e.value}),o.sort(function(e,t){return e.value.outlet===lc?-1:t.value.outlet===lc?1:e.value.outlet.localeCompare(t.value.outlet)}),o},e.prototype.processSegment=function(e,t,n,o){var i,a;try{for(var u=Object(r.__values)(e),s=u.next();!s.done;s=u.next()){var l=s.value;try{return this.processSegmentAgainstRoute(l,t,n,o)}catch(c){if(!(c instanceof zh))throw c}}}catch(h){i={error:h}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,o))return[];throw new zh},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,o){if(e.redirectTo)throw new zh;if((e.outlet||lc)!==o)throw new zh;var i,a=[],u=[];if("**"===e.path){var s=n.length>0?xc(n).parameters:{};i=new th(n,s,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,$h(e),o,e.component,e,Qh(t),Wh(t)+n.length,Yh(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new zh;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(t.matcher||dc)(n,e,t);if(!o)throw new zh;var i={};Cc(o.posParams,function(e,t){i[t]=e.path});var a=o.consumed.length>0?Object(r.__assign)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(t,e,n);a=l.consumedSegments,u=n.slice(l.lastChild),i=new th(a,l.parameters,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,$h(e),o,e.component,e,Qh(t),Wh(t)+a.length,Yh(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),h=Gh(t,a,u,c,this.relativeLinkResolution),f=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&f.hasChildren()){var d=this.processChildren(c,f);return[new Kc(i,d)]}if(0===c.length&&0===p.length)return[new Kc(i,[])];var g=this.processSegment(c,f,p,lc);return[new Kc(i,g)]},e}();function Qh(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Wh(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Gh(e,t,n,o,i){if(n.length>0&&function(e,t,n){return o.some(function(n){return Zh(e,t,n)&&Kh(n)!==lc})}(e,n)){var a=new Oc(t,function(e,t,n,o){var i,a,u={};u[lc]=o,o._sourceSegment=e,o._segmentIndexShift=t.length;try{for(var s=Object(r.__values)(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(""===c.path&&Kh(c)!==lc){var h=new Oc([],{});h._sourceSegment=e,h._segmentIndexShift=t.length,u[Kh(c)]=h}}}catch(f){i={error:f}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u}(e,t,o,new Oc(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return o.some(function(n){return Zh(e,t,n)})}(e,n)){var u=new Oc(e.segments,function(e,t,n,o,i,a){var u,s,l={};try{for(var c=Object(r.__values)(o),h=c.next();!h.done;h=c.next()){var f=h.value;if(Zh(e,n,f)&&!i[Kh(f)]){var p=new Oc([],{});p._sourceSegment=e,p._segmentIndexShift="legacy"===a?e.segments.length:t.length,l[Kh(f)]=p}}}catch(d){u={error:d}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(u)throw u.error}}return Object(r.__assign)({},i,l)}(e,t,n,o,e.children,i));return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}var s=new Oc(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Zh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Kh(e){return e.outlet||lc}function $h(e){return e.data||{}}function Yh(e){return e.resolve||{}}function Jh(e,t,n,r){var o=jh(e,t,r);return Sc(o.resolve?o.resolve(t,n):o(t,n))}function Xh(e){return function(t){return t.pipe(Ts(function(t){var n=e(t);return n?G(n).pipe(z(function(){return t})):G([t])}))}}var ef=function(){return function(){}}(),tf=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),nf=new Oe("ROUTES"),rf=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(z(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var o=r.create(e);return new gc(_c(o.injector.get(nf)).map(wc),o)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?G(this.loader.load(e)):Sc(e()).pipe(Z(function(e){return e instanceof Fe?Qu(e):G(t.compiler.compileModuleAsync(e))}))},e}(),of=function(){return function(){}}(),af=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function uf(e){throw e}function sf(e,t,n){return t.parse("/")}function lf(e,t){return Qu(null)}var cf=function(){function e(e,t,n,r,o,i,a,u){var s=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=uf,this.malformedUriErrorHandler=sf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lf,afterPreactivation:lf},this.urlHandlingStrategy=new af,this.routeReuseStrategy=new tf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Ve),this.console=o.get(Lo);var l=o.get(ni);this.isNgZoneEnabled=l instanceof ni,this.resetConfig(u),this.currentUrlTree=new Tc(new Oc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rf(i,a,function(e){return s.triggerEvent(new tc(e))},function(e){return s.triggerEvent(new nc(e))}),this.routerState=Jc(this.currentUrlTree,this.rootComponentType),this.transitions=new Wu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(es(function(e){return 0!==e.id}),z(function(e){return Object(r.__assign)({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Ts(function(e){var o,i,a,u,s=!1,l=!1;return Qu(e).pipe(ss(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(r.__assign)({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Ts(function(e){var o,i,a,u,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Qu(e).pipe(Ts(function(e){var r=t.transitions.getValue();return n.next(new Wl(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?qu:[e]}),Ts(function(e){return Promise.resolve(e)}),(o=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,u=t.config,function(e){return e.pipe(Ts(function(e){return function(t,n,r,o,i){return new Oh(t,n,r,e.extractedUrl,i).apply()}(o,i,a,0,u).pipe(z(function(t){return Object(r.__assign)({},e,{urlAfterRedirects:t})}))}))}),ss(function(e){t.currentNavigation=Object(r.__assign)({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,n,o,i,a){return function(o){return o.pipe(Z(function(o){return function(e,t,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Bh(e,t,n,r,o,i).recognize()}(e,n,o.urlAfterRedirects,(u=o.urlAfterRedirects,t.serializeUrl(u)),i,a).pipe(z(function(e){return Object(r.__assign)({},o,{targetSnapshot:e})}));var u}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),ss(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),ss(function(e){var r=new $l(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,p=new Wl(e.id,t.serializeUrl(l),c,h);n.next(p);var d=Jc(l,t.rootComponentType).snapshot;return Qu(Object(r.__assign)({},e,{targetSnapshot:d,urlAfterRedirects:l,extras:Object(r.__assign)({},f,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),qu}),Xh(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),ss(function(e){var n=new Yl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),z(function(e){return Object(r.__assign)({},e,{guards:(n=e.targetSnapshot,o=e.currentSnapshot,i=t.rootContexts,a=n._root,Dh(a,o?o._root:null,i,[a.value]))});var n,o,i,a}),function(e,t){return function(n){return n.pipe(Z(function(n){var o=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,u=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===u.length?Qu(Object(r.__assign)({},n,{guardsResult:!0})):function(e,t,n,r){return G(s).pipe(Z(function(e){return function(e,t,n,r,o){var i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?Qu(i.map(function(i){var a,u=jh(i,t,o);if(function(e){return e&&bh(e.canDeactivate)}(u))a=Sc(u.canDeactivate(e,t,n,r));else{if(!bh(u))throw new Error("Invalid CanDeactivate guard");a=Sc(u(e,t,n,r))}return a.pipe(Cs())})).pipe(Lh()):Qu(!0)}(e.component,e.route,n,t,r)}),Cs(function(e){return!0!==e},!0))}(0,o,i,e).pipe(Z(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return G(u).pipe(Ns(function(t){return G([Fh(t.route.parent,r),Vh(t.route,r),qh(e,t.path,n),Hh(e,t.route,n)]).pipe(Xu(),Cs(function(e){return!0!==e},!0))}),Cs(function(e){return!0!==e},!0))}(o,0,e,t):Qu(n)}),z(function(e){return Object(r.__assign)({},n,{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),ss(function(e){if(_h(e.guardsResult)){var n=pc('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}}),ss(function(e){var n=new Jl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),es(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Zl(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Xh(function(e){if(e.guards.canActivateChecks.length)return Qu(e).pipe(ss(function(e){var n=new Xl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(n=t.paramsInheritanceStrategy,o=t.ngModule.injector,function(e){return e.pipe(Z(function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?G(i).pipe(Ns(function(e){return function(e,n,o,i){return function(e,t,n,r){var o=Object.keys(e);if(0===o.length)return Qu({});if(1===o.length){var i=o[0];return Jh(e[i],t,n,r).pipe(z(function(e){var t;return(t={})[i]=e,t}))}var a={};return G(o).pipe(Z(function(o){return Jh(e[o],t,n,r).pipe(z(function(e){return a[o]=e,e}))})).pipe(vs(),z(function(){return a}))}(e._resolve,e,t,i).pipe(z(function(t){return e._resolvedData=t,e.data=Object(r.__assign)({},e.data,eh(e,o).resolve),null}))}(e.route,0,n,o)}),function(e,t){return arguments.length>=2?function(n){return b(Is(e,t),is(1),ps(t))(n)}:function(t){return b(Is(function(t,n,r){return e(t,n,r+1)}),is(1))(t)}}(function(e,t){return e}),z(function(t){return e})):Qu(e)}))}),ss(function(e){var n=new ec(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}));var n,o}),Xh(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),z(function(e){var n,o,i,a=(i=function e(t,n,o){if(o&&t.shouldReuseRoute(n.value,o.value.snapshot)){(l=o.value)._futureSnapshot=n.value;var i=function(t,n,o){return n.children.map(function(n){var i,a;try{for(var u=Object(r.__values)(o.children),s=u.next();!s.done;s=u.next()){var l=s.value;if(t.shouldReuseRoute(l.value.snapshot,n.value))return e(t,n,l)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return e(t,n)})}(t,n,o);return new Kc(l,i)}var a=t.retrieve(n.value);if(a){var u=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;ru;){if(s-=u,!(a=a.parent))throw new Error("Invalid number of '../'");u=a.segments.length}return new ch(a,!1,u-s)}()}(a,0,e),s=u.processChildren?ph(u.segmentGroup,u.index,a.commands):fh(u.segmentGroup,u.index,a.commands);return sh(u.segmentGroup,s,t,o,i)}(l,this.currentUrlTree,e,h,c)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),et()&&this.isNgZoneEnabled&&!ni.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=_h(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t=this.maxNumberOfQuestions-1)this.calculateFinalScore();else{if(null==this.questionsAsked[this.currentQuestionNumber+1]){var e=this.questionBankService.getNextQuestionExcludingMasks(this.idsOfQuestionsAsked);this.idsOfQuestionsAsked.push(e.id),this.questionsAsked[this.currentQuestionNumber+1]=e}this.currentQuestion=this.questionsAsked[++this.currentQuestionNumber],this.secondButtonText=this.currentQuestionNumber==this.maxNumberOfQuestions-1?"Calculate Score":"Next"}},e.prototype.goToPreviousQuestion=function(){this.currentQuestionNumber<=0||(this.currentQuestion=this.questionsAsked[--this.currentQuestionNumber])},e.prototype.restart=function(){this.startTest()},e}(),$f=$n({encapsulation:0,styles:[[".questionBoardMainDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:centre;margin:0 auto}.progressDiv[_ngcontent-%COMP%]{width:600px;align-self:centre;margin:0 auto}.buttonsDiv[_ngcontent-%COMP%]{width:720px;align-self:center;margin:0 auto;text-align:center}.buttonsTable[_ngcontent-%COMP%]{align-self:center;margin:0 auto}progress[_ngcontent-%COMP%]{width:600px}.retryButtonDiv[_ngcontent-%COMP%]{width:600px;align-self:center;margin:0 auto;text-align:center}button[_ngcontent-%COMP%]{height:40px;font-size:16px;width:140px}.correctAnswersDiv[_ngcontent-%COMP%], .scoreDiv[_ngcontent-%COMP%]{font-size:large}.greenColor[_ngcontent-%COMP%]{color:green}.redColor[_ngcontent-%COMP%]{color:red}"]],data:{}});function Yf(e){return ea(0,[(e()(),Vi(0,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,1,"div",[["class","progressDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,0,"progress",[],[[8,"value",0],[8,"max",0]],null,null,null,null)),(e()(),Vi(3,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),Yi(4,null,[" Question Number: "," "])),(e()(),Vi(5,0,null,null,1,"Question",[],null,null,null,Qf,Hf)),oo(6,49152,null,0,Ff,[],{questionModel:[0,"questionModel"]},null),(e()(),Vi(7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(9,0,null,null,8,"div",[["class","buttonsDiv"]],null,null,null,null,null)),(e()(),Vi(10,0,null,null,7,"table",[["class","buttonsTable"]],null,null,null,null,null)),(e()(),Vi(11,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Vi(12,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Vi(13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToPreviousQuestion()&&r),r},null,null)),(e()(),Yi(-1,null,[" Back "])),(e()(),Vi(15,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,1,"button",[],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getNextQuestion()&&r),r},null,null)),(e()(),Yi(17,null,[" "," "]))],function(e,t){e(t,6,0,t.component.currentQuestion)},function(e,t){var n=t.component;e(t,2,0,xr(1,"",n.currentQuestionNumber+1,""),xr(1,"",n.maxNumberOfQuestions,"")),e(t,4,0,n.currentQuestionNumber+1),e(t,16,0,!n.isCurrentQuestionAnswered()),e(t,17,0,n.secondButtonText)})}function Jf(e){return ea(0,[(e()(),Vi(0,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,5,"td",[],null,null,null,null,null)),(e()(),Vi(2,0,null,null,2,"div",[["style","margin-top: 8px"]],null,null,null,null,null)),(e()(),Vi(3,0,null,null,1,"Question",[],null,null,null,Qf,Hf)),oo(4,49152,null,0,Ff,[],{isEnabled:[0,"isEnabled"],shouldShowExplanation:[1,"shouldShowExplanation"],questionModel:[2,"questionModel"]},null),(e()(),Vi(5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(6,0,null,null,0,"hr",[],null,null,null,null,null))],function(e,t){e(t,4,0,!1,!0,t.context.$implicit)},null)}function Xf(e){return ea(0,[(e()(),Vi(0,0,null,null,20,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,2,"div",[["class","retryButtonDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restart()&&r),r},null,null)),(e()(),Yi(-1,null,["Retry"])),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Vi(5,0,null,null,1,"div",[["class","correctAnswersDiv"]],null,null,null,null,null)),(e()(),Yi(6,null,[" Correct Answers: "," / "," "])),(e()(),Vi(7,0,null,null,7,"div",[["class","scoreDiv"]],null,null,null,null,null)),(e()(),Yi(-1,null,[" Score: "])),(e()(),Vi(9,0,null,null,5,"span",[],null,null,null,null,null)),io(512,null,Ou,ku,[En,Tn,un,fn]),oo(11,278528,null,0,Au,[Ou],{ngClass:[0,"ngClass"]},null),Ki(12,{redColor:0,greenColor:1}),(e()(),Yi(13,null,[" "," % "])),$i(128,14,new Array(3)),(e()(),Vi(15,0,null,null,5,"table",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Vi(17,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Vi(18,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Jf)),oo(20,278528,null,0,Ru,[Pn,In,En],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component,r=e(t,12,0,n.getScore()<75,n.getScore()>=75);e(t,11,0,r),e(t,20,0,n.questionsAsked)},function(e,t){var n=t.component;e(t,6,0,n.countOfCorrectAnswers,n.maxNumberOfQuestions);var r=function(e,t,n,r){if(Qt.isWrapped(r)){r=Qt.unwrap(r);var o=e.def.nodes[13].bindingIndex+0,i=Qt.unwrap(e.oldValues[o]);e.oldValues[o]=new Qt(i)}return r}(t,0,0,e(t,14,0,function(e,t){var n=e.def.nodes[0];if(1&n.flags){var r=Fn(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vn(e,n.nodeIndex).renderText;if(20240&n.flags)return Hn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index 0")}(t.parent),n.getScore(),"1.2-2"));e(t,13,0,r)})}function ep(e){return ea(0,[(t=0,n=Mu,r=[Vo],ao(-1,t|=16,null,0,n,n,r)),(e()(),Vi(1,0,null,null,5,"div",[["class","questionBoardMainDiv"]],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Yf)),oo(3,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Vi(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Li(16777216,null,null,1,null,Xf)),oo(6,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,!n.showAnswers),e(t,6,0,n.showAnswers)},null);var t,n,r}var tp=$n({encapsulation:0,styles:[[".rootDiv[_ngcontent-%COMP%]{width:816px;align-self:center;margin:0 auto;text-align:center;background:#fff;height:100%;font-family:'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif}.paddingDiv[_ngcontent-%COMP%]{height:20px}.instructionsDiv[_ngcontent-%COMP%]{text-align:left;width:800px;align-self:center;margin:0 auto}.termsAgreedStatementDiv[_ngcontent-%COMP%]{margin-top:20px}.agreementTable[_ngcontent-%COMP%]{width:600px;text-align:center;align-self:center;margin:0 auto}.termsAgreedButtonDiv[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:20px}.termsAgreedButton[_ngcontent-%COMP%]{height:40px;font-size:large}.importantWarning[_ngcontent-%COMP%]{font-weight:700;color:red}"]],data:{}});function np(e){return ea(0,[(e()(),Vi(0,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,5,"div",[["style","text-align: left; margin-left: 8px; margin-right: 8px"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" This site offers practice tests to prepare for "])),(e()(),Vi(4,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),Yi(-1,null,["Motorcycle Safety Foundation"])),(e()(),Yi(-1,null,["'s Basic RiderCourse Knowledge test. Study the materials provided by the Motorcycle Safety Foundation diligently. The information provided there will help you ride safer. Once you've studied, practice taking tests here as many times as you'd like! "])),(e()(),Vi(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" All the best! "])),(e()(),Vi(9,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Yi(-1,null,["TERMS OF AGREEMENT"])),(e()(),Vi(11,0,null,null,11,"div",[["class","instructionsDiv"]],null,null,null,null,null)),(e()(),Vi(12,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Vi(13,0,null,null,1,"span",[["class","importantWarning"]],null,null,null,null,null)),(e()(),Yi(-1,null,[" THIS IS NOT AN OFFICIAL TEST. PASSING THIS TEST DOESN'T GIVE YOU ANY ENDORSEMENTS."])),(e()(),Vi(15,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),Vi(16,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" THIS IS FOR PRACTICE AND PRACTICE ONLY! "])),(e()(),Vi(18,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),Yi(-1,null,[" For further information, go to "])),(e()(),Vi(20,0,null,null,1,"a",[["href","https://msf-usa.org/"]],null,null,null,null,null)),(e()(),Yi(-1,null,["Motorcycle Safety Foundation"])),(e()(),Yi(-1,null,["."])),(e()(),Vi(23,0,null,null,10,"table",[["class","agreementTable"]],null,null,null,null,null)),(e()(),Vi(24,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Vi(25,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Vi(26,0,null,null,2,"div",[["class","termsAgreedStatementDiv"]],null,null,null,null,null)),(e()(),Vi(27,0,null,null,0,"input",[["type","checkbox"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.checked()&&r),r},null,null)),(e()(),Yi(-1,null,[" I've read and accept the above mentioned terms of agreement. "])),(e()(),Vi(29,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),Vi(30,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),Vi(31,0,null,null,2,"div",[["class","termsAgreedButtonDiv"]],null,null,null,null,null)),(e()(),Vi(32,0,null,null,1,"button",[["class","termsAgreedButton"]],[[8,"disabled",0]],[[null,"click"],[null,"disabledChange"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.startTestButtonClicked()&&r),"disabledChange"===t&&(r=0!=!(o.termsReadAndAgreed=n)&&r),r},null,null)),(e()(),Yi(-1,null,["Start the test!"]))],null,function(e,t){e(t,32,0,!t.component.termsReadAndAgreed)})}function rp(e){return ea(0,[(e()(),Vi(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),Vi(1,0,null,null,1,"QuestionBoard",[],null,null,null,ep,$f)),oo(2,49152,null,0,Kf,[],null,null)],null,null)}function op(e){return ea(0,[(e()(),Vi(0,0,null,null,9,"div",[["class","rootDiv"]],null,null,null,null,null)),(e()(),Vi(1,0,null,null,0,"div",[["class","paddingDiv"]],null,null,null,null,null)),(e()(),Vi(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Yi(3,null,[" "," "])),(e()(),Li(16777216,null,null,1,null,np)),oo(5,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Li(16777216,null,null,1,null,rp)),oo(7,16384,null,0,Nu,[Pn,In],{ngIf:[0,"ngIf"]},null),(e()(),Vi(8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oo(9,212992,null,0,pf,[ff,Pn,nn,[8,null],kt],null,null)],function(e,t){var n=t.component;e(t,5,0,!n.termsAgreed),e(t,7,0,n.termsAgreed),e(t,9,0)},function(e,t){e(t,3,0,t.component.title)})}function ip(e){return ea(0,[(e()(),Vi(0,0,null,null,1,"app-root",[],null,null,null,op,tp)),oo(1,49152,null,0,lu,[],null,null)],null,null)}var ap=Dr("app-root",lu,ip,{},{},[]),up=function(){return function(){}}(),sp=au(su,[lu],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o