/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.3.1 */ import{a as xt}from"./chunk-O2XXE3LE.js";import{a as P}from"./chunk-6PVEYJU3.js";import{a as yt}from"./chunk-CQELY6Z3.js";import{a as ht}from"./chunk-DMXICNHG.js";import{b as g,c as ot,e as st,f as it}from"./chunk-7DK7KB7Q.js";import{a as M}from"./chunk-JSZDCKFG.js";import{a as ft}from"./chunk-5HWP5DW7.js";import{b as lt}from"./chunk-INT7THOB.js";import{d as mt,e as h}from"./chunk-PPCZYYBW.js";var at=mt(xt(),1);function wt(n){return lt.defined("value",n),n<=.04045?n*.07739938080495357:Math.pow((n+.055)*.9478672985781991,2.4)}var k=wt;var ut;function It(n,t,e,o,a,i){let r=e*(1-n)+o*n,s=a*(1-n)+i*n;return r*(1-t)+s*t}function H(n,t,e,o){let a=n+t*e;return o[a]}function At(n,t,e){let o=e.nativeExtent,a=(n-o.west)/(o.east-o.west)*(e.width-1),i=(t-o.south)/(o.north-o.south)*(e.height-1),r=Math.floor(a),s=Math.floor(i);a-=r,i-=s;let c=ra.west&&i.xa.south&&i.yt[s]:s=>s,r=0;if(o&&h(e)){let s=c=>e[i(c)*4+3]<255;for(let c=0;c0){let c=r;for(let u=0;u1){let i=o.length===a.length;for(let r=0;r0?new Uint32Array(r):void 0}function St(n){let t=new Float32Array(n.length);for(let e=0;e0&&(l.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:T,type:"SCALAR"}),v.push({attributes:V,indices:l.length-1,material:v.length,extensions:j})),T0&&Lt(t.vertexCount,t.positions,t.scale_x,t.scale_y,n.cartographicCenter,n.geoidDataList,!1),Ot(t.vertexCount,t.positions,t.normals,n.cartographicCenter,n.cartesianCenter,n.parentRotation,n.ellipsoidRadiiSquare,t.scale_x,t.scale_y),h(t.uv0s)&&h(t["uv-region"])&&Tt(t.vertexCount,t.uv0s,t["uv-region"]);let e;if(h(t["feature-index"]))e=t["feature-index"];else if(h(t.faceRange)){e=new Array(t.vertexCount);for(let r=0;r