/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.144.0 * * 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 h1}from"./chunk-AMKKUAL3.js";import{a as W,b as u,c as z1}from"./chunk-SWCW4GSU.js";import{a as G}from"./chunk-PZM5FOOW.js";import{a as m,b as p}from"./chunk-3MNKUQ6L.js";import{f as U}from"./chunk-J4SK6SKL.js";var V=class f{constructor(c,o,n,y){this.x=c??0,this.y=o??0,this.z=n??0,this.w=y??0}static fromElements(c,o,n,y,O){return U(O)?(O.x=c,O.y=o,O.z=n,O.w=y,O):new f(c,o,n,y)}static fromColor(c,o){return p.typeOf.object("color",c),U(o)?(o.x=c.red,o.y=c.green,o.z=c.blue,o.w=c.alpha,o):new f(c.red,c.green,c.blue,c.alpha)}static clone(c,o){if(U(c))return U(o)?(o.x=c.x,o.y=c.y,o.z=c.z,o.w=c.w,o):new f(c.x,c.y,c.z,c.w)}static pack(c,o,n){return p.typeOf.object("value",c),p.defined("array",o),n=n??0,o[n++]=c.x,o[n++]=c.y,o[n++]=c.z,o[n]=c.w,o}static unpack(c,o,n){return p.defined("array",c),o=o??0,U(n)||(n=new f),n.x=c[o++],n.y=c[o++],n.z=c[o++],n.w=c[o],n}static packArray(c,o){p.defined("array",c);let n=c.length,y=n*4;if(!U(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new m("If result is a typed array, it must have exactly array.length * 4 elements");o.length!==y&&(o.length=y)}for(let O=0;O