{@inheritDoc}

@param lazyAppFn
493405
@Override
    public <C> Lazy<? extends Monad<C, Choice2<A, ?>>> lazyZip(
            Lazy<? extends Applicative<Function<? super B, ? extends C>, Choice2<A, ?>>> lazyAppFn) {
        return match(a -> lazy(a(a)),
                     b -> lazyAppFn.fmap(choiceF -> choiceF.<C>fmap(f -> f.apply(b)).coerce()));
    }
513637
@Override
    public <B> Lazy<Compose<F, G, B>> lazyZip(
            Lazy<? extends Applicative<Function<? super A, ? extends B>, Compose<F, G, ?>>> lazyAppFn) {
        @SuppressWarnings("RedundantTypeArguments")
        Lazy<Applicative<Applicative<Function<? super A, ? extends B>, G>, F>> lazyAppFnCoerced =
                lazyAppFn
                        .<Compose<F, G, Function<? super A, ? extends B>>>fmap(
                                Applicative<Function<? super A, ? extends B>, Compose<F, G, ?>>::coerce)
                        .fmap(Compose<F, G, Function<? super A, ? extends B>>::getCompose);

        return fga.<Applicative<A, G>>fmap(upcast())
                .<Applicative<B, G>>lazyZip(lazyAppFnCoerced.fmap(fgf -> fgf.fmap(gf -> ga -> ga.zip(gf))))
                .fmap(Compose::new);
    }
818883
@Override
  public final IConverter<?, ColumnsValues> lazyGet(//NOPMD
    // Rule:DoubleCheckedLocking isn't true see in beige-common:
    // org.beigesoft.test.DoubleCkeckLockingWrApTest
    final Map<String, Object> pAddParam,
      final Class<?> pBeanClass) throws Exception {
    IConverter<?, ColumnsValues> convrt =
      this.convertersMap.get(pBeanClass);
    if (convrt == null) {
      // locking:
      synchronized (this.convertersMap) {
        // make sure again whether it's null after locking:
        convrt = this.convertersMap.get(pBeanClass);
        if (convrt == null) {
          if (IHasVersion.class.isAssignableFrom(pBeanClass)) {
            convrt = lazyGetCnvHasVersionToColumnsValues(pBeanClass);
          } else {
            convrt = lazyGetCnvObjectToColumnsValues(pBeanClass);
          }
        }
      }
    }
    return convrt;
  }
158008
@Override
  public final IProcessor lazyGet(
    final Map<String, Object> pAddParam,
      final String pBeanName) throws Exception {
    IProcessor proc =
      this.processorsMap.get(pBeanName);
    if (proc == null) {
      // locking:
      synchronized (this.processorsMap) {
        // make sure again whether it's null after locking:
        proc = this.processorsMap.get(pBeanName);
        if (proc == null) {
          if (pBeanName.equals(PrcEntitiesPage.class.getSimpleName())) {
            proc = createPutPrcEntitiesPage();
          } else if (pBeanName.equals(PrcRefreshHndlI18n
            .class.getSimpleName())) {
            proc = lazyGetPrcRefreshHndlI18n(pAddParam);
          } else if (pBeanName.equals(PrcAbout.class.getSimpleName())) {
            proc = lazyGetPrcAbout(pAddParam);
          }
        }
      }
    }
    if (proc == null && !this.isItSubfactory) {
      throw new ExceptionWithCode(ExceptionWithCode.CONFIGURATION_MISTAKE,
        "There is no processor with name " + pBeanName);
    }
    return proc;
  }
1373436
public final FillEntityFromReq
    lazyGetFillEntityFromReq() throws Exception {
    String beanName = getFillEntityFromReqName();
    FillEntityFromReq fillEntityFromReq =
      (FillEntityFromReq) this.beansMap.get(beanName);
    if (fillEntityFromReq == null) {
      fillEntityFromReq = new FillEntityFromReq();
      fillEntityFromReq.setLogger(lazyGetLogger());
      fillEntityFromReq
        .setFillersFieldsFactory(lazyGetFctFillersObjectFields());
      fillEntityFromReq
        .setFieldConverterNamesHolder(lazyGetHldFieldsCnvTfsNames());
      fillEntityFromReq
        .setConvertersFieldsFatory(lazyGetFctConvertersToFromString());
      this.beansMap.put(beanName, fillEntityFromReq);
      lazyGetLogger().info(null, AFactoryAppBeans.class, beanName
        + " has been created.");
    }
    return fillEntityFromReq;
  }
