code: function ModalNavigationInterceptor(spec) {
      // ---------------------------------------------- input arguments processing
  
      if (!ariaUtilsType.isObject(spec)) {
          spec = {getReferenceElement: spec};
      }
  
      // -------------------------------------------------------------- processing
  
      var finalSpec = ariaUtilsObject.assign({}, spec, {
          origin: 'popup',
  
          focusTraps: [
              // before
              {
                  direction: 'backward',
                  insert: insertBefore
              },
              // after
              {
                  direction: 'forward',
                  insert: insertAfter
              }
          ]
      });
  
      // ------------------------------------------------------------------ return
  
      return NavigationInterceptor(finalSpec);
  }
docs: ////////////////////////////////////////////////////////////////////////////// Specific navigation interceptors ////////////////////////////////////////////////////////////////////////////// 
  Creates a NavigationInterceptor for a Popup.
  
  <p>
  Focus traps' elements will be inserted right before and right after the Popup element, corresponding respectively to a navigation direction "backward" or "forward".
  </p>
  
  @param {Object|Function} spec Part of the input spec for NavigationInterceptor, excluding "origin" and "focusTraps" which are set specifically by this current constructor. If no object is passed, the function "getReferenceElement" can be passed directly.
  
  @return {NavigationInterceptor} an instance of NavigationInterceptor