/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.129 * * 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 Dt,b as Gt}from"./chunk-FVPDHHYC.js";import{a as Lt}from"./chunk-3WQQGQIW.js";import{a as lt}from"./chunk-R6YCVUGT.js";import{a as qt}from"./chunk-UYGXVO4A.js";import"./chunk-OFGHX2F3.js";import"./chunk-VRX6MZUH.js";import{a as kt}from"./chunk-EMIRY7IE.js";import"./chunk-LHHREGTA.js";import"./chunk-O2LOQWK4.js";import{d as zt}from"./chunk-KLPRJ6SC.js";import{b as $,g as Ot,h as Vt}from"./chunk-4PT23TTH.js";import"./chunk-J4RA3VLE.js";import{a as P,b as N,c as wt,d as Ut}from"./chunk-I4JBCTLR.js";import{a as r}from"./chunk-MCEXFPZL.js";import"./chunk-5IUKPU5Q.js";import{a as Ht}from"./chunk-B3NSNNUV.js";import"./chunk-BOXFFUY5.js";import{e as ht}from"./chunk-OVZZEY7C.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(n,l,e){e=e??r;let i=n.length;for(let c=0;c0&&W.length>0){let t=k[0].index,d=Mt,Y=W[W.length-1].index,B=g.length-1;v.push(Y,B,d,d,t,Y)}S=g.length;let jt=zt.fromPoints(g),Rt;ht(i)&&(Rt=qt.fromRectangle(i,z,J,e));let Qt=new Dt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,g,z),Jt=new kt(b,M,l),It=new Gt(l,Jt,K.hMin,J,O,!1,T,y,et,m),_t=new Float32Array(S*It.stride),Ct=0;for(let t=0;t0&&i.push(i[x]),c.length>0&&c.push(c[x]),$.multiplyByPoint(m.toENU,j,G);let V=m.minimum,Q=m.maximum;P.minimumByComponent(G,V,V),P.maximumByComponent(G,Q,Q);let ft=m.lastBorderPoint;if(ht(ft)){let y=ft.index;et.push(y,p-1,p,p,x,y)}m.lastBorderPoint=E}}var we=Lt(ee);export{we as default};