define(["./when-92c6cf3c","./Rectangle-bab7abf0","./buildModuleUrl-3d15f25c","./Cartographic-67e73ef9","./ComponentDatatype-81047f82","./Check-52a7d806","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./VertexFormat-f496a3f1","./WallGeometryLibrary-74484942","./Intersect-b97e930a","./Event-3390cd7d","./RuntimeError-c6a62a80","./WebGLConstants-71f10989","./Cartesian2-6033fa5d","./FeatureDetection-067cb23c","./Cartesian4-ad128b5d","./arrayRemoveDuplicates-f7eaafa2","./PolylinePipeline-c0932bf7","./EllipsoidGeodesic-04ac0e77","./EllipsoidRhumbLine-8847d1a1","./IntersectionTests-a42760d9","./Plane-f8d22530"],(function(t,e,n,i,a,o,r,s,m,p,u,l,c,h,g,d,v,y,f,w,_,b,A,x,k,C){"use strict";var L=new i.t,E=new i.t,F=new i.t,P=new i.t,D=new i.t,H=new i.t,T=new i.t,G=new i.t;function O(n){var a=(n=t.u(n,t.u.EMPTY_OBJECT)).positions,r=n.maximumHeights,s=n.minimumHeights;if(!t.e(a))throw new o.t("options.positions is required.");if(t.e(r)&&r.length!==a.length)throw new o.t("options.positions and options.maximumHeights must have the same length.");if(t.e(s)&&s.length!==a.length)throw new o.t("options.positions and options.minimumHeights must have the same length.");var m=t.u(n.vertexFormat,l.n.DEFAULT),u=t.u(n.granularity,p.e.RADIANS_PER_DEGREE),c=t.u(n.ellipsoid,e.t.WGS84);this._positions=a,this._minimumHeights=s,this._maximumHeights=r,this._vertexFormat=l.n.clone(m),this._granularity=u,this._ellipsoid=e.t.clone(c),this._enuCenter=n.enuCenter,this._workerName="createWallGeometry";var h=1+a.length*i.t.packedLength+2;t.e(s)&&(h+=s.length),t.e(r)&&(h+=r.length),this.packedLength=h+e.t.packedLength+l.n.packedLength+1,this.packedLength+=i.t.packedLength}O.pack=function(n,a,r){if(!t.e(n))throw new o.t("value is required");if(!t.e(a))throw new o.t("array is required");r=t.u(r,0);var s,m=n._positions,p=m.length;for(a[r++]=p,s=0;s0)for(m=new Array(u),s=0;s0)for(p=new Array(u),s=0;s