import{__module as r}from"../../../_virtual/typed-array-constructor.mjs";import{__require as e}from"./export.mjs";import{__require as t}from"./global-this.mjs";import{__require as o}from"./function-call.mjs";import{__require as i}from"./descriptors.mjs";import{__require as s}from"./typed-array-constructors-require-wrappers.mjs";import{__require as m}from"./array-buffer-view-core.mjs";import{__require as n}from"./array-buffer.mjs";import{__require as a}from"./an-instance.mjs";import{__require as f}from"./create-property-descriptor.mjs";import{__require as u}from"./create-non-enumerable-property.mjs";import{__require as p}from"./is-integral-number.mjs";import{__require as _}from"./to-length.mjs";import{__require as c}from"./to-index.mjs";import{__require as y}from"./to-offset.mjs";import{__require as j}from"./to-uint8-clamped.mjs";import{__require as q}from"./to-property-key.mjs";import{__require as b}from"./has-own-property.mjs";import{__require as l}from"./classof.mjs";import{__require as d}from"./is-object.mjs";import{__require as w}from"./is-symbol.mjs";import{__require as g}from"./object-create.mjs";import{__require as h}from"./object-is-prototype-of.mjs";import{__require as v}from"./object-set-prototype-of.mjs";import{__require as A}from"./object-get-own-property-names.mjs";import{__require as E}from"./typed-array-from.mjs";import{__require as T}from"./array-iteration.mjs";import{__require as x}from"./set-species.mjs";import{__require as R}from"./define-built-in-accessor.mjs";import{__require as O}from"./object-define-property.mjs";import{__require as B}from"./object-get-own-property-descriptor.mjs";import{__require as P}from"./array-from-constructor-and-list.mjs";import{__require as L}from"./internal-state.mjs";import{__require as Y}from"./inherit-if-required.mjs";var D;function S(){if(D)return r.exports;D=1;var S=e(),V=t(),C=o(),F=i(),I=s(),N=m(),W=n(),k=a(),G=f(),M=u(),U=p(),z=_(),H=c(),J=y(),K=j(),Q=q(),X=b(),Z=l(),$=d(),rr=w(),er=g(),tr=h(),or=v(),ir=A().f,sr=E(),mr=T().forEach,nr=x(),ar=R(),fr=O(),ur=B(),pr=P(),_r=L(),cr=Y(),yr=_r.get,jr=_r.set,qr=_r.enforce,br=fr.f,lr=ur.f,dr=V.RangeError,wr=W.ArrayBuffer,gr=wr.prototype,hr=W.DataView,vr=N.NATIVE_ARRAY_BUFFER_VIEWS,Ar=N.TYPED_ARRAY_TAG,Er=N.TypedArray,Tr=N.TypedArrayPrototype,xr=N.isTypedArray,Rr="BYTES_PER_ELEMENT",Or="Wrong length",Br=function(r,e){ar(r,e,{configurable:!0,get:function(){return yr(this)[e]}})},Pr=function(r){var e;return tr(gr,r)||"ArrayBuffer"===(e=Z(r))||"SharedArrayBuffer"===e},Lr=function(r,e){return xr(r)&&!rr(e)&&e in r&&U(+e)&&e>=0},Yr=function(r,e){return e=Q(e),Lr(r,e)?G(2,r[e]):lr(r,e)},Dr=function(r,e,t){return e=Q(e),!(Lr(r,e)&&$(t)&&X(t,"value"))||X(t,"get")||X(t,"set")||t.configurable||X(t,"writable")&&!t.writable||X(t,"enumerable")&&!t.enumerable?br(r,e,t):(r[e]=t.value,r)};return F?(vr||(ur.f=Yr,fr.f=Dr,Br(Tr,"buffer"),Br(Tr,"byteOffset"),Br(Tr,"byteLength"),Br(Tr,"length")),S({target:"Object",stat:!0,forced:!vr},{getOwnPropertyDescriptor:Yr,defineProperty:Dr}),r.exports=function(r,e,t){var o=r.match(/\d+/)[0]/8,i=r+(t?"Clamped":"")+"Array",s="get"+r,m="set"+r,n=V[i],a=n,f=a&&a.prototype,u={},p=function(r,e){br(r,e,{get:function(){return function(r,e){var t=yr(r);return t.view[s](e*o+t.byteOffset,!0)}(this,e)},set:function(r){return function(r,e,i){var s=yr(r);s.view[m](e*o+s.byteOffset,t?K(i):i,!0)}(this,e,r)},enumerable:!0})};vr?I&&(a=e(function(r,e,t,i){return k(r,f),cr($(e)?Pr(e)?void 0!==i?new n(e,J(t,o),i):void 0!==t?new n(e,J(t,o)):new n(e):xr(e)?pr(a,e):C(sr,a,e):new n(H(e)),r,a)}),or&&or(a,Er),mr(ir(n),function(r){r in a||M(a,r,n[r])}),a.prototype=f):(a=e(function(r,e,t,i){k(r,f);var s,m,n,u=0,_=0;if($(e)){if(!Pr(e))return xr(e)?pr(a,e):C(sr,a,e);s=e,_=J(t,o);var c=e.byteLength;if(void 0===i){if(c%o)throw new dr(Or);if((m=c-_)<0)throw new dr(Or)}else if((m=z(i)*o)+_>c)throw new dr(Or);n=m/o}else n=H(e),s=new wr(m=n*o);for(jr(r,{buffer:s,byteOffset:_,byteLength:m,length:n,view:new hr(s)});u<n;)p(r,u++)}),or&&or(a,Er),f=a.prototype=er(Tr)),f.constructor!==a&&M(f,"constructor",a),qr(f).TypedArrayConstructor=a,Ar&&M(f,Ar,i);var _=a!==n;u[i]=a,S({global:!0,constructor:!0,forced:_,sham:!vr},u),Rr in a||M(a,Rr,o),Rr in f||M(f,Rr,o),nr(i)}):r.exports=function(){},r.exports}export{S as __require};