text: /* */ 
  "format register";
  /**
   * Determines if the provided object is a navigation command.
   * A navigation command is anything with a navigate method.
   * @param {object} obj The item to check.
   * @return {boolean}
   */
  export function isNavigationCommand(obj){
    return obj && typeof obj.navigate === 'function';
  }
  
  /**
  * Used during the activation lifecycle to cause a redirect.
  *
  * @class Redirect
  * @constructor
  * @param {String} url The url to redirect to.
  */
  export class Redirect{
    constructor(url) {
      this.url = url;
      this.shouldContinueProcessing = false;
    }
  
    /**
    * Called by the navigation pipeline to navigate.
    *
    * @method navigate
    * @param {Router} appRouter - a router which should redirect
    */
    navigate(appRouter){
      (this.router || appRouter).navigate(this.url, { trigger: true, replace: true });
    }
  }