/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.142.0 * * 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 et}from"./chunk-UHTXIDKA.js";import{a as Q}from"./chunk-35LM35A5.js";import"./chunk-GS4ZGDWD.js";import{a as u}from"./chunk-BXPFAIYZ.js";import"./chunk-ITSDUOWL.js";import{a as I}from"./chunk-LUECBOIT.js";import{a as $}from"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import{a as f}from"./chunk-K72DPWBT.js";import"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{b as ot}from"./chunk-IPQQ2USK.js";import{a as tt}from"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as J}from"./chunk-RU2T2U4O.js";import{a as X}from"./chunk-VZ4ER5HI.js";import{b as W,c as Y,d as z}from"./chunk-LTHJTGXC.js";import{c as K}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import{h as q}from"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as B}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{b as H,c as m}from"./chunk-ZQTDDQLY.js";import{a as i,b as g,c as U}from"./chunk-U4VWQPTS.js";import{a as V}from"./chunk-GZABERXA.js";import{b as G}from"./chunk-WM6AKY6B.js";import{f as d}from"./chunk-6K4BWAPV.js";var st=new i,at=new et,pt=new H,lt=new H,mt=new i,ft=new i,ut=new i,M=new i,yt=new i,ht=new i,nt=new q,dt=new g,gt=new g,Pt=new i;function wt(e,t,o,a,y,_,r,n,p){let A=e.positions,c=ot.triangulate(e.positions2D,e.holes);c.length<3&&(c=[0,1,2]);let P=J.createTypedArray(A.length,c.length);P.set(c);let E=dt;if(a!==0){let h=q.fromAxisAngle(r,a,nt);if(E=g.fromQuaternion(h,E),t.tangent||t.bitangent){h=q.fromAxisAngle(r,-a,nt);let O=g.fromQuaternion(h,gt);n=i.normalize(g.multiplyByVector(O,n,n),n),t.bitangent&&(p=i.normalize(i.cross(r,n,p),p))}}else E=g.clone(g.IDENTITY,E);let N=lt;t.st&&(N.x=o.x,N.y=o.y);let b=A.length,k=b*3,C=new Float64Array(k),L=t.normal?new Float32Array(k):void 0,D=t.tangent?new Float32Array(k):void 0,F=t.bitangent?new Float32Array(k):void 0,T=t.st?new Float32Array(b*2):void 0,j=0,R=0,l=0,S=0,s=0;for(let h=0;h