1325623
@Override
  public final IEntityFileReporter lazyGet(
    final Map<String, Object> pAddParam,
      final String pBeanName) throws Exception {
    IEntityFileReporter proc =
      this.reportersMap.get(pBeanName);
    if (proc == null) {
      // locking:
      synchronized (this) {
        // make sure again whether it's null after locking:
        proc = this.reportersMap.get(pBeanName);
        if (proc == null
          && pBeanName.equals(InvoiceReportPdf.class.getSimpleName())) {
          proc = lazyGetInvoiceReportPdf(pAddParam);
        }
      }
    }
    if (proc == null) {
      throw new ExceptionWithCode(ExceptionWithCode.CONFIGURATION_MISTAKE,
        "There is no entity processor with name " + pBeanName);
    }
    return proc;
  }
56697
@Override
    public <I> Lazy<Choice8<A, B, C, D, E, F, G, I>> lazyZip(
            Lazy<? extends Applicative<Function<? super H, ? extends I>, Choice8<A, B, C, D, E, F, G, ?>>> lazyAppFn) {
        return match(a -> lazy(a(a)),
                     b -> lazy(b(b)),
                     c -> lazy(c(c)),
                     d -> lazy(d(d)),
                     e -> lazy(e(e)),
                     f -> lazy(f(f)),
                     g -> lazy(g(g)),
                     h -> lazyAppFn.fmap(choiceF -> choiceF.<I>fmap(f -> f.apply(h)).coerce()));
    }
213737
@Override
    public <D> Lazy<Choice3<A, B, D>> lazyZip(
            Lazy<? extends Applicative<Function<? super C, ? extends D>, Choice3<A, B, ?>>> lazyAppFn) {
        return match(a -> lazy(a(a)),
                     b -> lazy(b(b)),
                     c -> lazyAppFn.fmap(choiceF -> choiceF.<D>fmap(f -> f.apply(c)).coerce()));
    }
641799
function lazyDo(fn, timeOut, doName, obj) {
  var sto = null;

  if (!obj) {
    obj = window;
  }
  if (timeOut == null) {
    timeOut = 25;
  }

  //If before the implementation of the operation has not exceeded the time,then make it cancel.
  if (doName && obj[doName]) {
    clearTimeout(obj[doName]);
  }

  //Delay for a period of time to perform the operation.
  sto = setTimeout(function () {
    fn.call(obj);
  }, timeOut);

  if (doName) {
    obj[doName] = sto;
  }

  return sto;
}
759317
private function Flow_Proxy_LazyPropertyInjection($propertyObjectName, $propertyClassName, $propertyName, $setterArgumentHash, callable $lazyInjectionResolver)
    {
        $injection_reference = &$this->$propertyName;
        $this->$propertyName = \Neos\Flow\Core\Bootstrap::$staticObjectManager->getInstance($propertyObjectName);
        if ($this->$propertyName === null) {
            $this->$propertyName = \Neos\Flow\Core\Bootstrap::$staticObjectManager->getLazyDependencyByHash($setterArgumentHash, $injection_reference);
            if ($this->$propertyName === null) {
                $this->$propertyName = \Neos\Flow\Core\Bootstrap::$staticObjectManager->createLazyDependency($setterArgumentHash, $injection_reference, $propertyClassName, $lazyInjectionResolver);
            }
        }
    }
