define(["./when-515d5295","./Rectangle-e170be8b","./buildModuleUrl-dba4ec07","./Cartographic-1bbcab04","./ComponentDatatype-d430c7f7","./Check-3aa71481","./GeometryAttribute-9bc31a7f","./GeometryAttributes-7d904f0f","./IndexDatatype-eefd5922","./Math-5e38123d","./PrimitiveType-b38a4004","./VertexFormat-e844760b","./WallGeometryLibrary-240d09b5","./Intersect-53434a77","./Event-9821f5d9","./RuntimeError-350acae3","./WebGLConstants-77a84876","./Cartesian2-1b9b0d8a","./FeatureDetection-7fae0d5a","./Cartesian4-034d54d5","./arrayRemoveDuplicates-a4c6347e","./PolylinePipeline-bf1462fc","./EllipsoidGeodesic-e5406761","./EllipsoidRhumbLine-f50fdea6","./IntersectionTests-5fa33dbd","./Plane-92c15089"],(function(e,t,n,a,i,o,r,s,m,p,l,u,c,h,d,g,v,y,f,w,b,_,A,x,k,C){"use strict";var L=new a.a,E=new a.a,F=new a.a,P=new a.a,H=new a.a,D=new a.a,T=new a.a,G=new a.a;function O(n){var i=(n=e.e(n,e.e.EMPTY_OBJECT)).positions,r=n.maximumHeights,s=n.minimumHeights;if(!e.t(i))throw new o.t("options.positions is required.");if(e.t(r)&&r.length!==i.length)throw new o.t("options.positions and options.maximumHeights must have the same length.");if(e.t(s)&&s.length!==i.length)throw new o.t("options.positions and options.minimumHeights must have the same length.");var m=e.e(n.vertexFormat,u.n.DEFAULT),l=e.e(n.granularity,p.n.RADIANS_PER_DEGREE),c=e.e(n.ellipsoid,t.n.WGS84);this._positions=i,this._minimumHeights=s,this._maximumHeights=r,this._vertexFormat=u.n.clone(m),this._granularity=l,this._ellipsoid=t.n.clone(c),this._enuCenter=n.enuCenter,this._workerName="createWallGeometry";var h=1+i.length*a.a.packedLength+2;e.t(s)&&(h+=s.length),e.t(r)&&(h+=r.length),this.packedLength=h+t.n.packedLength+u.n.packedLength+1,this.packedLength+=a.a.packedLength}O.pack=function(n,i,r){if(!e.t(n))throw new o.t("value is required");if(!e.t(i))throw new o.t("array is required");r=e.e(r,0);var s,m=n._positions,p=m.length;for(i[r++]=p,s=0;s0)for(m=new Array(l),s=0;s0)for(p=new Array(l),s=0;s