text: /* This file is automatically rebuilt by the Cesium build process. */
  define(['./when-7be8a9d0', './Check-95b5c836', './Math-1bdfdd19', './Cartesian2-e1152338', './Transforms-48138b95', './RuntimeError-c01fec73', './WebGLConstants-daaa9be0', './ComponentDatatype-2d146d74', './GeometryAttribute-405802d4', './GeometryAttributes-1db6d1b2', './AttributeCompression-e971545c', './GeometryPipeline-3f8e43e9', './EncodedCartesian3-b3bb99d6', './IndexDatatype-a017e02f', './IntersectionTests-5a95a776', './Plane-22c766bf', './PrimitivePipeline-0972a3a4', './WebMercatorProjection-735ed899', './createTaskProcessorWorker'], function (when, Check, _Math, Cartesian2, Transforms, RuntimeError, WebGLConstants, ComponentDatatype, GeometryAttribute, GeometryAttributes, AttributeCompression, GeometryPipeline, EncodedCartesian3, IndexDatatype, IntersectionTests, Plane, PrimitivePipeline, WebMercatorProjection, createTaskProcessorWorker) { 'use strict';
  
    /* global require */
  
    var moduleCache = {};
  
    function getModule(moduleName) {
      var module = moduleCache[moduleName];
      if (!when.defined(module)) {
        if (typeof exports === "object") {
          // Use CommonJS-style require.
          moduleCache[module] = module = require("Workers/" + moduleName);
        } else {
          // Use AMD-style require.
          // in web workers, require is synchronous
          require(["Workers/" + moduleName], function (f) {
            module = f;
            moduleCache[module] = f;
          });
        }
      }
      return module;
    }
  
    function createGeometry(parameters, transferableObjects) {
      var subTasks = parameters.subTasks;
      var length = subTasks.length;
      var resultsOrPromises = new Array(length);
  
      for (var i = 0; i < length; i++) {
        var task = subTasks[i];
        var geometry = task.geometry;
        var moduleName = task.moduleName;
  
        if (when.defined(moduleName)) {
          var createFunction = getModule(moduleName);
          resultsOrPromises[i] = createFunction(geometry, task.offset);
        } else {
          //Already created geometry
          resultsOrPromises[i] = geometry;
        }
      }
  
      return when.when.all(resultsOrPromises, function (results) {
        return PrimitivePipeline.PrimitivePipeline.packCreateGeometryResults(
          results,
          transferableObjects
        );
      });
    }
    var createGeometry$1 = createTaskProcessorWorker(createGeometry);
  
    return createGeometry$1;
  
  });
  