import{__exports as r}from"../../../_virtual/es.aggregate-error.constructor.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/object-is-prototype-of.mjs";import{__require as o}from"../internals/object-get-prototype-of.mjs";import{__require as s}from"../internals/object-set-prototype-of.mjs";import{__require as i}from"../internals/copy-constructor-properties.mjs";import{__require as a}from"../internals/object-create.mjs";import{__require as n}from"../internals/create-non-enumerable-property.mjs";import{__require as m}from"../internals/create-property-descriptor.mjs";import{__require as p}from"../internals/install-error-cause.mjs";import{__require as _}from"../internals/error-stack-install.mjs";import{__require as u}from"../internals/iterate.mjs";import{__require as l}from"../internals/normalize-string-argument.mjs";import{__require as c}from"../internals/well-known-symbol.mjs";var f;function g(){if(f)return r;f=1;var g=e(),j=t(),q=o(),y=s(),b=i(),v=a(),h=n(),E=m(),k=p(),w=_(),x=u(),d=l(),A=c()("toStringTag"),z=Error,S=[].push,T=function(r,e){var t,o=j(B,this);y?t=y(new z,o?q(this):B):(t=o?this:v(B),h(t,A,"Error")),void 0!==e&&h(t,"message",d(e)),w(t,T,t.stack,1),arguments.length>2&&k(t,arguments[2]);var s=[];return x(r,S,{that:s}),h(t,"errors",s),t};y?y(T,z):b(T,z,{name:!0});var B=T.prototype=v(z.prototype,{constructor:E(1,T),message:E(1,""),name:E(1,"AggregateError")});return g({global:!0,constructor:!0,arity:2},{AggregateError:T}),r}export{g as __require};