define(["./createTaskProcessorWorker","./Cartographic-3309dd0d","./Cartesian4-3ca25aab","./pako_inflate-f73548c4","./Rectangle-dee65d21","./when-b60132fc","./Check-7b2a090c","./Math-119be1a3"],(function(e,t,a,l,n,r,i,h){"use strict";var o=Object.freeze({UNLOAD:0,LOADING:1,LOADED:2,VOLLOADED:3,PARSING:4,PARSED:5,TRANSFORMING:6,TRANSFORMED:7,LOST:8,LOADVOL:9,FAILED:10,VOLFAILED:11});function c(e){var a=new t.Cartesian3(1,255,65025);(a=t.Cartesian3.multiplyByScalar(a,e,a)).x=a.x-Math.floor(a.x),a.y=a.y-Math.floor(a.y),a.z=a.z-Math.floor(a.z);var l=new t.Cartesian3,n=new t.Cartesian3(1/255,1/255,0);return l.x=a.y*n.x,l.y=a.z*n.y,l.z=a.z*n.z,a=t.Cartesian3.subtract(a,l,a)}function d(e,t,l,n){for(var r=e._nLength*e._nLength*4,i=new Array(r),h=l-t,o=t,d=0;d0&&(p=e.validHeight-e.cellHeight),f=p?(L=0,y=d*e.cellHeight*e.cellWidth+(e.validHeight-1-v)*e.cellWidth+f):f=p?(L=1,y=d*e.cellHeight*e.cellWidth+(e.validHeight-1-v)*e.cellWidth+f-e.cellWidth):(L=3,y=d*e.cellHeight*e.cellWidth+(e.validHeight-e.cellHeight-1-v)*e.cellWidth+f-e.cellWidth),!(y<0)){var x=n[L][y],w=new a.Cartesian4(0,0,0,0);if(-9999!=x){xl?x=o:o=x;var B=c(x=(x-t)/h);w.x=B.x,w.y=B.y,w.z=B.z,w.w=1}var W=255*w.x,D=255*w.y,H=255*w.z,S=255*w.w;i[4*(y=(s+_)*e._nLength+u+g)]=parseInt(W),i[4*y+1]=parseInt(D),i[4*y+2]=parseInt(H),i[4*y+3]=parseInt(S)}}return new Uint8Array(i,0,r)}return e((function(e,t){for(var r=e.arrayWork,i=[],h=0;h0&&(y+=t.cellHeight),t.xSpan>0&&(v+=t.cellWidth),t._nSideBlockCount=Math.ceil(Math.sqrt(t.cellDepth)),t._nBlockLength=Math.max(y,v)+2,t._nLength=function(e){for(var t=1;t