/** * @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}from"./chunk-FNVE7RUO.js";import{a as b}from"./chunk-UEH5LICU.js";import{a as W}from"./chunk-QFKMIH6H.js";import{a as V}from"./chunk-RO427MKC.js";import"./chunk-CV3CPKDV.js";import"./chunk-ERSSB3GJ.js";import{a as D}from"./chunk-JGH2YY6Z.js";import{a as F}from"./chunk-I7Q6CKJV.js";import"./chunk-PM6NEW3Y.js";import{a as j,b as k}from"./chunk-DFXTICUP.js";import"./chunk-SPQOGAZ5.js";import"./chunk-63MCY5JU.js";import"./chunk-AT6LKTZH.js";import"./chunk-ASPQMVDG.js";import{a as M}from"./chunk-565QV2WE.js";import{a as B}from"./chunk-2OCTB5MG.js";import{b as U,c as C,d as S}from"./chunk-2NSXRWDL.js";import{d as z}from"./chunk-LCPJ46PJ.js";import"./chunk-IADNIOZ2.js";import"./chunk-QK5WKMSE.js";import"./chunk-DCQPNKAH.js";import{a as w}from"./chunk-HVT5SA4Z.js";import{a as v,d as y}from"./chunk-QHMHXQHC.js";import{a as T}from"./chunk-GGFNGKXD.js";import"./chunk-BPPZBFNC.js";import"./chunk-6DW2D3WX.js";import{a as P}from"./chunk-A7LPWAU6.js";import{a as G,b as A}from"./chunk-UNVMUIJM.js";import{e as O}from"./chunk-WVB7XP3Q.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