1151028
@Override
  public final FctBnEntitiesProcessors<RS>
    lazyGetFctBnEntitiesProcessors() throws Exception {
    String beanName = getFctBnEntitiesProcessorsName();
    @SuppressWarnings("unchecked")
    FctBnEntitiesProcessors<RS> fctBnEntitiesProcessors =
      (FctBnEntitiesProcessors<RS>)
        this.factoryAppBeans.getBeansMap().get(beanName);
    if (fctBnEntitiesProcessors == null) {
      fctBnEntitiesProcessors = new FctBnEntitiesProcessors<RS>();
      fctBnEntitiesProcessors.setSrvOrm(this.factoryAppBeans.lazyGetSrvOrm());
      fctBnEntitiesProcessors
        .setMngUvdSettings(this.factoryAppBeans.lazyGetMngUvdSettings());
      fctBnEntitiesProcessors
        .setEntitiesFactoriesFatory(lazyGetFctBcFctSimpleEntities());
      fctBnEntitiesProcessors.setFillersFieldsFactory(
        this.factoryAppBeans.lazyGetFctFillersObjectFields());
      fctBnEntitiesProcessors.setUtlProperties(
        this.factoryAppBeans.lazyGetUtlProperties());
      fctBnEntitiesProcessors.setSrvDate(this.factoryAppBeans.lazyGetSrvDate());
      fctBnEntitiesProcessors.setFieldConverterNamesHolder(
        this.factoryAppBeans.lazyGetHldFieldsCnvTfsNames());
      fctBnEntitiesProcessors.setConvertersFieldsFatory(
        this.factoryAppBeans.lazyGetFctConvertersToFromString());
      fctBnEntitiesProcessors.setGettersRapiHolder(
        this.factoryAppBeans.lazyGetHolderRapiGetters());
      fctBnEntitiesProcessors.setSettersRapiHolder(
        this.factoryAppBeans.lazyGetHolderRapiSetters());
      fctBnEntitiesProcessors
        .setUploadDirectory(this.factoryAppBeans.getUploadDirectory());
      fctBnEntitiesProcessors
        .setWebAppPath(this.factoryAppBeans.getWebAppPath());
      fctBnEntitiesProcessors
        .setEmailSender(this.factoryAppBeans.lazyGetMailSender());
      this.factoryAppBeans.getBeansMap().put(beanName, fctBnEntitiesProcessors);
    }
    return fctBnEntitiesProcessors;
  }
1139352
public final SrvDate lazyGetSrvDate() throws Exception {
    String beanName = getSrvDateName();
    SrvDate srvDate = (SrvDate) this.beansMap.get(beanName);
    if (srvDate == null) {
      srvDate = new SrvDate();
      this.beansMap.put(beanName, srvDate);
      lazyGetLogger().info(null, AFactoryAppBeans.class, beanName
        + " has been created.");
    }
    return srvDate;
  }
622133
private void lazyRefresh() {
    Runnable pr = new Runnable() {
      @Override
      public void run() {
        if(pendingRefresh.compareAndSet(this, null)) {
          refresh();
        }
      }
    };
    pendingRefresh.set(pr);
    scheduleUpdate(pr);
  }
1185221
public static function lazy(int $count, ?Closure $closure = null) : Lazy
  {
    $page = isset($_GET['page']) ? $_GET['page'] : null;
    $path = isset($_SERVER['REQUEST_URI']) ? ((str_contains($_SERVER['REQUEST_URI'], '?')) ? explode('?', ($_SERVER['REQUEST_URI']))[0] : $_SERVER['REQUEST_URI']) : '';

    if ($page == null) {
      $pattern = explode('/', $path);
      $page = (is_numeric(end($pattern)) ? $page = end($pattern) : 1);
    }

    $skip = ($page * $count) - $count;

    if ($closure !== null) {
      $query = call_user_func_array($closure, [new self]);

      if (!$query instanceof Builder) {
        throw new HibernateBuilderException;
      }
    }

    $get   = isset($query) ? $query->skip($skip)->take($count)->get() : self::skip($skip)->take($count)->get();
    $total = isset($query) ? $query->count() : self::count();
    $next  = ($total - ($page * $count)) > 0 ? '/?page=' . ($page + 1) : null;
    $prev  = $page > 1 ? '/?page=' . ($page - 1) : null;
    $first = ($get->count() < 1) ? null : "/?page=1";
    $last  = '/?page=' . (strpos(($total / $count),'.') ? explode('.', $total / $count)[0] + 1 : ($total / $count));

    $object = [
      'current_page' => (int)$page,
      'data' => $get,
      'first_page_url' => $first,
      'prev_page_url' => $prev,
      'next_page_url' => $next,
      'last_page_url' => $last,
      'per_page' => $count,
      'total' => $total
    ];

    return new Lazy($object);
  }
