/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.4.1 */ import{a as G}from"./chunk-FU7ULJPM.js";import{a as At}from"./chunk-3YQEVL2U.js";import{a as yt}from"./chunk-DUJ55QTE.js";import{a as $}from"./chunk-BTGKTRUU.js";import{a as v}from"./chunk-VPVZKJ47.js";import{a as st}from"./chunk-TO2OYNR6.js";import{a as ht}from"./chunk-MZR3JOBY.js";import{b as ct,c as rt,d as F}from"./chunk-6SNQZF7I.js";import{a as lt,d as it}from"./chunk-CLGTNV2A.js";import{f as nt,h as bt}from"./chunk-RQCJJCAO.js";import{a as P}from"./chunk-7J4RJR4J.js";import{b as a,c as _t,d as Q,e as D,f as C,g as dt}from"./chunk-UMC5CP2H.js";import{a as R}from"./chunk-72V3KRTJ.js";import{a as ot,b as k}from"./chunk-VJ26MOOM.js";import{e as Z}from"./chunk-E3YQ3WWZ.js";var tt=new a,pt=new a,xt=new a,wt=new a,w=new Q,Mt=new C,Vt=new C,gt=new nt,Tt=new a,Nt=new a,Et=new a,ft=new _t,Pt=new a,Ft=new Q,St=new Q;function Ot(o,e,t){let n=e.vertexFormat,s=e.center,i=e.semiMajorAxis,r=e.semiMinorAxis,f=e.ellipsoid,h=e.stRotation,N=t?o.length/3*2:o.length/3,g=e.shadowVolume,c=n.st?new Float32Array(N*2):void 0,l=n.normal?new Float32Array(N*3):void 0,A=n.tangent?new Float32Array(N*3):void 0,x=n.bitangent?new Float32Array(N*3):void 0,S=g?new Float32Array(N*3):void 0,z=0,b=Tt,M=Nt,d=Et,_=new lt(f),I=_.project(f.cartesianToCartographic(s,ft),Pt),W=f.scaleToGeodeticSurface(s,tt);f.geodeticSurfaceNormal(W,W);let J=Mt,U=Vt;if(h!==0){let m=nt.fromAxisAngle(W,h,gt);J=C.fromQuaternion(m,J),m=nt.fromAxisAngle(W,-h,gt),U=C.fromQuaternion(m,U)}else J=C.clone(C.IDENTITY,J),U=C.clone(C.IDENTITY,U);let B=Q.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Ft),q=Q.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,St),O=o.length,y=t?O:0,p=y/3*2;for(let m=0;m1;--r){for(e[t++]=n++,e[t++]=n,e[t++]=i,s=2*r,f=0;fR.PI&&(c.north=c.north>0?R.PI_OVER_TWO-R.EPSILON7:c.north,c.south=c.south<0?R.EPSILON7-R.PI_OVER_TWO:c.south,c.east=R.PI,c.west=-R.PI),c}function Y(o){o=o??dt.EMPTY_OBJECT;let e=o.center,t=o.ellipsoid??D.default,n=o.semiMajorAxis,s=o.semiMinorAxis,i=o.granularity??R.RADIANS_PER_DEGREE,r=o.vertexFormat??v.DEFAULT;if(k.defined("options.center",e),k.typeOf.number("options.semiMajorAxis",n),k.typeOf.number("options.semiMinorAxis",s),n