/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.114 * * 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-OBH4SRMM.js";import{a as b}from"./chunk-KGSL5AZH.js";import{a as W}from"./chunk-LAFYIXBI.js";import{a as V}from"./chunk-Y4WDS4E7.js";import"./chunk-NQBIZOW4.js";import"./chunk-G3ANYX6B.js";import{a as D}from"./chunk-H3IXAINZ.js";import{a as F}from"./chunk-RNO4G5Q4.js";import"./chunk-OFYQOYUL.js";import{a as j,b as k}from"./chunk-VELFSPBY.js";import"./chunk-GLM7D42Y.js";import"./chunk-7UQWW73Z.js";import"./chunk-5W56CV6U.js";import"./chunk-FW5QB3YT.js";import{a as M}from"./chunk-Y3QWB4WF.js";import{a as B}from"./chunk-KJJSAVM5.js";import{b as U,c as C,d as S}from"./chunk-32QBF3VP.js";import{d as z}from"./chunk-VUQ65SO2.js";import"./chunk-XHQXTKN5.js";import"./chunk-CAREXCTE.js";import{a as w}from"./chunk-PF7ABWYW.js";import{a as v,d as y}from"./chunk-6A72MMRO.js";import{a as T}from"./chunk-4BEFMW7D.js";import"./chunk-UMJEX7YU.js";import"./chunk-72JWF3LF.js";import{a as P}from"./chunk-2F4MHS2T.js";import{a as G,b as A}from"./chunk-3Z2AZRQC.js";import{e as O}from"./chunk-A5XXOFX2.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