144357
protected void tokenize() throws LazyException{
		consumeWhiteSpace();
		// We are going to manually push the first token onto the stack so
		// future push operations can avoid doing an if empty check when
		// setting the parent child relationship
		char c=cbuf[n];
		if(c==CH_BEGIN_CURLY){
			stack[stackPointer++]=LazyNode.cObject(n);
		}else if(c==CH_BEGIN_BRACKET){
			stack[stackPointer++]=LazyNode.cArray(n);
		}else{
			throw new LazyException("Can not parse raw JSON value, must be either object or array",0);
		}
		root=stack[1];
		stackTop=root;
		n++;
		boolean expectValue=false;
		boolean firstValue=true;
		LazyNode token=null;
		for(;n<length;n++){
			c=cbuf[n];
			switch(c){
				case CH_BEGIN_CURLY:
					push(LazyNode.cObject(n));
					expectValue=false;
					firstValue=true;
					break;
				case CH_END_CURLY:
					// The end of an object, pop off the last value and field if any
					token=pop();
					if(token==null){
						throw new LazyException("Unexpected end of object character",n);
					}else if(token.type!=LazyNode.OBJECT){
						throw new LazyException("Unexpected end of object character",n);
					}
					token.endIndex=n+1;
					// If this object was the value for a field, pop off that field too
					if(stackTop!=null && (stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD)){
						drop();
					}
					// Was there a trailing comma?
					if(expectValue){
						throw new LazyException("Unexpected comma without another value",n-1);
					}
					firstValue=false;
					break;
			case CH_QUOTE:
				expectValue=false;
				firstValue=false;
				if(stackTop.type==LazyNode.ARRAY){
					token=LazyNode.cStringValue(n+1);
					stackTop.addChild(token);
					if(consumeString()){
						token.type=LazyNode.VALUE_ESTRING;
					}
					token.endIndex=n;
				}else if(stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD){
					token=LazyNode.cStringValue(n+1);
					stackTop.addChild(token);
					if(consumeString()){
						token.type=LazyNode.VALUE_ESTRING;
					}
					token.endIndex=n;
					drop();
				}else if(stackTop.type==LazyNode.OBJECT){
					push(LazyNode.cField(n+1));
					if(consumeString()){
						stackTop.type=LazyNode.EFIELD;
					}
					stackTop.endIndex=n;
					n++;
					consumeWhiteSpace();
					c=cbuf[n];
					if(c==CH_COLON){
						tryToConsumeWhiteSpace();
					}else{
						throw new LazyException("Unexpected character! Was expecting field separator ':'",n);
					}
					expectValue=true;
				}
				break;
			case CH_COMMA:
				// This must be the end of a value and the start of another
				if(expectValue){
					// Missing value after last comma
					throw new LazyException("Unexpected comma",n);
				}
				expectValue=true;
				if(stackTop!=null && (stackTop.type==LazyNode.ARRAY) && (firstValue)){
					throw new LazyException("Expected value before comma",n);
				}
				break;
			case CH_BEGIN_BRACKET:
				if(stackTop.type==LazyNode.OBJECT){
					throw new LazyException("Missing field name for array",n);
				}else if(stackTop.type==LazyNode.ARRAY){
					if((!firstValue) && (!expectValue)){
						throw new LazyException("Nested array without comma",n);
					}
				}
				push(LazyNode.cArray(n));
				expectValue=false;
				firstValue=true;
				break;
			case CH_END_BRACKET:
				token=pop();
				if(token==null){
						throw new LazyException("Unexpected end of array character",n);
				}else if(token.type!=LazyNode.ARRAY){
					if(token.endIndex==-1){
						token.endIndex=n;
					}
					token=pop();
					if(token==null || token.type!=LazyNode.ARRAY){
						throw new LazyException("Unexpected end of array",n);
					}
				}
				token.endIndex=n+1;
				// If this array was the value for a field, pop off that field too
				if(stackTop!=null && (stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD)){
					drop();
				}
				// Was there a trailing comma?
				if(expectValue){
					throw new LazyException("Unexpected comma without another value",n-1);
				}
				firstValue=false;
				break;
			case CH_SPACE:
			case CH_TAB:
			case CH_LINEFEED:
			case CH_CARRIAGE_RETURN:
				// Ignore white space characters here
				break;
			default:
				// This must be a new value
				if(stackTop.type==LazyNode.ARRAY && !firstValue && !expectValue){
					throw new LazyException("Unexpected value, missing comma?",n);
				}
				if(stackTop.type==LazyNode.OBJECT){
					throw new LazyException("Unexpected value without field name",n);
				}
				firstValue=false;
				expectValue=false;
				if(c==CH_n){
					// Must be null value
					if(cbuf[++n]==CH_u && cbuf[++n]==CH_l && cbuf[++n]==CH_l){
						token=LazyNode.cValueNull(n);
						stackTop.addChild(token);
						token.endIndex=n;
						if(stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD){
							// This was the end of the value for a field, pop that too
							drop();
						}
					}else{
						throw new LazyException("Syntax error",n);
					}
				}else if(c==CH_t){
					// Must be true value
					if(cbuf[++n]==CH_r && cbuf[++n]==CH_u && cbuf[++n]==CH_e){
						token=LazyNode.cValueTrue(n);
						stackTop.addChild(token);
						token.endIndex=n;
						if(stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD){
							// This was the end of the value for a field, pop that too
							drop();
						}
					}else{
						throw new LazyException("Syntax error",n);
					}
				}else if(c==CH_f){
					// Must be false value
					if(cbuf[++n]==CH_a && cbuf[++n]==CH_l && cbuf[++n]==CH_s && cbuf[++n]==CH_e){
						token=LazyNode.cValueFalse(n);
						stackTop.addChild(token);
						token.endIndex=n;
						if(stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD){
							// This was the end of the value for a field, pop that too
							drop();
						}
					}else{
						throw new LazyException("Syntax error",n);
					}
				}else if(c==CH_DASH || !(c<CH_0 || c>CH_9)){
					// Must be a number
					token=LazyNode.cNumberValue(n);
					stackTop.addChild(token);
					if(consumeNumber(c)){
						token.type=LazyNode.VALUE_FLOAT;
					}
					token.endIndex=n;
					n--;
					if(stackTop.type==LazyNode.FIELD || stackTop.type==LazyNode.EFIELD){
						// This was the end of the value for a field, pop that too
						drop();
					}
				}else{
					throw new LazyException("Syntax error",n);
				}				
			
				break;
			}
		}
		if(size()!=0){
			throw new LazyException("Unexpected end of JSON data");
		}
		if(expectValue){
			throw new LazyException("Unexpected trailing comma");
		}
		setBuffer(root);
	}
580929
@Override
    public <G> Lazy<Choice6<A, B, C, D, E, G>> lazyZip(
            Lazy<? extends Applicative<Function<? super F, ? extends G>, Choice6<A, B, C, D, E, ?>>> lazyAppFn) {
        return match(a -> lazy(a(a)),
                     b -> lazy(b(b)),
                     c -> lazy(c(c)),
                     d -> lazy(d(d)),
                     e -> lazy(e(e)),
                     f -> lazyAppFn.fmap(choiceFn -> choiceFn.<G>fmap(fn -> fn.apply(f)).coerce()));
    }
1218048
function lazy(arg) {
  var conf = this.configure();
  var action = arg.action();
  if(!conf.command.dir || action !== undefined) return false;
  var file = path.join(conf.command.dir, getModulePath.call(this, arg))
  try{
    action = require(file);
    if(typeof action !== 'function') {
      return this.raise(this.errors.ECMD_TYPE, [file]);
    }
    arg.action(action);
  }catch(e) {
    return this.raise(this.errors.ECMD_REQUIRE, [file, e.message], e);
  }
}