/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.115 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ import{a as M}from"./chunk-QKJG2BY2.js";import{a as ht}from"./chunk-BWZHI247.js";import"./chunk-QWQOVUJ7.js";import"./chunk-SVXBKJVU.js";import{a as _t}from"./chunk-JGH2YY6Z.js";import{a as J}from"./chunk-4L6WQV6O.js";import"./chunk-I7Q6CKJV.js";import"./chunk-PM6NEW3Y.js";import{b as yt}from"./chunk-DFXTICUP.js";import{a as Pt}from"./chunk-SPQOGAZ5.js";import"./chunk-63MCY5JU.js";import"./chunk-AT6LKTZH.js";import"./chunk-ASPQMVDG.js";import{a as Nt}from"./chunk-565QV2WE.js";import{a as Ct}from"./chunk-2OCTB5MG.js";import{b as Mt,c as Vt,d as x}from"./chunk-2NSXRWDL.js";import{d as St}from"./chunk-LCPJ46PJ.js";import"./chunk-IADNIOZ2.js";import"./chunk-QK5WKMSE.js";import{c as Et}from"./chunk-DCQPNKAH.js";import{a as F}from"./chunk-HVT5SA4Z.js";import{a as o,b as bt,d as I}from"./chunk-QHMHXQHC.js";import{a as st}from"./chunk-GGFNGKXD.js";import"./chunk-BPPZBFNC.js";import"./chunk-6DW2D3WX.js";import{a as B}from"./chunk-A7LPWAU6.js";import{b as it}from"./chunk-UNVMUIJM.js";import{e as X}from"./chunk-WVB7XP3Q.js";var zt=new o,kt=new o,wt=new o,Tt=new o,jt=new o,Ht=new o,at=new o,ft=new o;function Ut(t,e){for(let i=0;ik;n--)N=st.PI_OVER_TWO-n*U,c[L++]=1-$*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=k;n>0;n--)N=st.PI_OVER_TWO-U*n,c[L++]=1-v*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=a-p;n>0;n--)c[L++]=n*v,c[L++]=1;for(n=1;n0;n--)c[L++]=(n-1)*v,c[L++]=1}g.st=new x({componentDatatype:F.FLOAT,componentsPerAttribute:2,values:c})}return e.normal&&(g.normal=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.normals})),e.tangent&&(g.tangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.tangents})),e.bitangent&&(g.bitangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.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=zt,u=kt,b=wt,p=Tt,R=jt,m=Ht,C=g;for(r=0;r