/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.4.1 */ import{a as M}from"./chunk-Q3TOAA6N.js";import{a as ut}from"./chunk-OJ5VZL6R.js";import"./chunk-5PNG4QKZ.js";import"./chunk-YME4CS4F.js";import{a as bt}from"./chunk-BTGKTRUU.js";import{a as J}from"./chunk-VPVZKJ47.js";import"./chunk-FVZBCGC7.js";import"./chunk-PVXELJ4I.js";import{b as _t}from"./chunk-FTVLHTAP.js";import{a as Pt}from"./chunk-DA6K763I.js";import"./chunk-TWEYJPY7.js";import"./chunk-5HPENZ6M.js";import"./chunk-SY6XZLBE.js";import{a as Nt}from"./chunk-TO2OYNR6.js";import{a as Dt}from"./chunk-MZR3JOBY.js";import{b as Mt,c as Ct,d as F}from"./chunk-6SNQZF7I.js";import{d as St}from"./chunk-CLGTNV2A.js";import{h as Et}from"./chunk-RQCJJCAO.js";import{a as v}from"./chunk-7J4RJR4J.js";import{b as o,c as At,e as Y,g as Tt}from"./chunk-UMC5CP2H.js";import{a as it}from"./chunk-72V3KRTJ.js";import"./chunk-7M2TDEJ6.js";import"./chunk-W5CDIT4C.js";import{b as ot}from"./chunk-VJ26MOOM.js";import{e as Q}from"./chunk-E3YQ3WWZ.js";var Rt=new o,kt=new o,yt=new o,wt=new o,jt=new o,Ht=new o,st=new o,dt=new o;function Ut(t,e){for(let i=0;ik;n--)N=it.PI_OVER_TWO-n*U,c[L++]=1-Z*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=k;n>0;n--)N=it.PI_OVER_TWO-U*n,c[L++]=1-$*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=a-p;n>0;n--)c[L++]=n*$,c[L++]=1;for(n=1;n0;n--)c[L++]=(n-1)*$,c[L++]=1}g.st=new F({componentDatatype:v.FLOAT,componentsPerAttribute:2,values:c})}return e.normal&&(g.normal=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:R.normals})),e.tangent&&(g.tangent=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:R.tangents})),e.bitangent&&(g.bitangent=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:R.bitangents})),{attributes:g,indices:_}}function qt(t,e){if(!e.normal&&!e.tangent&&!e.bitangent&&!e.st)return t;let i=t.position.values,l,d;(e.normal||e.bitangent)&&(l=t.normal.values,d=t.bitangent.values);let f=t.position.values.length/18,h=f*3,O=f*2,g=h*2,r;if(e.normal||e.bitangent||e.tangent){let a=e.normal?new Float32Array(h*6):void 0,s=e.tangent?new Float32Array(h*6):void 0,n=e.bitangent?new Float32Array(h*6):void 0,A=Rt,u=kt,b=yt,p=wt,z=jt,m=Ht,D=g;for(r=0;r