/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.117 * * 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-NSWJ5LZZ.js";import{a as b}from"./chunk-QF7CWIRX.js";import{a as W}from"./chunk-VXN75QM4.js";import{a as V}from"./chunk-MS2KBTBR.js";import"./chunk-PT6JDBLV.js";import"./chunk-7QMJUJWF.js";import{a as D}from"./chunk-HVRXLRH7.js";import{a as F}from"./chunk-4CSLOU34.js";import"./chunk-YGZTDFCH.js";import{a as j,b as k}from"./chunk-HUIDJQZX.js";import"./chunk-EETKHMAV.js";import"./chunk-3NQCF6LY.js";import"./chunk-4ZLSWVFU.js";import"./chunk-B3LBD7CG.js";import{a as M}from"./chunk-YNTFMT6T.js";import{a as B}from"./chunk-4S4T622A.js";import{b as U,c as C,d as S}from"./chunk-WRT5H5YZ.js";import{d as z}from"./chunk-2Z7LHEFB.js";import"./chunk-URXUHQWZ.js";import{a as w}from"./chunk-2ZKHVIZO.js";import{a as v,d as y}from"./chunk-H26ARMDM.js";import{a as T}from"./chunk-KROATL7C.js";import"./chunk-6A4YVUYV.js";import"./chunk-IPTRD2UF.js";import{a as P}from"./chunk-WF3Q7FOG.js";import{a as G,b as A}from"./chunk-NERDVOKQ.js";import{e as O}from"./chunk-4ACNSQDC.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