/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.110.1 * * 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}from"./chunk-4H2WV7QE.js";import{a as b}from"./chunk-LEGXNNON.js";import{a as W}from"./chunk-CE6W255B.js";import{a as V}from"./chunk-54EUFFXI.js";import"./chunk-CAKU43HZ.js";import"./chunk-WNXNCTQK.js";import{a as D}from"./chunk-HL2OONDA.js";import{a as F}from"./chunk-BV3RKX5O.js";import"./chunk-XQLAWHTP.js";import{a as j,b as k}from"./chunk-P2SABSEB.js";import"./chunk-FO3UCCVP.js";import"./chunk-GTKXIG42.js";import"./chunk-EVUMPJJC.js";import"./chunk-BXMC6F3B.js";import{a as M}from"./chunk-EUSUDYW7.js";import{a as B}from"./chunk-XYZU5ZKW.js";import{b as U,c as C,d as S}from"./chunk-ADEEKX5Q.js";import{d as z}from"./chunk-O5E7EBKP.js";import"./chunk-LEJDAZA7.js";import"./chunk-GMFQULD7.js";import{a as w}from"./chunk-IS523WNE.js";import{a as v,c as y}from"./chunk-4ZQSV4FU.js";import{a as T}from"./chunk-CLQ5X6HS.js";import"./chunk-6Y3U6IMI.js";import"./chunk-7DENS74L.js";import{a as P}from"./chunk-FOJGNIAW.js";import{a as G,b as A}from"./chunk-UGI536VH.js";import{e as O}from"./chunk-BQUQ5TPM.js";var Y=[],R=[];function K(e,t,r,H,l){let p=F.fromPoints(t,e).projectPointsOntoPlane(t,Y);k.computeWindingOrder2D(p)===j.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=0;if(H)for(n=new Float64Array(o*2*3),i=0;i